/* =========================================================
   社長BOKIゲーム LP  -  Base / Header / Hero
   デザイン: 白基調・清潔感（スマイルゼミ風）／アクセント赤
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --red: #d4382e;          /* メインアクセント（落ち着いた朱赤〜レッド） */
  --red-dark: #b8281f;     /* hover / 濃いめ */
  --red-soft: #fdeceb;     /* 淡い赤背景 */
  --ink: #2b2b2b;          /* 基本テキスト */
  --ink-soft: #5d6470;     /* サブテキスト */
  --bg: #ffffff;
  --bg-off: #f7f8fa;       /* オフホワイト */
  --line: #e7e9ee;         /* 罫線 */
  --header-h: 84px;
  --maxw: 1160px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 25, 40, .06);
  --shadow-md: 0 10px 30px rgba(20, 25, 40, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* ヒーロー背景画像（PC / スマホで切替）。スマホ用画像が用意できたら --hero-img-sp を差し替える */
  --hero-img-pc: url("../assets/images/hero/hero-main.png");
  --hero-img-sp: url("../assets/images/hero/hero-main.png");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-dark); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 900; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  border-radius: 999px;
  padding: .85em 1.8em;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-cta {
  background: var(--red);
  color: #fff;
  padding: .7em 1.5em;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }

.btn-hero {
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  padding: 1em 2.2em;
  box-shadow: var(--shadow-md);
}
.btn-hero:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;             /* ヒーロー上では透過 */
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ロゴ */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  /* 透過ヘッダー（ヒーロー写真の上）でも視認できるよう、ごく薄い影を付与 */
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, .8));
  transition: height .35s var(--ease), filter .35s var(--ease);
}
/* スクロール後（白背景）は影を消してすっきり */
.site-header.scrolled .logo-img {
  height: 40px;
  filter: none;
}

/* ナビ */
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 30px; }
.gnav a {
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  position: relative;
  padding: 6px 0;
  transition: color .35s var(--ease);
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.gnav a:hover::after { transform: scaleX(1); }

/* 右端ユーティリティ */
.header-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: color .35s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }

/* スクロール後（白背景）状態 */
.site-header.scrolled {
  background: #fff;
  box-shadow: var(--shadow-sm);
  height: 70px;
}
.site-header.scrolled .gnav a,
.site-header.scrolled .icon-btn { color: var(--ink); }
.site-header.scrolled .gnav a:hover { color: var(--red); }
.site-header.scrolled .icon-btn:hover { background: var(--bg-off); color: var(--red); }
.site-header.scrolled .hamburger span { background: var(--ink); }

/* ハンバーガー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .35s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;       /* キャッチコピーを下寄せ */
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-img-pc);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* 左下を暗く→右上にかけて透明に。左下のキャッチ＆紙幣周りの白文字の可読性を確保しつつ写真の印象は残す */
  background:
    linear-gradient(to top right,
      rgba(15, 18, 28, .66) 0%,
      rgba(15, 18, 28, .28) 42%,
      rgba(15, 18, 28, 0) 70%),
    linear-gradient(to top, rgba(15, 18, 28, .35) 0%, rgba(15, 18, 28, 0) 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 9vh;
}

