/* =====================================================================
   REPエージェント 静的プロトタイプ  style.css
   - モバイルファースト（ブレークポイント 768px / 1024px）
   - 配色: <html data-theme="b">（テーマB「クリーン」で確定。開発用A/C切替は公開前に削除）
   ===================================================================== */

/* ---------- 1. トークン（共通） ---------- */
:root {
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* ロゴ由来の色 */
  --brand-red: #e8231e;
  --brand-green: #3f9a1f;
  --brand-green-light: #6fc23a;

  --container: 1120px;
  --gutter: 20px;
  --header-h: 64px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --section-y: 64px;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: 1.625rem;
  --fs-h1: 2rem;
  --lh: 1.9;
}
@media (min-width: 768px) {
  :root { --section-y: 96px; --fs-h2: 2rem; --fs-h1: 2.5rem; --header-h: 80px; --gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --fs-h2: 2.25rem; --fs-h1: 3rem; }
}

/* ---------- 2. カラートークン（ベース。テーマBで上書き） ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f2f5f9;
  --surface: #ffffff;
  --text: #1c2431;
  --text-muted: #5c6673;
  --line: #d9dfe7;
  --heading: #0f2a4a;
  --primary: #0f2a4a;
  --primary-hover: #163b66;
  --on-primary: #ffffff;
  --accent: #2e7d1a;
  --accent-hover: #256614;
  --on-accent: #ffffff;
  --en-label: #2e7d1a;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 2px 8px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 42, 74, 0.14);
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-text: #0f2a4a;
  --footer-bg: #0f2a4a;
  --footer-text: #d7dfe9;
  --hero-overlay: linear-gradient(90deg, rgba(15, 42, 74, 0.82) 0%, rgba(15, 42, 74, 0.45) 60%, rgba(15, 42, 74, 0.2) 100%);
  --hero-text: #ffffff;
  --hero-min-h: 72vh;
  --band-bg: #0f2a4a;
  --band-text: #ffffff;
  --card-border: 1px solid var(--line);
  --logo-dark-display: inline-block;
  --logo-light-display: none;
  --footer-logo-dark: none;
  --footer-logo-light: inline-block;
  --img-radius: 4px;
  --eyecatch-default: url(../img/eyecatch-default-a.webp);
}

/* ---------- 3. テーマ B「クリーン」: 白基調＋グリーン、角丸大 ---------- */
[data-theme="b"] {
  --bg: #ffffff;
  --bg-alt: #f3f8f2;
  --surface: #ffffff;
  --text: #22302a;
  --text-muted: #5f6f66;
  --line: #dfe8dc;
  --heading: #1c3a2a;
  --primary: #277327;
  --primary-hover: #1f5e20;
  --on-primary: #ffffff;
  --accent: var(--brand-red);
  --accent-hover: #c91e1a;
  --on-accent: #ffffff;
  --en-label: #277327;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 4px 16px rgba(28, 58, 42, 0.06);
  --shadow-lg: 0 20px 48px rgba(28, 58, 42, 0.12);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-text: #1c3a2a;
  --footer-bg: #f3f8f2;
  --footer-text: #22302a;
  --hero-overlay: linear-gradient(105deg, rgba(18, 42, 28, 0.93) 0%, rgba(28, 58, 42, 0.78) 36%, rgba(39, 115, 39, 0.35) 58%, rgba(0, 0, 0, 0.06) 100%);
  --hero-text: #ffffff;
  --hero-min-h: 88vh;
  --band-bg: #277327;
  --band-text: #ffffff;
  --card-border: 0;
  --logo-dark-display: inline-block;
  --logo-light-display: none;
  --footer-logo-dark: inline-block;
  --footer-logo-light: none;
  --img-radius: 16px;
  --eyecatch-default: url(../img/eyecatch-logo.webp);
}

