/* ================================
   TOKENS / BASE
================================ */
:root{
  --bg:#f5fbfe;
  --card:#ffffff;
  --ink:#153247;
  --muted:#5b7489;
  --brand:#2ea7d0;          /* メイン：明るいアクア */
  --brand-weak:#cfeef9;     /* 淡アクア */
  --accent:#1f89b0;         /* 濃アクア */
  --ok:#1b9e85;
  --warn:#e08a00;
  --focus:#0f70a0;
  --shadow:0 8px 22px rgba(10,50,70,.08);
  --radius:14px;
  --space:16px;
  --max:960px;              /* わずかに広げて華やかに */
  --tap:48px;

  /* FV 背景用 */
  --fv-grad1: radial-gradient(1200px 420px at 50% -40%, rgba(46,167,208,.18), transparent 60%);
  --fv-grad2: linear-gradient(180deg, #f9feff 0%, #eef8fe 60%, #e8f5fd 100%);
}

img{
  width: 100%;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
body{
  margin:0;
  font-family:"Noto Sans JP",system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(46,167,208,.14), transparent 60%),
    radial-gradient(900px 420px at 90% 110%, rgba(46,167,208,.10), transparent 60%),
    linear-gradient(180deg,#fcfeff 0%, #eef8fe 55%, #e8f5fd 100%);
  line-height:1.85;
  font-size:16px;
}


/* a11y: skip link */
.skip{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip:focus{
  position:static;width:auto;height:auto;padding:8px 12px;background:#fff;border:2px solid var(--focus);border-radius:8px;display:inline-block;margin:8px;
}

.wrap{max-width:var(--max);margin:0 auto;padding:0 16px}

/* ================================
   HEADER
================================ */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid #e6f1f7;
}
.header-wrap{
  display:flex;align-items:center;justify-content:space-between;
  min-height:64px;
}
.brand img{display:block;height:40px}

/* Mobile Nav */
.navcheck{display:none}
.menu-toggle{display:flex;align-items:center;gap:8px;cursor:pointer}
.menu-toggle .burger{display:inline-block;width:24px;height:18px;position:relative}
.menu-toggle .burger span{position:absolute;left:0;right:0;height:2px;background:var(--ink);border-radius:2px}
.menu-toggle .burger span:nth-child(1){top:0}
.menu-toggle .burger span:nth-child(2){top:8px}
.menu-toggle .burger span:nth-child(3){bottom:0}
.menu-text{font-size:14px;color:var(--muted)}
.site-nav{display:none}
.navcheck:checked ~ .menu-toggle{color:var(--brand)}
.navcheck:checked ~ .site-nav{
  display:block;position:absolute;top:64px;left:0;right:0;background:#fff;border-top:1px solid #e6f1f7
}
.site-nav ul{list-style:none;margin:0;padding:8px 16px;display:grid;gap:6px}
.site-nav a{display:block;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--ink)}
.site-nav a:hover{background:#f3fbff}

/* ================================
   LEGACY HERO (既存セクションを保持)
================================ */
.hero{
  padding:34px 0 20px;
  background:
    radial-gradient(1200px 320px at 50% -60%, rgba(46,167,208,0.18), transparent 60%),
    linear-gradient(180deg, rgba(195,239,255,.35), rgba(255,255,255,0));
  overflow:clip;
}
.hero h1{
  font-size:clamp(22px, 4.4vw, 32px);
  margin:0 0 3rem;
  letter-spacing:.02em;
}
.hero .lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:clamp(15px, 2.6vw, 18px);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap:clamp(16px, 3vw, 28px);
  align-items:center;
}
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
}
.blob{position:absolute;border-radius:50%;filter:blur(44px);opacity:.42;pointer-events:none}
.blob.b1{width:320px;height:320px;right:-120px;top:-80px;background:#d8f6ff}
.blob.b2{width:280px;height:280px;left:-100px;bottom:-80px;background:#eafaff}
.hero-figure{text-align:right}
.hero-figure img{width:min(560px,92%);height:auto;border-radius:24px;box-shadow:0 20px 60px rgba(33,183,207,.16)}
@media (max-width:900px){ .hero-figure{text-align:center} }
.hero-bullets{
  display:flex;flex-wrap:wrap;gap:.6rem .8rem;
  padding:0;margin:.4rem 0 0;list-style:none;color:#4b5a66;font-size:.95rem
}
.hero-bullets li{
  background:#fff;border:1px solid rgba(33,183,207,.18);
  padding:.38rem .7rem;border-radius:999px
}

/* ================================
   BUTTONS (共通)
================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:var(--tap);padding:11px 16px;border:0;border-radius:12px;
  font-weight:700;letter-spacing:.02em;cursor:pointer;text-decoration:none;
  transition:.2s ease;box-shadow:var(--shadow);user-select:none;
}
.btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.btn.primary{background:var(--brand);color:#fff}
.btn.primary:hover{background:var(--accent)}
.btn.secondary{background:#eaf6fd;color:var(--ink)}
.btn.secondary:hover{background:#dbf0fb}
.btn.ghost{background:#fff;border:2px solid #d6ecf6;color:var(--accent)}
.btn.ghost:hover{background:#f4fbff}

/* ================================
   HERO FV（新ファーストビュー）
================================ */
.hero-fv{
  position:relative;
  overflow:clip;
  background: var(--fv-grad1), var(--fv-grad2);
  padding: clamp(28px, 5.5vw, 56px) 0 clamp(24px, 4.5vw, 40px);
}
.hero-fv .fv-overlay{
  position:absolute; inset:0; z-index:0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.7)), var(--hero-bg, none);
  background-size: cover; background-position: center;
  filter: blur(1.5px) saturate(105%); opacity:.85;
}
.fv-wrap{ position: relative; z-index:1; text-align:center; }

