/* AIデイリー サイトスタイル — 白基調シンプル */
:root {
  --accent: #2e6e53;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1f2126;
  --text-sub: #747882;
  --border: #e9eaee;
  --chip-news-bg: #e7f1ec; --chip-news-fg: #1f5c42;
  --chip-guide-bg: #e9f0fa; --chip-guide-fg: #2b5583;
  --chip-tools-bg: #faf3e3; --chip-tools-fg: #8a5a12;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { font-size: 19px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; opacity: .75; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--text-sub); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* hero */
.hero { padding: 46px 0 8px; }
.hero h1 { font-size: 27px; margin: 0 0 10px; font-weight: 700; }
.lead { color: var(--text-sub); margin: 0; }

/* sections */
.sec-title {
  font-size: 19px; margin: 44px 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.more { text-align: right; margin: 14px 0 0; font-size: 14px; font-weight: 500; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.grid-hero { grid-template-columns: 1fr; }
.card {
  display: block; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; color: var(--text);
  transition: border-color .15s ease;
}
.card:hover { text-decoration: none; border-color: var(--accent); }
.card-big { padding: 26px 28px; }
.card-big .card-title { font-size: 21px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-sub); margin-bottom: 8px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.cat-news { background: var(--chip-news-bg); color: var(--chip-news-fg); }
.cat-guide { background: var(--chip-guide-bg); color: var(--chip-guide-fg); }
.cat-tools { background: var(--chip-tools-bg); color: var(--chip-tools-fg); }
.card-title { margin: 0 0 8px; font-size: 16.5px; line-height: 1.55; font-weight: 700; }
.card-desc {
  margin: 0; font-size: 13.5px; color: var(--text-sub);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* article */
.article { max-width: 720px; margin: 40px auto 0; }
.article h1 { font-size: 26px; line-height: 1.5; margin: 10px 0 6px; font-weight: 700; }
.pr-note { font-size: 12px; color: var(--text-sub); margin: 0 0 20px; }
.article-body { font-size: 16.5px; }
.article-body h2 {
  font-size: 20px; margin: 40px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.article-body h2:first-child { margin-top: 8px; }
.article-body h3 { font-size: 17px; margin: 26px 0 10px; font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin: 4px 0; }
.article-body blockquote {
  margin: 16px 0; padding: 10px 18px;
  border-left: 3px solid var(--border); color: var(--text-sub);
}
.article-body code {
  background: #f5f5f8; border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: .9em;
}
.article-body pre { background: #f5f5f8; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.article-body pre code { background: none; border: none; padding: 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-body th { background: #f8f8fa; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }

/* disclaimer box */
.disclaimer {
  margin: 26px 0; padding: 12px 16px;
  background: #f8f8fa; border: 1px solid var(--border); border-radius: 8px;
  font-size: 12.5px; color: var(--text-sub);
}

/* ads */
.ad-slot { margin: 24px auto; text-align: center; max-width: 720px; }
.ad-label { display: block; font-size: 11px; color: var(--text-sub); margin-bottom: 4px; }

/* share */
.share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 28px 0; font-size: 14px; color: var(--text-sub);
}
.share a {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--border);
  font-weight: 500; font-size: 13.5px; color: var(--text);
}
.share a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

/* prev / next */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 10px; }
.pn {
  display: block; padding: 12px 16px; border-radius: 10px;
  background: #ffffff; border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-sub);
}
.pn span { display: block; color: var(--text); font-weight: 500; font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
.pn:hover { text-decoration: none; border-color: var(--accent); }
.pn-prev { text-align: right; }

/* list page */
.list-page h1 { font-size: 24px; margin: 44px 0 8px; font-weight: 700; }
.list-page .lead { margin-bottom: 22px; }

/* footer */
.site-footer {
  margin-top: 80px; padding: 30px 0 40px;
  background: #ffffff; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-sub);
}
.footer-note { margin: 0 0 12px; }
.footer-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-nav a { color: var(--text-sub); }
.copyright { margin: 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: 22px; }
  .prevnext { grid-template-columns: 1fr; }
  .header-inner { height: auto; padding: 10px 0; flex-direction: column; align-items: flex-start; gap: 6px; }
}
