/* ==========================================================================
   毛髪診断サイト - 診断結果ページ
   ========================================================================== */

:root {
  --bg-gradient: linear-gradient(145deg, #e4d2f5 0%, #ecdcf7 9%, #f3e5f2 16%, #fefaff 35%, #e6d3ec 99%);
  --purple-gradient: linear-gradient(180deg, #9470b7 16%, #3e1965 75%);
  --purple-soft-gradient: linear-gradient(180deg, #ffffff 0%, #f9f4f9 100%);
  --gold-gradient: linear-gradient(180deg, #c89545 29%, #8d5500 75%);
  --gold: #b98a4a;
  --gold-line: rgba(185, 138, 74, 0.35);

  --purple-deepest: #3e1965;
  --purple-deep: #4f2378;
  --purple: #9569b6;
  --purple-strong: #4f2378;
  --purple-muted: #6b6084;
  --purple-pale: #f7f1fb;
  --purple-line: rgba(155, 122, 183, 0.24);

  --text-body: #332a37;
  --text-body-soft: #625a66;
  --text-muted: #7c6f68;

  --rose: #d7a3b2;
  --rose-soft: #d59faf;
  --lilac: #b59bbf;

  --card-bg: #ffffff;
  --card-bg-soft: rgba(255, 255, 255, 0.92);
  --card-shadow: 0 14px 34px rgba(155, 122, 183, 0.12);
  --card-shadow-strong: 0 0 20px rgba(120, 61, 166, 0.15);
  --card-border: rgba(120, 61, 166, 0.14);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;

  --container-width: 1000px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* Final cascade for the official-site visual language. */
body {
  background-color: #ede8e2;
  background-image: none;
  background-position: top center, top center;
  background-size: 100% 880px, 100% 100%;
  background-attachment: scroll, scroll;
}
.site-header { border-bottom: 1px solid rgba(101, 68, 85, 0.12); background: rgba(255, 253, 249, 0.9); }
.diagnosis-link { color: #654455; }
.card-surface { backdrop-filter: blur(3px); }
.hero-group { border-top: 2px solid #654455; background: rgba(255, 253, 249, 0.62); }
.hero__content_txt::before,
.cause::before { background: radial-gradient(ellipse at center, rgba(255, 253, 249, 0.94) 0%, rgba(255, 253, 249, 0.76) 48%, rgba(255, 253, 249, 0) 78%); }
.hero-group__glow { opacity: 0.35; filter: grayscale(0.35) sepia(0.14); }
.hero-group__petals { opacity: 0.42; filter: saturate(0.55) sepia(0.12); }
.hero__sprig { opacity: 0.55; filter: saturate(0.55); }
.hero__photo { filter: saturate(0.68) sepia(0.05); }
.stat-card { border: 1px solid rgba(101, 68, 85, 0.13); background: rgba(255, 253, 249, 0.93); }
.stat-card__denom { color: #766a70; }
.stat-card__bar { background: #ded5d0; }
.stat-card__bar-fill::after { box-shadow: 0 0 0 3px #fffdf9, 0 1px 4px rgba(73, 48, 61, 0.24); }
.factor-card, .factor-card--soft { background: #fffdf9; box-shadow: none; }
.factor-card__icon { background: #f1ebe6; box-shadow: none; }
.content-band { border-top-color: rgba(101, 68, 85, 0.2); background: #f8f5f0; }
.treatments__factors { border-color: rgba(101, 68, 85, 0.16); background: rgba(255, 253, 249, 0.7); }
.section-divider__line { background: linear-gradient(90deg, transparent 0%, rgba(101, 68, 85, 0.3) 16%, rgba(101, 68, 85, 0.3) 84%, transparent 100%); }
.treatment-card__tag, .section-tag, .badge-pill { background: #fffdf9; }
.treatment-card__note, .referral__icon, .care-tips__icon, .care-banner { background: #f1ebe6; }
.detail-care { --care-primary: #654455; --care-secondary: #9a8899; --care-bg: #f1ebe6; --care-gold: #967a66; --care-text: #352d31; }
.detail-care .tabs__tab, .detail-care .tab-panel, .detail-care .info-banner { background: #fffdf9; }
.detail-care .tabs__tab, .detail-care .tab-panel, .detail-care .care-tips li, .detail-care .hair-tips, .detail-care .hair-tip, .detail-care .info-banner, .detail-care .point-card, .good-state__header, .good-state__prescription, .good-state__nutrients, .good-state__nutrients span, .good-state__items, .good-state__item { border-color: rgba(101, 68, 85, 0.16); }
.detail-care .tab-panel { box-shadow: 0 20px 55px rgba(53, 45, 49, 0.07); }
.detail-care .tab-panel::after { color: rgba(101, 68, 85, 0.26); }
@media (max-width: 900px) {
  body { background-image: none; }
  .hero-group { border-top-width: 1px; }
}

/* ==========================================================================
   Official site palette — calm, editorial result page
   ========================================================================== */

:root {
  --bg-gradient: linear-gradient(180deg, #f6f2ec 0%, #eee8e1 100%);
  --purple-gradient: linear-gradient(180deg, #765568 0%, #49303d 100%);
  --purple-soft-gradient: linear-gradient(180deg, #fffdf9 0%, #f3eee9 100%);
  --gold-gradient: linear-gradient(180deg, #ad927c 0%, #806957 100%);
  --gold: #967a66;
  --gold-line: rgba(150, 122, 102, 0.38);
  --purple-deepest: #49303d;
  --purple-deep: #654455;
  --purple: #9a8899;
  --purple-strong: #654455;
  --purple-muted: #766a70;
  --purple-pale: #f1ebe6;
  --purple-line: rgba(101, 68, 85, 0.2);
  --text-body: #352d31;
  --text-body-soft: #665d61;
  --text-muted: #81767a;
  --rose: #b99ba8;
  --rose-soft: #b88f9f;
  --lilac: #9a8899;
  --card-bg: #fffdf9;
  --card-bg-soft: rgba(255, 253, 249, 0.94);
  --card-shadow: 0 14px 38px rgba(53, 45, 49, 0.07);
  --card-shadow-strong: 0 18px 46px rgba(53, 45, 49, 0.08);
  --card-border: rgba(101, 68, 85, 0.16);
  --radius-lg: 4px;
  --radius-md: 3px;
  --radius-sm: 2px;
}

body {
  background-color: #ede8e2;
  background-image: none;
  background-position: top center, top center;
  background-size: 100% 880px, 100% 100%;
  background-attachment: scroll, scroll;
}

.site-header {
  border-bottom: 1px solid rgba(101, 68, 85, 0.12);
  background: rgba(255, 253, 249, 0.9);
}

.diagnosis-link { color: var(--wine, #654455); }

.card-surface { backdrop-filter: blur(3px); }

.hero-group {
  border-top: 2px solid #654455;
  background: rgba(255, 253, 249, 0.62);
}

.hero__content_txt::before,
.cause::before {
  background: radial-gradient(ellipse at center, rgba(255, 253, 249, 0.94) 0%, rgba(255, 253, 249, 0.76) 48%, rgba(255, 253, 249, 0) 78%);
}

.hero-group__glow { opacity: 0.35; filter: grayscale(0.35) sepia(0.14); }
.hero-group__petals { opacity: 0.42; filter: saturate(0.55) sepia(0.12); }
.hero__sprig { opacity: 0.55; filter: saturate(0.55); }
.hero__photo { filter: saturate(0.68) sepia(0.05); }

.stat-card {
  border: 1px solid rgba(101, 68, 85, 0.13);
  background: rgba(255, 253, 249, 0.93);
}

.stat-card__denom { color: #766a70; }
.stat-card__bar { background: #ded5d0; }
.stat-card__bar-fill::after { box-shadow: 0 0 0 3px #fffdf9, 0 1px 4px rgba(73, 48, 61, 0.24); }

.factor-card {
  background: #fffdf9;
  box-shadow: none;
}

.factor-card--soft { box-shadow: none; }
.factor-card__icon { background: #f1ebe6; box-shadow: none; }

.content-band {
  border-top-color: rgba(101, 68, 85, 0.2);
  background: #f8f5f0;
}

.treatments__factors {
  border-color: rgba(101, 68, 85, 0.16);
  background: rgba(255, 253, 249, 0.7);
}

.section-divider__line {
  background: linear-gradient(90deg, transparent 0%, rgba(101, 68, 85, 0.3) 16%, rgba(101, 68, 85, 0.3) 84%, transparent 100%);
}

.treatment-card__tag,
.section-tag,
.badge-pill { background: #fffdf9; }

.treatment-card__note,
.referral__icon,
.care-tips__icon,
.care-banner { background: #f1ebe6; }

.detail-care {
  --care-primary: #654455;
  --care-secondary: #9a8899;
  --care-bg: #f1ebe6;
  --care-gold: #967a66;
  --care-text: #352d31;
}

.detail-care .tabs__tab,
.detail-care .tab-panel,
.detail-care .info-banner { background: #fffdf9; }

.detail-care .tabs__tab,
.detail-care .tab-panel,
.detail-care .care-tips li,
.detail-care .hair-tips,
.detail-care .hair-tip,
.detail-care .info-banner,
.detail-care .point-card,
.good-state__header,
.good-state__prescription,
.good-state__nutrients,
.good-state__nutrients span,
.good-state__items,
.good-state__item { border-color: rgba(101, 68, 85, 0.16); }

.detail-care .tab-panel { box-shadow: 0 20px 55px rgba(53, 45, 49, 0.07); }
.detail-care .tab-panel::after { color: rgba(101, 68, 85, 0.26); }

@media (max-width: 900px) {
  body {
    background-image: none;
  }

  .hero-group { border-top-width: 1px; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background-image: url("../assets/images/bg-silk-desktop.png"), var(--bg-gradient);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: 100% 1150px, 100% 100%;
  background-attachment: scroll, fixed;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.card-surface {
  background: var(--card-bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

div, p {
  margin: 0;
  padding: 0;
}

.sp {
  display: none;
}

.pc {
  display: block;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  padding: 12px var(--gutter);
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
}

.diagnosis-link {
  color: var(--purple-deep);
  font-size: 11px;
  letter-spacing: .04em;
  text-decoration: none;
}

/* ---------- Layout ---------- */

.page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 12px var(--gutter) 0;
  display: flex;
  flex-direction: column;
}

/* Full-bleed band: everything from "治療の選択肢" onward spans the full
   viewport width with its own background, while the content inside stays
   aligned to the same column width as the rest of the page. */
.content-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fcfbfd;
  border-top: 1px solid var(--lilac);
}

.content-band__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 56px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 56px);
}

/* ---------- Hero group (hero + factors + cause share one card) ---------- */

.hero-group {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
}

.hero-group__vase {
  position: absolute;
  left: -1%;
  bottom: -1%;
  width: 11%;
  min-width: 90px;
  max-width: 120px;
  pointer-events: none;
  z-index: 0;
}

.hero-group__glow {
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 48%;
  min-width: 260px;
  opacity: 0.85;
  pointer-events: none;
  z-index: -2;
}

.hero-group__petals {
  position: absolute;
  width: 15%;
  min-width: 100px;
  pointer-events: none;
  z-index: 0;
}

.hero-group__petals--bl {
  left: 0%;
  bottom: 65%;
  transform: rotate(-8deg);
}

.hero-group__petals--tr {
  right: 30%;
  top: 11%;
  width: 11%;
  min-width: 70px;
  opacity: 0.85;
  transform: rotate(90deg) scaleX(-1);
  z-index: 2;
}

.hero__content {
  position: relative;
  max-width: 62%;
  text-align: center;
}

.hero__content_txt {
  position: relative;
}

.hero__content_txt::before {
  content: "";
  position: absolute;
  inset: -20px -60px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0) 78%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px;
}

.hero__eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-line) 30%, var(--gold-line) 70%, transparent 100%);
}

.hero__eyebrow {
  position: relative;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.05em;
  color: var(--purple-deepest);
  white-space: nowrap;
}

.hero__lead {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--purple-deep);
}

.hero__title {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, 6.5vw, 52px);
  letter-spacing: 0.04em;
  color: var(--purple-deepest);
}

.hero__title.is-compound {
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.45;
  letter-spacing: 0.025em;
}

.hero__title.is-compound-triple {
  font-size: clamp(24px, 4.2vw, 32px);
  line-height: 1.5;
}

.diagnosis-label__line { display: inline-block; }

.hero__sub {
  position: relative;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--purple-muted);
}

.hero__desc {
  position: relative;
  margin: 0 0 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--text-body);
}

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -9%;
  aspect-ratio: 1 / 1;
  isolation: isolate;
  z-index: -1;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% center;
}

.hero__sprig {
  position: absolute;
  top: 38%;
  left: 0;
  width: 14%;
  min-width: 80px;
  transform: rotate(4deg);
  pointer-events: none;
  z-index: -1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 20px 18px 22px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card__label {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--purple-deep);
  text-align: center;
}

.stat-card__value {
  margin: 0 0 14px;
  font-family: "Georgia", var(--font-serif), serif;
  color: var(--purple-deepest);
}

.stat-card__num { 
  font-family: "Sorts Mill Goudy", var(--font-serif), serif; 
  font-size: 40px;
  line-height: 0;
}
.stat-card__denom { font-size: 18px; color: #7f638f; margin-left: 2px; }

.stat-card__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 2px;
}

.stat-card__scale .is-current {
  font-weight: 700;
  font-size: 13px;
  color: var(--purple-deepest);
}

.stat-card__bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #e4dbe9;
}

.stat-card__bar-fill {
  position: relative;
  height: 100%;
  background: var(--purple-deepest);
  border-radius: 999px;
}

.stat-card__bar-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple-deepest);
  box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(62, 25, 101, 0.35);
  transform: translateY(-50%);
}

.stat-card__scalp {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--purple-deep);
  margin: 0 0 10px;
}

.stat-card__scalp-note {
  max-width: 190px;
  margin: 5px auto 0;
  text-align: center;
  color: var(--text-body-soft);
  font-size: 9px;
  line-height: 1.55;
}

.stat-card__scalp-color {
  display: block;
  width: 56px;
  height: 56px;
  margin: 10px auto 0;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #a87863;
  box-shadow: 0 0 0 1px rgba(79, 35, 120, 0.12), 0 7px 18px rgba(79, 35, 120, 0.12);
}

.stat-card__scalp-color[data-color="B"] { background: #e7edf2; }
.stat-card__scalp-color[data-color="Y"] { background: #eadb9b; }
.stat-card__scalp-color[data-color="P"] { background: #e6b7be; }
.stat-card__scalp-color[data-color="R"] { background: #c87878; }
.stat-card__scalp-color[data-color="C"] { background: #a87863; }

/* ---------- Factors (3 cards) ---------- */

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

.factors__grid[data-count="1"] { grid-template-columns: minmax(280px, 420px); justify-content: center; }
.factors__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.factor-card {
  background: var(--purple-soft-gradient);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 0 5px rgba(241, 237, 244, 1);
  padding: 26px 20px;
  text-align: center;
}

.factor-card--soft { box-shadow: 0 0 5px rgba(241, 237, 244, 1); }

.factor-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: var(--purple-soft-gradient);
  box-shadow: inset 0 0 10px rgba(155, 122, 183, 0.24);
}

.factor-card__icon img { width: 60%; height: 60%; object-fit: contain; }

.factor-card__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--purple-deep);
}

.factor-card__desc {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--text-body);
}

/* ---------- Cause ---------- */

.cause {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cause::before {
  content: "";
  position: absolute;
  inset: -20px -60px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0) 78%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.cause__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}

.cause__label {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--purple-muted);
}

.cause__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 38px);
  letter-spacing: 0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.45;
}

.cause__title-line { display: inline-block; }

.cause__title-sub { font-size: 0.6em; margin: 0 4px; vertical-align: middle; }

.cause__line {
  display: block;
  width: 64px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* ---------- Section divider ---------- */

.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(155, 122, 183, 0.3) 13%, rgba(155, 122, 183, 0.3) 87%, transparent 100%);
}

.section-divider__title {
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: 0.06em;
  color: var(--purple-deep);
  text-align: center;
}

.section-divider__diagnosis,
.section-divider__subject {
  display: block;
}

.section-divider__diagnosis {
  margin-bottom: 5px;
  color: var(--purple-deep);
  font-size: 1em;
}

.section-divider__diagnosis.is-compound {
  line-height: 1.5;
  white-space: normal;
}

.section-divider__subject {
  color: var(--text-body-soft);
  font-family: var(--font-sans);
  font-size: 0.52em;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ---------- Treatments ---------- */

.treatments {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.treatments__header {
  margin: 10px 0 4px;
  text-align: center;
}

.treatments__eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.treatments__heading {
  margin: 0;
  color: var(--purple-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.treatments__lead {
  max-width: 580px;
  margin: 10px auto 0;
  color: var(--text-body-soft);
  font-size: 11px;
  line-height: 1.8;
}

.treatments__factors {
  margin: 10px 0 18px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(79, 35, 120, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.treatments__factors-label {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.treatments__factors-heading {
  margin: 0 0 22px;
  color: var(--purple-deep);
  font-family: var(--font-serif);
  font-size: 20px;
  text-align: center;
}

.treatment-card {
  display: grid;
  grid-template-columns: 48px 260px minmax(140px, 1fr) 190px 72px;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 26px);
}

.treatment-card.js-result-treatment {
  grid-template-columns: 48px minmax(0, 1fr);
}

.treatment-card--01 { --tcolor: var(--rose-soft); }
.treatment-card--02 { --tcolor: var(--lilac); }
.treatment-card--03 { --tcolor: var(--purple-strong); }

.treatment-card__id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--tcolor);
}

.treatment-card__num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0.7;
}

.treatment-card__num::after {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  margin: 7px auto 0;
  background: currentColor;
  opacity: 0.5;
}

.treatment-card__icon svg { width: 36px; height: 36px; }

.treatment-card__name {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.01em;
  color: var(--purple-deepest);
}

.treatment-card__tag {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 3px 13px;
  border: 1px solid var(--tcolor);
  border-radius: 999px;
  background: #fdfaff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--tcolor);
}

.treatment-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body-soft);
}

.treatment-card__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-body);
}

.treatment-card__points li {
  position: relative;
  padding-left: 22px;
}

.treatment-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tcolor) url("../assets/images/icon-done.png") no-repeat center / 8px 8px;
}

.treatment-card__note {
  background: var(--purple-pale);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.treatment-card__note-icon { flex: none; width: 34px; height: 34px; }

.treatment-card__note-text { flex: 1; }

.treatment-card__note-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}

.treatment-card__note-desc {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-body-soft);
}

.treatment-card__cta {
  justify-self: center;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--tcolor);
}

.treatment-card__cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tcolor);
  display: flex;
  align-items: center;
  justify-content: center;
}

.treatment-card__cta-icon img { width: 18px; height: 18px; }

.treatment-card__cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.treatments__disclaimer {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-body-soft);
}

.treatments__shared-guidance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin: 4px 0 10px;
  padding: 14px 20px;
  border: 1px solid rgba(101,68,85,.13);
  background: #f1ebe6;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.treatments__shared-guidance p {
  position: relative;
  margin: 0;
  padding-left: 19px;
}

.treatments__shared-guidance p::before {
  position: absolute;
  top: .35em;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #a9899b url("../assets/images/icon-done.png") no-repeat center / 7px 7px;
  content: "";
}

/* ---------- Advice row (pitfalls + referral) ---------- */

.advice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.advice-card {
  position: relative;
  padding: clamp(24px, 3vw, 32px) clamp(20px, 3vw, 32px);
  box-shadow: var(--card-shadow-strong);
  overflow: hidden;
}

.advice-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
}

.advice-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.03em;
  color: var(--purple-strong);
}

.advice-card__icon {
  display: block;
  width: 26px;
}

.pitfalls__list, .referral__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.pitfalls__list li, .referral__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pitfalls__check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-strong);
  color: beige;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.referral__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitfalls__check img { width: 14px; height: 14px; }
.referral__icon img { width: 26px; height: 26px; }

.pitfalls__heading, .referral__heading {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.pitfalls__desc, .referral__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-body-soft);
}

.pitfalls__deco {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 60px;
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Detail care / Tabs ---------- */

.detail-care {
  background: var(--purple-pale);
  box-shadow: 0 0 0 100vmax var(--purple-pale);
  clip-path: inset(0 -100vmax);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 32px);
}

.detail-care__heading {
  text-align: center;
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: 0.08em;
  color: var(--purple-deep);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tabs__tab {
  flex: 1 1 150px;
  padding: 18px 10px;
  border: 1px solid rgba(155, 122, 183, 0.18);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: #f7f2f8;
  color: #6d5f58;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  box-shadow: inset 1px -5px 15px 0 rgba(155, 122, 183, 0.18);
}

.tabs__tab.is-active {
  background: linear-gradient(163deg, #8e69b1 0%, #b599cf 100%);
  color: #fff;
  box-shadow: none;
}

.tab-panel {
  display: none;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px);
  border-radius: 0 0 20px 20px;
}

.tab-panel.is-active { display: block; }

.tab-panel__placeholder {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  color: var(--text-body-soft);
  font-size: 14px;
}

.tab-panel__layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
  align-items: start;
}

.tab-panel__portrait {
  width: 100%;
  height: 394px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(233, 222, 239, 1);
}

.care-tips {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: item;
  margin-bottom: 24px;
}

.care-tips li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--purple-line);
  position: relative;
}

