:root {
  --bg: #f2f3f5;
  /* グレー味のある白 */
  --surface: #ffffff;
  --surface-muted: #f5f6f8;
  --ink: #1a2b3c;
  --muted: #6d7485;
  --line: #e2e6ec;
  --accent: #00a67e;
  /* 緑テーマ */
  --accent-2: #008f6b;
  --accent-soft: #e6f7f2;
  /* 緑の薄い背景 */
  --mint: #dff7f5;
  --pink: #ffe6f8;
  --yellow: #fff5cf;
  --shadow: 0 22px 50px rgba(36, 49, 75, 0.08);
  /* Layout */
  --frame: 36px;
  --frame-inner: 0px;
  --shell-radius: 22px;
  --radius-xl: 48px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 1200px;
}

.service-name {
  white-space: nowrap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--accent);
  /* 紫色の背景 */
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

main {
  overflow: visible;
  padding: 0;
}

.site-bg {
  display: none;
  /* page-frameの背景を使うため非表示 */
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.site-bg::before {
  top: 180px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: rgba(0, 166, 126, 0.05);
}

.site-bg::after {
  top: 520px;
  right: -90px;
  width: 200px;
  height: 200px;
  background: rgba(0, 198, 181, 0.06);
}

/* ===== 常時固定の紫フレーム ===== */
.fixed-frame {
  position: fixed;
  background: var(--accent);
  pointer-events: none;
}

/* 上部フレーム：左右より高いz-indexで角丸マスクが隠れないようにする */
.fixed-frame--top {
  top: 0;
  left: 0;
  right: 0;
  height: var(--frame);
  z-index: 160;
}

/* 左右フレーム */
.fixed-frame--left {
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--frame);
  z-index: 150;
}

.fixed-frame--right {
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--frame);
  z-index: 150;
}

/* ===== 逆角丸コーナーマスク =====
   左右フレームの::beforeで、コンテンツ上部の角に紫の逆角丸を配置。
   radial-gradientで円形の透明部分を作り、残りを紫で塗る。
   position:fixed の子なのでスクロールしても常に固定表示される。 */

/* 左上コーナー */
.fixed-frame--left::before {
  content: "";
  position: absolute;
  top: var(--frame);
  right: 0;
  transform: translateX(100%);
  width: var(--shell-radius);
  height: var(--shell-radius);
  background: radial-gradient(circle at 100% 100%, transparent 0, transparent var(--shell-radius), var(--accent) var(--shell-radius));
  pointer-events: none;
}

/* 右上コーナー */
.fixed-frame--right::before {
  content: "";
  position: absolute;
  top: var(--frame);
  left: 0;
  transform: translateX(-100%);
  width: var(--shell-radius);
  height: var(--shell-radius);
  background: radial-gradient(circle at 0% 100%, transparent 0, transparent var(--shell-radius), var(--accent) var(--shell-radius));
  pointer-events: none;
}

/* 旧要素は非表示 */
.purple-top-bar,
.page-frame {
  display: none;
}

/* page-inner: 白いコンテンツエリア */
.page-inner {
  position: relative;
  margin: var(--frame);
  padding-top: calc(var(--frame) + 64px + 16px);
  /* 上マージン位置からヘッダー(64px) + 余白(16px) */
  padding-bottom: var(--frame);
  background: #fff;
  min-height: 100vh;
  border-radius: var(--shell-radius);
  box-shadow: none;
  overflow: visible;
  clip-path: inset(0 round var(--shell-radius));
  isolation: isolate;
}

.container {
  width: min(calc(100% - 52px), var(--container));
  margin: 0 auto;
}

/* ヘッダー: 固定、紫フレームの直下 */
.site-header {
  position: fixed;
  top: calc(var(--frame) + 10px);
  /* フレームの直下 + 少し余白 */
  left: var(--frame);
  right: var(--frame);
  z-index: 120;
  padding: 0;
  background: transparent;
  border-bottom: none;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: none;
  border-radius: var(--shell-radius) var(--shell-radius) 0 0;
  /* 角丸は維持 */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.brand {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  /* 少し拡大 */
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 110;
  background:
    linear-gradient(rgba(7, 10, 16, 0.56), rgba(7, 10, 16, 0.56)),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: auto, 6px 6px;
  backdrop-filter: blur(10px) saturate(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  margin: 0;
  background: var(--ink);
  transform: translateX(-50%);
  transform-origin: center;
  transition: top 0.2s ease, transform 0.2s ease, opacity 0.16s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.header-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 10px;
  /* 四角に近い角丸 */
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-nav a:not(.header-cta):hover {
  background: #f0f0f0;
  transform: none;
}

.header-nav .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

@media (max-width: 1240px) {
  .header-inner {
    width: min(calc(100% - 52px), var(--container));
    gap: 8px;
  }

  .header-nav {
    gap: 6px;
  }

  .header-nav a {
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .header-nav .header-cta {
    min-height: 40px;
    padding: 0 10px;
  }
}

.hero {
  position: relative;
  padding: 60px 0 128px;
}

.hero::before {
  display: none;
  /* シンプルにするため背景パネルを削除 */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 0;
}

.hero-copy,
.hero-panel,
.profile-card,
.plan-card,
.problem-card,
.reason-card,
.contact-card,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* hero-panel の枠線不要 */
.hero-panel {
  border: none;
  background: transparent;
  box-shadow: none;
}

.eyebrow,
.section-kicker,
.reason-no,
.profile-role,
.plan-badge,
.offer-label,
.hero-visual__badge {
  margin: 0 0 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.cta-copy h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.9rem);
}

.lead {
  margin: 30px 0 0;
  max-width: 50ch;
  font-size: 1.02rem;
  color: var(--muted);
}

.offer-box {
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: transparent;
  /* 背景削除 */
  border: 1px solid var(--accent);
  /* 強調のためメインカラーのボーダーに変更 */
}

.offer-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 18px 30px rgba(0, 166, 126, 0.18);
}

.button-secondary {
  color: var(--accent);
  background: #fff;
  border: 1px solid #b3e8d9;
}

.button-block {
  width: 100%;
}

.hero-points {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
  color: var(--muted);
}

.hero-points li {
  position: relative;
  padding-left: 22px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero Illustration & Organic Shapes */
.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-main-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  z-index: 2;
}

.organic-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 1;
}

.organic-shape--1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 10%;
  right: -10%;
}

