/* =========================================================
   BIOPORT＋ LP  /  style.css
   Mobile-first (375rem design). On desktop: centered stage with soft gradient.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --c-text:        #604e4a;
  --c-text-sub:    #8d6f6c;
  --c-text-mute:   #746461;

  --c-burg:        #B78181;   /* burgundy pill / CTA */
  --c-burg-dk:     #9a5358;
  --c-burg-lt:     #c6868a;

  --c-strong:      #ff3542;
  --c-pink:        #e7848c;
  --c-pink-deep:   #d0929a;
  --c-pink-sub:    #ebd8db;
  --c-rose:        #AC6469;
  --c-cream:       #faf3f1;
  --c-cream-2:     #fbf3ef;

  --c-blue:        #88bcd0;
  --c-blue-2:      #79b2d1;

  --c-yellow:      #d9a63f;

  --c-orange:      #f8c5a2;   /* Q2 bar */
  --c-mauve-bar:   #b06c70;   /* Q2 bar */

  --c-line:        #e7d8d4;
  --c-white:       #ffffff;

  --ff-base:   "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  --ff-num:    "Helvetica Neue", Arial, sans-serif;

  --w-stage: 480rem;
  --radius-sm: 8rem;
  --radius-md: 16rem;
  --radius-lg: 24rem;
  --radius-pill: 999rem;

  font-size: 1px;
}

@media screen and (max-width: 480px) {
  :root {
    font-size: calc(100vw * 1 / 430);
  }
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-base);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}
img, svg { display:block; max-width:100%; height:auto; }
button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
a { color:inherit; text-decoration:none; }
ul, ol { list-style:none; padding:0; margin:0; }
p { margin: 0; }
h1, h2, h3, h4 { margin:0; font-weight: 500; }
table { border-collapse: collapse; }

.num { 
  font-family: var(--ff-base) ,"Yu Gothic", "YuGothic", "Hiragino Sans"; font-weight: 600; letter-spacing:.01em; }

/* ---------- Layout shell ---------- */
.stage {
  width: 100%;
  max-width: var(--w-stage);
  margin: 0 auto;
  background: var(--c-white);
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) {
  body {
    min-height: 100vh;
    background:
      radial-gradient(1100rem 700rem at 18% 12%, rgba(231,132,140,.18), transparent 60%),
      radial-gradient(900rem 700rem at 82% 88%, rgba(136,188,208,.18), transparent 60%),
      linear-gradient(180deg, #fbf4f0 0%, #efe2df 100%);
    background-attachment: fixed;
    padding: 0rem 16rem;
  }
  .stage {
    box-shadow:
      0 30rem 80rem rgba(96,78,74,.18),
      0 10rem 30rem rgba(96,78,74,.10);
  }
}

/* ---------- Fade-in base ---------- */
[data-fade] {
  opacity: 0;
  transform: translateY(20rem);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--fade-delay, 0s);
  will-change: opacity, transform;
}
[data-fade].is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity:1; transform:none; transition:none; }
}

/* 背景色を持つ section は常時表示し、内側の子要素のみフェードインさせる
   （ユーザー要望: 背景色を含めてフェードインさせない） */
