@import url('https://seed.line.me/seed_jp/webfont/v1/css/seed_jp.css');

/* =============================================
   Variables — JF ネイビー × オレンジ
============================================= */
:root {
  --navy:       #001B44;
  --navy-mid:   #0077A8;
  --navy-lt:    #D6ECF5;
  --navy-pale:  #EEF5F8;
  --orange:     #E8571A;
  --orange-pale:#FDF3EE;
  --dark:       #1A1A18;
  --mid:        #444440;
  --muted:      #888880;
  --white:      #FFFFFF;
  --border:     rgba(0,27,68,0.12);
  --font: 'LINE Seed JP_OTF','Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif;
  --max:  1120px;
  --gap:  clamp(1.5rem,5vw,4rem);
  --sec:  clamp(5rem,9vw,8rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ---- Utility ---- */
.inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gap); }
.sec   { padding-block: var(--sec); }

.sec-label {
  display: block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}
.sec-title {
  font-size: clamp(1.7rem,4vw,2.6rem);
  font-weight: 900; line-height: 1.38; letter-spacing: -.01em;
}
.sec-title em { font-style: normal; color: var(--navy); }
.sec-lead {
  font-size: clamp(.9rem,1.5vw,1rem);
  color: var(--mid); line-height: 2; max-width: 36em; margin-top: 1.25rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85em 2em;
  font-family: var(--font); font-size: .9rem; font-weight: 700;
  letter-spacing: .04em; border-radius: 4px; border: none;
  cursor: pointer; transition: all .25s; line-height: 1;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,27,68,.28); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--navy-lt); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #a8885a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,87,26,.25); }

/* =============================================
   Header — 透過処理（KV上で透明・スクロールで不透明）
============================================= */
#header {
  position: fixed; inset: 0 0 auto; z-index: 200;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gap);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
/* スクロール後：白背景 */
#header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 2px 20px rgba(0,27,68,.1);
}

.logo {
  display: flex; flex-direction: column;
  font-weight: 900; font-size: 1.2rem; color: var(--white);
  letter-spacing: .04em; line-height: 1.15;
  transition: color .4s;
}
.logo small { font-size: .44rem; font-weight: 400; color: rgba(255,255,255,.65); letter-spacing: .2em; transition: color .4s; }
.logo-sub-en { font-size: .72em; font-weight: 700; opacity: .8; margin-left: .2em; letter-spacing: .02em; }
#header.scrolled .logo { color: var(--navy); }
#header.scrolled .logo small { color: var(--muted); }

.gnav { display: flex; align-items: center; gap: 2rem; list-style: none; }
.gnav a { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.9); transition: color .2s; }
.gnav a:hover { color: var(--white); }
#header.scrolled .gnav a { color: var(--mid); }
#header.scrolled .gnav a:hover { color: var(--navy); }

/* ヘッダーCTAボタン（透明時は白枠） */
#header > .btn {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
  transition: background .4s, color .4s, border-color .4s;
}
#header > .btn:hover { background: rgba(255,255,255,.25); }
#header.scrolled > .btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
#header.scrolled > .btn:hover { background: var(--navy-mid); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
#header.scrolled .hamburger span { background: var(--dark); }
.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); }

.drawer {
  display: none; position: fixed; inset: 68px 0 0;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  z-index: 190; padding: 2rem var(--gap); flex-direction: column; gap: 0;
}
.drawer.open { display: flex; }
.drawer a { font-size: 1rem; font-weight: 700; color: var(--dark); padding: .9rem 0; border-bottom: 1px solid var(--border); display: block; }

@media (max-width: 860px) {
  .gnav, #header > .btn { display: none; }
  .hamburger { display: flex; }
}

/* =============================================
   Hero — 全幅KV背景・テキストオーバーレイ（sl準拠）
============================================= */
#hero {
  min-height: 100dvh;
  padding-top: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;        /* テキストを下寄せ */
}

/* KV実写画像：全幅背景 */
.hero-kv-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

/* グラデーションオーバーレイ：左下から暗く */
#hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top,  rgba(0,12,35,.82) 0%, rgba(0,12,35,.35) 50%, transparent 100%),
    linear-gradient(to right, rgba(0,12,35,.55) 0%, transparent 60%);
}

/* テキストコンテンツ */
.hero-body {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gap) clamp(3.5rem,7vw,6rem);
  width: 100%;
  animation: fadeUp .7s ease both;
}

