/* ================================================================
   top-v2.css — トップページの新デザイン試作（2026-10-09）
   index.html だけが読む。style.css は読まない（他ページに影響させない）。
   配色・部品 = Security Days チラシのトンマナ／絵 = デザイン案の立体素材
   ================================================================ */

:root {
  --navy: #141D39;
  --ink: #141D39;
  --ink-sub: #3B4566;
  --cobalt: #0B3AA8;
  --accent: #F04B20;
  --surface: #F3F6FB;
  --line: #D5DDEB;
  --white: #fff;
  --font-head: "Zen Old Mincho", "Yu Mincho", serif;
  --font-body: "Zen Old Mincho", "Yu Mincho", serif;
  --font-en: "Zen Old Mincho", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 16px;
  --gutter: 48px;
  --inner: 1184px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-weight: 500; /* 明朝は細いので、本文は少し太い方を使う */
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, th, td { word-break: auto-phrase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pc-only { display: inline; }
.sp-only { display: none; }

/* ========== Page Transition Curtain / Scroll progress ========== */

.page-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--white);
  opacity: 1;
  pointer-events: none;
  animation: curtain-fade-out .3s ease-out .02s forwards;
}
@keyframes curtain-fade-out { to { opacity: 0; visibility: hidden; } }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 300;
}

