:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-deep: #ece3d5;
  --surface: rgba(255, 252, 245, 0.82);
  --surface-strong: rgba(255, 251, 242, 0.96);
  --text: #282521;
  --muted: #746b5e;
  --subtle: #998f7e;
  --line: rgba(45, 40, 33, 0.12);
  --accent: #8f7150;
  --accent-deep: #26383c;
  --gold: #b79b68;
  --shadow: 0 26px 90px rgba(61, 48, 32, 0.14);
  --soft-shadow: 0 16px 48px rgba(61, 48, 32, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1120px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 246, 229, 0.95), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(219, 203, 175, 0.55), transparent 32rem),
    linear-gradient(135deg, var(--bg), var(--bg-deep));
  line-height: 1.8;
  letter-spacing: 0.02em;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  z-index: -1;
}

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

a {
  color: inherit;
}

button,
a.button {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(244, 239, 230, 0.72);
  border-bottom: 1px solid rgba(45, 40, 33, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff8e8, transparent 34%),
    linear-gradient(135deg, #26383c, #a7865c);
  box-shadow: 0 10px 30px rgba(40, 37, 33, 0.16);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 70px 0 42px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.hero h1,
.section-head h2,
.question-head h2,
.result-copy h2,
.result-section h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.28;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.55rem, 7vw, 5.85rem);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
}

.button,
button.primary {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #25383c, #866b4c);
  color: #fffaf0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(39, 48, 46, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
}

.button:hover,
button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(39, 48, 46, 0.22);
}

.button.secondary,
.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.74);
  color: var(--text);
  box-shadow: none;
}

.micro-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 740px;
}

.micro-trust span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 245, 0.55);
  font-size: 0.88rem;
  text-align: center;
}

.hero-visual {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.72), rgba(205, 189, 161, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(255, 248, 224, 0.7), transparent 40%);
  animation: breathe 9s ease-in-out infinite;
}

.hero-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 252, 245, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--soft-shadow);
}

.floating-card p {
  margin: 0;
  color: var(--muted);
}

.floating-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

@keyframes breathe {
  0%, 100% { transform: translate(-4%, -2%) scale(1); opacity: 0.45; }
  50% { transform: translate(4%, 2%) scale(1.08); opacity: 0.78; }
}

.section {
  padding: 76px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.sense-card,
.type-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: var(--soft-shadow);
}

.sense-card .number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(143, 113, 80, 0.13);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.sense-card h3,
.type-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
}

.sense-card p,
.type-card p {
  margin: 0;
  color: var(--muted);
}

.type-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.type-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--type-accent) 22%, transparent);
}

.type-card img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(40, 37, 33, 0.12);
}

.diagnosis-wrap {
  border-radius: 46px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.9), rgba(239, 230, 214, 0.72)),
    radial-gradient(circle at 80% 0%, rgba(183, 155, 104, 0.18), transparent 30rem);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.progress-wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: rgba(45, 40, 33, 0.09);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 12.5%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26383c, #b79b68);
  transition: width 0.34s ease;
}

.question-card {
  min-height: 420px;
  scroll-margin-top: 96px;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.question-card.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.question-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.question-head p {
  margin: 0 0 26px;
  color: var(--muted);
}

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

.choice {
  text-align: left;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.72);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  color: var(--text);
}

.choice:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 113, 80, 0.32);
  background: rgba(255, 252, 245, 0.98);
}

.choice-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.choice-note {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
}

.back {
  margin-top: 22px;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
}

.result {
  padding-top: 20px;
}

.result-shell {
  border-radius: 46px;
  padding: 28px;
  background: rgba(255, 252, 245, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--type-accent) 20%, transparent), transparent 24rem),
    linear-gradient(135deg, rgba(255, 252, 245, 0.72), rgba(238, 229, 212, 0.68));
}

.result-art img {
  border-radius: 30px;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.result-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.3vw, 3.8rem);
}

.result-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.tag-row,
.product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.product-kicker span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(45, 40, 33, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
}

.result-section {
  padding: 30px 4px 0;
}

.result-section h3 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.ritual-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  counter-reset: ritual;
}

.ritual-list li {
  list-style: none;
  counter-increment: ritual;
  position: relative;
  padding: 18px 18px 18px 64px;
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid var(--line);
}

.ritual-list li::before {
  content: counter(ritual);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(143, 113, 80, 0.14);
  color: var(--accent);
  font-weight: 700;
}


.subtle-section {
  padding: 22px;
  margin-top: 24px;
  border-radius: 26px;
  background: rgba(255, 252, 245, 0.48);
  border: 1px solid rgba(45, 40, 33, 0.08);
}

.subtle-section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.soft-warning {
  color: var(--muted);
}

.soft-warning ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  margin: 0;
}

.section-title-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 18px;
}