.hero-cat {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32em 1em;
  background: rgba(0,27,68,.55);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  border-radius: 100px; font-size: .74rem; font-weight: 700;
  color: rgba(255,255,255,.9); letter-spacing: .06em;
  width: fit-content; margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.2rem,5vw,4rem);
  font-weight: 900; line-height: 1.25; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title em { font-style: normal; color: #60d0f0; }

.hero-lead {
  font-size: clamp(.88rem,1.5vw,1.05rem);
  color: rgba(255,255,255,.82); line-height: 2;
  max-width: 30em; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 白枠ゴーストボタン（暗背景用） */
.btn-ghost-w {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn-ghost-w:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.hero-scroll {
  margin-top: 2rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: .5rem;
}
.hero-scroll::before {
  content: ''; display: block;
  width: 1px; height: 2rem;
  background: rgba(255,255,255,.4);
}

@media (max-width: 768px) {
  #hero { align-items: flex-end; }
  .hero-body { padding-bottom: 3rem; }
  .hero-title { font-size: clamp(1.8rem,8vw,2.8rem); }
}

.phil-title {
  font-size: clamp(1.3rem, 2.8vw, 2rem) !important;
}

/* キャプション */
.phil-caption {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .9rem; padding: .6rem .9rem;
  background: var(--navy-pale); border-radius: 6px;
  font-size: .74rem; color: var(--mid);
}
.phil-caption-place { font-weight: 700; color: var(--navy); }

/* サービスカード バッジ */
.sv-photo { position: relative; }
.sv-badge {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--navy); color: var(--white);
  padding: .25em .9em; border-radius: 100px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* =============================================
   Philosophy — sl 準拠
============================================= */
#philosophy { background: var(--white); }

.phil-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,7rem); align-items: center;
}

.phil-title { margin-bottom: 1.5rem; }
.phil-body { font-size: clamp(.9rem,1.5vw,1rem); color: var(--mid); line-height: 2.1; margin-bottom: 1.25rem; }
.phil-body strong { color: var(--dark); font-weight: 700; }
.phil-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 700; color: var(--navy); margin-top: .5rem; }
.phil-link::after { content: '→'; }
.phil-link:hover { text-decoration: underline; }

.phil-img {
  width: 100%; aspect-ratio: 4/5;
  border-radius: 4px 4px 80px 4px; overflow: hidden;
  position: relative;
}
.phil-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.phil-img:hover img { transform: scale(1.03); }
.phil-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,27,68,.25) 0%, transparent 55%); }

@media (max-width: 860px) {
  .phil-grid { grid-template-columns: 1fr; }
  .phil-img { aspect-ratio: 3/2; order: -1; }
}

/* =============================================
   Services — sl 準拠（3カード + 数字帯）
============================================= */
#services { background: var(--navy-pale); }

.services-hd { margin-bottom: 3.5rem; }

.sv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }

.sv-card {
  background: var(--white);
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.sv-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,27,68,.1); }
.sv-photo { aspect-ratio: 16/9; overflow: hidden; }
.sv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sv-card:hover .sv-photo img { transform: scale(1.05); }
.sv-body { padding: 1.5rem; }
.sv-en    { font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: .4rem; }
.sv-title { font-size: 1rem; font-weight: 900; margin-bottom: .6rem; }
.sv-text  { font-size: .82rem; color: var(--mid); line-height: 1.9; }

.stats-band {
  margin-top: 4rem;
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--white);
}
.stat { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num   { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: .3rem; }
.stat-unit  { font-size: .85rem; }
.stat-label { font-size: .74rem; color: var(--muted); margin-top: .3rem; line-height: 1.55; }

@media (max-width: 860px) {
  .sv-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--border); }
  .stat:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* =============================================
   Targets — sl の「支援対象」交互大型カード
============================================= */
#targets { background: var(--white); }

.targets-hd { margin-bottom: 3.5rem; }

/* 2×2 コンパクトカードグリッド */
.target-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.target-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  background: var(--white);
}
.target-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,27,68,.1);
}

/* 画像：aspect-ratio 固定でコンパクトに */
.target-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.target-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s;
}
.target-card:hover .target-img img { transform: scale(1.04); }

/* テキストエリア */
.target-body { padding: 1.75rem 2rem 2rem; }

.target-no {
  font-size: .62rem; font-weight: 700; letter-spacing: .2em;
  color: var(--muted); margin-bottom: .2rem;
}
.target-en {
  font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .75rem;
}
.target-title {
  font-size: clamp(1rem,2vw,1.2rem); font-weight: 900;
  line-height: 1.4; margin-bottom: .75rem;
}
.target-text {
  font-size: .84rem; color: var(--mid); line-height: 1.9; margin-bottom: 1.1rem;
}

