*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --black:     #0f0e0d;
  --charcoal:  #282624;
  --brown:     #7a6e62;
  --taupe:     #b8aea0;
  --sand:      #e8e0d5;
  --cream:     #f6f1eb;
  --off-white: #faf9f7;
  --white:     #ffffff;
  --gold:      #c9a96e;

  --font-en:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Palatino, Georgia, serif;
  --font-jp:    'Noto Serif JP', serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  56px;
  --space-2xl: 72px;

  --radius:    4px;
  --transition: 0.22s ease;
}

body {
  font-family: var(--font-jp);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GLOBAL TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.eyebrow--gold { color: var(--gold); }

.heading-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--charcoal);
}
.heading-en {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.lead {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.9;
}
.note {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--taupe);
  letter-spacing: 0.06em;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--taupe);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand);
}

/* ── BUTTONS ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: var(--radius);
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: var(--transition);
  gap: 8px;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--charcoal); }
.btn-primary:active { background: #3d3836; transform: scale(0.99); }

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-secondary:hover { background: var(--cream); }
.btn-secondary:active { background: var(--sand); transform: scale(0.99); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--sand);
  font-size: 13px;
  height: 44px;
}
.btn-ghost:hover { border-color: var(--taupe); }

.btn[disabled], .btn:disabled {
  background: var(--sand);
  color: var(--taupe);
  pointer-events: none;
}

/* ── TAG CHIP ── */
.tag-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 2px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brown);
  white-space: nowrap;
}
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================================================
   NAV
====================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  height: 52px;
  display: flex;
  align-items: center;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}
.site-nav__logo {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--black);
  text-transform: uppercase;
}
.site-nav__link {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brown);
  text-transform: uppercase;
}

/* ======================================================
   SECTION 1: FIRST VIEW
====================================================== */
#fv {
  padding-top: 52px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#fv::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,169,110,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(184,174,160,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.fv__inner {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.fv__eyebrow {
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.fv__heading {
  font-size: clamp(28px, 8vw, 38px);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.fv__lead {
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.fv__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}
.fv__brand-tag {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brown);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 2px;
  padding: 4px 10px;
}
.fv__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.85s forwards;
}
.fv__divider {
  margin-top: var(--space-2xl);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.0s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   SECTION 2: QUICK SEARCH
====================================================== */
#quick-search {
  padding: var(--space-2xl) 0;
  background: var(--off-white);
}
.qs__header { margin-bottom: var(--space-lg); }
.qs__heading {
  font-size: 24px;
  margin: var(--space-xs) 0 var(--space-sm);
}

.qs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.concern-card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 68px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.concern-card:hover {
  border-color: var(--taupe);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.concern-card.is-selected {
  background: var(--cream);
  border-color: var(--charcoal);
}
.concern-card__icon {
  font-size: 16px;
  color: var(--brown);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.concern-card.is-selected .concern-card__icon { color: var(--charcoal); }
.concern-card__label {
  font-size: 13px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.4;
}
.concern-card.is-selected .concern-card__label { font-weight: 500; }

.qs__or {
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
}
.qs__or::before, .qs__or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--sand);
}
.qs__or::before { left: 0; }
.qs__or::after  { right: 0; }
.qs__or span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--taupe);
  text-transform: uppercase;
  background: var(--off-white);
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.qs__detail-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px;
}

/* ======================================================
   SECTION 3: STEP DIAGNOSIS
====================================================== */
#step-diagnosis {
  background: var(--white);
  border-top: 1px solid var(--sand);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}