.mini-note {
  max-width: 360px;
  margin: 0;
  color: var(--subtle);
  font-size: 0.84rem;
}

.product-group {
  margin-top: 24px;
}

.product-group h4 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.24rem;
}

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

.product-card,
.related-card,
.radar-cta {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 252, 245, 0.72);
  padding: 20px;
}

.product-card h5 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.product-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(38, 56, 60, 0.92);
  color: #fffaf0;
  text-decoration: none;
  font-size: 0.88rem;
}

.related-card {
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--type-accent) 18%, transparent), transparent 16rem),
    rgba(255, 252, 245, 0.72);
}

.related-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 252, 245, 0.96);
}

.related-card span {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.related-card strong,
.related-card small {
  display: block;
}

.related-card small {
  color: var(--muted);
  margin-top: 4px;
}

.radar-cta {
  background:
    radial-gradient(circle at 90% 10%, rgba(183, 155, 104, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(38, 56, 60, 0.96), rgba(109, 86, 61, 0.94));
  color: #fffaf0;
  margin-top: 30px;
  padding: 28px;
}

.radar-cta .eyebrow,
.radar-cta p {
  color: rgba(255, 250, 240, 0.78);
}

.radar-cta h3 {
  color: #fffaf0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.note-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.62);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  padding: 48px 0 58px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  text-decoration: none;
}

.legal-page {
  padding: 70px 0;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px;
  border-radius: 34px;
  background: rgba(255, 252, 245, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 18px;
}

.legal-card h2 {
  margin-top: 32px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid,
  .result-hero {
    grid-template-columns: 1fr;
  }
  .sense-grid,
  .types-grid,
  .product-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max));
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 42px;
  }
  .hero-grid {
    gap: 24px;
  }
  .micro-trust,
  .sense-grid,
  .types-grid,
  .choices,
  .product-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .diagnosis-wrap,
  .result-shell {
    padding: 18px;
    border-radius: 30px;
  }
  .result-hero {
    padding: 16px;
    border-radius: 28px;
  }
  .section {
    padding: 52px 0;
  }
  .section-title-row,
  .footer-grid {
    flex-direction: column;
  }
  .hero-actions .button,
  .hero-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.plain-list {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  margin: 0;
  color: var(--muted);
}

.choice.is-selected {
  border-color: rgba(128, 96, 62, 0.62);
  background: rgba(255, 248, 234, 0.98);
  box-shadow: 0 16px 38px rgba(65, 49, 34, 0.10);
  transform: translateY(-1px);
}

.multi-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

button.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.scene-shelf {
  padding-top: 8px;
}

.tier-block + .tier-block {
  margin-top: 18px;
}

.tier-label {
  margin: 0 0 10px;
  color: var(--subtle);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

@media (max-width: 680px) {
  .multi-actions {
    align-items: stretch;
  }
  .multi-actions button {
    width: 100%;
  }
}

/* v06: 縦積みのアイテム棚 */
.scene-shelf {
  position: relative;
  margin-top: 24px;
  padding: 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at 12% 0%, rgba(191, 166, 116, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(255, 252, 245, 0.70), rgba(238, 229, 212, 0.48));
  box-shadow: 0 22px 70px rgba(58, 45, 31, 0.08);
  overflow: hidden;
}

.scene-shelf::before {
  content: "";
  position: absolute;
  inset: 58px 20px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(137, 107, 71, 0.28), transparent);
  pointer-events: none;
}

.scene-shelf h4 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.scene-shelf h4::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(143, 113, 80, 0.72);
  box-shadow: 0 0 0 7px rgba(143, 113, 80, 0.08);
}

.shelf-block {
  position: relative;
  padding: 14px 0 18px;
}

.shelf-block + .shelf-block {
  margin-top: 6px;
  border-top: 1px solid rgba(45, 40, 33, 0.07);
}

.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.tier-label {
  margin: 0;
}


.shelf-card {
  min-height: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(247, 239, 224, 0.78));
  box-shadow: 0 14px 34px rgba(72, 55, 34, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.shelf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(72, 55, 34, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(249, 241, 228, 0.88));
}

.shelf-card a {
  width: fit-content;
  margin-top: auto;
}


@media (max-width: 680px) {
  .scene-shelf {
    padding: 16px;
    border-radius: 26px;
  }
  .shelf-card {
    padding: 18px;
  }
}


/* v06: 横スライド廃止。アイテム棚は縦に読み進める */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.shelf-card {
  min-height: 100%;
}

.tier-head {
  justify-content: flex-start;
}

@media (max-width: 680px) {
  .shelf-grid {
    grid-template-columns: 1fr;
  }
}

