/* ================================================
   Kohmura Lab. - style.css
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* ── LP3: Navy-dominant / Elegant minimal theme（カラーはLP4のVivid Dynamicパレットに置き換え） ── */
  --navy:       #041e6e;   /* ディープロイヤルブルー */
  --blue:       #0055ff;   /* ビビッドエレクトリックブルー */
  --blue-mid:   #2e8bff;   /* ブルー・ミドル */
  --blue-bright:#00d4ff;   /* ビビッドシアン */
  --blue-pale:  #dbe8ff;   /* 淡いブルー */
  --blue-bg:    #f1f5ff;   /* ブルーがかった背景 */
  --teal:       #ff5b1f;   /* ビビッドオレンジ（資料DL・CTA） */
  --teal-mid:   #ff8a00;
  --teal-pale:  #ffe4d1;
  --accent:     #ff5b1f;
  --gray-dark:  #14192e;
  --gray:       #565c78;
  --gray-light: #f2f5fc;
  --white:      #fff;
  --border:     #dfe6fb;
}
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP','Hiragino Sans',sans-serif; color: var(--gray-dark); line-height: 1.75; font-size: 19.5px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,85,255,0.12);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(4,30,110,0.12); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 84px; }

/* Logo */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
/* 元画像 808×210（比率3.85）。高さ52pxで表示＝原寸の約25%。
   Retina(2x/3x)でも実ピクセルが十分残り、くっきり表示される。 */
.logo-img { height: 52px; width: auto; display: block; }