.organic-shape--2 {
  width: 250px;
  height: 250px;
  background: #00c6b5;
  bottom: 10%;
  left: 0;
}

.organic-shape--3 {
  width: 180px;
  height: 180px;
  background: var(--pink);
  top: -5%;
  left: 20%;
}

.hero-main-visual .doctor-illustration {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 166, 126, 0.2));
}

.hero-main-visual .deco-star {
  width: 40px;
  height: 40px;
}

.doctor-illustration .doctor-hand {
  transform-box: fill-box;
  transform-origin: left center;
  animation: writeHand 1.7s ease-in-out infinite;
}

.doctor-illustration .doctor-pen-tip {
  animation: penBlink 1.7s ease-in-out infinite;
}

.doctor-illustration .note-line {
  transform-box: fill-box;
  transform-origin: left center;
  animation: writeLine 1.7s linear infinite;
}

.doctor-illustration .note-line--2 {
  animation-delay: 0.22s;
}

.hero-stats {
  display: flex !important;
  /* 強制的に表示 */
  justify-content: center;
  gap: 24px;
  grid-column: 1 / -1;
  /* 全幅に広げる */
  margin-top: 40px;
}

.hero-stats div {
  padding: 20px 30px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
}

.hero-scroll span {
  display: block;
  width: 100%;
  height: 100%;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollDown 2.6s infinite cubic-bezier(0, 0.55, 0.45, 1);
}

.section {
  position: relative;
  padding: 84px 0 124px;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

/* ===== Flow Section ===== */
.section-reasons-flow {
  background:
    radial-gradient(circle at 7% 10%, rgba(0, 166, 126, 0.1) 0, rgba(0, 166, 126, 0) 34%),
    radial-gradient(circle at 91% 18%, rgba(0, 166, 126, 0.08) 0, rgba(0, 166, 126, 0) 30%),
    linear-gradient(180deg, #f8fbfa 0%, #eef4f2 100%);
}

.section-flow {
  padding: 100px 0 120px;
  background: transparent;
}

.flow-scroller {
  position: relative;
}

.flow-sticky {
  position: relative;
  z-index: 2;
}

.flow-sticky.is-flow-pinned {
  position: fixed;
  top: calc(var(--frame) + 86px);
  z-index: 130;
}

.flow-sticky.is-flow-ended {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.flow-heading {
  margin-bottom: 34px;
}

.flow-viewport {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 8px;
}

.flow-track {
  display: flex;
  gap: 28px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.flow-step {
  position: relative;
  width: min(96vw, 1120px);
  min-height: 456px;
  padding: 74px 56px 54px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid transparent;
  box-shadow: none;
  overflow: visible;
  transition: background-color 220ms ease, color 220ms ease;
}

.flow-step.is-left-active {
  background: var(--accent);
}

.flow-step.is-left-active .flow-step-no {
  color: var(--accent);
}

.flow-step.is-left-active h3 {
  color: #fff;
}

.flow-step.is-left-active p,
.flow-step.is-left-active .flow-step-list li {
  color: rgba(255, 255, 255, 0.92);
}

.flow-step-no {
  position: absolute;
  top: -30px;
  left: 56px;
  z-index: 2;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.flow-step-no__label {
  margin-bottom: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 6.4rem;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.01em;
  color: #ffffff;
  -webkit-text-stroke: 12px var(--accent);
  paint-order: stroke fill;
}

.flow-step-no__num {
  font-family: "Montserrat", sans-serif;
  font-size: 6.4rem;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.02em;
  color: #ffffff;
  -webkit-text-stroke: 12px var(--accent);
  paint-order: stroke fill;
  text-shadow: none;
  text-rendering: geometricPrecision;
}

.flow-step.is-left-active .flow-step-no__label,
.flow-step.is-left-active .flow-step-no__num {
  color: #ffffff;
  -webkit-text-stroke: 12px var(--accent);
}

.flow-step h3 {
  margin: 0 0 16px;
  font-size: 1.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 64ch;
}

.flow-step-list {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 64ch;
  display: grid;
  gap: 6px;
}

.flow-step-list li {
  margin: 0;
}

.flow-step-list li::marker {
  color: var(--accent);
}

.flow-step.is-left-active .flow-step-list li::marker {
  color: #ffffff;
}

.flow-step-lottie {
  position: absolute;
  right: 26px;
  bottom: 18px;
  width: clamp(156px, 18vw, 218px);
  aspect-ratio: 1 / 1;
  height: auto;
  pointer-events: none;
}

.problem-grid,
.reason-grid,
.profile-grid,
.plan-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

/* ===== Pain Point Section ===== */
.section-problems {
  padding: 80px 0 60px;
  background: var(--bg);
  /* グレー背景で白カードが映える */
}

.section-problems .section-heading {
  margin-bottom: 64px;
}

.section-problems .problem-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.section-problems .problem-card {
  width: 49%;
  min-height: auto;
  padding: 34px 36px;
  border-radius: 24px;
}

.section-problems .problem-card:nth-child(odd) {
  justify-self: start;
}

.section-problems .problem-card:nth-child(even) {
  justify-self: end;
}

.section-problems .problem-index {
  position: absolute;
  top: -36px;
  z-index: 2;
  margin: 0;
  padding: 0;
  color: var(--accent);
  -webkit-text-stroke: 12px #ffffff;
  paint-order: stroke fill;
  text-shadow:
    3px 0 0 #fff,
    -3px 0 0 #fff,
    0 3px 0 #fff,
    0 -3px 0 #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 7.8rem;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.section-problems .problem-card p {
  margin: 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.8;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}

/* 各カード：白背景・角丸 */
.problem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  width: 80%;
  padding: 76px 56px 56px;
  min-height: 352px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
}

.problem-list .problem-row:nth-child(odd) {
  align-self: flex-start;
}

.problem-list .problem-row:nth-child(even) {
  align-self: flex-end;
}

/* 偶数行：画像左・テキスト右 */
.problem-row--reverse {
  direction: rtl;
}

.problem-row--reverse>* {
  direction: ltr;
}

.problem-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: visible;
}

.problem-visual svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.problem-visual .pain-lottie {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 280 / 220;
  height: auto;
  overflow: visible;
}

.problem-visual .pain-lottie--large {
  max-width: 260px;
}

.problem-visual .pain-lottie--card1 {
  max-width: 270px;
  transform: scale(1.12);
  transform-origin: center;
}

.problem-visual .pain-lottie--card2 {
  max-width: 214px;
}

.problem-visual .pain-lottie--card3 {
  max-width: 228px;
}

.problem-visual .pain-lottie--card4 {
  max-width: 280px;
  transform: scale(1.12);
  transform-origin: center;
}

.problem-text {
  display: flex;
  flex-direction: column;
  min-height: 132px;
}

.problem-index {
  position: absolute;
  top: -36px;
  z-index: 2;
  margin: 0;
  padding: 0;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 7.8rem;
  line-height: 0.76;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.problem-list .problem-row:nth-child(odd) .problem-index {
  left: 28px;
}

.problem-list .problem-row:nth-child(even) .problem-index {
  right: 28px;
}

.problem-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 14px 0;
}

.problem-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 380px;
}

/* ===== Why Medifit / Reasons Section ===== */
.section-reasons {
  padding: 100px 0;
  background: transparent;
}

.section-reasons .section-heading {
  margin-bottom: 56px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 26px;
  justify-items: center;
}

.reason-card {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --reason-wave-x: 50%;
  --reason-wave-y: 50%;
  --reason-wave-size: 0%;
  padding: 38px 36px 46px;
  background: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: transform 260ms ease;
}

.reason-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--accent);
  clip-path: circle(var(--reason-wave-size) at var(--reason-wave-x) var(--reason-wave-y));
  transition: clip-path 360ms linear;
}

