:root {
  --navy: #0c1a2b;
  --blue: #294973;
  --ink: #0f172a;
  --bg: #ffffff;

  /* ヘッダー高さ（コンテンツの上余白にも使用） */
  --header-h: 60px; /* モバイル基準 */
}

/* コンテンツがヘッダー裏に潜らないよう、全体に上余白 */
html, body { height: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding-top: var(--header-h);
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
  font-family: "凸版文久見出しゴシック Std", "Bunkyu Midashi Gothic", sans-serif;
  line-height: 1.6;
}

:root {
  --reveal-distance: 16px;
  --reveal-duration: .65s;
  --reveal-ease: cubic-bezier(.22,.61,.36,1); /* しっとり系 */
}

/* ベース：非表示状態 */
.reveal {
  opacity: 1;
  transform: translateY(var(--reveal-distance));
  filter: none;
  will-change: opacity, transform, filter;
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease);
}

/* 表示状態 */
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 方向・効果のバリエーション */
.reveal--up    { transform: translateY(var(--reveal-distance)); }
.reveal--down  { transform: translateY(calc(var(--reveal-distance) * -1)); }
.reveal--left  { transform: translateX(var(--reveal-distance)); }
.reveal--right { transform: translateX(calc(var(--reveal-distance) * -1)); }
.reveal--zoom  { transform: scale(.98); }
.reveal--blur  { filter: blur(8px); }

/* 子要素を順番に出す（ステッガー） */
.reveal.reveal--stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  transition-delay: var(--d, 0ms); /* JSで各子に --d を振る */
}
.reveal.reveal--stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* 低速端末向けに少し軽くしたい場合（任意） */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal--stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}



/* ===== Header（固定版） ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: #fff;
  /* 半透明にしたい場合は rgba(255,255,255,.9) などに */
  backdrop-filter: saturate(120%) blur(6px);
  display: grid;
  place-items: center;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px; /* 内側余白はそのまま */
  width: 100%;
}

/* Brand (header logo) */
.brand{
  display:flex;
  align-items:center;
  gap:0;
  text-decoration:none;
}
.brand__logo{
  display:block;
  height: 40px;
  width:auto;
  object-fit:contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
}

/* グロナビ */
.nav { margin-left: auto; display: flex; gap: 24px; }
.nav a { color: #0f172a; text-decoration: none; font-weight: 600; opacity: .9; }
.nav a:hover { opacity: 1; }

/* デスクトップ時はヘッダー高さを少し増やす（体感で微調整可） */
@media (min-width: 960px){
  :root { --header-h: 64px; }
  .brand__logo{ height: 32px; }
}

/* アンカー飛びズレ対策（任意）：ターゲット要素側に .anchor-target を付ける */
.anchor-target { scroll-margin-top: var(--header-h); }


/* 右側ナビを四角ボタン化（HTML変更不要） */
.site-header .nav{
  margin-left:auto;
  display:flex; align-items:center; gap:12px;
}

.site-header .nav a{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 14px;
  border-radius:8px;                 /* ← 四角（角丸をもっと減らすなら 4px や 0） */
  font-weight:800; letter-spacing:.01em;
  text-decoration:none;
  border:1.6px solid #0f2237;        /* アウトライン用のネイビー */
  color:#0f2237;
  background:#fff;                   /* ベースは白 */
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease, color .18s ease;
}
.site-header .nav a:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(2,6,23,.12);
}
.site-header .nav a:active{ transform:none; box-shadow:none; }

/* 先頭（無料デモ）だけプライマリの“塗り”ボタンに */
.site-header .nav a:first-child{
  background:#0f2237;
  border-color:#0f2237;
  color:#fff;
}
.site-header .nav a:first-child:hover{ filter:brightness(1.05); }

/* モバイル微調整 */
@media (max-width: 720px){
  .site-header .nav{ gap:8px; }
  .site-header .nav a{ height:38px; padding:0 12px; font-weight:700; }
}




.hero--fullbleed {
  background: radial-gradient(
    circle at 70% 30%, 
    #d8eff3 0%,    /* 少し濃くして始点を強める */
    #edf7f9 40%,   /* 中間を明るめに */
    #f6fafc 85%    /* 終点を遅めに */
  );
}


.hero__inner{
  max-width:1500px;
  padding: 18px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 320px; /* 左 / 中央画像 / 右フォーム */
  gap: 40px; 
  align-items: center;
  position:relative;
  padding-bottom:80px;    
}

/* オーバーフローの保険（不要なら外してOK） */
html, body { overflow-x: clip; }

/* 左：コピー */
.hero__content{
  display:flex; 
  flex-direction:column; 
  gap:16px; 
  max-width:640px;
  z-index:2;
  position:relative
}

.hero__eyebrow{
  text-decoration: underline;
  font-weight: 800;
  font-size: 30px;
  text-underline-offset: 0.2em;   /* お好みで 0.12em〜0.28em 程度 */
  text-decoration-thickness: 2px;   /* 太さ */
  text-decoration-skip-ink: auto;   /* はね/しっぽ部分の干渉を避ける */
  margin-top: 0px;

}
.hero__title{
  font-size:3rem; 
  font-weight:800;
  line-height:1.3;
  margin-top: 0px;
}
.hero__title span{
  font-size:4rem;
}

.hero__text{
  font-size: 1.1rem;
}
/* 中央：画像 */
.hero__visual img{
  width:100%; 
  max-width:580px; /* 少し大きめ */
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.15));
  border-radius:14px;
}