.care-tips li:last-child { border-bottom: none; }

.care-tips__icon {
  grid-row: 1 / 3;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-strong);
}

.care-tips__icon svg,
.care-tips__icon img { width: 60px; height: 60px; object-fit: cover; }

.care-tips__num {
  grid-column: 1;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 11px;
  color: #783da6;
  background: #f7f2f8;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.care-tips li:has(.care-tips__icon) .care-tips__num {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  font-size: 10px;
  background: #783da6;
  color: #fff;
}

.care-tips li p {
  grid-column: 2;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ---------- 頭皮ケア: 2-column tip grid + side portrait ---------- */

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

.care-tips--grid li { grid-template-columns: 52px 1fr; column-gap: 14px; }

.care-tips--grid li:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.scalp-portrait {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.scalp-portrait__label {
  font-family: "absolute-beauty", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 60px;
  color: var(--purple-strong);
  opacity: 0.6;
  transform: rotate(-10deg);
  position: absolute;
  bottom: 0;
  right: 0;
}

.care-banner--icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.care-banner--icon .care-banner__main { margin: 0; }

.care-banner__icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.care-banner {
  background: #f4eef7;
  border-radius: 11px;
  padding: 16px 20px;
}

.care-banner__main {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--purple-deep);
}

.care-banner__sub {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--text-body);
}