.reason-card::after {
  content: none;
}

.reason-card>* {
  position: relative;
  z-index: 2;
}

.reason-card:hover {
  transform: translateY(-3px);
}

.reason-card.is-wave-hover {
  --reason-wave-size: 170%;
}

.reason-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  height: 30px;
  margin: 0 auto 18px;
  padding: 0 14px;
  background: #eff8f3;
  color: var(--accent);
  border: none;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    background-color 260ms ease,
    color 260ms ease;
}

.reason-card h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.34;
  letter-spacing: -0.01em;
  transition: color 260ms ease;
}

.reason-card p:last-child {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  transition: color 260ms ease;
}

.reason-card.is-wave-hover h3,
.reason-card.is-wave-hover p {
  color: #fff;
}

.reason-card.is-wave-hover .reason-no {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.reason-card:not(.is-wave-hover) p:last-child,
.plan-copy,
.plan-note,
.profile-title,
.faq-list details p,
.cta-copy p,
.form-note,
.form-feedback {
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.profile-card {
  padding: 0;
  background: #fff;
  border: none;
  box-shadow: none;
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease;
}

@media (min-width: 1121px) {
  .profile-card {
    padding: 0 48px;
  }
}

.profile-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.profile-badge {
  display: inline-block;
  margin-bottom: 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.profile-photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  border-radius: 20px;
  border: none;
  background:
    radial-gradient(circle at 16% 22%, rgba(0, 166, 126, 0.2), transparent 40%),
    radial-gradient(circle at 84% 80%, rgba(0, 166, 126, 0.16), transparent 36%),
    linear-gradient(180deg, #f8fbfa 0%, #eef5f2 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo-slot::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1.5px dashed rgba(0, 166, 126, 0.38);
}

.profile-photo-slot span {
  position: relative;
  z-index: 1;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(0, 122, 92, 0.8);
}

.profile-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-photo-slot img.profile-photo--up {
  object-position: center 70%;
  transform: scale(1.08);
  transform-origin: center top;
}

.profile-photo-slot--filled {
  border: 0;
  background: #dfe3e7;
}

.profile-photo-slot--filled::before,
.profile-photo-slot--filled span {
  display: none;
}

.profile-title {
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.profile-card.highlight {
  border: none;
  background: #fff;
}

.profile-card ul {
  padding: 0;
  list-style: none;
}

.profile-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.profile-card ul,
.plan-card ul {
  margin: 22px 0 0;
  padding-left: 18px;
}

/* ===== Plans Section Redesign ===== */
.section-plans {
  background: none;
  /* 背景不要 */
  padding: 100px 0 120px;
}

.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.plan-card {
  --plan-content-x: 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 34px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
  overflow: visible;
}

.plan-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
  background: #fff;
}

.plan-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 14px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  width: fit-content;
  letter-spacing: 0.1em;
}

.plan-recommend {
  position: absolute;
  top: 0;
  left: var(--plan-content-x);
  right: var(--plan-content-x);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 7px 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  z-index: 3;
}

.plan-card h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
}

.plan-copy {
  margin: 0 0 28px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.plan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.plan-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300a67e' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.plan-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.plan-card.featured {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.plan-card.featured .plan-copy,
.plan-card.featured .plan-note {
  color: var(--muted);
}

.plan-card.featured h3 {
  color: var(--ink);
}

.plan-card.featured .plan-badge {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.plan-card.featured li {
  color: inherit;
}

.plan-card.featured li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300a67e' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.plan-card.featured .plan-note {
  border-top-color: var(--line);
}

.plan-card.featured:hover {
  background: #fff;
}

.plan-card.featured::after {
  display: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-xl {
  padding: 24px 64px;
  font-size: 1.3rem;
  border-radius: 999px;
  height: auto;
}

#wave-trigger {
  border-radius: 12px;
}

/* ===== FAQ Section Redesign ===== */
.section-faq {
  background: none;
}

.section-faq .section-heading {
  text-align: left;
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.48s ease, box-shadow 0.48s ease;
}

.faq-list details[open] {
  border-color: var(--accent);
  box-shadow: none;
}

.faq-list summary {
  position: relative;
  padding: 24px 56px 24px 28px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
  transition: color 0.35s ease;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%) rotate(0deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300a67e' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-list details[open] summary {
  color: var(--accent);
  font-weight: 700;
}

.faq-list details p {
  margin: 0;
  padding: 0 28px 24px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-copy h2 {
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  margin-bottom: 24px;
}

.cta-mobile-break {
  display: none;
}

.cta-points {
  justify-content: center;
}

.contact-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 10px;
}

.contact-card {
  width: 100%;
  max-width: 800px;
}

.contact-stage {
  position: relative;
  --contact-burst-progress: 0;
  --contact-burst-scale: 0.32;
  padding: 80px 64px;
  border-radius: 34px;
  background: transparent;
  /* セクション専用背景不要 */
  border: 1px solid transparent;
  overflow: visible;
  isolation: isolate;
}

.contact-stars {
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
}

.contact-star {
  position: absolute;
  width: var(--star-size, 40px);
  height: var(--star-size, 40px);
  opacity: 1;
  transform-origin: center;
  transform:
    translate3d(calc(var(--move-x, 0px) * var(--contact-burst-progress)),
      calc(var(--move-y, 0px) * var(--contact-burst-progress)), 0) rotate(calc(var(--spin, 0deg) * var(--contact-burst-progress))) scale(calc(1 + (var(--contact-burst-scale) * var(--contact-burst-progress))));
  transition: transform 120ms linear;
  filter: drop-shadow(0 8px 14px rgba(0, 166, 126, 0.18));
}

.contact-star--1 {
  top: 4%;
  left: 14%;
  --star-size: 44px;
  --move-x: -58px;
  --move-y: -78px;
  --spin: -80deg;
}

.contact-star--2 {
  top: 6%;
  right: 16%;
  --star-size: 38px;
  --move-x: 56px;
  --move-y: -72px;
  --spin: 90deg;
}

.contact-star--3 {
  top: 26%;
  right: 6%;
  --star-size: 34px;
  --move-x: 76px;
  --move-y: -22px;
  --spin: 72deg;
}

.contact-star--4 {
  bottom: 20%;
  right: 5%;
  --star-size: 42px;
  --move-x: 82px;
  --move-y: 24px;
  --spin: 78deg;
}

.contact-star--5 {
  bottom: 8%;
  right: 22%;
  --star-size: 40px;
  --move-x: 48px;
  --move-y: 70px;
  --spin: -62deg;
}

.contact-star--6 {
  bottom: 7%;
  left: 20%;
  --star-size: 42px;
  --move-x: -52px;
  --move-y: 72px;
  --spin: 68deg;
}

.contact-star--7 {
  top: 42%;
  left: 6%;
  --star-size: 36px;
  --move-x: -74px;
  --move-y: -10px;
  --spin: -80deg;
}

.contact-star--8 {
  top: 8%;
  left: 46%;
  --star-size: 32px;
  --move-x: 8px;
  --move-y: -86px;
  --spin: 110deg;
}

.contact-stage__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-stage__shape {
  position: absolute;
  border-radius: 50%;
}

.contact-stage__shape--1 {
  top: -40px;
  right: -30px;
  width: 220px;
  height: 220px;
  background: rgba(0, 166, 126, 0.08);
}

.contact-stage__shape--2 {
  bottom: -70px;
  left: -40px;
  width: 260px;
  height: 260px;
  background: rgba(0, 198, 181, 0.08);
}

.contact-stage__shape--3 {
  top: 50%;
  left: 55%;
  width: 150px;
  height: 150px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.cta-copy {
  position: relative;
  padding: 20px 0 0;
  z-index: 1;
}

.section-cta .section-kicker {
  color: var(--accent);
}

.cta-copy h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.5rem);
}

.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cta-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.contact-mini-card {
  padding: 24px 24px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(36, 49, 75, 0.08);
  box-shadow: 0 16px 32px rgba(36, 49, 75, 0.06);
}

.contact-mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

.contact-mini-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.contact-card {
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.contact-card__head {
  padding: 40px 40px 0;
  text-align: center;
}

.contact-card__head h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--ink);
}