/* ---------- 5. リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
ul, ol { padding-left: 1.4em; }
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }
p + p { margin-top: 1em; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; }
small { font-size: var(--fs-sm); }
.en { font-family: var(--font-en); letter-spacing: 0.08em; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--primary); color: var(--on-primary); padding: 8px 16px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 6. ヘッダー ---------- */
/* 注意: ヘッダーに backdrop-filter / transform / filter を付けると、
   子要素の position: fixed の基準がヘッダーになりモバイルナビが崩れる（iOS Safari で再現） */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--header-bg); color: var(--header-text);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.site-header__brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; z-index: 20; }
.site-logo img { height: 32px; width: auto; }
.site-logo .logo-dark { display: var(--logo-dark-display); }
.site-logo .logo-light { display: var(--logo-light-display); }
.site-tagline { display: none; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ハンバーガー（ナビより前面に置き、開いている間は × として閉じる操作に使う） */
.nav-toggle {
  position: relative; z-index: 20;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 56px; height: 56px; margin-right: -12px; border: 0; background: transparent; color: var(--header-text); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle__bars i { display: block; height: 2px; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle__label { font-family: var(--font-en); font-size: 0.6rem; letter-spacing: 0.15em; }
.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ: 全画面オーバーレイ（不透明）。開閉は body.nav-open、アニメーションは opacity / transform のみ */
.site-nav {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10;
  background: var(--bg); color: var(--text);
  padding: calc(var(--header-h) + 8px) var(--gutter) var(--space-5);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.nav-open .site-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s; }
.nav-open { overflow: hidden; }  /* body のスクロールロック（iOS は JS で position: fixed も併用） */
.site-nav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.site-nav__item { border-bottom: 1px solid var(--line); }
.site-nav__link { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 10px 4px; }
.site-nav__link .en { font-size: 0.7rem; color: var(--en-label); font-weight: 600; line-height: 1.2; }
.site-nav__link .ja { font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.site-nav__link.is-current .ja { color: var(--primary); }
.site-nav__sub { list-style: none; margin: 0 0 8px; padding: 0 0 0 20px; }
.site-nav__sub a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; font-size: 0.95rem; color: var(--text-muted); }
.site-nav__sub a::before { content: ""; width: 10px; height: 1px; background: var(--line); margin-right: 10px; flex: none; }
.site-nav__sub a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.site-nav__cta { display: grid; gap: 12px; margin-top: var(--space-3); }
.site-nav__cta .btn { min-height: 52px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-logo img { height: 40px; }
  .site-tagline { display: block; }
  .site-nav {
    position: static; inset: auto; transform: none; opacity: 1; visibility: visible; pointer-events: auto; background: transparent; color: inherit;
    padding: 0; overflow: visible; display: flex; align-items: center; gap: 16px; transition: none;
  }
  .site-nav__list { display: flex; border: 0; gap: 4px; }
  .site-nav__item { border: 0; position: relative; }
  .site-nav__link { min-height: 0; padding: 10px 12px; align-items: center; text-align: center; border-radius: var(--radius); }
  .site-nav__link .ja { font-size: 0.9rem; }
  .site-nav__link .en { font-size: 0.62rem; }
  .site-nav__link:hover { background: var(--bg-alt); opacity: 1; }
  .site-nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; margin: 0;
    background: var(--surface); box-shadow: var(--shadow-lg); border-radius: var(--radius);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s;
  }
  .site-nav__sub a { min-height: 0; padding: 8px 12px; color: var(--text); border-radius: var(--radius); font-size: var(--fs-sm); }
  .site-nav__sub a::before { content: none; }
  .site-nav__sub a:hover { background: var(--bg-alt); }
  .has-children:hover .site-nav__sub, .has-children:focus-within .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
  .site-nav__cta { display: flex; margin: 0; gap: 8px; }
  .site-nav__cta .btn { min-height: 0; }
}
@media (min-width: 1200px) { .site-nav__link { padding: 10px 16px; } }
[data-theme="b"] .site-nav__cta .btn--primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
}
[data-theme="b"] .site-nav__cta .btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ---------- 7. ボタン ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius); font-weight: 700; line-height: 1.3; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: 0.2s; min-width: 200px; font-size: var(--fs-base);
}
.btn .en { font-size: 0.62rem; font-weight: 600; opacity: 0.95; }
.btn--primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); opacity: 1; }
.btn--secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn--secondary:hover { background: var(--primary); color: var(--on-primary); opacity: 1; }
.btn--sm { padding: 8px 16px; min-width: 0; font-size: var(--fs-sm); }
.btn--sm .en { display: none; }
.btn--lg { padding: 18px 36px; font-size: var(--fs-lg); }
.btn--ghost { background: transparent; color: var(--hero-text); border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.text-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); }
.arrow-link::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- 8. セクション・見出し ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.sec-head { margin-bottom: var(--space-4); }
.sec-head--center { text-align: center; }
.sec-head__en { font-family: var(--font-en); color: var(--en-label); font-weight: 700; letter-spacing: 0.16em; font-size: 0.8rem; margin-bottom: 8px; }
.sec-head__title { font-size: var(--fs-h2); letter-spacing: 0.02em; }
.sec-head__lead { margin-top: 16px; color: var(--text-muted); }
.sub-title { font-size: var(--fs-h3); margin: var(--space-4) 0 var(--space-2); padding-left: 14px; border-left: 4px solid var(--accent); }
.lead { font-size: var(--fs-lg); }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.note { font-size: var(--fs-sm); color: var(--text-muted); }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.max-text { max-width: 760px; margin-inline: auto; }
.grid { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.img-rounded { border-radius: var(--img-radius); overflow: hidden; }
figure { margin: 0; }
figcaption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 8px; }