.fv-eyebrow{
  display:inline-block; font-weight:700; letter-spacing:.08em;
  color:#1f89b0; background:#ffffffcc; padding:.32rem .7rem; border-radius:999px;
  box-shadow:0 6px 18px rgba(0,0,0,.05); margin:0 0 .7rem;
}

.fv-title{
  color:#153247; margin:.2rem 0 .6rem; line-height:1.35; text-wrap:balance;
  font-size: clamp(22px, 5vw, 36px);
}
.fv-title span{ color:var(--accent); background:#ffffffb3; padding:0 .25em; border-radius:.35em; box-decoration-break:clone; }

.fv-sub{ color:#4a5c69; font-size:clamp(15px, 2.6vw, 18px); line-height:1.9; margin:0 auto 1rem; max-width:44rem; }

.fv-ctas{ display:flex; flex-wrap:wrap; gap:.6rem .8rem; align-items:center; justify-content:center; margin:.8rem 0 1rem; }

/* CTA（キラッと光る） */
.btn.fv-cta{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  overflow:hidden;
  background:linear-gradient(180deg,#31b4dd,#2196bf);
  color:#fff;border:none;border-radius:999px;
  padding:14px 32px;font-size:17px;font-weight:600;letter-spacing:.02em;
  box-shadow:0 8px 20px rgba(33,183,207,.25);
  transition:transform .3s ease, filter .3s ease;
}
.btn.fv-cta::after{
  content:"";
  position:absolute; top:0; left:-75%;
  width:50%; height:100%;
  background:linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%);
  transform:skewX(-25deg);
  animation:shine 3s ease-in-out infinite;
}
.btn.fv-cta::before{ /* 右端の矢印 */
  content:"›";
  font-size:18px;
  margin-left:10px;
  line-height:1;
}
.btn.fv-cta:hover{ filter:brightness(1.1); transform:translateY(-2px); }

@keyframes shine{
  0%{ left:-75%; }
  50%{ left:125%; }
  100%{ left:125%; }
}
/* 動きを抑制したいユーザー設定に配慮 */
@media (prefers-reduced-motion: reduce){
  .btn.fv-cta::after{ animation:none; }
}

.btn.fv-ghost{
  background:#fff; border:2px solid #d6ecf6; color:var(--accent);
  border-radius:14px; padding:12px 18px; font-weight:700;
}
.btn.fv-ghost:hover{ background:#f4fbff; }

.fv-badges{
  list-style:none; padding:0; margin:.2rem auto 1.2rem;
  display:flex;flex-wrap:wrap;gap:.5rem .6rem;justify-content:center;
  color:#425462; font-size:.98rem;
}
.fv-badges li{
  background:#fff;border:1px solid rgba(33,183,207,.18);
  padding:.45rem .7rem;border-radius:999px; box-shadow:0 6px 16px rgba(0,0,0,.04);
}
.fv-badges span{ margin-right:.3rem; }


.fv-steps{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  margin:8px auto 4px; max-width:920px;
}
.fv-steps .step{ background:#fff; border:1px solid #e7f2f8; border-radius:16px; padding:12px; box-shadow:0 8px 22px rgba(10,50,70,.06); }
.fv-steps .num{ display:inline-block; font-size:12px; font-weight:700; color:#0f70a0; background:#eaf6fd; padding:.25rem .5rem; border-radius:999px; margin-bottom:.25rem; }
.fv-steps p{ margin:.2rem 0 0; font-weight:600; color:#2b3d4c; }

.fv-trust{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  margin:14px auto 0; max-width:920px;
}
.trust-card{ background:#f7fcff; border:1px solid #e1eef5; border-radius:14px; padding:12px; text-align:left; }
.trust-card strong{ display:block; color:#123; }
.trust-card p{ margin:.3rem 0 0; color:#4c6070; font-size:.95rem; }

/* Deco */
.fv-deco{ position:absolute; filter:blur(28px); opacity:.65; }
.fv-deco--tl{ width:300px; height:300px; left:-80px; top:-120px; }
.fv-deco--br{ width:360px; height:360px; right:-120px; bottom:-140px; }



/* ================================
   QUIZ / RESULT
================================ */
.card,.result{
  background:var(--card);
  border:1px solid #e8f1f6;border-radius:18px;
  box-shadow:0 10px 28px rgba(15,70,110,.08);
  padding:18px;margin:16px 0 26px;
}
.hidden{display:none}
.progress{height:8px;background:#e9f6fc;border-radius:999px;overflow:hidden;margin:6px 0 12px}
.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#9edbf1,#2ea7d0)}
.q-num{font-size:12px;color:var(--muted);margin-bottom:4px}
.q-title{font-size:20px;margin:4px 0 10px}
.q-options{display:grid;gap:10px}
.opt{
  display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #e7f2f8;border-radius:12px;cursor:pointer;background:#fbfeff;
}
.opt:hover{background:#f4fbff}
.opt input{width:22px;height:22px}
.opt span{flex:1;font-size:16px}
.actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap}
.note{color:var(--muted);font-size:12px;margin-top:8px}

.result-card{
  background:#fff;border:1px solid #e8f1f6;border-radius:18px;
  box-shadow:0 10px 28px rgba(15,70,110,.08);
  padding:18px; margin:16px 0 28px;
}
.result-head{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center}
.type-badge{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--brand-weak);color:var(--accent);font-weight:700;font-size:13px}
.type-name{font-size:20px;margin:4px 0 6px;letter-spacing:.02em}
.type-desc{color:var(--muted);font-size:14px;margin:0}
.type-figure{width:96px;height:96px;border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#e8f8ff,#f7fdff);border:1px solid #e1eef5;display:flex;align-items:center;justify-content:center}
.type-figure img{width:100%;height:100%;object-fit:cover;display:block}
.hr{height:1px;background:#edf4f9;margin:12px 0;border-radius:999px}
.block h3{font-size:16px;margin:0 0 6px}
.kv-list{margin:6px 0 0 0;padding:0 0 0 18px}
.kv-list li{margin:4px 0}
.result-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.btn.outline{background:#fff;border:2px solid #bfe9f7;color:var(--accent)}
.btn.outline:hover{background:#f4fbff}
.routine{background:#f7fcff;border:1px solid #e1eef5;border-radius:12px;padding:10px 12px;font-size:14px}
.routine p{margin:6px 0}
.routine strong{color:#0f70a0}

/* 監修 */
.supervisor-row{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center}
.supervisor-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:linear-gradient(180deg,#d9f1ff,#effaff);border:1px solid #d7eaf5}
.supervisor-avatar img{width:100%;height:100%;object-fit:cover}
.supervisor-meta strong{display:block}
.supervisor-meta small{color:var(--muted)}
.actions.bottom{margin-top:14px}

/* FOOTER */
.site-footer{padding:26px 0 40px;border-top:1px solid #e6f1f7;background:#f8fcff}
.footer-inner{text-align:center}
.footer-brand img{opacity:.92}
.concept{color:var(--muted);font-size:14px;margin:10px 0 6px}
.copy{color:#97afbf}

/* LAYOUT */
#quizSection,#result{width:100%;max-width:720px;margin-left:auto;margin-right:auto;}
.hero .wrap{text-align:center}
button,.opt,.site-nav a{min-height:48px}

/* INTRO TILES */
.intro-tiles{margin:6px auto 22px;display:grid;gap:12px;grid-template-columns:repeat(3,1fr)}
.intro-tiles .tile{background:#fff;border:1px solid rgba(33,183,207,.12);border-radius:16px;padding:14px;text-align:center;box-shadow:0 6px 20px rgba(0,0,0,.04)}
.intro-tiles img{width:48px;height:48px;margin-bottom:.4rem}
.intro-tiles p{margin:0;color:#36424d;line-height:1.7}
@media (max-width:900px){ .intro-tiles{grid-template-columns:1fr} }

/* Typography tweaks */
p,li{letter-spacing:.01em}
.q-title,.type-name{letter-spacing:.02em}


/* ===== [1] SPで背景が切れない：cover→contain or 背景OFF ===== */
/* 画像を背景(--hero-bg)で使っている場合はcontainに */
@media (max-width: 600px){
  .hero-fv .fv-overlay{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
  }
  /* 前面の画像を使う場合は“縮小のみ”で可視域を担保 */
  .fv-visual img{
    display:block;
    width:100%;
    height:auto;
    object-fit: contain; /* 念のため：ノークロップ */
  }
}

/* 背景が邪魔で前面画像の人物が見えにくい場合は、SPで背景自体を消す版 */
/* ※上のcontain案とどちらか片方だけ使ってください */
@media (max-width: 600px){
  .hero-fv .fv-overlay{ display:none; }
}

/* ===== [2] キラン再有効化（モバイルでも常時ON） ===== */
/* 既存の reduce-motion 無効化を上書き（確実に光らせたい場合） */
.hero-fv .btn.fv-cta::after{
  animation: shine 2.8s ease-in-out infinite !important;
  pointer-events: none;
}

/* ついでに矢印の見やすさ微調整（任意） */
.hero-fv .btn.fv-cta::before{
  content:"›";
  font-size:18px;
  margin-left:10px;
  line-height:1;
}
/* ================================
   FV画像レスポンシブ（縦横比なし）
================================ */
.fv-visual img {
  display: block;
  max-width: 100%;
  height: auto;
  width: 100%;
  border-radius: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 20px 60px rgba(33, 183, 207, 0.16);
  object-fit: none; /* ← 比率固定せず、画像そのまま */
}

/* モバイルで人物が切れず自然に縮小 */
@media (max-width: 768px) {
  .fv-visual img {
    width: 100%;
    height: auto;
    object-fit: contain; /* スマホでは全体表示 */
  }
}