.contact-card__head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-fields {
  padding: 40px;
}

.contact-card label {
  display: block;
  margin-bottom: 24px;
}

.contact-card label span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  font: inherit;
  color: var(--ink);
  transition: all 0.2s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-card .button {
  width: calc(100% - 80px);
  margin: 0 40px 40px;
  background: var(--accent);
  color: #fff;
}

.site-footer {
  padding: 0 clamp(20px, 4vw, 64px) clamp(20px, 2.2vw, 32px);
  /* 下余白を縮小 */
}

.footer-shell {
  padding: clamp(30px, 3vw, 48px) 0;
  /* padding縮小、背景削除のためshell自体のスタイル調整 */
  border-top: 1px solid var(--line);
  /* 境界線のみ追加 */
}

@media (min-width: 1121px) {
  .site-footer {
    padding-bottom: 14px;
  }

  .footer-shell {
    padding: 68px 0 28px;
  }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* 下部揃えに変更 */
  gap: clamp(14px, 2.2vw, 24px);
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px) clamp(16px, 2.4vw, 28px);
  padding-top: 0;
  /* paddingを削除 */
}

.footer-menu-title {
  display: none;
  margin: 0 0 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-links a {
  position: relative;
  font-size: clamp(0.84rem, 0.9vw, 0.95rem);
}

.footer-links a+a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 1px;
  height: 18px;
  background: #dde2ea;
  transform: translateY(-50%);
}