/* ---------- 9. ヒーロー（トップ） ---------- */
.hero { position: relative; min-height: var(--hero-min-h); display: flex; align-items: center; overflow: hidden; color: var(--hero-text); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__inner { position: relative; padding-block: var(--space-5); }
.hero__logo { display: none; margin-bottom: var(--space-3); }
.hero__logo img { height: clamp(44px, 9vw, 64px); width: auto; filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.35)); }
.hero__en { font-family: var(--font-en); font-weight: 600; letter-spacing: 0.2em; font-size: 0.8rem; margin-bottom: 16px; opacity: 0.9; }
.hero__title { color: inherit; font-size: clamp(1.75rem, 5.5vw, 3.25rem); line-height: 1.35; letter-spacing: 0.04em; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.hero__lead { margin-top: 24px; max-width: 640px; font-size: var(--fs-base); }
.hero__buttons { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
[data-theme="b"] .hero { align-items: center; }
[data-theme="b"] .hero__logo { display: block; }
[data-theme="b"] .hero__inner { max-width: 40rem; padding-block: calc(var(--header-h) + var(--space-2)) var(--space-5); }
[data-theme="b"] .hero__en { color: var(--brand-green-light); opacity: 1; }
[data-theme="b"] .hero__title { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4); }
[data-theme="b"] .hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
[data-theme="b"] .hero .btn--primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
}
[data-theme="b"] .hero .btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
[data-theme="b"] .hero .btn--ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.88); }
[data-theme="b"] .hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
@media (min-width: 768px) {
  .hero__lead { font-size: var(--fs-lg); }
  [data-theme="b"] .hero__inner { max-width: 44rem; }
}
@media (min-width: 1024px) {
  [data-theme="b"] .hero__media img { object-position: center 35%; }
}

/* ---------- 10. 下層ページ見出し ---------- */
.page-head { background: var(--bg-alt); padding-block: var(--space-4); position: relative; overflow: hidden; }
/* トップの動画ヒーロー（16:9。文字やキャラクターが端まであるので切り取らずに全体を表示する）
   - 画面が縦長〜16:9: 横幅いっぱい（高さ = 幅 × 9/16）
   - 画面が16:9より横長: 高さを「画面の高さ − ヘッダー」に合わせ、左右の余白は同じ映像のぼかしで埋める */