/* Nav */
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 17.5px; font-weight: 500; color: var(--gray); transition: color 0.2s; position: relative; text-decoration: none; }
.nav a:not(.header-cta)::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform 0.2s; }
.nav a:not(.header-cta):hover { color: var(--blue); }
.nav a:not(.header-cta):hover::after { transform: scaleX(1); }
.header-cta { position: relative; overflow: hidden; background: var(--blue); color: white !important; padding: 10px 22px; border-radius: 24px; font-size: 15.5px; font-weight: 700; transition: all 0.2s; box-shadow: 0 2px 10px rgba(0,85,255,0.3); white-space: nowrap; }
.header-cta:hover { background: var(--navy) !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,85,255,0.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy); /* 画像読み込み前のフォールバック */
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  padding: 100px 28px 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url(img/hero.jpg) center center / cover no-repeat;
  transform: scale(1);
  animation: heroZoom 16s ease-in-out -4s infinite alternate;
  will-change: transform;
  opacity: 0.4;
}
/* ビビッドな青×オレンジの動くグラデーション＋ドットテクスチャ */
.hero::after {
  content: ''; position: absolute; inset: -20%; z-index: 0;
  background:
    linear-gradient(115deg, rgb(4 30 110 / 92%) 0%, rgb(0 85 255 / 85%) 38%, rgb(0 212 255 / 78%) 100%),
    url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='25' cy='25' r='1.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 220% 220%, 50px 50px;
  animation: heroGradientMove 9s ease-in-out infinite alternate;
}
@keyframes heroGradientMove {
  0%   { background-position: 0% 20%, 0 0; }
  100% { background-position: 100% 80%, 50px 50px; }
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.hero-geo { position: absolute; top: -100px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,85,255,0.16) 0%, transparent 70%); pointer-events: none; animation: blobFloat 6s ease-in-out infinite; }
.hero-geo2 { position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%); pointer-events: none; animation: blobFloat 7s ease-in-out infinite -3s; }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-18px,20px) scale(1.06); } }
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; position: relative; z-index: 1; padding-bottom: 60px; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.25); color: white; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.06em; }
.hero-label::before { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.hero-title { font-size: clamp(28px,5.5vw,50px); font-weight: 900; color: white; line-height: 1.25; margin-bottom: 16px; letter-spacing: 5px; }
.hero-title em { color: var(--teal-mid); font-style: normal; text-shadow: 0 0 24px rgba(255,91,31,0.6); }
.hero-sub { font-size: clamp(14px,1.8vw,16px); color: rgba(255,255,255,0.85); margin-bottom: 28px; line-height: 1.8; letter-spacing: 1px; }
/* 実績バッジ：利用可能な横幅（画像有無で変わる2カラム／1カラム双方）に応じて1行を維持する
   コンテナクエリ。文字サイズは元の11pxを下限に、余裕がある幅では13px（+2px）まで拡大する */
.hero-content { container-type: inline-size; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 36px; letter-spacing: 1px; }
.pill { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); color: white; font-size: 11px; padding: 4px 8px; border-radius: 20px; letter-spacing: 0px; font-weight: 700; white-space: nowrap; }
@container (min-width: 550px) {
  .pill { font-size: 13px; }
}
@container (min-width: 620px) {
  .hero-pills { gap: 10px; }
  .pill { padding: 6px 16px; }
}
@container (max-width: 449px) {
  .hero-pills { gap: 4px; }
  .pill { padding: 4px 6px; letter-spacing: -0.2px; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-hero-main, .btn-hero-sub { position: relative; overflow: hidden; }
.btn-hero-main::after, .btn-hero-sub::after, .btn-cw::after, .btn-co::after, .header-cta::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: skewX(-20deg); animation: shineSweep 2.8s ease-in-out infinite;
}
@keyframes shineSweep { 0% { left: -60%; } 55%,100% { left: 130%; } }
.btn-hero-main { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(120deg, var(--teal) 0%, var(--teal-mid) 100%); color: #fff; font-size: 16px; font-weight: 800; padding: 15px 32px; border-radius: 12px; transition: all 0.2s; box-shadow: 0 6px 24px rgba(255,91,31,0.45); }
.btn-hero-main:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 30px rgba(255,91,31,0.6); }
.btn-hero-sub { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(120deg, var(--blue) 0%, var(--blue-mid) 100%); color: #fff; font-size: 15px; font-weight: 700; padding: 13px 26px; border-radius: 12px; transition: all 0.2s; box-shadow: 0 6px 24px rgba(0,85,255,0.4); }
.btn-hero-sub:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 30px rgba(0,85,255,0.55); }
.hero-visual { display: flex; flex-direction: column; justify-content: flex-end; align-self: flex-end; }
.hero-img-frame { border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -8px 40px rgba(0,0,0,0.3); isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hero-img-frame .browser-bar { background: #e8e8e8; padding: 8px 12px; display: flex; gap: 5px; align-items: center; }
.site-dot { width: 9px; height: 9px; border-radius: 50%; }
.site-dot.r { background: #ff6b6b; }
.site-dot.y { background: #ffd93d; }
.site-dot.g { background: #6bcb77; }
.browser-url { flex: 1; background: white; border-radius: 3px; height: 18px; margin-left: 8px; display: flex; align-items: center; padding: 0 8px; }
.browser-url span { font-size: 10.5px; color: #999; }
.hero-img-frame img { width: 100%; display: block; object-fit: cover; object-position: top; }
.hero-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
.hero-video.is-fullscreen, .hero-video:fullscreen, .hero-video:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; }

/* Hero video overlay controls */
.hero-video-ctrl { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
.hero-video-ctrl[hidden] { display: none; }
.hv-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 0; border-radius: 999px;
  background: rgba(0,0,0,0.55); color: #fff; line-height: 1;
  cursor: pointer; text-decoration: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background 0.2s; }
.hv-btn:hover { background: rgba(0,0,0,0.82); }
.hv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hv-ic { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.hv-sound .hv-ic { display: none; }
.hv-sound.is-muted .hv-ic-off { display: block; }
.hv-sound:not(.is-muted) .hv-ic-on { display: block; }
/* ラベルは常に視覚的に非表示（PC・SPともアイコンのみ表示、スクリーンリーダー用に保持） */
.hv-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero bottom strip */
.hero-strip { background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,0.15); position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; }
.hero-strip-inner { max-width: 1200px; margin: 0 auto; padding: 0; display: flex; width: 100%; }
.hero-strip-item { flex: 1; padding: 12px 20px; border-right: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 12px; }
.hero-strip-item:last-child { border-right: none; }
.hs-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.3); border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hs-icon svg { width: 16px; height: 16px; fill: #fff; }
.hs-title { font-size: 14.5px; font-weight: 700; color: white; line-height: 1.3; }
.hs-desc { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ===== SHARED ===== */
.container { max-width: 1200px; margin: 0 auto; }
.sec { padding: 88px 28px; }
.sec-tag { display: inline-block; font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: 0.14em; text-transform: uppercase; background: var(--blue-pale); padding: 5px 16px; border-radius: 20px; margin-bottom: 14px; }
.sec-title { font-size: clamp(30px,4.4vw,48px); font-weight: 900; line-height: 1.4; letter-spacing: 1px;
  color: var(--teal); }
.sec-desc { font-size: 18.5px; color: var(--gray); margin-top: 12px; line-height: 1.8; }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,0.61,0.36,1), transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* グリッド内の子要素を軽く時間差でフェードさせる（控えめなスタッガー） */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22,0.61,0.36,1), transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.07s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.14s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.21s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.28s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.42s; }
.stagger.visible > *:nth-child(n+8) { transition-delay: 0.49s; }

/* ===== WORKS ===== */
.works { background: var(--blue-bg); }
.works-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-bottom: 60px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,85,255,0.06); }
.ws { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.ws:last-child { border-right: none; }
.ws::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.ws-n { font-size: 46px; font-weight: 900; color: var(--blue); line-height: 1; }
.ws-u { font-size: 16px; font-weight: 700; color: var(--blue); }
.ws-l { font-size: 15px; color: var(--gray); margin-top: 6px; }
.works-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.work-item { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); transition: all 0.25s; cursor: pointer; background: #fff; }
.work-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,85,255,0.14); border-color: var(--blue-bright); }
.wi-thumb { height: 150px; overflow: hidden; background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-bg) 100%); }
.wi-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.work-item:hover .wi-shot { transform: scale(1.04); }
.wi-shot { transition: transform 0.35s ease; }
.wi-bar { height: 8px; background: rgba(0,85,255,0.2); border-radius: 4px; }
.wi-bar.accent { background: rgba(0,85,255,0.4); width: 60%; }
.wi-row { display: flex; gap: 6px; }
.wi-sq { width: 40px; height: 40px; background: rgba(0,85,255,0.15); border-radius: 4px; flex-shrink: 0; }
.wi-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.wi-line { height: 5px; background: rgba(0,85,255,0.15); border-radius: 3px; }
.wi-line.short { width: 70%; }
.wi-meta { padding: 14px 16px; }
.wi-univ { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; }
.wi-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-top: -5px; }
.works-more { text-align: center; margin-top: 32px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: white; border: 2px solid var(--blue); padding: 14px 36px; border-radius: 14px; font-size: 18.5px; font-weight: 800; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,85,255,0.3); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,85,255,0.35); }