.footer-brand {
  text-align: right;
  /* PC: ロゴ上、コピーライト下 */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(18px, 2.8vw, 34px);
}

.footer-brand__logo {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.12rem, 1.82vw, 1.68rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
}

.footer-brand small {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  /* フッターメニューと同じサイズに */
  line-height: 1.2;
}

.footer-legal {
  display: none;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 500;
  line-height: 1.2;
  align-self: end;
  color: var(--ink);
}

/* フッターの下に紫色のバーを追加 */
.footer-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--frame);
  background: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(45deg);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(18px) rotate(45deg);
  }
}

@keyframes floatOrganic {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(15px, -20px);
  }

  66% {
    transform: translate(-10px, 15px);
  }
}

@keyframes writeHand {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(3px, 3px) rotate(1.5deg);
  }

  50% {
    transform: translate(7px, 6px) rotate(3deg);
  }

  75% {
    transform: translate(4px, 3px) rotate(1.5deg);
  }
}

@keyframes writeLine {
  0% {
    transform: scaleX(0.08);
    opacity: 0.2;
  }

  45% {
    transform: scaleX(0.9);
    opacity: 1;
  }

  80% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(1);
    opacity: 0.25;
  }
}

@keyframes penBlink {

  0%,
  55%,
  100% {
    opacity: 0.45;
  }

  62% {
    opacity: 1;
  }

  70% {
    opacity: 0.7;
  }
}

.organic-shape--1 {
  animation: floatOrganic 12s ease-in-out infinite;
}

.organic-shape--2 {
  animation: floatOrganic 15s ease-in-out infinite reverse;
}

.organic-shape--3 {
  animation: floatOrganic 10s ease-in-out infinite 2s;
}

.hero-main-visual .doctor-illustration {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 166, 126, 0.2));
}

.deco-star {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 3;
}

.deco-star--1 {
  top: 10%;
  left: 5%;
  animation: floatY 4s ease-in-out infinite;
}

.deco-star--2 {
  bottom: 15%;
  right: 10%;
  animation: floatY 5s ease-in-out infinite reverse;
}