.target-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.target-tag {
  padding: .24em .8em;
  background: var(--navy-lt); border-radius: 100px;
  font-size: .68rem; font-weight: 700; color: var(--navy);
}

@media (max-width: 768px) {
  .target-list { grid-template-columns: 1fr; }
  .target-img  { aspect-ratio: 16/7; }
  .target-body { padding: 1.25rem 1.25rem 1.5rem; }
}

/* =============================================
   CTA Band — sl の中間 CTA
============================================= */
#cta-band {
  background: var(--navy);
  padding-block: clamp(3.5rem,6vw,5rem);
  text-align: center;
  position: relative; overflow: hidden;
}
#cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 120% at 50% 50%, rgba(0,80,130,.4) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band-title {
  font-size: clamp(1.5rem,3.5vw,2.4rem); font-weight: 900;
  color: var(--white); line-height: 1.4; margin-bottom: 1rem;
}
.cta-band-sub {
  font-size: clamp(.88rem,1.5vw,1rem); color: rgba(255,255,255,.72);
  line-height: 2; margin-bottom: 2.5rem; max-width: 30em; margin-inline: auto;
}
.cta-band-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-band-tel {
  margin-top: 1.75rem;
  font-size: clamp(.85rem,1.5vw,1rem); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band-tel a { color: var(--white); font-weight: 700; font-size: 1.1em; }

/* =============================================
   CTA Band — リデザイン（写真背景・2カラム）
============================================= */
#cta-band {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem,8vw,7rem);
}
/* KV画像を背景に流用 */
#cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/kv.jpg') center 40% / cover no-repeat;
  filter: brightness(.35) saturate(.8);
}
#cta-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,12,35,.85) 0%, rgba(0,27,68,.6) 100%);
}
.cta-band-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,6rem); align-items: center;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gap);
}
.cta-band-left {}
.cta-band-label {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}
.cta-band-title {
  font-size: clamp(1.6rem,3.5vw,2.8rem); font-weight: 900;
  color: var(--white); line-height: 1.35; margin-bottom: 1.1rem;
}
.cta-band-sub {
  font-size: clamp(.88rem,1.5vw,1rem); color: rgba(255,255,255,.72);
  line-height: 2;
}
.cta-band-right {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.cta-band-tel-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--orange); margin-bottom: .5rem; }
.cta-band-tel-num {
  font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 900; color: var(--white);
  margin-bottom: .3rem;
}
.cta-band-tel-num a { color: inherit; }
.cta-band-hours { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 1.75rem; }
.cta-band-actions { display: flex; flex-direction: column; gap: .75rem; }
.cta-band-actions .btn { justify-content: center; }

@media (max-width: 768px) {
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-right { padding: 1.75rem; }
}

/* =============================================
   Pricing
============================================= */
.pricing-hd { margin-bottom: 3.5rem; }
.pricing-hd .sec-lead { max-width: 36em; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.plan {
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 1.75rem;
  position: relative; background: var(--white);
  transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,27,68,.1); }
.plan.featured { border-color: var(--navy); border-width: 2px; }

.plan-badge {
  position: absolute; top: -.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--navy); color: var(--white);
  padding: .22em 1.2em; border-radius: 100px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap;
}

.plan-no   { font-size: .64rem; font-weight: 700; letter-spacing: .18em; color: var(--orange); margin-bottom: .3rem; }
.plan-name { font-size: 1.05rem; font-weight: 900; margin-bottom: 1rem; }