/* ===== MISSION ===== */
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.mission { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 45%, var(--blue-bright) 85%, var(--navy) 100%); background-size: 240% 240%; animation: gradientFlow 10s ease infinite; color: white; padding: 88px 28px; position: relative; overflow: hidden; }
.mission-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.mission-text .sec-tag { background: rgba(255,255,255,0.15); color: white; }
.mission-text .sec-title { color: #ffffff; }
.mission-text p { color: rgba(255,255,255,0.8); font-size: 18.5px; margin-top: 20px; line-height: 1.9; }
.mission-visual { display: flex; flex-direction: column; gap: 16px; }
.mission-card { background: #fbf6ee; border: 1px solid rgba(0,0,0,0.06); border-radius: 18px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: all 0.2s; box-shadow: 0 4px 18px rgba(4,30,110,0.08); }
.mission-card:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(4,30,110,0.14); }
.mc-icon { width: 44px; height: 44px; background: var(--blue-pale); border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mc-icon svg { width: 22px; height: 22px; fill: var(--blue); }
.mc-label { font-size: 11.5px; font-weight: 700; color: #2b87ff; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0px; }
.mc-title { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 5px;letter-spacing: 2px;margin-top:-9px; }
.mc-desc { font-size: 17.5px; color: var(--gray); line-height: 1.65; }

/* ===== FEATURES ===== */
.features-sec { background: var(--gray-light); }
.feat-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; }
/* PC・タブレット表示時、右のリード文と横並びになり幅が狭まるため、2行に収まるようフォントサイズ・幅を調整 */
.feat-header .sec-title { font-size: clamp(24px,3vw,44px); }
.feat-subtext { font-size: 16px; color: var(--blue); max-width: 380px; text-align: right; line-height: 1.7; }

/* Carousel – slide */
.feat-carousel-wrap { position: relative; overflow: hidden; }
.feat-carousel-track-outer { overflow: hidden; }
.feat-carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.feat-card { flex: 0 0 calc(33.333% - 16px); margin-right: 24px; }
@media (max-width: 1000px) { .feat-card { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 640px)  { .feat-card { flex: 0 0 100%; margin-right: 24px; } }
.feat-card { background: white; border-radius: 18px; padding: 28px; border: 1px solid var(--border); transition: all 0.25s; position: relative; overflow: hidden; }
.feat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.feat-card:hover { box-shadow: 0 8px 28px rgba(0,85,255,0.1); transform: translateY(-3px); }
.feat-card:hover::before { transform: scaleX(1); }
.fc-num { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: 0.12em; margin-bottom: 12px; }
.fc-icon { width: 48px; height: 48px; background: var(--blue-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.fc-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.fc-title { font-size: 20.5px; font-weight: 800; color: var(--navy); margin-bottom: 10px;letter-spacing: 1px; }
.fc-desc { font-size: 16.5px; color: var(--gray); line-height: 1.75; }
/* FEATURE番号をアイコンの上ではなく右に配置し、空いた行を詰める */
.feat-card { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; }
.fc-icon { order: 1; margin-bottom: 14px; }
.fc-num { order: 2; margin: 0 0 14px 12px; }
.fc-title { order: 3; flex: 0 0 100%; }
.fc-desc { order: 4; flex: 0 0 100%; }
.fm-icon-wrap { width: 40px; height: 40px; background: var(--blue-pale); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 14px; }

/* Carousel nav */
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.carousel-btn { width: 40px; height: 40px; border: 2px solid var(--blue); border-radius: 50%; background: white; color: var(--blue); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 20.5px; }
.carousel-btn:hover { background: var(--blue); color: white; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }

/* ===== PRICING ===== */
.pricing-sec { background: white; }
.pricing-header { text-align: center; margin-bottom: 52px; }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.plan { background: var(--gray-light); border-radius: 20px; overflow: hidden; border: 2px solid transparent; transition: all 0.25s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,85,255,0.12); }
.plan.highlight { background: white; border-color: var(--blue); box-shadow: 0 4px 24px rgba(0,85,255,0.12); }
.plan-hero { padding: 28px 24px; position: relative; overflow: hidden; container-type: inline-size; }
.plan.highlight .plan-hero { background: linear-gradient(135deg, var(--navy), var(--blue), var(--navy)); background-size: 220% 220%; animation: gradientFlow 10s ease infinite; }
.plan-rec { position: absolute; top: 12px; right: 12px; background: var(--accent); color: white; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 10px; letter-spacing: 0.06em; }
.plan-name { font-size: 19.5px; font-weight: 800; margin-bottom: 6px; color: var(--navy);  }
.plan.highlight .plan-name { color: white; }
.plan-price-wrap { display: flex; align-items: flex-end; gap: 4px; }
.plan-price { font-size: 39px; font-weight: 900; color: var(--blue); line-height: 1; }
.plan.highlight .plan-price { color: white; }
.plan-ptax { font-size: 15px; color: var(--gray); align-self: flex-end; margin-bottom: 2px; }
.plan.highlight .plan-ptax { color: rgba(255,255,255,0.7); }
/* 横幅1101px以下（3カラムのまま幅が狭まる範囲）で（税別）が2行になるため、
   実際に使える幅に応じて3ブロック同じ比率でフォントサイズを縮小する */
@media (max-width: 1101px) {
  .plan-price { font-size: clamp(22px, 11cqw, 39px); }
  .plan-ptax { font-size: clamp(9px, 4.2cqw, 15px); }
}
.plan-period { font-size: 15px; color: var(--gray); margin-top: 6px; }
.plan.highlight .plan-period { color: rgba(255,255,255,0.75); }
.plan-body { padding: 20px 24px 28px; }
.plan-list { list-style: none; }
.plan-list li { font-size: 15.5px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,0.08); display: flex; align-items: flex-start; gap: 8px; color: var(--gray-dark); }
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before { content: "✓"; color: var(--blue); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
/* プラン内のグループ見出し（制作内容／機能） */
.plan-group-label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 4px; }
.plan-group-label::before { content: ""; width: 4px; height: 13px; background: var(--blue); border-radius: 2px; }
.plan-list + .plan-group-label { margin-top: 20px; }
.pricing-maint { margin-top: 48px; background: var(--blue-bg); border-radius: 18px; padding: 32px; border: 1px solid var(--border); }
.pm-title { font-size: 20.5px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.pm-table { width: 100%; border-collapse: collapse; }
.pm-table th { background: var(--blue); color: white; padding: 12px 16px; font-size: 15.5px; text-align: left; }
.pm-table th:first-child { border-radius: 0px; }
.pm-table th:last-child { border-radius: 0 6px 0 0; }
.pm-table td { padding: 14px 16px; font-size: 16px; border-bottom: 1px solid var(--border); }
.pm-table tr:last-child td { border-bottom: none; }
.pm-table tr:nth-child(even) td { background: rgba(0,85,255,0.04); }
@media (max-width: 600px) {
  .pm-table thead { display: none; }
  .pm-table, .pm-table tbody, .pm-table tr, .pm-table td { display: block; width: 100%; }
  .pm-table tr { margin-bottom: 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
  .pm-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .pm-table td:last-child { border-bottom: none; }
  .pm-table td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 800; color: var(--blue); letter-spacing: 0.08em; background: var(--blue-pale); margin: -10px -14px 8px; padding: 6px 14px; }
}

/* 保守サポート：見出し */
.pm-head { text-align: center; margin-bottom: 24px; }
.pm-head .pm-title { font-size: 27.5px; margin-bottom: 6px; letter-spacing: 1px; }
.pm-sub { font-size: 16px; color: var(--gray); letter-spacing: 0.08em; }
.pm-plan-name { font-size: 19.5px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }

/* 保守サポート：料金・制作内容の縦型キーバリュー表 */
.pm-table-kv { border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.pm-table-kv tr + tr .pm-th,
.pm-table-kv tr + tr .pm-td { border-top: 1px solid var(--border); }
.pm-table-kv .pm-th {
  background: var(--blue); color: #fff;
  width: 150px; text-align: center; vertical-align: middle;
  font-size: 16px; font-weight: 800; letter-spacing: 0.04em;
  padding: 18px 16px; border-radius: 0;
}
.pm-table-kv .pm-td {
  background: #fff; vertical-align: middle;
  padding: 16px 22px; font-size: 17.5px; color: var(--navy);
  border-left: 1px solid var(--border);
}
.pm-table-kv .pm-td .plan-list { list-style: none; }
.pm-content-list li { border-bottom: none; padding: 5px 0; font-size: 16px; }

/* 表組のスマホ対応：ラベル→内容の順に縦積み（既存表と同様） */
@media (max-width: 600px) {
  .pm-table-kv { display: block; }
  .pm-table-kv tbody,
  .pm-table-kv tr,
  .pm-table-kv .pm-th,
  .pm-table-kv .pm-td { display: block; width: 100%; }
  .pm-table-kv tr { margin: 0; border: 0; border-radius: 0; }
  .pm-table-kv tr + tr .pm-th { border-top: 1px solid var(--border); }
  .pm-table-kv .pm-th { text-align: left; padding: 10px 16px; }
  .pm-table-kv .pm-td { border-left: 0; border-top: 0; padding: 14px 16px; }
  .pm-table-kv .pm-td::before { content: none; }
}

/* ===== PROCESS ===== */
.process-sec { background: linear-gradient(180deg, var(--blue-bg) 0%, white 100%); }
/* Plan tabs */
.plan-tabs { display: flex; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 36px; }
.plan-tab { flex: 1; padding: 13px 16px; text-align: center; font-size: 16px; font-weight: 700; color: var(--gray); background: white; cursor: pointer; border-right: 1px solid var(--border); transition: all 0.2s; }
.plan-tab:last-child { border-right: none; }
.plan-tab.active { background: var(--blue); color: white; }
.plan-tab:hover:not(.active) { background: var(--blue-pale); color: var(--blue); }
.plan-tab-content { display: none; opacity: 0; transition: opacity 0.4s ease; }
.plan-tab-content.active { display: block; opacity: 0; }
.plan-tab-content.active.shown { opacity: 1; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.proc-step { background: white; border-radius: 18px; padding: 24px; border: 1px solid var(--border); position: relative; }
.proc-step::after { content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4l6 6-6 6' stroke='%23ff5b1f' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.proc-step:nth-child(3n)::after { display: none; }
.proc-step:last-child::after { display: none; }
.ps-n { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 0px; }
.ps-title { font-size: 17.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.ps-desc { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-sec { background: white; }
.faq-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 900px; margin: 0 auto; }
.faq-item2 { border-bottom: 1px solid var(--border); padding: 0 28px 0 0; }
.faq-item2:nth-child(even) { padding: 0 0 0 28px; border-left: 1px solid var(--border); }
.faq-q2 { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0; cursor: pointer; transition: color 0.15s; }
.faq-q2:hover { color: var(--blue); }
.fq2-icon { flex-shrink: 0; width: 26px; height: 26px; background: var(--blue); color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.fq2-text { font-size: 16.5px; font-weight: 600; flex: 1; line-height: 1.5; padding-top: 2px; }
.fq2-arr { flex-shrink: 0; transition: transform 0.5s ease; color: var(--blue); margin-top: 4px; }
.faq-a2 { padding: 0 0 0 38px; font-size: 15.5px; color: var(--gray); line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.4s ease, opacity 0.4s ease; opacity: 0; }
.faq-item2.open .faq-a2 { max-height: 300px; padding: 0 0 18px 38px; opacity: 1; }
.faq-item2.open .fq2-arr { transform: rotate(180deg); }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--blue-mid) 100%); background-size: 220% 220%; animation: gradientFlow 9s ease infinite; padding: 72px 28px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='white' fill-opacity='0.05'/%3E%3C/svg%3E"); }
.cta-banner-inner { position: relative; z-index: 1; }
.cta-title2 { font-size: clamp(25.5px,3.5vw,39px); font-weight: 900; color: white; margin-bottom: 12px; line-height: 1.4;letter-spacing: 1px; }
.cta-desc2 { font-size: 18.5px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
/* 無料相談＝MVメインボタンと同色（オレンジ）／資料DL＝MVサブボタンと同色（イエロー）。
   ホバーは全てヘッダー右CTAと同じネイビーに統一。 */
.btn-cw, .btn-co { position: relative; overflow: hidden; }
.btn-cw { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(120deg, var(--teal) 0%, var(--teal-mid) 100%); color: #fff; font-size: 18.5px; font-weight: 800; padding: 15px 36px; border-radius: 14px; transition: all 0.2s; box-shadow: 0 6px 22px rgba(255,91,31,0.4); }
.btn-cw:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 28px rgba(255,91,31,0.55); }
.btn-co { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(120deg, var(--blue) 0%, var(--blue-mid) 100%); color: #fff; font-size: 17.5px; font-weight: 700; padding: 13px 30px; border-radius: 14px; transition: all 0.2s; box-shadow: 0 6px 22px rgba(0,85,255,0.35); }
.btn-co:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 28px rgba(0,85,255,0.5); }

/* CTA banner – light variant（青系の濃淡でグラデーション） */
.cta-banner-light { background: linear-gradient(135deg, var(--blue-bg) 0%, var(--blue-pale) 50%, var(--blue-mid) 100%); background-size: 220% 220%; animation: gradientFlow 10s ease infinite; }
.cta-banner-light::before { background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%230055ff' fill-opacity='0.06'/%3E%3C/svg%3E"); }
.cta-banner-light .cta-title2 { color: var(--navy); }
.cta-banner-light .cta-desc2 { color: var(--gray); }
/* btn-cw / btn-co の配色・ホバーは共通ルール（MVと同色＋ネイビーホバー）に統一 */
/* CTA banner – 左右にイラストを配置 */
.cta-banner-flex { display: flex; align-items: center; justify-content: center; gap: clamp(16px,3vw,48px); }
.cta-banner-text { flex: 0 1 auto; }
.cta-side-img { flex: 0 0 auto; width: clamp(120px,16vw,220px); height: auto; align-self: flex-end; }
@media (max-width: 900px) { .cta-side-img { display: none; } }
@media (max-width: 600px) { .cta-title2-br { display: none; } }

/* ===== PAGE TOP ===== */
.page-top { position: fixed; right: 24px; bottom: 24px; z-index: 180; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(4,30,110,0.3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s, background 0.2s; }
.page-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.page-top:hover { background: var(--navy); transform: translateY(-2px); }
.page-top svg { width: 24px; height: 24px; fill: white; }
@media (max-width: 540px) { .page-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ===== CONTACT ===== */
.contact-sec { background: var(--blue-bg); }
.contact-tabs { display: flex; gap: 0; border-radius: 10px 10px 0 0; overflow: hidden; width: 100%; margin: 0 0; }
.contact-tab { flex: 1; padding: 16px 20px; text-align: center; font-size: 17.5px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.contact-tab.tab-consult { background: var(--blue-pale); color: var(--navy); }
.contact-tab.tab-consult.active { background: var(--blue); color: white; }
.contact-tab.tab-document { background: var(--teal-pale); color: var(--teal-mid); }
.contact-tab.tab-document.active { background: var(--teal); color: white; }
.contact-tab svg { width: 18px; height: 18px; fill: currentColor; }
.contact-tab-content { display: none; opacity: 0; transition: opacity 0.45s ease; }
.contact-tab-content.active { display: block; opacity: 0; }
.contact-tab-content.active.shown { opacity: 1; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 40px 0 0; }
.contact-left p { font-size: 18.5px; color: var(--gray); line-height: 1.85; margin-top: 16px; }
.contact-point { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.cp-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; margin-top: 10px; flex-shrink: 0; }
.cp-dot.teal { background: var(--teal); }
.cp-text { font-size: 17.5px; color: var(--gray); }
.contact-form-wrap { background: white; border-radius: 20px; padding: 36px; box-shadow: 0 4px 24px rgba(0,85,255,0.08); border: 1px solid var(--border); }
.contact-form-wrap.teal-theme { border-color: #ffe6a3; box-shadow: 0 4px 24px rgba(245,158,11,0.12); }
.form-g { margin-bottom: 20px; }
.form-l { display: block; font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.form-l span { color: #c0392b; font-size: 14px; font-weight: 500; margin-left: 4px; }
.form-c { width: 100%; border: 1.5px solid var(--border); border-radius: 14px; padding: 11px 14px; font-size: 17.5px; outline: none; transition: all 0.2s; font-family: inherit; background: white; }
.form-c:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,85,255,0.1); }
.form-c.teal:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }
textarea.form-c { height: 260px; resize: vertical; }
.form-btn { width: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-mid), var(--blue)); background-size: 220% 220%; animation: gradientFlow 8s ease infinite; color: white; border: none; padding: 15px; border-radius: 14px; font-size: 18.5px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,85,255,0.3); }
.form-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.form-btn.teal { background: linear-gradient(90deg, var(--teal), var(--teal-mid), var(--teal)); background-size: 220% 220%; box-shadow: 0 4px 16px rgba(245,158,11,0.3); }

/* Contact title dynamic */
.contact-title-consult { display: block; }
.contact-title-document { display: none; }
.contact-tab-content:not(.active) .contact-title-consult,
.contact-tab-content:not(.active) .contact-title-document { display: none; }
.msg-success { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 10px; padding: 28px 24px; text-align: center; margin-bottom: 24px; }
.msg-success .msg-icon { font-size: 41.5px; margin-bottom: 12px; }
.msg-success .msg-title { font-size: 19.5px; font-weight: 800; color: #2e7d32; margin-bottom: 8px; }
.msg-success .msg-body { font-size: 16px; color: #388e3c; line-height: 1.7; }
.msg-error { background: #fdecea; border: 1px solid #ef9a9a; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.msg-error-title { font-size: 15.5px; font-weight: 700; color: #c62828; margin-bottom: 6px; }
.msg-error ul { padding-left: 18px; margin: 0; }
.msg-error ul li { font-size: 15px; color: #c62828; margin-bottom: 2px; }

/* ===== FOOTER ===== */
/* やわらかい背景パターン：
   ・最前面に微細なドットテクスチャ（オーバーレイに埋もれないよう最上層に配置）
   ・カラー(--navy)の対角オーバーレイ … 左上 0.8 → 右下 0.98
   ・下地を「明るいオレンジ→濃色」のグラデにして、左上を明るく暖かく見せる */
.footer {
  position: relative; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='1.3' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E"),
    radial-gradient(circle at 95% 5%, rgba(0,85,255,0.4) 0%, transparent 45%),
    radial-gradient(circle at 5% 100%, rgba(0,212,255,0.28) 0%, transparent 45%),
    linear-gradient(135deg, #2e8bff 0%, #0055ff 40%, #041e6e 70%, #2e8bff 100%);
  background-size: 22px 22px, auto, auto, 260% 260%;
  animation: footerGradientFlow 12s ease infinite;
  color: rgba(255,255,255,0.65); padding: 48px 28px 24px;
}
@keyframes footerGradientFlow { 0% { background-position: 0 0, 0 0, 0 0, 0% 50%; } 50% { background-position: 0 0, 0 0, 0 0, 100% 50%; } 100% { background-position: 0 0, 0 0, 0 0, 0% 50%; } }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 14px; background: #fff; padding: 10px 18px; border-radius: 8px; }
.footer-logo-img { height: 52px; }
.footer-tagline { font-size: 15px; color: rgba(255,255,255,0.55); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: 15px; transition: color 0.2s; }
.footer-nav a:hover { color: white; }
.footer-sep { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* スマホ・タブレットでも動画を表示（旧: display:none） */
  .hero-visual { display: flex; margin-top: 8px; }
  .mission-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .feat-header { flex-direction: column; align-items: flex-start; }
  .feat-subtext { text-align: left; max-width: 100%; }
}
@media (max-width: 768px) {
  .works-grid { grid-template-columns: repeat(2,1fr); }
  /* 541〜768px：3列だと「大学・研究機関との取引」が折り返すため縦1列にする */
  .works-stats { grid-template-columns: 1fr; }
  .ws { border-right: none; border-bottom: 1px solid var(--border); }
  .ws:last-child { border-bottom: none; }
  .plans { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr !important; }
  .proc-step { width: 100% !important; grid-column: auto !important; }
  .proc-step::after { display: none !important; }
  .faq-2col { grid-template-columns: 1fr; }
  .faq-item2, .faq-item2:nth-child(even) { padding: 0; border-left: none; }
  .hero-strip-inner { flex-wrap: wrap; }
  .hero-strip-item { min-width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero-strip-item:last-child { border-bottom: none; }
}
@media (max-width: 540px) {
  .sec { padding: 60px 20px; }
  .works-grid { grid-template-columns: 1fr; }
  /* Results（200+ / 80%+ / 2000+）はスマホで縦1列に */
  .works-stats { grid-template-columns: 1fr; }
  .ws { border-right: none; border-bottom: 1px solid var(--border); }
  .ws:nth-child(3) { border-right: none; }
  .ws:last-child { border-bottom: none; }
  .hero { padding: 100px 20px 0; }
  /* スマホ表示ではメインコピーをひと回り大きく */
  .hero-title { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .btn-hero-main, .btn-hero-sub { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: 24px 16px; }
  .hero-strip-item { min-width: 100%; }
  .plan-tabs { flex-direction: column; }
  .plan-tab { border-right: none !important; border-bottom: 1px solid var(--border); }
  /* ロゴをスマホで少し縮小 */
  .header-inner { height: 70px; }
  .logo-img { height: 42px; }
}

/* ================================================
   Mobile drawer menu（高級感のあるスライドイン）
   ================================================ */
/* PCでは安心要素・背景は非表示 */
.nav-foot { display: none; }
.nav-backdrop { display: none; }
.hamburger span { transition: transform .4s cubic-bezier(0.16,1,0.3,1), opacity .25s ease; }

@media (max-width: 1000px) {
  /* 背景オーバーレイ（ふわっと暗転＋ブラー） */
  .nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(43,29,18,0.45);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
    z-index: 198;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }

  /* ドロワー本体：右からスライドイン */
  .nav {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    position: fixed; top: 0; right: 0;
    width: min(84vw, 340px); height: 100vh; height: 100dvh;
    padding: 104px 30px 36px;
    background: linear-gradient(180deg, #ffffff 0%, var(--blue-bg) 100%);
    box-shadow: -18px 0 50px rgba(43,29,18,0.20);
    transform: translateX(105%);
    transition: transform .55s cubic-bezier(0.16,1,0.3,1);
    z-index: 199; overflow-y: auto;
  }
  .nav.sp-open { transform: translateX(0); }

  /* メニュー項目：開いたら順に浮き上がる */
  .nav a:not(.header-cta) {
    font-size: 18.5px; font-weight: 600; color: var(--gray-dark);
    padding: 17px 4px; border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateX(26px);
    transition: opacity .5s ease, transform .55s cubic-bezier(0.16,1,0.3,1), color .2s ease;
  }
  .nav a:not(.header-cta):hover { color: var(--blue); }
  .nav.sp-open a { opacity: 1; transform: translateX(0); }
  .nav.sp-open a:nth-child(1) { transition-delay: .10s; }
  .nav.sp-open a:nth-child(2) { transition-delay: .16s; }
  .nav.sp-open a:nth-child(3) { transition-delay: .22s; }
  .nav.sp-open a:nth-child(4) { transition-delay: .28s; }
  .nav.sp-open a:nth-child(5) { transition-delay: .34s; }
  .nav.sp-open a:nth-child(6) { transition-delay: .40s; }

  /* ドロワー内CTAボタン */
  .nav .header-cta {
    margin-top: 26px; text-align: center; white-space: nowrap;
    padding: 16px 22px; border-radius: 14px; font-size: 17.5px;
    opacity: 0; transform: translateY(14px);
    transition: opacity .55s ease .42s, transform .55s cubic-bezier(0.16,1,0.3,1) .42s, background .2s, box-shadow .2s;
  }
  .nav.sp-open .header-cta { opacity: 1; transform: translateY(0); }

  /* 安心感のあるフッター */
  .nav-foot {
    display: block; margin-top: auto; padding-top: 26px;
    border-top: 1px dashed var(--border);
    opacity: 0; transform: translateY(12px);
    transition: opacity .6s ease .52s, transform .6s ease .52s;
  }
  .nav.sp-open .nav-foot { opacity: 1; transform: translateY(0); }
  .nav-foot-label { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: .1em; margin-bottom: 8px; }
  .nav-foot-note { font-size: 14.5px; color: var(--gray); line-height: 1.85; }

  /* メニュー開放中は背面スクロールをロック */
  body.menu-open { overflow: hidden; }

  /* ハンバーガー → × へ変形 */
  .hamburger { position: relative; z-index: 201; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* 動きを抑える設定のユーザーには控えめに */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav a, .nav .header-cta, .nav-foot, .nav-backdrop, .hamburger span { transition-duration: .01ms !important; }
  .hero::before { animation: none !important; transform: none !important; }
  .fade-in, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ================================================
   「無料相談はこちら」と「資料を請求する」の横幅を統一
   （無料相談はこちらボタンの幅に合わせる）
   ================================================ */
.btn-hero-main, .btn-hero-sub,
.cta-actions .btn-cw, .cta-actions .btn-co {
  justify-content: center;
  min-width: 240px;
}
/* スマホ縦並び時は横幅100%のまま */
@media (max-width: 540px) {
  .btn-hero-main, .btn-hero-sub { min-width: 0; }
}