@media (max-width: 1120px) {

  .hero-grid,
  .cta-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero {
    padding: 24px 0 56px;
  }

  .hero-illustration {
    min-height: 320px;
  }

  .hero-panel {
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

  .header-nav {
    gap: 10px;
  }

  .header-nav a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .header-nav .header-cta {
    min-height: 44px;
    padding: 0 14px;
  }

  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-sticky.is-flow-pinned {
    top: calc(var(--frame) + 74px);
  }

  .flow-step {
    width: min(94vw, 980px);
    min-height: 396px;
    padding: 62px 46px 46px;
  }

  .flow-step-no {
    top: -24px;
    left: 46px;
    gap: 9px;
  }

  .flow-step-no__label,
  .flow-step-no__num {
    font-size: 5.2rem;
    -webkit-text-stroke: 12px var(--accent);
  }

  .flow-step-lottie {
    right: 20px;
    bottom: 14px;
    width: clamp(140px, 20vw, 188px);
  }

  .section-problems .problem-card {
    width: 66%;
  }

  .problem-row {
    width: 82%;
  }

  .section-reasons .container {
    width: 100%;
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-reasons .section-heading,
  .section-reasons .reason-grid {
    width: 100%;
  }

  .site-footer {
    padding: 0;
  }

  .footer-shell {
    padding: 34px 0;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "menu logo"
      "legal logo";
    align-items: end;
    row-gap: clamp(18px, 2.6vw, 34px);
    column-gap: clamp(14px, 2vw, 24px);
  }

  .footer-links {
    grid-area: menu;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-menu-title {
    display: block;
  }

  .footer-links a+a::before {
    display: none;
  }

  .footer-legal {
    display: block;
    grid-area: legal;
    justify-self: start;
    width: max-content;
  }

  .footer-brand {
    grid-area: logo;
    justify-self: end;
    text-align: right;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    width: max-content;
  }

  .footer-brand small {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 28px;
    align-items: center;
  }

  .hero-copy,
  .hero-panel {
    order: 0;
  }

  .hero-illustration {
    min-height: 300px;
  }

  .hero-main-visual {
    max-width: 470px;
    margin-left: auto;
  }

  .hero-scroll {
    bottom: 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --frame: 14px;
  }

  .site-header {
    margin: 0;
    padding: 0;
  }

  main,
  .site-footer {
    padding-left: var(--frame);
    padding-right: var(--frame);
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section-reasons .container {
    width: 100%;
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "menu logo"
      "legal logo";
    align-items: end;
    row-gap: 20px;
    column-gap: 14px;
  }

  .profile-grid,
  .hero-stats,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .reason-card {
    width: min(100%, 280px);
    padding: 30px 24px 42px;
  }

  .section-problems .problem-card {
    width: 100%;
    justify-self: stretch;
  }

  .contact-stars {
    inset: 4px;
  }

  .contact-star {
    width: calc(var(--star-size, 40px) * 0.82);
    height: calc(var(--star-size, 40px) * 0.82);
  }

  .section-problems .problem-index {
    top: -22px;
    font-size: 6rem;
  }

  .problem-list {
    gap: 34px;
  }

  .problem-row {
    width: 100%;
    padding: 34px 28px;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 390px;
  }

  .problem-list .problem-row:nth-child(even),
  .problem-list .problem-row:nth-child(odd) {
    align-self: stretch;
  }

  .problem-index {
    top: -22px;
    font-size: 6rem;
  }

  .problem-visual {
    height: 200px;
  }

  .problem-visual .pain-lottie--card1,
  .problem-visual .pain-lottie--card4 {
    max-width: 255px;
  }

  .problem-visual .pain-lottie--card2 {
    max-width: 204px;
  }

  .problem-visual .pain-lottie--card3 {
    max-width: 216px;
  }

  .problem-text {
    min-height: 110px;
  }

  .section {
    padding: 56px 0 88px;
  }

  .section-problems {
    margin-left: calc(var(--frame) * -1);
    margin-right: calc(var(--frame) * -1);
    padding-left: var(--frame);
    padding-right: var(--frame);
  }

  .contact-stage {
    padding: 30px;
  }

}

@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero {
    padding: 10px 0 64px;
  }

  .hero-scroll {
    bottom: 38px;
  }

  .hero-grid {
    gap: 12px;
  }

  .hero-illustration {
    min-height: 250px;
  }

  .hero-main-visual {
    width: 88%;
    max-width: 440px;
    margin: 0 auto;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 7.2vw, 2.35rem);
  }

  .hero h1 {
    font-size: clamp(1.95rem, 10.2vw, 2.45rem);
  }

  .cta-copy h2 {
    font-size: clamp(1.72rem, 7vw, 2.1rem);
    line-height: 1.18;
    margin-bottom: 16px;
  }

  .lead,
  .cta-copy p,
  .plan-copy,
  .plan-note,
  .profile-title,
  .faq-list details p {
    font-size: 0.92rem;
  }

  .plan-card h3,
  .profile-card h3,
  .button {
    font-size: 0.96rem;
  }

  .reason-no {
    min-width: 140px;
    height: 36px;
    padding: 0 18px;
    font-size: 0.98rem;
  }

  .reason-card h3 {
    font-size: 1.26rem;
    line-height: 1.36;
  }

  .reason-card p:last-child {
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .section-profile .profile-card h3 {
    font-size: clamp(1.18rem, 5.2vw, 1.34rem);
    line-height: 1.3;
  }

  .cta-mobile-break {
    display: block;
  }

  .profile-photo-slot {
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .profile-photo-slot::before {
    inset: 8px;
    border-radius: 12px;
  }

  .section-flow {
    padding: 64px 0 88px;
  }

  .flow-step {
    width: min(90vw, 360px);
    min-height: 360px;
    padding: 24px 22px 150px;
    border-radius: 20px;
  }

  .flow-step-no {
    top: -16px;
    left: 22px;
    gap: 9px;
  }

  .flow-step-no__label {
    margin-bottom: 0;
    font-size: 4.2rem;
    -webkit-text-stroke: 12px var(--accent);
  }

  .flow-step-no__num {
    font-size: 4.2rem;
    -webkit-text-stroke: 12px var(--accent);
  }

  .flow-sticky.is-flow-pinned {
    top: calc(var(--frame) + 66px);
  }

  .flow-viewport {
    overflow: hidden;
    padding-top: 30px;
  }

  .flow-track {
    width: max-content;
    flex-direction: row;
    gap: 16px;
  }

  .flow-step-lottie {
    width: 122px;
    right: 14px;
    bottom: 12px;
  }

  .problem-row {
    width: min(78vw, 380px);
    max-width: calc(100% - 32px);
    padding: 26px 18px;
    gap: 14px;
    min-height: 348px;
  }

  .problem-list .problem-row:nth-child(even),
  .problem-list .problem-row:nth-child(odd) {
    align-self: center;
  }

  .problem-index {
    top: -16px;
    font-size: 4.8rem;
  }

  .problem-list .problem-row:nth-child(odd) .problem-index {
    left: 14px;
  }

  .problem-list .problem-row:nth-child(even) .problem-index {
    right: 14px;
  }

  .problem-visual {
    height: 182px;
  }

  .problem-visual .pain-lottie--card1 {
    max-width: 224px;
  }

  .problem-visual .pain-lottie--card2 {
    max-width: 184px;
  }

  .problem-visual .pain-lottie--card3 {
    max-width: 194px;
  }

  .problem-visual .pain-lottie--card4 {
    max-width: 228px;
  }

  .problem-text {
    min-height: 100px;
  }

  .problem-text h3 {
    font-size: 1.18rem;
    margin-bottom: 8px;
  }

  .problem-text p {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .fixed-frame--top,
  .fixed-frame--left,
  .fixed-frame--right {
    display: block;
  }

  .page-inner {
    margin: var(--frame);
    padding-top: calc(var(--frame) + 56px + 8px);
    border-radius: var(--shell-radius);
    clip-path: none;
    overflow: hidden;
  }

  .site-header {
    position: fixed !important;
    top: calc(var(--frame) + 10px);
    left: var(--frame);
    right: var(--frame);
    z-index: 120;
  }

  main,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    position: relative;
    display: flex;
    min-height: 56px;
    width: min(calc(100% - 28px), var(--container));
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .brand {
    margin-right: auto;
    margin-left: 0;
    min-width: 0;
    max-width: calc(100% - 56px);
    overflow: hidden;
  }

  .brand .service-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    margin-right: 0;
    z-index: 131;
  }

  .header-nav {
    position: fixed;
    inset: 0;
    display: none !important;
    width: 100%;
    padding: 0 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 130;
    gap: 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-align: center;
  }

  .site-header.is-menu-open .header-nav {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-nav a {
    width: auto;
    text-align: center;
    background: transparent;
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .header-nav .header-cta {
    min-height: 0;
    color: #fff;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .contact-mini-grid {
    grid-template-columns: 1fr;
  }

  .contact-stage {
    --contact-burst-scale: 0.22;
  }

  .contact-star--7,
  .contact-star--8 {
    display: none;
  }

  .section-cta .container.contact-stage {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-panel,
  .plan-card,
  .contact-card,
  .problem-card {
    padding: 24px;
    border-radius: 22px;
  }

  .plan-card {
    --plan-content-x: 24px;
  }

  .button {
    width: 100%;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: stretch;
  }

  .reason-card {
    width: 100%;
    padding: 26px 18px 34px;
  }

  .hero-visual__card--1 {
    top: 20px;
    left: 14px;
  }

  .hero-visual__card--2 {
    right: 14px;
    bottom: 20px;
  }

  .contact-fields,
  .contact-card__head,
  .form-note,
  .form-feedback {
    padding-left: 22px;
    padding-right: 22px;
  }

  .contact-card .button {
    width: calc(100% - 44px);
    margin-left: 22px;
    margin-right: 22px;
  }

  .footer-shell {
    min-height: 0;
  }

  .footer-inner {
    row-gap: 18px;
    column-gap: 12px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-brand {
    justify-self: end;
    text-align: right;
    align-items: flex-end;
    justify-content: flex-end;
    width: max-content;
    margin-left: auto;
  }

  .footer-brand__logo {
    font-size: clamp(1.06rem, 5.4vw, 1.42rem);
    line-height: 1;
    text-align: right;
  }

  .footer-legal {
    font-size: clamp(0.78rem, 3.8vw, 0.95rem);
    width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-star {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .cta-copy h2 {
    font-size: clamp(1.56rem, 7.4vw, 1.9rem);
    line-height: 1.2;
  }

  .flow-step-no {
    top: -10px;
    left: 22px;
    gap: 7px;
  }

  .flow-step-no__label {
    margin-bottom: 0;
    font-size: 3.8rem;
    -webkit-text-stroke: 12px var(--accent);
  }

  .flow-step-no__num {
    font-size: 3.8rem;
    -webkit-text-stroke: 12px var(--accent);
  }

  .problem-row {
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    padding: 22px 14px;
    gap: 12px;
    min-height: 318px;
  }

  .problem-index {
    top: -12px;
    font-size: 4rem;
  }

  .problem-list .problem-row:nth-child(odd) .problem-index {
    left: 10px;
  }

  .problem-list .problem-row:nth-child(even) .problem-index {
    right: 10px;
  }

  .problem-visual .pain-lottie {
    max-width: 180px;
  }

  .problem-visual .pain-lottie--large {
    max-width: 210px;
  }

  .problem-visual {
    height: 166px;
  }

  .problem-visual .pain-lottie--card1 {
    max-width: 204px;
    transform: scale(1.08);
  }

  .problem-visual .pain-lottie--card2 {
    max-width: 170px;
  }

  .problem-visual .pain-lottie--card3 {
    max-width: 178px;
  }

  .problem-visual .pain-lottie--card4 {
    max-width: 210px;
    transform: scale(1.08);
  }

  .problem-text {
    min-height: 92px;
  }

  .problem-text h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .problem-text p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "menu"
      "legal"
      "logo";
    row-gap: 14px;
    justify-items: center;
  }

  .footer-menu-title {
    display: none;
  }

  .footer-links {
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    grid-area: logo;
    width: 100%;
    justify-self: center;
    margin-left: 0;
    text-align: center;
    align-items: center;
  }

  .footer-legal {
    grid-area: legal;
    justify-self: center;
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 400px) {
  .flow-viewport {
    padding-top: 24px;
  }

  .flow-step-no {
    top: -10px;
    left: 14px;
    gap: 6px;
  }

  .flow-step-no__label {
    margin-bottom: 0;
    font-size: 3.2rem;
    -webkit-text-stroke: 12px var(--accent);
  }

  .flow-step-no__num {
    font-size: 3.2rem;
    -webkit-text-stroke: 12px var(--accent);
  }

  .reason-no {
    min-width: 132px;
    height: 34px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .reason-card h3 {
    font-size: 1.14rem;
    line-height: 1.36;
  }

  .reason-card p:last-child {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .flow-step {
    width: min(80vw, 300px);
    min-height: 328px;
    padding: 20px 14px 126px;
  }

  .flow-step h3 {
    font-size: 1.32rem;
    line-height: 1.3;
  }

  .flow-step p,
  .flow-step-list {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .flow-step-lottie {
    width: 102px;
    right: 10px;
    bottom: 10px;
  }

  .problem-row {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding: 20px 12px;
    gap: 10px;
    min-height: 292px;
  }

  .problem-index {
    top: -10px;
    font-size: 3.6rem;
  }

  .problem-list .problem-row:nth-child(odd) .problem-index {
    left: 8px;
  }

  .problem-list .problem-row:nth-child(even) .problem-index {
    right: 8px;
  }

  .problem-visual .pain-lottie {
    max-width: 160px;
  }

  .problem-visual .pain-lottie--large {
    max-width: 182px;
  }

  .problem-visual {
    height: 150px;
  }

  .problem-visual .pain-lottie--card1 {
    max-width: 188px;
    transform: scale(1.05);
  }

  .problem-visual .pain-lottie--card2 {
    max-width: 154px;
  }

  .problem-visual .pain-lottie--card3 {
    max-width: 162px;
  }

  .problem-visual .pain-lottie--card4 {
    max-width: 188px;
    transform: scale(1.05);
  }

  .problem-text {
    min-height: 90px;
  }

  .problem-text h3 {
    font-size: 1rem;
  }

  .problem-text p {
    font-size: 0.76rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flow-track {
    transform: none !important;
  }
}

@keyframes nodFace {

  0%,
  60%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  10% {
    transform: translateY(6px) rotate(1.5deg);
  }

  20% {
    transform: translateY(0) rotate(0deg);
  }

  30% {
    transform: translateY(6px) rotate(1.5deg);
  }

  45% {
    transform: translateY(0) rotate(0deg);
  }
}

.doctor-illustration .doctor-face {
  transform-origin: 480px 220px;
  /* 首の付け根を起点にする */
  animation: nodFace 4s ease-in-out infinite;
}

@keyframes painDrawGraphLoop {

  0%,
  20% {
    stroke-dashoffset: 100;
  }

  50%,
  85% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 100;
  }
}

@keyframes painBarGrowLoop {

  0%,
  10% {
    stroke-dashoffset: 100;
  }

  40%,
  85% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 100;
  }
}

@keyframes painFadeInLoop {

  0%,
  30% {
    opacity: 0;
  }

  50%,
  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Pain Point SVG Animations (Dynamic) */
/* SVG 1: 予算が膨らむ（グラフとコイン） */
@keyframes painDrawGraph {
  0% {
    stroke-dashoffset: 100;
  }

  50%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes painCoinStack {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes painLineUp {
  0% {
    transform: scaleX(0);
  }

  30%,
  100% {
    transform: scaleX(1);
  }
}

/* SVG 2: 見えない医師（シルエットとクエスチョン） */
@keyframes painSilhouette {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
    filter: blur(2px);
  }

  50% {
    transform: translateX(8px);
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes painQuestionMark {

  0%,
  100% {
    transform: rotate(0) scale(1);
  }

  45% {
    transform: rotate(-15deg) scale(1.1);
  }

  55% {
    transform: rotate(15deg) scale(1.1);
  }
}

/* SVG 3: 手戻り（回転と差し戻し） */
@keyframes painSpinRework {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes painDocReject {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  50% {
    transform: translateX(20px);
  }

  70%,
  90% {
    transform: translateX(-10px);
  }
}

@keyframes painCrossFade {

  0%,
  20%,
  80%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }

  30%,
  70% {
    opacity: 1;
    transform: scale(1);
  }
}

/* SVG 4: 警告とシールド */
@keyframes painAlertBlink {

  0%,
  100% {
    fill: #ef6b6b;
    transform: scale(1);
  }

  50% {
    fill: #ff4d4d;
    transform: scale(1.2);
  }
}

@keyframes painShieldPulse {
  0% {
    stroke-width: 2;
    transform: scale(1);
  }

  50% {
    stroke-width: 4;
    transform: scale(1.05);
    stroke: #ef6b6b;
  }

  100% {
    stroke-width: 2;
    transform: scale(1);
  }
}

@keyframes painRedLineWrite {
  0% {
    stroke-dashoffset: 50;
  }

  40%,
  100% {
    stroke-dashoffset: 0;
  }
}

/* Utility Animation Classes */
.pain-anim-draw-graph-loop {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: painDrawGraphLoop 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pain-anim-bar {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: painBarGrowLoop 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pain-anim-fade-loop {
  opacity: 0;
  animation: painFadeInLoop 4s linear infinite;
}

.pain-anim-coin-delay {
  animation: painCoinStack 4s ease-in-out 1.5s infinite;
  transform-origin: center;
}

.pain-anim-coin {
  animation: painCoinStack 3s ease-in-out infinite;
  transform-origin: center;
}

.pain-anim-line {
  transform-origin: left;
  animation: painLineUp 3s ease-out infinite;
}

.pain-anim-silhouette {
  animation: painSilhouette 4s ease-in-out infinite;
}

.pain-anim-question {
  animation: painQuestionMark 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.pain-anim-spin {
  animation: painSpinRework 4s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.pain-anim-doc-reject {
  animation: painDocReject 4s ease-in-out infinite;
}

.pain-anim-cross {
  animation: painCrossFade 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.pain-anim-shield {
  animation: painShieldPulse 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.pain-anim-alert-badge {
  animation: painAlertBlink 1.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.pain-anim-red-line {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: painRedLineWrite 3s ease-in-out infinite;
}
