/* =========================================================
   RE:Lab — Teaser  /  Pattern C
   THE MOUTH-style · minimal · whitespace-led · mobile-first
   ========================================================= */

:root {
  --accent:   #83AAB4;
  --accent-d: #6B939E;
  --bg:       #FCFCFA;
  --bg-2:     #F6F7F4;
  --ink:      #1F1F1F;
  --sub:      #7A7A7A;
  --border:   #E6EEF0;
  --line:     #06C755;
  --white:    #FFFFFF;

  --serif-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans-jp:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif-en: "Cormorant Garamond", var(--serif-jp);

  --max: 1120px;
  --pad: 22px;
  --header-h: 64px;
  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  letter-spacing: .03em;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
li { list-style: none; }
.sprite { position: absolute; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 13vw, 120px) 0; }
.sp-only { display: none; }

/* ---- shared headings ---- */
.label {
  font-family: var(--serif-en);
  font-size: 13px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent); text-align: center; margin-bottom: 14px;
}
.heading2 {
  font-family: var(--serif-jp); font-weight: 500;
  font-size: clamp(21px, 5.2vw, 30px); letter-spacing: .1em; line-height: 1.6;
  color: var(--ink);
}
.heading2--center { text-align: center; }
.heading { margin-bottom: clamp(34px, 8vw, 56px); }
.heading2--center::after,
.concept__copy .heading2::after {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--accent); margin: 18px auto 0; border-radius: 2px;
}
.concept__copy .heading2::after { margin-left: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans-jp); font-weight: 400; font-size: 14px; letter-spacing: .06em;
  padding: 15px 26px; border-radius: 999px; width: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
}
.btn .icon { font-size: 19px; }
.btn__arrow { font-family: var(--serif-en); font-size: 17px; margin-left: 2px; }
.btn--line { background: var(--accent); color: #fff; box-shadow: 0 14px 26px -16px rgba(131,170,180,.9); }
.btn--line .icon { color: #fff; }
.btn--line:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn--ghost .icon { color: var(--accent); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--on-color { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; }
.btn--on-color .icon { color: #fff; }
.btn--on-color:hover { background: rgba(255,255,255,.26); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  background: rgba(252,252,250,.7);
  backdrop-filter: blur(10px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled { background: rgba(252,252,250,.92); box-shadow: 0 1px 0 var(--border); }
.header__inner {
  height: var(--header-h);
  max-width: 1280px; margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header__logo img { width: 92px; height: auto; }
.header__right { display: flex; align-items: center; gap: 12px; }
.header__line {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 12.5px; color: var(--ink); background: var(--white);
  transition: border-color .3s;
}
.header__line:hover { border-color: var(--accent); }
.header__line .icon { font-size: 18px; color: var(--line); }
.hamburger {
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--white); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: border-color .3s;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span { width: 16px; height: 1.4px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

/* ---- Drawer ---- */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(82vw, 340px); height: 100%;
  background: var(--bg); padding: calc(var(--header-h) + 24px) 30px 40px;
  transform: translateX(100%); transition: transform .45s var(--ease);
  box-shadow: -20px 0 50px -30px rgba(31,31,31,.4);
}
.drawer[hidden] { display: block; }
.drawer.is-open { transform: translateX(0); }
.drawer__list li + li { border-top: 1px solid var(--border); }
.drawer__list a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 20px 4px;
  font-family: var(--serif-en); font-size: 21px; letter-spacing: .08em; color: var(--ink);
}
.drawer__list a small { font-family: var(--sans-jp); font-size: 11.5px; letter-spacing: .12em; color: var(--sub); }
.drawer__backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(31,31,31,.32); opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }

/* =========================================================
   1. Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 30px) 0 80px;
  background: var(--bg);
}
.hero__ring {
  position: absolute; border: 1px solid var(--border); border-radius: 50%;
  width: 78vw; max-width: 760px; aspect-ratio: 1;
  top: -16%; right: -22%; z-index: 0;
}
.hero__ring--sm { width: 40vw; max-width: 360px; top: auto; bottom: -10%; left: -14%; right: auto; border-color: #EEF3F2; }
.hero__ghost {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(46vw, 520px); top: 26%; right: 4%;
  opacity: .1;
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.hero__title {
  font-family: var(--serif-jp); font-weight: 600;
  font-size: clamp(20px, 5.8vw, 52px); letter-spacing: .05em; line-height: 1.55;
  margin-bottom: 26px;
}
.hero__title-2 { display: inline-block; white-space: nowrap; }
.hero__sub {
  font-family: var(--serif-jp);
  font-size: clamp(13px, 3.6vw, 17px); letter-spacing: .08em; color: var(--sub);
  margin-bottom: 34px;
}
.hero__open {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 16px; border-left: 2px solid var(--accent);
  margin-bottom: 38px;
}
.hero__open-date { font-family: var(--serif-en); font-size: clamp(19px, 5vw, 26px); letter-spacing: .14em; color: var(--accent); }
.hero__open-place { font-size: 13.5px; letter-spacing: .08em; color: var(--ink); }
.hero__cta { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  font-family: var(--serif-en); font-size: 11px; letter-spacing: .3em; color: var(--sub);
  padding-bottom: 40px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 30px;
  background: var(--accent); animation: scrolld 2.2s var(--ease) infinite; transform-origin: top;
}
@keyframes scrolld { 0%{transform:scaleY(0);opacity:0} 40%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(0);opacity:0;transform-origin:bottom} }

/* =========================================================
   2. Concept + diagram
   ========================================================= */
.concept { background: var(--bg); }
.concept__inner { display: grid; gap: clamp(40px, 9vw, 72px); align-items: center; }
.concept__body { font-size: 14px; line-height: 2.2; color: var(--sub); margin-top: 22px; }
.concept__copy .heading2 { color: var(--ink); }

/* radial diagram */
.diagram { position: relative; width: min(420px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.diagram__center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.diagram__center .icon { font-size: 50px; color: var(--accent); stroke-width: 1.2; }
.diagram::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 82%; height: 82%; border: 1px solid var(--border); border-radius: 50%;
}
.diagram__nodes { position: absolute; inset: 0; }
.diagram__nodes li {
  position: absolute; top: 50%; left: 50%; width: 84px;
  transform: translate(-50%,-50%) rotate(calc(var(--i)*60deg)) translateY(calc(-1 * min(168px, 35vw))) rotate(calc(var(--i)*-60deg));
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.diagram__node {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.diagram__node .icon { font-size: 30px; color: var(--accent); }
.diagram__nodes em { font-style: normal; font-size: 12px; letter-spacing: .06em; color: var(--ink); }

/* =========================================================
   3. Concerns
   ========================================================= */
.concerns { background: var(--bg-2); }
.concerns__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 4vw, 28px) 12px; }
.ccard {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  font-size: 13.5px; letter-spacing: .04em; color: var(--ink);
}
.ccard__icon {
  width: clamp(64px, 20vw, 96px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ccard__icon .icon { font-size: clamp(30px, 9vw, 44px); color: var(--accent); }
.ccard:hover .ccard__icon { transform: translateY(-4px); box-shadow: 0 16px 30px -20px rgba(131,170,180,.8); }

/* =========================================================
   4. Therapist
   ========================================================= */
.therapist { background: var(--bg); }
.therapist__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  max-width: 560px;
}
.therapist__photo {
  width: 116px; height: 116px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--border);
}
.therapist__photo img { width: 100%; height: 100%; object-fit: cover; }
.therapist__name {
  font-family: var(--serif-jp); font-weight: 500; font-size: 22px; letter-spacing: .12em;
  display: flex; align-items: baseline; gap: 12px; justify-content: center;
}
.therapist__name span { font-family: var(--sans-jp); font-size: 12px; font-weight: 400; letter-spacing: .16em; color: var(--sub); }
.therapist__text { font-size: 13.5px; line-height: 2.1; color: var(--sub); }

/* =========================================================
   5. Information
   ========================================================= */
.information { background: var(--bg-2); }
.information__addr { text-align: center; font-size: 14px; line-height: 2; color: var(--ink); margin-bottom: clamp(34px, 8vw, 52px); }
.access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 720px; margin: 0 auto; }
.access li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 26px 10px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.access__icon { font-size: 34px; color: var(--accent); line-height: 0; }
.access__place { font-size: 13.5px; color: var(--ink); letter-spacing: .04em; }
.access__note { font-size: 12px; color: var(--sub); }

/* =========================================================
   6. Final CTA
   ========================================================= */
.finalcta { background: var(--bg); }
.finalcta__box {
  background: var(--accent); color: #fff;
  border-radius: var(--radius); text-align: center;
  padding: clamp(40px, 10vw, 72px) clamp(24px, 6vw, 64px);
}
.finalcta__label { font-family: var(--serif-jp); font-weight: 500; font-size: clamp(20px, 5vw, 28px); letter-spacing: .12em; margin-bottom: 18px; }
.finalcta__lead { font-size: 14px; line-height: 2; color: rgba(255,255,255,.92); margin-bottom: 32px; }
.finalcta__cta { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }
.finalcta__cta .btn--line { background: #fff; color: var(--accent-d); }
.finalcta__cta .btn--line .icon { color: var(--line); }
.finalcta__cta .btn--line:hover { background: #f3f7f6; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg); text-align: center; padding: 48px 22px 64px; border-top: 1px solid var(--border); }
.footer__logo img { width: 104px; height: auto; margin: 0 auto 16px; }
.footer__copy { font-family: var(--serif-en); font-size: 11.5px; letter-spacing: .14em; color: var(--sub); }

/* =========================================================
   Fade-in
   ========================================================= */
[data-fade] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-fade].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__scroll::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive — desktop up
   ========================================================= */
@media (min-width: 600px) {
  .sp-only { display: none; }
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .header__logo img { width: 116px; }

  .hero__cta { flex-direction: row; max-width: none; }
  .hero__cta .btn { width: auto; }

  .concept__inner { grid-template-columns: 1fr 1fr; }
  .concept__copy .heading2 { font-size: clamp(26px, 3.4vw, 34px); }

  .concerns__grid { grid-template-columns: repeat(6, 1fr); gap: 20px 14px; }

  .therapist__inner {
    flex-direction: row; text-align: left; max-width: var(--max);
    gap: 40px; align-items: center; justify-content: center;
  }
  .therapist__photo { width: 150px; height: 150px; flex: 0 0 auto; }
  .therapist__name { justify-content: flex-start; }

  .finalcta__cta { flex-direction: row; max-width: 600px; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: clamp(40px, 4.4vw, 54px); }
}

/* very small phones */
@media (max-width: 360px) {
  .concerns__grid { gap: 12px 8px; }
  .ccard { font-size: 12.5px; }
  .access { gap: 10px; }
  .access li { padding: 20px 6px; }
}
