/* =========================
  Ikeuchi_KM LP - style.css (refactored)
  変更メモ:
  - 値は維持したまま、重複ルールを統合してセクション整理（Base/Tokens/Layout/Components/Media queries）
  - .btn / .btn--primary / .btn--ghost を変数中心に再編（::before内枠 / ::after右下三角は維持）
  - 分散していた同一条件の media query を集約（最終カスケード結果は維持）

  検証チェックリスト（変更前/変更後スクショ比較: 375/640/768/1024/1200px）:
  [ ] FV（背景画像・見出し位置・CTA幅）
  [ ] problem（背景ポリゴン・チェックリスト・proofカード）
  [ ] features（画像背面色面・テキスト面・ghostボタン）
  [ ] doctor（2カラム→1カラム遷移・画像幅）
  [ ] flow（縦ライン接続・番号丸）
  [ ] faq（開閉アイコン向き・余白）
  [ ] contact（フォーム2→1カラム・入力高さ）
  [ ] footer（グリッド崩れ・情報行）
  [ ] sticky-cta（表示/非表示・body下余白）
  [ ] ボタン（.btn::before内枠 / .btn::after三角 / hover挙動）
  ========================= */

/* ---- Design tokens ---- */

:root{
  --text:#111;
  --muted:#6b6b6b;
  --line:#e9e9e9;
  --bg:#fff;
  --bg-alt:#f9f9f6;
  /* --gold:#D4AF37; */
  --gold:#b39855;
  --gold-2:linear-gradient(60deg,  #fff9e6, #b39855);
  --gold-3:#b39855;
  --navy:#26374f;
  --navy-2:linear-gradient(135deg, #26374f, #365884);
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --radius:4px;
  --container:800px;

  --btn-font: Centuty,"Yu Mincho", serif;
  --btn-radius: 0px;
  --btn-pad-y: 1.6rem;
  --btn-pad-x: 3rem;
  --btn-caret-size: 10px;
  --btn-frame-gap: 7px;
}

.accent {
  color: var(--gold);
  font-weight: 700;
}

.accent-sub {
  font-weight: 600;
}

/* ---- Base / reset ---- */
*,*::before,*::after{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho","Times New Roman",serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

main{padding-top:var(--header-offset,0px);}

img{max-width:100%;height:auto;display:block;}
a{color:inherit;}
button{font:inherit;color:inherit;background:none;border:0;}

strong {
  color: var(--gold-3);
}

/* 全 span への色付けは事故るので禁止 → 強調だけ .accent を使う */

/* ---- Layout ---- */
.container{
  width:min(100%, var(--container));
  margin-inline:auto;
  padding-inline:clamp(16px,4vw,32px);
}
.section{padding:72px 0;background:var(--bg);}
/* .section--alt{background:var(--bg-alt);} */
.section__header{margin:0 0 24px;text-align:center;}
.section__title{
  margin:0 0 clamp(20px,5vw,32px);
  font-size:clamp(22px,5vw,32px);
  letter-spacing:.12em;
  color:#2e2e2e;
  text-align: center;
}
.section__lead{margin:8px auto;color:var(--muted);max-width:70ch;}

/* ---- Buttons ---- */
/* =========================
   Button system (single)
   ========================= */
.btn{
  --btn-bg:#b1b1b1;
  --btn-text:#333;
  --btn-border:#b1b1b1;
  --btn-frame:#fff;
  --btn-corner-bg:#fff;
  --btn-corner-top:rgba(255, 255, 255, .95);

  display:inline-block;
  position:relative;
  padding:1.2rem 2.5rem;
  min-height:52px;
  cursor:pointer;
  text-align:center;
  font-size:1.6rem;
  font-family:Century, "Yu Mincho", serif;
  font-weight:400;
  background-color:var(--btn-bg);
  color:var(--btn-text);
  text-decoration:none !important;
  border:1px solid var(--btn-border);
}

.btn::before{
  content:"";
  border:solid 1px var(--btn-frame);
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:calc(100% - 7px);
  height:calc(100% - 7px);
  pointer-events:none;
}

.btn::after {
  content: "";
  position: absolute;
  background: var(--btn-corner-bg);
  bottom: 4px;
  right: 4px;
  width: 0rem;
  height: 0rem;
  border-left: 10px solid transparent;
  border-top: 10px solid var(--btn-corner-top);
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  pointer-events:none;
}


.btn:focus-visible{
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

.btn:active{transform:translateY(1px);}

.btn--primary{
  --btn-bg:var(--gold);
  --btn-text:#fff;
  --btn-border:var(--gold);
}

.btn:hover{
  opacity:.92;
  transform: translateY(-1px);
}

.btn--ghost{
  --btn-bg:#b1b1b1;
  --btn-text:#333;
  --btn-border:#333;
  --btn-frame:#333;
  --btn-corner-bg:#333;
  --btn-corner-top:#333;
}

.btn--ghost:hover{
  opacity:.92;
  transform: translateY(-1px);
}

.btn--lg{padding:14px 28px;font-size:1.1rem;}

/* ---- Header / Nav ---- */
.header{
  position:fixed;
  left:0;
  right:0;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:clamp(8px,2vw,16px);
  padding:clamp(10px,1.8vw,18px) 1.8rem;
  max-width:1200px;
  margin:0 auto;
}

.header__logo{font-weight:700;letter-spacing:.12em;margin-right:auto;}


.hamburger{
  width:clamp(40px,9vw,48px);
  height:clamp(40px,9vw,48px);
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#fff;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}
.hamburger__line{width:18px;height:2px;background:var(--text);display:block;}

.nav{
  position:fixed;
  inset:clamp(56px,12vw,72px) clamp(16px,4vw,32px) auto clamp(16px,4vw,32px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(14px,3vw,18px);
  display:grid;
  gap:clamp(10px,2.4vw,14px);
  box-shadow:var(--shadow);
  transform:translateY(-8px);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:20;
}
.nav.is-open{opacity:1;pointer-events:auto;transform:translateY(0);}
.nav__link{font-weight:500;text-decoration:none;}

@property --hero-badge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes heroBadgeBorderSpin {
  to {
    --hero-badge-angle: 360deg;
  }
}

/* ---- Hero ---- */
.hero__content{
  background-image:url("../img/hero-ver2.jpg");
  background-size:cover;
  background-position:right;
  background-repeat:no-repeat;
  height:80vh;
  margin-bottom: 8%;
}
.hero-text{
  padding:calc(5px + 1vw) calc(30% + 7vw) 0 calc(20px + 4vw);
}
.hero__title{margin:0;color:#000;font-size:2.5rem;}
.hero__subtitle{
  margin: 0;
} 

.hero-strong{
  font-size: 2.8rem;
}

.hero__cta{
  display:flex;
  flex-direction:column;
  width:55%;
  text-align:center;
  gap:12px;
  margin-top:12px;
}

.hero__trust{
  display:flex;
  gap:3%;
  margin:2rem 0 0;
  padding:0;
  list-style:none;
}
.hero__trust .badge{
  position:relative;
  isolation:isolate;
  color:#333;
  background:#fff;
  border:1px solid transparent;
  border-radius:4px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(
      from var(--hero-badge-angle),
      transparent 0deg,
      transparent 38deg,
      #ffc32f 78deg,
      transparent 118deg,
      transparent 360deg
    ) border-box;
  animation:heroBadgeBorderSpin 2.8s linear infinite;
  box-shadow:0 0 8px #e8bf6066;
  padding:.8% 1.8%;
  text-align:center;
}

.hero__trust .badge::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  z-index:-1;
  pointer-events:none;
  /* background:conic-gradient(
    from var(--hero-badge-angle),
    transparent 0deg,
    transparent 35deg,
    #e8bf60 80deg,
    transparent 125deg,
    transparent 360deg
  ); */
  filter:blur(1px);
  opacity:0.99;
}

@media (prefers-reduced-motion: reduce){
  .hero__trust .badge{animation:none;}
}

/* ---- Problem ---- */
.problem{background:#f1f1f1;}
.problem__inner{text-align:center;}

.badge{
  display:inline-block;
  padding:clamp(6px,2vw,10px) clamp(16px,4vw,28px);
  background:var(--navy-2);
  color:#fff;
  font-size:1.5em;
  font-weight:600;
  letter-spacing:.08em;
  position:relative;
  margin:0 0 clamp(16px,4vw,24px);
}

.problem .badge::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-top:10px solid var(--navy);
}

/* .badge::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  width:0;height:0;
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-top:10px solid var(--gold);
} */

.problem__answer  {
  margin: 14px 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  position:relative;
  text-align: center;
}

.problem__answer::after{
  content:"";
  display:block;
  width:100%;
  height:clamp(2px,0.5vw,4px);
  background:var(--gold-2);
  margin:clamp(8px,2vw,14px) auto 0;
}

.problem__answer span {
  font-size: 1.7rem;
  font-weight: 700;
}

.problem__inner{
  position:relative;
  max-width:clamp(300px,70vw,680px); /* 画像コンテンツの幅 */
  margin:0 auto clamp(20px,5vw,28px);
  padding:clamp(10px,2.5vw,16px);
  border-radius:var(--radius);
  overflow:hi; /* 背景ポリゴンを外側に見せる */
  isolation:isolate; /* z-indexの重なり順を安定化 */
}

.problem__inner::before {
    content: "";
    position: absolute;
    left: 40%;
    top: 14%;
    transform: translate(-50%, -50%);
    width: min(1500px, calc(100vw - 24px));
    height: clamp(90px, 5vw, 160px);
    background: var(--gold-2);
    clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
    z-index: -1;
}

.problem__media img {
  width: 65%;
  margin: 0 auto;
  top: 0%;
}

.problem__media img,
.problem__media .problem__check{
  position:relative;
  z-index:1;
}

.problem__list{
  position: relative;
  list-style:none;
  padding:0;
  margin:0 auto clamp(18px, 8vw, 84px);
  max-width:clamp(320px,78vw,720px);
  text-align:left;
  display:grid;
  gap:clamp(12px,3vw,18px);
  font-size:clamp(14px,3.6vw,18px);
  color:#2f2f2f;
  width:70%;
}

.problem__list::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(clamp(26px, 6vw, 44px) * -1 + 6px);
  width: clamp(30px, 15vw, 70%);
  height: clamp(18px, 6vw, 28px);
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 50% 100%); /* 下向き三角 */
  border-radius: 2px;
  opacity: 0.9;
  transform: translateX(-50%);
  pointer-events: none;
}

.problem__list li{
  position:relative;
  padding-left:clamp(28px,6vw,40px);
  white-space:nowrap;
}
.problem__list li::before{
  content:"✓";
  position:absolute;
  left:0;top:0;
  font-weight:700;
}

.problem__proof {
  margin: clamp(28px, 5vw, 54px) auto 0;
  max-width: 820px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 26px);
  text-align: left;
}

.problem__proofCatch {
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.6;
}

.problem__accent { color: var(--gold); font-weight: 800; }

.problem__proofGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.problem__proofItem {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px;
  background: #fff;
}

.problem__proofTitle {
  margin: 0 0 8px;
  font-size: 16px;
  color: #2e2e2e;
  border-bottom: 1px dotted #111;
}

.problem__proofText {
  margin: 0;
  color: #444;
  line-height: 1.8;
  font-size: 14px;
}

.problem-columm {
  flex-direction: column;
}

.ope-num {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 2%;
  background: var(--gold-2);
  position: relative;
}

.ope-num::after {
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  width:2px;
  height:100%;
  border-left:2px dotted var(--gold);
  transform:translateX(-50%);
}

.problem__img {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin: 2em auto;
  position: relative;
}

.problem__img img {
  /* margin: 24px auto; */
  max-width: 340px;
}

.problem__img:last-of-type .ope-num::after {
  display: none;
}

.problem-sec {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 3%;
}

.problem-sec img{
  width: 50%;
  margin: auto;
}

/* -------------
usp
-------------- */


.usp-num {
  font-size: 1.5rem;
  position: relative;
  margin: 0;
  font-style: italic;
  color: #b1b1b1;
}

.usp-num strong {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
}

.problem-sec span{
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

 .usp-num::after{
    content: "";
    display: block;
    width: 100%;
    left: 0;
    height: 1px;
    background: var(--navy);
    margin: clamp(5px, 1vw, 8px) auto 0;
} 

.usp__title {
  font-size: 1.5rem;
  margin: 0;
}

.usp__text {
  line-height: 1.8;
}



/* ---- fat ---- */
/* =========================
   Fat section (ROOF / 眼窩脂肪)
   ========================= */



  .caseDesign {
    display: grid;
    gap: 32px;
  }

.caseDesign__item{
  background-image: url(/assets/img/case-bg-m.jpeg);
  backdrop-filter: blur(3px);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 32px;
  border: 1px solid var(--gold);
  display: flex;
  justify-content: center;
  gap: 32px;
}

.caseDesign__text {
  margin: auto 0;
}

.caseDesign__flex {
  width: 35%;
}

.caseDesign__item img{
  width: 100%;
  margin: 0 auto;
}

.caseDesign__before {
  color: #777;
  font-size: 1.1rem;
  text-align: end;
  margin: 0;
}

.caseDesign__after {
  color: var(--gold-3);
  font-size: 1.5rem;
  text-align: end;
  margin: 2% 0 0;
  font-weight: 500;
}

.caseDesign__title {
  font-size: 18px;
  margin-bottom: 12px;
}

.caseDesign__title::after{
    content: "";
    display: block;
    width: 100%;
    left: 0;
    height: 2px;
    background: var(--gold-3);
    margin: clamp(5px, 1vw, 8px) auto 0;
} 

.caseDesign__list {
  padding-left: 20px;
  line-height: 1.8;
}

.caseDesign__note {
  margin-top: 12px;
  font-size: 13px;
  color: #777;
}

.caseGrid__item{
  margin:0;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  display: flex;
  flex-direction: column;
}
.caseGrid__item img{
  width:100%;
  height:auto;
  display:block;
}
.caseGrid__item figcaption{
  font-size:12px;
  color:var(--muted);
  padding:8px 10px;
  border-top:1px solid var(--line);
}

.caseCard__mediaNote{
  margin:10px 0 0;
  font-size:12px;
  color:var(--muted);
}

.caseSpec{
  margin:0;
  display:grid;
  gap:10px;
}
.caseSpec__row{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap:12px;
  padding:10px 0;
  border-top:1px solid var(--line);
}
.caseSpec__row:last-child{
  border-bottom:1px solid var(--line);
}
.caseSpec dt{
  margin:0;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}
.caseSpec dd{
  margin:0;
  line-height:1.7;
}

.caseRisk{
  margin:14px 0 0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fafafa;
}
.caseRisk summary{
  cursor:pointer;
  font-weight:700;
}
.caseRisk p{
  margin:10px 0 0;
  color:#444;
  line-height:1.7;
  font-size:14px;
}

.caseCard__notes{
  margin:12px 0 0;
  font-size:12px;
  color:var(--muted);
}

.caseCard__cta{
  margin-top:14px;
}

/* =========================
   FAT section (visualize)
   ========================= */

.fat{
  background: transparent; /* section側で制御するならそのまま */
}

.fat__grid{
  display: grid;
  gap: clamp(16px, 4vw, 28px);
  align-items: start;
  margin-top: clamp(12px, 3vw, 18px);
}

.fat__figure{
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.fat__figure img{
  display: block;
  width: 100%;
  height: auto;
}

.fat__caption{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.fat__cards{
  display: grid;
  gap: 14px;
}

.fatCard{
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 16px 16px;
  /* box-shadow: 0 6px 18px rgba(0,0,0,0.05); */
}

.fatCard__title{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  color: #2e2e2e;
}

.fatCard__list{
  margin: 0;
  padding-left: 1.2em;
  color: #444;
  line-height: 1.7;
}

.fatCard__list li{
  margin: 0 0 6px;
}

.fatCard__note{
  margin: 10px 0 0;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}

/* タイプ別の控えめアクセント（やりすぎない） */
.fatCard--ok{
  border-left: 4px solid var(--gold);
}
.fatCard--ng{
  border-left: 4px solid var(--gold);
}

.fat__conclusion{
  margin: clamp(14px, 3vw, 18px) 0 0;
  color: #444;
  line-height: 1.7;
}

.fat__conclusion small{
  color: var(--muted);
}

.fat__cta{
  margin-top: clamp(16px, 3.5vw, 22px);
  text-align: center;
}


/* ---- Solution cards ---- */
#solution {
 background:#f1f1f1;}

.solution__inner{text-align:center;}
.grid--2{
  padding:5%;
  position:relative;
  max-width:700px;
  margin:0 auto;
}
.card{
  display:flex;
  flex-direction: column;
  gap:5%;
  margin-bottom:3%;
  position:relative;
  z-index:0;
}
/* .grid--2 .card:not(:last-of-type)::after{
  content:"";
  position:absolute;
  left:30px;
  top:30%;
  width:1px;
  height:100%;
  background:var(--gold);
  z-index:-1;
} */

.card-grid {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 36px);
  flex-direction: row-reverse;
  margin-bottom: 5%;
}

.card-num{
  width:200px;
  height:60px;
  margin-bottom: 4.5%;
  align-items: end;
  display:flex;
  align-items:end;
  line-height:1.2;
  position: relative;
}
.card-num p,.card-num span{
  font-style: italic;
  font-size: 2rem;
  color: #b1b1b1;
  margin:0;
}
.card-num::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:1px;
  background:#b1b1b1;
}
.card-num span {
  font-size: 2.7rem;
  font-style: italic;
  color: var(--gold);
}
.card__title{color:var(--gold);font-size:1.7rem;margin:0 0 6px;}
.card__text{font-size:1.2rem;margin:0;}
.card-content{text-align:left;width:100%;}

.solution-img {
  width: 48%;
}

.solution-img img {
  width: 100%;
  display: block;
}

#solution .card-grid .card {
  width: 48%;
  margin: 0;
}

/* ---- Features (accordion-ish) ---- */
.features{background:transparent;}
.features__list{display:grid;gap:clamp(24px,6vw,40px);}
.feature-item{position:relative;display:flex;gap:clamp(16px,4vw,24px);align-items:center;}
/* .feature-item::before{
  content:"";
  position:absolute;
  width:clamp(90px,26vw,180px);
  height:clamp(40px,10vw,70px);
  background:var(--gold);
  opacity:.7;
  z-index:0;
} */
/* .feature-item--right::before{right:0;bottom:clamp(-10px,-2vw,-16px);width: clamp(45%, 25vw, 60%);border-radius: var(--radius);background: var(--gold-2);
    height: clamp(55%, 55vw, 70%);}
.feature-item--left::before{left:clamp(12px,4vw,28px);bottom:clamp(-10px,-2vw,-16px);} */

/* .feature-photo{
  background:#fff;
  width:100%;
  aspect-ratio:4/3;
  border-radius:var(--radius);
  position:relative;
  z-index:1;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  display: flex;
}*/

.feature-photo img {
  width: 100%;
  height: 100%;
  margin: auto;
  border-radius: 0;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

.feature-photo {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  justify-content: space-between;
}

.feature-photo::before{
  content: '';
  display: block;
  position: absolute;
  top: 2rem;
  right: -5%;
  width: 90%;
  height: 100%;
  background: var(--bg-alt);
  z-index: -1;
}

.feature-content{position:relative;display:flex;flex-direction:column;gap:clamp(8px,2vw,12px);z-index:1;}
.feature-title{margin:0 0 clamp(8px,2vw,12px);font-size:clamp(16px,3.6vw,20px);color:#2a2a2a;}
.feature-desc{margin:0;font-size:clamp(13px,3.2vw,16px);  color: var(--text);line-height:1.7;}

.feature-text{
  background:#F8F7F3; 
  padding:clamp(18px,3.5vw,30px);
  border-radius:0;
  /* opacity:0; */
  /* max-height:0; */
  overflow:hidden;
  /* transform:translateY(8px);
  transition:opacity .3s ease, transform .3s ease, max-height .3s ease; */
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  border: 1px dotted #533b0f;
}

.feature-text::before{
  content: '';
  display: block;
  position: absolute;
  top: 2rem;
  right: -5%;
  width: 90%;
  height: 100%;
  background: var(--bg-alt);
    border: 1px dotted #533b0f;

  z-index: -1;
}

#features .btn--ghost {
  margin-top: 1rem;
}



/* ---- Doctor ---- */
.doctor{display:flex;gap:32px;align-items:flex-start;justify-content:center;}
.doctor__media{
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  width:45%;
}
.doctor__position{margin:0 0 6px;font-size:14px;color:var(--muted);}
.doctor__name{margin:0 0 16px;font-size:22px;font-weight:700;letter-spacing:.02em;}
.doctor__points{margin:0 0 14px;padding:0;list-style:none;display:grid;gap:10px;}
.doctor__point{position:relative;padding-left:22px;line-height:1.7;}
.doctor__point::before{content:"";position:absolute;left:0;top:.62em;width:10px;height:10px;border-radius:999px;background:var(--gold);}
.doctor__note{margin:0 0 18px;font-size:12px;color:var(--muted);}
.doctor__actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
.btn-flow-actions{font-size:1.5rem;background:var(--bg-alt);text-decoration:none;padding:10px 14px;border-radius:999px;}

/* ---- Flow ---- */


.flow-grid{
  border:1px solid var(--gold);
  padding:5%;
  max-width:700px;
  margin:0 auto;
}
.flow-card{display:flex;gap:10%;margin-bottom:10%;position:relative;z-index:0;}
.flow-card:last-child{margin-bottom:0;}
.flow-grid .flow-card:not(:last-of-type)::after{
  content:"";
  position:absolute;
  left:30px;
  top:40%;
  width:1px;
  height:calc(150% + 30px);
  background:var(--gold);
  z-index:-1;
}
.flow-card-num{
  width: 60px;
    height: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    position: relative;
    border-radius: 50%;
    background: var(--gold-3);
    margin: auto 0px;
    padding: 1em;
}

.flow-card:last-child {
  content: none;
}

.flow-card-num p,.flow-card-num span{margin:0;color: #fff;}
.flow-card-title{color:var(--gold);font-size:1.7rem;margin:0 0 8px;}
.flow-card-text{font-size:1.2rem;margin:0;}
.flow-card-list{margin:8px 0 0;padding-left:1.2em;list-style:disc;}
.flow-card-list li{margin:0 0 6px;}

/* ---- ダウンタイム ----*/
/* ---- Downtime timeline ---- 
.downtime__note{
  margin:16px 0 0;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

.downtime__cta{
  margin-top:20px;
  text-align:center;
}

.timeline{
  margin:0 auto;
  padding:0;
  list-style:none;
  max-width:700px;
  display:grid;
  gap:14px;
}

.timeline__item{
  display:flex;
  gap:14px;
  padding:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.timeline__badge{
  flex:0 0 auto;
  min-width:88px;
  height:36px;
  border-radius:999px;
  background:linear-gradient(135deg,#ffeea2,#fbd83e);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#333;
}

.timeline__title{
  margin:0 0 8px;
  font-size:16px;
  color:#2e2e2e;
}

.timeline__list{
  margin:0;
  padding-left:1.2em;
  color:#444;
  line-height:1.7;
}*/

/* =========================
   Downtime Guide
   ========================= */
/* .downtimeGuide__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items:start;
}

.downtimeGuide__card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  padding: 24px;
}

.downtimeGuide__cardTitle{
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0.04em;
  color:#2e2e2e;
}

.downtimeGuide__note{
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}


.dtTimeline{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap: 14px;
}
.dtTimeline__item{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
}
.dtTimeline__badge{
  display:inline-block;
  font-weight:700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg,#ffeea2,#fbd83e);
  color:#333;
  margin-bottom: 10px;
}
.dtTimeline__title{
  margin: 0 0 8px;
  font-weight: 700;
  color:#222;
}
.dtTimeline__list{
  margin:0;
  padding-left: 1.2em;
  color:#444;
  line-height: 1.7;
}
.dtTimeline__list li{ margin:0 0 6px; }


.dtTips{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap: 12px;
}
.dtTips__item{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background:#fff;
}
.dtTips__title{
  margin:0 0 6px;
  font-weight: 700;
  color:#222;
}
.dtTips__text{
  margin:0;
  color:#444;
  line-height:1.7;
}

.downtimeGuide__cta{
  margin-top: 16px;
  text-align:center;
}

.accordion-006 {
    max-width: 500px;
    margin-bottom: 7px;
    background-color: #f2f2f2;
    border-radius: 5px;
}

.accordion-006 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    color: #feee86;
    font-weight: 600;
    cursor: pointer;
}

.accordion ul::-webkit-details-marker {
    display: none;
}


.accordion [open] ul::after {
    transform: rotate(225deg);
}

.accordion-ul li {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 2em 1.5em;
    color: #feee86;
    transition: transform .5s, opacity .5s;
}

.accordion [open] li {
    transform: none;
    opacity: 1;
}

@media (max-width: 768px){
  .downtimeGuide__grid{ grid-template-columns: 1fr; }
  .downtimeGuide__card{ padding: 18px; }
  .downtimeGuide__cardTitle{ font-size: 18px; }
} 
*/

/* =========================
   Support section
   ========================= */
#support {
  background: #f1f1f1;
}

.support__grid{
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.supportCard{
  background: #fff;
  border: 1px solid var(--line, #e9e9e9);
  border-radius: var(--radius, 4px);
  padding: 18px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.supportCard--em{
  border-color: var(--gold);
}

.supportCard__title{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #2e2e2e;
}

.supportCard__list{
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.7;
}

.supportCard__note{
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted, #6b6b6b);
  line-height: 1.6;
}

/* モニター案内（断定しない枠） */
.support__monitor{
  margin-top: 18px;
  background: #fff;
  border: 1px dashed rgba(206, 206, 206, 0.7);
  border-radius: var(--radius, 4px);
  padding: 16px 18px;
}

.support__monitorTitle{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.support__monitorText{
  margin: 0;
  line-height: 1.7;
  color: #333;
}

.support__actions{
  margin-top: 12px;
  text-align: center;
}

/* downtime: ごまかし方 */


.camouflage{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.camouflage__title{
  margin: 0 0 8px;
  font-size: 18px;
}
.camouflage__text{
  margin: 0;
  line-height: 1.7;
  color: #444;
}

/* =========================
   Downtime Timeline
   ========================= */

   .downtime {
    background: #f1f1f1;
   }

.dtTimeline{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:700px;
  display:grid;
  gap:18px;
}

.dtTimeline__item{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
  padding:42px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  position:relative;
  flex-wrap:wrap; /* ←追加 */
}

.dtTimeline__badge{
  flex:0 0 auto;
  min-width:auto;
  width:fit-content;
  text-align:center;
  padding:8px 14px;
  font-size:13px;
  font-weight:700;
  background:var(--gold);
  color:#fff;
}

.dtTimeline__title{
  margin:0 0 6px;
  font-size:16px;
  color:#2e2e2e;
}

.dtTimeline__note{
  margin-top:18px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

/* ----不安に根拠で答えます---- */
/* ---- Risk / reassurance ---- */
#risk {
  background: #f1f1f1;
}

.risk__grid{
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.riskCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.riskCard__title{
  margin:0 0 8px;
  font-size: 18px;
  color:#2e2e2e;
}

.riskCard__text{
  margin:0;
  color:#444;
  line-height: 1.8;
}

.risk__note{
  margin: 14px 0 0;
  text-align:center;
  font-size: 12px;
  color: var(--muted);
}

.risk__cta{
  margin-top: 18px;
  text-align: center;
}


/* ---- FAQ ---- */
.faq{background:#f1f1f1;}
.faq__title{font-size:32px;margin:0 0 12px;text-align:center;color:#2e2e2e;}
.faq__lead{margin:0 0 28px;text-align:center;color:#555;}
.faq__card{
  max-width:700px;
  margin:0 auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px 28px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.faq__item+.faq__item{margin-top:14px;}
.faq__item{border:1px solid var(--line);border-radius:var(--radius);padding:6px 14px;background:#fff;}
.faq__question{
  cursor:pointer;
  list-style:none;
  padding:14px 32px 14px 8px;
  min-height:44px;
  position:relative;
  font-weight:600;
}
.faq__question::-webkit-details-marker{display:none;}
.faq__question::after{
  content:"";
  position:absolute;
  right:8px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid var(--gold);
  border-bottom:2px solid var(--gold);
  transform:translateY(-50%) rotate(45deg);
  transition:transform .2s ease;
}
.faq__item[open] .faq__question::after{transform:translateY(-50%) rotate(-135deg);}
.faq__answer{padding:0 8px 14px;color:#444;line-height:1.7;}
.faq__question:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:var(--radius);}
.faq__note{margin:16px 0 24px;color:#777;text-align:center;font-size:14px;}
.faq__cta{text-align:center;}

/* ---- Contact form ---- */
.contact{background:transparent;}
.contact__title{font-size:32px;margin:0 0 12px;text-align:center;color:#2e2e2e;}
.contact__lead{margin:0 0 28px;text-align:center;color:#555;}
.contact__form{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 32px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.contact__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 24px;
}
.contact__field{display:flex;flex-direction:column;gap:8px;}
.contact__field--full{grid-column:1/-1;}
.contact__label{font-weight:600;color:#2e2e2e;}
.contact__required{color:#b48b2f;font-size:12px;margin-left:6px;}

.contact__input,
.contact__select,
.contact__textarea{
  height:48px;
  padding:10px 12px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  font-size:14px;
  background:#fff;
}
.contact__textarea{height:auto;min-height:140px;resize:vertical;}
.contact__input:focus-visible,
.contact__select:focus-visible,
.contact__textarea:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}

.contact__agree{margin-top:16px;}
.contact__checkbox{display:flex;align-items:center;gap:10px;font-size:14px;}
.contact__actions{margin-top:20px;text-align:center;}
.contact__note{margin:12px 0 0;text-align:center;color:#777;font-size:12px;}
.contact__error{color:#b23b3b;font-size:12px;margin:0;}

/* ---- Sticky CTA (SP only) ---- */
/* =========================
   Sticky CTA (SP)
   ========================= */
.sticky-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;

  display: none; /* SPのみ表示 */
  gap: 10px;
  padding: 10px 12px;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,.08);
}

.sticky-cta__btn{
  flex: 1;
  width: 100%;
  padding: 12px 10px;       /* 追従は少しコンパクトに */
  font-size: 1.3rem;
  min-height: 48px;         /* 押しやすさ確保 */
}

/* ---- Footer ---- */
.footer{background:#fff;border-top:1px solid var(--line);}
.footer__inner{padding:48px 0 20px;}
.footer__grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:start;}
.footer__logo{margin:0 0 6px;font-weight:700;letter-spacing:.08em;}
.footer__clinic{margin:0 0 16px;color:var(--muted);}
.footer__dl{margin:0;}
.footer__row{display:grid;grid-template-columns:60px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line);}
.footer__row:last-child{border-bottom:1px solid var(--line);}
.footer__dt{margin:0;color:var(--muted);font-size:12px;}
.footer__dd{margin:0;line-height:1.7;}
.footer__tel{font-weight:700;text-decoration:none;color:inherit;}
.footer__navTitle{margin:0 0 10px;font-weight:700;}
.footer__navList{margin:0;padding:0;list-style:none;display:grid;gap:10px;}
.footer__link{text-decoration:none;color:inherit;}
.footer__link:hover{text-decoration:underline;}
.footer__actions{margin-top:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.footer__access{
  text-decoration:none;
  color:inherit;
  background:var(--gold);
  padding:10px 14px;
  border-radius:999px;
}
.footer__subLink{
  --btn-bg:#0fff1b;
  --btn-text:var(--muted);
  --btn-border:#0fff1b;
  --btn-frame:var(--muted);
  --btn-corner-bg:var(--muted);
  --btn-corner-top:var(--muted);

  display:inline-block;
  position:relative;
  min-height:52px;
  cursor:pointer;
  text-align:center;
  font-size:1.6rem;
  font-family:Century, "Yu Mincho", serif;
  font-weight:400;

  color:var(--muted);
  text-decoration:none;
  background:#0fff1b;
  padding:1.6rem 3rem;
  border-radius:0;
  border:1px solid var(--btn-border);
}

.footer__subLink::before{
  content:"";
  border:solid 1px var(--btn-frame);
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:calc(100% - 7px);
  height:calc(100% - 7px);
  pointer-events:none;
}

.footer__subLink::after {
  content: "";
  position: absolute;
  background: var(--btn-corner-bg);
  bottom: 4px;
  right: 4px;
  width: 0rem;
  height: 0rem;
  border-left: 10px solid transparent;
  border-top: 10px solid var(--btn-corner-top);
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  pointer-events:none;
}

.footer__subLink:hover{
  opacity:.92;
  transform: translateY(-1px);
}
.footer__copy{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;}

/* =========================
   Responsive
   ========================= */

/* <=1024 : hero画像切替 + some scale */
@media (max-width:1024px){
  html,
  body{
    overflow-x:hidden;
    overflow-x:clip;
  }

  .hero__content{
    background-image:url("../img/hero_tablet.jpg");
    background-position:  top;
  }

  .problem__inner .section__title {
   background: var(--gold-2);
  }

  .problem__inner::before{
    display: none;
  }

  .feature-photo::before,
  .feature-text::before{
    right:0;
  }

  #solution .card-grid{
    flex-wrap:wrap;
    display: flex;
    flex-direction: row-reverse;
  }

  #solution .card-grid .card,
  #solution .card-grid .solution-img{
    width:calc((100% - clamp(20px, 4vw, 36px)) / 2);
  }

  .problem__list li{
    white-space:normal;
  }

  .hero__trust{
    flex-wrap:wrap;
  }

  .hero__trust .badge{
    max-width:100%;
    white-space:normal;
  }

  .hero-text{padding:clamp(20px,2vw,200px) clamp(50px,3vw,80px);}
  .hero__title{font-size:3rem;margin-top:clamp(20px,60%,30px);}
  .hero__cta{width:50%;font-size:1.5rem;}
  .hero__trust .badge{font-size:1rem;}
  .problem__list{width:50%;}
}

/* >=768 : fat grid + features 2col */
@media (min-width:768px){
  .caseCard{grid-template-columns:2fr 1fr;align-items:start;}
  .support__grid{grid-template-columns:repeat(3, 1fr);align-items:stretch;}
  .fat__grid{grid-template-columns: 1.1fr 0.9fr;}
  .feature-item{display:grid;grid-template-columns:1fr 1fr;gap: 2.2rem;}
  .feature-item--left .feature-text{order:2;}
  .feature-item--left .feature-photo{order:1;}
}

/* <=768 : sections / faq / contact / doctor / footer / sticky cta */
@media (max-width:768px){
  .caseDesign__item{background-position:center top;background-size:cover;}

  #solution .card-grid{flex-direction:column;gap:16px;}
  #solution .card-grid .card,
  #solution .card-grid .solution-img{max-width:100%; width: 100%;}

  .section{padding:48px 0;}

  .problem__proofGrid{grid-template-columns:1fr;}
  .risk__grid{grid-template-columns:1fr;}

  .faq__title,.contact__title{font-size:26px;}
  .faq__lead,.contact__lead{font-size:14px;}
  .faq__card{padding:18px 16px;}
  .faq__question{padding-right:28px;font-size:14px;}
  .faq__answer{font-size:14px;}

  .contact__form{padding:20px 18px;}
  .contact__grid{grid-template-columns:1fr;}

  .footer__inner{padding:32px 1.2rem 16px;}
  .footer__grid{grid-template-columns:1fr;gap:18px;margin-bottom: 10%;}
  .footer__row{grid-template-columns:52px 1fr;}
  .footer__brand{margin:0 auto;}
  .footer__navTitle{text-align:center;}
  .footer__navList{text-align:center;}
  .footer__actions{display: none;}


  .sticky-cta{display:flex;}
  body{padding-bottom:74px;}
}

/* <=900 : tablet portrait adjustment */
@media (max-width:900px){
  .hero-text{padding:clamp(16px,2vw,48px) clamp(24px,4vw,56px) 0;}
  .hero__cta{width:min(70%, 420px);}
}

/* <=640 : hero + problem list wrap */
@media (max-width:640px){
  .btn {
    font-size: 1.3rem;
  }

  .nav__cta{display:none;}

  .header__inner {
    padding: clamp(10px, 1.8vw, 18px) 2rem;
  }

  .hero__content{
    /* SP可読性対策: 先頭の linear-gradient で画像をやや暗くして文字を読みやすくしている箇所 */
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.4)),
      url("../img/hero_sp.jpg");
    background-position:center top;
  }

  .hero__title,
  .hero__subtitle,
  .hero-text p{
    color:#fff;
    text-shadow:0 2px 10px rgba(0, 0, 0, 0.45);
    font-size: 1rem;
  }

  .hero__subtitle .accent {
    color: var(--gold);
    font-size: 1.25rem;
  }

  .hero__title{margin-bottom:5%;margin-top: 0; font-size:1.7rem;}
  .hero-text{padding:calc(0px + 1vw) calc(5px + 2vw) 0;}
  .hero__cta{width:100%;}

  .hero__trust{flex-direction:column;gap:20px;margin:.7rem auto;text-align:center;}
  .hero__trust .badge{font-size:1.25rem;padding:.7rem .9rem;margin:.1rem 0;}

  .badge {
    margin-bottom: 30px;
  }
  .problem__inner {
    max-width: 400px;
  }

  .problem__inner::before{
    top: 12%;
    width: 100%;
    height: 3.7rem;
  }
  .problem__list{width:100%;}
  .problem__list li{white-space:normal;}

  .grid--2 .card:not(:last-of-type)::after{
    left:30px;
    top:30%;
    height:100%;
  }

 .card-grid {
    flex-direction: column;
    align-items: center;
  }

  .feature-actions{
    text-align: center;
  }

  .features__list{
    gap: 5rem;
  }
  .feature-item{display:grid;grid-auto-columns:1fr 1fr;gap: 2.2rem;}

  .feature-item--sp-btn-bottom{display:flex;flex-direction:column;}
  .feature-item--sp-btn-bottom .feature-content{order:1;}
  .feature-item--sp-btn-bottom .feature-actions{order:2;}


  .flow-grid .flow-card:not(:last-of-type)::after{
    left:30px;
    top:42%;
    height:calc(100% + 40px);
  }

    .riskCard__title{
    text-align: center;
  }

  .supportCard__title {
    text-align: center;
  }

  .flow-card-title {
    font-size: 1.25rem;
  }

  .flow-card-text {
    font-size: 1.125rem;
  }
}

/* <=480 : small phone adjustment */
@media (max-width:480px){
  .section__title{font-size:clamp(20px,6vw,24px);}
  .btn{font-size:1.2rem;}
}

@media (min-width:1022px){
  .header__inner{padding:clamp(8px,1.2vw,15px) 2rem;}
  .btn--primary{font-size:1.5rem;}
  .hamburger{width:clamp(54px,9vw,62px);height:clamp(54px,9vw,62px);}
}

@media (max-width:375px){
  .section__header{margin-bottom:18px;}
}