.plan-price-box {
  background: var(--navy-pale); border-radius: 10px;
  padding: 1rem 1.25rem; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.plan-price-left { display: flex; flex-direction: column; gap: 0; }
.plan-zero  { display: none; } /* 削除 */
.plan-price {
  font-family: var(--font);
  font-size: 1.75rem; font-weight: 900;
  line-height: 1.1; color: var(--dark);
  display: flex; align-items: baseline; gap: .1em;
  white-space: nowrap;
}
.plan-price sup {
  font-family: var(--font);
  font-size: .85rem; font-weight: 700;
  vertical-align: baseline; line-height: 1;
  margin-right: .05em;
}
.plan-price sub {
  font-family: var(--font);
  font-size: .62rem; font-weight: 400;
  color: var(--muted); vertical-align: baseline;
  margin-left: .1em;
}
.plan-pages {
  background: var(--white); border: 1px solid var(--border);
  padding: .4em .9em; border-radius: 100px;
  font-size: .72rem; font-weight: 700; color: var(--navy); white-space: nowrap;
  flex-shrink: 0;
}

.plan-tag   { font-size: .82rem; color: var(--mid); margin-bottom: 1.1rem; line-height: 1.75; }

.plan-list  { list-style: none; display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.5rem; }
.plan-list li { display: flex; align-items: flex-start; gap: .45rem; font-size: .82rem; color: var(--mid); }
.plan-list li::before { content: '✓'; color: var(--navy); font-weight: 700; flex-shrink: 0; }

.plan-cta {
  display: block; text-align: center;
  padding: .85em; border-radius: 8px;
  font-size: .88rem; font-weight: 700; letter-spacing: .04em;
  background: var(--navy-lt); color: var(--navy);
  transition: all .25s;
}
.plan-cta:hover { background: var(--navy); color: var(--white); }
.plan.featured .plan-cta { background: var(--navy); color: var(--white); }
.plan.featured .plan-cta:hover { background: var(--navy-mid); }

.ec-note {
  margin-top: 2.5rem; padding: 1.75rem 2rem;
  background: var(--orange-pale); border: 1px solid rgba(232,87,26,.35);
  border-radius: 12px; display: flex; align-items: flex-start; gap: 1.5rem;
}
.ec-note-icon  { font-size: 2rem; flex-shrink: 0; line-height: 1; padding-top: .1rem; }
.ec-note-title { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .35rem; }
.ec-note-body  { font-size: .82rem; color: var(--mid); line-height: 1.85; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Flow — sl の 5ステップ
============================================= */
#flow { background: var(--navy-pale); }
.flow-hd { margin-bottom: 3.5rem; }

.flow-steps { display: grid; grid-template-columns: repeat(5,1fr); position: relative; }
.flow-steps::before {
  content: ''; position: absolute;
  top: 1.4rem; left: calc(10% + .5rem); right: calc(10% + .5rem);
  height: 1px; background: var(--border);
}
.flow-step { text-align: center; padding: 0 .5rem; }
.flow-num {
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900;
  margin-inline: auto; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.flow-en    { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .3rem; }
.flow-title { font-size: .88rem; font-weight: 700; margin-bottom: .4rem; }
.flow-body  { font-size: .75rem; color: var(--mid); line-height: 1.8; }

@media (max-width: 860px) {
  .flow-steps { grid-template-columns: 1fr; gap: 2rem; }
  .flow-steps::before { display: none; }

  .flow-step {
    text-align: left;
    display: grid;
    grid-template-columns: 2.8rem 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
    row-gap: .2rem;
    align-items: start;
  }
  /* 番号を左列・3行分を占有 */
  .flow-num {
    margin: 0;
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
    margin-top: .1rem;
  }
  /* テキスト要素はすべて右列 */
  .flow-en    { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .flow-title { grid-column: 2; grid-row: 2; margin-bottom: .25rem; }
  .flow-body  { grid-column: 2; grid-row: 3; }
}

/* =============================================
   Contact — sl 準拠（2カラム・詳細フォーム）
============================================= */
#contact {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3817 100%);
  position: relative; overflow: hidden;
}
#contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(0,80,130,.3) 0%, transparent 70%);
  pointer-events: none;
}

.contact-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }

/* 左：info */
.ct-label { color: rgba(232,87,26,.8) !important; }
.ct-title { font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 900; color: var(--white); line-height: 1.42; margin-bottom: 1rem; }
.ct-sub   { font-size: clamp(.88rem,1.5vw,1rem); color: rgba(255,255,255,.68); line-height: 2; margin-bottom: 2rem; }

.ct-tel { font-size: clamp(1.3rem,2.5vw,1.8rem); font-weight: 900; color: var(--white); margin-bottom: .3rem; }
.ct-tel a { color: inherit; }
.ct-hours { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 2rem; }

.ct-offices { display: flex; flex-direction: column; gap: 1rem; }
.ct-office {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 1.1rem 1.25rem;
}
.ct-office-label { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .4rem; }
.ct-office-name  { font-size: .88rem; font-weight: 700; color: var(--white); margin-bottom: .25rem; }
.ct-office-addr  { font-size: .72rem; color: rgba(255,255,255,.5); line-height: 1.7; }

/* 右：フォーム（sl 準拠） */
.ct-form-wrap { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 2.25rem; }
.ct-form-title { font-size: 1rem; font-weight: 900; color: var(--white); margin-bottom: 1.5rem; }

.fg { margin-bottom: 1rem; }
.fl { display: block; font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.62); margin-bottom: .32rem; }
.fl .req { color: var(--orange); margin-left: .25rem; }