/* 右スマホフォーム */
:root{
  /* form/card */
  --card-bg:#f8f9fb;
  --card-radius:12px;
  --card-shadow:0 6px 18px rgba(0,0,0,.08);

  /* phone mock */
  --phone-outer:#3b3b3b;
  --phone-inner:#111;
  --screen-bg:#f8f9fb;
  --r-outer:50px;
  --r-bezel:28px;
  --r-screen:20px;
  --notch-w:120px;
  --notch-h:25px;
  --phone-max-w:350px;
}

/* ================================
   HERO: FORM CARD
================================ */
.hero__form{
  position:relative;
  z-index:2;

  max-width:310px;         /* フォーム幅 */
  margin-top:50px;
  left:35%;                /* 既存の位置調整（必要なら削除可） */

  padding:20px;
  border-radius:var(--card-radius);
  background:var(--card-bg);
  box-shadow:var(--card-shadow);
}

.form__title{
  font-weight:800;
  font-size:1.3rem;
  margin-bottom:12px;
}

.hero__form input,
.hero__form select{
  width:100%;
  padding:8px 10px;
  margin-top:5px;
  font-size:.9rem;
  border:1px solid #d8dde6;
  border-radius:6px;
}

/* ================================
   HERO: BACKGROUND IMAGE LAYER
================================ */
.hero__bgimg{
  position:absolute;
  left:54%;
  bottom:0;
  transform:translateX(-50%);
  width:min(800px, 95%);
  pointer-events:none;     /* フォーム操作を邪魔しない */
  z-index:1;               /* テキスト/フォームより下 */
}
.hero__bgimg img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:14px;
  filter:drop-shadow(0 10px 28px rgba(0,0,0,.18));
}

/* ================================
   PHONE MOCK
================================ */
.phone{
  position:relative;
  display:inline-block;
  max-width:var(--phone-max-w);
  padding:10px;                   /* 外枠の厚み */
  border-radius:var(--r-outer);
  background:var(--phone-outer);
  box-shadow:0 10px 25px rgba(0,0,0,.5);
  z-index:2; 
  justify-self:end; 
  top: 5%;
}

.phone__bezel{
  position:relative;
  padding:16px;
  background: #ffffff;
  width: 300px;
  height: 550px;   /* 360〜400pxで調整可 */
  max-width: 96vw;
  aspect-ratio: 8/ 19.5;
  border-radius: 46px;
  box-shadow:
    0 24px 48px rgba(2,6,23,.35),
    inset 0 0 0 2px rgba(255,255,255,.08);
}

.phone__notch{
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width:var(--notch-w);
  height:var(--notch-h);
  background:var(--phone-outer);
  border-bottom-left-radius:14px;
  border-bottom-right-radius:14px;
  z-index:3;
}