/* v06: 旧アイテム棚の開閉スタイル。v7では一部互換用。 */
.shelf-note {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.is-primary-tier {
  padding-top: 6px;
}

.more-shelf {
  margin-top: 14px;
  border-top: 1px solid rgba(45, 40, 33, 0.08);
  padding-top: 14px;
}

.more-shelf summary {
  cursor: pointer;
  width: fit-content;
  list-style: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(45, 40, 33, 0.06);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.more-shelf summary::-webkit-details-marker {
  display: none;
}

.more-shelf summary::after {
  content: " ＋";
  color: var(--accent);
}

.more-shelf[open] summary::after {
  content: " −";
}

/* SEO page split additions */
.hero-visual-wide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.compact-hero {
  padding-bottom: 18px;
}
.static-types a.type-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, background 0.18s ease;
}
.static-types a.type-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 252, 245, 0.96);
}
.readable-card {
  max-width: 940px;
}
.result-title-h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.28;
  font-size: clamp(2rem, 4.3vw, 3.8rem);
}
.legal-card .button {
  margin-top: 10px;
}
.result-section h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.28;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

/* v2 UX/copy refinements */
.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-visual .floating-card {
  right: auto;
  max-width: 390px;
  width: min(58%, 390px);
  background: rgba(255, 252, 245, 0.62);
  backdrop-filter: blur(14px);
}

.hero-visual .floating-card p {
  font-size: 0.94rem;
}

.diagnosis-page-main .diagnosis-first {
  padding-top: 42px;
}

.diagnosis-head h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.28;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
}

.diagnosis-head {
  max-width: 860px;
}

.soft-info {
  padding-top: 24px;
}

.compact-note {
  max-width: 860px;
  margin-inline: auto;
}

.compact-note .eyebrow {
  margin-bottom: 6px;
}

.compact-note h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.compact-note p {
  margin: 0;
}

@media (max-width: 680px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0 12px;
  }

  .brand {
    width: 100%;
  }

  .nav-links {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    justify-content: flex-start;
    font-size: 0.82rem;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(45, 40, 33, 0.1);
    border-radius: 999px;
    background: rgba(255, 252, 245, 0.58);
  }

  .hero-visual .floating-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 10px 14px 14px;
    background: rgba(255, 252, 245, 0.72);
  }

  .diagnosis-page-main .diagnosis-first {
    padding-top: 28px;
  }

  .diagnosis-head h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}


/* v3: mobile nav toggle and hero order refinement */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(45, 40, 33, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.68);
  color: var(--text);
  padding: 9px 13px;
  cursor: pointer;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 12px;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before { top: 2px; }
.nav-toggle-icon::after { top: 9px; }

.site-header.is-nav-open .nav-toggle-icon::before {
  top: 5.5px;
  transform: rotate(38deg);
}

.site-header.is-nav-open .nav-toggle-icon::after {
  top: 5.5px;
  transform: rotate(-38deg);
}

.hero-grid-home {
  grid-template-areas:
    "copy visual"
    "cta visual";
}

.hero-grid-home .hero-copy-panel { grid-area: copy; }
.hero-grid-home .hero-visual { grid-area: visual; }
.hero-grid-home .hero-cta-panel { grid-area: cta; }
.hero-cta-panel .hero-actions { margin-bottom: 22px; }

.progress-wrap {
  scroll-margin-top: 92px;
}

@media (max-width: 680px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding: 10px;
    margin-top: 2px;
    border: 1px solid rgba(45, 40, 33, 0.1);
    border-radius: 22px;
    background: rgba(255, 252, 245, 0.88);
    box-shadow: 0 16px 38px rgba(61, 48, 32, 0.08);
    backdrop-filter: blur(16px);
  }

  .site-header.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(45, 40, 33, 0.08);
    background: rgba(255, 252, 245, 0.62);
  }

  .hero-grid-home {
    grid-template-areas:
      "copy"
      "visual"
      "cta";
  }

  .hero-copy-panel {
    display: block;
  }

  .hero-copy-panel .hero-lead {
    margin-bottom: 0;
  }

  .hero-cta-panel .hero-actions {
    margin-top: 2px;
    margin-bottom: 18px;
  }

  .hero-visual .floating-card {
    background: rgba(255, 252, 245, 0.58);
  }

  .progress-wrap {
    scroll-margin-top: 84px;
  }
}

/* v5: hero title hierarchy */
.hero-title {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  max-width: 980px;
}

.hero-title-sub,
.hero-title-main {
  display: block;
}

.hero-title-sub {
  color: rgba(45, 40, 33, 0.76);
  font-size: clamp(1.85rem, 4.2vw, 3.8rem);
  line-height: 1.34;
  letter-spacing: 0.045em;
}

.hero-title-main {
  color: rgba(34, 31, 27, 0.96);
  font-size: clamp(3.0rem, 6.6vw, 6.25rem);
  line-height: 1.08;
  letter-spacing: 0.018em;
}