.fi, .fs, .ft {
  width: 100%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px; padding: .7em 1em;
  font-family: var(--font); font-size: 1rem; color: var(--white);
  transition: border-color .2s, background .2s; -webkit-appearance: none;
}
.fi::placeholder, .ft::placeholder { color: rgba(255,255,255,.25); }
.fi:focus, .fs:focus, .ft:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.12); }
.fs option { color: var(--dark); background: var(--white); }
.ft { resize: vertical; min-height: 100px; }

.frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.frow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .9rem; }

/* チェックボックス */
.fcheck-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.fcheck-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: rgba(255,255,255,.7);
  cursor: pointer; user-select: none;
}
.fcheck-label input { accent-color: var(--orange); width: 14px; height: 14px; }

.fsub {
  width: 100%; padding: .95em;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  background: var(--orange); color: var(--white);
  border: none; border-radius: 6px;
  cursor: pointer; transition: background .25s, transform .2s, box-shadow .25s;
  margin-top: .5rem; letter-spacing: .04em;
}
.fsub:hover { background: #a8885a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,87,26,.3); }
.fsub:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.fmsg { display: none; margin-top: .9rem; padding: .75em 1em; border-radius: 6px; font-size: .84rem; font-weight: 700; }
.fmsg.ok  { background: rgba(0,27,68,.3); color: #a8e6a3; border: 1px solid rgba(0,27,68,.35); }
.fmsg.err { background: rgba(180,50,50,.2); color: #ffb3b3; border: 1px solid rgba(180,50,50,.3); }

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .frow2, .frow3 { grid-template-columns: 1fr; }
}

/* =============================================
   Footer — global-footer.js が CSS を注入するため
   こちらでは最小限の背景色のみ指定
============================================= */
#footer { background: #0d1a2e; min-height: 1px; }

/* =============================================
   Animations
============================================= */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.reveal { opacity:0; transform:translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity:1; transform:none; }

/* =============================================
   SP 最適化（480px以下）
============================================= */
@media (max-width: 480px) {
  :root { --gap: 1.25rem; --sec: 3.5rem; }

  /* Hero */
  .hero-title { font-size: 1.8rem; }
  .hero-lead  { font-size: .88rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }

  /* Philosophy */
  .phil-grid   { grid-template-columns: 1fr; }
  .phil-img    { aspect-ratio: 4/3; border-radius: 4px; }
  .phil-title  { font-size: 1.2rem !important; }

  /* Services */
  .sv-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.25rem 1rem; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: .68rem; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-price-box { flex-direction: column; align-items: flex-start; gap: .5rem; }

  /* Targets */
  .target-list { grid-template-columns: 1fr; }
  .target-img  { aspect-ratio: 16/7; }

  /* CTA band */
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-title { font-size: 1.5rem; }
  .cta-band-right { padding: 1.5rem; }
  .cta-band-actions .btn { width: 100%; justify-content: center; }

  /* Flow */
  .flow-steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .flow-steps::before { display: none; }
  .flow-step {
    text-align: left;
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    grid-template-rows: auto auto auto;
    column-gap: .75rem;
    row-gap: .2rem;
  }
  .flow-num  { margin: 0; width: 2.4rem; height: 2.4rem; font-size: .78rem; grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .flow-en   { grid-column: 2; grid-row: 1; }
  .flow-title { grid-column: 2; grid-row: 2; }
  .flow-body  { grid-column: 2; grid-row: 3; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; }
  .frow2, .frow3 { grid-template-columns: 1fr; }
  .cform { padding: 1.5rem; }
  .ct-tel { font-size: 1.4rem; }

  /* EC note */
  .ec-note { flex-direction: column; gap: .75rem; }
}

/* =============================================
   タブレット（768px以下）
============================================= */
@media (max-width: 768px) {
  /* Hero */
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-lead  { font-size: .9rem; }

  /* Philosophy */
  .phil-grid { grid-template-columns: 1fr; }
  .phil-img  { aspect-ratio: 16/9; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }

  /* CTA band */
  .cta-band-inner { grid-template-columns: 1fr; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; }
  .frow2 { grid-template-columns: 1fr; }
}