.phone__screen{
  height: 100%;
  background: #fff;
  border-radius: 34px;
  padding: 18px 18px 30px; /* 内側余白はここで管理 */
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.phone__homebar{
  position:absolute; left:50%; bottom:10px; transform:translateX(-50%);
  width:34%; height:5px; background:rgba(0,0,0,.22); border-radius:3px;
  pointer-events:none; margin:10px auto 0;
}

/* 既存 hero__form の上書きはそのまま */
.phone .hero__form{
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  max-width: none;
  margin-top: 10px;
  left: auto;
  padding: 0;
}



/* ================================
   CONSENT ROW (最後のチェック行)
   ※ .form__agree があれば優先
================================ */
.hero__form form :is(.form__agree, label:last-of-type){
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  line-height:1;
  font-size:clamp(12px,3.4vw,14px);
  margin:15px 10px 14px;
}
.hero__form form :is(.form__agree, label:last-of-type) input[type="checkbox"]{
  width:18px; height:18px;
  margin:0;
}
.hero__form form :is(.form__agree, label:last-of-type) a{
  color:inherit;
  text-decoration:underline;
}




/*トップレスポンシブ*/
@media (max-width: 678px){

  /* 1カラム化＆順序：コンテンツ → PC画像 ／ フォーム非表示 */
  .hero__inner{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "bgimg";
    gap: 20px;
    text-align: center;
    padding: 28px 16px 24px;
  }
  .hero__content{ grid-area: content; margin: 0 auto; max-width: 620px; }
  .hero__bgimg{ grid-area: bgimg; margin: 12px auto 0; width: 92%; }
  .hero__bgimg img{ display:block; width:100%; height:auto; }
  .phone{ display:none; } /* スマホ型フォームは非表示 */

  /* タイポ（中央ぞろえ／大きめ見出し） */
  .hero__eyebrow{
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 5px;
  }
  .hero__title{
    font-weight: 800;
    font-size: clamp(20px, 6vw, 44px);  /* 大きめ */
    line-height: 1.3;
    margin: 0 0 14px;
  }
  .hero__title span{
  font-size:3rem;
}
 
  .hero__text{
    font-size: clamp(14px, 3.7vw, 16px);
    line-height: 1.8;
    margin: 0 auto 18px;
    max-width: 46ch;
  }

  /* CTA：縦積みの大きいピル型ボタン（赤 → 紺） */
  .cta-row{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(520px, 100%);
    margin: 0 auto;
  }
  .cta-row .btn{
    display:block;
    width:100%;
    padding: 16px 18px;
    border-radius: 9999px; /* ピル型 */
    font-weight: 800;
    font-size: clamp(15px, 4vw, 17px);
    text-align:center;
    margin-top: 0;
  }
  /* 色はお好みで。例として近いトーンを指定 */
  .btn--blue{ background:#e8414c; color:#fff; border:none; }      /* 1段目：赤 */
  .btn--outline{ background:#0f2436; color:#fff; border:none; }   /* 2段目：紺 */

  /* 余白と全体バランス */
  .hero--fullbleed{ padding: 0; } /* すでにhero__innerにpaddingを持たせるなら0でもOK */
}


/* 1100px以下：画像をフローに戻す（重なり解消） */
@media (max-width: 1100px){
  .hero__bgimg{
    position: static !important;   /* ← ここが肝 */
    left: auto !important;
    bottom: auto !important;
    transform: none !important;

    width: min(880px, 94%);
    margin: 16px auto 0;           /* コンテンツの下に余白を作る */
    z-index: 1;                     /* 念のため */
  }
  .hero__bgimg img{
    display:block;
    width:100%;
    height:auto;
  }

  .hero__inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "bgimg";
    align-items: start;             /* テキストと画像が干渉しないよう上揃え */
    gap: 20px;
    text-align: center;
  }
  .hero__content{ grid-area: content; margin: 0 auto; }
  .hero__bgimg{ grid-area: bgimg; }
}

/* 678px以下：スマホはフォーム非表示（重なり予防） */
@media (max-width: 678px){
  .phone{ display:none; }
}





/* モバイルUIっぽく少しだけ強化 */
.phone .form__title{ font-size:0.9rem; margin:6px 0 10px; }
.phone .hero__form label{ font-size:.85rem; }
.phone .hero__form input,
.phone .hero__form select{
  width:100%;
  padding:12px 12px;
  margin-top:5px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  font-size:12px;            /* iOSズーム抑止 */
  background:#f8fafc;
}
.phone .hero__form .check{ 
  display:flex; 
  align-items:center; 
  gap:8px; 
}
.phone .hero__form .btn{
  width: 90%;
  border-radius:999px;
  padding:14px 16px;
  font-size:0.9rem;
  background-color:#41a8ae; color:#fff;
  margin: 0 auto;  
}

/* 目立たせるための必須マーク色（任意） */
.req{ color:#e11d48; font-weight:700; }

/* レスポンシブ：縦並び時も自然に中央に */
@media (max-width: 1100px){
  .phone{ justify-self:center; }
  .phone__bezel{ width: min(400px, 92vw); }
}


/* ボタン（テーマの変数に追従） */
.btn{
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 20px;
  margin-top: 20px;
}
.btn--blue{
  background: #0A1F44;
  color: #fff;
  box-shadow: 0 12px 28px rgba(30,64,175,.45);
}
.btn--blue:hover{ filter: brightness(1.05); }
.btn--outline{
  color: #0a1423;
  border: 1.6px solid #0a1423;
  background: transparent;
}
.btn--outline:hover{ background: rgba(255,255,255,.08); }

@media (max-width: 678px){
  .btn{ font-size:15px; }
}



.clients{
  padding: 24px 0;
}

.clients h1{
  font-size: clamp(22px, 3.2vw, 32px);
  text-align: center;
  font-weight: 800;
  color: var(--ink);
}

.clients__marquee{
  --gap: 48px;           /* ロゴ間隔 */
  --speed: 40s;          /* 1周の速度（短くすると速く） */
  --logo-h: 35px;        /* ロゴの高さ（サイトに合わせて調整） */
  overflow: hidden;
  position: relative;
  /* 端フェード（対応ブラウザ） */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.clients__track{
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  padding: 10px 0;
  animation: marquee var(--speed) linear infinite;
  
}

.clients__track li{ list-style: none; display: flex; align-items: center; }
.clients__track img{
  height: var(--logo-h);
  width: auto;
  object-fit: contain;
  display: block;
  opacity: .95;
}

/* ホバーで一時停止（不要なら削除） */
.clients__marquee:hover .clients__track{ animation-play-state: running; }

/* アニメーション本体：同じ並びを2回置いているので半分ずらして無限ループ */
@keyframes marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(calc(-50% - var(--gap)/2)); }
}

/* モバイル微調整 */
@media (max-width: 720px){
  .clients__marquee{ --gap: 28px; --logo-h: 22px; --speed: 32s; }
}

/* ユーザーの低速設定への配慮 */
@media (prefers-reduced-motion: reduce){
  .clients__track{ animation: none; }
}




/* 中間バナー */
.mid-banner{
  margin: clamp(32px, 6vw, 64px) 0; /* 上下の余白 */
}
.mid-banner__link{
  display:block;
  max-width:700px;
  margin:0 auto;
  overflow:hidden;
  box-shadow:0 16px 25px rgba(2,6,23,.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mid-banner__link:hover{
  transform: translateY(-2px);
  box-shadow:0 18px 40px rgba(2,6,23,.18);
}
.mid-banner picture,
.mid-banner img{
  display:block;
  width:100%;
  height:auto;
}
.mid-banner img{
  /* 比率ロック：PCは横長、スマホは少し縦を深く */
  aspect-ratio: 12 / 4;
  object-fit: cover;
}
@media (max-width: 768px){
  .mid-banner{
    margin: 0;
  }
  .mid-banner img{ 
    aspect-ratio: 12 / 4; 
    width: 90%; margin: 0 auto;
    margin-bottom: 20px
}
}

  /* ===== Pain Section ===== */
.psec{
    background:#f6fafc; /* うっすらグレー（スクショ雰囲気） */
    padding: 40px 20px 70px;
  }
  .psec__inner{
    max-width:1100px; margin:auto;
  }
  .psec__head{ 
    text-align:center; 
    margin-bottom:36px; 
  }
  .psec__title{
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: .02em;
  }
  .psec__underline{
    display:inline-block;
    width:76px; height:6px; border-radius:3px;
    background:var(--blue); margin-top:12px;
  }
  
  .psec__grid{
    display:grid; gap: 28px;
    grid-template-columns: 1fr;
    
  }
  @media (min-width: 960px){
    .psec__grid{ grid-template-columns: repeat(3, 1fr); }
  }
  
  .psec-card{
    background:#fff;
    border:1px solid rgba(2,6,23,.06);
    border-radius:18px;
    box-shadow:0 16px 32px rgba(2,6,23,.08);
    overflow:hidden;
  }

  .psec-card__body{
    padding:22px 22px 26px;
  }

  .psec-card__media {
    position:relative;
    aspect-ratio: 3/2;
    background-image:linear-gradient(to bottom, rgba(0,0,0,.0) 20%),var(--img);
    background-size: cover;
    background-position: center;
    width: 90%;
    margin: 0 auto;
}
  .psec-card__title{
    font-size: clamp(18px,2.1vw,22px);
    font-weight: 800;
    color: var(--navy);
    margin: 6px 0 8px;
  }
  .psec-card__text{
    color:#46566d;
    font-size:15px;
    line-height:1.9;
  }
  

  /* ===== Features Section ===== */
.fsec{
    background:#ffffff;
    padding: 35px 20px 60px;
  }
  .fsec__inner{ max-width:1100px; margin:auto; }
  .fsec__head{ text-align:center; margin-bottom:34px; }
  .fsec__title{
    font-size: clamp(22px,3.2vw,32px);
    font-weight: 900;
    color: var(--navy);
  }
  .fsec__subtitle{
    margin-top:6px;
    color:#5b6b80;
    font-size: clamp(14px,1.3vw,16px);
  }
  .fsec__underline{
    display:inline-block; width:70px; height:6px; border-radius:3px;
    background: var(--blue); margin-top:12px;
  }
  
  .fsec__grid{
    display:grid; gap:28px; margin-top:18px;
    grid-template-columns: 1fr;
  }
  @media (min-width: 960px){
    .fsec__grid{ grid-template-columns: repeat(3, 1fr); }
  }
  
  .fcard{
    background:#fff;
    border:1px solid rgba(2,6,23,.06);
    border-radius:18px;
    box-shadow:0 16px 32px rgba(2,6,23,.08);
    overflow:hidden;
  }
  .fcard__media{
    position:relative;
    aspect-ratio: 16/9;
    background-image:linear-gradient(to bottom, rgba(0,0,0,.0) 20%),var(--img);
    background-size: cover;
    background-position: center;
  }

  .fcard__body{
    padding:22px 22px 26px;
  }
  .fcard__title{
    font-size: clamp(18px,2.1vw,22px);
    font-weight: 800;
    color: var(--navy);
    margin: 6px 0 8px;
  }
  .fcard__text{
    color:#46566d;
    font-size:15px;
    line-height:1.9;
  }

  .features__cta{
    text-align: center;
    margin-top: 30px;
  }
  
/* ===== Results Section ===== */
.rsec{
    background: #0b1626; /* 濃いネイビー */
    color: #fff;
    padding: 40px 20px 80px;
  }
  .rsec__inner{ max-width:1100px; margin:auto; }
  
  .rsec__head{ text-align:center; margin-bottom:34px; }
  .rsec__title{
    font-size: clamp(22px,3.2vw,34px);
    font-weight: 900;
  }
  .rsec__subtitle{
    margin-top:6px;
    color: rgba(255,255,255,.8);
    font-size: clamp(14px,1.3vw,16px);
  }
  .rsec__underline{
    display:inline-block; width:74px; height:6px; border-radius:3px;
    background: var(--blue); margin-top:12px;
  }
  
  /* stats */
  .rsec__stats{
    display:grid; gap:22px; margin-top:26px;
    grid-template-columns: 1fr 1fr;
  }
  @media (min-width: 960px){
    .rsec__stats{ grid-template-columns: repeat(4, 1fr); }
  }
  .rstat{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(200,164,77,.28); /* blue薄縁 */
    border-radius:18px;
    padding: 26px 22px;
    text-align:center;
    box-shadow: 0 12px 26px rgba(0,0,0,.25) inset, 0 10px 24px rgba(2,6,23,.25);
  }
  .rstat__value{
    color: #e0b636;
    font-weight: 900;
    font-size: clamp(34px,4.4vw,44px);
    letter-spacing: .02em;
  }
  .rstat__unit{
    font-size: .55em;
    margin-left: .08em;
    color: #e0b636;
  }
  .rstat__label{
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
  }
  
  /* quotes */
  .rsec__quotes{
    display:grid; margin-top:30px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 1100px;
    gap: clamp(16px, 3.2vw, 28px);      /* ← ここで横/縦の“間”を確保 */
  }
  @media (min-width: 960px){
    .rsec__quotes{ grid-template-columns: 1fr 1fr; }
  }
  .rq{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(200,164,77,.28);
    border-radius:18px;
    padding: 22px 24px 20px;
    box-shadow: 0 10px 24px rgba(2,6,23,.25);
    margin: 0 auto;
  }
  .rq__quote{
    color: rgba(255,255,255,.9);
    font-size: clamp(15px,1.4vw,16px);
    line-height: 1.9;
    margin: 0 0 16px;
  }
  .rq__meta{
    display:flex; align-items:center; gap:12px;
  }
  /* 画像用のスタイル */
.rq__badge--img{
  width:45px; height:45px;
  border-radius:50%;
  object-fit:cover;              /* 中央トリミング */
  box-shadow:0 8px 18px rgba(173,173,173,.35);
  background:#fff;               /* 透過PNGの縁が見えやすいように */
  flex-shrink:0;                 /* レイアウト崩れ防止 */
}

/* 文字バッジも残す場合の既存スタイル（そのまま使用可）*/
.rq__badge{
  display:grid; place-items:center;
  font-weight:900; letter-spacing:.02em;
}

  .rq__meta strong{ font-weight:800; }
  .rq__meta small{ color: rgba(255,255,255,.8); }
  
/* 数字の見た目はお好みで。出現時にスッと上がる */
.rstat__value {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.rstat__num {
  display: inline-block;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.rstat.is-in .rstat__num {
  transform: translateY(0);
  opacity: 1;
}

 
/* ===================== Functions (整理＋レスポンシブ) ===================== */

/* セクション */
.fnsec{
  background:#f6fafc;
  padding:60px 20px 60px;
}
.fnsec .container{
  max-width:1100px;
  margin-inline:auto;
}

/* カードの並び */
.fnsec__grid{
  display:grid;
  grid-template-columns: 1fr; /* 基本は1列（モバイル基準） */
  gap:24px;
  margin-top:18px;

 --fn-img-size: 90% auto; /* ← 画像を少し小さく。contain でもOK */ 
 --fn-img-pos: 50% 50%; /* ← 見せたい位置（例：50% 35% など） */ 
}

/* カード本体 */
.fn{
  background:#fff;
  border:1px solid rgba(2,6,23,.08);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 16px 32px rgba(2,6,23,.08);
  display:flex;
  flex-direction:column;
}

/* 画像のみ（背景オーバーレイを廃止） */ 
.fn__media{ 
  position: relative; 
  aspect-ratio: 3/2; /* 以前の background 指定を上書きするため、一括指定でリセット */ 
  background: var(--img) var(--fn-img-pos, 50% 50%) / var(--fn-img-size, cover) no-repeat transparent; /* 余白が出てもOKならそのまま。気になる場合は aspect-ratio を調整 */ 
  margin-top: 20px; 
}

/* バッジ */
.fn__badge{
  position:absolute;
  left:14px; bottom:12px;
  padding:6px 15px;
  border-radius:999px;
  background:#41a8ae;
  color:#fff;
  font-weight:700;
  font-size:16px;
  box-shadow:0 8px 18px rgba(197,197,197,.35);
}

/* テキスト領域 */
.fn__body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 20px 22px; /* モバイル基準の余白 */
  min-height: 1px;
}
.fn__title{
  margin:2px 0 6px;
  font-weight:900;
  color:var(--navy);
  font-size: clamp(18px, 2.2vw, 20px);
}
.fn__lead{
  color:#46566d;
  margin:0;
  font-size: clamp(14px, 1.9vw, 15px);
  line-height:1.9;
}
.fn__list{
  margin:0;
  padding-left:1.1em;
  color:#46566d;
  line-height:1.9;
  font-size: clamp(14px, 1.9vw, 15px);
}
.fn__cta{
  margin-top:auto;
  align-self:flex-start;
  text-decoration:none;
  font-weight:800;
  color:var(--navy);
  border:1.6px solid rgba(2,6,23,.16);
  border-radius:12px;
  padding:10px 12px;
  background:#f8fafc;
}
.fn__cta:hover{ background:#eef3f9; }

/* ====== ブレークポイント ====== */

/* 980px以上：2列グリッド */
@media (min-width: 980px){
  .fnsec__grid{ grid-template-columns: repeat(2, 1fr); }
}

/* 720px以上：カード内の情報量に合わせて余白を拡張 */
@media (min-width: 720px){
  .fn__body{ padding:18px 28px 24px; }
  .fn__badge{ font-size:17px; }
}

/* 1200px以上：若干ゆったり（PCワイド） */
@media (min-width: 1200px){
  .fn__body{ padding:20px 40px 26px; }
  .fn__title{ font-size: clamp(19px, 1.7vw, 22px); }
  .fn__badge{ font-size:18px; }
}

/* 560px以下：バッジ＆余白を詰める（スマホ狭幅） */
@media (max-width: 560px){
  .fn__badge{ left:10px; bottom:10px; padding:6px 12px; font-size:14px; }
  .fn__body{ padding:12px 16px 18px; }
}

/* ユーザーが動きを減らす設定ならホバー演出を抑止 */
@media (prefers-reduced-motion: reduce){
  .fn__cta, .fn__badge{ transition:none !important; }
}


/* ===== Pricing: Tier Cards with Deep-Blue header ===== */
.pricing--tiers{
   background:#fff; 
   padding:50px 20px 60px; 
  }
.pricing--tiers .container{ max-width:1100px; margin-inline:auto; }

.tiers{
  display:grid; gap:24px; grid-template-columns:1fr;
}
@media (min-width:960px){
  .tiers{ grid-template-columns:repeat(3,1fr);}
}

.tier{
  border:1px solid rgba(2,6,23,.08);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 16px 32px rgba(6,18,38,.08);
  background:#fff;
  display:flex; flex-direction:column;
}

/* ヘッダー帯 */
.tier__head{
  background: linear-gradient(180deg, #0A1F44 0%, #0C2A66 100%); /* 濃いブルー */
  color:#fff;
  text-align:center;
  padding:28px 16px 24px;
}
.tier__head h3{
  margin:0; font-weight:900; font-size:clamp(18px,2.2vw,22px);
}
.tier__head p{
  margin:8px 0 0; opacity:.9; font-size:14px;
}

.tier__body{
  padding:22px 20px 20px;
  display:flex; flex-direction:column; height:100%;
  text-align:center;
  background:#fff;
}

.tier__price{
  color:var(--navy);
  font-weight:900;
  line-height:1.1;
  margin:14px 0 8px;
}
.tier__price .num{ font-size:clamp(36px,5vw,48px); }
.tier__price .yen{ font-size:clamp(14px,2vw,16px); margin-right:2px; color:#334155; }
.tier__price .per{ margin-left:6px; color:#66788f; font-weight:800; }

.tier__list{
  text-align:left;
  margin:10px auto 12px;
  padding-left:1.1em;
  max-width:380px;
  color:#46566d; line-height:1.9;
}

.tier__cta{ align-self:center; margin-top:auto; }

/* 中央カードの“おすすめ”強調 */
.tier--featured{
  outline:2px solid rgba(30,64,175,.28);
  transform:translateY(-2px);
}

/* CTA行は中央寄せ（保険で強度高め） */
.pricing--tiers .pricing__cta {
  display:flex; 
  justify-content:center; 
  gap:12px; flex-wrap:wrap; 
  margin-top:24px;
}

/* ====== Mobile ≤ 960px ====== */
@media (max-width: 960px){

  /* 1列＆間隔最適化 */
  .tiers{ grid-template-columns:1fr; gap:18px; }

  /* カードの密度を少し下げる */
  .tier{
    border-radius:16px;
    box-shadow:0 10px 20px rgba(6,18,38,.08);
  }

  /* “おすすめ”カードを先頭へ＆持ち上げ効果は無効化 */
  .tier--featured{
    order:-1;
    transform:none;
    outline-width:2px; /* 枠強調は残す */
  }

  /* ヘッダー帯（濃紺） */
  .tier__head{ padding:22px 14px 18px; }
  .tier__head h3{ font-size: clamp(17px, 4.4vw, 20px); }
  .tier__head p{ font-size: clamp(12px, 3.5vw, 14px); }

  /* 本文ブロック */
  .tier__body{ padding:18px 14px 16px; text-align:center; }

  /* 価格のタイポ */
  .tier__price{ margin:10px 0 6px; }
  .tier__price .num{ font-size: clamp(34px, 10vw, 40px); }
  .tier__price .yen{ font-size: clamp(12px, 3.6vw, 14px); }
  .tier__price .per{ font-size: clamp(12px, 3.6vw, 14px); }

  /* 特徴リスト：横幅制限を解除して読みやすく */
  .tier__list{
    max-width:none;
    margin:8px 0 12px;
    font-size: clamp(14px, 3.7vw, 15px);
    line-height:1.9;
  }

  /* カード内ボタン：ピル型・全幅でタップしやすく */
  .tier__cta{
    width:100%;
    padding:14px 16px;
    border-radius:999px;
  }

  /* セクション下のCTAも全幅に */
  .pricing--tiers .pricing__cta{ margin-top:20px; }
  .pricing--tiers .pricing__cta .btn{
    width:100%;
    max-width:480px;
    border-radius:999px;
    padding:16px 18px;
  }
}

/* ====== Very small ≤ 400px（狭幅の微調整） ====== */
@media (max-width: 400px){
  .pricing--tiers{ padding:56px 20px 72px; }
  .tier__head{ padding:18px 12px 16px; }
  .tier__body{ padding:14px 12px 14px; }
}


/* ▼ コスト比較セクション */
.cmp-sec{ 
  background:#f6fafc;
  padding: 40px 0px;
}
.cmp-wrap{ max-width:1100px; margin:0 auto; }
.cmp-note{ color:#6b7280; font-size:.9rem; margin:0 0 12px; }

/* ▼ カード（チャート本体） */
.chart{
  /* 色・寸法トークン */
  --bg:#fff;
  --shadow:0 10px 25px rgba(0,0,0,.1);
  --axis:#e5e7eb;
  --grid:#f3f4f6;
  --label:#9ca3af;
  --bar-gray:#9ca3af;
  --bar-blue: #0A1F44;
  --accent:#41a8ae;

  /* プロット寸法（数値は以前と同じ見た目基準） */
  --plot-h:400px;   /* .plot の高さ */
  --ptop:40px;      /* 上余白（グリッド/バー共通） */
  --pbottom:40px;   /* 下余白（グリッド/バー共通） */
  --ylabel-w:0px;  /* 左の目盛数値エリア幅（40px + 右マージン16px 相当） */
  --row-h: calc((var(--plot-h) - var(--ptop) - var(--pbottom)) / 8); /* 5本＝4区間 */

  background:var(--bg);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:40px;
  position:relative;
}

/* ▼ Y軸ラベル */
.yaxis{
  color:#6b7280; font-weight:500; margin:0 0 16px; position:relative;
  padding-right:8px;
}
.yaxis::after{
  content:""; display:block; height:1px; background:var(--axis);
  position:absolute; left:calc(var(--ylabel-w)); right:0; bottom:-50px;
}

/* ▼ プロット領域（グリッド＋バーを同じ内側領域に） */
.plot{ position:relative; height:var(--plot-h); }

/* 目盛り線（常時表示）：バーと同じ内側insetに合わせる → 下端揃う */
.plot::before{
  content:""; position:absolute; pointer-events:none;
  left:var(--ylabel-w); right:0; top:var(--ptop); bottom:var(--pbottom);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(var(--row-h) - 1px),
      var(--grid) calc(var(--row-h) - 1px) var(--row-h)
    );
}


.chart{
  /* …既存… */
  --avail-h: calc(var(--plot-h) - var(--ptop) - var(--pbottom)); /* バーが伸びられる高さ */
}

@media (max-width: 768px){
  .chart{ --plot-h: 320px; --ptop: 28px; --pbottom: 28px; }
}
@media (max-width: 520px){
  .chart{ --plot-h: 300px; --ptop: 24px; --pbottom: 24px; }
}

/* ▼ バー群（同じ内側inset。これで0ラインと底が完全一致） */
.bars{
  position:absolute; left: -230px;; right:0;  top:0; bottom: -5px;
  display:flex; align-items:flex-end; justify-content:center;
  gap:80px; 
  list-style:none; margin:0;
}
.bar{ width:100px; display:flex; flex-direction:column; align-items:center; position:relative; }

/* バー本体（高さはJSで 0 → var(--h) に。CSSだけなら .is-on を付与でもOK） */
.bar__fill{
  width:100%; height:0; border-radius:8px 8px 0 0;
  display:flex; flex-direction:column; align-items:center;
  padding-top:5px; color:#fff; font-weight:700; font-size:1.2rem;
  transition:height 1.5s ease-out;
  background:var(--bar-gray);
}
.bar.is-ours .bar__fill{ background:var(--bar-blue); width: 120px;}

.bar.is-ours{ 
  position:relative; 
}  /* 配置の基準にする */



.bar__pc{
  position:absolute;
  right:-210px;           /* 棒の右に出す。数値を調整して好きな距離に */
  bottom: 35px; /* 下端を0ラインに合わせる */
  width:170px;            /* PC画像のサイズ */
  height:auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}

.bar__val{ 
  line-height:1; 
  font-size: 40px;
}
.bar__fill small{ 
  font-size:.8rem; 
  font-weight:400; 
  margin-top:4px; 
  color:#fff; 
  opacity:.95; 
}

.bar__label{ margin-top:20px; font-weight:500; color:#374151; text-align:center; }

.bar__logo{ display:block; width:100%; max-width:130px; margin-top: -2px; }



/* ▼ 吹き出し・補足 */
.hl-bubble{
  position:absolute; right:-120px; top:-200px; width:140px; height:140px; border-radius:50%;
  background:var(--accent); color:#fff; display:grid; place-items:center; text-align:center;
  box-shadow:0 8px 20px #66788f;
 
  transition:opacity .6s ease-out, transform .6s ease-out;
}
.hl-bubble::before{
  content:""; position:absolute; left:-8px; top:50%; transform:translateY(-50%);
  border:8px solid transparent; border-right-color:var(--accent);
}
.hl-bubble em{ font-style:normal; font-size:18px; line-height: 30px;}
.hl-bubble strong{ /* 数字をひと回り大きく＆太く */
  display:inline-block;
  font-size:1.6rem;         /* 1.2rem → 1.6rem */
  font-weight:900;
  letter-spacing:2px;
  line-height:0.6;
  position:relative;
  text-shadow:0 1px 0 rgba(0,0,0,.15);
}

/* 白いハイライトの下線 */
.hl-bubble strong::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-5px;
  height:3px; border-radius:2px;
  background:rgba(255,255,255,.9);
  transform:translateY(2px);
}


/* 表示タイミングで数字だけ“ポッ”と出す */
@keyframes popIn{ 0%{ transform:scale(.9); } 60%{ transform:scale(1.08);} 100%{ transform:scale(1);} }
.hl-bubble.show strong{ animation:popIn .45s cubic-bezier(.2,.7,.2,1) both; }

.hl-bubble.show{ opacity:1; transform:translateY(0); }

/* 吹き出し右側の補足テキスト */
.bar.is-ours{ position:relative; } /* 基準にする */

.hl-side{
  position:absolute;
  right:-260px;          /* 吹き出しの右側に出す。好みで微調整 */
  top:-150px;            /* 縦位置も調整 */
  color:var(--accent);   /* 例：#41a8ae。別色にしたいならここを変更 */
  font-weight:700;
  font-size:1.2rem;
  line-height:1.6;
  text-align:left;
  white-space:nowrap;
  z-index:2;

  /* ふわっと表示（.hl-bubbleと同時に） */
  opacity:0; transform:translateY(8px);
  transition:opacity .4s ease, transform .4s ease;
}
/* バブルが表示されたら一緒に出す（.hl-bubble に .show を付けている前提）*/
.hl-bubble.show ~ .hl-side{
  opacity:1; transform:translateY(0);
}

/* ====== Responsive: L (≤1200px) ====== */
@media (max-width:1200px){
  .chart{ padding:32px; }
  .bars{ left:-120px; gap:72px; }
  .bar{ width:90px; left: -50px;}
  .bar.is-ours .bar__fill{ width:110px; }
  .bar__pc{ right:-190px; width:160px; bottom:32px; }
  .hl-bubble{ right:-120px; top:-180px; width:130px; height:130px; }
}

/* ====== Responsive: L (≤1200px) ====== */
@media (max-width:1200px){
  .chart{ --plot-h:380px; --ptop:36px; --pbottom:36px; padding:32px; }
  .yaxis::after{ bottom:-40px; }
  .bars{ left:-120px; gap:72px; }
  .bar{ width:90px; }
  .bar.is-ours .bar__fill{ width:110px; }
  .bar__val{ font-size:36px; }
  .bar__logo{ max-width:125px; }
  .bar__pc{ right:-190px; width:160px; bottom: var(--pbottom); }
  .hl-bubble{ right:-120px; top:-180px; width:130px; height:130px; }
}

/* ====== Responsive: M (≤992px) ====== */
@media (max-width:992px){
  .cmp-sec{ padding:32px 0; }
  .chart{ --plot-h:360px; --ptop:32px; --pbottom:34px; padding:28px; }
  .yaxis::after{ bottom:-36px; }
  .bars{ left:-80px; gap:56px; }
  .bar{ width:78px; }
  .bar.is-ours .bar__fill{ width:96px; }
  .bar__val{ font-size:34px; }
  .bar__logo{ max-width:120px; }
  .bar__pc{ right:-150px; width:130px; bottom: var(--pbottom); }
  .hl-bubble{ right:-100px; top:-150px; width:120px; height:120px; }
}


/* デフォルト：PC/タブはコード版を表示、画像版は非表示 */
.chart{ display:block; }
.chart-image{ display:none; }

/* スマホでは画像に置き換え（閾値はお好みで） */
@media (max-width: 768px){
  .chart{ display:none; }
  .chart-image{
    display:block;
    /* 見た目をカードに寄せたい場合は以下を追加 */
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    padding: 5px;
  }
  .chart-image picture,
  .chart-image img{ display:block; width:100%; height:auto; }
}




/* ---------- Section headers ---------- */
.sec-head{text-align:center;margin-bottom:26px}
.sec-head h2{font-size: clamp(22px, 3.2vw, 32px);font-weight:900;color:var(--navy);margin:0}
.sec-sub{color:#5b6b80;margin-top:6px}
.sec-underline{display:inline-block;width:70px;height:6px;border-radius:3px;background:var(--blue);margin-top:10px}



/* ---------- FAQ ---------- */
.faq{background:#fff;padding:70px 20px}
.faq__list{max-width:1000px;margin:0 auto}
.qa{border:1px solid rgba(2,6,23,.08);border-radius:14px;background:#fff;padding:14px 16px;margin-bottom:12px}
.qa>summary{cursor:pointer;font-weight:800;color:var(--navy);list-style:none}
.qa>summary::-webkit-details-marker{display:none}
.qa__a{margin-top:8px;color:#46566d}




 /* ===== Final CTA ===== */
 .csec{
    background: radial-gradient(1200px 700px at 20% -20%, #112036 0%, transparent 70%),
                linear-gradient(145deg, #0b1626 0%, #101c2e 100%);
    color:#fff;
    padding: 74px 20px 72px;
  }
  .csec__inner{ max-width: 1000px; margin: auto; text-align: center; }
  .csec__title{
    font-size: clamp(22px,3.2vw,34px);
    font-weight: 900;
    letter-spacing: .01em;
  }
  .csec__lead{
    margin: 14px auto 24px;
    max-width: 760px;
    color: rgba(255,255,255,.92);
    font-size: clamp(15px,1.3vw,17px);
    line-height: 1.9;
  }
  .csec__row{
    display:flex; flex-wrap:wrap; gap:16px;
    align-items:center; justify-content:center;
    margin-top: 10px;
  }
  .csec__btn{
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    background-color: #41a8ae;
    color: #fff;
  }
  .csec__btn:hover{ 
    filter: brightness(1.05); 
  }
  .csec__tel{
    display:inline-flex; align-items:center; gap:10px;
    color: #fff; font-weight: 800; text-decoration: none;
    padding: 14px 18px; border-radius: 50px;
    border: 1.6px solid rgb(255, 255, 255);
    background: rgba(200,164,77,.08);
  }
  .csec__tel:hover{ background: rgba(200,164,77,.14); }
  .csec__tel svg{ color: #fff; }
  
  .csec__notes{
  display:flex;
  flex-direction: column;   /* ← これで上→下の縦並び */
  align-items: center;
  gap: 8px;                 /* 行間 */
  justify-content:center;
  margin-top: 15px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

  .note__label{ color: #fff; font-weight: 800; }
  
  /* ===== Footer ===== */
  .site-footer{
    background:#0a1423;
    color: rgba(255,255,255,.86);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .site-footer__inner{
    max-width: 1200px; margin: 0 auto;
    display:flex; align-items:center; justify-content:center;
    gap: 16px; padding: 18px 20px;
  }
 
  .copy{ 
    font-size: 14px; 
  }




  