@media (max-width: 680px) {
  .hero-title {
    gap: 8px;
    margin-bottom: 24px;
  }

  .hero-title-sub {
    font-size: clamp(1.62rem, 7.1vw, 2.05rem);
    line-height: 1.42;
    letter-spacing: 0.035em;
  }

  .hero-title-main {
    font-size: clamp(2.45rem, 10.4vw, 3.18rem);
    line-height: 1.14;
    letter-spacing: 0.012em;
  }
}

/* v7: Q6を外し、シーン×手がかりで休み方とアイテム棚を出し分け */
.section-lead {
  max-width: 760px;
  margin: -4px 0 18px;
  color: var(--muted);
  line-height: 1.9;
}

.scene-care-grid {
  display: grid;
  gap: 18px;
}

.scene-care-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(45, 40, 33, 0.08);
  background:
    radial-gradient(circle at 12% 0%, rgba(191, 166, 116, 0.16), transparent 20rem),
    rgba(255, 252, 245, 0.64);
  box-shadow: 0 18px 54px rgba(72, 55, 34, 0.07);
}

.scene-care-card h4 {
  margin: 4px 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.4vw, 1.7rem);
  line-height: 1.55;
}

.compact-ritual li {
  padding: 14px 16px 14px 56px;
  background: rgba(255, 253, 248, 0.72);
}

.compact-ritual li::before {
  left: 16px;
  top: 14px;
}

.signal-note,
.shelf-focus {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(45, 40, 33, 0.045);
  color: var(--muted);
  font-size: 0.92rem;
}

.signal-note strong,
.shelf-focus strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.signal-note ul,
.shelf-focus ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.signal-tags span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(143, 113, 80, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
}

.clue-section .plain-list + .signal-tags {
  margin-top: 16px;
}

.scene-shelf .shelf-focus {
  margin: -4px 0 16px;
}

@media (max-width: 680px) {
  .scene-care-card {
    padding: 18px;
    border-radius: 24px;
  }
  .compact-ritual li {
    padding-left: 54px;
  }
  .section-title-row {
    display: block;
  }
  .section-title-row .mini-note {
    margin-top: 8px;
  }
}

/* v9: 手がかりカードを場面・体のサインに整理 */
.clue-groups {
  display: grid;
  gap: 18px;
}

.clue-group + .clue-group {
  padding-top: 16px;
  border-top: 1px solid rgba(45, 40, 33, 0.08);
}

.clue-heading {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.clue-section .plain-list {
  gap: 10px;
}

/* v16: rest-type result refinements */
.scene-guide-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin-top:18px;
}
.scene-guide-card{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(79,65,52,.12);
  border-radius:22px;
  padding:20px;
  box-shadow:0 12px 28px rgba(50,35,24,.06);
}
.scene-guide-card h4{
  margin:6px 0 12px;
  font-size:1.02rem;
  line-height:1.55;
}
.filter-panel{
  display:grid;
  grid-template-columns:minmax(220px,.9fr) minmax(260px,1.4fr);
  gap:18px;
  align-items:start;
  padding:18px;
  margin:16px 0 20px;
  border:1px solid rgba(79,65,52,.12);
  border-radius:22px;
  background:rgba(255,255,255,.7);
}
.filter-panel h4{margin:4px 0 8px;}
.filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.filter-chip{
  border:1px solid rgba(79,65,52,.18);
  background:#fffaf3;
  border-radius:999px;
  padding:9px 13px;
  color:#4c4037;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.filter-chip:hover{transform:translateY(-1px);}
.filter-chip.is-active{
  background:#4c4037;
  color:#fffaf3;
  border-color:#4c4037;
}
.filter-chip.clear-filter{
  background:transparent;
  color:#6d5f52;
}
@media (max-width: 720px){
  .filter-panel{grid-template-columns:1fr;}
}


/* Article / media pages */
.article-page .hero-lead,
.article-body .lead {
  max-width: 760px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.article-body {
  padding: 42px;
  border-radius: 34px;
  background: rgba(255, 252, 245, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
}

.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin: 42px 0 14px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 28px 0 10px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  line-height: 1.95;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35em;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.article-meta span,
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

.article-callout {
  margin: 30px 0;
  padding: 24px;
  border-radius: 28px;
  background: rgba(244, 239, 230, 0.72);
  border: 1px solid var(--line);
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
}

.article-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.article-sidebar-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.82);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
}

.article-sidebar-card h3 {
  margin-top: 0;
}

.article-sidebar-card a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 252, 245, 0.84);
  border: 1px solid rgba(255,255,255,.64);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  min-height: 100%;
}

.article-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.article-card .article-tag {
  align-self: flex-start;
}

@media (max-width: 920px) {
  .article-layout,
  .article-list-grid {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .article-body {
    padding: 26px;
    border-radius: 30px;
  }
}