/* ---------- Detail care: shared sub-components (ヘアケア/生活習慣/ストレスケア/食事・栄養) ---------- */

.panel-heading {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--purple-deep);
  text-align: center;
}

.panel-lead {
  max-width: 56em;
  margin: 0 auto 28px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
  color: var(--text-body);
}

.panel-heading--left,
.panel-lead--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.panel-heading--left { margin-bottom: 10px; }
.panel-lead--left { margin-bottom: 28px; }

.section-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 20px;
  border: 1px solid var(--purple-strong);
  border-radius: 50px;
  background: #fdfaff;
  color: var(--purple-strong);
  font-size: 13px;
}

.hair-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.hair-tip {
  position: relative;
  background: #fff;
  border: 1px solid var(--purple-line);
  border-radius: 14px;
  padding: 16px 18px 18px;
}

.hair-tip__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple-strong);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
}

.hair-tip__photo {
  position: absolute;
  top: 0px;
  right: 14px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;
}

.hair-tip__photo img { width: 100%; height: 100%; object-fit: cover; }

.hair-tip__title {
  margin: 20px 0 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--purple-strong);
}

.hair-tip__desc {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed #d9d0d8;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-body);
}

.care-banner--center { text-align: center; }

/* Info banner (gradient intro card used across lifestyle/stress/diet panels) */

