/* ==========================================================
   週刊AI便 - style.css
   NOVELデザインガイドライン準拠（tokens.css を読み込んだ上で使用）
   常時ライト表示。ダークモード実装なし（common spec準拠）
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--nvl-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

a {
  color: var(--nvl-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- ヘッダー ---- */
.site-header {
  border-bottom: 1px solid var(--nvl-border);
  background: #fff;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo:hover {
  text-decoration: none;
}
.site-logo-en {
  font-family: var(--nvl-font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.site-logo-ja {
  font-weight: 700;
  font-size: 20px;
  color: var(--nvl-ink);
}
.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.site-nav a {
  color: var(--nvl-text);
}

/* ---- ヒーロー帯 ---- */
.hero-band {
  background: var(--nvl-gradient);
  padding: 48px 0 40px;
}
.hero-eyebrow {
  font-family: var(--nvl-font-en);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}
.hero-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 10px;
}
.hero-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

/* ---- 購読導線バー ---- */
.subscribe-bar {
  background: var(--nvl-bg-light);
  border-bottom: 1px solid var(--nvl-border);
}
.subscribe-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.subscribe-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--nvl-blue);
  color: var(--nvl-blue);
  padding: 4px 12px;
  border-radius: var(--nvl-radius-pill);
}
.subscribe-rss {
  font-size: 14px;
  font-weight: 500;
}
.subscribe-note {
  font-size: 13px;
  color: var(--nvl-text);
  flex-basis: 100%;
}
@media (min-width: 620px) {
  .subscribe-note {
    flex-basis: auto;
  }
}

/* ---- 号カード（本文の共有コンポーネント） ---- */
.issue-card {
  padding: 36px 0;
}
.issue-page-wrap .issue-card {
  padding-top: 40px;
}
.issue-meta {
  font-size: 13px;
  color: var(--nvl-text);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.issue-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 28px;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--nvl-blue);
  margin-bottom: 12px;
}

.section-tips,
.section-news,
.section-caution {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--nvl-border);
}
.section-caution {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 32px;
  background: var(--nvl-tint-orange);
  border: 1px solid var(--nvl-orange);
  border-radius: var(--nvl-radius);
  padding: 18px 20px;
}
.section-caution .section-label {
  color: var(--nvl-orange-text);
}

.section-tips p,
.section-caution p {
  font-size: 16px;
  line-height: 1.85;
}
.section-tips p + p,
.section-caution p + p {
  margin-top: 12px;
}

.news-item {
  padding: 18px 0;
  border-top: 1px solid var(--nvl-border);
}
.news-item:first-of-type {
  border-top: none;
  padding-top: 0;
}
.news-headline {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.news-item p {
  font-size: 15px;
  line-height: 1.8;
}
.news-item p + p {
  margin-top: 8px;
}
.news-imp {
  color: var(--nvl-text);
}
.news-url a {
  font-size: 13px;
  word-break: break-all;
}

/* ---- コピー/印刷アクション ---- */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.btn-copy {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-radius: var(--nvl-radius);
  border: 1px solid var(--nvl-blue);
  background: #fff;
  color: var(--nvl-blue);
  cursor: pointer;
}
.btn-copy:hover {
  background: var(--nvl-tint-blue);
}
.btn-copy[data-action="copy-slack"] {
  background: var(--nvl-gradient);
  color: #fff;
  border: none;
}
.btn-copy-link {
  display: inline-block;
}
.btn-copy-link:hover {
  text-decoration: none;
  background: var(--nvl-tint-blue);
}
.copy-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--nvl-text);
}
.copy-status[data-state="ok"] {
  color: var(--nvl-blue);
}
.copy-status[data-state="error"] {
  color: var(--nvl-orange-text);
}

/* ---- 前号・次号ナビ ---- */
.issue-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--nvl-border);
  font-size: 14px;
  font-weight: 500;
}

.issue-back-link {
  margin: 24px 0 48px;
  font-size: 14px;
}

/* ---- バックナンバー一覧 ---- */
.backissues-section {
  padding: 8px 0 48px;
}
.backissues-list {
  border-top: 1px solid var(--nvl-border);
}
.backissue-row a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nvl-border);
  color: var(--nvl-ink);
  flex-wrap: wrap;
}
.backissue-row a:hover {
  color: var(--nvl-blue);
  text-decoration: none;
}
.backissue-number {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.backissue-date {
  font-size: 13px;
  color: var(--nvl-text);
  white-space: nowrap;
}
.backissue-title {
  font-size: 14px;
}

/* ---- フッター ---- */
.site-footer {
  background: var(--nvl-bg-dark);
  color: #fff;
  padding: 32px 0;
  margin-top: 24px;
}
.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
}
.footer-related-label {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}
.footer-related a {
  color: #fff;
}
.footer-brand {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.footer-brand p {
  margin-bottom: 4px;
}
.footer-brand a {
  color: #fff;
}

/* ---- レスポンシブ（375px〜） ---- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }
  .issue-title {
    font-size: 20px;
  }
  .action-row {
    flex-direction: column;
  }
  .btn-copy {
    width: 100%;
  }
  .backissue-row a {
    gap: 4px 14px;
  }
}

/* ---- 印刷（A4 1枚に収める） ---- */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  .site-header,
  .site-nav,
  .hero-band,
  .subscribe-bar,
  .action-row,
  .copy-status,
  .issue-nav,
  .issue-back-link,
  .backissues-section,
  .site-footer {
    display: none !important;
  }
  body {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .issue-card {
    padding: 0;
  }
  .issue-title {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .section-label {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .section-tips,
  .section-news,
  .section-caution {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .section-tips p,
  .section-caution p,
  .news-item p {
    font-size: 11px;
    line-height: 1.5;
  }
  .news-item {
    padding: 8px 0;
  }
  .news-headline {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .news-url a {
    font-size: 10px;
  }
  a {
    color: var(--nvl-ink) !important;
    text-decoration: none;
  }
}