/* ========== Navigation ========== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* ページの一番上では透明（背景の波形を切らない）。スクロールしたら白地にする。
     backdrop-filter は使わない（スマホの全画面メニューがナビの中に閉じ込められるため） */
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); }

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-img { height: 40px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.nav-links a,
.nav-dropdown-trigger {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink);
  transition: color .2s;
}
.nav-links a:hover,
.nav-dropdown-trigger:hover { color: var(--accent); }
.nav-links a.is-active { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.nav-cta {
  justify-self: end;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .25s var(--ease);
}
.nav-cta:hover { background: #D63E15; }

.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.nav-toggle span:first-child { font-size: 24px; line-height: 1; }
.nav-toggle-label { font-size: 10px; letter-spacing: .05em; line-height: 1; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { background: none; border: none; cursor: pointer; }
.nav-dropdown-trigger .nav-caret { font-size: 10px; }
.nav-dropdown::after {
  /* ホバー中にトリガーとメニューの隙間でホバーが切れないための橋 */
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  list-style: none;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(20, 29, 57, .12);
  z-index: 210;
}
.nav-dropdown-menu li + li { margin-top: 14px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }

@media (max-width: 1024px) {
  .nav { padding: 10px 20px; display: flex; justify-content: space-between; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    z-index: 150;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav > .nav-cta { display: none; }
  .nav-links.is-open ~ .nav-cta {
    display: block;
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 151;
    font-size: 16px;
  }
  .nav-toggle { display: flex; z-index: 200; position: relative; }
  /* モバイルの全画面メニューでは階層をやめてフラット表示 */
  .nav-dropdown { display: contents; }
  .nav-dropdown-trigger { display: none; }
  .nav-dropdown::after { content: none; }
  .nav-dropdown-menu { display: contents; }
  .nav-dropdown-menu li + li { margin-top: 0; }
}

/* ========== 共通の部品 ========== */

.anim-el { will-change: transform, opacity; }

.section { padding: 112px var(--gutter); position: relative; }
.section--surface { background: var(--surface); }
.section-inner { max-width: var(--inner); margin: 0 auto; }

.heading-l {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.4;
  letter-spacing: .02em;
}
.heading-m {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  letter-spacing: .02em;
}
.text { font-size: 16px; color: var(--ink-sub); }

/* 小見出し（オレンジの丸＋ゴシック） */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
}
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.button:hover { background: var(--navy); color: var(--white); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.button--primary:hover { background: #D63E15; border-color: #D63E15; }

.link-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color .2s;
}
.link-more:hover { color: var(--accent); }

/* ========== Section 1: FV ========== */

/* 背景＝新しく作った波形（左上から右へ流れ、右側で下りる）。下端は白へ溶かして次の節につなぐ */
.fv {
  padding: 136px var(--gutter) 72px;
  overflow: hidden;
  /* 2枚目の重ね＝立体の絵の後ろだけ波形を白く弱める（青い絵が青い波形に埋もれないように） */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) calc(100% - 140px), #fff 100%),
    radial-gradient(ellipse 34% 46% at 76% 54%, rgba(255, 255, 255, .82) 0, rgba(255, 255, 255, .6) 55%, rgba(255, 255, 255, 0) 100%),
    url('images/v2/flow-wave-hero.webp') center top / cover no-repeat;
}
.fv-inner {
  max-width: var(--inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.fv-copy { position: relative; z-index: 1; }
.fv-company {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--accent);
  margin-bottom: 20px;
}
/* 最長行は10文字。カラム幅 ÷ 10 を超えない級数にしている */
.fv-catch {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.35;
  letter-spacing: .01em;
}
.fv-catch .line { display: block; white-space: nowrap; }
.fv-catch .dot { color: var(--accent); }
.fv-lead {
  margin-top: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.8;
}
.fv-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.fv-art img { width: 106%; max-width: none; margin-left: 0; }

/* ========== Section 2: なぜ、ローカルAIなのか ========== */

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.story-art { order: -1; }
.story-body .heading-l { margin-bottom: 32px; }
.reason-story p + p { margin-top: 14px; }
.reason-story .reason-story-turn {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.6;
  color: var(--ink);
  position: relative;
}
.reason-story .reason-story-turn::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========== Section 3: ローカルAIの特徴 ========== */

.features { margin-top: 112px; }
.feature-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  list-style: none;
}
.feature-item { border-top: 1px solid var(--line); padding-top: 24px; }
.feature-number {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-item .heading-m { margin-bottom: 12px; }

/* ========== Section 4: クラウドAIとローカルAIの違い（図A） ========== */

.flow-lead { margin-top: 16px; }
.flow-figure {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.flow-panel {
  padding: 24px 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
/* 立体の絵の上に、データの向きを示す矢印（点線が流れる）を重ねる */
.flow-art { position: relative; max-width: 380px; margin: 0 auto; }
/* 絵の地はわずかに灰色がかった白。multiply でカードの白になじませる */
.flow-art img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.flow-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  overflow: visible;
}
.flow-art svg marker path { fill: var(--accent); stroke: none; }
/* 矢印は、ファーストビューの絵にある朱色の光の輪と同じ見え方にする：
   細い光の線（track）の上を、明るい粒（accent）が流れる。全体にぼかした光を付ける */
.flow-art svg { filter: drop-shadow(0 0 2.5px rgba(255, 112, 64, .7)) drop-shadow(0 0 7px rgba(255, 140, 90, .35)); }
.flow-art svg .flow-track { stroke: #FF9A73; stroke-width: .55; opacity: .7; }
.flow-art svg marker path { fill: #FF6B3D; }
.flow-art svg .flow-accent {
  stroke: #FF6B3D;
  stroke-width: 1;
  stroke-dasharray: 1.4 3.4;
  animation: flow-dash 1.4s linear infinite;
}
@keyframes flow-dash { to { stroke-dashoffset: -9.6; } }
.flow-name {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
}
.flow-caption { font-size: 15px; color: var(--ink-sub); }

/* ========== Section 5: 使い分けの目安 ========== */

.fit-table {
  margin-top: 40px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  table-layout: fixed;
}
.fit-table th {
  padding: 18px 24px;
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  text-align: left;
}
.fit-table { background: var(--white); }
.fit-table td {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-sub);
  vertical-align: top;
}
.fit-table th + th,
.fit-table td + td { border-left: 1px solid var(--line); }
.fit-note { margin-top: 28px; }
.fit-bridge {
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.7;
}

/* ========== Section 6: サービス ========== */

.service-main { margin-top: 40px; }
/* 主の2つ。枠・角丸の箱は使わない。絵は節の地にそのまま置き、
   2つのあいだを縦の細い線1本で分け、絵の下に濃紺の線を1本引いて文字と区切る */
.service-cards {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}
.service-card { display: flex; flex-direction: column; padding-right: 56px; }
.service-card + .service-card { padding-right: 0; padding-left: 56px; border-left: 1px solid var(--line); }
.service-card-art { display: flex; justify-content: center; padding: 8px 0 20px; border-bottom: 1px solid var(--navy); }
.service-card-art img { width: min(100%, 400px); aspect-ratio: 9 / 7; object-fit: contain; }
.service-card-body { padding-top: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card-body .heading-m { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 14px; }
.service-card-body .text strong { color: var(--ink); }
.service-card-body .link-more { margin-top: 24px; align-self: flex-start; }

/* 従：導入の進め方（主より小さく、線で区切った1行で添える。箱にしない） */
.service-sub {
  margin-top: 72px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
/* 絵の地が白のものがある。淡い面の上で四角が見えないように multiply でなじませる */
.service-sub-art img { width: 136px; mix-blend-mode: multiply; }
/* 従の行が続くときは、線を共有して1つの表のように並べる */
.service-sub + .service-sub { margin-top: 0; border-top: 0; }
.service-sub .label { font-size: 14px; margin-bottom: 6px; }
.service-sub .text { font-size: 15px; }

/* ========== Section 7: 事例 ========== */

/* 箱（角丸のカード）にしない。細い線で区切った行を縦に並べ、左に絵、右に文を置く */
.case-grid {
  margin-top: 40px;
  list-style: none;
  border-top: 1px solid var(--navy);
}
.case-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.case-card::after {
  content: "\2192";
  font-size: 22px;
  color: var(--navy);
  padding-right: 8px;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.case-card:hover::after { transform: translateX(8px); color: var(--accent); }
.case-card:hover .case-title { color: var(--cobalt); }
.case-card-link { position: absolute; inset: 0; z-index: 1; }
.case-card-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.case-label { font-size: 14px; color: var(--ink-sub); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.case-tag {
  padding-right: 14px;
  border-right: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
}
.case-title {
  margin: 14px 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.5;
  transition: color .3s var(--ease);
}
.case-flow { max-width: 620px; font-size: 15px; color: var(--ink-sub); line-height: 1.8; }
.case-more { margin-top: 40px; }

/* ========== Section 8: 「ローカルAIとは」への入口 ========== */

/* 背景＝波形。フッターと同じく、波形を帯の全体に敷き、薄い白をかぶせて、その上に文字を載せる。
   （以前は文字の下に波形だけの空きを作っていたが、間延びして見えた） */
.entry-band {
  padding: 104px var(--gutter) 112px;
  background:
    linear-gradient(180deg, #fff 0, rgba(255, 255, 255, .62) 72px, rgba(255, 255, 255, .62) calc(100% - 72px), #fff 100%),
    url('images/v2/flow-wave-band.webp') center 78% / cover no-repeat;
  text-align: center;
}
.entry { max-width: 560px; margin: 0 auto; }
.entry .heading-l { margin-bottom: 20px; }
.entry .link-more { margin-top: 24px; }

/* ========== 簡易業務診断への導線 ========== */

/* 左に呼びかけ、右に説明とボタン。箱にしない */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.guide .button { margin-top: 24px; }

/* ========== Section 9: 会社・発信 ========== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: start;
}
.top-links { list-style: none; border-top: 1px solid var(--line); }
.top-links a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s, padding .3s var(--ease);
}
.top-links a:hover { background: var(--surface); padding-left: 16px; }
.top-links-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.top-links-desc { font-size: 15px; color: var(--ink-sub); }
.top-links a > span:last-child { color: var(--accent); font-weight: 700; }

/* ========== Section 10: CTA ========== */

.cta-section {
  padding: 96px var(--gutter);
  background: var(--cobalt) url('images/v2/ribbon-band.webp') left center / cover no-repeat;
  color: var(--white);
  text-align: center;
}
.cta-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(2, 30, 110, .45);
}
.cta-text { margin-top: 16px; font-size: 16px; }
.cta-button {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 48px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

/* ========== Footer ========== */

/* 白地のフッター（ページの地色と同じ。相談の帯のすぐ下で色がぶつからないようにする） */
.footer {
  /* 波形はフッター全体の背景に敷き、薄い白をかぶせて、その上に文字を載せる。
     （以前は文字の下に空きを作って波形だけを見せていたが、別の帯が付いているように見えた） */
  background:
    linear-gradient(180deg, #fff 0, rgba(255, 255, 255, .8) 96px, rgba(255, 255, 255, .64) 100%),
    url('images/v2/flow-wave-bottom.webp') center bottom / cover no-repeat,
    var(--white);
  color: var(--ink);
  padding: 64px var(--gutter) 32px;
}
.footer-top {
  max-width: var(--inner);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-company { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .08em; margin-bottom: 16px; }
.footer-logo-img { height: 40px; width: auto; }
.footer-address, .footer-tel, .footer-hours { font-size: 14px; color: var(--ink-sub); }
.footer-tel a { text-decoration: none; }
.footer-sns { list-style: none; display: flex; gap: 8px; margin-top: 16px; margin-left: -12px; }
.footer-sns a { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; color: var(--ink); }
.footer-sns svg { width: 20px; height: 20px; }
.footer-sns-note img { width: 56px; filter: brightness(0); }
.footer-links { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 14px 56px; align-content: start; }
.footer-links a,
.footer-group-trigger {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
}
.footer-links a:hover, .footer-group-trigger:hover { color: var(--accent); }
.footer-links-group { position: relative; }
.footer-sub-links { list-style: none; display: none; margin-top: 10px; padding-left: 12px; }
.footer-sub-links li + li { margin-top: 8px; }
.footer-links-group.is-open .footer-sub-links { display: block; }
.footer-bottom {
  max-width: var(--inner);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-sub);
}
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ========== 白い節の背景（波形） ==========
   波形は4枚とも別の絵（同じ絵を繰り返さない）。ファーストビュー・使い分け・ローカルAIとは・フッターに1枚ずつ。
   使い分けの節は、上の淡い青の節から波形がにじみ出るように上端を溶かす */
#sec-fit {
  background:
    linear-gradient(180deg, var(--surface) 0, rgba(243, 246, 251, 0) 80px),
    url('images/v2/flow-wave-top.webp') center top / 100% auto no-repeat;
}

/* ========== 狭い画面 ========== */

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .story { gap: 40px; }
  .feature-list { gap: 28px; }
  .case-card { grid-template-columns: 220px minmax(0, 1fr) auto; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .section { padding: 72px var(--gutter); }

  /* スマホ幅：文字の後ろは白のまま。波形は立体の絵の後ろ（下半分）にだけ見せる */
  .fv {
    padding: 104px var(--gutter) 40px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) calc(100% - 90px), #fff 100%),
      linear-gradient(180deg, #fff 0, #fff 410px, rgba(255, 255, 255, 0) 540px),
      url('images/v2/flow-wave-hero.webp') right bottom / 230% auto no-repeat;
  }
  #sec-fit { background-size: auto, 900px auto; background-position: center, left top; }
  .footer { background-position: center, left bottom, center; }
  .fv-inner { grid-template-columns: 1fr; }
  .fv-art { margin-top: 24px; }
  .fv-art img { width: 112%; margin-left: -6%; }
  .fv-actions .button { flex: 1 1 140px; padding-inline: 16px; }

  .story { grid-template-columns: 1fr; gap: 24px; }
  .story-art { order: 0; max-width: 300px; margin: 0 auto; }
  .features { margin-top: 72px; }
  .feature-list { grid-template-columns: 1fr; }

  .flow-figure { grid-template-columns: 1fr; gap: 20px; }
  .flow-panel { padding: 16px 20px 28px; }
  .flow-art { max-width: 280px; }

  .fit-table th { padding: 14px 12px; font-size: 15px; }
  .fit-table td { padding: 14px 12px; font-size: 14px; }

  .service-cards { grid-template-columns: 1fr; }
  .service-card { padding-right: 0; }
  .service-card + .service-card { padding-left: 0; border-left: 0; margin-top: 56px; }
  .service-card-art img { width: min(100%, 280px); }
  .service-card-body { padding-top: 20px; }
  .service-sub { margin-top: 56px; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  .service-sub-art img { width: 72px; }
  .service-sub .link-more { grid-column: 1 / -1; justify-self: start; }
  .service-sub + .service-sub { margin-top: 0; }

  .guide { grid-template-columns: 1fr; gap: 20px; }

  .case-card { grid-template-columns: 1fr; gap: 12px; padding: 24px 0 28px; }
  .case-card::after { display: none; }
  .case-card-art img { width: 200px; }

  .split { grid-template-columns: 1fr; gap: 20px; }
  .entry-band { padding: 72px var(--gutter) 80px; background-position: center, 62% 78%; }
  .top-links a { grid-template-columns: minmax(0, 1fr) auto; }
  .top-links-desc { grid-column: 1; grid-row: 2; }
  .top-links a > span:last-child { grid-column: 2; grid-row: 1 / 3; }

  .cta-section { padding: 72px var(--gutter); background-position: 62% center; }

  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-art svg .flow-accent { animation: none; }
}

/* ========== ナビ9項目への対応（2026-10-09 項目を3つ足したため） ==========
   PC幅では社名が折れて項目に重なった。社名は折らず、項目の間隔と字を少し詰める。
   1025〜1200px は社名の文字を隠してロゴだけにする。スマホのメニューは縦に収まらない高さでは中でスクロールさせる */
.nav-logo { white-space: nowrap; }
/* 2026-10-10 ナビを5項目にまとめた（トップを外す／会社まわりを「会社情報」に）。間隔と字を元に戻す */
.nav-links { gap: 28px; }
.nav-links a, .nav-dropdown-trigger { font-size: 14px; letter-spacing: .06em; }
@media (min-width: 1025px) and (max-width: 1120px) {
  .nav-logo { font-size: 0; }
  .nav-links { gap: 22px; }
}
@media (max-width: 1024px) {
  .nav-links { gap: 22px; justify-content: flex-start; padding: 88px 0 140px; overflow-y: auto; }
  .nav-links a { font-size: 17px; }
  /* お問い合わせは画面の下に固定。白い縁を付けて、下を流れる項目と重なって見えないようにする */
  .nav-links.is-open ~ .nav-cta { bottom: 20px !important; box-shadow: 0 0 0 18px #fff, 0 -28px 24px 18px #fff; }
}

/* ボタン・入力欄はブラウザ既定の書体になるので、ページの書体（明朝）を引き継がせる */
button, input, select, textarea, .nav-toggle, .nav-toggle span { font-family: inherit; }

/* 「トップ」はスマホのメニューにだけ出す（PC幅ではロゴが兼ねる） */
@media (min-width: 1025px) { .nav-sp-only { display: none; } }

/* ========== 2026-10-12 残っていた角丸の箱をやめる（図の枠・使い分けの表・ナビを開いたメニュー） ========== */
.nav-dropdown-menu { border-radius: 0; box-shadow: 0 8px 24px rgba(20, 29, 57, .08); }
.flow-panel { border: 0; border-top: 1px solid var(--navy); border-radius: 0; }
.flow-panel + .flow-panel { border-left: 0; }
.fit-table { border: 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line); border-radius: 0; }