section.survey[data-fade],
section.about[data-fade],
section.concerns[data-fade],
section.bp-intro[data-fade],
section.reasons[data-fade],
section.worry[data-fade],
section.doctor-rx[data-fade],
section.flow[data-fade],
section.faq[data-fade],
section.clinic[data-fade],
section.dr[data-fade],
section.side[data-fade],
section.contact[data-fade] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
section.survey[data-fade] > *,
section.about[data-fade] > *,
section.concerns[data-fade] > *,
section.bp-intro[data-fade] > *,
section.reasons[data-fade] > *,
section.worry[data-fade] > *,
section.doctor-rx[data-fade] > *,
section.flow[data-fade] > *,
section.faq[data-fade] > *,
section.clinic[data-fade] > *,
section.dr[data-fade] > *,
section.side[data-fade] > *,
section.contact[data-fade] > * {
  opacity: 0;
  transform: translateY(20rem);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
section.survey[data-fade].is-visible > *,
section.about[data-fade].is-visible > *,
section.concerns[data-fade].is-visible > *,
section.bp-intro[data-fade].is-visible > *,
section.reasons[data-fade].is-visible > *,
section.worry[data-fade].is-visible > *,
section.doctor-rx[data-fade].is-visible > *,
section.flow[data-fade].is-visible > *,
section.faq[data-fade].is-visible > *,
section.clinic[data-fade].is-visible > *,
section.dr[data-fade].is-visible > *,
section.side[data-fade].is-visible > *,
section.contact[data-fade].is-visible > * {
  opacity: 1;
  transform: none;
}

/* ---------- Generic placeholder (for missing images) ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6e8e3;
  color: rgba(160,118,110,.55);
  font-size: 10rem;
  letter-spacing: .03em;
  border: 1rem dashed rgba(160,118,110,.35);
}
.ph--hero {
  width:100%;
  aspect-ratio: 375/420;
  background: linear-gradient(180deg, #f4d7c4 0%, #ecb59c 100%);
  border: 0;
}
.ph--about     { width:100%; aspect-ratio: 375/280; background: linear-gradient(180deg, #f8e7e0 0%, #f1d8cf 100%); border: 0; }
.ph--avatar    { width:60rem; height:60rem; border-radius:50%; }
.ph--product   { width:100%; aspect-ratio: 320/200; border-radius:8rem; }
.ph--worry     { width:200rem; aspect-ratio: 1/1.2; border-radius:8rem; }
.ph--medicines { width:240rem; aspect-ratio: 240/170; }
.ph--cat       { width:140rem; height: 100%; border-radius:0; }
.ph--step      { width:90rem;  height:90rem; border-radius:50%; }
.ph--clinic    { width:100%; aspect-ratio: 320/180; border-radius:0; }
.ph--dr        { width:110rem; height:110rem; border-radius:50%; }

/* =========================================================
   1. Top bar
   ========================================================= */
.topbar {
  background: var(--c-blue);
  height: 64rem;
  padding: 0 20rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar__logo { margin: 0; line-height: 1; }
.topbar__logo img { height: 22rem; width: auto; }
.topbar__mypage {
  display: flex;
  align-items: center;
  gap: 4rem;
  color: var(--c-white);
  font-size: 12rem;
  letter-spacing: .03em;
}

/* =========================================================
   2. Ribbon banner
   ========================================================= */
.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  padding: 22rem 24rem 16rem;
  background: var(--c-white);
  font-size: 14rem;
  color: var(--c-text-sub);
  letter-spacing: .03em;
  font-weight: 400;
}
.ribbon__slash { color: var(--c-text-sub); font-size: 18rem; font-weight: 400; }
.ribbon__text { font-size: 14rem; font-weight: 400; }
.ribbon__brand { font-size: 18rem; font-weight: 400; }

/* =========================================================
   3. Hero
   ========================================================= */
.hero {
  position: relative;
  background: #EBD8DB; /* mv.png 直下から CTA 下まで一面 #EBD8DB */
  padding-bottom: 28rem;
  overflow: hidden;
}
.hero__bg {
  position: relative;
  width: 100%;
  background: var(--c-white);
}
.hero__photo {
  width: 100%;
  height: auto;
  display: block;
}
.hero__inner {
  position: absolute;
  top: 18rem;
  left: 24rem;
  width: calc(100% - 48rem);
  z-index: 2;
}
.hero__pill {
  display: inline-block;
  background: #BD8B8B;
  color: var(--c-white);
  font-size: 15rem;
  letter-spacing: .05em;
  padding: 4rem 16rem;
  border-radius: 0;
  font-weight: 500;
  font-family: var(--ff-base);
}
.hero__title {
  margin-top: 12rem;
  color: var(--c-text);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  line-height: 1.59;
}
.hero__title-row {
  display: block;
  margin-bottom: 0;
}
.hero__title-em {
  font-size: 28rem;
  letter-spacing: .015em;
  font-weight: 500;
  font-family: "Noto Serif JP", serif;
}
.hero__title-sub {
  font-size: 20rem;
  letter-spacing: .065em;
  font-weight: 500;
  font-family: "Noto Serif JP", serif;
  margin-left: 1rem;
}
.hero__tags {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10rem 10rem;
  margin-top: 24rem;
  position: relative;
  z-index: 2;
}
.hero__tags li {
  background: rgba(255,255,255,.78);
  color: #8D6F6C;
  font-size: 13rem;
  text-align: center;
  padding: 4rem 24rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2rem 5rem rgba(96,78,74,.10);
  letter-spacing: 0;
  font-weight: 400;
}

/* features (3 cards: ¥0 / calendar / truck) — overlap with hero photo */
.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7rem;
  margin: -36rem 20rem 0;
  position: relative;
  z-index: 3;
}
.feature {
  background: var(--c-white);
  border: 0.5rem solid var(--c-rose);
  border-radius: 10rem;
  overflow: hidden;
  text-align: center;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.feature__top {
  background: var(--c-white);
  padding: 10rem 4rem 10rem;
}
.feature__bottom {
  background: #F9F4F4;
  padding: 8rem 4rem 8rem;
}
.feature__icon {
  display: block;
  width: 70rem;
  margin: 0 auto;
  object-fit: contain;
}
.feature__small {
  font-size: 15rem;
  color: var(--c-burg);
  line-height: 1.3;
  letter-spacing: .03em;
  font-weight: 700;
  margin: 0;
}
.feature__big {
  font-size: 17rem;
  font-weight: 700;
  color: var(--c-burg);
  letter-spacing: .03em;
  margin: 0;
}

.hero__notice {
  margin: 20rem 20rem 0;
  padding: 0;
  background: transparent;
  font-size: 9rem;
  line-height: 1.65;
  color: #8D6F6C;
}
.hero__notice strong { font-weight: 500; color: var(--c-text); display: block; margin-bottom: 4rem; }

/* ---------- CTA buttons ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  background: var(--c-burg);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: .04em;
  transition: box-shadow .2s ease, opacity .2s ease;
}
.cta:hover { box-shadow: 0 8rem 20rem rgba(172,100,105,.35); opacity: .92; }
.cta--hero {
  position: fixed;
  left: 50%;
  bottom: 16rem;
  transform: translateX(-50%);
  z-index: 200;
  margin: 0;
  width: calc(100% - 32rem);
  max-width: 343rem;
  height: 56rem;
  font-size: 20rem;
  font-weight: 500;
  letter-spacing: .04em;
  box-shadow: 0 8rem 22rem rgba(172,100,105,.40);
}
.cta--hero:hover { transform: translateX(-50%); } /* hover時に位置固定 */
@media (min-width: 768px) {
  .cta--hero {
    width: 343rem;
  }
}
.cta--card {
  margin-top: 22rem;
  height: 44rem;
  font-size: 16rem;
  font-weight: 700;
  /* padding: 0 18rem; */
}

/* =========================================================
   4-7. Survey container
   ========================================================= */
.survey {
  background: var(--c-white);
  padding: 0;
}
.survey--cont {
  background: var(--c-white);
}
/* Survey banner — blue trapezoid with chevron */
.survey__banner {
  padding: 28rem 24rem 8rem;
  text-align: center;
  position: relative;
  margin-bottom: 32rem;
  background: var(--c-blue);
}
.survey__banner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -31rem;
  transform: translateX(-50%);
  border-left: 50vw solid transparent;
  border-right: 50vw solid transparent;
  border-top: 32rem solid var(--c-blue);
  z-index: 999;
}
@media (min-width: 481px) {
  .survey__banner::after {
    border-left: 240rem solid transparent;
    border-right: 240rem solid transparent;
  }
}
.survey__pre {
  color: var(--c-white);
  font-size: 21rem;
  letter-spacing: .04em;
  margin-bottom: 14rem;
  font-weight: 700;
  font-family: var(--ff-base) ,"Yu Gothic", "YuGothic", "Hiragino Sans";
  text-shadow: 1rem 1rem 0 rgba(0,0,0,.3);
}
.survey__white-box {
  background: var(--c-white);
  color: var(--c-blue-2);
  font-size: 13rem;
  font-weight: 700;
  border-radius: 0;
  padding: 0 14rem;
  margin: 0 auto 6rem;
  width: 280rem;
  height: 32rem;
  display: flex;
  align-items: end;
  justify-content: center;
  letter-spacing: .08em;
  font-family: var(--ff-base) ,"Yu Gothic", "YuGothic", "Hiragino Sans";
}
.survey__white-box .small { 
  font-size: 15rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.survey__white-box .big { font-size: 20rem; font-weight: 500; }
.survey__white-box--accent { color: var(--c-blue-2);width: 240rem;position: relative; }
.survey__white-box--accent .num {
    font-size: 23rem;
    font-weight: 500;
    margin-bottom: -2rem;
    margin-right: 1rem;
}
.survey__white-box--accent .big { font-size: 20rem; font-weight: 500; }
.survey__white-box--accent .small { font-size: 14rem; font-weight: 500; }

.survey__white-box--accent::before,.survey__white-box--accent::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 6rem;
  width: 1rem;
  height: 21rem;
  background: var(--c-blue-2);
  transform-origin: bottom center;
}