.hero-video {
  position: relative; overflow: hidden; background: #0b2410;
  height: min(56.25vw, calc(100vh - var(--header-h)));
  height: min(56.25vw, calc(100svh - var(--header-h)));
}
.hero-video__backdrop {
  position: absolute; inset: -40px;
  background: url("../video/rep-hero-poster.webp") center / cover no-repeat;
  filter: blur(32px) brightness(0.75);
}
.hero-video__media { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }

.page-head--hero { color: var(--hero-text); padding-block: var(--space-5); min-height: 40vh; display: flex; align-items: center; }
.page-head__bg { position: absolute; inset: 0; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head__bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-head__inner { position: relative; }
.page-head__en { font-family: var(--font-en); color: var(--en-label); font-weight: 700; letter-spacing: 0.16em; font-size: 0.8rem; margin-bottom: 8px; }
.page-head--hero .page-head__en { color: inherit; opacity: 0.85; }
.page-head__title { font-size: var(--fs-h1); line-height: 1.3; }
.page-head--hero .page-head__title { color: inherit; }
.page-head__lead { margin-top: 16px; font-size: var(--fs-lg); max-width: 760px; }
@media (min-width: 768px) { .page-head { padding-block: var(--space-5); } .page-head--hero { min-height: 48vh; } }
.breadcrumb { font-size: var(--fs-sm); color: var(--text-muted); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; margin: 0; padding-block: 10px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 11. カード類 ---------- */
.card { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
a.card:hover { opacity: 1; box-shadow: var(--shadow-lg); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__num { font-family: var(--font-en); color: var(--en-label); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; }
.card__title { font-size: var(--fs-h3); }
.card__text { color: var(--text-muted); font-size: var(--fs-sm); }
.card__more { margin-top: auto; padding-top: 8px; }

/* 強み */
.strength { position: relative; padding: var(--space-3); background: var(--surface); border-radius: var(--radius-lg); border: var(--card-border); box-shadow: var(--shadow); }
.strength__num { font-family: var(--font-en); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--accent); opacity: 0.9; }
.strength__title { margin-top: 12px; font-size: var(--fs-h3); }
.strength__text { margin-top: 12px; color: var(--text-muted); font-size: var(--fs-sm); }
.strength__icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 12px; }
.strength__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.strength__head { display: flex; align-items: center; justify-content: space-between; }

/* ソリューション（一覧の横並び） */
.sol-row { display: grid; gap: var(--space-3); align-items: center; }
.sol-row__num { font-family: var(--font-en); color: var(--en-label); font-weight: 700; letter-spacing: 0.12em; }
.sol-row__title { font-size: var(--fs-h3); margin-top: 6px; }
.sol-row__text { margin-top: 12px; color: var(--text-muted); }
@media (min-width: 768px) {
  .sol-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .sol-row--rev .sol-row__media { order: 2; }
}
.sol-row + .sol-row { margin-top: var(--space-5); }

/* ナレッジカード */
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--img-radius); background: var(--bg-alt); border: var(--card-border); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card__media--default { background: var(--eyecatch-default) center / cover no-repeat; }
.post-card__media--default img { display: none; }
.post-card:hover { opacity: 1; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.post-card__title { font-size: var(--fs-base); font-weight: 700; color: var(--heading); line-height: 1.6; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--bg-alt); color: var(--primary); border: 1px solid var(--line); }
.tag--sample { background: #fff3cd; color: #7a5200; border-color: #f2d27a; }

/* 新着リスト */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px; }
.news-list time { font-family: var(--font-en); font-size: var(--fs-sm); color: var(--text-muted); }
.news-list .news-list__title { font-weight: 500; }
@media (min-width: 768px) { .news-list a { flex-direction: row; align-items: baseline; gap: 24px; } .news-list time { flex: 0 0 110px; } }

/* カテゴリナビ */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); }
.cat-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; background: var(--surface); }
.cat-nav a.is-current, .cat-nav a:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); opacity: 1; }
.empty { padding: var(--space-5) var(--space-3); text-align: center; background: var(--bg-alt); border-radius: var(--radius-lg); color: var(--text-muted); }