.info-banner {
  position: relative;
  background: var(--bg-gradient);
  border: 1px solid #e9deef;
  border-radius: 12px;
  padding: 24px clamp(20px, 4vw, 32px);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.info-banner__icon {
  flex: none;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.info-banner__icon--photo { padding: 0; overflow: hidden; }

.info-banner__icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.info-banner__title {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--purple-strong);
}

.info-banner__desc {
  flex: 1 1 260px;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid var(--card-border);
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-body);
}

.info-banner__desc p { margin: 0 0 12px; }
.info-banner__desc p:last-child { margin-bottom: 0; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border: 1px solid var(--purple-strong);
  border-radius: 50px;
  background: #fdfaff;
  color: var(--purple-strong);
  font-size: 12px;
}

.badge-pill::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--purple-strong);
  font-size: 9px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px dashed var(--card-border);
}

.tag-row--plain {
  width: auto;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.tag-row__label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--purple-strong);
  margin-right: 4px;
}

.tag-row__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0);
  box-shadow: 0 0 0 1px var(--card-border) inset;
  font-size: 12px;
  color: var(--purple-strong);
}

.tag-row__item img { width: 14px; height: 14px; }

/* Point cards (lifestyle / stress / diet detail cards) */

.point-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.point-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 20px 18px 54px;
}