#step-diagnosis.is-open {
  max-height: 9999px;
}
#step-diagnosis .container {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* Progress */
.step-progress {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.step-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  flex: 1;
}
.step-progress__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--sand);
  z-index: 0;
}
.step-progress__item.is-done:not(:last-child)::after { background: var(--charcoal); }
.step-progress__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 8px;
  color: var(--white);
  transition: var(--transition);
}
.step-progress__item.is-active .step-progress__dot {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.step-progress__item.is-done .step-progress__dot {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.step-progress__label {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--taupe);
  text-transform: uppercase;
}
.step-progress__item.is-active .step-progress__label { color: var(--charcoal); }
.step-progress__item.is-done .step-progress__label  { color: var(--brown); }

/* Step panels */
.step-panel { display: none; }
.step-panel.is-active { display: block; }

.step-panel__meta {
  margin-bottom: var(--space-md);
}
.step-panel__num {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.step-panel__heading {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}
.step-panel__sub {
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.7;
}

/* Concern grid for steps */
.concern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: var(--space-md);
}
.concern-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.concern-tile:hover { border-color: var(--taupe); }
.concern-tile.is-selected-1 {
  background: var(--cream);
  border-color: var(--black);
}
.concern-tile.is-selected-2 {
  background: var(--cream);
  border-color: var(--charcoal);
}
.concern-tile.is-selected-3 {
  background: var(--cream);
  border-color: var(--taupe);
}
.concern-tile.is-disabled {
  background: var(--off-white);
  border-color: var(--cream);
  pointer-events: none;
}
.concern-tile__label {
  font-size: 13px;
  color: var(--charcoal);
}
.concern-tile.is-disabled .concern-tile__label { color: var(--taupe); }
.concern-tile__badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.concern-tile.is-selected-3 .concern-tile__badge { background: var(--taupe); }

/* Selection summary */
.selection-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: var(--space-md);
  min-height: 48px;
  align-items: center;
}
.selection-summary:empty::after {
  content: '悩みを選択してください';
  font-size: 12px;
  color: var(--taupe);
}
.summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 2px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--charcoal);
}
.summary-badge__num {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
}

/* Step footer */
.step-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-skip {
  text-align: right;
  font-size: 13px;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
}
.step-back {
  font-size: 12px;
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 0;
  display: inline-block;
}

/* Age / Gender chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
}
.chip {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--sand);
  border-radius: 18px;
  background: var(--white);
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--charcoal);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--taupe); }
.chip.is-selected {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

/* Situation list */
.situation-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.situation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.situation-item:last-child { border-bottom: none; }
.situation-item:hover { background: var(--off-white); }
.situation-item.is-selected { background: var(--cream); }
.situation-item__label { font-size: 13px; color: var(--charcoal); }
.situation-item__check {
  width: 18px; height: 18px;
  border: 1px solid var(--sand);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.situation-item.is-selected .situation-item__check {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.situation-item.is-selected .situation-item__check::after {
  content: '';
  width: 5px; height: 9px;
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

/* Accordion */
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  border-top: 1px solid var(--sand);
  margin-bottom: 0;
  -webkit-tap-highlight-color: transparent;
}
.accordion__trigger-label {
  font-size: 12px;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.accordion__trigger-label i { font-size: 10px; color: var(--taupe); }
.accordion__arrow {
  font-size: 10px;
  color: var(--taupe);
  transition: transform var(--transition);
}
.accordion__trigger.is-open .accordion__arrow { transform: rotate(180deg); }
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__body.is-open { max-height: 400px; }
.accordion__body-inner { padding: var(--space-sm) 0 var(--space-md); }

.section-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 10px;
}

/* ======================================================
   LOADING
====================================================== */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,249,247,0.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#loading-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}
.loading__text {
  font-size: 14px;
  color: var(--brown);
  letter-spacing: 0.06em;
}
.loading__bar {
  width: 160px;
  height: 1px;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.loading__bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: var(--charcoal);
  animation: loadingSlide 1.2s ease-in-out infinite;
}
@keyframes loadingSlide {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ======================================================
   SECTION 4: RESULT
====================================================== */
#result {
  background: var(--off-white);
  padding: var(--space-2xl) 0;
  display: none;
}
#result.is-visible { display: block; }

/* Selection summary bar */
.result-summary-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: var(--space-lg);
  align-items: center;
}
.result-summary-bar__label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--taupe);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Assessment */
.result-assessment {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--sand);
}
.result-assessment__heading {
  font-size: 20px;
  margin: var(--space-xs) 0 var(--space-sm);
  line-height: 1.5;
}
.result-assessment__body {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.9;
}

/* Category cards */
.result-section-header {
  margin-bottom: var(--space-md);
}
.result-section-header .eyebrow { margin-bottom: 6px; }
.result-section-header h3 {
  font-size: 17px;
  font-weight: 400;
}

.category-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.category-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  overflow: hidden;
}