.survey__white-box--accent::before {
    left: 35rem;
    transform: rotate(-28deg);
}

.survey__white-box--accent::after {
    right: 35rem;
    transform: rotate(28deg);
}

/* Qbox card */
.qbox {
  padding: 56rem 24rem 32rem;
  background: var(--c-white);
}
.qbox__q {
  text-align: center;
  font-size: 20rem;
  color: var(--c-text);
  letter-spacing: 0;
  margin-bottom: 24rem;
  font-weight: 500;
  line-height: 1.65;
  font-family: var(--ff-base);
}
.q-mark {
  font-family: var(--ff-num);
  font-size: 22rem;
  font-weight: 400;
  margin-right: 4rem;
  color: var(--c-text);
}
.qbox__small { display:block; font-size: 11rem; color: var(--c-text-sub); margin-top: 4rem; font-weight: 400; }

/* Q1/Q2 chart image */
.qbox__chart {
  /* display: block; */
  width: 100%;
  max-width: 240rem;
  margin: 8rem auto 20rem;
  height: auto;
}
.qbox__chart--bars { max-width: 320rem; }

/* Conclusion text */
.conclusion {
  text-align: center;
  font-size: 21rem;
  color: var(--c-pink);
  letter-spacing: 0;
  margin-top: 20rem;
  line-height: 1.8;
  font-weight: 500;
}
.conclusion .big {
  font-family: var(--ff-num);
  font-size: 30rem;
  font-weight: 700;
  margin: 0 4rem;
}
.conclusion .big .num {
  font-weight: 700;
  letter-spacing: .01em;
  font-family: "Google Sans";
}
.conclusion .line-under {
  position: relative;
  display: inline-block;
  padding-bottom: 2rem;
}
.conclusion .line-under::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5rem;
  height: 1rem;
  background: var(--c-pink);
}
.conclusion .line-under:nth-child(1):after {
    bottom: 10rem;
}

/* About overlay — curved-top photo with text */
.about {
  position: relative;
  background: var(--c-white);
  padding: 0;
}
.about__inner {
  position: relative;
  height: 290rem;
  overflow: hidden;
}
.about__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 上の白三角形（下向きに尖る） — 写真の上端中央に被さる */