.point-card__check {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lilac);
  display: flex;
  align-items: center;
  justify-content: center;
}

.point-card__check img { width: 18px; height: 18px; }

.point-card--compact { padding-left: 20px; }

.point-card__body { flex: 1; }

.point-card__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--purple-strong);
}

.point-card__desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-body);
}

.point-card__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple-soft-gradient);
  box-shadow: 0 0 5px rgba(155, 122, 183, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.point-card__icon--duo { display: flex; gap: 2px; padding: 2px; }
.point-card__icon--duo img { width: 40%; }

.point-card--wide {
  grid-column: 1 / -1;
  padding: 18px 20px 18px 54px;
}

.point-card__photo {
  flex: none;
  width: 100px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

/* ==========================================================================
   SP (スマートフォン) レスポンシブ対応
   PCのレイアウトをそのまま縮小するのではなく、
   縦積み・タップしやすいサイズ・優先度に応じた情報設計で再構成する。
   ========================================================================== */

@media (max-width: 900px) {

  body { 
    background-image: url("../assets/images/bg-silk-mobile.png"), var(--bg-gradient);
        background-size: 100% 1040px, 100% 100%;
  }

  .page { padding: 0; }

  .site-header { padding: 10px 16px; }

  .hero-group { padding: 24px 18px; gap: 28px; }

  .hero-group__vase { width: 20%; min-width: 70px; opacity: 0.9; }

  .hero-group__glow { 
    right: 0;
    left: auto;
    width: 40%;
    min-width: 151px;
    top: 0;
  }

  .hero-group__petals--bl { width: 22%; min-width: 80px; }

  .hero-group__petals--tr { right: 5%; min-width: 60px; }

  /* Hero: stack into a single column, photo becomes a centered circle above the text */
  .hero__content { max-width: 100%; }

  .hero__sprig { 
    top: 48%;
    left: -13px;
    width: 14%;
    min-width: 80px;
    transform: rotate(0deg);
  }

  .hero__desc { font-size: 12px; letter-spacing: 0.05em; margin-bottom: 24px; }

  .hero__content_txt {
    width: 75%;
  }

  .hero__content_txt::before {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 32%, rgba(255, 255, 255, 0) 58%);
  }

  .hero__stats {
    gap: 14px;
  }

  .hero__media {
    z-index: -2;
  }

  .hero__photo {
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 55%, transparent 90%);
    mask-image: radial-gradient(circle at 50% 50%, black 55%, transparent 90%);
  }

  .stat-card { padding: 18px 16px; }

  .stat-card__scalp { font-size: 13px; letter-spacing: 0.01em; }

  /* Factors: this is a diagnosis result, not a shop shelf — readers should be
     able to read all three at a glance, so stack them as short wide rows
     instead of a horizontal swipe carousel. */
  .factors__grid {
    grid-template-columns: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .factors__grid[data-count] { grid-template-columns: none; }

  .factor-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    text-align: left;
    padding: 16px 18px;
    min-height: 100px;
  }

  .factor-card__icon {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
  }

  .factor-card__title {
    margin: 0;
    font-size: 16px;
  }

  .factor-card__desc {
    font-size: 12px;
    letter-spacing: 0.03em;
    line-height: 1.5;
  }

  .cause__title { font-size: 25px; line-height: 1.5; }
  .cause__title[data-lines="3"] { font-size: 21px; }

  .cause::before {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 32%, rgba(255, 255, 255, 0) 58%)
  }

  .section-divider__title { font-size: 28px; white-space: normal; text-align: center; }

  .section-divider__diagnosis.is-compound {
    font-size: 0.8em;
  }

  .treatments__factors {
    margin: 4px 0 12px;
    padding: 24px 16px;
  }

  .treatments__factors-heading { font-size: 18px; }

  .treatments__header { margin-top: 8px; }
  .treatments__heading { font-size: 18px; }
  .treatments__lead { padding: 0 12px; font-size: 10px; }

  /* Treatments: this is a result list to be read, not a spec sheet — trim
     each card down to name / tag / short desc / 3 points / one-line note,
     and push the rest behind "詳しく見る" instead of showing everything at once. */
  .treatment-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    text-align: left;
  }

  .treatment-card.js-result-treatment { grid-template-columns: minmax(0, 1fr); }

  .treatment-card__id {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .treatment-card.js-result-treatment .treatment-card__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
  }

  .treatment-card.js-result-treatment .treatment-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .treatment-card__num::after { display: none; }

  .treatment-card__note {
    padding: 10px 14px;
  }

  .treatment-card__note-icon { display: none; }

  .treatment-card__note-desc { display: none; }

  .treatments__shared-guidance {
    display: grid;
    justify-content: stretch;
    gap: 9px;
    padding: 13px 15px;
    text-align: left;
  }

  .treatment-card__cta {
    justify-self: end;
    flex-direction: row;
    gap: 6px;
  }

  .treatment-card__cta-icon { display: none; }

  .treatment-card__cta-label::after { content: "→"; margin-left: 4px; }

  /* Advice row: stack, pitfalls first then referral */
  .advice-row {
    grid-template-columns: 1fr;
  }

  /* Tabs: horizontal scroll instead of squeezing 5 tabs */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .tabs__tab {
    flex: none;
    min-width: 130px;
    scroll-snap-align: start;
    padding: 14px 8px;
    font-size: 13px;
  }

  .tab-panel { padding: 24px 18px; }

  .tab-panel__layout {
    grid-template-columns: 1fr;
  }

  .tab-panel__portrait {
    height: 220px;
  }

  .care-tips--grid { grid-template-columns: 1fr; }

  .scalp-portrait__label { bottom: -10px; font-size: 22px; }

  /* ヘアケア: 3 columns is too tight on mobile -> single column list */
  .hair-tips { grid-template-columns: 1fr; gap: 12px; }

  .hair-tip { padding-right: 90px; }

  .hair-tip__photo {
    top: 16px;
  }

  .panel-heading { font-size: 22px; }
  .panel-lead { font-size: 13px; margin-bottom: 20px; }

  /* Info banner: stack icon/photo above text */
  .info-banner { flex-direction: column; align-items: flex-start; padding: 20px; }

  .info-banner__body,
  .info-banner__desc {
    flex: none;
    width: 100%;
  }

  .info-banner__desc {
    padding-left: 0;
    border-left: none;
    padding-top: 16px;
    border-top: 1px dashed var(--card-border);
  }

  .tag-row { 
    justify-content: space-between;
    gap: 3px;
  }

  .tag-row__label {
    width: 100%;
  }

  /* Point cards: single column stack, and full-bleed layout for readability */
  .point-cards, .point-cards--quad {
    grid-template-columns: 1fr;
  }

  .point-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .point-card__title {
    padding-left: 32px;
  }

  .point-card__check {
    top: 18px;    
  }

  .point-card__photo, .point-card__icon { 
    width: 70px;
    height: 70px;
    align-self: center;
    padding: 6px;
  }
}