/* キャッチコピー：白文字＋枠線あしらい */
.hero-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 24px;
}
.hero-copy .line {
  display: inline-block;
  width: fit-content;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.15;
  padding: .12em .45em;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 6px;
  background: rgba(20, 22, 30, .14);
  backdrop-filter: blur(1px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-copy .line-accent {
  border-color: var(--red);
  background: rgba(212, 56, 46, .22);
}

.hero-lead {
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  margin: 0 0 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

/* =========================================================
   COMMON LAYOUT (sections)
   ========================================================= */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section:nth-of-type(even) { background: var(--bg-off); }
.section-cards { background: var(--bg); }
.section-features { background: var(--bg); }
.section-voice { background: var(--bg-off); }
.section-spec { background: var(--bg); }
.section-flow { background: var(--bg-off); }
.section-contact { background: var(--bg); }
.section-docs { background: var(--bg-off); }
.section-faq { background: var(--bg); }
.section-related { background: var(--bg-off); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .8rem;
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: .01em;
}
.section-title .accent { color: var(--red); }
.section-lead { color: var(--ink-soft); margin: 18px 0 0; font-size: 1.02rem; }

.btn-lg { font-size: 1.05rem; padding: 1em 2.4em; }

/* =========================================================
   3. CAROUSEL（無限ループ・マーキー）
   ========================================================= */
.marquee {
  /* 1周あたりの所要時間（ここを変えると速度調整できます） */
  --marquee-duration: 36s;
  /* カード1枚の幅と間隔（レスポンシブで上書き） */
  --card-w: 280px;
  --card-gap: 24px;

  position: relative;
  overflow: hidden;
  width: 100%;
  /* 左右端をふわっとフェードさせて流れている印象に */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  /* 2セット複製しているので -50% で1セット分ぴったり進み、継ぎ目なくループ */
  animation: marquee-scroll var(--marquee-duration) linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* マーキー内のカード枠：各カードが自分の右側余白を持つことで -50% が正確になる */
.card-slide {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  margin-right: var(--card-gap);
}

/* 透過PNG・角丸付きのカード画像をそのまま見せるデザイン */
.card {
  margin: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 8px;          /* hover時の浮き上がり用の余白 */
  transition: transform .25s var(--ease);
}
.card:hover { transform: translateY(-8px); }
.card img {
  width: 100%;
  aspect-ratio: 1024 / 1536;            /* 実カードの比率（2:3） */
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(20, 25, 40, .18));
}
.card-cap {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}
.card-cap::after {                       /* 名前の下に赤いアクセントライン */
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  border-radius: 2px;
  background: var(--red);
}

/* モーション低減：自動スクロールを止めて、手動で横スクロールできる静的表示に */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .marquee-track { animation: none; width: max-content; }
  .marquee-track [aria-hidden="true"] { display: none; }  /* 複製セットは隠す */
}

/* =========================================================
   4. FEATURES
   ========================================================= */
.feature-list { display: flex; flex-direction: column; gap: 80px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature:nth-child(even) .feature-img { order: 2; }   /* 左右交互 */
.feature-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-no {
  color: var(--red);
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 12px;
}
.feature-no span { font-size: 1.6rem; }
.feature-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 16px;
  line-height: 1.45;
}
.feature-text { color: var(--ink-soft); margin: 0; }

/* =========================================================
   5. VOICE
   ========================================================= */
.voice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.voice-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 36px;
  margin: 0;
  border-top: 4px solid var(--red);
}
.voice-label {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .82rem;
  margin-bottom: 12px;
}
.voice-headline { font-size: 1.3rem; font-weight: 900; margin: 0 0 14px; line-height: 1.5; }
.voice-text { color: var(--ink-soft); margin: 0 0 26px; }
.voice-person { display: flex; align-items: center; gap: 14px; margin: 0; }
.voice-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.voice-name { font-weight: 700; font-size: .95rem; }

/* =========================================================
   6. SPEC
   ========================================================= */
.spec-wrap { max-width: 820px; margin: 0 auto; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  width: 200px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 700;
  white-space: nowrap;
}
.spec-table td { color: var(--ink); }

/* =========================================================
   7. FLOW
   ========================================================= */
.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: none;
}
.flow-step {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.flow-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.flow-body { padding: 24px; }
.flow-no { color: var(--red); font-weight: 700; letter-spacing: .1em; margin: 0 0 8px; }
.flow-no span { font-size: 1.5rem; }
.flow-title { font-size: 1.2rem; margin-bottom: 10px; }
.flow-text { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* =========================================================
   8. CONTACT FORM
   ========================================================= */
.contact-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 40px;
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: .95rem;
}
.req, .opt {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.req { background: var(--red); color: #fff; }
.opt { background: #e9edf3; color: var(--ink-soft); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.contact-form textarea { resize: vertical; }
.form-hp {                 /* ハニーポット：画面外に隠す（display:noneだとbotに無視されやすい） */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit { text-align: center; margin-top: 32px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-note { text-align: center; font-weight: 700; margin: 0 0 4px; min-height: 1.4em; }
.form-note.error { color: var(--red); }
.form-note.success { color: #2ea35a; }

/* =========================================================
   9. DOCUMENTS
   ========================================================= */
.docs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.doc-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 1 360px;          /* 中央揃え用に幅を固定（最大360px） */
  max-width: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.doc-img { background: var(--bg-off); }
.doc-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.doc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.doc-title { font-size: 1.2rem; margin-bottom: 10px; }
.doc-text { color: var(--ink-soft); margin: 0 0 18px; font-size: .96rem; flex: 1; }
.doc-link { font-weight: 700; }
.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  padding: .7em 1.4em;
  border-radius: 999px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.doc-download:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }

/* =========================================================
   10. FAQ
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 22px 56px 22px 24px;
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  color: var(--red);
  font-weight: 900;
  margin-right: 12px;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 24px 24px; color: var(--ink-soft); }
.faq-a p { margin: 0; }

/* =========================================================
   12. CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.cta-text { margin: 0 0 32px; font-size: 1.05rem; opacity: .95; }
.btn-cta-inverse { background: #fff; color: var(--red); }
.btn-cta-inverse:hover { background: #fff7f6; color: var(--red-dark); transform: translateY(-2px); }

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer {
  background: #f7f8fa;                 /* オフホワイト〜ライトグレー */
  color: var(--ink);
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);  /* 本文との境界をさりげなく */
}

/* 共通：縦の区切り線 */
.footer-vline {
  display: inline-block;
  width: 1px;
  align-self: stretch;
  min-height: 2.6em;
  background: #d4d8e0;
}
.footer-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px auto;
  max-width: 920px;
}

/* 1段目：ナビ */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 0;
}
.footer-nav a {
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 500;
  padding: 0 20px;
  position: relative;
}
.footer-nav a + a::before {        /* 項目間の縦区切り線 */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 1em;
  background: #d4d8e0;
}
.footer-nav a:hover { color: var(--red); }

/* 2段目：提携表示（リンク） */
.footer-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.footer-partner {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.footer-partner:hover { opacity: .7; background: rgba(0, 0, 0, .03); }
.footer-ns-logo { height: 38px; width: auto; display: block; }
.footer-partner--assoc {
  flex-direction: column;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
  font-size: .98rem;
  text-align: left;
}
.footer-partner--assoc:hover { color: var(--ink); }   /* 文字色は維持し、透明度で押下を示す */
.footer-assoc-name { font-size: 1.12rem; }

/* 最下部 */
.copyright {
  margin: 32px 0 0;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .gnav, .header-utils { display: none; }
  .hamburger { display: flex; }

  /* モバイルメニュー（開いた状態） */
  .gnav.is-open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
  }
  .gnav.is-open ul { flex-direction: column; gap: 0; }
  .gnav.is-open li { border-bottom: 1px solid var(--line); }
  .gnav.is-open a {
    color: var(--ink);
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
  }
  .gnav.is-open a::after { display: none; }

  .header-utils.is-open {
    display: flex;
    position: fixed;
    top: calc(var(--header-h) + 0px);
    left: 0; right: 0;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px 22px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(0);
  }
  .header-utils.is-open .icon-btn { color: var(--ink); background: var(--bg-off); }
  .header-utils.is-open .btn-cta { color: #fff; }

  /* ロゴ：スマホで小さめに */
  .logo-img { height: 32px; }
  .site-header.scrolled .logo-img { height: 30px; }

  /* 透過ヘッダー（ヒーロー上）：上部に薄い暗グラデを敷いてロゴ・≡の視認性を確保 */
  .site-header:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(15, 18, 28, .42) 0%, rgba(15, 18, 28, 0) 100%);
  }

  /* ヒーロー：固定ヘッダー分だけ上に余白を確保し、キャッチがヘッダー／ロゴと重ならないようにする */
  .hero {
    align-items: flex-end;
    padding-top: var(--header-h);
  }
  .hero-content { padding-bottom: 10vh; }
  /* キャッチ：狭い画面でも横にはみ出さないよう縮小（PCはこのクエリ外なので影響なし） */
  .hero-copy { margin-bottom: 18px; max-width: 100%; }
  .hero-copy .line {
    font-size: clamp(1.7rem, 8.2vw, 2.6rem);
    border-width: 2px;
    max-width: 100%;
  }
  .hero-lead { margin-bottom: 22px; }

  /* スマホ：当面は横長画像を流用し、中央〜左寄りが見えるように位置調整。
     スマホ用の縦長画像ができたら --hero-img-sp を差し替えるだけでOK */
  .hero-media {
    background-image: var(--hero-img-sp);
    background-position: 32% center;
  }
  .hero-overlay {
    /* 縦画面では下方向の暗さを少し強めて可読性を確保 */
    background:
      linear-gradient(to top right,
        rgba(15, 18, 28, .68) 0%,
        rgba(15, 18, 28, .3) 45%,
        rgba(15, 18, 28, 0) 75%),
      linear-gradient(to top, rgba(15, 18, 28, .5) 0%, rgba(15, 18, 28, 0) 45%);
  }

  /* sections */
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  /* carousel: カード幅・間隔を縮小（流れる動きは維持） */
  .marquee { --card-w: 240px; --card-gap: 20px; }

  /* features: 縦積み（画像→本文）。交互は解除 */
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-img { order: 0; }

  /* voice / docs / flow: 1〜2列 */
  .voice-grid { grid-template-columns: 1fr; gap: 24px; }
  .flow-list { grid-template-columns: 1fr; gap: 20px; }
  .docs-grid { grid-template-columns: 1fr; gap: 20px; }

  /* contact */
  .contact-form { padding: 28px 20px; }

  /* spec: ラベルを上に */
  .spec-table th { width: 130px; }
}

@media (max-width: 560px) {
  /* carousel: スマホはさらにカードを小さく */
  .marquee { --card-w: 200px; --card-gap: 16px; }

  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { background: var(--red-soft); border-bottom: none; }
  .spec-table td { padding-top: 10px; }

  /* フッター：提携表示を縦積みに（縦線→横線） */
  .footer-partners { flex-direction: column; gap: 18px; }
  .footer-partner--assoc { align-items: center; text-align: center; }
  .footer-vline {
    width: 60%;
    min-height: 0;
    height: 1px;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .hero-copy .line { border-width: 2px; }
}

/* アクセシビリティ：モーション低減 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