.about__text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--c-rose);
  font-size: 15rem;
  line-height: 2;
  letter-spacing: .04em;
  font-weight: 500;
  padding: 0 16rem;
  white-space: nowrap;
}

/* Q2 bar chart */
.qbox--bars { padding: 26rem 24rem 60rem; }
.bars { display: flex; flex-direction: column; gap: 12rem; }
.bar {
  position: relative;
  width: 100%;
  height: 36rem;
}
.bar__fill {
  display: flex;
  align-items: center;
  height: 100%;
  border-radius: 3rem;
  padding: 0 10rem;
  width: var(--w, 100%);
  min-width: 195rem;
  color: var(--c-white);
  font-size: 12rem;
  position: relative;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .15s;
  white-space: nowrap;
}
[data-fade].is-visible .bar__fill { transform: scaleX(1); }
.bar__dot {
  width: 7rem;
  height: 7rem;
  background: var(--c-white);
  margin-right: 8rem;
  flex: 0 0 7rem;
}
.bar__label {
  font-size: 12rem;
  letter-spacing: .02em;
  margin-right: auto;
  font-weight: 500;
  white-space: nowrap;
}
.bar__num {
  font-size: 12rem;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 12rem;
}
.bar__num .num { font-size: 13rem; }
.bar--a .bar__fill { background: linear-gradient(90deg, #eba883 0%, #e09a73 100%); }
.bar--b .bar__fill { background: linear-gradient(90deg, #9fc1d0 0%, #8bb6c8 100%); }
.bar--c .bar__fill { background: linear-gradient(90deg, #c08b8f 0%, #b07579 100%); }
/* Counter-scale so text inside isn't distorted while bar grows */
.bar__fill .bar__label,
.bar__fill .bar__num,
.bar__fill .bar__dot { transform-origin: left; }
.bar--a .bar__fill { /* 2135 — widest */ }
.bar--b .bar__fill { width: 67%; min-width: 195rem; }
.bar--c .bar__fill { width: 44%; min-width: 195rem; }

/* Q3 concerns */
.concerns {
  background: var(--c-cream);
  padding: 96rem 24rem 28rem;
  position: relative;
  margin-bottom: 90rem;
}
.concerns::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50rem;
    background: var(--c-white);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 1;
    pointer-events: none;
}
.concerns::after {
    content: "";
    position: absolute;
    bottom: -49rem;
    left: 0;
    width: 100%;
    height: 50rem;
    background: var(--c-cream);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 1;
    pointer-events: none;
}
.concern-list {
  display: flex;
  flex-direction: column;
  gap: 18rem;
  margin-top: 6rem;
  align-items: center;
}
.concern {
  display: grid;
  grid-template-columns: 70rem auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 4rem 14rem;
  width: 240rem;
}
.concern__avatar {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.concern__avatar .ph--avatar { width: 54rem; height: 54rem; }
.concern__avatar img {
  width: 54rem;
  height: 54rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.concern__num {
  grid-row: 2;
  grid-column: 1;
  font-size: 14rem;
  font-weight: 500;
  text-align: center;
  margin-top: 2rem;
  letter-spacing: 0;
}
.concern__num .num {
  font-size: 23rem;
  font-weight: 700;
  margin-right: 1rem;
  font-family: "Google Sans";
  line-height: 1;
}
.concern__body {
  grid-row: 1 / span 2;
  grid-column: 2;
  border-left: 1rem solid var(--c-line);
  padding-left: 14rem;
  align-self: center;
}
.concern__cat {
  font-size: 20rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
}
.concern__sub {
  font-size: 13rem;
  color: var(--c-text-mute);
  margin-top: 4rem;
  line-height: 1.6;
}
.concern--a .concern__cat,
.concern--a .concern__num { color: var(--c-yellow); }
.concern--b .concern__cat,
.concern--b .concern__num { color: var(--c-pink); }
.concern--c .concern__cat,
.concern--c .concern__num { color: var(--c-blue-2); }

.solve {
  text-align: center;
  margin-top: 46rem;
  font-size: 20rem;
  color: var(--c-pink);
  line-height: 2.1;
  font-weight: 500;
}
.solve .under {
  position: relative;
  display: inline-block;
  padding-bottom: 2rem;
}
.solve .under::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5rem;
  height: 1rem;
  background: var(--c-pink);
}
.solve__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70rem;
  height: 70rem;
  border-radius: 50%;
  background: var(--c-pink-sub);
  color: var(--c-burg);
  font-size: 15rem;
  font-weight: 500;
  margin-bottom: 12rem;
  position: absolute;
  bottom: -100rem;
  z-index: 999;
  left: 50%;
  transform: translateX(-50%) !important;
}

/* =========================================================
   8. BP intro
   ========================================================= */
.bp-intro {
  background: var(--c-white);
  padding: 10rem 24rem 48rem;
  text-align: center;
  position: relative;
}
.bp-intro__brand {
  font-size: 28rem;
  color: var(--c-text);
  letter-spacing: .04em;
  margin: 14rem 0 22rem;
  font-weight: 500;
}
.bp-intro__brand .num { font-weight: 500; font-family: var(--ff-base); }
.bp-intro__desc {
  font-size: 16rem;
  font-weight: 400;
  text-align: left;
  line-height: 2;
  color: var(--c-text);
  margin-bottom: 24rem;
}
.bp-product {
  margin: 0 auto;
  max-width: 100%;
  line-height: 0;
  box-shadow: 0 0 18rem rgba(0, 0, 0, .25);
}
.bp-product img {
  width: 100%;
  border-radius: 0;
  display: block;
}

/* "興味はあるけれど..." card */
.bp-card {
  background: var(--c-white);
  border-radius: 0;
  padding: 28rem 20rem 24rem;
  margin-top: 0;
}
.bp-card__text {
  text-align: center;
  font-size: 14rem;
  color: var(--c-text-sub);
  margin: 0 0 8rem;
  line-height: 1.8;
}
.bp-card__quote {
  text-align: center;
  font-size: 13rem;
  color: var(--c-text-sub);
  margin: 0 0 6rem;
  line-height: 1.8;
}
.bp-card__text--em { font-weight: 400; }

/* =========================================================
   9. Reasons
   ========================================================= */
.reasons {
  background: #EBD8DB;
  padding: 88rem 24rem 56rem;
  position: relative;
}
.reasons::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -34rem;
    width: 110%;
    height: 78rem;
    background: var(--c-white);
    clip-path: ellipse(50% 50% at 50% 50%);
    transform: translateX(-50%);
}
.reasons__title {
  position: relative;
  text-align: center;
  font-size: 20rem;
  color: var(--c-text-sub);
  letter-spacing: .04em;
  line-height: 1.7;
  margin: 6rem 0 48rem;
  font-weight: 500;
}
.rcard {
  background: var(--c-white);
  border-radius: 0;
  padding: 35rem;
  margin-bottom: 42rem;
  position: relative;
  border: 0.5rem solid var(--c-rose);
}
.rcard__check {
  position: absolute;
  top: -16rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32rem;
  height: 32rem;
  background: var(--c-rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rcard__title {
  text-align: center;
  font-size: 17rem;
  color: var(--c-text-sub);
  font-weight: 500;
  margin-bottom: 14rem;
  letter-spacing: .03em;
}
.rcard__body {
  display: grid;
  grid-template-columns: 70rem 1fr;
  gap: 12rem;
  align-items: center;
}
.rcard__icon {
  width: 70rem;
  height: 70rem;
  display: block;
  object-fit: contain;
}
.rcard__icon svg { width: 56rem; height: 56rem; color: var(--c-burg); }
.rcard__desc {
  font-size: 13rem;
  color: var(--c-text-sub);
  line-height: 1.8;
}
.rcard__link {
  grid-column: 1 / -1;
  margin: 10rem auto 0;
  display: flex;
  align-items: center;
  gap: 6rem;
  font-size: 12rem;
  color: var(--c-rose);
  border-bottom: 1rem solid var(--c-rose);
  padding-bottom: 4rem;
  font-weight: 500;
  justify-content: center;
  width: 280rem;
}
.rcard__link a { color: inherit; }
.rcard__link-icon { width: 18rem; height: 18rem; object-fit: contain; flex: 0 0 18rem; }

/* =========================================================
   10. 悩み (worry)
   ========================================================= */
.worry {
  padding: 0;
  position: relative;
}
.worry__inner {
  padding: 50rem 24rem 32rem;
  position: relative;
  z-index: 2;
}
.worry__title {
  text-align: center;
  font-size: 20rem;
  color: var(--c-text);
  line-height: 1.7;
  letter-spacing: .03em;
  margin-bottom: 8rem;
  font-weight: 500;
  position: relative;
  z-index: 3;
}
.worry__sub {
  text-align: center;
  font-size: 14rem;
  color: var(--c-text-sub);
  margin-bottom: 22rem;
  position: relative;
  z-index: 3;
}
.rank {
  position: relative;
  z-index: 3;
}
.rank__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6rem;
  margin-bottom: 10rem;
  padding: 10rem 14rem;
  background: linear-gradient(90deg, var(--c-pink) 0%, var(--c-pink-deep) 100%);
  color: var(--c-white);
  border-radius: 4rem;
  width: var(--w, 100%);
  max-width: 240rem;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(.2,.7,.2,1) .15s;
  white-space: nowrap;
}
[data-fade].is-visible.rank__item { transform: scaleX(1); }
.rank__no {
  font-family: var(--ff-num);
  font-weight: 600;
  font-size: 15rem;
  letter-spacing: 0;
}
.rank__name {
  font-size: 13rem;
  letter-spacing: .04em;
  font-weight: 500;
  white-space: nowrap;
}
.rank__count {
  color: var(--c-pink);
  background: transparent;
  position: absolute;
  right: -56rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-num);
  font-weight: 600;
  font-size: 14rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  white-space: nowrap;
}
.rank__count small { font-family: var(--ff-base); font-size: 10rem; }

/* 悩みランキング画像版（worry-graph.png） */
.worry__graph {
  display: block;
  width: 91%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.worry__photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  opacity: .85;
  object-fit: cover;
  object-position: left center;
}
.ph--worry {
  position: absolute;
  right: 0;
  top: 60rem;
  z-index: 0;
}

/* だからこそ bridge */
.bridge {
  position: relative;
  text-align: center;
  padding: 68rem 24rem 28rem;
  z-index: 3;
}
.bridge__pill {
  display: inline-block;
  background: var(--c-cream);
  color: var(--c-burg-dk);
  font-size: 16rem;
  padding: 5rem 18rem;
  margin-bottom: 14rem;
  font-weight: 500;
}
.bridge__text {
  color: var(--c-rose);
  font-size: 18rem;
  line-height: 1.9;
  letter-spacing: .03em;
  font-weight: 500;
}
.dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20rem;
  margin-top: 18rem;
}
.dots i {
  width: 5rem;
  height: 5rem;
  background: #EBD8DB;
  border-radius: 50%;
  box-shadow: 0 0 3rem 3rem rgba(0, 0, 0, 0.05);
}

/* =========================================================
   11. 医師がぴったりの薬を + 薬写真
   ========================================================= */
.doctor-rx {
  background: var(--c-white);
  padding: 0rem 24rem 40rem;
  text-align: center;
}
.doctor-rx__title {
  font-size: 20rem;
  color: var(--c-text);
  letter-spacing: .04em;
  margin-bottom: 18rem;
  font-weight: 500;
  line-height: 1.7;
  display: inline-block;
  position: relative;
}

.doctor-rx__title::before,.doctor-rx__title::after {
    content: "";
    display:block;
    position: absolute;
    bottom: 0;              /* 対象要素の下辺を起点にする */
    width: 1rem;             /* 線の太さ */
    height: 33rem;           /* 線の長さ */
    background: var(--c-text);
    transform-origin: bottom center;
}

.doctor-rx__title::before {
    left: -10rem;
    transform: rotate(-28deg);
}

.doctor-rx__title::after {
    right: -4rem;
    transform: rotate(28deg);
}
.doctor-rx img,
.ph--medicines { margin: 0 auto; }

/* =========================================================
   12. Plan cards
   ========================================================= */
.plans {
  background: var(--c-white);
  padding: 0 0 56rem;
}
.plan-cat {
  background: #F2F2F2;
  margin: 10rem 20rem 20rem;
  box-shadow: 0 0 3rem 3rem rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden; /* 折りたたみ時の overflow を隠す */
}

/* ----- アコーディオン: 折りたたみ表示 ----- */
.plan-cat__list {
  position: relative;
  max-height: 280rem; /* 折りたたみ時の表示高（JSで開く時 scrollHeight に書き換え） */
  overflow: hidden;
  transition: max-height .7s cubic-bezier(.22,.61,.36,1);
}
/* ボタン上のグラデーション（白フェード） */
.plan-cat__list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140rem;
  background: linear-gradient(180deg, rgba(242, 242, 242, 0) 0%, rgba(255, 255, 255, .95) 70%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s ease;
}
/* 開いた状態: グラデーションを消す */
.plan-cat.is-open .plan-cat__list::after {
  opacity: 0;
}

/* ----- 「もっと見る」ボタン ----- */
.plan-cat__more {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 60rem;
  max-height: 60rem;
  background: #b9aea8;
  color: var(--c-white);
  font-size: 16rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  border: 0;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity .45s ease, max-height .55s cubic-bezier(.22,.61,.36,1), padding .55s ease;
}
.plan-cat__more::after {
    content: "";
    display: block;
    position: absolute;
    height: 0.5rem;
    width: 100%;
    background: var(--c-white);
    bottom: 5rem;
}
.plan-cat__more:hover { opacity: .92; }
.plan-cat__more-text {
  font-size: 16rem;
}
.plan-cat__more-icon {
  position: absolute;
  right: 18rem;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  color: var(--c-white);
  transform: translateY(-50%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.plan-cat__more-icon svg { display: block; }
/* 開いた状態: 矢印を一瞬上向きにしてから（演出）ボタンごとフェードアウト */
.plan-cat.is-open .plan-cat__more-icon {
  transform: translateY(-50%) rotate(180deg);
}
/* 開いた状態: ボタン自体をフェード＆畳んで消す */
.plan-cat.is-open .plan-cat__more {
  opacity: 0;
  max-height: 0;
  padding: 0;
  pointer-events: none;
}
.plan-cat__head {
  position: relative;
  padding: 28rem 42% 28rem 5%;
  min-height: 140rem;
  background: var(--c-white);
  overflow: hidden;
}
.plan-cat__title {
  font-size: 24rem;
  color: var(--c-text);
  letter-spacing: .04em;
  font-weight: 500;
  margin: 0 auto 7rem;
  padding-bottom: 2rem;
  width: auto;
  text-align: center;
}
.plan-cat__title > span {
    position: relative;
    @psi: ;
    display: inline-block;
    padding-bottom: 5rem;
    z-index: 1;
}
.plan-cat__title > span::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 10rem;
    left: 0;
    height: 5rem;
    width: 100%;
    background: #EADFE1;
    z-index: 0;
}
.plan-cat__title > span > span {
    display: block;
    position: relative;
    z-index: 2;
}
.plan-cat__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6rem;
  justify-content: center;
  align-items: center;
}
.plan-cat__tags li {
  background: var(--c-white);
  border: 1rem solid #b6a6a4;
  color: var(--c-text-sub);
  font-size: 11rem;
  font-weight: 400;
  text-align: center;
  padding: 2rem 0rem;
  border-radius: var(--radius-pill);
  width: 77rem;
}
.plan-cat__tags li.big {
    width: 130rem;
    grid-column: 1 / -1;
}
.plan-cat__head > img,
.plan-cat__head > .ph--cat {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  object-fit: cover;
}

/* プランカテゴリ内のカード一覧 */
.plan-cat__list {
  list-style: none;
  margin: 0;
  padding: 10rem;
  display: flex;
  flex-direction: column;
}

.pcard {
  background: var(--c-white);
  margin: 8rem 10rem;
  border-radius: 0;
  border: 1rem solid #f0e4e1;
  padding: 0 0 18rem;
  list-style: none;
}
.pcard__head {
  background: #D0929A;
  color: var(--c-white);
  text-align: center;
  font-size: 16rem;
  padding: 8rem 12rem;
  margin: 16rem;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
}
.pcard__head small {
  display: block;
  font-size: 12rem;
  font-weight: 400;
  margin-top: 2rem;
}
.price {
  width: calc(100% - 32rem);
  margin: 14rem 16rem 14rem;
  border: 1rem solid #B9B1B0;
  overflow: hidden;
  font-size: 13rem;
}
.price thead th {
  background: #f6efee;
  color: var(--c-text);
  font-weight: 500;
  padding: 6rem 4rem;
  font-size: 12rem;
  text-align: center;
  border-right: 1rem solid #B9B1B0;
  width: 50%;
}
.price thead th:last-child { border-right: 0; }
.price .th--accent { color: var(--c-strong); background: #fce6e3; }
.price tbody td {
  text-align: center;
  padding: 5rem 4rem;
  color: var(--c-text);
  border-right: 1rem solid #B9B1B0;
  border-top: 1rem solid #B9B1B0;
  font-size: 11rem;
}
.price tbody td:last-child { border-right: 0; }
.price tbody .td--accent { color: var(--c-strong); }
.price tbody .big { font-size: 20rem; font-weight: 400; margin: 0 2rem; }
.price tbody small { font-size: 9rem; margin-left: 2rem; }

.rx {
  display: grid;
  grid-template-columns: 82rem 1fr;
  gap: 8rem;
  padding: 0 16rem;
  margin: 4rem 0 10rem;
  font-size: 11rem;
  color: var(--c-text-sub);
  line-height: 1.7;
  align-items: center;
}
.rx dt { color: var(--c-text-sub); font-weight: 500; }
.rx dd { margin: 0; }

.pcard__desc {
  padding: 6rem 16rem 4rem;
  font-size: 11rem;
  color: var(--c-text-sub);
  line-height: 1.85;
}

/* =========================================================
   13. お薬が届くまで (flow)
   ========================================================= */
.flow {
  background: var(--c-cream);
  padding: 48rem 10rem 56rem;
}
.flow__title {
  text-align: center;
  font-size: 20rem;
  color: var(--c-text-sub);
  letter-spacing: .05em;
  margin-bottom: 28rem;
  font-weight: 500;
}
.flow__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 90%;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 90rem 1fr;
  gap: 7%;
  align-items: start;
  padding: 12rem 0;
  margin: 10rem 0;
  position: relative;
}
.step__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.step__photo .ph--step { background: #efe4e2; }
.step__photo img {
  width: 90rem;
  height: 90rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.step:not(:last-child) .step__photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28rem;
  width: 1rem;
  height: 28rem;
  background: #B8A6A4;
  transform: translateX(-50%);
}
.step:not(:last-child) .step__photo::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34rem;
  width: 0;
  height: 0;
  border-left: 5rem solid transparent;
  border-right: 5rem solid transparent;
  border-top: 6rem solid #B8A6A4;
  transform: translateX(-50%);
  z-index: 2;
}
.step__body { padding-top: 6rem; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: var(--c-burg);
  color: var(--c-white);
  font-family: var(--ff-num);
  font-weight: 700;
  font-size: 13rem;
  margin-right: 6rem;
  margin-top: 3rem;
  vertical-align: top;
}
.step__title {
  display: inline-block;
  color: var(--c-burg);
  font-size: 16rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.step__desc {
  font-size: 12rem;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-top: 4rem;
}

/* =========================================================
   14. FAQ grid
   ========================================================= */
.faq {
  background: #e9d5d0;
  padding: 48rem 24rem 56rem;
}
.faq__title {
  text-align: center;
  font-size: 20rem;
  color: var(--c-text-sub);
  letter-spacing: .05em;
  margin-bottom: 24rem;
  font-weight: 500;
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10rem;
}
.faqcard {
  background: var(--c-white);
  border-radius: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18rem 8rem 14rem;
  min-height: 110rem;
  height: 100%;
  color: var(--c-text-sub);
  text-align: center;
  font-size: 14rem;
  font-weight: 500;
  line-height: 1.55;
  transition: transform .2s ease, box-shadow .2s ease;
  border: solid 1rem #8D6F6C;
}
.faqcard:hover {
  transform: translateY(-2rem);
  box-shadow: 0 6rem 14rem rgba(96,78,74,.10);
}
.faqcard__icon {
  width: 48rem;
  height: 48rem;
  display: block;
  margin: 0 auto 8rem;
  object-fit: contain;
}
.faqcard__icon--other {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-burg);
}
.faqcard__icon--other svg { width: 44rem; height: 44rem; }

/* =========================================================
   15. クリニック紹介
   ========================================================= */
.clinic {
  background: var(--c-cream);
  padding: 56rem 24rem 24rem;
  text-align: center;
}
.clinic__title {
  font-size: 20rem;
  color: var(--c-text-sub);
  letter-spacing: .08em;
  margin-bottom: 22rem;
  font-weight: 500;
}
.clinic__name-en {
  font-size: 16rem;
  color: var(--c-text-sub);
  font-weight: 500;
  margin-bottom: 4rem;
}
.clinic__name-jp {
  font-size: 14rem;
  color: var(--c-text-sub);
  margin-bottom: 4rem;
}
.clinic__addr {
  font-size: 12rem;
  color: var(--c-text-sub);
  margin-bottom: 14rem;
}
.clinic img,
.clinic .ph--clinic {
  width: 100%;
}

/* =========================================================
   16. 監修医師
   ========================================================= */
.dr {
  background: var(--c-cream);
  padding: 24rem 34rem 48rem;
}
.dr__top {
  display: grid;
  grid-template-columns: 110rem 1fr;
  gap: 14rem;
  align-items: center;
  margin: 0 auto 42rem;
  max-width: 250rem;
}
.dr__photo {
  display: block;
}
.dr__photo img,
.dr__photo .ph--dr {
  width: 110rem;
  height: 150rem;
  /* border-radius: 50%; */
  object-fit: cover;
}
.dr__pre {
  font-size: 12rem;
  color: var(--c-text-sub);
  margin-bottom: 4rem;
}
.dr__name {
  font-size: 22rem;
  color: var(--c-text);
  letter-spacing: .08em;
  font-weight: 400;
  margin-bottom: 2rem;
}
.dr__yomi {
  font-size: 11rem;
  color: var(--c-text-sub);
  letter-spacing: .12em;
}
.dr__career-title {
  text-align: center;
  font-size: 15rem;
  color: var(--c-text-sub);
  margin-bottom: 16rem;
  font-weight: 400;
}
.dr__career li {
  display: grid;
  grid-template-columns: 75rem 1fr;
  gap: 8rem;
  font-size: 11rem;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 4rem;
}
.dr__year { color: var(--c-text-sub); }
.dr__txt  { color: var(--c-text-sub); }

/* =========================================================
   17. 副作用
   ========================================================= */
.side {
  background: var(--c-cream);
  padding: 24rem 44rem 56rem;
}
.side__title {
  text-align: center;
  font-size: 15rem;
  color: var(--c-text-sub);
  margin-bottom: 16rem;
  font-weight: 400;
  letter-spacing: .04em;
}
.side__body p {
  font-size: 10.5rem;
  line-height: 1.85;
  color: var(--c-text-sub);
  /* margin-bottom: 10rem; */
}
.side__body strong { color: var(--c-text-sub); font-weight: 400; }

/* =========================================================
   18. Contact
   ========================================================= */
.contact {
  background: #e9d5d0;
  padding: 48rem 24rem 56rem;
  text-align: center;
}
.contact__title {
  font-size: 16rem;
  color: var(--c-text-sub);
  letter-spacing: .04em;
  margin-bottom: 6rem;
  font-weight: 500;
  white-space: nowrap;
}
.contact__hours {
  font-size: 13rem;
  color: var(--c-text-sub);
  margin-bottom: 22rem;
}
.contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  font-size: 14rem;
  color: var(--c-text-sub);
  font-weight: 500;
  padding: 6rem 2rem;
  border-bottom: 1rem solid #ac9a98;
  margin: 0 auto 18rem;
  width: fit-content;
  line-height: 1;
}
.contact__btn .ext { opacity: .8; }
.contact__btn-icon { width: 22rem; height: 22rem; object-fit: contain; flex: 0 0 22rem; }
.contact__mail {
  font-size: 12rem;
  color: var(--c-text-sub);
  margin: 24rem 0 18rem;
  line-height: 1.9;
}
.contact__mail a {
  color: var(--c-text-sub);
  padding-bottom: 0;
  font-family: var(--ff-num);
  font-weight: 400;
}
.contact__note {
  font-size: 10.5rem;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-top: 22rem;
}

/* =========================================================
   19. Footer
   ========================================================= */
.footer {
  background: var(--c-blue);
  color: var(--c-white);
  text-align: center;
  padding: 32rem 24rem 116rem;
}
.footer__logo {
  margin: 0 0 14rem;
  line-height: 1;
}
.footer__logo img {
  height: 40rem;
  width: auto;
  margin: 0 auto;
  display: block;
  filter: brightness(0) invert(1);
}
.footer__url {
  font-family: var(--ff-num);
  font-size: 11rem;
  margin-bottom: 10rem;
}
.footer__url a { color: inherit; }
.footer__links {
  font-size: 11rem;
  margin-bottom: 16rem;
}
.footer__links a { color: inherit; }
.footer__copy {
  font-size: 10rem;
  color: rgba(255,255,255,.85);
  font-family: var(--ff-num);
  letter-spacing: .03em;
}