@media (max-width: 500px) {
  .hero__photo {
    height: 80%;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 30px; }
  .hero__title.is-compound-double { font-size: 22px; line-height: 1.5; }
  .hero__title.is-compound-triple { font-size: 18px; line-height: 1.55; }
  .stat-card__num { font-size: 36px; }
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }

  .hero__media {
    right: -14%;
  }
}

/* ==========================================================================
   Self care plan / prescription-style redesign
   ========================================================================== */

.detail-care {
  --care-primary: #4f2378;
  --care-secondary: #9569b6;
  --care-bg: #f7f1fb;
  --care-gold: #b88732;
  --care-text: #332a37;
  padding: clamp(56px, 8vw, 84px) clamp(20px, 4vw, 40px) 0;
  background: var(--care-bg);
  box-shadow: 0 0 0 100vmax var(--care-bg);
  color: var(--care-text);
}

.detail-care__header {
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}

.detail-care__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 15px;
  color: var(--care-gold);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.detail-care__eyebrow::before,
.detail-care__eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(184, 135, 50, 0.42);
}

.detail-care__heading {
  margin: 0 0 16px;
  color: var(--care-primary);
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.detail-care__intro {
  margin: 0;
  color: #625a66;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 2;
}

.detail-care .tabs {
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-care .tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid rgba(79, 35, 120, 0.14);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: #625a66;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.detail-care .tabs__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}

.detail-care .tabs__tab:hover {
  border-color: var(--care-secondary);
  color: var(--care-primary);
}

.detail-care .tabs__tab.is-active {
  border-color: var(--care-primary);
  background: var(--care-primary);
  color: #fff;
}

.detail-care .tab-panel {
  position: relative;
  padding: clamp(34px, 6vw, 60px);
  border: 1px solid rgba(79, 35, 120, 0.13);
  border-top: 3px solid var(--care-primary);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(79, 35, 120, 0.09);
}

.detail-care .tab-panel::after {
  content: "HAIR SHIRUBE";
  position: absolute;
  top: 22px;
  right: clamp(24px, 5vw, 54px);
  color: rgba(79, 35, 120, 0.28);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.tab-panel__label {
  margin: 0 0 14px;
  color: var(--care-gold);
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.detail-care .panel-heading {
  margin: 0 0 12px;
  color: var(--care-primary);
  font-size: clamp(23px, 3vw, 30px);
  text-align: left;
}

.detail-care .panel-lead {
  margin: 0 0 34px;
  color: var(--care-text);
  text-align: left;
}

.foundation-panel__heading {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 6px;
  padding-right: 80px;
}

.foundation-panel__heading-text {
  min-width: 0;
}

.foundation-panel__visual {
  display: inline-flex;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(79, 35, 120, 0.13);
  border-radius: 50%;
  background: #f7f1f8;
}

.foundation-panel__visual img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.foundation-assessment {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0 28px;
  padding: 18px 20px;
  border: 1px solid;
  border-radius: 8px;
}

.foundation-assessment--good {
  border-color: rgba(85, 126, 102, 0.28);
  background: #f3f8f3;
  color: #3f6f53;
}

.foundation-assessment--advice {
  border-color: rgba(155, 105, 76, 0.28);
  background: #fbf4ee;
  color: #83523e;
}

.foundation-assessment__icon {
  display: inline-flex;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
}

.foundation-assessment__title {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.foundation-assessment__text {
  margin: 0;
  color: #625a66;
  font-size: 12px;
  line-height: 1.8;
}

.detail-care .care-tips--grid {
  column-gap: 28px;
  row-gap: 0;
}

.detail-care .care-tips li {
  min-height: 100px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(79, 35, 120, 0.12);
}

.detail-care .care-tips__icon {
  background: transparent;
  border-radius: 0;
}

.detail-care .care-tips li:has(.care-tips__icon) .care-tips__num {
  right: -3px;
  bottom: -2px;
  background: var(--care-primary);
}

.detail-care .care-tips li p {
  color: var(--care-text);
  font-size: 12px;
  line-height: 1.9;
}

.detail-care .tab-panel__portrait {
  border-radius: 2px;
  box-shadow: none;
  filter: saturate(0.78);
}

.detail-care .scalp-portrait__label { color: var(--care-primary); }

.detail-care .care-banner {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 0;
  background: var(--care-bg);
}

.detail-care .care-banner__main { color: var(--care-primary); }

.detail-care .section-tag,
.detail-care .badge-pill {
  border-color: rgba(79, 35, 120, 0.32);
  border-radius: 2px;
  background: #fff;
  color: var(--care-primary);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.detail-care .hair-tips { gap: 0; border-top: 1px solid rgba(79, 35, 120, 0.13); }

.detail-care .hair-tip {
  min-height: 230px;
  padding: 24px 18px;
  border: 0;
  border-right: 1px solid rgba(79, 35, 120, 0.13);
  border-radius: 0;
}

.detail-care .hair-tip:last-child { border-right: 0; }

.detail-care .hair-tip__num {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--care-gold);
  font-size: 14px;
}

.detail-care .hair-tip__photo { border-radius: 2px; filter: saturate(0.75); }
.detail-care .hair-tip__title { color: var(--care-primary); }

.detail-care .info-banner {
  padding: 28px 0 32px;
  border: 0;
  border-top: 1px solid rgba(79, 35, 120, 0.13);
  border-bottom: 1px solid rgba(79, 35, 120, 0.13);
  border-radius: 0;
  background: #fff;
}

.detail-care .info-banner__icon--photo img { border-radius: 2px; filter: saturate(0.72); }
.detail-care .info-banner__title { color: var(--care-primary); }

.detail-care .tag-row__item {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(79, 35, 120, 0.18) inset;
  color: var(--care-primary);
}

.detail-care .point-cards { gap: 0; }

.detail-care .point-card {
  min-height: 130px;
  padding: 0 20px 24px 58px;
  border: 0;
  border-right: 1px solid rgba(79, 35, 120, 0.13);
  border-bottom: 1px solid rgba(79, 35, 120, 0.13);
  border-radius: 0;
}

.detail-care .point-card:nth-child(even),
.detail-care .point-card--wide { border-right: 0; }

.detail-care .point-card__check {
  top: 24px;
  left: 18px;
  width: 24px;
  height: 24px;
  background: var(--care-primary);
}

.detail-care .point-card__check img { width: 14px; height: 14px; }
.detail-care .point-card__title { color: var(--care-primary); }
.detail-care .point-card__desc { color: var(--care-text); font-size: 12px; }

.detail-care .point-card__icon {
  border-radius: 2px;
  background: var(--care-bg);
  box-shadow: none;
}

.detail-care .point-card__photo { border-radius: 2px; filter: saturate(0.72); }

/* 良好判定パネル */

.good-state__header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  padding: 6px 0 26px;
  border-bottom: 1px solid rgba(79, 35, 120, 0.13);
}

.good-state__mark {
  flex: none;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(184, 135, 50, 0.52);
  border-radius: 50%;
  color: var(--care-gold);
  font-family: var(--font-serif);
  font-size: 27px;
}

.good-state__status {
  margin: 0 0 7px;
  color: var(--care-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.good-state__title {
  margin: 0;
  color: var(--care-primary);
  font-family: var(--font-serif);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.good-state__lead {
  max-width: 720px;
  margin: 0 0 34px;
  color: var(--care-text);
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 2.05;
}

.good-state__prescription {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(79, 35, 120, 0.13);
  border-bottom: 1px solid rgba(79, 35, 120, 0.13);
}

.good-state__number {
  margin: 0;
  color: var(--care-gold);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.good-state__prescription h4,
.good-state__item h4 {
  margin: 0 0 8px;
  color: var(--care-primary);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}

.good-state__prescription p:not(.good-state__number),
.good-state__item > p:last-child {
  margin: 0;
  color: var(--care-text);
  font-size: 12px;
  line-height: 1.9;
}

.good-state__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--care-bg);
}

.good-state__icon img { width: 34px; height: 34px; object-fit: contain; }

.good-state__nutrients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(79, 35, 120, 0.13);
  border-bottom: 1px solid rgba(79, 35, 120, 0.13);
}

.good-state__nutrients span {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid rgba(79, 35, 120, 0.13);
  color: var(--care-primary);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.good-state__nutrients span:last-child { border-right: 0; }

.good-state__nutrients small {
  color: var(--care-gold);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.good-state__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(79, 35, 120, 0.13);
}

.good-state__item {
  min-height: 230px;
  padding: 24px 22px;
  border-right: 1px solid rgba(79, 35, 120, 0.13);
  border-bottom: 1px solid rgba(79, 35, 120, 0.13);
}

.good-state__item:last-child { border-right: 0; }
.good-state__item .good-state__number { margin-bottom: 16px; }


@media (max-width: 900px) {
  .detail-care { padding: 48px 0 0; }

  .detail-care__header { padding: 0 22px; margin-bottom: 30px; }
  .detail-care__heading { font-size: clamp(25px, 7vw, 32px); }
  .detail-care__intro br { display: none; }

  .detail-care .tabs {
    margin: 0 0 12px;
    padding: 0 18px 6px;
    gap: 8px;
    scrollbar-width: none;
  }

  .detail-care .tabs::-webkit-scrollbar { display: none; }

  .detail-care .tabs__tab {
    min-width: max-content;
    padding: 10px 15px;
    scroll-snap-align: center;
  }

  .detail-care .tabs__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .detail-care .tab-panel {
    margin: 0 12px;
    padding: 32px 22px;
  }

  .detail-care .tab-panel::after { top: 18px; right: 20px; }
  .detail-care .panel-heading { font-size: 23px; line-height: 1.55; letter-spacing: -0.02em; }
  .detail-care .panel-lead { font-size: 13px; line-height: 1.9; }

  .foundation-panel__heading {
    min-height: 84px;
    gap: 14px;
    padding-right: 0;
  }

  .foundation-panel__visual {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .foundation-assessment { padding: 16px; }

  .detail-care .tab-panel__layout { grid-template-columns: 1fr; }
  .detail-care .care-tips--grid { grid-template-columns: 1fr; }

  .detail-care .care-tips--grid li:nth-last-child(2) {
    border-bottom: 1px solid rgba(79, 35, 120, 0.12);
    padding-bottom: 18px;
  }

  .detail-care .scalp-portrait { display: none; }

  .detail-care .hair-tips { grid-template-columns: 1fr; }
  .detail-care .hair-tip { min-height: 155px; border-right: 0; border-bottom: 1px solid rgba(79, 35, 120, 0.13); }

  .detail-care .info-banner { padding: 24px 0; }

  .detail-care .info-banner__icon {
    width: 56px;
    height: 56px;
    padding: 9px;
  }

  .detail-care .info-banner__icon--photo {
    padding: 0;
  }

  .detail-care .point-cards,
  .detail-care .point-cards--quad { grid-template-columns: 1fr; }

  .detail-care .point-card,
  .detail-care .point-card:nth-child(even) {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    padding: 22px 18px 22px 54px;
    border-right: 0;
  }

  .detail-care .point-card__title { padding-left: 0; }
  .detail-care .point-card__check { top: 22px; left: 16px; }
  .detail-care .point-card__icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-self: center;
    padding: 9px;
  }

  .detail-care .point-card.point-card--compact {
    padding-left: 18px;
  }

  .detail-care .point-card__photo { display: none; }

  .good-state__header { align-items: flex-start; gap: 15px; }
  .good-state__mark {         
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .good-state__title { font-size: 21px; }
  .good-state__lead { font-size: 12px; }

  .good-state__prescription {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .good-state__prescription .good-state__icon { display: none; }
  .good-state__nutrients span { min-height: 92px; font-size: 13px; }
  .good-state__items { grid-template-columns: 1fr; }

  .good-state__item {
    display: grid;
    min-height: 0;
    grid-template-columns: 38px 1fr;
    column-gap: 10px;
    padding: 22px 0;
    border-right: 0;
  }

  .good-state__item .good-state__number { grid-row: 1 / 3; margin: 2px 0 0; }
  .good-state__item h4,
  .good-state__item > p:last-child { grid-column: 2; }

}

/* Official palette: final cascade overrides component defaults above. */
body { background-color: #ede8e2; background-image: none; }
.site-header { border-bottom: 1px solid rgba(101,68,85,.12); background: rgba(255,253,249,.9); }
.diagnosis-link { color: #654455; }
.card-surface { backdrop-filter: blur(3px); }
.hero-group { border-top: 2px solid #654455; background: rgba(255,253,249,.62); }
.hero__content_txt::before, .cause::before { background: radial-gradient(ellipse at center,rgba(255,253,249,.94) 0%,rgba(255,253,249,.76) 48%,rgba(255,253,249,0) 78%); }
.hero-group__glow { opacity: .35; filter: grayscale(.35) sepia(.14); }
.hero-group__petals { opacity: .42; filter: saturate(.55) sepia(.12); }
.hero__sprig { opacity: .55; filter: saturate(.55); }
.hero__photo { filter: saturate(.68) sepia(.05); }
.stat-card { border: 1px solid rgba(101,68,85,.13); background: rgba(255,253,249,.93); }
.stat-card__denom { color: #766a70; }
.stat-card__bar { background: #ded5d0; }
.stat-card__bar-fill::after { box-shadow: 0 0 0 3px #fffdf9,0 1px 4px rgba(73,48,61,.24); }
.factor-card, .factor-card--soft { background: #fffdf9; box-shadow: none; }
.factor-card__icon { background: #f1ebe6; box-shadow: none; }
.content-band { border-top-color: rgba(101,68,85,.2); background: #f8f5f0; }
.treatments__factors { border-color: rgba(101,68,85,.16); background: rgba(255,253,249,.7); }
.section-divider__line { background: linear-gradient(90deg,transparent 0%,rgba(101,68,85,.3) 16%,rgba(101,68,85,.3) 84%,transparent 100%); }
.treatment-card__tag, .section-tag, .badge-pill { background: #fffdf9; }
.treatment-card__note, .referral__icon, .care-tips__icon, .care-banner { background: #f1ebe6; }
.detail-care { --care-primary:#654455; --care-secondary:#9a8899; --care-bg:#f1ebe6; --care-gold:#967a66; --care-text:#352d31; }
.detail-care .tabs__tab, .detail-care .tab-panel, .detail-care .info-banner { background: #fffdf9; }
.detail-care .tabs__tab, .detail-care .tab-panel, .detail-care .care-tips li, .detail-care .hair-tips, .detail-care .hair-tip, .detail-care .info-banner, .detail-care .point-card, .good-state__header, .good-state__prescription, .good-state__nutrients, .good-state__nutrients span, .good-state__items, .good-state__item { border-color: rgba(101,68,85,.16); }
.detail-care .tab-panel { box-shadow: 0 20px 55px rgba(53,45,49,.07); }
.detail-care .tab-panel::after { color: rgba(101,68,85,.26); }
@media (max-width:900px) { body { background-image: none; } .hero-group { border-top-width:1px; } }

/* Generated editorial imagery: transparent, restrained, and consistent. */
.hero__photo {
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(.76) sepia(.04);
}

.factor-card__icon {
  width: 92px;
  height: 92px;
  border-radius: 0;
  background: transparent;
}

.factor-card__icon img {
  width: 82%;
  height: 82%;
}

@media (max-width: 900px) {
  .hero__photo {
    object-fit: cover;
    object-position: 45%;
  }

  .factor-card__icon {
    width: 52px;
    height: 52px;
  }

  .factor-card__icon img {
    width: 90%;
    height: 90%;
  }
}

@media (min-width: 901px) {
  body { background-size: auto 1000px; }

  .hero__media {
    top: -61%;
    right: -10%;
    bottom: -16%;
  }
}