/* カテゴリカード — 横並びレイアウト（左画像 / 右テキスト） */
.category-card__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.category-card__img-wrap {
  flex: 0 0 130px;
  width: 130px;
  align-self: stretch;   /* カード全高を埋める */
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--sand);
  background: linear-gradient(160deg, #f5f0ea 0%, #ede7dd 100%);
}
.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
  transform: scale(var(--img-scale, 1.1));
  transition: transform 0.35s ease;
}
.category-card:hover .category-card__img {
  transform: scale(calc(var(--img-scale, 1.1) + 0.08));
}
.category-card__img--blend {
  mix-blend-mode: multiply;
}
.category-card__img-wrap--blend {
  background: #fff !important;
}
.category-card__img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;          /* 通常は非表示 — 画像が上に乗る */
  z-index: 0;
}
.category-card__img {
  position: relative;
  z-index: 1;          /* フォールバックより前面 */
}
.category-card__img-initial {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--taupe);
  line-height: 1;
}
/* 画像なし（onerror発火）の場合のみフォールバックを表示 */
.category-card__img-wrap--no-img .category-card__img-fallback {
  opacity: 1;
}
.category-card__body {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}
@media (max-width: 480px) {
  .category-card__img-wrap {
    flex: 0 0 110px;
    width: 110px;
  }
  .category-card__body {
    padding: 12px 14px;
  }
}
.category-card--priority-1 {
  border-left: 3px solid var(--charcoal);
}
.category-card--priority-2 {
  border-left: 2px solid var(--taupe);
}
/* priority-1/2のborder-leftは画像ラップ前に来るので維持 */

.priority-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 2px;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.priority-badge--top    { background: var(--black); color: var(--white); }
.priority-badge--high   { background: var(--cream); color: var(--charcoal); border: 1px solid var(--taupe); }
.priority-badge--medium { background: var(--white); color: var(--taupe); border: 1px solid var(--sand); }

.category-card__cat {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 2px;
}
.category-card__name {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}
.category-card__product {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.category-card__desc {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.85;
  margin-bottom: 12px;
}
.category-card__match {
  font-size: 11px;
  color: var(--taupe);
  margin-bottom: 0;
}

/* Brand cards */
.brand-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}
.brand-card__body { padding: 20px; }
.brand-card__brand {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 4px;
}
.brand-card__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 2px;
  line-height: 1.2;
}
.brand-card__group {
  font-size: 11px;
  color: var(--taupe);
  margin-bottom: 14px;
}
.brand-card__divider {
  height: 1px;
  background: var(--sand);
  margin-bottom: 14px;
}
.brand-card__desc {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.9;
  margin-bottom: 10px;
}
.brand-card__target {
  font-size: 12px;
  color: var(--taupe);
  margin-bottom: 12px;
}
.brand-card__target strong {
  color: var(--brown);
  font-weight: 400;
}
.brand-card__tags { margin-bottom: 4px; }
.brand-card__tag-label {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 5px;
}
.brand-card__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--sand);
}
.brand-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 12px;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition);
  gap: 4px;
}
.brand-card__cta:first-child {
  border-right: 1px solid var(--sand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand-card__cta:last-child {
  background: transparent;
}
.brand-card__cta:hover { background: var(--off-white); }
.brand-card__footer--single {
  grid-template-columns: 1fr;
}
.brand-card__footer--single .brand-card__cta {
  border-right: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Brand card — 画像レイアウト
   ・左画像エリアはカード全高にストレッチ
   ・scale(1.2)で細ボトルも存在感を確保
   ・上質なベージュグラデーション背景で統一感
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.brand-card__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.brand-card__img-wrap {
  flex: 0 0 130px;
  width: 130px;
  align-self: stretch;   /* カード全高を埋める */
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--sand);
  /* 上質なリネン調グラデーション */
  background: linear-gradient(160deg, #f5f0ea 0%, #ede7dd 100%);
}
.brand-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
  box-sizing: border-box;
  /* scaleはJS(adjustImgScale)で縦横比に応じて動的付与 */
  transform: scale(var(--img-scale, 1.1));
  transition: transform 0.35s ease;
}
.brand-card:hover .brand-card__img {
  transform: scale(calc(var(--img-scale, 1.1) + 0.08));
}
/* グローバルミルボン：白背景JPGをCSS合成で透過 */
.brand-card__img--blend {
  mix-blend-mode: multiply;
}
.brand-card__img-wrap--blend {
  background: #fff !important; /* multiplyには白背景が必要 */
}
.brand-card__img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
/* 画像なし or 読み込み失敗時にフォールバック表示 */
.brand-card__img-wrap--fallback .brand-card__img-fallback {
  opacity: 1;
}
.brand-card__img-wrap--fallback .brand-card__img {
  display: none;
}
.brand-card__img-initial {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
/* bodyはflexで残り幅を埋める */
.brand-card__inner .brand-card__body {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 16px;
}

/* ── スマホ: 横並びキープ ── */
@media (max-width: 480px) {
  .brand-card__img-wrap {
    flex: 0 0 110px;
    width: 110px;
  }
  .brand-card__inner .brand-card__body {
    padding: 12px 14px;
  }
  .brand-card__line {
    font-size: 18px;
  }
  .brand-card__desc {
    font-size: 12px;
    line-height: 1.75;
  }
}

/* Brand cards — カテゴリ見出し */
.brand-cards__cat-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--sand);
  margin-top: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.brand-cards__cat-heading:first-child { margin-top: 0; }
.brand-cards__cat-en {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.brand-cards__cat-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--charcoal);
  font-weight: 500;
}
.brand-cards__cat-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
}
.brand-cards__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Brand card — 新フィールド対応 */
.brand-card__cat-label {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.brand-card__product-name {
  font-size: 12px;
  color: var(--taupe);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Mask section（集中トリートメントマスク独立セクション） */
.mask-section {
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.mask-section__header { margin-bottom: 14px; }
.mask-section__label {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.mask-section__title {
  font-size: 18px;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.mask-section__lead {
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.7;
}
.category-card--mask {
  border-left: 3px solid var(--gold);
}
/* マスクカードも同じ横並びレイアウトを適用済み（.category-card__innerで制御） */

/* Result note */
.result-note {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}
.result-note i { color: var(--gold); margin-right: 6px; }

.result-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-md);
}
.result-restart {
  text-align: center;
  font-size: 12px;
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px;
}

/* ======================================================
   SECTION 5: POPULAR
====================================================== */
#popular {
  padding: var(--space-2xl) 0;
  background: var(--white);
  border-top: 1px solid var(--sand);
}
.popular__heading {
  font-size: 20px;
  margin: var(--space-xs) 0 var(--space-lg);
}

.popular-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}
.popular-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: var(--off-white); }
.popular-item__label { font-size: 14px; color: var(--charcoal); }
.popular-item__arrow {
  font-size: 10px;
  color: var(--taupe);
}