/* ---------- 12. 記事本文 ---------- */
.article { max-width: 800px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 16px; }
.article__title { font-size: var(--fs-h2); line-height: 1.45; }
.article__eyecatch { margin: var(--space-4) 0; border-radius: var(--img-radius); overflow: hidden; background: var(--bg-alt); border: var(--card-border); }
.article__eyecatch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__eyecatch--default { aspect-ratio: 1200 / 630; background: var(--eyecatch-default) center / cover no-repeat; }
.article__eyecatch--default img { display: none; }
.prose { margin-top: var(--space-4); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.2em; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.prose h3 { font-size: var(--fs-lg); margin-top: 2em; padding-left: 12px; border-left: 4px solid var(--accent); }
.prose h4 { font-size: var(--fs-base); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 0.5em; }
.prose li > p { margin-top: 0.4em; }
.prose img { border-radius: var(--img-radius); margin-inline: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { text-align: center; }
.prose strong { color: var(--heading); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.post-nav { margin-top: var(--space-5); display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: var(--space-3); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-nav a span:first-child { font-family: var(--font-en); font-size: 0.7rem; color: var(--en-label); font-weight: 700; letter-spacing: 0.1em; }
.post-nav a span:last-child { font-size: var(--fs-sm); font-weight: 500; }
.post-nav__next { text-align: right; }
@media (min-width: 768px) { .post-nav { grid-template-columns: 1fr 1fr; } }

/* ---------- 13. CTA帯・フッター ---------- */
.cta-band { background: var(--band-bg); color: var(--band-text); padding-block: var(--section-y); text-align: center; }
.cta-band__en { font-family: var(--font-en); letter-spacing: 0.2em; font-weight: 600; font-size: 0.8rem; opacity: 0.85; }
.cta-band__title { color: inherit; font-size: var(--fs-h2); margin-top: 8px; }
.cta-band__lead { margin-top: 12px; opacity: 0.9; }
.cta-band__buttons { margin-top: var(--space-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band .btn--secondary { background: transparent; color: var(--band-text); border-color: var(--band-text); }
.cta-band .btn--secondary:hover { background: var(--band-text); color: var(--band-bg); }
.cta-band .btn--primary { background: var(--band-text); color: var(--band-bg); border-color: var(--band-text); }

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: var(--section-y); }
.site-footer .site-logo img { height: 40px; }
.site-footer .site-logo .logo-dark { display: var(--footer-logo-dark); }
.site-footer .site-logo .logo-light { display: var(--footer-logo-light); }
.site-footer__address { margin-top: 16px; font-size: var(--fs-sm); line-height: 1.8; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); margin-top: var(--space-4); }
.site-footer__col-title { font-family: var(--font-en); font-size: 0.7rem; letter-spacing: 0.14em; font-weight: 700; opacity: 0.7; margin-bottom: 10px; }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.site-footer__cols li + li { margin-top: 8px; }
.site-footer__cols a:hover { text-decoration: underline; opacity: 1; }
.site-footer__bottom { margin-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.15); padding-block: 20px; font-size: 0.75rem; text-align: center; }
[data-theme="b"] .site-footer__bottom { border-top-color: var(--line); }
@media (min-width: 768px) {
  .site-footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-4); align-items: start; }
  .site-footer__cols { grid-template-columns: repeat(4, 1fr); margin-top: 0; gap: var(--space-3); }
}

/* ---------- 14. フォーム ---------- */
.form { max-width: 760px; margin-inline: auto; }
.form__row { display: grid; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.form__label { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.req, .opt { font-size: 0.7rem; padding: 2px 8px; border-radius: 3px; font-weight: 700; }
.req { background: var(--brand-red); color: #fff; }
.opt { background: var(--line); color: var(--text-muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--surface); color: var(--text);
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 0; }
.form__help { font-size: var(--fs-sm); color: var(--text-muted); }
.choice-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.choice input { margin-top: 5px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.consent { margin-top: var(--space-3); padding: 20px; background: var(--bg-alt); border-radius: var(--radius); }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.form__actions { margin-top: var(--space-4); text-align: center; }
.form__actions .note { margin-top: 12px; }
.form [aria-invalid="true"] { border-color: var(--brand-red); }
.form__error { margin-top: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-red); }
.form__status { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--brand-red); border-radius: var(--radius); color: var(--brand-red); font-weight: 700; }
.form__status[hidden] { display: none; }
@media (min-width: 768px) {
  .form__row { grid-template-columns: 220px 1fr; align-items: start; gap: 24px; }
  .form__label { padding-top: 10px; }
  .choice-list--inline { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 15. テーブル（縦積み対応） ---------- */
.def-table { border-top: 1px solid var(--line); }
.def-table tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; }
.def-table th, .def-table td { display: block; text-align: left; padding: 0; }
.def-table th { font-weight: 700; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 4px; }
@media (min-width: 768px) {
  .def-table tr { display: table-row; }
  .def-table th, .def-table td { display: table-cell; padding: 18px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
  .def-table th { width: 200px; font-size: var(--fs-base); color: var(--heading); background: var(--bg-alt); }
}

/* ---------- 16. FAQ / ステップ / 吹き出し / 図解 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 44px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; top: 16px; font-family: var(--font-en); font-weight: 700; color: var(--accent); font-size: 1.25rem; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.5rem; color: var(--text-muted); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq__a { padding: 0 8px 20px 44px; position: relative; color: var(--text-muted); }
.faq__a::before { content: "A"; position: absolute; left: 4px; top: -2px; font-family: var(--font-en); font-weight: 700; color: var(--brand-red); font-size: 1.25rem; }

.steps { display: grid; gap: var(--space-3); counter-reset: step; }
.step { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow); }
.step__label { font-family: var(--font-en); color: var(--en-label); font-weight: 700; letter-spacing: 0.14em; font-size: 0.8rem; }
.step__title { font-size: var(--fs-h3); margin-top: 6px; }
.step__sub { font-weight: 700; margin-top: 12px; color: var(--primary); }
.step__text { margin-top: 8px; color: var(--text-muted); font-size: var(--fs-sm); }
.flow { list-style: none; margin: 12px 0 0; padding: 0; }
.flow li { position: relative; padding: 8px 12px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; font-weight: 500; }
.flow li + li { margin-top: 22px; }
.flow li + li::before { content: "↓"; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); color: var(--accent); font-weight: 700; }
@media (min-width: 768px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }

.talk { display: flex; gap: 14px; align-items: flex-start; }
.talk + .talk { margin-top: var(--space-3); }
.talk__avatar { flex: 0 0 72px; }
.talk__avatar img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.talk__avatar figcaption { text-align: center; font-size: 0.7rem; margin-top: 4px; }
.talk__bubble { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; flex: 1; box-shadow: var(--shadow); }
.talk__bubble::before { content: ""; position: absolute; top: 28px; left: -8px; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.talk--rep .talk__bubble { background: var(--bg-alt); }
.talk--rep .talk__bubble::before { background: var(--bg-alt); }
.talk--rev { flex-direction: row-reverse; }
.talk--rev .talk__bubble::before { left: auto; right: -8px; transform: rotate(-135deg); }
@media (min-width: 768px) { .talk__avatar { flex-basis: 96px; } .talk__avatar img { width: 96px; height: 96px; } }

.persons { display: grid; gap: var(--space-3); }
.person { text-align: center; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow); }
.person img { width: 160px; height: 160px; object-fit: contain; margin-inline: auto; }
.person__name { margin-top: 12px; font-weight: 700; color: var(--heading); }
.person__text { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-muted); text-align: left; }
@media (min-width: 768px) { .persons { grid-template-columns: repeat(3, 1fr); } }

.manga {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  max-width: min(905px, 100%);
  margin-inline: auto;
}
.manga figure { background: var(--surface); border: var(--card-border); border-radius: var(--radius); overflow: hidden; }
.manga img { width: 100%; height: auto; display: block; }
.manga figcaption { padding: 10px 14px; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }

.business-model-fig { margin: 0; max-width: 960px; }
.business-model-fig img { width: 100%; height: auto; border-radius: var(--img-radius); }

/* 悩み・活用事例のカード */
.worry { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow); }
.worry__num { font-family: var(--font-en); color: var(--en-label); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.worry__title { margin-top: 8px; font-size: var(--fs-lg); }
.worry ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--text-muted); font-size: var(--fs-sm); }
.case { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case__media { aspect-ratio: 16 / 9; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: var(--space-3); }
.case__label { font-size: var(--fs-sm); color: var(--text-muted); }
.case__title { font-size: var(--fs-h3); margin-top: 4px; }
.case__sub { margin-top: 12px; font-weight: 700; }
.case ul { margin: 10px 0 0; padding-left: 1.2em; font-size: var(--fs-sm); color: var(--text-muted); }
.big-arrow { text-align: center; font-size: 2rem; color: var(--accent); line-height: 1; margin: var(--space-3) 0; }
.highlight { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.pill-row span { padding: 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: var(--fs-sm); }
.philosophy { text-align: center; padding: var(--space-4) var(--space-3); border: 2px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface); }
.philosophy__text { font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 700; color: var(--heading); line-height: 2; }
.catch-en { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: 0.08em; color: var(--heading); line-height: 1.3; }
.cert { text-align: center; }
.cert img { max-width: 320px; margin-inline: auto; box-shadow: var(--shadow); border-radius: var(--img-radius); }
.ceo { display: grid; gap: var(--space-3); align-items: start; }
.ceo__photo img { border-radius: var(--img-radius); width: 100%; }
.ceo__sign { margin-top: 20px; text-align: right; }
.ceo__sign span { display: block; font-size: var(--fs-sm); color: var(--text-muted); }
.ceo__sign strong { font-size: 1.4rem; letter-spacing: 0.2em; }
@media (min-width: 768px) { .ceo { grid-template-columns: 300px 1fr; gap: var(--space-4); } }
.two-col { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-4); } .two-col--rev > :first-child { order: 2; } }
.recycle-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.recycle-steps li { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.recycle-steps .step__label { display: block; }
.recycle-steps strong { display: block; color: var(--heading); margin-top: 4px; }
.recycle-steps p, .recycle-steps ul { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 8px; }
@media (min-width: 768px) { .recycle-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .recycle-steps { grid-template-columns: repeat(4, 1fr); } }
.strike-block { opacity: 0.75; }
.strike-block .strike-note { font-size: var(--fs-sm); color: var(--brand-red); font-weight: 700; }
.strike-block s { text-decoration-thickness: 2px; }

/* ---------- 18. 404 / 完了 ---------- */
.simple-page { text-align: center; padding-block: var(--space-6); }
.simple-page__code { font-family: var(--font-en); font-size: 5rem; font-weight: 700; color: var(--en-label); line-height: 1; }
.simple-page__title { font-size: var(--fs-h2); margin-top: 16px; }
.simple-page__text { margin-top: 16px; color: var(--text-muted); }
.simple-page .btn-row { margin-top: var(--space-4); justify-content: center; }

@media print { .site-header, .cta-band, .nav-toggle { display: none !important; } }