/* Recommended lines */
.rec-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 0 20px;
}
.rec-scroll::-webkit-scrollbar { display: none; }
.rec-scroll__inner {
  display: flex;
  gap: 10px;
  width: max-content;
  padding-right: 20px;
}
.rec-card {
  width: 148px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.rec-card:hover { border-color: var(--taupe); }
.rec-card__brand {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 4px;
}
.rec-card__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 8px;
}
.rec-card__tag {
  font-size: 10px;
  color: var(--brown);
}

/* ======================================================
   SECTION 6: STORE CTA
====================================================== */
#store-cta {
  background: var(--cream);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--sand);
}
.store-cta__heading {
  font-size: 22px;
  margin: var(--space-xs) 0 var(--space-sm);
  line-height: 1.4;
}
.store-cta__lead {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.9;
  margin-bottom: var(--space-xs);
}
.store-cta__note {
  font-size: 11px;
  color: var(--taupe);
  margin-bottom: var(--space-lg);
}
.store-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-2xl);
}

.stores-heading {
  font-size: 17px;
  margin: var(--space-xs) 0 var(--space-md);
  font-weight: 400;
}
.stores-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 18px;
}
.store-card__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.store-card__area {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.store-card__desc {
  font-size: 12px;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: 14px;
}
.store-card__links {
  display: flex;
  gap: 12px;
}
.store-card__link {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.store-card__link i { font-size: 11px; color: var(--taupe); }

/* ======================================================
   FOOTER
====================================================== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: var(--space-lg) 0;
  text-align: center;
}
.site-footer__logo {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--white);
  margin-bottom: var(--space-xs);
}
.site-footer__copy {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ======================================================
   UTILITY
====================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-xs  { margin-top: var(--space-xs);  }
.mt-sm  { margin-top: var(--space-sm);  }
.mt-md  { margin-top: var(--space-md);  }
.mt-lg  { margin-top: var(--space-lg);  }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

/* No result */
.no-result-panel {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}
.no-result-panel i {
  font-size: 28px;
  color: var(--sand);
  margin-bottom: var(--space-md);
}
.no-result-panel p {
  font-size: 14px;
  color: var(--brown);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

/* Fade in animation for result */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }
