/* ============================================
   studioratia.com Renewal - Main Stylesheet
   v1.0 / 2026-05-23
   ============================================ */

:root {
  --ratia-blue: #1C61AF;
  --ratia-blue-light: #5B8FB9;
  --ratia-blue-deep: #0F2A4A;
  --ratia-cyan: #1D9FB3;

  --rainbow-1: #C67008;
  --rainbow-2: #C59B0B;
  --rainbow-3: #6F9900;
  --rainbow-4: #058E6A;
  --rainbow-5: #1D9FB3;
  --rainbow-6: #1C61AF;
  --rainbow-7: #371282;

  --bg-base: #FBFCFD;
  --bg-mist: #E8EEF5;
  --bg-warm: #F5F1EB;
  --bg-beige: #E8E2DA;

  --text-primary: #0F2A4A;
  --text-body: #2D3E5C;
  --text-muted: #6B7A8F;
  --text-soft: #98A3B5;

  --border-soft: rgba(15, 42, 74, 0.08);
  --border-mid: rgba(15, 42, 74, 0.18);

  --ff-serif: 'Noto Serif JP', serif;
  --ff-sans: 'Noto Sans JP', sans-serif;
  --ff-tech: 'Montserrat', sans-serif;
  --ff-display: 'Cormorant Garamond', serif;

  --max-w: 600px;
  --section-py: clamp(72px, 12vw, 120px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  background: var(--bg-base);
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* PLACEHOLDER */
.ph {
  position: relative;
  background: linear-gradient(135deg, var(--bg-mist) 0%, var(--bg-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 2px;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 0.5px dashed rgba(255,255,255,0.6);
  border-radius: 1px;
  pointer-events: none;
}
.ph-label {
  position: relative;
  z-index: 1;
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(15,42,74,0.3);
  padding: 0 20px;
  line-height: 1.6;
}
.ph-label small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 4px;
}

/* RAINBOW */
.rainbow-bar { display: flex; height: 3px; width: 100%; }
.rainbow-bar span { flex: 1; }
.rainbow-bar span:nth-child(1) { background: var(--rainbow-1); }
.rainbow-bar span:nth-child(2) { background: var(--rainbow-2); }
.rainbow-bar span:nth-child(3) { background: var(--rainbow-3); }
.rainbow-bar span:nth-child(4) { background: var(--rainbow-4); }
.rainbow-bar span:nth-child(5) { background: var(--rainbow-5); }
.rainbow-bar span:nth-child(6) { background: var(--rainbow-6); }
.rainbow-bar span:nth-child(7) { background: var(--rainbow-7); }

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 252, 253, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border-soft);
  transition: all 0.3s ease;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ratia-blue-deep);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand small {
  font-family: var(--ff-tech);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 6px;
}
.menu-btn {
  background: transparent;
  border: 0.5px solid var(--border-mid);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.menu-btn:hover {
  background: var(--ratia-blue-deep);
  border-color: var(--ratia-blue-deep);
}
.menu-btn span {
  width: 14px;
  height: 1px;
  background: var(--ratia-blue-deep);
  transition: background 0.3s ease;
}
.menu-btn:hover span { background: white; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-base);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Very soft vignette only at top/bottom edges for text legibility,
       background photo itself remains fully visible */
    linear-gradient(180deg,
      rgba(15,42,74,0.18) 0%,
      transparent 25%,
      transparent 75%,
      rgba(15,42,74,0.22) 100%);
}
.hero-bg .ph {
  width: 100%; height: 100%;
  border-radius: 0;
  background: linear-gradient(160deg, #1C61AF 0%, #0F2A4A 50%, #371282 100%);
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px 20px;
}
.hero-bg .ph::before { border-color: rgba(255,255,255,0.12); inset: 12px; }
.hero-bg .ph-label {
  color: rgba(255,255,255,0.35);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-align: right;
  text-shadow: none;
}
.hero-bg .ph-label small { font-size: 8px; }
.hero-bg::after {
  /* V8: removed - background photo speaks for itself */
  content: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 0.5px;
  background: rgba(255,255,255,0.6);
}
.hero-catch {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.35;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-catch strong {
  font-weight: 500;
  background: linear-gradient(90deg, #FFFFFF 0%, #E8EEF5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-catch .em {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: #FFFFFF;
}
.hero-sub {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.08em;
  max-width: 460px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.hero-cta:hover {
  background: #FFFFFF;
  color: var(--ratia-blue-deep);
  transform: translateY(-2px);
}
.hero-cta-arrow {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s ease;
}
.hero-cta-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.hero-cta:hover .hero-cta-arrow { width: 32px; }
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.65);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  position: relative;
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.7) 15%,
    rgba(255,255,255,0.7) 85%,
    transparent 100%);
  background-size: 100% 200%;
  background-position: 0% 0%;
  animation: scrollFlow 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scrollFlow {
  0% { background-position: 0% -100%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { background-position: 0% 200%; opacity: 0; }
}

/* EMPATHY */
.empathy {
  padding: var(--section-py) 0;
  background: var(--bg-mist);
  position: relative;
}
.empathy::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ratia-blue) 50%, transparent);
  opacity: 0.2;
}
.empathy .section-inner {
  max-width: 640px;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--ratia-blue);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 0.5px;
  background: var(--ratia-blue);
  opacity: 0.5;
}
.section-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1.55;
  color: var(--ratia-blue-deep);
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}
.section-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--ratia-blue);
}
.empathy-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}
.empathy-card {
  background: #FFFFFF;
  border: 0.5px solid var(--border-soft);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}
.empathy-card:hover {
  border-color: var(--ratia-cyan);
  transform: translateX(4px);
}
.empathy-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--ratia-cyan) 0%, var(--ratia-blue) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  position: relative;
  box-shadow: 0 2px 8px rgba(29,159,179,0.25);
}
.empathy-check::after {
  content: "";
  width: 6px; height: 11px;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(45deg) translate(-1px, -1px);
}
.empathy-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  letter-spacing: 0.03em;
}
.empathy-conclusion {
  background: var(--ratia-blue-deep);
  color: rgba(255,255,255,0.95);
  padding: 28px 24px;
  border-radius: 2px;
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.95;
  text-align: center;
  position: relative;
}
.empathy-conclusion strong {
  font-weight: 500;
  color: #FFFFFF;
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

/* ANALYSIS */
.analysis {
  padding: var(--section-py) 0;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}
.analysis-header {
  text-align: center;
  margin-bottom: 56px;
}
.analysis-header .section-eyebrow {
  justify-content: center;
}
.analysis-header .section-eyebrow::before { display: none; }
.analysis-header .section-eyebrow::after {
  content: "";
  width: 24px;
  height: 0.5px;
  background: var(--ratia-blue);
  opacity: 0.5;
  margin-left: 12px;
}
.science-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}
.science-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ratia-blue-light);
  opacity: 0.6;
}
.science-dots span:nth-child(1) { background: var(--rainbow-1); opacity: 1; }
.science-dots span:nth-child(3) { background: var(--rainbow-2); opacity: 1; }
.science-dots span:nth-child(5) { background: var(--rainbow-3); opacity: 1; }
.science-dots span:nth-child(7) { background: var(--rainbow-4); opacity: 1; }
.science-dots span:nth-child(9) { background: var(--rainbow-5); opacity: 1; }
.science-dots span:nth-child(11) { background: var(--rainbow-6); opacity: 1; }
.science-dots span:nth-child(13) { background: var(--rainbow-7); opacity: 1; }
.analysis-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(20px, 4.8vw, 26px);
  line-height: 1.65;
  color: var(--ratia-blue-deep);
  margin-bottom: 12px;
}
.analysis-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--ratia-blue);
}
.analysis-subtitle {
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.analysis-cards {
  display: grid;
  gap: 32px;
  align-items: stretch;
}
.analysis-card {
  background: #FFFFFF;
  border: 0.5px solid var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.analysis-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ratia-blue-deep) 0%, var(--ratia-blue) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.analysis-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.card-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: 0.7;
}
.card-1-overlay { background: linear-gradient(135deg, rgba(15,42,74,0.7) 0%, rgba(28,97,175,0.5) 100%); }
.card-2-overlay { background: linear-gradient(135deg, rgba(5,142,106,0.6) 0%, rgba(29,159,179,0.5) 100%); }
.card-3-overlay { background: linear-gradient(135deg, rgba(55,18,130,0.6) 0%, rgba(28,97,175,0.5) 100%); }
.card-scan-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 3;
  font-family: var(--ff-tech);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 4px 10px;
  background: rgba(15,42,74,0.5);
  backdrop-filter: blur(4px);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 2px;
}
.analysis-card-img.card-2 {
  background: linear-gradient(135deg, #058E6A 0%, #1D9FB3 100%);
}
.analysis-card-img.card-3 {
  background: linear-gradient(135deg, #371282 0%, #1C61AF 100%);
}
.analysis-card-img .ph { background: transparent; height: 100%; border-radius: 0; }
.analysis-card-img .ph::before { border-color: rgba(255,255,255,0.2); }
.analysis-card-img .ph-label { color: rgba(255,255,255,0.8); }
.analysis-card-body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.analysis-card-num {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ratia-blue);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.analysis-card-label {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.analysis-card-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ratia-blue-deep);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.analysis-card-body > p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-body);
  margin-bottom: 24px;
}
.analysis-card-voice-wrap {
  margin-top: auto;
  padding-top: 20px;
  border-top: 0.5px solid var(--border-soft);
}
.analysis-card-voice-label {
  font-family: var(--ff-display);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--ratia-cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.analysis-card-voice {
  border-left: 2px solid var(--ratia-blue-light);
  padding-left: 16px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

/* JANUS */
.janus {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, #0F2A4A 0%, #1C61AF 50%, #371282 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.janus::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(91,143,185,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.janus-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.janus-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 0.5px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  font-family: var(--ff-tech);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin-bottom: 28px;
}
.janus-img {
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: 36px;
  position: relative;
  border: 0.5px solid rgba(255,255,255,0.2);
  background:
    radial-gradient(circle at 50% 50%, rgba(91,143,185,0.4) 0%, transparent 70%),
    linear-gradient(135deg, #0F2A4A 0%, #371282 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.janus-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}
.janus-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(15,42,74,0.0) 0%,
    rgba(15,42,74,0.0) 60%,
    rgba(15,42,74,0.35) 100%);
  pointer-events: none;
}
.janus-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.025) 24px, rgba(255,255,255,0.025) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,0.025) 24px, rgba(255,255,255,0.025) 25px);
  pointer-events: none;
}
.janus-scan-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  font-family: var(--ff-tech);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  background: rgba(15,42,74,0.6);
  backdrop-filter: blur(6px);
  border: 0.5px solid rgba(91,143,185,0.4);
  border-radius: 2px;
}
.janus-img .ph-label {
  color: rgba(255,255,255,0.75);
  z-index: 1;
}
.janus-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.65;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.janus-title strong {
  font-weight: 500;
  display: block;
  margin-top: 8px;
}
.janus-text {
  font-size: 13.5px;
  line-height: 2.05;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}
.code-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
}
.code-dots span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.code-dots span::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
}
.code-dots .blue::before { background: #5B8FB9; box-shadow: 0 0 8px rgba(91,143,185,0.6); }
.code-dots .red::before { background: #D85A30; box-shadow: 0 0 8px rgba(216,90,48,0.6); }
.code-dots .gold::before { background: #C59B0B; box-shadow: 0 0 8px rgba(197,155,11,0.6); }

/* EXPERTS */
.experts {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, #050B18 0%, #0F2A4A 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.experts::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    var(--rainbow-1), var(--rainbow-2), var(--rainbow-3),
    var(--rainbow-4), var(--rainbow-5), var(--rainbow-6), var(--rainbow-7));
  opacity: 0.35;
}
.experts .section-eyebrow {
  color: var(--ratia-cyan);
}
.experts .section-eyebrow::before {
  background: var(--ratia-cyan);
}
.experts .section-title {
  color: #FFFFFF;
  margin-bottom: 24px;
}
.experts .section-title em {
  color: var(--ratia-cyan);
  background: linear-gradient(90deg, var(--ratia-cyan) 0%, #5B8FB9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.experts-lead {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  margin-bottom: 40px;
}
.experts-lead em {
  font-style: normal;
  font-weight: 500;
  color: var(--ratia-cyan);
}
.experts-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 8px 0 24px;
  margin-bottom: 16px;
}
.experts-scroll::-webkit-scrollbar { height: 4px; }
.experts-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.experts-scroll::-webkit-scrollbar-thumb { background: rgba(91,143,185,0.4); border-radius: 2px; }
.experts-track {
  display: flex;
  gap: 16px;
  padding: 0 24px;
  width: max-content;
}
.expert-card {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: center;
  border-radius: 4px;
  overflow: hidden;
  background: #0A1628;
  border: 0.5px solid rgba(91,143,185,0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.expert-card:hover {
  transform: translateY(-4px);
  border-color: var(--ratia-cyan);
}
.expert-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.experts-hint {
  text-align: center;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-top: 8px;
}

/* VOICES */
.voices {
  padding: var(--section-py) 0;
  background: var(--bg-warm);
  position: relative;
}
.voices-header {
  margin-bottom: 48px;
}
.voices-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(19px, 4.6vw, 23px);
  line-height: 1.7;
  color: var(--ratia-blue-deep);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.voices-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}
.voices-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}
.voice-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px 26px 24px;
  border-radius: 24px 8px 24px 8px;
  position: relative;
  border: 0.5px solid rgba(255,255,255,0.8);
  box-shadow:
    0 1px 2px rgba(15,42,74,0.04),
    0 8px 24px rgba(15,42,74,0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.voice-card:nth-child(2n) {
  border-radius: 8px 24px 8px 24px;
}
.voice-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(15,42,74,0.06),
    0 16px 32px rgba(15,42,74,0.08);
}
.voice-card::before {
  content: """;
  position: absolute;
  top: 4px; left: 22px;
  font-family: var(--ff-display);
  font-size: 64px;
  line-height: 1;
  color: var(--ratia-blue-light);
  opacity: 0.25;
  font-style: italic;
}
.voice-text {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-primary);
  margin-bottom: 18px;
  position: relative;
  padding-top: 18px;
  letter-spacing: 0.04em;
}
.voice-meta {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.voice-meta::before {
  content: "";
  width: 16px;
  height: 0.5px;
  background: var(--ratia-blue);
}
.voices-more {
  text-align: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ratia-blue);
  letter-spacing: 0.05em;
}

/* SALON */
.salon {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}
.salon-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 0.5px solid var(--border-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.salon-tabs::-webkit-scrollbar { display: none; }
.salon-tab {
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: var(--text-body);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
  opacity: 0.55;
}
.salon-tab:hover { opacity: 0.85; }
.salon-tab.active {
  color: var(--ratia-blue);
  opacity: 1;
}
.salon-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.5px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--ratia-blue);
}
.shop-list {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}
.shop-item {
  background: #FFFFFF;
  border: 0.5px solid var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 100px 1fr;
}
.shop-img {
  background: linear-gradient(135deg, var(--ratia-blue-light) 0%, var(--ratia-blue) 100%);
  min-height: 100px;
  position: relative;
  overflow: hidden;
}
.shop-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.shop-img .ph {
  height: 100%;
  background: transparent;
  border-radius: 0;
}
.shop-img .ph::before { border-color: rgba(255,255,255,0.3); }
.shop-img .ph-label { font-size: 9px; color: rgba(255,255,255,0.9); }
.shop-info { padding: 14px 16px; }
.shop-name {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--ratia-blue-deep);
  margin-bottom: 4px;
}
.shop-addr {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.promise {
  background: var(--bg-mist);
  border: 0.5px solid var(--border-soft);
  padding: 28px 24px;
  border-radius: 2px;
  position: relative;
}
.promise::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--rainbow-1), var(--rainbow-2), var(--rainbow-3),
    var(--rainbow-4), var(--rainbow-5), var(--rainbow-6), var(--rainbow-7));
}
.promise-label {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ratia-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.promise-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ratia-blue-deep);
  margin-bottom: 14px;
}
.promise-text {
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-body);
}

/* FINAL CTA */
.final-cta {
  padding: var(--section-py) 0;
  background: var(--ratia-blue-deep);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(91,143,185,0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(55,18,130,0.3) 0%, transparent 50%);
}
.final-cta::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--rainbow-1), var(--rainbow-2), var(--rainbow-3),
    var(--rainbow-4), var(--rainbow-5), var(--rainbow-6), var(--rainbow-7));
}
.final-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  text-align: center;
}
.final-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.final-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(24px, 6.5vw, 36px);
  line-height: 1.55;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}
.final-title strong {
  font-weight: 500;
}
.plan-card {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  padding: 32px 24px;
  margin-bottom: 32px;
  text-align: left;
}
.plan-label {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.plan-name {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: #FFFFFF;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.plan-includes {
  font-size: 12px;
  line-height: 1.95;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
}
.plan-includes li {
  list-style: none;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.plan-includes li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 0.5px;
  background: var(--ratia-cyan);
}
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.plan-price-old {
  font-family: var(--ff-display);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}
.plan-price-new {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}
.plan-price-new small {
  font-size: 12px;
  font-family: var(--ff-tech);
  letter-spacing: 0.15em;
  margin-left: 4px;
  color: rgba(255,255,255,0.7);
}
.final-btn {
  display: block;
  width: 100%;
  padding: 22px 24px;
  background: #FFFFFF;
  color: var(--ratia-blue-deep);
  font-family: var(--ff-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  margin-bottom: 16px;
}
.final-btn:hover {
  background: var(--ratia-cyan);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.final-btn small {
  display: block;
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ratia-blue);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.final-btn:hover small { color: rgba(255,255,255,0.9); }
.final-note {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/* FOOTER */
.site-footer {
  background: #050B18;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  font-size: 12px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.footer-brand small {
  display: block;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.footer-tag {
  font-family: var(--ff-serif);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
}
.footer-rainbow {
  display: flex;
  height: 2px;
  width: 80px;
  margin: 0 auto 32px;
}
.footer-rainbow span { flex: 1; }
.footer-rainbow span:nth-child(1) { background: var(--rainbow-1); }
.footer-rainbow span:nth-child(2) { background: var(--rainbow-2); }
.footer-rainbow span:nth-child(3) { background: var(--rainbow-3); }
.footer-rainbow span:nth-child(4) { background: var(--rainbow-4); }
.footer-rainbow span:nth-child(5) { background: var(--rainbow-5); }
.footer-rainbow span:nth-child(6) { background: var(--rainbow-6); }
.footer-rainbow span:nth-child(7) { background: var(--rainbow-7); }
.footer-copyright {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* DEMO BANNER */
.demo-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15, 42, 74, 0.95);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 8px 16px;
  z-index: 200;
  text-transform: uppercase;
  border-top: 1px solid var(--ratia-cyan);
}
.demo-banner b {
  color: var(--ratia-cyan);
  font-weight: 500;
}

/* TABLET / DESKTOP */
@media (min-width: 768px) {
  .analysis-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .voices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Safety: if JS fails / is disabled, reveal items must still show.
   The .no-js class is added to <html> if JS is unavailable.
   Also, prefers-reduced-motion users skip the animation. */
html.no-js .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ============================================
   PAGE: CONCEPT  (append to style.css)
   v6.0 / 2026-05-23
   下層ページ共通パーツも兼ねる：
   - .page-hero / .breadcrumb / .section-head
   ============================================ */


/* ========== PAGE HERO (共通：下層ページのヒーロー) ========== */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.05);
}
.page-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,42,74,0.55) 0%,
      rgba(15,42,74,0.35) 40%,
      rgba(15,42,74,0.75) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  text-align: center;
  color: #fff;
}
.page-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.page-hero-eyebrow .line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.55);
}
.page-hero-eyebrow .en {
  font-family: var(--ff-tech);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.95);
}
.page-hero-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(26px, 6.8vw, 38px);
  line-height: 1.55;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(15,42,74,0.4);
}
.page-hero-title em {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  color: #FFE9A8;
  background: linear-gradient(120deg, #FFD56F 0%, #FFE9A8 50%, #FFD56F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero-lead {
  font-family: var(--ff-serif);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 2;
  color: rgba(255,255,255,0.92);
}
.page-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
}
.page-hero-scroll .en {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.4em;
  writing-mode: vertical-rl;
}
.page-hero-scroll .bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent);
  animation: scrollBar 2.2s ease-in-out infinite;
}
@keyframes scrollBar {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ========== BREADCRUMB (共通) ========== */
.breadcrumb {
  background: var(--bg-mist);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.breadcrumb ol {
  max-width: var(--max-w);
  margin: 0 auto;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--text-soft);
  font-weight: 300;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--ratia-blue); }
.breadcrumb span { color: var(--text-primary); font-weight: 500; }


/* ========== SECTION HEAD (共通) ========== */
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .en {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--ratia-cyan);
  margin-bottom: 18px;
  position: relative;
  padding: 0 24px;
}
.section-head .en::before,
.section-head .en::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--ratia-cyan);
  opacity: 0.5;
}
.section-head .en::before { left: 0; }
.section-head .en::after { right: 0; }
.section-head .ja {
  font-family: var(--ff-serif);
  font-size: clamp(20px, 5.2vw, 26px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-head .section-lead {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 2;
  color: var(--text-muted);
}


/* ========== PHILOSOPHY (5 cards) ========== */
.philosophy {
  padding: var(--section-py) 24px;
  background: var(--bg-base);
}
.philosophy-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.phil-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.phil-card {
  position: relative;
  padding: 40px 28px 36px;
  background: #fff;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(15,42,74,0.04),
    0 14px 40px -22px rgba(15,42,74,0.18);
  overflow: hidden;
}
.phil-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--rainbow-1) 0%,
    var(--rainbow-2) 14%,
    var(--rainbow-3) 28%,
    var(--rainbow-4) 43%,
    var(--rainbow-5) 57%,
    var(--rainbow-6) 71%,
    var(--rainbow-7) 100%);
  opacity: 0.5;
}
.phil-card--highlight {
  background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
  box-shadow:
    0 1px 0 rgba(28,97,175,0.08),
    0 18px 50px -20px rgba(28,97,175,0.25);
}
.phil-card--highlight::before { opacity: 1; height: 3px; }
.phil-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.phil-num .en {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--ratia-blue);
  letter-spacing: 0.02em;
}
.phil-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ratia-blue-light), transparent);
  opacity: 0.4;
}
.phil-lead {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ratia-cyan);
  margin-bottom: 14px;
  line-height: 1.8;
}
.phil-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}
.phil-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--text-body);
}
.phil-text + .phil-text { margin-top: 14px; }


/* ========== MENU CARDS (6 grid) ========== */
.menu-cards {
  padding: var(--section-py) 24px;
  background: linear-gradient(180deg, var(--bg-mist) 0%, var(--bg-base) 100%);
}
.menu-cards-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.menu-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(15,42,74,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15,42,74,0.35);
}
.menu-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-mist);
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.menu-card:hover .menu-card-img img { transform: scale(1.06); }
.menu-card-body {
  padding: 18px 14px 22px;
  text-align: center;
}
.menu-card-num {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ratia-blue);
  line-height: 1;
  margin-bottom: 6px;
}
.menu-card-cat {
  display: block;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.menu-card-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}


/* ========== &Ratia PRODUCT ========== */
.andratia {
  padding: var(--section-py) 24px;
  background: var(--bg-base);
}
.andratia-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.andratia-img {
  margin: 0 -8px 56px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  box-shadow: 0 18px 50px -22px rgba(15,42,74,0.3);
}
.andratia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.andratia-block {
  margin-bottom: 48px;
}
.andratia-block:last-child { margin-bottom: 0; }
.andratia-h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 24px;
  position: relative;
  padding-left: 18px;
}
.andratia-h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--ratia-cyan), var(--ratia-blue));
  border-radius: 2px;
}
.andratia-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 14px;
}
.andratia-text em {
  font-style: normal;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ratia-blue);
  padding: 0 4px;
}


/* ========== 3 AXIS LIFESTYLE ========== */
.axis {
  padding: var(--section-py) 24px;
  background:
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-mist) 100%);
}
.axis-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.axis-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.axis-card {
  background: #fff;
  border-radius: 4px;
  padding: 32px 24px 30px;
  box-shadow: 0 10px 32px -22px rgba(15,42,74,0.25);
  position: relative;
  overflow: hidden;
}
.axis-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right,
    rgba(29,159,179,0.08) 0%,
    transparent 70%);
  pointer-events: none;
}
.axis-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.axis-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ratia-cyan), var(--ratia-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
}
.axis-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.axis-title .en {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ratia-blue);
}
.axis-title .ja {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.axis-tag {
  font-family: var(--ff-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ratia-cyan);
  margin-bottom: 14px;
  padding-left: 2px;
}
.axis-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--text-body);
}


/* ========== overrides for concept page CTA (final-cta already exists)
   ※ TOPと同じ .final-cta クラスを流用するため、上書きは不要。
   もしConcept特有の調整が必要な場合のみ .page-concept .final-cta { } で追加。
============================================ */

/* ============================================
   v7.0 ADDITIONS (append to v6 style.css)
   - Global Overlay Menu
   - Traial page (course tabs + flow)
   - Salon page (store accordion + staff)
   - Stub page ("under design")
   ============================================ */


/* ========== GLOBAL OVERLAY MENU ========== */
body.menu-locked { overflow: hidden; }

/* Hamburger button -> X transition */
.menu-btn {
  position: relative;
  z-index: 101;
}
.menu-btn span {
  transition: transform 0.4s ease, opacity 0.3s ease, background 0.3s ease;
}
.menu-btn.is-open span {
  background: #fff;
}
.menu-btn.is-open span:first-child {
  transform: translateY(5px) rotate(45deg);
}
.menu-btn.is-open span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* Overlay */
.global-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(29,159,179,0.18), transparent 60%),
    linear-gradient(160deg,
      var(--ratia-blue-deep) 0%,
      #1a3560 50%,
      var(--ratia-blue-deep) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  display: flex;
  flex-direction: column;
  padding: 100px 24px 40px;
  overflow-y: auto;
}
.global-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.global-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--rainbow-1), var(--rainbow-2), var(--rainbow-3),
    var(--rainbow-4), var(--rainbow-5), var(--rainbow-6), var(--rainbow-7));
}

.global-menu-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-eyebrow {
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  text-align: center;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}
.menu-list li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.global-menu.is-open .menu-list li {
  opacity: 1;
  transform: translateY(0);
}
.global-menu.is-open .menu-list li:nth-child(1) { transition-delay: 0.15s; }
.global-menu.is-open .menu-list li:nth-child(2) { transition-delay: 0.22s; }
.global-menu.is-open .menu-list li:nth-child(3) { transition-delay: 0.29s; }
.global-menu.is-open .menu-list li:nth-child(4) { transition-delay: 0.36s; }
.global-menu.is-open .menu-list li:nth-child(5) { transition-delay: 0.43s; }
.global-menu.is-open .menu-list li:nth-child(6) { transition-delay: 0.50s; }

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: padding 0.3s ease;
}
.menu-list a:hover { padding-left: 8px; }
.menu-list a:hover .menu-num { color: var(--ratia-cyan); }
.menu-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  width: 32px;
  transition: color 0.3s ease;
}
.menu-ja {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.1em;
  flex: 1;
}
.menu-en {
  font-family: var(--ff-tech);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.menu-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.menu-footer-tag {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.menu-sublinks {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.menu-sublinks a {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  transition: color 0.2s;
}
.menu-sublinks a:hover { color: var(--ratia-cyan); }
.menu-rainbow {
  display: flex;
  height: 2px;
  width: 60%;
  margin: 0 auto 16px;
  opacity: 0.6;
}
.menu-rainbow span { flex: 1; }
.menu-rainbow span:nth-child(1) { background: var(--rainbow-1); }
.menu-rainbow span:nth-child(2) { background: var(--rainbow-2); }
.menu-rainbow span:nth-child(3) { background: var(--rainbow-3); }
.menu-rainbow span:nth-child(4) { background: var(--rainbow-4); }
.menu-rainbow span:nth-child(5) { background: var(--rainbow-5); }
.menu-rainbow span:nth-child(6) { background: var(--rainbow-6); }
.menu-rainbow span:nth-child(7) { background: var(--rainbow-7); }
.menu-copyright {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
}


/* ========== TRAIAL PAGE ========== */
.traial-intro {
  padding: var(--section-py) 24px;
  background: var(--bg-base);
}
.traial-intro-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.traial-intro-en {
  font-family: var(--ff-tech);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ratia-cyan);
  text-align: center;
  margin-bottom: 18px;
}
.traial-intro-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.2vw, 26px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
}
.traial-intro-lead {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 36px;
}

/* Course tabs */
.course-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,252,253,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.course-tabs::-webkit-scrollbar { display: none; }
.course-tabs-inner {
  display: flex;
  gap: 8px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}
.course-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.course-tab:hover {
  border-color: var(--ratia-cyan);
  color: var(--ratia-blue);
}
.course-tab.is-active {
  background: var(--ratia-blue);
  border-color: var(--ratia-blue);
  color: #fff;
  font-weight: 500;
}

/* Course panels */
.course-panel {
  display: none;
  padding: var(--section-py) 24px;
}
.course-panel.is-active {
  display: block;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.course-panel:nth-of-type(odd) { background: var(--bg-base); }
.course-panel:nth-of-type(even) { background: var(--bg-mist); }
.course-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.course-hero {
  margin-bottom: 36px;
  text-align: center;
}
.course-hero-cat {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ratia-cyan);
  margin-bottom: 14px;
  padding: 4px 14px;
  border: 1px solid var(--ratia-cyan);
  border-radius: 99px;
}
.course-hero-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(22px, 5.6vw, 28px);
  line-height: 1.55;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.course-tag {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-body);
}

/* Recommend blocks */
.course-recommends {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.recommend {
  background: #fff;
  padding: 24px 22px;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 6px 24px -16px rgba(15,42,74,0.18);
}
.recommend-label {
  display: inline-block;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ratia-blue);
  margin-bottom: 10px;
}
.recommend-label .num {
  display: inline-block;
  margin-left: 2px;
  font-size: 22px;
  font-weight: 500;
}
.recommend p {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--text-body);
}
.recommend p strong {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Treatment flow */
.flow-head {
  text-align: center;
  margin-bottom: 28px;
}
.flow-head-en {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--ratia-cyan);
  margin-bottom: 8px;
}
.flow-head-ja {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 48px;
}
.flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px -16px rgba(15,42,74,0.2);
}
.flow-step-img {
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: 1 / 1;
  position: relative;
  background: var(--bg-mist);
  overflow: hidden;
}
.flow-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.flow-step:hover .flow-step-img img { transform: scale(1.05); }
.flow-step-num {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ratia-cyan), var(--ratia-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(15,42,74,0.3);
}
.flow-step-body {
  flex: 1;
  padding: 14px 14px 14px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-step-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.flow-step-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text-body);
}
/* If step has no image (fallback), use number-only style */
.flow-step.no-img {
  background: transparent;
  box-shadow: none;
  align-items: flex-start;
  padding: 0;
}
.flow-step.no-img .flow-step-img-fallback {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ratia-cyan), var(--ratia-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
}
.flow-step.no-img .flow-step-body {
  padding: 4px 0 0;
}

/* Course CTA box */
.course-cta {
  background: linear-gradient(135deg, var(--ratia-blue-deep) 0%, #1a3560 100%);
  border-radius: 4px;
  padding: 32px 24px 36px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.course-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--rainbow-3), var(--rainbow-4), var(--rainbow-5), var(--rainbow-6));
}
.course-cta-time {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  padding: 4px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 99px;
}
.course-cta-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.course-cta-old {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
}
.course-cta-arrow {
  font-family: var(--ff-tech);
  color: var(--ratia-cyan);
  font-size: 14px;
}
.course-cta-now {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 36px;
  background: linear-gradient(120deg, #FFD56F, #FFE9A8, #FFD56F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.course-cta-tax {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
}
.course-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: #fff;
  color: var(--ratia-blue-deep);
  font-family: var(--ff-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border-radius: 99px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.course-cta-btn em { font-style: normal; color: var(--ratia-cyan); }
.course-cta-note {
  margin-top: 14px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}


/* ========== SALON PAGE ========== */
.salon-intro {
  padding: var(--section-py) 24px;
  background: var(--bg-base);
  text-align: center;
}
.salon-intro-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.salon-intro-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 36px;
}

/* Store quick nav (anchors) */
.store-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-nav a {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-body);
  transition: all 0.3s ease;
}
.store-nav a:hover {
  background: var(--ratia-blue);
  border-color: var(--ratia-blue);
  color: #fff;
}

/* Store cards */
.stores {
  padding: 24px 24px var(--section-py);
  background: var(--bg-base);
}
.stores-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.store-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px -20px rgba(15,42,74,0.2);
}
.store-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-mist);
}
.store-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-head {
  padding: 24px 22px 20px;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: background 0.3s;
}
.store-head:hover { background: var(--bg-base); }
.store-head::after {
  content: "+";
  position: absolute;
  top: 24px;
  right: 22px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-tech);
  font-weight: 300;
  font-size: 16px;
  color: var(--ratia-blue);
  transition: transform 0.3s ease;
}
.store-card.is-open .store-head::after {
  content: "−";
  transform: rotate(180deg);
}
.store-name {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.store-name-en {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ratia-cyan);
  margin-bottom: 12px;
}
.store-concept {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--text-body);
  padding-right: 40px;
}

.store-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
.store-card.is-open .store-body { max-height: 4000px; }

.store-info {
  padding: 4px 22px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.store-info-row {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
}
.store-info-label {
  flex-shrink: 0;
  width: 70px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ratia-cyan);
  padding-top: 3px;
}
.store-info-value {
  flex: 1;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-body);
}
.store-info-value a {
  color: var(--ratia-blue);
  text-decoration: underline;
}

.store-socials {
  display: flex;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.store-social {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--bg-mist);
  border-radius: 4px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-body);
  text-transform: uppercase;
  transition: background 0.3s;
}
.store-social:hover {
  background: var(--ratia-blue);
  color: #fff;
}

.store-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0;
}
.store-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.store-staff {
  padding: 28px 22px 32px;
}
.store-staff-head {
  font-family: var(--ff-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-staff-head::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--ratia-cyan);
}
.staff-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin: 0 -22px;
  padding-left: 22px;
  padding-right: 22px;
}
.staff-list::-webkit-scrollbar {
  height: 4px;
}
.staff-list::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 2px;
}
.staff-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-base);
  border-radius: 4px;
  overflow: hidden;
}
.staff-card-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-mist);
}
.staff-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-card-body {
  padding: 14px 14px 18px;
}
.staff-card-name {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.staff-card-role {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ratia-cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.staff-card-bio {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ========== STUB (under design) ========== */
.stub {
  padding: var(--section-py) 24px;
  background: var(--bg-base);
}
.stub-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.stub-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border: 1px solid var(--ratia-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.stub-icon::before,
.stub-icon::after {
  content: "";
  position: absolute;
  background: var(--ratia-cyan);
}
.stub-icon::before {
  width: 1px;
  height: 24px;
  animation: stubPulse 2s ease-in-out infinite;
}
.stub-icon::after {
  width: 24px;
  height: 1px;
  animation: stubPulse 2s ease-in-out infinite 0.4s;
}
@keyframes stubPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.stub-en {
  font-family: var(--ff-tech);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ratia-cyan);
  margin-bottom: 18px;
}
.stub-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.2vw, 26px);
  line-height: 1.65;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.stub-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 40px;
}
.stub-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.stub-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--ratia-blue);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ratia-blue);
  transition: all 0.3s ease;
}
.stub-link:hover {
  background: var(--ratia-blue);
  color: #fff;
}
.stub-link em { font-style: normal; }


/* ============================================
   V8 ADDITIONS (TOP page refinement)
   v8.0 / 2026-05-23
   - Frosted-glass board on HERO
   - Light-line scroll cue
   - Our Promise section
   - 3 Cases: horizontal swipe carousel + modal
   - Salon Care Menu (accordion)
   - Beauty Letters serif + delayed entry
   ============================================ */


/* ----- HERO: frosted board (V8 §1) ----- */
.hero-board {
  position: relative;
  padding: 32px 26px 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 18px 50px -20px rgba(15,42,74,0.25),
    0 8px 24px -12px rgba(15,42,74,0.15);
}
/* board adjustments: re-color text on light background */
.hero-board .hero-eyebrow {
  color: var(--ratia-blue);
  text-shadow: none;
}
.hero-board .hero-eyebrow::before {
  background: var(--ratia-blue);
  opacity: 0.5;
}
.hero-board .hero-catch {
  color: var(--text-primary);
  text-shadow:
    0 1px 1px rgba(255,255,255,0.6),
    0 0 18px rgba(255,255,255,0.4);
}
.hero-board .hero-catch strong {
  color: var(--ratia-blue);
}
.hero-board .hero-catch .em {
  color: var(--ratia-blue-deep);
  background-image:
    linear-gradient(transparent 65%, rgba(29,159,179,0.18) 65%, rgba(29,159,179,0.18) 90%, transparent 90%);
}
.hero-board .hero-sub {
  color: var(--text-body);
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
.hero-board .hero-sub em {
  color: var(--ratia-blue);
  font-style: normal;
}
.hero-board .hero-cta {
  background: var(--ratia-blue-deep);
  color: #fff;
  border: none;
}
.hero-board .hero-cta:hover {
  background: var(--ratia-blue);
}


/* ----- HERO: light-line scroll cue (V8 §1) ----- */
.hero-scroll-light {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero-scroll-light .en {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.45em;
  color: rgba(15,42,74,0.55);
  writing-mode: vertical-rl;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}
.hero-scroll-light .line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(15,42,74,0.08);
}
.hero-scroll-light .line::after {
  content: "";
  position: absolute;
  top: -56px;
  left: 0;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(29,159,179,0.0) 10%,
    rgba(29,159,179,0.9) 50%,
    rgba(28,97,175,0.0) 90%,
    transparent 100%);
  animation: scrollLight 2.2s ease-in-out infinite;
}
@keyframes scrollLight {
  0%   { top: -56px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 56px;  opacity: 0; }
}


/* ----- OUR PROMISE (V8 §2) ----- */
.promise {
  padding: var(--section-py) 24px;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-warm) 100%);
  position: relative;
  overflow: hidden;
}
.promise::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--ratia-cyan), transparent);
  opacity: 0.4;
}
.promise-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.promise-en {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--ratia-cyan);
  margin-bottom: 22px;
  padding: 0 18px;
  position: relative;
}
.promise-en::before,
.promise-en::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--ratia-cyan);
  opacity: 0.5;
}
.promise-en::before { left: -4px; }
.promise-en::after { right: -4px; }
.promise-headline {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 36px;
}
.promise-body {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: var(--text-body);
  text-align: left;
  padding: 28px 24px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(28,97,175,0.08);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  position: relative;
}
.promise-body::before,
.promise-body::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--ratia-cyan);
  opacity: 0.5;
}
.promise-body::before {
  top: 10px; left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.promise-body::after {
  bottom: 10px; right: 10px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}
.promise-body em {
  font-style: normal;
  color: var(--ratia-blue);
  font-weight: 500;
}
.promise-body strong {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 15.5px;
  display: block;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  line-height: 1.85;
}


/* ----- 3 REAL CASES: carousel + modal (V8 §3) ----- */
.cases-carousel {
  margin: 0 -24px;
  padding: 8px 24px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cases-carousel::-webkit-scrollbar { display: none; }
.cases-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.case-card {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: calc(100vw - 70px);
  max-width: 320px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 40px -22px rgba(15,42,74,0.28);
  display: flex;
  flex-direction: column;
}
.case-card-graph {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--ratia-blue-deep) 0%, #1a3560 50%, var(--ratia-cyan) 100%);
  position: relative;
  overflow: hidden;
}
.case-card-graph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(29,159,179,0.3), transparent 60%);
}
.case-card-graph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.case-card-graph-num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 32px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
  line-height: 1;
}
.case-card-graph-tag {
  position: absolute;
  top: 16px;
  right: 14px;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.8);
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 99px;
}
.case-card-graph-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.case-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-card-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.65;
  color: var(--text-primary);
}
.case-card-summary {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-body);
}
.case-card-btn {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ratia-blue);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ratia-blue);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.case-card-btn:hover {
  background: var(--ratia-blue);
  color: #fff;
}
.case-card-btn::before { content: "+"; font-weight: 300; font-size: 14px; }
.case-card-btn.is-active { background: var(--ratia-blue); color: #fff; }
/* Carousel hint dots */
.cases-hint {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-soft);
}
.cases-hint .arrow {
  display: inline-block;
  animation: hintSwipe 2.5s ease-in-out infinite;
}
@keyframes hintSwipe {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(8px); opacity: 1; }
}

/* Modal */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15,42,74,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.case-modal.is-open {
  display: flex;
  opacity: 1;
}
.case-modal-dialog {
  background: #fff;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  overflow-y: auto;
  position: relative;
  padding: 36px 26px 30px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.case-modal.is-open .case-modal-dialog { transform: translateY(0); }
.case-modal-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--rainbow-3), var(--rainbow-4), var(--rainbow-5), var(--rainbow-6));
}
.case-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: var(--ff-tech);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.case-modal-close:hover {
  background: var(--ratia-blue-deep);
  color: #fff;
  border-color: var(--ratia-blue-deep);
}
.case-modal-en {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--ratia-cyan);
  margin-bottom: 10px;
}
.case-modal-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.case-modal-block {
  margin-bottom: 22px;
}
.case-modal-block-label {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ratia-cyan);
  margin-bottom: 8px;
}
.case-modal-block-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--text-body);
}
.case-modal-voice {
  margin-top: 6px;
  padding: 16px 18px;
  background: var(--bg-mist);
  border-radius: 4px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--text-body);
  position: relative;
  border-left: 2px solid var(--ratia-cyan);
}
body.modal-locked { overflow: hidden; }


/* ----- SALON CARE MENU: accordion (V8 §4) ----- */
.salon-care {
  padding: var(--section-py) 24px;
  background: var(--bg-base);
}
.salon-care-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.care-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.care-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px -18px rgba(15,42,74,0.2);
  border: 1px solid rgba(28,97,175,0.06);
}
.care-head {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 50px 22px 22px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s;
}
.care-head:hover { background: rgba(28,97,175,0.03); }
.care-head::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid var(--ratia-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-tech);
  font-size: 16px;
  font-weight: 300;
  color: var(--ratia-blue);
  transition: all 0.4s ease;
}
.care-item.is-open .care-head::after {
  content: "−";
  background: var(--ratia-blue);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}
.care-head-cat {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ratia-cyan);
}
.care-head-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.care-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
.care-item.is-open .care-body { max-height: 1200px; }
.care-body-inner {
  padding: 4px 22px 24px;
}
.care-img {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-mist);
  margin-bottom: 16px;
}
.care-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.care-desc {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--text-body);
  margin-bottom: 18px;
}
.care-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.care-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-mist);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-body);
}
.care-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--ratia-blue-deep), #1a3560);
  border-radius: 4px;
  color: #fff;
  margin-bottom: 14px;
}
.care-price-label {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.care-price-old {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
}
.care-price-arrow {
  color: var(--ratia-cyan);
  font-family: var(--ff-tech);
  font-size: 11px;
}
.care-price-now {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  background: linear-gradient(120deg, #FFD56F, #FFE9A8, #FFD56F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.care-price-tax {
  font-family: var(--ff-tech);
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
}
.care-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ratia-blue);
}
.care-link em { font-style: normal; }
.care-link:hover { color: var(--ratia-cyan); }
.care-member-note {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--rainbow-7), var(--ratia-blue));
  color: #fff;
  border-radius: 99px;
}


/* ----- BEAUTY LOVE LETTERS: serif + delayed (V8 §5) ----- */
.voices .voice-card {
  font-family: var(--ff-serif);
}
.voices .voice-card p {
  font-family: var(--ff-serif);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.95;
}
/* Third voice arrives with delay (Intersection Observer triggers .visible) */
.voices .voice-card.voice-delay {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease 0.6s, transform 0.9s ease 0.6s;
}
.voices.visible .voice-card.voice-delay,
.voices .voice-card.voice-delay.is-shown {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   V8.1 ADDITIONS: Care Carousel (6 cards swipe)
   Replaces the 3-accordion ".care-list" approach.
   ============================================ */

.care-carousel {
  margin: 0 -24px;
  padding: 8px 24px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.care-carousel::-webkit-scrollbar { display: none; }
.care-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-right: 24px;
}
.care-card {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: calc(100vw - 70px);
  max-width: 320px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 40px -22px rgba(15,42,74,0.28);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.care-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -22px rgba(15,42,74,0.35);
}
.care-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-mist);
}
.care-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.care-card:hover .care-card-img img { transform: scale(1.04); }
.care-card-num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(15,42,74,0.45);
  letter-spacing: 0.02em;
}
.care-card-cat {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.92);
  border-radius: 99px;
  font-family: var(--ff-tech);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--ratia-blue-deep);
}
.care-card-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.care-card-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.care-card-summary {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--text-body);
}
.care-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.care-card-tags span {
  display: inline-block;
  padding: 3px 9px;
  background: var(--bg-mist);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-body);
}
.care-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--ratia-blue-deep), #1a3560);
  border-radius: 4px;
  color: #fff;
  margin-top: auto;
}
.care-card-price-old {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
}
.care-card-price-arrow {
  color: var(--ratia-cyan);
  font-family: var(--ff-tech);
  font-size: 10px;
}
.care-card-price-now {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  background: linear-gradient(120deg, #FFD56F, #FFE9A8, #FFD56F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.care-card-price-tax {
  font-family: var(--ff-tech);
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
  letter-spacing: 0.1em;
}
.care-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ratia-blue);
}
.care-card-link em { font-style: normal; color: var(--ratia-cyan); }

.care-carousel-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-soft);
}
.care-carousel-hint .arrow {
  display: inline-block;
  animation: hintSwipe 2.5s ease-in-out infinite;
}


/* ============================================
   V8.2 ADDITIONS: HERO magazine-style layout (case C)
   - 60% photo + vertical caption (left frosted board)
   - 40% copy section with photo-continuation gradient
   ============================================ */

/* Override existing .hero baseline for v82 layout */
.hero-v82 {
  position: relative;
  background: var(--bg-base);
  padding: 0;
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* === Photo block (~60% viewport) === */
.hero-photo {
  position: relative;
  width: 100%;
  height: 60vh;
  height: 60svh;
  min-height: 380px;
  overflow: hidden;
  background: var(--ratia-blue-deep);
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the focal point so face area is visible on phone */
  object-position: center 35%;
}

/* === Vertical caption (left edge, white frosted board) === */
.hero-vcaption {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  border: 0.5px solid rgba(255,255,255,0.65);
  border-radius: 4px;
  padding: 22px 12px 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 14px 36px -16px rgba(15,42,74,0.3);
}
.hero-vcaption-text {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(16px, 4.6vw, 20px);
  line-height: 1.95;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}
.hero-vcaption-text strong {
  color: var(--ratia-blue);
  font-weight: 500;
  background-image:
    linear-gradient(transparent 70%, rgba(29,159,179,0.22) 70%, rgba(29,159,179,0.22) 92%, transparent 92%);
}
.hero-vcaption-text br {
  /* Allow line wrap in vertical-rl: br creates a new column */
}

/* === Light-line scroll cue, bottom of photo === */
.hero-v82 .hero-scroll-light {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.hero-v82 .hero-scroll-light .en {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85);
  writing-mode: vertical-rl;
  text-shadow: 0 1px 3px rgba(15,42,74,0.5);
}
.hero-v82 .hero-scroll-light .line {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
}
.hero-v82 .hero-scroll-light .line::after {
  content: "";
  position: absolute;
  top: -44px;
  left: 0;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.0) 10%,
    rgba(255,255,255,0.95) 50%,
    rgba(255,255,255,0.0) 90%,
    transparent 100%);
  animation: scrollLightV82 2.2s ease-in-out infinite;
}
@keyframes scrollLightV82 {
  0%   { top: -44px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 44px;  opacity: 0; }
}

/* === Copy block: photo continuation gradient === */
.hero-copy {
  position: relative;
  padding: 36px 24px 56px;
  background:
    /* Subtle gradient that "continues" the photo's atmosphere */
    linear-gradient(180deg,
      rgba(40, 32, 52, 0.08) 0%,
      rgba(40, 32, 52, 0.02) 30%,
      var(--bg-base) 100%),
    radial-gradient(ellipse at 50% 0%,
      rgba(212, 168, 150, 0.12) 0%,
      transparent 50%),
    var(--bg-base);
}
.hero-copy::before {
  /* Thin separator hint at the very top */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ratia-cyan), transparent);
  opacity: 0.5;
}
.hero-copy-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-copy .hero-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--ratia-blue);
  margin-bottom: 22px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-copy .hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ratia-blue);
  opacity: 0.5;
}
.hero-copy .hero-sub {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 2.15;
  letter-spacing: 0.08em;
  color: var(--text-body);
  margin-bottom: 28px;
}
.hero-copy .hero-sub em {
  font-style: normal;
  color: var(--ratia-blue);
  font-weight: 500;
}
.hero-copy .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--ratia-blue-deep);
  color: #fff;
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 24px -14px rgba(15,42,74,0.5);
}
.hero-copy .hero-cta:hover {
  background: var(--ratia-blue);
  transform: translateY(-2px);
}
.hero-copy .hero-cta-arrow {
  position: relative;
  width: 22px;
  height: 1px;
  background: #fff;
}
.hero-copy .hero-cta-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #fff;
  border-top: 1px solid #fff;
  transform: rotate(45deg);
}

/* Small phones: shrink photo a bit so copy is visible */
@media (max-height: 700px) {
  .hero-photo {
    height: 56vh;
    height: 56svh;
    min-height: 340px;
  }
}

/* Tablet+ : larger viewport */
@media (min-width: 768px) {
  .hero-photo { height: 70vh; min-height: 460px; }
  .hero-photo-img { object-position: center center; }
  .hero-vcaption {
    left: 32px;
    padding: 28px 14px 32px;
  }
  .hero-vcaption-text {
    font-size: 22px;
  }
}


/* ============================================
   V8.3 FIXES: HERO refinement (mobile board overflow, photo zoom)
   - Photo height reduced (60vh -> 50svh), pulled back
   - Vertical caption: explicit columns, board fits content
   - Each column same length to avoid orphan characters
   ============================================ */

/* Photo: shorter, more zoomed-out feel */
.hero-v82 .hero-photo {
  height: 50svh;
  min-height: 340px;
  max-height: 460px;
}
.hero-v82 .hero-photo-img {
  /* Pull back so horizontal scenery is visible */
  object-position: 60% 40%;
}
@media (max-height: 700px) {
  .hero-v82 .hero-photo {
    height: 46svh;
    min-height: 310px;
  }
}
@media (min-width: 768px) {
  .hero-v82 .hero-photo {
    height: 60vh;
    min-height: 440px;
    max-height: 600px;
  }
  .hero-v82 .hero-photo-img {
    object-position: center center;
  }
}

/* Vertical caption board: snug to content, no overflow */
.hero-v82 .hero-vcaption {
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  padding: 18px 10px 20px;
  /* Constrain so board never exceeds 80% of photo height */
  max-height: 82%;
  display: flex;
  align-items: center;
}
.hero-v82 .hero-vcaption-text {
  /* Switch to a grid of explicit columns instead of writing-mode wrapping */
  writing-mode: horizontal-tb;
  -webkit-writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row-reverse; /* Read right-to-left like vertical Japanese */
  gap: 4px;
  font-size: 0; /* prevent inline whitespace */
  margin: 0;
}
.hero-v82 .vc-col {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.95;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  text-shadow: 0 1px 1px rgba(255,255,255,0.6);
  white-space: nowrap;
}
.hero-v82 .vc-col strong {
  color: var(--ratia-blue);
  font-weight: 500;
  background-image:
    linear-gradient(transparent 70%, rgba(29,159,179,0.22) 70%, rgba(29,159,179,0.22) 92%, transparent 92%);
}

@media (min-width: 768px) {
  .hero-v82 .hero-vcaption {
    left: 28px;
    padding: 22px 12px 24px;
  }
  .hero-v82 .vc-col {
    font-size: 18px;
    letter-spacing: 0.18em;
  }
}

/* Adjust copy block padding now that photo is shorter */
.hero-v82 .hero-copy {
  padding: 28px 24px 48px;
}


/* ============================================
   V9.0 ADDITIONS (Stage A)
   - Bottom Nav 6-tab fixed
   - Consolidated KPI Board (Question + Badges + Promise)
   - Ratia Group corporate footer
   ============================================ */

/* V9 color tokens (orange as the "red equivalent" accent) */
:root {
  --v9-orange: #C67008;
  --v9-orange-strong: #9C4D04;
  --v9-orange-bg-light: #FCE9D0;
  --v9-black: #0A0A0A;
  --v9-bottomnav-h: 64px;
}

/* Ensure pages with bottom nav don't get content hidden behind it */
.page-top body, body { /* generic safety */ }
body.has-bnav .site-footer,
body.has-bnav .demo-banner {
  padding-bottom: 0;
}
.demo-banner { z-index: 5; }


/* ----- ORANGE accent helper ----- */
.hi-orange {
  color: var(--v9-orange);
  font-weight: 500;
  background-image:
    linear-gradient(transparent 68%, rgba(198,112,8,0.18) 68%, rgba(198,112,8,0.18) 92%, transparent 92%);
}


/* ============================================
   V9 §1: BOTTOM NAV (mobile, fixed)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  height: var(--v9-bottomnav-h);
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -8px 24px -12px rgba(15,42,74,0.18);
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px 6px;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  transition: background 0.25s ease;
}
.bnav-item:active { background: rgba(28,97,175,0.06); }
.bnav-item + .bnav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--border-soft);
}
.bnav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ratia-blue-deep);
}
.bnav-icon svg {
  width: 100%;
  height: 100%;
}
.bnav-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.15;
  text-align: center;
}
.bnav-text strong {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.bnav-text small {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 8.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Highlight tab: limited offer ¥3,300 */
.bnav-item.bnav-hilite {
  background: linear-gradient(180deg, #E58A1A 0%, var(--v9-orange) 100%);
}
.bnav-item.bnav-hilite .bnav-icon { color: #fff; }
.bnav-item.bnav-hilite .bnav-text strong { color: #fff; font-weight: 600; font-size: 10px; }
.bnav-item.bnav-hilite .bnav-text small {
  color: #FFEDC8;
  font-weight: 600;
  font-size: 11px;
  font-family: var(--ff-display);
  font-style: italic;
  letter-spacing: 0.02em;
}
.bnav-item.bnav-hilite + .bnav-item::before,
.bnav-item:has(+ .bnav-hilite)::before { display: none; }
.bnav-item.bnav-hilite + .bnav-item::before { display: block; left: 0; }
/* Pulsing highlight on hilite */
.bnav-item.bnav-hilite::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFE9A8;
  box-shadow: 0 0 0 0 rgba(255,233,168,0.7);
  animation: bnavPulse 1.8s ease-in-out infinite;
}
@keyframes bnavPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,233,168,0.7); }
  50% { box-shadow: 0 0 0 6px rgba(255,233,168,0); }
}

/* Reserve space so content above isn't hidden by bnav */
body { padding-bottom: var(--v9-bottomnav-h); }
.site-footer { margin-bottom: 0; }

/* Hide bottom nav on tablet+ if desired (Phase Q: keep on all sizes for now) */
@media (min-width: 1024px) {
  .bottom-nav {
    /* On large screens, the global menu and header CTAs are accessible enough */
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
}


/* ============================================
   V9 §2: CONSOLIDATED KPI BOARD
   ============================================ */
.kpi-board {
  padding: var(--section-py) 20px;
  background: linear-gradient(180deg, var(--bg-base) 0%, #fff 50%, var(--bg-base) 100%);
  position: relative;
}
.kpi-board-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.kpi-block {
  background: #fff;
  border-radius: 8px;
  padding: 28px 22px 30px;
  box-shadow: 0 14px 40px -22px rgba(15,42,74,0.18);
  border: 1px solid rgba(28,97,175,0.06);
}
.kpi-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--v9-orange);
  text-align: center;
  margin-bottom: 14px;
}
.kpi-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}
.kpi-lead {
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* 2x2 question grid */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.kpi-cell {
  background: var(--bg-mist);
  border-radius: 6px;
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(28,97,175,0.05);
}
.kpi-cell-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--v9-orange);
  box-shadow: 0 4px 12px -6px rgba(198,112,8,0.3);
}
.kpi-cell-icon svg { width: 18px; height: 18px; }
.kpi-cell-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-body);
}
.kpi-cell-text strong {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.kpi-conclusion {
  margin-top: 8px;
  padding: 18px 16px;
  background: linear-gradient(135deg, var(--v9-orange-bg-light), #FFF6E5);
  border-radius: 6px;
  font-family: var(--ff-serif);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-align: center;
  border-left: 3px solid var(--v9-orange);
}
.kpi-conclusion strong {
  font-weight: 500;
}

/* 3 BIG KPI BADGES */
.kpi-block-badges {
  background: linear-gradient(135deg, var(--ratia-blue-deep) 0%, #1a3560 100%);
  padding: 26px 16px 28px;
  position: relative;
  overflow: hidden;
}
.kpi-block-badges::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--rainbow-1), var(--rainbow-2), var(--rainbow-3),
    var(--rainbow-4), var(--rainbow-5), var(--rainbow-6), var(--rainbow-7));
  opacity: 0.7;
}
.kpi-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kpi-badge {
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 14px 6px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.kpi-badge-label {
  font-family: var(--ff-tech);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
.kpi-badge-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  font-family: var(--ff-display);
  color: #fff;
  line-height: 1;
}
.kpi-badge-num em {
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: #fff;
}
.kpi-badge-num small {
  font-style: normal;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.kpi-badge-sub {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* Center hilite badge (¥3,300) */
.kpi-badge.kpi-badge-hilite {
  background: linear-gradient(180deg, #E58A1A 0%, var(--v9-orange) 100%);
  border-color: rgba(255,233,168,0.4);
  box-shadow: 0 8px 24px -8px rgba(198,112,8,0.6);
  transform: scale(1.04);
}
.kpi-badge.kpi-badge-hilite .kpi-badge-label {
  color: #FFEDC8;
  font-weight: 600;
}
.kpi-badge.kpi-badge-hilite .kpi-badge-num em { font-size: 32px; }
.kpi-badge.kpi-badge-hilite .kpi-badge-num small { color: #fff; }
.kpi-badge.kpi-badge-hilite .kpi-badge-sub { color: rgba(255,255,255,0.85); }

/* Promise block */
.kpi-block-promise {
  text-align: center;
}
.kpi-promise-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.kpi-promise-body {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--text-body);
  text-align: left;
}
.kpi-promise-body strong {
  font-weight: 500;
  color: var(--v9-orange);
}


/* ============================================
   V9 §5: RATIA GROUP CORPORATE BOARD
   ============================================ */
.group-board {
  margin-top: 0;
  background: #000;
}

/* Rainbow header */
.group-rainbow {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%),
    url('/uploads/group/rainbow_long.jpg') center top / cover no-repeat,
    #000;
  padding: 56px 24px 64px;
  text-align: center;
  overflow: hidden;
}
.group-rainbow-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.group-rainbow-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(30px, 8vw, 42px);
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.group-rainbow-title span {
  font-weight: 400;
  font-family: var(--ff-display);
  font-style: italic;
  margin-left: 2px;
}
.group-rainbow-tag {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
}

/* Building photo */
.group-building {
  position: relative;
  background: #000;
}
.group-building img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: cover;
}
.group-building-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Profile table */
.group-profile {
  background: #0e1620;
  padding: 48px 24px 56px;
  color: #fff;
}
.group-profile-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.group-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ratia-cyan);
  text-align: center;
  margin-bottom: 14px;
}
.group-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 26px);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.55;
  color: #fff;
}
.group-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.group-row {
  display: flex;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.group-row dt {
  flex-shrink: 0;
  width: 88px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ratia-cyan);
  padding-top: 4px;
  text-transform: uppercase;
}
.group-row dd {
  flex: 1;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.group-row dd small {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* Related sites */
.group-related {
  margin-top: 8px;
}
.group-related-label {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ratia-cyan);
  text-align: center;
  margin-bottom: 18px;
}
.group-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.group-related-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.group-related-link:hover {
  background: rgba(29,159,179,0.1);
  border-color: var(--ratia-cyan);
}
.rl-en {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
}
.rl-ja {
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}


/* ============================================
   V9.1 FIXES (from feedback PDF: SR修正1.pdf)
   - HERO: header-photo gap, vertical caption marker
   - KPI 2x2 grid: stronger visibility
   - Ratia Group: compact (rainbow over building, cars cropped)
   ============================================ */

/* ===== HERO: tighten header→photo gap, remove unwanted spacing ===== */
.hero-v82 {
  margin-top: 0;
  padding-top: 0;
}
.hero-v82 .hero-photo {
  margin-top: 0;
}
/* Ensure no body/section default margin shows under rainbow-bar */
.site-header {
  margin-bottom: 0;
}
.site-header + .hero-v82 .hero-photo::before {
  /* No artificial offset */
  content: none;
}

/* ===== HERO: vertical caption marker fix =====
   Problem: linear-gradient marker doesn't render correctly inside vertical-rl
   text on some characters. Use a positioned bar behind the text instead.    */
.hero-v82 .vc-col-hi {
  position: relative;
}
.hero-v82 .vc-col-hi .vc-marker {
  position: relative;
  display: inline-block;
  color: var(--ratia-blue);
  font-weight: 500;
}
/* Draw a continuous marker bar across the whole vertical text */
.hero-v82 .vc-col-hi .vc-marker::before {
  content: "";
  position: absolute;
  /* In vertical-rl, "left/right" become positions along the writing direction.
     We want the marker to run vertically alongside ALL characters of this col. */
  top: 0;
  bottom: 0;
  /* Place the bar slightly to the left of the text (in vertical-rl, that's "below" visually) */
  left: 50%;
  width: 0.5em;
  background: rgba(29,159,179,0.28);
  z-index: -1;
  border-radius: 1px;
}
/* Remove the old strong-tag marker by ensuring strong (if any) is neutral */
.hero-v82 .vc-col strong {
  background-image: none;
  color: var(--ratia-blue);
  font-weight: 500;
}


/* ===== KPI BOARD §3: 2x2 grid stronger visibility ===== */
.kpi-cell {
  background: #fff;
  border: 1px solid rgba(198, 112, 8, 0.18);
  padding: 16px 14px 18px;
  box-shadow: 0 4px 12px -8px rgba(15,42,74,0.12);
}
.kpi-cell-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #FCE9D0, #FFF6E5);
  color: var(--v9-orange-strong);
  box-shadow: 0 6px 14px -6px rgba(198,112,8,0.4);
}
.kpi-cell-icon svg { width: 22px; height: 22px; }
.kpi-cell-text {
  font-family: var(--ff-sans);
  font-weight: 400; /* was 300 */
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--text-primary); /* was text-body */
}
.kpi-cell-text strong {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 600; /* was 500 */
  font-size: 15px; /* was 13 */
  color: var(--v9-black);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}


/* ===== RATIA GROUP §5: COMPACT (rainbow over building, cars cropped) ===== */
.group-hero {
  position: relative;
  background: #000;
  overflow: hidden;
  /* Crop bottom 18% of the building photo (where cars/trucks are) */
}
.group-hero-photo {
  position: relative;
  width: 100%;
  /* Use aspect-ratio + object-fit + object-position to crop cars */
  height: 68vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
}
.group-hero-photo img {
  width: 100%;
  height: 100%;
  /* object-position: bias upward so cars/trucks at bottom are out of frame */
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* Rainbow overlay band on TOP of the building */
.group-hero-rainbow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background:
    /* Slight darken at the very top edge for logo legibility */
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.08) 50%, transparent 100%),
    /* The rainbow image */
    url('/uploads/group/rainbow_long.jpg') center top / cover no-repeat,
    #000;
  background-blend-mode: normal, normal, normal;
  z-index: 1;
  /* Smooth fade out at the bottom edge so it blends with the building */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.6) 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.6) 80%, transparent 100%);
}
/* Additional fade-out layer for extra-smooth transition into building */
.group-hero-rainbow-fade {
  position: absolute;
  top: 32%;
  left: 0;
  right: 0;
  height: 12%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Logo + tag positioned in the upper third (on rainbow) */
.group-hero-text {
  position: absolute;
  top: 11%;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}
.group-hero-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(34px, 9vw, 48px);
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1;
  text-shadow: 0 4px 22px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
}
.group-hero-title span {
  font-weight: 400;
  font-family: var(--ff-display);
  font-style: italic;
}
.group-hero-tag {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin: 0;
}

/* Caption (HEAD OFFICE / AOYAMA TOKYO) at bottom of building */
.group-hero-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  margin: 0;
}

/* Remove legacy padding from group-rainbow / group-building classes (they're gone) */
.group-rainbow,
.group-building { display: none; }

/* Smaller screens: still ensure photo dominates without empty space */
@media (max-height: 700px) {
  .group-hero-photo {
    height: 60vh;
    min-height: 400px;
  }
  .group-hero-text { top: 9%; }
}

@media (min-width: 768px) {
  .group-hero-photo {
    height: 70vh;
    max-height: 760px;
  }
  .group-hero-rainbow {
    height: 34%;
  }
  .group-hero-text { top: 10%; }
  .group-hero-title { font-size: 56px; }
}


/* ============================================
   V9.2 FIXES (from feedback PDF: SR修正2.pdf)
   - HERO: vertical caption position + responsive
   - 2x2 grid: warning color (yellow bg + red text + thick frame)
   - 3 KPI badges: orange family (sides light, center deep)
   - LAST CALL: smaller font to fit 3 lines
   ============================================ */

/* ===== HERO §1-4: Vertical caption position + responsive ===== */

/* Mobile (default): move caption down (lower-center, not vertically centered) */
.hero-v82 .hero-vcaption {
  /* Was top:50% / translateY(-50%). Now anchor lower so empty space sits above */
  top: auto;
  bottom: 14px;
  transform: none;
  /* Constrain max height so it never overflows the photo */
  max-height: calc(100% - 28px);
}

/* Mobile: reduce vertical caption text size so it fits cleanly */
.hero-v82 .vc-col {
  font-size: clamp(12px, 3.2vw, 14px);
  letter-spacing: 0.14em;
  line-height: 1.85;
}
.hero-v82 .hero-vcaption {
  padding: 14px 9px 16px;
}

/* PC max size: ensure photo's top edge sits flush under the rainbow bar.
   The header has its own height + rainbow bar; this offset belongs to
   .site-header itself. Make sure .hero-v82 sits cleanly below it. */
.site-header + .hero-v82 {
  margin-top: 0;
}
.hero-v82 .hero-photo {
  /* Killing any inherited inset that could cause an under-header gap */
  border-top: 0;
}

/* Mid (tablet-ish) sizes: prevent caption from drifting off-photo */
@media (min-width: 600px) and (max-width: 1023px) {
  .hero-v82 .hero-vcaption {
    bottom: 18px;
    left: 22px;
    padding: 16px 10px 18px;
  }
  .hero-v82 .vc-col {
    font-size: 14px;
  }
}

/* Tablet+ : keep board within photo, slightly larger */
@media (min-width: 1024px) {
  .hero-v82 .hero-vcaption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    left: 36px;
    padding: 24px 14px 28px;
  }
  .hero-v82 .vc-col {
    font-size: 18px;
    letter-spacing: 0.18em;
  }
}

/* Very small heights (landscape phones): shrink further */
@media (max-height: 600px) {
  .hero-v82 .vc-col {
    font-size: 11px;
    line-height: 1.7;
  }
  .hero-v82 .hero-vcaption {
    padding: 10px 7px 12px;
  }
}


/* ===== KPI §5: 2x2 grid as WARNING SIGN style =====
   - Pale yellow background
   - Red bold text
   - Thick orange/red frame                                                  */
.kpi-cell {
  background: #FFF6D6;          /* pale yellow (warning sign) */
  border: 2px solid #C13E2A;    /* thick red-orange frame */
  border-radius: 6px;
  box-shadow: 0 6px 16px -10px rgba(193,62,42,0.35);
}
.kpi-cell-icon {
  background: #fff;
  border: 1.5px solid #C13E2A;
  color: #C13E2A;
}
.kpi-cell-icon svg { stroke-width: 1.7; }
.kpi-cell-text {
  color: #1A1A1A;             /* near-black for body */
  font-weight: 500;
}
.kpi-cell-text strong {
  color: #C13E2A;             /* red title */
  font-weight: 700;
  font-size: 15.5px;
}


/* ===== KPI §6: 3 BIG BADGES - all orange family =====
   - Block background: lighter than before (cream)
   - Side badges: light orange gradient
   - Center badge: deep orange gradient (kept dominant)                      */
.kpi-block-badges {
  background: linear-gradient(135deg, #FFF6E5 0%, #FCE9D0 100%);
  padding: 24px 14px 26px;
}
.kpi-block-badges::before {
  /* Rainbow top stripe kept */
  opacity: 0.85;
}
.kpi-badges { gap: 8px; }

/* Side badges: light orange tone */
.kpi-badge {
  background: linear-gradient(180deg, #FFE6BB 0%, #F8C97A 100%);
  border: 1px solid rgba(198,112,8,0.35);
  box-shadow: 0 4px 12px -6px rgba(198,112,8,0.3);
  padding: 14px 6px 16px;
}
.kpi-badge-label {
  color: #7A3A03;              /* deep brown for legibility on light orange */
  font-weight: 600;
  letter-spacing: 0.15em;
}
.kpi-badge-num em {
  color: #7A3A03;              /* deep brown numeric */
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.kpi-badge-num small {
  color: #7A3A03;
  font-weight: 600;
}
.kpi-badge-sub {
  color: rgba(122,58,3,0.7);
}

/* Center hilite badge: deep orange dominant */
.kpi-badge.kpi-badge-hilite {
  background: linear-gradient(180deg, #E58A1A 0%, var(--v9-orange) 60%, var(--v9-orange-strong) 100%);
  border: 1.5px solid #FFE9A8;
  box-shadow: 0 10px 26px -8px rgba(198,112,8,0.65);
  transform: scale(1.06);
  z-index: 1;
}
.kpi-badge.kpi-badge-hilite .kpi-badge-label {
  color: #FFEDC8;
  font-weight: 700;
}
.kpi-badge.kpi-badge-hilite .kpi-badge-num em {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.kpi-badge.kpi-badge-hilite .kpi-badge-num small {
  color: #fff;
}
.kpi-badge.kpi-badge-hilite .kpi-badge-sub {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}


/* ===== LAST CALL §7: smaller font to ensure 3-line layout ===== */
.final-title {
  font-size: clamp(20px, 5vw, 24px);  /* was larger */
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.final-title strong {
  font-size: 1.08em;
  font-weight: 600;
}


/* ============================================
   V9.2 ADDITIONS (Stage B)
   - Warning-color 2x2 grid (yellow+red+thick frame)
   - 3 KPI badges all orange-family (center deep, sides light)
   - LAST CALL: period removed, font shrunk
   - HERO responsive fixes (4 issues)
   - Progressive gradient background (15 sections)
   ============================================ */

/* === V9.2 §1: Warning-color 2x2 grid === */
.kpi-cell {
  background: #FFEDB3; /* A2: banana yellow */
  border: 2px solid #D32626; /* C2: 2px medium red */
  box-shadow: 0 4px 12px -6px rgba(211, 38, 38, 0.25);
}
.kpi-cell-icon {
  background: #fff;
  color: #D32626; /* icon stroke in red */
  box-shadow: 0 4px 10px -4px rgba(211, 38, 38, 0.35);
}
.kpi-cell-text {
  color: #8B1A1A; /* darker red for body text legibility */
  font-weight: 500;
}
.kpi-cell-text strong {
  color: #D32626; /* B2: medium scarlet */
  font-weight: 700;
  font-size: 15.5px;
}


/* === V9.2 §2: 3 KPI badges - all orange family === */
.kpi-block-badges {
  /* Keep deep navy background; only badges change */
}
.kpi-badge {
  /* Left & right: light orange family */
  background: linear-gradient(180deg, #FFEDC8 0%, #FFD89A 100%);
  border: 1px solid rgba(198,112,8,0.25);
  color: var(--v9-orange-strong);
}
.kpi-badge .kpi-badge-label {
  color: var(--v9-orange-strong);
  font-weight: 600;
}
.kpi-badge .kpi-badge-num em {
  color: var(--v9-orange-strong);
}
.kpi-badge .kpi-badge-num small {
  color: var(--v9-orange-strong);
  opacity: 0.85;
}
.kpi-badge .kpi-badge-sub {
  color: rgba(156, 77, 4, 0.7);
}

/* Center hilite badge stays the strongest orange */
.kpi-badge.kpi-badge-hilite {
  background: linear-gradient(180deg, #E58A1A 0%, var(--v9-orange) 100%);
  border-color: rgba(255,233,168,0.6);
  box-shadow: 0 10px 26px -8px rgba(198,112,8,0.7);
  transform: scale(1.06);
}
.kpi-badge.kpi-badge-hilite .kpi-badge-label {
  color: #FFEDC8;
  font-weight: 600;
}
.kpi-badge.kpi-badge-hilite .kpi-badge-num em {
  color: #fff;
  font-size: 32px;
}
.kpi-badge.kpi-badge-hilite .kpi-badge-num small {
  color: #fff;
  opacity: 0.95;
}
.kpi-badge.kpi-badge-hilite .kpi-badge-sub {
  color: rgba(255,255,255,0.85);
}


/* === V9.2 §3: LAST CALL - period removed, font shrunk === */
.final-title {
  font-size: clamp(20px, 5.6vw, 26px) !important;
  line-height: 1.65 !important;
}
.final-title strong {
  display: block;
  margin-bottom: 8px;
}


/* === V9.2 §4: HERO responsive fixes === */

/* 4a. Tighten header → photo: no gap, photo starts immediately below rainbow */
.site-header { margin-bottom: 0; padding-bottom: 0; }
.hero-v82 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.hero-v82 .hero-photo {
  margin-top: 0;
  border-top: 0;
}

/* 4b. PC/large viewport: ensure photo starts right at the header bottom edge */
@media (min-width: 768px) {
  .hero-v82 .hero-photo {
    margin-top: 0;
    border-top: 0;
  }
  .site-header {
    box-shadow: none;
  }
}

/* 4c. Vertical caption: better positioning to avoid overflow at all sizes */
.hero-v82 .hero-vcaption {
  /* Move from absolute center-vertical to anchored at top with slight offset */
  top: auto;
  bottom: 24px; /* Anchor to the BOTTOM of the photo (Q: "白帯を下に移動") */
  transform: none;
  left: 14px;
  max-height: calc(100% - 48px);
}

/* 4d. Flexible/mid-size: ensure caption stays within photo */
@media (min-width: 500px) and (max-width: 900px) {
  .hero-v82 .hero-vcaption {
    bottom: 32px;
    left: 24px;
  }
  .hero-v82 .vc-col {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .hero-v82 .hero-vcaption {
    bottom: 40px;
    left: 36px;
    padding: 22px 12px 24px;
  }
}

/* Small phones / short viewports: tighten board further */
@media (max-height: 700px) {
  .hero-v82 .hero-vcaption {
    bottom: 18px;
    padding: 14px 8px 16px;
  }
  .hero-v82 .vc-col {
    font-size: 12px;
    letter-spacing: 0.14em;
  }
}


/* ============================================
   V9.2 §5: PROGRESSIVE GRADIENT BACKGROUND
   Tone map (top → bottom = light → dark):
     HERO        : off-white
     KPI Board   : warm milk
     AI x 14     : off-white → light navy
     JANUS       : royal blue → deep navy
     Expert 7    : deep navy
     Salon Care  : off-white (recovery, friendliness)
     Beauty Letters: deep navy
     Menu/Salons : deep navy
     LAST CALL   : deep navy → near-black
     Ratia Group : near-black
   ============================================ */

:root {
  --tone-cream: #FBFCFD;        /* HERO base */
  --tone-warm: #FDFAF3;         /* KPI block */
  --tone-light-navy: #EEF1F6;   /* AI x 14 */
  --tone-royal: #1C61AF;        /* JANUS top */
  --tone-deep: #0F2A4A;         /* Voices / Salons / depth */
  --tone-near-black: #0A1220;   /* LAST CALL */
  --tone-black: #0A0A0A;        /* Ratia Group */
}

/* HERO copy block: stays light */
.hero-copy {
  background:
    linear-gradient(180deg,
      rgba(40, 32, 52, 0.06) 0%,
      rgba(40, 32, 52, 0.02) 30%,
      var(--tone-cream) 100%);
}

/* KPI Board: warm milk */
.kpi-board {
  background: linear-gradient(180deg,
    var(--tone-cream) 0%,
    var(--tone-warm) 30%,
    var(--tone-warm) 70%,
    var(--tone-light-navy) 100%);
}

/* AI x 14 / 3 REAL CASES (.analysis): off-white → light navy */
.analysis {
  background: linear-gradient(180deg,
    var(--tone-light-navy) 0%,
    #E4E9F1 100%);
}
.analysis .section-eyebrow,
.analysis .analysis-title {
  color: var(--text-primary);
}

/* JANUS (members only): royal blue → deep navy */
.janus {
  background: linear-gradient(180deg,
    var(--tone-royal) 0%,
    #134175 50%,
    var(--tone-deep) 100%);
  color: #fff;
  position: relative;
}
.janus .section-eyebrow {
  color: #FFD56F;
}
.janus h2,
.janus h3,
.janus p {
  color: #fff;
}
.janus p {
  color: rgba(255,255,255,0.85);
}

/* Expert Network 7: deep navy */
.experts {
  background: linear-gradient(180deg,
    var(--tone-deep) 0%,
    #0d2440 100%);
  color: #fff;
}
.experts .section-eyebrow {
  color: var(--ratia-cyan);
}
.experts h2,
.experts .experts-title {
  color: #fff;
}
.experts p {
  color: rgba(255,255,255,0.8);
}
.experts-hint {
  color: rgba(255,255,255,0.55);
}

/* Salon Care Menu: off-white recovery (friendly course selection) */
.salon-care {
  background: linear-gradient(180deg,
    #0d2440 0%,
    var(--tone-cream) 8%,
    var(--tone-cream) 100%);
}
.salon-care .section-eyebrow {
  color: var(--ratia-blue);
}
.salon-care .section-head h2 {
  color: var(--text-primary);
}

/* Beauty Love Letters: deep navy (trust voices, intimate) */
.voices {
  background: linear-gradient(180deg,
    var(--tone-cream) 0%,
    var(--tone-deep) 12%,
    var(--tone-deep) 100%);
  color: #fff;
}
.voices .section-eyebrow,
.voices .voices-subtitle {
  color: var(--ratia-cyan);
}
.voices .voices-title {
  color: #fff;
}
.voices .voices-title em {
  color: #FFD56F;
}
.voices .voice-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.voices .voice-card .voice-text,
.voices .voice-card p {
  color: rgba(255,255,255,0.92);
}
.voices .voice-card .voice-meta {
  color: rgba(255,255,255,0.55);
}

/* MENU & SALONS: deep navy continues */
.salon {
  background: linear-gradient(180deg,
    var(--tone-deep) 0%,
    #0c2342 100%);
  color: #fff;
}
.salon .section-eyebrow,
.salon-subtitle {
  color: var(--ratia-cyan);
}
.salon h2,
.salon .salon-title {
  color: #fff;
}
.salon .store-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.salon .store-name {
  color: #fff;
}
.salon .store-info {
  color: rgba(255,255,255,0.7);
}
.salon .store-head::after {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.3);
}

/* LAST CALL (final-cta): deep navy → near-black */
.final-cta {
  background: linear-gradient(180deg,
    #0c2342 0%,
    var(--tone-near-black) 100%);
  color: #fff;
}
.final-cta .final-eyebrow {
  color: var(--ratia-cyan);
}
.final-cta .final-title {
  color: #fff;
}
.final-cta .final-title em {
  color: #FFD56F;
}
.final-cta .plan-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Ratia Group: near-black (continues from final-cta) */
.group-board {
  background: var(--tone-black);
}
.group-profile {
  background: var(--tone-black);
}

/* Footer: pure near-black */
.site-footer {
  background: var(--tone-near-black);
  color: #fff;
}
.site-footer .footer-brand,
.site-footer .footer-tag,
.site-footer .footer-copyright {
  color: rgba(255,255,255,0.9);
}

/* Bottom nav over dark background: ensure it stays light */
.bottom-nav {
  background: rgba(15,28,46,0.96);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.bnav-item {
  color: rgba(255,255,255,0.9);
}
.bnav-item + .bnav-item::before {
  background: rgba(255,255,255,0.12);
}
.bnav-icon {
  color: var(--ratia-cyan);
}
.bnav-text strong {
  color: rgba(255,255,255,0.95);
}
.bnav-text small {
  color: rgba(255,255,255,0.6);
}
.bnav-item:active {
  background: rgba(29,159,179,0.15);
}

/* Demo banner over near-black */
.demo-banner {
  background: rgba(10,18,32,0.92);
  border-top: 1px solid rgba(255,255,255,0.1);
}


/* ============================================
   V9.2.1 HOTFIX: Force voices & salon backgrounds
   (some browsers don't apply the gradient — use !important)
   ============================================ */

.voices,
section.voices.reveal {
  background: linear-gradient(180deg,
    var(--tone-cream) 0%,
    #0F2A4A 12%,
    #0F2A4A 100%) !important;
  color: #fff !important;
}
.salon,
section.salon.reveal {
  background: linear-gradient(180deg,
    #0F2A4A 0%,
    #0c2342 100%) !important;
  color: #fff !important;
}

/* Reinforce text colors inside these dark sections */
.voices .voices-title,
.voices .section-eyebrow,
.voices .voices-subtitle,
.salon .salon-title,
.salon .section-eyebrow,
.salon .salon-subtitle {
  /* Explicit colors to defeat any inherited dark text */
}
.voices .section-eyebrow { color: var(--ratia-cyan) !important; }
.voices .voices-title { color: #fff !important; }
.voices .voices-title em { color: #FFD56F !important; }
.voices .voices-subtitle { color: rgba(255,255,255,0.7) !important; }

.salon .section-eyebrow { color: var(--ratia-cyan) !important; }
.salon .salon-title { color: #fff !important; }
.salon .salon-subtitle { color: rgba(255,255,255,0.7) !important; }
.salon .salon-tab { color: rgba(255,255,255,0.6); }
.salon .salon-tab.active { color: #fff; }

.voices .voice-card,
.salon .store-card {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}
.voices .voice-card .voice-text,
.voices .voice-card p { color: rgba(255,255,255,0.92) !important; }
.voices .voice-card .voice-meta { color: rgba(255,255,255,0.55) !important; }
.voices .voices-more { color: rgba(255,255,255,0.6) !important; }

.salon .store-name { color: #fff !important; }
.salon .store-info { color: rgba(255,255,255,0.7) !important; }


/* ============================================
   V9.3 §B-1: 3 REAL CASES NAVIGATION INDEX
   Number + symbol icon + tag + label, horizontal pills
   ============================================ */
.cases-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 28px auto 36px;
  max-width: 560px;
  padding: 0 16px;
}
.cases-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: rgba(255,255,255,0.45);
  border: 1.5px solid rgba(28,97,175,0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font: inherit;
}
.cases-nav-item:hover {
  border-color: rgba(198,112,8,0.4);
  background: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}
.cases-nav-item.active {
  background: linear-gradient(180deg, #fff 0%, #FFEDC8 100%);
  border-color: var(--v9-orange);
  border-width: 2px;
  box-shadow: 0 8px 22px -10px rgba(198,112,8,0.5);
  transform: translateY(-2px);
}
.cases-nav-item.active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--v9-orange), #E58A1A);
  border-radius: 8px 8px 0 0;
}
.cases-nav-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--v9-orange-strong);
  letter-spacing: 0.02em;
  line-height: 1;
}
.cases-nav-item:not(.active) .cases-nav-num {
  color: rgba(15, 42, 74, 0.5);
}
.cases-nav-sym {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v9-orange);
  margin: 2px 0;
}
.cases-nav-item:not(.active) .cases-nav-sym {
  color: rgba(15, 42, 74, 0.4);
}
.cases-nav-sym svg {
  width: 100%;
  height: 100%;
}
.cases-nav-tag {
  font-family: var(--ff-tech);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--v9-orange-strong);
  line-height: 1.2;
}
.cases-nav-item:not(.active) .cases-nav-tag {
  color: rgba(15, 42, 74, 0.55);
}
.cases-nav-label {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.3;
}
.cases-nav-item:not(.active) .cases-nav-label {
  color: rgba(15, 42, 74, 0.7);
}

/* Tablet+: more breathing room */
@media (min-width: 768px) {
  .cases-nav {
    gap: 14px;
    margin: 32px auto 44px;
  }
  .cases-nav-item {
    padding: 16px 12px 14px;
  }
  .cases-nav-num { font-size: 22px; }
  .cases-nav-sym { width: 32px; height: 32px; }
  .cases-nav-tag { font-size: 9.5px; }
  .cases-nav-label { font-size: 12px; }
}


/* ============================================
   V9.3 §B-2: SALON CARE MENU - CATEGORY TABS
   ALL / FACE / BODY filter tabs
   ============================================ */
.care-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px auto 28px;
  max-width: 520px;
  padding: 0 16px;
}
.care-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  background: #fff;
  border: 1.5px solid rgba(28,97,175,0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font: inherit;
}
.care-tab:hover {
  border-color: rgba(198,112,8,0.4);
  transform: translateY(-1px);
}
.care-tab.active {
  background: linear-gradient(180deg, #fff 0%, #FFEDC8 100%);
  border-color: var(--v9-orange);
  border-width: 2px;
  box-shadow: 0 8px 22px -10px rgba(198,112,8,0.5);
  transform: translateY(-2px);
}
.care-tab.active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--v9-orange), #E58A1A);
  border-radius: 8px 8px 0 0;
}
.care-tab-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,42,74,0.45);
  transition: color 0.3s ease;
}
.care-tab.active .care-tab-icon {
  color: var(--v9-orange);
}
.care-tab-icon svg { width: 100%; height: 100%; }
.care-tab-label {
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(15,42,74,0.7);
  line-height: 1;
  margin-top: 2px;
}
.care-tab.active .care-tab-label {
  color: var(--v9-orange-strong);
}
.care-tab-count {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 11px;
  font-weight: 500;
  color: rgba(15,42,74,0.5);
  line-height: 1;
}
.care-tab.active .care-tab-count {
  color: var(--v9-orange);
}

/* Card hide/show with smooth transition */
.care-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.care-card.is-hidden {
  display: none;
}

@media (min-width: 768px) {
  .care-tabs {
    gap: 14px;
    margin: 24px auto 36px;
  }
  .care-tab { padding: 14px 10px 12px; }
  .care-tab-icon { width: 30px; height: 30px; }
  .care-tab-label { font-size: 12px; }
  .care-tab-count { font-size: 12px; }
}


/* ============================================
   V9.4 §B-3: ACCENT COLOR DEPLOYMENT
   Orange #C67008 deployed to key action/highlight points
   ============================================ */

/* === 1. HERO CTA button: navy → orange (most important action) === */
.hero-cta {
  background: linear-gradient(135deg, var(--v9-orange) 0%, #E58A1A 60%, #DA931B 100%) !important;
  color: #fff !important;
  border-color: rgba(255,233,168,0.3) !important;
  box-shadow: 0 12px 32px -10px rgba(198,112,8,0.55) !important;
  position: relative;
}
.hero-cta::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #FFD56F, var(--v9-orange), #FFD56F);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-cta:hover {
  background: linear-gradient(135deg, #E58A1A 0%, var(--v9-orange) 60%, var(--v9-orange-strong) 100%) !important;
  box-shadow: 0 16px 38px -10px rgba(198,112,8,0.7) !important;
  transform: translateY(-2px);
}
.hero-cta:hover::before {
  opacity: 0.7;
}

/* === 2. case-card-btn: orange outline accent === */
.case-card-btn {
  border-color: var(--v9-orange) !important;
  color: var(--v9-orange-strong) !important;
  transition: all 0.3s ease;
}
.case-card-btn:hover {
  background: var(--v9-orange) !important;
  color: #fff !important;
  border-color: var(--v9-orange) !important;
}

/* === 3. final-cta book button: orange accent ring === */
.final-cta .plan-card .plan-cta,
.final-cta .book-button {
  background: #fff !important;
  color: var(--v9-orange-strong) !important;
  border: 2px solid var(--v9-orange) !important;
  position: relative;
  box-shadow: 0 14px 36px -10px rgba(198,112,8,0.6) !important;
}
.final-cta .plan-cta:hover,
.final-cta .book-button:hover {
  background: linear-gradient(135deg, #fff 0%, #FFEDC8 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -10px rgba(198,112,8,0.75) !important;
}
.final-cta .plan-cta .plan-cta-label,
.final-cta .book-button-label {
  color: var(--v9-orange) !important;
}

/* === 4. Salon 都市タブ (SHIZUOKA / HAMAMATSU / HIROSHIMA) === */
.salon .salon-tab.active {
  color: #FFD56F !important;
  position: relative;
}
.salon .salon-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--v9-orange), #FFD56F);
  border-radius: 1px;
}
.salon .salon-tab:hover {
  color: #FFD56F;
}

/* === 5. Expert Network 7 cards: orange highlight on key labels === */
.experts .expert-card .expert-card-cat {
  /* If exists, paint subtle orange highlight */
}
.experts .experts-title em,
.experts .experts-title strong {
  color: #FFD56F !important;
}

/* === 6. analysis-title em (AI × 14 SCIENCES title) === */
.analysis-title em {
  color: var(--v9-orange) !important;
  font-style: normal;
  background-image: linear-gradient(transparent 65%, rgba(198,112,8,0.18) 65%, rgba(198,112,8,0.18) 92%, transparent 92%);
}

/* === 7. care-card price highlight on hover === */
.care-card:hover .care-card-price-now {
  color: var(--v9-orange) !important;
  transition: color 0.3s ease;
}

/* === 8. Group corporate related links: orange hover === */
.group-related-link:hover {
  border-color: var(--v9-orange) !important;
  background: rgba(198,112,8,0.08) !important;
}
.group-related-link:hover .rl-en {
  color: #FFD56F !important;
}

/* === 9. Final CTA "MEMBERS INTRODUCTION REQUIRED" text: subtle orange === */
.final-cta .final-note {
  color: rgba(255,213,111,0.85) !important;
  font-weight: 500;
}

/* === 10. Bottom nav "限定体験" tab pulse: already orange, reinforce === */
.bnav-item.bnav-hilite::after {
  background: #FFD56F !important;
  box-shadow: 0 0 0 0 rgba(255,213,111,0.85) !important;
}
@keyframes bnavPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,213,111,0.85); }
  50% { box-shadow: 0 0 0 6px rgba(255,213,111,0); }
}

/* === 11. cases-hint / care-carousel-hint: orange arrow === */
.cases-hint .arrow,
.care-carousel-hint .arrow {
  color: var(--v9-orange);
  font-weight: 600;
}


/* ============================================
   V10 §1: AI DATA BOARD (scroll-stop block)
   Placed directly under HERO photo, replaces old "STUDIO RATIA / FOR YOUR 20S" copy.
   Goal: stop scroll, hit with truth-data impact, then transition to brand discovery copy.
   ============================================ */

/* Tone tokens */
:root {
  --v10-gold: #D9A536;
  --v10-gold-strong: #B7831D;
  --v10-gold-light: #F4D77A;
  --v10-red: #C13E2A;
  --v10-red-strong: #8B2A1A;
  --v10-ink: #0A0A0A;
  --v10-paper: #FBFCFD;
}

/* ==== Outer board ==== */
.ai-data-board {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217, 165, 54, 0.06), transparent 70%),
    linear-gradient(180deg, #FBFCFD 0%, #F4F2EC 50%, #ECE6D8 100%);
  padding: 44px 0 36px;
  overflow: hidden;
}
.ai-data-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--v10-gold) 20%,
    var(--v10-red) 50%,
    var(--v10-gold) 80%,
    transparent 100%);
  opacity: 0.7;
}
.ai-data-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==== Header ==== */
.ai-data-header {
  text-align: center;
  margin-bottom: 32px;
}
.ai-data-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-tech);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--v10-gold-strong);
  margin-bottom: 18px;
  padding: 5px 14px;
  background: rgba(217, 165, 54, 0.08);
  border: 1px solid rgba(217, 165, 54, 0.3);
  border-radius: 99px;
}
.ai-data-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v10-red);
  box-shadow: 0 0 0 0 rgba(193, 62, 42, 0.7);
  animation: aiPulse 1.8s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 62, 42, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(193, 62, 42, 0); }
}

.ai-data-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--v10-ink);
  margin-bottom: 14px;
}
.ai-data-tag {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 0.7em;
  color: var(--v10-red);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.ai-data-title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  color: var(--v10-gold-strong);
  font-size: 1.15em;
  margin: 0 2px;
}

.ai-data-subtitle {
  font-family: var(--ff-serif);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--text-body);
}
.ai-data-subtitle strong {
  color: var(--v10-red);
  font-weight: 600;
  background-image: linear-gradient(transparent 65%, rgba(193, 62, 42, 0.15) 65%, rgba(193, 62, 42, 0.15) 92%, transparent 92%);
}

/* ==== Ranking List ==== */
.ai-rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-rank-item {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 20px 18px 22px;
  box-shadow: 0 14px 36px -16px rgba(15, 42, 74, 0.18);
  border: 1px solid rgba(217, 165, 54, 0.2);
  overflow: hidden;
}

/* Side gold/red bar per rank */
.ai-rank-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}
.ai-rank-1::before { background: linear-gradient(180deg, var(--v10-red), var(--v10-red-strong)); }
.ai-rank-2::before { background: linear-gradient(180deg, var(--v10-gold), var(--v10-gold-strong)); }
.ai-rank-3::before { background: linear-gradient(180deg, var(--ratia-cyan), var(--ratia-blue)); }

/* Head: rank label + percentage */
.ai-rank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(15, 42, 74, 0.18);
}
.ai-rank-label {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(217, 165, 54, 0.12), rgba(217, 165, 54, 0.04));
  border-radius: 3px;
  flex-shrink: 0;
}
.ai-rank-1 .ai-rank-label {
  background: linear-gradient(135deg, rgba(193, 62, 42, 0.14), rgba(193, 62, 42, 0.04));
  color: var(--v10-red-strong);
}

/* The huge percentage number */
.ai-rank-pct {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 0.9;
}
.ai-rank-pct em {
  font-style: italic;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(46px, 12vw, 60px);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--v10-gold-light) 0%, var(--v10-gold) 50%, var(--v10-gold-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 rgba(183, 131, 29, 0.08);
  filter: drop-shadow(0 4px 12px rgba(217, 165, 54, 0.35));
}
.ai-rank-1 .ai-rank-pct em {
  background: linear-gradient(180deg, #E5644E 0%, var(--v10-red) 50%, var(--v10-red-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(193, 62, 42, 0.35));
}
.ai-rank-pct small {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--v10-gold-strong);
  margin-left: 2px;
}
.ai-rank-1 .ai-rank-pct small {
  color: var(--v10-red);
}

/* Title */
.ai-rank-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.ai-rank-tag {
  display: inline-block;
  font-size: 0.92em;
  color: var(--v10-red);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.ai-rank-2 .ai-rank-tag {
  color: var(--v10-gold-strong);
}
.ai-rank-title strong {
  font-weight: 600;
  color: var(--v10-ink);
  font-size: 1.06em;
  background-image: linear-gradient(transparent 62%, rgba(217, 165, 54, 0.2) 62%, rgba(217, 165, 54, 0.2) 92%, transparent 92%);
}
.ai-rank-1 .ai-rank-title strong {
  background-image: linear-gradient(transparent 62%, rgba(193, 62, 42, 0.18) 62%, rgba(193, 62, 42, 0.18) 92%, transparent 92%);
}

/* Description */
.ai-rank-desc {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--text-body);
}
.ai-rank-desc em {
  font-style: normal;
  font-weight: 600;
  color: var(--v10-red-strong);
}

/* Tablet / desktop adjustments */
@media (min-width: 768px) {
  .ai-data-board { padding: 64px 0 52px; }
  .ai-rank-list { gap: 18px; }
  .ai-rank-item { padding: 26px 26px 28px; }
  .ai-rank-title { font-size: 16.5px; }
  .ai-rank-desc { font-size: 13px; }
}


/* ============================================
   V10 §1b: DISCOVERY COPY BLOCK
   Placed right under the AI Data Board, before KPI Board.
   ============================================ */
.discovery-copy {
  background: linear-gradient(180deg, #ECE6D8 0%, #FBFCFD 60%, #FBFCFD 100%);
  padding: 44px 0 56px;
}
.discovery-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.discovery-headline {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.discovery-headline em {
  font-style: normal;
  font-weight: 600;
  color: var(--v10-gold-strong);
  background-image: linear-gradient(transparent 62%, rgba(217, 165, 54, 0.22) 62%, rgba(217, 165, 54, 0.22) 92%, transparent 92%);
}
.discovery-body {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 13px;
  line-height: 2.05;
  letter-spacing: 0.05em;
  color: var(--text-body);
  text-align: left;
  margin-bottom: 32px;
}
.discovery-body p {
  margin-bottom: 16px;
}
.discovery-body p:last-child {
  margin-bottom: 0;
}
.discovery-body em {
  font-style: normal;
  font-weight: 600;
  color: var(--v10-red);
}
.discovery-body strong {
  font-weight: 600;
  color: var(--v10-gold-strong);
  background-image: linear-gradient(transparent 65%, rgba(217, 165, 54, 0.18) 65%, rgba(217, 165, 54, 0.18) 92%, transparent 92%);
}

/* CTA inside discovery-copy uses the global .hero-cta styling already in V9.4 */
.discovery-copy .hero-cta {
  margin-top: 4px;
}

@media (min-width: 768px) {
  .discovery-copy { padding: 56px 0 68px; }
  .discovery-body { font-size: 14px; }
}


/* ============================================
   V10 §2: 3 REAL CASES - PHOTO + LINKED LABELS
   - Switch SVG graph to real photo with overlay
   - Tag = ranking (第1位 92%) with red/gold accent
   - Title formatted to match AI Data Board ranks
   ============================================ */

/* ==== Photo replacement of case-card-graph ==== */
.case-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--ratia-blue-deep) 0%, #1a3560 100%);
  overflow: hidden;
}
.case-card-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Dark overlay for legibility of overlaid text */
.case-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 18, 32, 0.55) 0%,
      rgba(10, 18, 32, 0.2) 35%,
      rgba(10, 18, 32, 0.15) 65%,
      rgba(10, 18, 32, 0.7) 100%);
  z-index: 1;
}
/* Overlay text on top */
.case-card-photo .case-card-graph-num,
.case-card-photo .case-card-graph-tag,
.case-card-photo .case-card-graph-label {
  z-index: 2;
}

/* === Rank tag pill (第1位 92%) === */
.case-card-photo .case-card-graph-tag {
  font-family: var(--ff-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  color: #fff;
}
/* Rank-1 (red) */
.case-card[data-case="1"] .case-card-graph-tag {
  background: linear-gradient(135deg, rgba(193, 62, 42, 0.85), rgba(139, 42, 26, 0.85));
  border-color: rgba(255, 200, 195, 0.4);
  color: #fff;
}
/* Rank-2 (gold) */
.case-card[data-case="2"] .case-card-graph-tag {
  background: linear-gradient(135deg, rgba(217, 165, 54, 0.9), rgba(183, 131, 29, 0.9));
  border-color: rgba(255, 230, 168, 0.4);
  color: #fff;
}
/* Rank-3 (cyan/blue) */
.case-card[data-case="3"] .case-card-graph-tag {
  background: linear-gradient(135deg, rgba(29, 159, 179, 0.85), rgba(28, 97, 175, 0.85));
  border-color: rgba(200, 240, 245, 0.4);
  color: #fff;
}

/* === Big number 01/02/03 === */
.case-card-photo .case-card-graph-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* === Bottom label === */
.case-card-photo .case-card-graph-label {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 3px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* === Card title (V10 linked-rank style) === */
.case-card-tag {
  display: inline-block;
  font-size: 0.92em;
  color: var(--v10-red);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.case-card[data-case="2"] .case-card-tag {
  color: var(--v10-gold-strong);
}
.case-card[data-case="3"] .case-card-tag {
  color: var(--ratia-blue);
}
.case-card-title {
  line-height: 1.65;
}
.case-card-title strong {
  font-weight: 600;
  color: var(--v10-ink);
  background-image: linear-gradient(transparent 62%, rgba(217, 165, 54, 0.18) 62%, rgba(217, 165, 54, 0.18) 92%, transparent 92%);
}
.case-card[data-case="1"] .case-card-title strong {
  background-image: linear-gradient(transparent 62%, rgba(193, 62, 42, 0.16) 62%, rgba(193, 62, 42, 0.16) 92%, transparent 92%);
}
.case-card[data-case="3"] .case-card-title strong {
  background-image: linear-gradient(transparent 62%, rgba(29, 159, 179, 0.18) 62%, rgba(29, 159, 179, 0.18) 92%, transparent 92%);
}

/* === Summary: emphasize the linked percentage === */
.case-card-summary em {
  font-style: normal;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.18em;
  color: var(--v10-red-strong);
  letter-spacing: 0.02em;
  background: none;
}
.case-card[data-case="2"] .case-card-summary em {
  color: var(--v10-gold-strong);
}
.case-card[data-case="3"] .case-card-summary em {
  color: var(--ratia-blue);
}

/* === cases-nav: V10 label tweak (rank + %) === */
.cases-nav-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.cases-nav-label em {
  font-style: italic;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.25em;
  letter-spacing: 0.01em;
}
.cases-nav-item[data-target="1"].active .cases-nav-label em { color: var(--v10-red); }
.cases-nav-item[data-target="2"].active .cases-nav-label em { color: var(--v10-gold-strong); }
.cases-nav-item[data-target="3"].active .cases-nav-label em { color: var(--ratia-blue); }

/* cases-nav active highlight should match rank color */
.cases-nav-item[data-target="1"].active {
  background: linear-gradient(180deg, #fff 0%, #FCE6E1 100%);
  border-color: var(--v10-red);
}
.cases-nav-item[data-target="1"].active::before {
  background: linear-gradient(90deg, var(--v10-red), #E5644E);
}
.cases-nav-item[data-target="1"].active .cases-nav-num,
.cases-nav-item[data-target="1"].active .cases-nav-tag {
  color: var(--v10-red-strong);
}
.cases-nav-item[data-target="1"].active .cases-nav-sym {
  color: var(--v10-red);
}
.cases-nav-item[data-target="3"].active {
  background: linear-gradient(180deg, #fff 0%, #DAF1F4 100%);
  border-color: var(--ratia-cyan);
}
.cases-nav-item[data-target="3"].active::before {
  background: linear-gradient(90deg, var(--ratia-cyan), var(--ratia-blue));
}
.cases-nav-item[data-target="3"].active .cases-nav-num,
.cases-nav-item[data-target="3"].active .cases-nav-tag {
  color: var(--ratia-blue);
}
.cases-nav-item[data-target="3"].active .cases-nav-sym {
  color: var(--ratia-cyan);
}


/* ============================================
   V10 §3+4: BEAUTY LOVE LETTER MODAL
   Replaces minimal modal with full multi-section letter content from PDFs
   ============================================ */

/* Make modal dialog larger and scrollable for letter format */
.case-letter {
  max-width: 720px !important;
  width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 48px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #fff !important;
  display: flex;
  flex-direction: column;
}

/* The close button is positioned absolutely inside */
.case-letter .case-modal-close {
  position: absolute !important;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(15, 42, 74, 0.85);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === Letter Header (Deep Beautic banner) === */
.case-letter-header {
  flex-shrink: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(135deg,
    #2a1854 0%,
    #4a1a6b 35%,
    #6b1f7e 70%,
    #8c2693 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.case-letter-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  right: -20%;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,200,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.case-letter-brand {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.case-letter-brand-dim {
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
}
.case-letter-stamp {
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
}
.case-letter-stamp-mid {
  background: linear-gradient(135deg, #FFD56F, #D9A536);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.case-letter-stamp-sig {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-left: 4px;
}

/* === Scrollable letter body === */
.case-letter > :not(.case-letter-header):not(.case-modal-close):not(.case-letter-footer) {
  flex-shrink: 0;
}
.case-letter {
  overflow-y: auto !important;
  scrollbar-width: thin;
}
.case-letter::-webkit-scrollbar {
  width: 8px;
}
.case-letter::-webkit-scrollbar-track {
  background: rgba(15, 42, 74, 0.05);
}
.case-letter::-webkit-scrollbar-thumb {
  background: rgba(15, 42, 74, 0.2);
  border-radius: 4px;
}

/* === Rank label === */
.case-letter-rank {
  margin: 18px 24px 0;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--v10-red-strong);
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(193, 62, 42, 0.1), rgba(193, 62, 42, 0.03));
  border-left: 3px solid var(--v10-red);
  border-radius: 0 4px 4px 0;
  display: inline-block;
}
.case-letter-2 .case-letter-rank {
  color: var(--v10-gold-strong);
  background: linear-gradient(135deg, rgba(217, 165, 54, 0.12), rgba(217, 165, 54, 0.03));
  border-left-color: var(--v10-gold);
}
.case-letter-3 .case-letter-rank {
  color: var(--ratia-blue);
  background: linear-gradient(135deg, rgba(28, 97, 175, 0.1), rgba(28, 97, 175, 0.03));
  border-left-color: var(--ratia-cyan);
}
.case-letter-rank em {
  font-style: italic;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3em;
  margin: 0 4px;
}

/* === Title === */
.case-letter-title {
  margin: 14px 24px 12px;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.case-letter-title strong {
  font-weight: 600;
  color: var(--v10-ink);
  background-image: linear-gradient(transparent 62%, rgba(217, 165, 54, 0.22) 62%, rgba(217, 165, 54, 0.22) 92%, transparent 92%);
  padding: 0 2px;
}
.case-letter-subtitle {
  margin: 0 24px 6px;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--text-body);
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(15, 42, 74, 0.18);
}
.case-letter-subtitle strong {
  font-weight: 600;
  color: var(--v10-red-strong);
}

/* === Intro (warm greeting) === */
.case-letter-intro {
  margin: 20px 24px;
  padding: 18px 18px;
  background: linear-gradient(135deg, #FBF7E8 0%, #FDF9EA 100%);
  border: 1px solid rgba(217, 165, 54, 0.2);
  border-radius: 6px;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-body);
}
.case-letter-intro p {
  margin-bottom: 12px;
}
.case-letter-intro p:last-child {
  margin-bottom: 0;
}
.case-letter-intro em {
  font-style: normal;
  font-weight: 500;
  color: var(--v10-red-strong);
}
.case-letter-intro strong {
  font-weight: 600;
  color: var(--v10-ink);
  background-image: linear-gradient(transparent 65%, rgba(193, 62, 42, 0.15) 65%, rgba(193, 62, 42, 0.15) 92%, transparent 92%);
}

/* === Section === */
.case-letter-section {
  margin: 18px 24px;
}
.case-letter-h {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--v10-red-strong);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--v10-red);
}
.case-letter-2 .case-letter-h {
  color: var(--v10-gold-strong);
  border-bottom-color: var(--v10-gold);
}
.case-letter-3 .case-letter-h {
  color: var(--ratia-blue);
  border-bottom-color: var(--ratia-cyan);
}
.case-letter-section > p {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--text-body);
  margin-bottom: 14px;
}
.case-letter-section > p em {
  font-style: normal;
  font-weight: 500;
  color: var(--v10-red-strong);
}
.case-letter-section > p strong {
  font-weight: 600;
  color: var(--v10-ink);
}

/* === Sub-blocks (inside section) === */
.case-letter-block {
  background: #FAFAF7;
  border-left: 3px solid var(--v10-gold);
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
}
.case-letter-1 .case-letter-block {
  border-left-color: var(--v10-red);
}
.case-letter-3 .case-letter-block {
  border-left-color: var(--ratia-cyan);
}
.case-letter-block-head {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 6px !important;
  letter-spacing: 0.03em;
}
.case-letter-block p:not(.case-letter-block-head) {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 8px;
}
.case-letter-block p:last-child {
  margin-bottom: 0 !important;
}
.case-letter-block em {
  font-style: normal;
  font-weight: 500;
  color: var(--v10-red-strong);
}
.case-letter-block strong {
  font-weight: 600;
  color: var(--v10-ink);
  background-image: linear-gradient(transparent 65%, rgba(193, 62, 42, 0.15) 65%, rgba(193, 62, 42, 0.15) 92%, transparent 92%);
}

/* === Diagnosis Table === */
.case-letter-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-sans);
  font-size: 11.5px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.case-letter-table thead th {
  background: var(--ratia-blue-deep);
  color: #fff;
  padding: 8px 10px;
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
}
.case-letter-table tbody th {
  background: #F5F0E0;
  color: var(--v10-ink);
  padding: 10px 10px;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 11.5px;
  text-align: left;
  border-bottom: 1px solid #fff;
  vertical-align: top;
  width: 30%;
}
.case-letter-table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(15, 42, 74, 0.08);
  vertical-align: top;
  color: var(--text-body);
}
.case-letter-table tbody td:first-of-type {
  width: 30%;
}
.case-letter-tag-warn {
  display: inline-block;
  background: linear-gradient(135deg, #C13E2A 0%, #8B2A1A 100%);
  color: #fff;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* === Solution List === */
.case-letter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: cll;
}
.case-letter-list li {
  position: relative;
  background: linear-gradient(135deg, #FBF7E8 0%, #fff 60%);
  border: 1px solid rgba(217, 165, 54, 0.25);
  border-radius: 6px;
  padding: 14px 16px 16px;
  margin-bottom: 12px;
}
.case-letter-list-num li {
  counter-increment: cll;
  padding-left: 48px;
}
.case-letter-list-num li::before {
  content: counter(cll);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v10-gold), var(--v10-gold-strong));
  color: #fff;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-letter-list-head {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--v10-gold-strong);
  margin-bottom: 6px !important;
  letter-spacing: 0.03em;
}
.case-letter-list li p:not(.case-letter-list-head) {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0;
}
.case-letter-list em {
  font-style: normal;
  font-weight: 500;
  color: var(--v10-red-strong);
}
.case-letter-list strong {
  font-weight: 600;
  color: var(--v10-ink);
  background-image: linear-gradient(transparent 65%, rgba(217, 165, 54, 0.2) 65%, rgba(217, 165, 54, 0.2) 92%, transparent 92%);
}

/* === Promise (closing) === */
.case-letter-promise {
  margin: 20px 24px;
  padding: 20px 18px;
  background: linear-gradient(135deg, var(--ratia-blue-deep) 0%, #1a3560 100%);
  color: #fff;
  border-radius: 6px;
}
.case-letter-promise-head {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 14px;
  color: #FFD56F;
  margin-bottom: 12px !important;
  letter-spacing: 0.04em;
}
.case-letter-promise p:not(.case-letter-promise-head) {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}
.case-letter-promise p:last-child {
  margin-bottom: 0;
}
.case-letter-promise em {
  font-style: normal;
  font-weight: 500;
  color: #FFD56F;
}
.case-letter-promise strong {
  font-weight: 600;
  color: #fff;
  background-image: linear-gradient(transparent 65%, rgba(255, 213, 111, 0.25) 65%, rgba(255, 213, 111, 0.25) 92%, transparent 92%);
}

/* === Footer CTA === */
.case-letter-footer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 30%);
  padding: 16px 24px 20px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(15, 42, 74, 0.08);
  flex-shrink: 0;
}
.case-letter-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--v9-orange) 0%, #E58A1A 60%, #DA931B 100%);
  color: #fff;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(198, 112, 8, 0.55);
  transition: all 0.3s ease;
}
.case-letter-cta:hover {
  background: linear-gradient(135deg, #E58A1A 0%, var(--v9-orange) 60%, var(--v9-orange-strong) 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(198, 112, 8, 0.7);
}
.case-letter-cta span {
  font-family: var(--ff-display);
  font-style: italic;
}

/* Tablet+ */
@media (min-width: 600px) {
  .case-letter-rank { margin-left: 32px; margin-right: 32px; }
  .case-letter-title { margin-left: 32px; margin-right: 32px; }
  .case-letter-subtitle { margin-left: 32px; margin-right: 32px; }
  .case-letter-intro { margin-left: 32px; margin-right: 32px; padding: 22px 22px; }
  .case-letter-section { margin-left: 32px; margin-right: 32px; }
  .case-letter-promise { margin-left: 32px; margin-right: 32px; padding: 24px 24px; }
  .case-letter-footer { padding-left: 32px; padding-right: 32px; }
  .case-letter-table { font-size: 12.5px; }
  .case-letter-section > p { font-size: 13.5px; }
  .case-letter-block-head { font-size: 14px; }
  .case-letter-block p:not(.case-letter-block-head) { font-size: 13px; }
}


/* ============================================
   V10.3: SR修正3.pdf 全項目対応
   - AI Data Board: eyebrow removed, side-by-side ranks
   - KPI cells: no icons, more compact vertically
   - case-card: DeepBeautic banner band + vertical label
   - Modal header: banner image replacement
   - Experts: auto-slider styles
   - Salon Care: tighter card spacing
   ============================================ */

/* ===== AI Data Board: tighter header (no eyebrow) ===== */
.ai-data-header {
  margin-bottom: 26px;
}

/* ===== AI rank items: side-by-side layout ===== */
.ai-rank-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(15, 42, 74, 0.18);
}
.ai-rank-row .ai-rank-head {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ai-rank-row .ai-rank-label {
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.ai-rank-row .ai-rank-pct em {
  font-size: clamp(38px, 10vw, 48px);
}
.ai-rank-row .ai-rank-pct small {
  font-size: 18px;
}
.ai-rank-title {
  margin-bottom: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-rank-title .ai-rank-tag {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
}
.ai-rank-symptom {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.ai-rank-symptom strong {
  font-weight: 600;
  color: var(--v10-ink);
  background-image: linear-gradient(transparent 62%, rgba(217, 165, 54, 0.2) 62%, rgba(217, 165, 54, 0.2) 92%, transparent 92%);
}
.ai-rank-1 .ai-rank-symptom strong {
  background-image: linear-gradient(transparent 62%, rgba(193, 62, 42, 0.18) 62%, rgba(193, 62, 42, 0.18) 92%, transparent 92%);
}
.ai-rank-item {
  padding: 16px 16px 18px;
}
.ai-rank-desc {
  font-size: 11.5px;
  line-height: 1.75;
}

@media (min-width: 480px) {
  .ai-rank-row {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }
  .ai-rank-row .ai-rank-pct em { font-size: 50px; }
  .ai-rank-symptom { font-size: 14px; }
}

/* ===== KPI cells: no icons → tighter, more compact ===== */
.kpi-cell {
  padding: 12px 12px 14px;
  gap: 4px;
}
.kpi-cell-text {
  font-size: 12px;
  line-height: 1.7;
}
.kpi-cell-text strong {
  font-size: 14px;
  margin-bottom: 4px;
}

/* ===== case-card: DeepBeautic banner band + vertical label ===== */
.case-card-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  overflow: hidden;
  z-index: 3;
}
.case-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.case-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,0.3) 100%);
}

/* Vertical label on photo */
.case-card-vlabel {
  position: absolute;
  top: 38px;
  left: 10px;
  z-index: 3;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: rgba(15, 42, 74, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 10px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
}
.case-card-vlabel-tag {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #FFD56F;
  line-height: 1.2;
}
.case-card-vlabel-symptom {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.2;
}

/* Rank tag pill: position to RIGHT-TOP, below the banner band */
.case-card-photo .case-card-graph-tag {
  top: auto;
  bottom: 12px;
  right: 12px;
  z-index: 3;
}

/* Hide the old graph-num and graph-label since we have vertical labels now */
.case-card-photo .case-card-graph-num,
.case-card-photo .case-card-graph-label {
  display: none;
}

/* Adjust overlay to start below banner */
.case-card-photo::after {
  background:
    linear-gradient(180deg,
      rgba(10, 18, 32, 0.0) 0%,
      rgba(10, 18, 32, 0.0) 12%,
      rgba(10, 18, 32, 0.3) 35%,
      rgba(10, 18, 32, 0.25) 65%,
      rgba(10, 18, 32, 0.7) 100%);
}


/* ===== Modal: replace gradient header with banner image ===== */
.case-letter-header-img {
  padding: 0 !important;
  background: none !important;
  border-bottom: none !important;
  position: relative;
  overflow: hidden;
}
.case-letter-header-img::before { display: none; }
.case-letter-header-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 88px;
  object-fit: cover;
  object-position: center;
}


/* ===== Experts: auto-slider ===== */
/* v136 ②: experts を CSS シームレス無限ループへ（setInterval廃止） */
.experts-auto-slider {
  scroll-snap-type: none;
  overflow: hidden;            /* 手動スクロールバー無効・自動ループ専用 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.experts-auto-slider .experts-track {
  width: max-content;
  animation: expertsScroll 24s linear infinite;
  will-change: transform;
}
.experts-auto-slider:hover .experts-track,
.experts-auto-slider:active .experts-track {
  animation-play-state: paused;   /* ホバー／タップで一時停止 */
}
@keyframes expertsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* 複製2セットの片方分でループ */
}
@media (prefers-reduced-motion: reduce) {
  .experts-auto-slider .experts-track { animation: none; }
}
/* Hint text tweak */
.experts-hint {
  opacity: 0.7;
}


/* ===== Salon Care: more compact card width, peek next ===== */
.care-carousel {
  /* Show ~80% of next card */
}
.care-track .care-card {
  flex-shrink: 0;
  /* Make individual cards narrower so 2nd is more visible */
  width: 78vw;
  max-width: 280px;
}
@media (min-width: 600px) {
  .care-track .care-card {
    width: 58vw;
    max-width: 320px;
  }
}
@media (min-width: 900px) {
  .care-track .care-card {
    width: 32vw;
    max-width: 320px;
  }
}


/* ============================================
   V10.4: SR修正4.pdf 全項目対応
   1. AI rank row: 1文字左寄せで折り返し改善
   2. KPI badge: 左右を深ネイビーで視認性UP
   3. セクション間余白を半分に
   4. AI×14: 3 REAL CASES と dots 削除済（HTML側）
   5. case-card: バナー帯削除済（HTML側）
   6. case-card: 順位ラベル左上 + 縦書きラベル2行レイアウト
   7. Salon Care: カード更にコンパクト + 写真上下10%カット
   8. Experts: 3x speed (JS側で対応済)
   9. Modal close button: 2倍サイズ
   10. Modal table: 2列化 + 補足figure画像
   ============================================ */

/* === SR4-1: AI rank row - 1文字左寄せでバランス改善 === */
.ai-rank-row {
  /* 96px → 88px に縮小、右側に余裕を */
  grid-template-columns: 88px 1fr !important;
  gap: 10px;
}
.ai-rank-title {
  /* 1行に収まりやすくフォントサイズを微調整 */
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}
.ai-rank-symptom {
  font-size: 12.5px;
  line-height: 1.55;
}
.ai-rank-title .ai-rank-tag {
  font-size: 10px;
}
@media (min-width: 480px) {
  .ai-rank-row {
    grid-template-columns: 100px 1fr !important;
  }
  .ai-rank-symptom { font-size: 13.5px; }
}


/* === SR4-2: KPI badge 左右を深ネイビーで視認性UP === */
/* 中央 hilite はそのままオレンジ、左右をネイビーへ */
.kpi-badges .kpi-badge:not(.kpi-badge-hilite) {
  background: linear-gradient(180deg, #1B3A5F 0%, var(--ratia-blue-deep) 100%) !important;
  border: 1px solid rgba(91, 143, 185, 0.3) !important;
  box-shadow: 0 4px 14px -6px rgba(15, 42, 74, 0.4);
}
.kpi-badges .kpi-badge:not(.kpi-badge-hilite) .kpi-badge-label {
  color: rgba(255, 213, 111, 0.9) !important;
  font-weight: 600;
}
.kpi-badges .kpi-badge:not(.kpi-badge-hilite) .kpi-badge-num em {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}
.kpi-badges .kpi-badge:not(.kpi-badge-hilite) .kpi-badge-num small {
  color: rgba(255, 255, 255, 0.85) !important;
}
.kpi-badges .kpi-badge:not(.kpi-badge-hilite) .kpi-badge-sub {
  color: rgba(255, 255, 255, 0.75) !important;
}


/* === SR4-3: セクション間の余白を半分に圧縮 === */
.ai-data-board {
  padding: 28px 0 22px !important;
}
.discovery-copy {
  padding: 24px 0 32px !important;
}
.kpi-board {
  padding-top: 24px !important;
}
.analysis {
  padding-top: 28px !important;
}
.ai-data-header {
  margin-bottom: 18px !important;
}
.ai-rank-list {
  gap: 10px !important;
}
.discovery-headline {
  margin-bottom: 18px !important;
}
.discovery-body {
  margin-bottom: 22px !important;
}
.discovery-body p {
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .ai-data-board { padding: 36px 0 30px !important; }
  .discovery-copy { padding: 32px 0 42px !important; }
}


/* === SR4-4: analysis-header simplified (HTMLで削除済み) === */
.analysis-header {
  margin-bottom: 24px;
}


/* === SR4-5: case-card banner removed (HTML側で削除済み) === */
/* 写真上のオーバーレイを先頭から開始するよう調整 */
.case-card-photo::after {
  background:
    linear-gradient(180deg,
      rgba(10, 18, 32, 0.45) 0%,
      rgba(10, 18, 32, 0.2) 30%,
      rgba(10, 18, 32, 0.15) 60%,
      rgba(10, 18, 32, 0.7) 100%) !important;
}


/* === SR4-6a: 順位ラベルを左上配置 === */
.case-card-photo .case-card-graph-tag {
  top: 10px !important;
  left: 10px !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 4;
}


/* === SR4-6b: 縦書きラベル → 2列レイアウト === */
.case-card-vlabel {
  top: 50px !important;
  left: 10px !important;
  display: flex;
  flex-direction: row;
  gap: 4px;
  padding: 12px 4px;
  background: rgba(15, 42, 74, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.case-card-vlabel-line {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.2;
  display: block;
  padding: 0 1px;
}
.case-card-vlabel-line.case-card-vlabel-tag {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #FFD56F;
}
.case-card-vlabel-line.case-card-vlabel-symptom {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #fff;
}


/* === SR4-7: Salon Care - カード更にコンパクト、写真上下10%カット === */
.care-track .care-card {
  width: 64vw !important;
  max-width: 230px !important;
}
@media (min-width: 600px) {
  .care-track .care-card {
    width: 48vw !important;
    max-width: 260px !important;
  }
}
@media (min-width: 900px) {
  .care-track .care-card {
    width: 30vw !important;
    max-width: 280px !important;
  }
}
/* 写真の上下を10%カット → object-position で中央クロップ */
.care-card .care-card-img,
.care-card .care-card-img img {
  height: 160px !important;
}
.care-card .care-card-img img {
  object-fit: cover;
  object-position: center center;
  /* 写真上下10%カット相当: 高さを少し増やしてセンタリング */
  transform: scale(1.1);
}


/* === SR4-9: モーダル閉じるボタンを2倍大型化 === */
.case-modal-close-lg {
  width: 64px !important;
  height: 64px !important;
  font-size: 32px !important;
  top: 14px !important;
  right: 14px !important;
  background: rgba(15, 42, 74, 0.92) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  z-index: 100 !important;
  transition: transform 0.2s ease;
}
.case-modal-close-lg:hover {
  transform: scale(1.08);
  background: rgba(15, 42, 74, 1) !important;
}
@media (min-width: 600px) {
  .case-modal-close-lg {
    width: 72px !important;
    height: 72px !important;
    font-size: 36px !important;
  }
}


/* === SR4-10: 表を2列化 + コンパクト === */
.case-letter-table-2col thead th {
  font-size: 10px;
  padding: 7px 9px;
  letter-spacing: 0.1em;
}
.case-letter-table-2col thead th:first-child {
  width: 40%;
}
.case-letter-table-2col tbody td {
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.65;
  vertical-align: top;
}
.case-letter-table-2col tbody td:first-child {
  width: 40%;
}
.case-letter-tag-warn {
  font-size: 10.5px;
  padding: 3px 7px;
  line-height: 1.45;
}
@media (min-width: 600px) {
  .case-letter-table-2col tbody td {
    font-size: 12px;
  }
  .case-letter-tag-warn {
    font-size: 11.5px;
  }
}


/* === 補足図画像（真実の自覚セクション内）=== */
.case-letter-figure {
  margin: 16px 0 18px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 74, 0.12);
  box-shadow: 0 8px 22px -10px rgba(15, 42, 74, 0.25);
  background: #fff;
}
.case-letter-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.case-letter-figure figcaption {
  padding: 8px 12px;
  background: linear-gradient(135deg, #FBF7E8 0%, #FDF9EA 100%);
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--v10-gold-strong);
  text-align: center;
  border-top: 1px dashed rgba(217, 165, 54, 0.4);
}
.case-letter-1 .case-letter-figure figcaption {
  color: var(--v10-red-strong);
  background: linear-gradient(135deg, #FCE6E1 0%, #FFEFEA 100%);
  border-top-color: rgba(193, 62, 42, 0.4);
}
.case-letter-3 .case-letter-figure figcaption {
  color: var(--ratia-blue);
  background: linear-gradient(135deg, #DAF1F4 0%, #E8F4F6 100%);
  border-top-color: rgba(28, 97, 175, 0.4);
}


/* === タイトルの強調装飾 === */
.case-letter-title strong {
  color: var(--v10-gold-strong);
  background: none !important;
  font-weight: 600;
  font-family: var(--ff-display);
  font-style: italic;
  letter-spacing: 0.02em;
}
.case-letter-1 .case-letter-title strong { color: var(--v10-red-strong); }
.case-letter-3 .case-letter-title strong { color: var(--ratia-blue); }


/* ============================================
   V10.5: PER-CASE TITLE + HERO FIGURE
   - Modal titles: PDF-derived per-case headlines
   - Subtitle: PDF subtitle text
   - From signature: "— ラティアからあなたへのビューティラブレター —"
   - Figure: hero treatment at top of "真実の自覚" section
   ============================================ */

/* === タイトル: ケースごとに違うインパクト見出し === */
.case-letter-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 26px) !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em;
  margin: 12px 24px 8px !important;
  color: var(--text-primary);
}
.case-letter-title strong {
  display: inline-block;
  font-weight: 700;
  font-family: var(--ff-serif);
  font-style: normal;
  letter-spacing: 0.04em;
  font-size: 1.1em;
  padding: 0 3px;
  background-image: linear-gradient(transparent 62%, rgba(217, 165, 54, 0.28) 62%, rgba(217, 165, 54, 0.28) 92%, transparent 92%);
}
.case-letter-1 .case-letter-title strong {
  color: var(--v10-red-strong);
  background-image: linear-gradient(transparent 62%, rgba(193, 62, 42, 0.22) 62%, rgba(193, 62, 42, 0.22) 92%, transparent 92%);
}
.case-letter-2 .case-letter-title strong {
  color: var(--v10-gold-strong);
}
.case-letter-3 .case-letter-title strong {
  color: var(--ratia-blue);
  background-image: linear-gradient(transparent 62%, rgba(29, 159, 179, 0.25) 62%, rgba(29, 159, 179, 0.25) 92%, transparent 92%);
}

/* === サブタイトル === */
.case-letter-subtitle {
  border-bottom: none !important;
  padding-bottom: 8px !important;
  margin-bottom: 6px !important;
}

/* === FROM署名 (タイトル下) === */
.case-letter-from {
  margin: 0 24px 18px !important;
  padding-bottom: 18px !important;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(15, 42, 74, 0.55);
  text-align: center;
  border-bottom: 1px dashed rgba(15, 42, 74, 0.18);
}

@media (min-width: 600px) {
  .case-letter-from { margin-left: 32px !important; margin-right: 32px !important; font-size: 12px; }
}


/* === HERO FIGURE: section頂部に大型表示 === */
.case-letter-figure-hero {
  margin: 0 -24px 18px !important;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: 0 16px 32px -16px rgba(15, 42, 74, 0.3);
  position: relative;
}
.case-letter-figure-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.case-letter-figure-hero figcaption {
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

@media (min-width: 600px) {
  .case-letter-figure-hero {
    margin-left: -32px !important;
    margin-right: -32px !important;
  }
  .case-letter-figure-hero figcaption {
    font-size: 13px;
    padding: 14px 24px;
  }
}

/* セクションがhero figureを含む場合、見出しと画像の間を引き締める */
.case-letter-section .case-letter-h + .case-letter-figure-hero {
  margin-top: 4px !important;
}


/* ============================================
   V10.7: INTRO OVERLAY — Cross-fade with timing offset
   ─────────────────────────────────────────────
   Total: 5.0s
   3 layers (bg / text / logo), each animated independently.

   Timeline:
   0.0s ━━━━━━━ Welcome shown ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.0s
   bg-1 (purple): opacity 0→1→1→0   (0.0 → 0.4 → 1.4 → 1.8s)
   bg-2 (mono):   opacity 0→1→1→0   (1.5 → 1.9 → 2.8 → 3.2s)
   bg-3 (color):  opacity 0→1→1→0   (3.0 → 3.4 → 4.7 → 5.0s)

   text-1 (Welcome): in 0.3s, out 1.2s  (先行で消える: bg-1 より早く)
   text-2 (無知):    in 1.9s, out 2.7s  (bg-2 が定着後に出現、bg-2 より早く消える)
   text-3 (自覚):    in 3.6s, out 5.0s  (bg-3 が定着後に出現)

   Logo: visible 0.4s → 4.7s (常時 75% 位置に固定)
   ============================================ */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1a0d2e;
  display: none;
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
}
.intro-overlay.is-active {
  display: block;
}
.intro-overlay.is-exiting {
  animation: introOverlayFadeOut 0.5s ease forwards;
}
@keyframes introOverlayFadeOut {
  to { opacity: 0; }
}

/* Skip button */
.intro-skip {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  padding: 7px 16px;
  border-radius: 99px;
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  animation: introSkipIn 0.5s ease 0.4s forwards;
  transition: background 0.2s ease;
}
.intro-skip:hover { background: rgba(255, 255, 255, 0.2); }
.intro-skip span { display: inline-block; margin-left: 4px; font-style: italic; }
@keyframes introSkipIn {
  to { opacity: 1; }
}


/* ============================================
   BACKGROUND LAYER — Cross-fade between 3 backgrounds
   ============================================ */
.intro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  z-index: 1;
}

/* BG-1: Deep purple */
.intro-bg-1 {
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, rgba(180, 140, 220, 0.15), transparent 70%),
    #1a0d2e;
  animation: introBg1 5s ease forwards;
}
@keyframes introBg1 {
  0%   { opacity: 0; }
  8%   { opacity: 1; }  /* 0.0s ~ 0.4s fade in */
  28%  { opacity: 1; }  /* hold until 1.4s */
  36%  { opacity: 0; }  /* fade out to 1.8s */
  100% { opacity: 0; }
}

/* BG-2: HERO photo monochrome */
.intro-bg-2 {
  background-image:
    linear-gradient(180deg, rgba(26, 13, 46, 0.15) 0%, rgba(26, 13, 46, 0.3) 50%, rgba(26, 13, 46, 0.85) 80%, rgba(26, 13, 46, 1) 100%),
    url('/uploads/2025/08/pixta1200px_57267565_M.jpg');
  filter: grayscale(1) brightness(0.7) contrast(1.1);
  animation: introBg2 5s ease forwards;
}
@keyframes introBg2 {
  0%   { opacity: 0; }
  30%  { opacity: 0; }  /* hold dark until 1.5s */
  38%  { opacity: 1; }  /* fade in by 1.9s */
  56%  { opacity: 1; }  /* hold until 2.8s */
  64%  { opacity: 0; }  /* fade out by 3.2s */
  100% { opacity: 0; }
}

/* BG-3: HERO photo full color */
.intro-bg-3 {
  background-image:
    linear-gradient(180deg, rgba(26, 13, 46, 0.0) 0%, rgba(26, 13, 46, 0.1) 50%, rgba(26, 13, 46, 0.55) 80%, rgba(26, 13, 46, 0.9) 100%),
    url('/uploads/2025/08/pixta1200px_57267565_M.jpg');
  animation: introBg3 5s ease forwards;
}
@keyframes introBg3 {
  0%   { opacity: 0; }
  60%  { opacity: 0; }  /* hold until 3.0s */
  68%  { opacity: 1; }  /* fade in by 3.4s */
  94%  { opacity: 1; }  /* hold until 4.7s */
  100% { opacity: 0; }  /* fade out by 5.0s */
}


/* ============================================
   TEXT LAYER — Each line fades in/out with timing offset
   ============================================ */
.intro-text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0 24px;
  font-family: var(--ff-serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* All text lines positioned in upper-middle area (above logo at 75%) */
.intro-text-1, .intro-text-2, .intro-text-3 {
  top: 38%;
  transform: translateY(-50%);
}

/* === Text 1: Welcome + TOTAL BEAUTY SHOP === */
.intro-text-1 {
  animation: introText1 5s ease forwards;
}
.intro-welcome {
  display: block;
  font-size: clamp(32px, 8vw, 44px);
  letter-spacing: 0.06em;
  color: rgba(220, 200, 255, 0.95);
  margin-bottom: 10px;
}
.intro-shop {
  display: block;
  font-family: var(--ff-tech);
  font-weight: 600;
  font-size: clamp(11px, 3.2vw, 15px);
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.85);
}
@keyframes introText1 {
  0%   { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  6%   { opacity: 0; }
  14%  { opacity: 1; transform: translateY(-50%); }   /* in by 0.7s */
  20%  { opacity: 1; }                                 /* hold until 1.0s */
  26%  { opacity: 0; transform: translateY(calc(-50% - 6px)); }  /* OUT FIRST: by 1.3s (before BG changes at 1.5s) */
  100% { opacity: 0; }
}

/* === Text 2: 無知は美を削り === */
.intro-text-2 {
  font-size: clamp(28px, 7.5vw, 40px);
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #E5D0F5 0%, #B89DD9 55%, #8B6FAD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(180, 140, 220, 0.3);
  animation: introText2 5s ease forwards;
}
@keyframes introText2 {
  0%   { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  36%  { opacity: 0; transform: translateY(calc(-50% + 8px)); }  /* wait until 1.8s (BG-2 mostly visible) */
  42%  { opacity: 1; transform: translateY(-50%); }                /* in by 2.1s */
  52%  { opacity: 1; }                                              /* hold until 2.6s */
  56%  { opacity: 0; transform: translateY(calc(-50% - 6px)); }    /* OUT FIRST: by 2.8s (before BG-3 at 3.0s) */
  100% { opacity: 0; }
}

/* === Text 3: 自覚は美を創る === */
.intro-text-3 {
  font-size: clamp(28px, 7.5vw, 40px);
  letter-spacing: 0.14em;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.25), 0 2px 12px rgba(0, 0, 0, 0.5);
  animation: introText3 5s ease forwards;
}
@keyframes introText3 {
  0%   { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  68%  { opacity: 0; transform: translateY(calc(-50% + 8px)); }  /* wait until 3.4s (BG-3 mostly visible) */
  74%  { opacity: 1; transform: translateY(-50%); }                /* in by 3.7s */
  94%  { opacity: 1; }                                              /* hold until 4.7s */
  100% { opacity: 0; }                                              /* out with overlay */
}


/* ============================================
   LOGO LAYER — fixed at 75% position throughout
   ============================================ */
.intro-logo {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 140px;
  opacity: 0;
  animation: introLogo 5s ease forwards;
}
.intro-logo img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes introLogo {
  0%   { opacity: 0; transform: translate(-50%, calc(-50% + 4px)); }
  8%   { opacity: 0; }
  18%  { opacity: 1; transform: translate(-50%, -50%); }   /* in by 0.9s */
  94%  { opacity: 1; }                                       /* hold until 4.7s */
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 4px)); }  /* fade out with overlay */
}

@media (min-width: 600px) {
  .intro-logo { width: 170px; }
}
@media (min-width: 900px) {
  .intro-logo { width: 200px; }
}


/* ============================================
   Accessibility & body lock
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none !important; }
}
body.intro-locked {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}


/* ============================================================
   ============================================================
   V11.0 / Phase 3 ADDITIONS  (2026-05-26)
   ------------------------------------------------------------
   A. PC global menu (desktop horizontal nav + hamburger combo)
   B. Bottom nav: mobile-only (hide on >=768px)
   C. Page-hero spacing fix when PC nav present
   D. Sub-page minor tweaks (Phase 3 unification)
   ============================================================
   ============================================================ */

/* ============================================================
   A. PC HEADER NAVIGATION (>= 768px)
   ------------------------------------------------------------
   - Show inline text menu items in header
   - Keep hamburger (.menu-btn) for full overlay menu access
   - Mobile (< 768px) stays unchanged (icon-only header)
   ============================================================ */

/* PC inline nav links (hidden by default; shown >=768px) */
.pc-nav {
  display: none; /* mobile: hidden */
}

@media (min-width: 768px) {

  /* Header: wider container, add horizontal nav */
  .site-header {
    background: rgba(251, 252, 253, 0.92);
  }
  .header-inner {
    max-width: 1180px;
    padding: 16px 32px;
    gap: 24px;
    justify-content: space-between;
  }
  .brand {
    font-size: 24px;
  }
  .brand small {
    font-size: 10px;
  }

  /* Show the PC inline navigation */
  .pc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 18px;
  }
  .pc-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
  }
  .pc-nav-list li { margin: 0; }
  .pc-nav-list a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    border-radius: 4px;
    color: var(--ratia-blue-deep);
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
  }
  .pc-nav-list a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--v9-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
  }
  .pc-nav-list a:hover {
    color: var(--v9-orange-strong);
    background: rgba(198, 112, 8, 0.05);
  }
  .pc-nav-list a:hover::after {
    transform: scaleX(1);
  }
  .pc-nav-list a.is-current {
    color: var(--v9-orange-strong);
  }
  .pc-nav-list a.is-current::after {
    transform: scaleX(1);
  }
  .pc-nav-ja {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    line-height: 1;
  }
  .pc-nav-en {
    font-family: var(--ff-tech);
    font-weight: 400;
    font-size: 8.5px;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
  }

  /* PC: highlight CTA (Contact / Reserve) */
  .pc-nav-cta {
    margin-left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(180deg, #E58A1A 0%, var(--v9-orange) 100%);
    color: #fff !important;
    border-radius: 99px;
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 18px -8px rgba(198, 112, 8, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .pc-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(198, 112, 8, 0.7);
    background: linear-gradient(180deg, #F09A2A 0%, var(--v9-orange-strong) 100%);
  }
  .pc-nav-cta-en {
    font-family: var(--ff-tech);
    font-size: 9px;
    letter-spacing: 0.3em;
    opacity: 0.85;
  }

  /* Hamburger stays as an "all menu" button on PC */
  .menu-btn {
    width: 44px;
    height: 44px;
  }
  .menu-btn span {
    width: 16px;
  }
}


@media (min-width: 1024px) {
  .header-inner { padding: 18px 40px; }
  .pc-nav-list a { padding: 10px 16px; }
  .pc-nav-ja { font-size: 13.5px; }
}


/* ============================================================
   B. BOTTOM NAV — MOBILE ONLY
   ------------------------------------------------------------
   Hide bottom nav at >=768px; PC uses header nav instead.
   Also remove the body bottom-padding reservation on PC.
   ============================================================ */

@media (min-width: 768px) {
  .bottom-nav {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
  /* The pre-existing v9 rule at 1024px+ that centers bottom-nav
     is overridden by display:none above (specificity equal,
     order wins thanks to this block being later in the cascade). */
}


/* ============================================================
   C. PAGE-HERO + HEADER OFFSET (PC)
   ============================================================ */
@media (min-width: 768px) {
  .page-hero {
    padding-top: 140px;
    min-height: 56vh;
  }
}


/* ============================================================
   D. SUB-PAGE: GROUP BOARD CARRY-OVER (compact variant)
   ------------------------------------------------------------
   Reuse .group-board styling but with a tighter top spacing
   when used on sub-pages.
   ============================================================ */
body:not(.page-top) .group-board {
  /* nothing to override yet—kept for future tuning */
}


/* ============================================================
   E. FINAL CTA — sub-page consistent accent
   ------------------------------------------------------------
   Existing .final-cta already styled; ensure the CTA button
   is visible at desktop widths.
   ============================================================ */
@media (min-width: 768px) {
  .final-cta .cta-inner {
    max-width: 720px;
  }
}


/* ============================================================
   F. PHASE 3: SUB-PAGE GENERIC SECTION BACKGROUND
   ------------------------------------------------------------
   Add gentle gradient flow between sub-page sections so they
   carry the V9.2 "narrative gradient" feel without rewriting
   each page's CSS.
   ============================================================ */

/* concept page: between phil-list and menu-cards/andratia */
.page-concept .philosophy {
  background: linear-gradient(180deg, var(--bg-base) 0%, #fff 45%, var(--bg-warm) 100%);
}
.page-concept .menu-cards {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-base) 100%);
}
.page-concept .andratia {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-mist) 100%);
}
.page-concept .axis {
  background: linear-gradient(180deg, var(--bg-mist) 0%, var(--bg-base) 100%);
}
.page-concept .final-cta {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--ratia-blue-deep) 100%);
  color: #fff;
}

/* salon page: gradient between intro and stores */
.page-salon .salon-intro {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-warm) 100%);
}
.page-salon .stores {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-base) 100%);
}

/* traial page: subtle gradient on intro */
.page-traial .traial-intro {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-warm) 100%);
}


/* ============================================================
   G. PHASE 3: FACIAL / BODY MENU PAGES
   ------------------------------------------------------------
   New layout: menu-detail blocks with image, title, body copy,
   list of effects, price hint.
   ============================================================ */
.menu-detail {
  padding: var(--section-py) 20px;
}
.menu-detail-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.menu-detail-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 44px -22px rgba(15,42,74,0.22);
  border: 1px solid rgba(28,97,175,0.06);
  margin-bottom: 32px;
}
.menu-detail-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-mist);
}
.menu-detail-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-detail-card-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15,42,74,0.85);
  color: #fff;
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.menu-detail-card-body {
  padding: 28px 22px 30px;
}
.menu-detail-card-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--v9-orange);
  margin-bottom: 6px;
}
.menu-detail-card-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.menu-detail-card-sub {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.menu-detail-card-text {
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 18px;
}
.menu-detail-effects {
  background: linear-gradient(135deg, var(--v9-orange-bg-light), #FFF6E5);
  border-left: 3px solid var(--v9-orange);
  padding: 16px 18px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.menu-detail-effects-label {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--v9-orange-strong);
  margin-bottom: 8px;
}
.menu-detail-effects ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.menu-detail-effects li {
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  padding-left: 16px;
  position: relative;
}
.menu-detail-effects li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--v9-orange);
}
.menu-detail-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.menu-detail-price-label {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
.menu-detail-price-value {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--ratia-blue-deep);
}
.menu-detail-price-value small {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
}

@media (min-width: 768px) {
  .menu-detail-inner {
    max-width: 920px;
  }
  .menu-detail-card {
    display: grid;
    grid-template-columns: 5fr 6fr;
    align-items: stretch;
  }
  .menu-detail-card-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
  }
  .menu-detail-card-body {
    padding: 36px 32px 36px;
  }
}


/* ============================================================
   H. PHASE 3: CONTACT FORM
   ============================================================ */
.contact-form {
  padding: var(--section-py) 20px;
  background: var(--bg-base);
}
.contact-form-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.contact-channel {
  background: #fff;
  border: 1px solid rgba(28,97,175,0.1);
  border-radius: 6px;
  padding: 18px 14px 20px;
  text-align: center;
  transition: all 0.25s ease;
}
.contact-channel:hover {
  border-color: var(--v9-orange);
  box-shadow: 0 12px 28px -16px rgba(198,112,8,0.4);
  transform: translateY(-2px);
}
.contact-channel-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v9-orange);
}
.contact-channel-icon svg {
  width: 100%;
  height: 100%;
}
.contact-channel-label {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-channel-value {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.contact-form-eyebrow {
  font-family: var(--ff-tech);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--v9-orange);
  text-align: center;
  margin-bottom: 12px;
}
.contact-form-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.55;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 18px;
}
.field-label {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.field-label .req {
  display: inline-block;
  background: var(--v9-orange);
  color: #fff;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.field-label .opt {
  display: inline-block;
  background: var(--bg-mist);
  color: var(--text-muted);
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid rgba(28,97,175,0.18);
  border-radius: 4px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--v9-orange);
  box-shadow: 0 0 0 3px rgba(198,112,8,0.1);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .field-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-submit {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  min-width: 240px;
  background: linear-gradient(180deg, #E58A1A 0%, var(--v9-orange) 60%, var(--v9-orange-strong) 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(198,112,8,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(198,112,8,0.7);
}
.form-submit-note {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.7;
}


/* ============================================================
   I. PHASE 3: RECRUIT PAGE
   ============================================================ */
.recruit {
  padding: var(--section-py) 20px;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-warm) 100%);
}
.recruit-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.recruit-message {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 14px 40px -22px rgba(15,42,74,0.18);
  border-top: 3px solid var(--v9-orange);
}
.recruit-message-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--v9-orange-strong);
  margin-bottom: 10px;
}
.recruit-message-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.2vw, 24px);
  line-height: 1.65;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.recruit-message-text {
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 14px;
}
.recruit-positions {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.recruit-position {
  background: #fff;
  border-radius: 6px;
  padding: 22px 20px;
  border: 1px solid rgba(28,97,175,0.08);
  position: relative;
}
.recruit-position-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 28px;
  color: rgba(198,112,8,0.25);
  line-height: 1;
}
.recruit-position-cat {
  display: inline-block;
  background: rgba(15,42,74,0.85);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.25em;
  margin-bottom: 10px;
}
.recruit-position-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.recruit-position-text {
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-body);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.recruit-position-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-soft);
  padding-top: 12px;
}
.recruit-position-meta dt {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--v9-orange-strong);
  padding-top: 3px;
}
.recruit-position-meta dd {
  color: var(--text-body);
  margin: 0;
}

.recruit-cta {
  background: var(--ratia-blue-deep);
  color: #fff;
  padding: 28px 22px 32px;
  border-radius: 8px;
  text-align: center;
}
.recruit-cta-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.recruit-cta-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.recruit-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  background: linear-gradient(180deg, #E58A1A 0%, var(--v9-orange) 100%);
  color: #fff;
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease;
}
.recruit-cta-btn:hover { transform: translateY(-2px); }


/* ============================================================
   J. PHASE 3: SUB-PAGE GROUP BOARD (carry-over uniformly)
   ------------------------------------------------------------
   Uses the same .group-board class. No new CSS needed beyond
   ensuring no demo banner offset issues.
   ============================================================ */

/* ============================================================
   END PHASE 3 ADDITIONS
   ============================================================ */


/* ============================================================
   ============================================================
   V11.1 / Phase 3 PATCH  (2026-05-26)
   ------------------------------------------------------------
   Fixes from user review:
   K. Logo SVG replacement (brand-logo)
   L. PC nav placement: right of logo (inside header-inner)
   M. JANUS image filter: 50% strength reduction
   N. Hero photo: 50% filter reduction
   O. Case card vertical labels: 2-line layout (nowrap)
   P. CASE 03 rank badge: avoid clipping with v2 image
   ============================================================
   ============================================================ */

/* ---------- K. BRAND LOGO (SVG image) ---------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.brand-logo-img {
  display: block;
  height: 22px;
  width: auto;
}
@media (min-width: 768px) {
  .brand-logo-img {
    height: 28px;
  }
}

/* ---------- L. PC NAV PLACEMENT (right of logo) ----------
   Now that .pc-nav lives inside .header-inner between .brand and
   .menu-btn, we re-target the layout: brand | pc-nav | menu-btn.
   Mobile (<768px): keep .pc-nav hidden as before. */
@media (min-width: 768px) {
  .header-inner {
    /* Override: align items in horizontal row with logo first,
       pc-nav next to logo (left side of header), menu-btn at right edge. */
    justify-content: flex-start;
    gap: 0;
  }
  /* Pc nav placed directly after the brand */
  .pc-nav {
    margin-left: 24px;
    margin-right: auto; /* push menu-btn to the right */
    gap: 4px;
  }
  .menu-btn {
    margin-left: 12px;
  }
}

/* On very wide screens, give the nav a bit more breathing room */
@media (min-width: 1024px) {
  .pc-nav {
    margin-left: 36px;
  }
}


/* ---------- M. JANUS IMAGE: filter strength halved ----------
   Original overlay alpha = 0.35 on bottom; halve to 0.175.
   Original background tint = 0.4; halve to 0.2.
   Grid lines: 0.025 → 0.012. */
.janus-img {
  background:
    radial-gradient(circle at 50% 50%, rgba(91,143,185,0.2) 0%, transparent 70%),
    linear-gradient(135deg, #0F2A4A 0%, #371282 100%);
}
.janus-img-overlay {
  background: linear-gradient(180deg,
    rgba(15,42,74,0.0) 0%,
    rgba(15,42,74,0.0) 60%,
    rgba(15,42,74,0.175) 100%);
}
.janus-img::after {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.012) 24px, rgba(255,255,255,0.012) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,0.012) 24px, rgba(255,255,255,0.012) 25px);
}


/* ---------- N. HERO PHOTO: filter halved ----------
   The hero photo gets darkened by:
   1. case-card-photo ::after overlay (cases section) — halve
   2. page-hero-bg-overlay (sub-pages hero) — halve
   3. page-hero-bg-img filter brightness(0.62) → 0.81 (gentler) */
.page-hero-bg-img {
  filter: brightness(0.81) saturate(1.05);
}
.page-hero-bg-overlay {
  background:
    linear-gradient(180deg,
      rgba(15,42,74,0.275) 0%,
      rgba(15,42,74,0.175) 40%,
      rgba(15,42,74,0.375) 100%);
}


/* ---------- O. CASE CARD VERTICAL LABEL: 2-column nowrap ----------
   Currently each vlabel-line wraps when text is long, creating
   a 2-row column. Force nowrap so each column is a single line of
   vertical text. */
.case-card-vlabel {
  /* Make labels taller so vertical text fits in one line */
  top: 50px !important;
  left: 10px !important;
  right: auto;
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 14px 6px;
  background: rgba(15, 42, 74, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* Don't constrain width — let content size naturally */
  width: max-content;
  max-width: calc(100% - 110px); /* leave space for rank badge */
}
.case-card-vlabel-line {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.25;
  display: block;
  padding: 0;
  white-space: nowrap; /* KEY: no wrapping so each column is one line */
  letter-spacing: 0.05em;
}
.case-card-vlabel-line.case-card-vlabel-tag {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 10.5px;
  color: #FFD56F;
}
.case-card-vlabel-line.case-card-vlabel-symptom {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}


/* ---------- P. CASE 03 / general rank badge: top-right placement ----------
   Per user note: 第3位バッジを画像の右上に入れて、左の縦コピーと
   見切れないようにする。 (Apply to all 3 cases for consistency.) */
.case-card-photo .case-card-graph-tag {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 4;
}


/* ============================================================
   END V11.1 PATCH
   ============================================================ */


/* ============================================================
   ============================================================
   V11.2 / Phase 3 ANIMATION INTEGRATION  (2026-05-26)
   ------------------------------------------------------------
   A. AI SCAN BOARD (100 SCAN, sweep-light dot visualization)
   B. ICEBERG CIRCLE (4 problems on dashed dawn-gradient ring)
   ============================================================
   ============================================================ */

/* === Tokens for this section === */
:root {
  --rank1: #C13E2A;
  --rank1-glow: rgba(193, 62, 42, 0.55);
  --rank2: #C67008;
  --rank2-glow: rgba(198, 112, 8, 0.5);
  --rank3: #D9A536;
  --rank3-glow: rgba(217, 165, 54, 0.45);

  --dawn-1: #4A1F5C;
  --dawn-3: #C13E6E;
  --dawn-4: #E0613C;
  --dawn-5: #E89B3A;
}


/* ============================================================
   A. AI SCAN BOARD (replaces .ai-data-board)
   ============================================================ */
.ai-scan-board {
  padding: var(--section-py) 20px;
  background: linear-gradient(180deg, var(--bg-base) 0%, #fff 30%, var(--bg-mist) 100%);
  position: relative;
  overflow: hidden;
}
.ai-scan-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.ai-scan-header {
  text-align: center;
  margin-bottom: 28px;
}
.ai-scan-tag {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--rank1);
  padding: 6px 14px;
  border: 1px solid var(--rank1);
  border-radius: 2px;
  margin-bottom: 14px;
}
.ai-scan-tag-jp {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--rank1);
  margin-bottom: 8px;
}
.ai-scan-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.55;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.ai-scan-title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3em;
  color: var(--rank1);
  margin: 0 2px;
}
.ai-scan-subtitle {
  font-family: var(--ff-serif);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.85;
}
.ai-scan-subtitle strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Rank card list */
.ai-rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.ai-rank-item {
  background: #fff;
  border-radius: 8px;
  padding: 14px 14px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 20px -14px rgba(15,42,74,0.18);
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
  transform: translateY(4px);
  position: relative;
  overflow: hidden;
}
.ai-rank-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.ai-rank-item.r1.is-active { border-left: 3px solid var(--rank1); }
.ai-rank-item.r2.is-active { border-left: 3px solid var(--rank2); }
.ai-rank-item.r3.is-active { border-left: 3px solid var(--rank3); }

/* Dots area */
.ai-rank-dots-wrap {
  width: 70px;
  aspect-ratio: 5 / 4;
  position: relative;
}
.ai-rank-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.ai-rank-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(15, 42, 74, 0.07);
  border: 1px solid rgba(15, 42, 74, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.ai-rank-item.r1 .ai-rank-dot.lit {
  background: var(--rank1);
  border-color: var(--rank1);
  box-shadow: 0 0 5px var(--rank1-glow), 0 0 10px var(--rank1-glow), inset 0 0 2px rgba(255,255,255,0.3);
  transform: scale(1.06);
}
.ai-rank-item.r2 .ai-rank-dot.lit {
  background: var(--rank2);
  border-color: var(--rank2);
  box-shadow: 0 0 5px var(--rank2-glow), 0 0 10px var(--rank2-glow);
  transform: scale(1.06);
}
.ai-rank-item.r3 .ai-rank-dot.lit {
  background: var(--rank3);
  border-color: var(--rank3);
  box-shadow: 0 0 4px var(--rank3-glow), 0 0 8px var(--rank3-glow);
  transform: scale(1.06);
}

/* Scanner line (sweep light) */
.ai-scanner-line {
  position: absolute;
  left: -4px;
  right: -4px;
  height: 4px;
  top: -10px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(193, 62, 42, 0.85) 40%,
    rgba(193, 62, 42, 1) 50%,
    rgba(193, 62, 42, 0.85) 60%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(193, 62, 42, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 2px;
}
.ai-rank-item.r2 .ai-scanner-line {
  background: linear-gradient(180deg, transparent, rgba(198,112,8,1) 50%, transparent);
  box-shadow: 0 0 8px rgba(198,112,8,0.6);
}
.ai-rank-item.r3 .ai-scanner-line {
  background: linear-gradient(180deg, transparent, rgba(217,165,54,1) 50%, transparent);
  box-shadow: 0 0 8px rgba(217,165,54,0.55);
}

/* Symptom vertical 2 columns */
.ai-rank-symptom {
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 2px 0;
  align-items: stretch;
  justify-content: center;
}
.ai-rank-symptom-line {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.06em;
  font-family: var(--ff-serif);
  font-weight: 500;
}
.ai-rank-symptom-tag {
  font-size: 10px;
  color: var(--text-muted);
}
.ai-rank-symptom-title {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}
.ai-rank-item.r1 .ai-rank-symptom-title { color: var(--rank1); }
.ai-rank-item.r2 .ai-rank-symptom-title { color: var(--rank2); }
.ai-rank-item.r3 .ai-rank-symptom-title { color: var(--rank3); }

/* Pct */
.ai-rank-pct {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 64px;
}
.ai-rank-pct-value {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.ai-rank-item.r1 .ai-rank-pct-value { color: var(--rank1); }
.ai-rank-item.r2 .ai-rank-pct-value { color: var(--rank2); }
.ai-rank-item.r3 .ai-rank-pct-value { color: var(--rank3); }
.ai-rank-pct-suffix {
  font-family: var(--ff-tech);
  font-size: 16px;
  margin-left: 1px;
  font-style: normal;
}
.ai-rank-pct-unit {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Status line */
.ai-scan-status {
  margin-top: 16px;
  text-align: center;
  font-family: var(--ff-tech);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  padding: 6px 10px;
  background: rgba(15, 42, 74, 0.04);
  border-radius: 3px;
  transition: color 0.3s ease;
}
.ai-scan-status.is-detecting {
  color: var(--rank1);
}
.ai-scan-status.is-complete {
  color: var(--ratia-cyan);
}

@media (min-width: 768px) {
  .ai-rank-item { grid-template-columns: 90px 1fr auto; padding: 18px 18px 20px; }
  .ai-rank-dots-wrap { width: 90px; }
  .ai-rank-pct-value { font-size: 40px; }
  .ai-rank-symptom-title { font-size: 14px; }
}


/* ============================================================
   B. ICEBERG CIRCLE (4 problems on dawn-gradient dashed ring)
   ------------------------------------------------------------
   Replaces .kpi-block-question 2x2 grid + conclusion.
   ============================================================ */
.iceberg-circle-block {
  background: linear-gradient(180deg, var(--bg-base) 0%, #fff 50%, #FFF6E5 100%);
  padding: 36px 20px 44px;
}
.iceberg-circle-block .kpi-eyebrow {
  color: var(--dawn-4);
}

.iceberg-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 28px auto 0;
}
.iceberg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.iceberg-track {
  fill: none;
  stroke: rgba(15, 42, 74, 0.06);
  stroke-width: 1.2;
}
.iceberg-anim {
  fill: none;
  stroke: url(#dawnGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 18 14;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(225, 100, 80, 0.4));
  animation: dashFlowIceberg 12s linear infinite;
}
@keyframes dashFlowIceberg {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1005; }
}

/* Center copy */
.iceberg-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44%;
  text-align: center;
  z-index: 2;
}
.iceberg-copy .ic-line {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 400;
  color: var(--text-body);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0;
}
.iceberg-copy .ic-line-1 {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.iceberg-copy .ic-line-2 {
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 38px;
}
.iceberg-copy .ic-line-3 {
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.iceberg-copy .ic-line-3 strong {
  background: linear-gradient(120deg, var(--dawn-3) 0%, var(--dawn-5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.iceberg-copy .ic-line-4 {
  font-size: 11px;
  color: var(--text-muted);
}

/* Anchor dots on circle (12/3/6/9) */
.iceberg-anchor {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 2px solid var(--dawn-4);
  box-shadow: 0 0 6px rgba(225, 100, 80, 0.4);
}
.iceberg-anchor.pos-12 { top: -6px; left: 50%; transform: translateX(-50%); }
.iceberg-anchor.pos-3  { top: 50%; right: -6px; transform: translateY(-50%); }
.iceberg-anchor.pos-6  { bottom: -6px; left: 50%; transform: translateX(-50%); }
.iceberg-anchor.pos-9  { top: 50%; left: -6px; transform: translateY(-50%); }

/* 4 problem cards positioned on circle */
.iccard {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(225, 100, 80, 0.18);
  border-radius: 8px;
  padding: 8px 10px 10px;
  box-shadow: 0 8px 20px -10px rgba(15, 42, 74, 0.18);
  z-index: 3;
  width: 130px;
  text-align: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.iccard.is-passing {
  box-shadow: 0 12px 28px -8px var(--dawn-3);
  border-color: var(--dawn-3);
}
.iccard.pos-12 { top: -10px; left: 50%; transform: translateX(-50%); }
.iccard.pos-12.is-passing { transform: translateX(-50%) scale(1.06); }
.iccard.pos-3  { top: 50%; right: -16px; transform: translateY(-50%); }
.iccard.pos-3.is-passing  { transform: translateY(-50%) scale(1.06); }
.iccard.pos-6  { bottom: -10px; left: 50%; transform: translateX(-50%); }
.iccard.pos-6.is-passing  { transform: translateX(-50%) scale(1.06); }
.iccard.pos-9  { top: 50%; left: -16px; transform: translateY(-50%); }
.iccard.pos-9.is-passing  { transform: translateY(-50%) scale(1.06); }

.iccard .ic-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 11px;
  color: var(--dawn-4);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 2px;
}
.iccard .ic-title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 3px;
}
.iccard .ic-sub {
  font-size: 10px;
  color: #A14228;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .iceberg-stage { max-width: 460px; }
  .iccard { width: 150px; }
  .iccard .ic-title { font-size: 13px; }
}


/* ============================================================
   Reduced motion fallback (V11.2)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .iceberg-anim { animation: none !important; }
  .ai-rank-item { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   END V11.2 INTEGRATION
   ============================================================ */


/* ============================================================
   ============================================================
   V11.3 / Phase 3 PATCH 2  (2026-05-26 P.M.)
   ------------------------------------------------------------
   Mobile readability fixes per user review:
   K. AI SCAN — re-layout: [dots+%] vertical column LEFT,
      [tag + title] HORIZONTAL TEXT on the right
   L. ICEBERG — move center copy ABOVE the circle (mobile friendly)
   M. CASE CARDS (01-03) — vertical labels were collapsing to 1 column
      because of inline width constraint; force 2-column layout
   ============================================================
   ============================================================ */

/* ============================================================
   K. AI SCAN BOARD — RE-LAYOUT
   ============================================================ */

/* Re-grid: left column for [dots stacked above %], right column for horizontal text */
.ai-rank-item {
  grid-template-columns: 88px 1fr !important;
  align-items: center !important;
  padding: 14px 16px 14px 14px !important;
  gap: 14px !important;
}

/* Left column: dots on top, percentage below */
.ai-rank-dots-wrap {
  width: 88px !important;
  /* keep aspect ratio for dots, but allow % to sit below */
  aspect-ratio: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ai-rank-dots {
  width: 88px;
  aspect-ratio: 5 / 4;
  flex-shrink: 0;
}

/* Move .ai-rank-pct INTO the left column visually using grid placement,
   while keeping it in its original DOM position. Use CSS grid sub-grid trick. */
.ai-rank-pct {
  /* Place this element under the dots (re-grid item to span only left column) */
  grid-column: 1 !important;
  grid-row: 2 !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: center !important;
  min-width: 0 !important;
  gap: 4px;
  margin-top: -6px;
}
/* Restore grid so dots & % stack in column 1, text in column 2 */
.ai-rank-item {
  grid-template-rows: auto auto !important;
}
.ai-rank-dots-wrap {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.ai-rank-symptom {
  /* Right column spans both rows */
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}

.ai-rank-pct-value {
  font-size: 30px !important;
  line-height: 1;
}
.ai-rank-pct-suffix {
  font-size: 14px !important;
}
.ai-rank-pct-unit {
  font-size: 8.5px !important;
  margin-top: 0 !important;
  margin-left: 4px;
  letter-spacing: 0.15em !important;
}

/* Right column: switch from vertical writing to HORIZONTAL */
.ai-rank-symptom {
  flex-direction: column !important;
  gap: 6px !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 0 !important;
}
.ai-rank-symptom-line {
  /* CRITICAL: cancel vertical writing mode */
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  letter-spacing: 0.04em !important;
}
.ai-rank-symptom-tag {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
}
.ai-rank-symptom-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.35 !important;
}

@media (min-width: 768px) {
  .ai-rank-item {
    grid-template-columns: 108px 1fr !important;
    padding: 18px 22px 18px 18px !important;
  }
  .ai-rank-dots-wrap, .ai-rank-dots { width: 108px !important; }
  .ai-rank-pct-value { font-size: 36px !important; }
  .ai-rank-symptom-title { font-size: 19px !important; }
  .ai-rank-symptom-tag { font-size: 13px !important; }
}


/* ============================================================
   L. ICEBERG CIRCLE — center copy ABOVE the circle (mobile)
   ============================================================ */

/* Add a new visible block ABOVE the stage that shows the 4-line copy
   in normal horizontal text. The existing .iceberg-copy inside the
   stage is HIDDEN on mobile, kept visible only on wide desktop where
   space permits. */

.iceberg-copy-block {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 8px;
}
.iceberg-copy-block .icb-line {
  display: block;
  font-family: var(--ff-serif);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.85;
}
.iceberg-copy-block .icb-line-1 {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.iceberg-copy-block .icb-line-2 {
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 600;
}
.iceberg-copy-block .icb-line-2 strong {
  background: linear-gradient(120deg, var(--dawn-3) 0%, var(--dawn-5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.iceberg-copy-block .icb-line-3 {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hide the in-circle copy on mobile (now redundant) */
.iceberg-copy {
  display: none;
}

/* Show in-circle copy only on tablet+ where there's space inside the ring */
@media (min-width: 900px) {
  .iceberg-copy {
    display: block;
  }
  /* On wide screens the new above-stage block can be hidden,
     or kept as a stronger headline — we keep it visible too for clarity. */
}


/* ============================================================
   M. CASE CARDS — force vertical labels to render as 2 columns
   ------------------------------------------------------------
   PDF showed labels collapsing into one vertical column with the
   long text overflowing. Issue: the v-label has limited width
   (max-width: calc(100% - 110px)) and the inline-block of two
   vertical strings sometimes stacks. Force them as 2 flex columns
   with explicit max-height per column to keep text vertical & short.
   ============================================================ */
.case-card-vlabel {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  padding: 12px 6px !important;
  width: max-content !important;
  max-width: calc(100% - 100px) !important;
  align-items: flex-start !important;
}
.case-card-vlabel-line {
  writing-mode: vertical-rl !important;
  text-orientation: upright !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  letter-spacing: 0.05em !important;
  display: block !important;
  padding: 0 !important;
  font-family: var(--ff-serif) !important;
  font-weight: 600 !important;
}
.case-card-vlabel-line.case-card-vlabel-tag {
  font-size: 10px !important;
  color: #FFD56F !important;
}
.case-card-vlabel-line.case-card-vlabel-symptom {
  font-size: 13px !important;
  color: #fff !important;
}


/* ============================================================
   END V11.3 PATCH 2
   ============================================================ */


/* ============================================================
   ============================================================
   V11.4 / Phase 3 PATCH 3  (2026-05-26 P.M. #2)
   ------------------------------------------------------------
   Per user review on phase3_v113:
   N. CASE 01-03 vertical label — REMOVE entirely (uncontrollable
      with longer text; the title under the photo covers content)
   O. CASE 01-03 rank badge — 1.5x LARGER, brighter, more prominent
   ============================================================
   ============================================================ */

/* ---------- N. Hide vertical labels on CASE cards ---------- */
.case-card-vlabel {
  display: none !important;
}


/* ---------- O. Enlarge rank badge (1.5x) ---------- */
.case-card-photo .case-card-graph-tag {
  /* 1.5x font size: 11px → 16.5px */
  font-size: 16.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 8px 18px !important;
  border-radius: 99px !important;
  border-width: 1.5px !important;
  /* Stronger shadow for prominence */
  box-shadow:
    0 8px 24px -6px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  /* Position: keep top-right */
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5;
}

/* Rank-1: stronger red glow */
.case-card[data-case="1"] .case-card-graph-tag {
  background: linear-gradient(135deg, rgba(193, 62, 42, 0.95), rgba(139, 42, 26, 0.95)) !important;
  border-color: rgba(255, 200, 195, 0.6) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
/* Rank-2: stronger gold glow */
.case-card[data-case="2"] .case-card-graph-tag {
  background: linear-gradient(135deg, rgba(217, 165, 54, 0.98), rgba(183, 131, 29, 0.98)) !important;
  border-color: rgba(255, 230, 168, 0.65) !important;
  text-shadow: 0 1px 2px rgba(80, 50, 0, 0.4);
}
/* Rank-3: stronger cyan glow */
.case-card[data-case="3"] .case-card-graph-tag {
  background: linear-gradient(135deg, rgba(29, 159, 179, 0.95), rgba(28, 97, 175, 0.95)) !important;
  border-color: rgba(200, 240, 245, 0.6) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* On wider screens make it even more prominent */
@media (min-width: 768px) {
  .case-card-photo .case-card-graph-tag {
    font-size: 19px !important;
    padding: 10px 22px !important;
  }
}


/* ============================================================
   END V11.4 PATCH 3
   ============================================================ */


/* ============================================================
   V11.5 / Phase 3 PATCH 4  (2026-05-26 P.M. #3)
   ------------------------------------------------------------
   P. CASE photo filter — uniform light overlay (rgba 0.3)
      Old gradient (top heavy + bottom heavy) was blocking the
      "3つの力" text inside the image. Switch to uniform light
      film so original image colors come through.
   ============================================================ */
.case-card-photo::after {
  background: rgba(10, 18, 32, 0.3) !important;
}

/* ============================================================
   END V11.5 PATCH 4
   ============================================================ */


/* ============================================================
   ============================================================
   V11.6 / Phase 3 PATCH 5 — JANUS PREMIUM SCAN  (2026-05-26)
   ------------------------------------------------------------
   Q. JANUS image height halved (peek-effect for scroll induction)
   R. JANUS scan board (dual chart: animated radar + bars)
   S. JANUS CTA button (glass UI, opens digest modal)
   T. PREMIUM DIGEST modal (heading + lead + items + price note)
   ============================================================
   ============================================================ */

/* ---------- Q. Image: compress height ---------- */
.janus-img-v2 {
  aspect-ratio: auto !important;
  height: min(60vh, 480px) !important;
  margin-bottom: 0 !important;
  border-radius: 6px;
}
/* Fade lower edge to hint there's more below */
.janus-img-v2::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 50px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 74, 0.9) 100%);
  z-index: 2;
  pointer-events: none;
}


/* ---------- R. SCAN BOARD ---------- */
.janus-scan-board {
  margin: -8px 0 24px;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91, 143, 185, 0.18), transparent 60%),
    linear-gradient(160deg, #0a1628 0%, #0F2A4A 70%, #1a3560 100%);
  border: 1px solid rgba(91, 143, 185, 0.25);
  border-radius: 10px;
  padding: 18px 14px 16px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.janus-scan-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.025) 24px, rgba(255,255,255,0.025) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,0.025) 24px, rgba(255,255,255,0.025) 25px);
  pointer-events: none;
}

/* Header: side verticals + center title */
.jsb-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.jsb-side {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  line-height: 1.3;
  padding: 4px 4px;
  border-left: 1px solid rgba(144, 160, 204, 0.3);
  border-right: 1px solid rgba(144, 160, 204, 0.3);
  white-space: nowrap;
}
.jsb-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(14px, 4.2vw, 17px);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Dual chart */
.jsb-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
@media (max-width: 480px) {
  .jsb-dual {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.jsb-chart {
  background: rgba(15, 42, 74, 0.4);
  border: 1px solid rgba(144, 160, 204, 0.15);
  border-radius: 8px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jsb-chart-title {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(144, 160, 204, 0.9);
  margin: 0 0 6px;
  text-align: center;
}
.jsb-radar-wrap {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  position: relative;
}
.jsb-radar-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Bars chart */
.jsb-bars {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 180px;
  padding-top: 14px;
}
.jsb-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.jsb-bar-score {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 11px;
  font-weight: 500;
  color: rgba(144, 160, 204, 0.9);
  line-height: 1;
}
.jsb-bar-stick {
  width: 100%;
  max-width: 20px;
  height: 0;
  background: linear-gradient(180deg, rgba(91, 143, 185, 0.7), rgba(91, 143, 185, 0.4));
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: height 1.2s cubic-bezier(.22,1,.36,1);
}
.jsb-bar-stick.bad {
  background: linear-gradient(180deg, #E05050, #C13E2A);
  box-shadow: 0 0 12px rgba(224, 80, 80, 0.4), inset 0 0 6px rgba(224, 80, 80, 0.25);
  animation: jsbBarBounce 2s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes jsbBarBounce {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.03); }
}
.jsb-bar-stick.bad::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -2px;
  right: -2px;
  height: 10px;
  border-radius: 4px 4px 0 0;
  animation: jsbBarPulse 1.5s ease-in-out infinite;
  background: radial-gradient(ellipse at center, rgba(255, 100, 100, 0.7), transparent 70%);
}
@keyframes jsbBarPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}
.jsb-bar-stick .jsb-bar-avg-line {
  position: absolute;
  left: -3px;
  right: -3px;
  height: 1.5px;
  background: rgba(91, 159, 189, 0.6);
  border-radius: 1px;
}
.jsb-bar-stick.bad .jsb-bar-score {
  color: #E05050;
  font-weight: 700;
}
.jsb-bar-col .jsb-bar-score.bad {
  color: #E05050 !important;
  font-weight: 700;
}
.jsb-bar-label {
  font-size: 7.5px;
  color: rgba(144, 160, 204, 0.85);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-family: var(--ff-sans);
}
.jsb-bar-label.bad {
  color: #E05050;
  font-weight: 600;
}

/* Legend */
.jsb-chart-legend {
  font-family: var(--ff-tech);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(144, 160, 204, 0.8);
  margin: 4px 0 0;
  text-align: center;
}
.jsb-leg-line {
  display: inline-block;
  width: 12px;
  border-top: 1px dashed rgba(74, 170, 122, 0.7);
  vertical-align: middle;
  margin-right: 3px;
}
.jsb-leg-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E05050;
  vertical-align: middle;
  margin: 0 3px 0 6px;
}
.jsb-leg-avg {
  display: inline-block;
  width: 12px;
  height: 1.5px;
  background: rgba(91, 159, 189, 0.6);
  vertical-align: middle;
  margin-right: 3px;
}

.jsb-caption {
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(144, 160, 204, 0.7);
  text-align: center;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(144, 160, 204, 0.1);
  position: relative;
  z-index: 1;
}
.jsb-caption strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}


/* ---------- S. JANUS CTA Button (glass UI) ---------- */
.janus-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 24px auto 0;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  color: #fff;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.janus-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.janus-cta-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}
.janus-cta-btn:hover::before {
  transform: translateX(100%);
}
.janus-cta-btn:active {
  transform: scale(0.98);
}
.janus-cta-arrow {
  font-family: var(--ff-tech);
  font-weight: 400;
  font-size: 16px;
  transition: transform 0.3s ease;
}
.janus-cta-btn:hover .janus-cta-arrow {
  transform: translateX(4px);
}


/* ---------- T. PREMIUM DIGEST MODAL ---------- */
.janus-modal .janus-digest-dialog {
  max-width: 480px;
  width: calc(100% - 28px);
  background:
    radial-gradient(ellipse at top, rgba(91, 143, 185, 0.12), transparent 60%),
    linear-gradient(180deg, #0F2A4A 0%, #1a3560 50%, #2a1f60 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(144, 160, 204, 0.25);
  position: relative;
  overflow: hidden;
}
.janus-modal .case-modal-close {
  color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.janus-modal .case-modal-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.janus-digest-header {
  padding: 36px 24px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(144, 160, 204, 0.15);
  position: relative;
}
.janus-digest-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.02) 24px, rgba(255,255,255,0.02) 25px);
  pointer-events: none;
}
.janus-digest-eyebrow {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: #D9A536;
  padding: 5px 14px;
  border: 1px solid #D9A536;
  border-radius: 2px;
  margin-bottom: 14px;
  position: relative;
}
.janus-digest-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
  position: relative;
}
.janus-digest-title strong {
  font-weight: 700;
  background: linear-gradient(120deg, #D9A536, #FFE17A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.janus-digest-body {
  padding: 24px 22px 28px;
}
.janus-digest-lead {
  font-family: var(--ff-serif);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  margin: 0 0 26px;
}
.janus-digest-lead em {
  font-style: normal;
  font-weight: 600;
  color: #FFD56F;
}
.janus-digest-lead strong {
  font-weight: 700;
  color: #fff;
}

.janus-digest-list-wrap {
  margin-bottom: 26px;
}
.janus-digest-list-head {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 13px;
  color: #FFD56F;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 213, 111, 0.3);
}
.janus-digest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.janus-digest-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(217, 165, 54, 0.6);
  border-radius: 4px;
}
.jdl-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: #D9A536;
  letter-spacing: 0.02em;
  padding-top: 2px;
}
.jdl-text {
  font-family: var(--ff-serif);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}
.jdl-text strong {
  font-weight: 600;
  color: #fff;
}

/* Highlighted note */
.janus-digest-note {
  background: linear-gradient(135deg, rgba(217, 165, 54, 0.15), rgba(193, 62, 42, 0.1));
  border: 1.5px solid rgba(217, 165, 54, 0.5);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 24px;
  position: relative;
}
.janus-digest-note p {
  font-family: var(--ff-serif);
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  margin: 0;
}
.janus-digest-note strong {
  font-weight: 700;
  color: #FFD56F;
}
.janus-digest-note em {
  font-style: normal;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: #FFE17A;
  letter-spacing: 0.04em;
  padding: 0 4px;
}
.jdn-mark {
  color: #D9A536;
  font-weight: 700;
  margin-right: 4px;
}

.janus-digest-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #C67008, #A14228);
  color: #fff;
  text-decoration: none;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid rgba(255, 213, 111, 0.4);
  box-shadow: 0 8px 24px -8px rgba(198, 112, 8, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.janus-digest-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(198, 112, 8, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.janus-digest-cta .janus-cta-arrow {
  font-size: 18px;
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .jsb-bar-stick.bad,
  .jsb-bar-stick.bad::after {
    animation: none !important;
  }
}


/* ============================================================
   END V11.6 PATCH 5
   ============================================================ */


/* ============================================================
   ============================================================
   V11.7 / Phase 3 PATCH 6 — JANUS REFINEMENTS  (2026-05-26)
   ------------------------------------------------------------
   Per PDF review on V11.6:
   U. Image height — more aggressive shrink for proper peek effect
      (header + bottom nav take ~140px combined on iPhone)
   V. Header — kill vertical writing, use horizontal 2-line copy
   W. Charts — remove titles + captions, max-size graphs
   X. Bars — 6 items (cut leftmost "毛穴", relabel old PL → "毛穴")
   Y. Labels — white on OK items for visibility
   Z. Animations — supercharge: color sweep, bar pulse, radar shake
   AA. CTA button — brighter background to stand out
   ============================================================
   ============================================================ */

/* ---------- U. Image: more aggressive shrink ----------
   On iPhone (≈850px height):
   - header (~56px) + rainbow-bar (~3px) + bottom nav (~62px) = ~121px固定
   - want graph top to peek ~120px below image
   - so image height = 850 - 121 - 120 = ~609px max
   - on smaller phones, scale down via 45vh
   New image is 1200x720 (5:3) so aspect-ratio handles natural sizing */
.janus-img-v2 {
  aspect-ratio: 5 / 3 !important;
  height: auto !important;
  max-height: min(50vh, 380px) !important;
  margin-bottom: 0 !important;
  border-radius: 6px;
}


/* ---------- V. Header: horizontal 2-line + center title ---------- */
.jsb-header-v2 {
  display: block !important;
  text-align: center;
  margin-bottom: 14px !important;
  position: relative;
  z-index: 1;
}
.jsb-header-v2 .jsb-eyebrow {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 6px;
  line-height: 1.4;
}
.jsb-header-v2 .jsb-title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(18px, 5.4vw, 22px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
  line-height: 1.3;
}


/* ---------- W. Charts: titles+captions removed, max graph area ---------- */
.jsb-chart {
  padding: 6px 4px 6px !important;
}
/* Hide old chart titles (kept for safety in case JS still queries them) */
.jsb-chart-title,
.jsb-chart-legend,
.jsb-caption {
  display: none !important;
}
.jsb-dual {
  gap: 8px !important;
  margin-bottom: 0 !important;
}
.jsb-radar-wrap {
  max-width: 100% !important;
}


/* ---------- Y. Labels: WHITE on OK items ---------- */
/* (radar labels handled in JS canvas drawing)        */
.jsb-bar-label {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500 !important;
  font-size: 8.5px !important;
}
.jsb-bar-label.bad {
  color: #FF6E58 !important;
  font-weight: 700 !important;
}
.jsb-bar-score {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
}
.jsb-bar-col .jsb-bar-score.bad {
  color: #FF6E58 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(255, 110, 88, 0.6);
}


/* ---------- Z. Supercharge animations ---------- */

/* Z-1. Bar pulse height (already animated via bounce; widen amplitude) */
.jsb-bar-stick.bad {
  animation: jsbBarBounceXL 1.4s ease-in-out infinite !important;
}
@keyframes jsbBarBounceXL {
  0%, 100% { transform: scaleY(1);    filter: brightness(1);   }
  35%      { transform: scaleY(1.12); filter: brightness(1.25); }
  65%      { transform: scaleY(0.94); filter: brightness(0.92); }
}

/* Z-2. Bar pulse overlay glow (top) — bigger, more colorful */
.jsb-bar-stick.bad::after {
  animation: jsbBarPulseXL 1.4s ease-in-out infinite !important;
  height: 16px !important;
  top: -8px !important;
  background: radial-gradient(ellipse at center,
    rgba(255, 220, 80, 0.85),
    rgba(255, 100, 80, 0.6) 40%,
    transparent 75%) !important;
}
@keyframes jsbBarPulseXL {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6) scaleX(0.8); }
  50%      { opacity: 1;   transform: scaleY(1.5) scaleX(1.2); }
}

/* Z-3. Bar color sweep — vertical light running up the bad bar */
.jsb-bar-stick.bad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%);
  background-size: 100% 60%;
  background-repeat: no-repeat;
  animation: jsbBarSweep 1.8s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes jsbBarSweep {
  0%   { background-position: 0 110%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { background-position: 0 -40%; opacity: 0; }
}

/* Z-4. Even OK bars get a subtle pulsing alpha for liveliness */
.jsb-bar-stick:not(.bad) {
  animation: jsbBarBreath 3.6s ease-in-out infinite;
}
@keyframes jsbBarBreath {
  0%, 100% { filter: brightness(1); opacity: 0.95; }
  50%      { filter: brightness(1.12); opacity: 1; }
}

/* Z-5. Bars: taller container for the bigger pulses */
.jsb-bars {
  height: 220px !important;
  padding-top: 22px !important;
  gap: 4px !important;
}
.jsb-bar-stick {
  max-width: 26px !important;
}


/* ---------- AA. CTA button: brighter background to stand out ---------- */
.janus-cta-btn {
  background: linear-gradient(135deg, #E89B3A 0%, #C67008 60%, #A14228 100%) !important;
  border: 1.5px solid rgba(255, 220, 130, 0.55) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.08em !important;
  padding: 18px 24px !important;
  box-shadow:
    0 10px 28px -8px rgba(232, 155, 58, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  text-shadow: 0 1px 2px rgba(80, 30, 0, 0.4);
  margin-top: 28px !important;
}
.janus-cta-btn::before {
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255, 240, 200, 0.45) 50%,
    transparent 70%) !important;
}
.janus-cta-btn:hover {
  background: linear-gradient(135deg, #F4B358 0%, #D88012 60%, #B84E2E 100%) !important;
  border-color: rgba(255, 240, 180, 0.8) !important;
}


/* ============================================================
   END V11.7 PATCH 6
   ============================================================ */


/* ============================================================
   V11.8 / Phase 3 PATCH 7 — JANUS mobile simplification
   ------------------------------------------------------------
   - Bar chart cut on mobile (vertical stack = info duplication)
   - Radar chart maximized as the single hero data viz
   - New image (1200x720, aspect 5:3) properly displayed via
     intrinsic ratio - no forced clipping
   - 3 lines of duplicated heading copy removed (JANUS title h2)
   ============================================================ */

/* Layout: single chart full width */
.jsb-single {
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.jsb-chart-radar-only {
  background: rgba(15, 42, 74, 0.4);
  border: 1px solid rgba(144, 160, 204, 0.15);
  border-radius: 8px;
  padding: 8px 6px 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jsb-chart-radar-only .jsb-radar-wrap {
  width: 100%;
  max-width: 420px !important;  /* much larger than dual mode 240 */
  aspect-ratio: 1;
  position: relative;
}
.jsb-chart-radar-only .jsb-radar-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (min-width: 768px) {
  .jsb-chart-radar-only .jsb-radar-wrap {
    max-width: 480px !important;
  }
}


/* Image: trust the natural aspect-ratio of the new 1200×720 file.
   Override the earlier max-height that was forcing a clipping crop. */
.janus-img-v2 {
  aspect-ratio: 5 / 3 !important;
  height: auto !important;
  max-height: none !important;
  width: 100%;
  margin-bottom: 0 !important;
  border-radius: 6px;
}
.janus-img-v2 .janus-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ============================================================
   END V11.8 PATCH 7
   ============================================================ */


/* ============================================================
   ============================================================
   V12.0 / Phase 3 PATCH 9 — JANUS REPORT MODAL  (2026-05-26)
   ------------------------------------------------------------
   Replaces the simple PREMIUM DIGEST modal with a full
   tabbed report viewer (3 cases) + image zoom overlay.
   Reuses existing case-modal mount/JS via data-modal="janus-digest"
   ============================================================
   ============================================================ */

/* Dialog override: wider, scrollable, padding 0 (tabs/header have their own) */
.janus-modal .janus-report-dialog {
  max-width: 520px;
  width: calc(100% - 20px);
  background:
    radial-gradient(ellipse at top, rgba(91, 143, 185, 0.12), transparent 60%),
    linear-gradient(180deg, #0F2A4A 0%, #1a3560 50%, #2a1f60 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(144, 160, 204, 0.25);
  position: relative;
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* Close button (override case-modal-close for dark theme) */
.janus-modal .report-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1;
}
.janus-modal .report-close-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* === TAB BAR === */
.janus-modal .report-tabs {
  display: flex;
  border-bottom: 1px solid rgba(144, 160, 204, 0.2);
  background: rgba(10, 22, 40, 0.4);
  padding-right: 56px; /* leave space for close button */
  flex-shrink: 0;
}
.janus-modal .report-tab {
  flex: 1;
  padding: 14px 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.janus-modal .report-tab .tab-sub {
  display: block;
  font-family: var(--ff-tech);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}
.janus-modal .report-tab:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}
.janus-modal .report-tab.is-active {
  color: #FFE17A;
  border-bottom-color: #D9A536;
  background: rgba(217, 165, 54, 0.08);
}
.janus-modal .report-tab.is-active .tab-sub {
  color: #D9A536;
}

/* === REPORT PANELS === */
.janus-modal .report-panel {
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.janus-modal .report-panel.is-active {
  display: block;
}

/* === REPORT HEADER === */
.janus-modal .report-header {
  padding: 28px 22px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(144, 160, 204, 0.15);
  position: relative;
}
.janus-modal .report-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.02) 24px, rgba(255,255,255,0.02) 25px);
  pointer-events: none;
}
.janus-modal .report-eyebrow {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: #D9A536;
  padding: 5px 14px;
  border: 1px solid #D9A536;
  border-radius: 2px;
  margin-bottom: 14px;
  position: relative;
}
.janus-modal .report-title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(17px, 4.5vw, 21px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 8px;
  position: relative;
}
.janus-modal .report-subtitle {
  font-family: var(--ff-serif);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  margin: 0;
  position: relative;
}
.janus-modal .report-subtitle::before,
.janus-modal .report-subtitle::after {
  content: "～";
  color: #D9A536;
  margin: 0 4px;
}

/* === REPORT BODY === */
.janus-modal .report-body {
  padding: 24px 22px 28px;
}

/* Intro block */
.janus-modal .report-intro {
  font-family: var(--ff-serif);
  font-size: 13px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid #D9A536;
  border-radius: 4px;
}
.janus-modal .report-intro em {
  font-style: normal;
  color: #D9A536;
  font-weight: 600;
}
.janus-modal .report-intro strong {
  color: #FFE17A;
  font-weight: 700;
}

/* Section headings */
.janus-modal .report-section {
  margin-bottom: 28px;
}
.janus-modal .report-section-h {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 14px;
  color: #FFE17A;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 213, 111, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.janus-modal .report-section-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: #D9A536;
  line-height: 1;
}
.janus-modal .report-section-text {
  font-family: var(--ff-serif);
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.janus-modal .report-section-text strong {
  color: #FFE17A;
  font-weight: 600;
}
.janus-modal .report-section-text em {
  font-style: normal;
  color: #D9A536;
  font-weight: 600;
}

/* === Parts grid === */
.janus-modal .report-parts-intro {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  line-height: 1.6;
}
.janus-modal .report-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.janus-modal .report-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(144, 160, 204, 0.15);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.janus-modal .report-tile:hover {
  transform: translateY(-2px);
  border-color: #D9A536;
  box-shadow: 0 8px 20px -8px rgba(217, 165, 54, 0.4);
}
.janus-modal .report-tile.square .report-tile-img-wrap {
  aspect-ratio: 1 / 1;
}
.janus-modal .report-tile.wide {
  grid-column: span 2;
}
.janus-modal .report-tile.wide .report-tile-img-wrap {
  aspect-ratio: 4 / 3;
}
.janus-modal .report-tile-img-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(15, 42, 74, 0.6);
  position: relative;
}
.janus-modal .report-tile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.janus-modal .report-tile-img-wrap::after {
  content: "🔍 TAP TO ZOOM";
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--ff-tech);
  font-size: 7.5px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 42, 74, 0.75);
  padding: 3px 7px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.9;
}
.janus-modal .report-tile-caption {
  padding: 8px 10px 10px;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(144, 160, 204, 0.1);
}
.janus-modal .report-tile-tag {
  display: block;
  font-family: var(--ff-tech);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: #D9A536;
  margin-top: 2px;
  font-weight: 500;
}

/* Part description list */
.janus-modal .report-parts-desc {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.janus-modal .report-parts-desc li {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(217, 165, 54, 0.5);
  border-radius: 4px;
  font-family: var(--ff-serif);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}
.janus-modal .report-parts-desc .rpd-head {
  display: block;
  font-weight: 700;
  color: #FFE17A;
  margin-bottom: 4px;
  font-size: 12.5px;
}
.janus-modal .report-parts-desc .rpd-label {
  display: inline-block;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #C13E6E;
  padding: 2px 6px;
  border: 1px solid #C13E6E;
  border-radius: 2px;
  margin-right: 6px;
  font-weight: 600;
}

/* === Strategy block === */
.janus-modal .strategy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.janus-modal .strategy-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(217, 165, 54, 0.08), rgba(193, 62, 110, 0.06));
  border: 1px solid rgba(217, 165, 54, 0.3);
  border-radius: 6px;
}
.janus-modal .strategy-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: #D9A536;
  padding-top: 2px;
}
.janus-modal .strategy-text {
  font-family: var(--ff-serif);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
}
.janus-modal .strategy-text strong {
  font-weight: 700;
  color: #FFE17A;
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

/* === Epilogue === */
.janus-modal .report-epilogue {
  margin-top: 24px;
  padding: 18px;
  background:
    radial-gradient(ellipse at center, rgba(217, 165, 54, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(217, 165, 54, 0.25);
  border-radius: 6px;
  font-family: var(--ff-serif);
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.05em;
  text-align: center;
}
.janus-modal .report-epilogue strong {
  color: #FFE17A;
  font-weight: 600;
}

/* === Bottom CTA === */
.janus-modal .report-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #C67008, #A14228);
  color: #fff;
  text-decoration: none;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid rgba(255, 213, 111, 0.4);
  box-shadow: 0 8px 24px -8px rgba(198, 112, 8, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  margin-top: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.janus-modal .report-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(198, 112, 8, 0.65),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.janus-modal .report-cta-arrow {
  font-family: var(--ff-tech);
  font-weight: 400;
  font-size: 18px;
  transition: transform 0.3s ease;
}
.janus-modal .report-cta:hover .report-cta-arrow {
  transform: translateX(4px);
}

/* === Coming Soon placeholder === */
.janus-modal .report-coming-soon {
  padding: 60px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.janus-modal .rcs-eyebrow {
  font-family: var(--ff-tech);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #D9A536;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid #D9A536;
  border-radius: 2px;
}
.janus-modal .rcs-title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.janus-modal .rcs-text {
  font-family: var(--ff-serif);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}


/* ===================================================
   IMAGE ZOOM OVERLAY (for report tiles)
   =================================================== */
.report-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.report-zoom-overlay.is-open {
  display: flex;
}
.report-zoom-overlay img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: default;
}
.report-zoom-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--ff-serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 0 24px;
}
.report-zoom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.report-zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
}


@media (min-width: 768px) {
  .janus-modal .report-body {
    padding: 32px 32px 36px;
  }
}


/* ============================================================
   END V12.0 PATCH 9
   ============================================================ */


/* ============================================================
   V12.1 / Phase 3 PATCH 10 — JANUS REPORT PAIR LAYOUT
   ------------------------------------------------------------
   - Wrap "image2 + desc2" into .report-parts-block pair sets
   - Keeps image and its description visually close
   - Multiple pairs are vertically separated with extra spacing
   ============================================================ */

.janus-modal .report-parts-block {
  margin-bottom: 24px;
}
.janus-modal .report-parts-block:last-child {
  margin-bottom: 0;
}
/* Visual separation between pair blocks (subtle dotted divider) */
.janus-modal .report-parts-block + .report-parts-block {
  padding-top: 24px;
  border-top: 1px dashed rgba(144, 160, 204, 0.18);
}

/* Inside a block: reduce margin between image grid and description list */
.janus-modal .report-parts-block .report-parts {
  margin-bottom: 12px;
}
.janus-modal .report-parts-block .report-parts-desc {
  margin-bottom: 0;
}

/* ============================================================
   END V12.1 PATCH 10
   ============================================================ */


/* ============================================================
   V12.2 / Phase 3 PATCH 11 — CASE 02 TIMELINE
   ------------------------------------------------------------
   Vertical timeline for 3STEP plan (CASE 02 渡辺様)
   - Left rail with numbered markers
   - Right side content
   - Connecting line between markers shows progression
   ============================================================ */

.janus-modal .timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Continuous vertical line behind markers */
.janus-modal .timeline-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg,
    #D9A536 0%,
    #C13E6E 50%,
    #E89B3A 100%);
  opacity: 0.4;
  z-index: 0;
}

.janus-modal .timeline-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.janus-modal .timeline-step:last-child {
  margin-bottom: 0;
}

.janus-modal .timeline-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D9A536, #C67008);
  border: 2px solid #FFE17A;
  box-shadow: 0 4px 12px -2px rgba(217, 165, 54, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
}
.janus-modal .timeline-marker::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(217, 165, 54, 0.15);
  z-index: -1;
}

.janus-modal .timeline-step-num {
  font-family: var(--ff-tech);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(80, 30, 0, 0.5);
}

.janus-modal .timeline-content {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 165, 54, 0.25);
  border-radius: 6px;
  position: relative;
}
/* Small triangle pointing to marker */
.janus-modal .timeline-content::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid rgba(217, 165, 54, 0.25);
}

.janus-modal .timeline-title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 13.5px;
  color: #FFE17A;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  line-height: 1.4;
}

.janus-modal .timeline-text {
  font-family: var(--ff-serif);
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.03em;
  margin: 0;
}
.janus-modal .timeline-text strong {
  color: #FFE17A;
  font-weight: 600;
}
.janus-modal .timeline-text em {
  font-style: normal;
  color: #D9A536;
  font-weight: 600;
}

/* ============================================================
   END V12.2 PATCH 11
   ============================================================ */


/* ============================================================
   V12.3 / Phase 3 PATCH 12 — CASE 03 渡邉様 styles
   ------------------------------------------------------------
   - .dot-legend : 3-color dot legend block (red/yellow/blue)
   - .report-parts-single : nose tile (1 image) centered
   - .timeline-list-tracks : 3-track timeline with red/yellow/blue
     colored markers (not sequential STEP, but parallel tracks)
   ============================================================ */

/* --- Dot Legend (3 colors meaning) --- */
.janus-modal .dot-legend {
  margin: -8px 0 24px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(144, 160, 204, 0.18);
  border-radius: 6px;
}
.janus-modal .dot-legend-head {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 12px;
  color: #FFE17A;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 213, 111, 0.3);
}
.janus-modal .dot-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.janus-modal .dot-legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}
.janus-modal .dot-legend-list .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,0,0,0.3),
              inset 0 1px 1px rgba(255,255,255,0.3);
}
.janus-modal .dot-red    { background: #FF6E58; box-shadow: 0 0 8px rgba(255,110,88,0.5), inset 0 1px 1px rgba(255,255,255,0.3); }
.janus-modal .dot-yellow { background: #FFD83A; box-shadow: 0 0 8px rgba(255,216,58,0.4), inset 0 1px 1px rgba(255,255,255,0.3); }
.janus-modal .dot-blue   { background: #4DD0E1; box-shadow: 0 0 8px rgba(77,208,225,0.4), inset 0 1px 1px rgba(255,255,255,0.3); }
.janus-modal .dot-legend-list .dot-text strong {
  color: #FFE17A;
  font-weight: 700;
}


/* --- Single image (centered, half-width) for nose tile --- */
.janus-modal .report-parts-single {
  display: flex !important;
  justify-content: center;
}
.janus-modal .report-parts-single .report-tile {
  width: calc(50% - 5px);  /* same width as a 2-col tile */
  flex-shrink: 0;
}


/* --- 3-Track timeline (CASE 03) --- */
/* Override the vertical line gradient for tracks */
.janus-modal .timeline-list-tracks::before {
  background: linear-gradient(180deg,
    #FF6E58 0%,
    #FFD83A 50%,
    #4DD0E1 100%);
  opacity: 0.5;
}

/* Track-specific marker colors */
.janus-modal .timeline-step-red .timeline-marker {
  background: linear-gradient(135deg, #FF8E78, #C13E2A);
  border-color: #FFB8AB;
  box-shadow: 0 4px 12px -2px rgba(193, 62, 42, 0.55),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.janus-modal .timeline-step-red .timeline-marker::before {
  background: rgba(255, 110, 88, 0.18);
}
.janus-modal .timeline-step-red .timeline-content {
  border-color: rgba(255, 110, 88, 0.35);
}
.janus-modal .timeline-step-red .timeline-content::before {
  border-right-color: rgba(255, 110, 88, 0.35);
}
.janus-modal .timeline-step-red .timeline-title {
  color: #FFB8AB;
}

.janus-modal .timeline-step-yellow .timeline-marker {
  background: linear-gradient(135deg, #FFD83A, #C67008);
  border-color: #FFE890;
  box-shadow: 0 4px 12px -2px rgba(198, 112, 8, 0.55),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.janus-modal .timeline-step-yellow .timeline-marker::before {
  background: rgba(255, 216, 58, 0.18);
}
.janus-modal .timeline-step-yellow .timeline-content {
  border-color: rgba(255, 216, 58, 0.4);
}
.janus-modal .timeline-step-yellow .timeline-content::before {
  border-right-color: rgba(255, 216, 58, 0.4);
}
.janus-modal .timeline-step-yellow .timeline-title {
  color: #FFE890;
}

.janus-modal .timeline-step-blue .timeline-marker {
  background: linear-gradient(135deg, #4DD0E1, #1D9FB3);
  border-color: #A0E8F0;
  box-shadow: 0 4px 12px -2px rgba(29, 159, 179, 0.55),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.janus-modal .timeline-step-blue .timeline-marker::before {
  background: rgba(77, 208, 225, 0.18);
}
.janus-modal .timeline-step-blue .timeline-content {
  border-color: rgba(77, 208, 225, 0.4);
}
.janus-modal .timeline-step-blue .timeline-content::before {
  border-right-color: rgba(77, 208, 225, 0.4);
}
.janus-modal .timeline-step-blue .timeline-title {
  color: #A0E8F0;
}

/* Track marker text 2-line size adjustment */
.janus-modal .timeline-list-tracks .timeline-step-num {
  font-size: 6px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}


/* ============================================================
   END V12.3 PATCH 12
   ============================================================ */


/* ============================================================
   === V12.4 / Phase 3 PATCH 13 ===
   A) ICEBERG CIRCLE — center icon gimmick (synced to passing card)
   B) ¥3,300 CTA — AI report × treatment pair crossfade (blue-gray, swap)
   ============================================================ */

/* ---- A) Iceberg center icon ---- */
/* The 4-line message lives in .iceberg-copy-block above the ring,
   so the in-circle copy is redundant; the icon now owns the center. */
.iceberg-copy { display: none !important; }

.iceberg-gimmick {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 31%;
  max-width: 122px;
  min-width: 78px;
  aspect-ratio: 1;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.iceberg-gimmick::before {
  content: "";
  position: absolute;
  width: 152%;
  height: 152%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 251, 244, 0.92) 38%, rgba(255, 251, 244, 0) 72%);
  opacity: 0;
  transition: opacity 0.42s ease;
}
.iceberg-gimmick img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.42s ease, transform 0.42s ease;
  filter: drop-shadow(0 4px 10px rgba(15, 42, 74, 0.18));
}
.iceberg-gimmick.is-show::before { opacity: 1; }
.iceberg-gimmick.is-show img { opacity: 1; transform: scale(1); }

/* ---- B) CTA report × treatment pairs ---- */
.plan-pairs {
  position: relative;
  margin: 4px 0 24px;
}
.pp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pp-slide.is-on {
  opacity: 1;
  position: relative;
}
.pp-frame {
  position: relative;
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(10, 24, 40, 0.6);
}
.pp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* treatment photos are color originals -> blue-gray at display time */
.pp-treat img { filter: grayscale(1) contrast(1.06); }
.pp-treat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ratia-blue-deep);
  mix-blend-mode: color;
  opacity: 0.42;
  pointer-events: none;
}
.pp-frame figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 5px 8px;
  font-family: var(--ff-tech);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(207, 228, 238, 0.92);
  background: linear-gradient(0deg, rgba(7, 16, 28, 0.82), transparent);
}

/* ============================================================
   END V12.4 / Phase 3 PATCH 13
   ============================================================ */

/* ============================================================
   V12.5 / Phase 3 PATCH 14  (2026-05-31)
   ------------------------------------------------------------
   上位3位 ランキング：右列に「コピー(1行) + アイコン帯(B方式)」
   - .ai-rank-right が grid col2 / row1-span2 を占有
   - .ai-rank-symptom は 1行（tag + title 横並び）
   - .ai-rank-icons：アイコン最大化 + 縦ラベル横置き(1文字積み)
   - 焼き込みPNG(_sea) を <img> で配置。色相は r1→r3 で SEA→SUN
   ============================================================ */

.ai-rank-right {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-width: 0;
}

/* コピーを1行に（tag + title 横並び） */
.ai-rank-symptom {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: baseline !important;
  gap: 8px !important;
}

/* アイコン帯 */
.ai-rank-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.ai-icon img {
  width: 50px;
  height: 50px;
  display: block;
}
.ai-icon .lbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.02;
}
.ai-icon .lbl i { display: block; font-style: normal; }

@media (min-width: 768px) {
  .ai-rank-icons { gap: 16px; }
  .ai-icon { gap: 4px; }
  .ai-icon img { width: 90px; height: 90px; }
  .ai-icon .lbl { font-size: 13px; }
}

/* ============================================================
   END V12.5 / Phase 3 PATCH 14
   ============================================================ */

/* ============================================================
   V12.5 / Phase 3 PATCH 15  (2026-05-31)
   6コース：悩みバッジ（マスターアイコン＋ラベル）
   - .course-tags 先頭に配置。既存 .course-tag より一段強調
   - 体験コースが上位3位と同じ悩みアイコンを着る＝最短導線の視覚的クローズ
   ============================================================ */
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px 6px;
  background: #fff;
  border: 1.5px solid var(--ratia-cyan);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-strong, #0F2A4A);
  box-shadow: 0 4px 10px -6px rgba(29,159,179,0.5);
}
.course-badge img {
  width: 22px;
  height: 22px;
  display: block;
}
@media (min-width: 768px) {
  .course-badge { font-size: 12.5px; padding: 5px 14px 5px 7px; }
  .course-badge img { width: 26px; height: 26px; }
}
/* ============================================================
   END V12.5 / Phase 3 PATCH 15
   ============================================================ */

/* PATCH 15b: ステルスむくみバッジ＝ティール（水太りの特別色） */
.course-badge-stealth {
  border-color: #1FA5B0;
  box-shadow: 0 4px 10px -6px rgba(31,165,176,0.55);
}

/* PATCH 16: 3位カード アイコン帯下のインフォ1行（ステルスむくみ補足） */
.ai-rank-info {
  margin: 6px 0 0;
  font-family: var(--ff-serif);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted, #6B7A8F);
  letter-spacing: 0.02em;
}
.ai-rank-info b {
  color: #1FA5B0;
  font-weight: 700;
}
@media (min-width: 768px) {
  .ai-rank-info { font-size: 12px; }
}

/* PATCH 17: ランキングのアイコン帯をタップ可能に（→AIレポートモーダル） */
.ai-rank-icons-tappable {
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 8px;
  margin: -6px -8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ai-rank-icons-tappable:hover {
  background: rgba(29,159,179,0.06);
}
.ai-rank-icons-tappable:active {
  transform: scale(0.99);
}
.ai-rank-icons-tappable:focus-visible {
  outline: 2px solid var(--ratia-cyan, #1D9FB3);
  outline-offset: 2px;
}

/* ===== V12.6 / Phase 3 PATCH 18 — 個別アイコン → 最大4タブ AIレポートモーダル ===== */
.ai-icon-tap { cursor: pointer; outline: none; border-radius: 8px; transition: transform 0.15s ease; }
.ai-icon-tap:hover { transform: translateY(-2px); }
.ai-icon-tap:focus-visible { box-shadow: 0 0 0 3px rgba(31,165,176,0.5); }
.icon-modal-dialog { padding-top: 0; }
.icon-modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 30px 0 0;
  z-index: 6;
  border-bottom: 1px solid #e6edf3;
}
.icon-modal-eyebrow {
  font-size: 12px;
  color: #5a6b7a;
  margin: 0 0 10px;
  line-height: 1.5;
}
.icon-modal-symptom { color: #1FA5B0; font-weight: 700; }
.icon-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.icon-modal-tab {
  flex: 1 1 auto;
  min-width: 64px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #4a5b6a;
  background: #eef3f6;
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-modal-tab:hover { background: #e2ebf0; }
.icon-modal-tab.active {
  color: #0f2a4a;
  background: #fff;
  border-color: #d7e2ea;
  border-bottom-color: #fff;
  box-shadow: inset 0 -2px 0 #1FA5B0;
}
.icon-modal-tab-main::before {
  content: "主訴";
  display: inline-block;
  font-size: 9px;
  color: #fff;
  background: #1FA5B0;
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 4px;
  vertical-align: 1px;
}
.icon-modal-stage { padding-top: 18px; }
.icon-modal-stage .case-letter { box-shadow: none; padding: 0; }
.icon-modal-empty {
  text-align: center;
  color: #8aa0b0;
  padding: 48px 12px;
  font-size: 13px;
}
.ai-rank-tap-hint {
  text-align: center;
  font-size: 12px;
  color: #1FA5B0;
  font-weight: 600;
  margin: 0 0 14px;
}
@media (max-width: 600px) {
  .icon-modal-tab { font-size: 11px; min-width: 0; padding: 7px 4px; }
  .icon-modal-eyebrow { font-size: 11px; }
}

/* ===== V12.6 / Phase 3 PATCH 18b — 順序B：画像ヘッダー→sticky タブ→本文／左右固定 ===== */
/* 横ブレ防止：3Dレポート・実例単独レポート含む全モーダル共通（上下スクロールのみ） */
.case-modal-dialog { overflow-x: hidden; }
/* icon-modal：バナーを全幅にするため内側で個別パディング */
.icon-modal-dialog { padding: 0 !important; }
.icon-modal-dialog .case-modal-close { z-index: 12; }
.icon-modal-banner { margin: 0; flex-shrink: 0; }
.icon-modal-eyebrow { padding: 14px 22px 10px; margin: 0; }
.icon-modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 0 22px;
  z-index: 6;
  border-bottom: none;
  box-shadow: 0 5px 12px -7px rgba(15,42,74,0.45);
}
.icon-modal-stage { padding: 18px 22px 26px; overflow-x: hidden; }
.icon-modal-stage .case-letter {
  overflow: visible !important;
  height: auto;
  max-height: none;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
}
.icon-modal-stage .case-letter-table { width: 100%; }
.icon-modal-stage .case-letter-table th,
.icon-modal-stage .case-letter-table td { word-break: break-word; }
.icon-modal-stage img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
  .icon-modal-eyebrow { padding: 12px 16px 8px; }
  .icon-modal-head { padding: 0 16px; }
  .icon-modal-stage { padding: 16px 16px 24px; }
}

/* ===== V12.6 / Phase 3 PATCH 18c — モーダル中央寄せ補正＋×クリアランス ===== */
/* スクロールバー消失による右シフト防止（PC/デバイスエミュ。実機iOSはオーバーレイで無影響） */
html { scrollbar-gutter: stable; }
.case-modal-dialog { margin-left: auto; margin-right: auto; }
/* eyebrow が×ボタンに潜らないよう右クリアランス */
.icon-modal-eyebrow { padding-right: 54px; }
@media (max-width: 600px) {
  .icon-modal-eyebrow { padding-right: 50px; }
}

/* ===== V12.6 / Phase 3 PATCH 18d — アイコンモーダル：単独レポートと同条件化（中央寄せ/右詰まり/×被り 解消） ===== */
/* 18cのscrollbar-gutterは的外れのため無効化 */
html { scrollbar-gutter: auto; }
/* ×(64/72px・top14)をバナー内に必ず収める＝eyebrowに被らない */
.icon-modal-banner img {
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  object-fit: cover;
  object-position: center;
}
/* eyebrow/タブ：チェアロ側の左右余白（×クリアランス解除） */
.icon-modal-eyebrow { padding: 16px 22px 10px !important; }
.icon-modal-head { padding: 0 22px !important; }
/* 本文ステージ：左右0＝単独レポート（.case-letter padding:0）と同条件。子要素が固有余白を持つので二重がけしない */
.icon-modal-stage { padding: 18px 0 28px !important; }

/* ===== V12.6 / Phase 3 PATCH 18e — 右切れ(width:100vw問題)修正／バナークロップ解除／タブ2x2／×クリアランス ===== */
/* 1) クローンした .case-letter が width:calc(100vw-32px)!important・max-width:720px!important で
      480pxダイアログをはみ出し右切れ → ダイアログ幅にフィットさせる（!importantで上書き） */
.icon-modal-stage .case-letter {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
/* 2) バナーを natural aspect に戻す（v129の高さ88px固定cover＝横クロップを解除。単独レポートと同じ表示） */
.icon-modal-banner img {
  height: auto !important;
  min-height: 0 !important;
  max-height: 88px !important;
  object-fit: cover;
  object-position: center;
}
/* 3) ×(64/72px・top14)が eyebrow 右に被らない */
.icon-modal-eyebrow { padding-right: 84px !important; }
/* 4) 携帯タブは2×2（3+1の不均衡回避・左右固定維持） */
@media (max-width: 600px) {
  .icon-modal-tab { flex: 1 1 calc(50% - 3px) !important; min-width: 0 !important; }
  .icon-modal-eyebrow { padding-right: 76px !important; }
}

/* ===== V12.6 / Phase 3 PATCH 19 — TOPコースカードのバッジをアイコンバッジ化（単独ページと統一・カード用コンパクト） ===== */
.care-card-badges { gap: 6px; }
.care-card-tags .course-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 5px;
  background: #fff;
  border: 1.5px solid var(--ratia-cyan);
  border-radius: 99px;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-strong, #0F2A4A);
  box-shadow: 0 3px 8px -5px rgba(29,159,179,0.5);
}
.care-card-tags .course-badge img { width: 20px; height: 20px; display: block; }
.care-card-tags .course-badge-stealth { border-color: #1FA5B0; }
@media (min-width: 768px) {
  .care-card-tags .course-badge { font-size: 11px; }
  .care-card-tags .course-badge img { width: 22px; height: 22px; }
}

/* ===== V12.6 / Phase 3 PATCH 20 — 3-caseナビに master アイコン（ランキングと統一・刷り込み） ===== */
.cases-nav-icons {
  width: auto !important;
  height: auto !important;
  gap: 3px;
  align-items: center;
  justify-content: center;
}
.cases-nav-icons img { width: 19px; height: 19px; display: block; }
@media (min-width: 768px) { .cases-nav-icons img { width: 22px; height: 22px; } }

/* ============================================================
   転エリア：15名フラット共感索引（lp2 / p2 = 声を主役＋引用符）
   v134 — 既存 #modal-icon 機構へ .ai-icon[data-icon] で接続
   ============================================================ */
#ten-empathy .ten-ctx{
  font-family: var(--ff-tech);
  font-size: 11px; letter-spacing: .08em; color: var(--text-soft);
  text-align: center; margin: 0 auto 18px; max-width: var(--max-w);
  line-height: 1.7; padding: 0 18px;
}
#ten-empathy .ten-title{ line-height: 1.5; }
#ten-empathy .ten-title em{ color: var(--rainbow-6); font-style: normal; }
#ten-empathy .ten-lead{
  font-family: var(--ff-sans); font-size: 13px; color: var(--text-muted);
  text-align: center; line-height: 1.8; margin-top: 14px;
}
@media (min-width:768px){ #ten-empathy .sp-only, #daily-question .sp-only{ display:none; } }

#ten-empathy .ten-groups{
  max-width: var(--max-w); margin: 34px auto 0; padding: 0 16px;
}
#ten-empathy .ten-grp{ margin-bottom: 30px; }
#ten-empathy .ten-grp-h{
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
  padding-bottom: 8px; position: relative;
}
#ten-empathy .ten-gp{
  font-family: var(--ff-tech); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; color: var(--gc); white-space: nowrap;
}
#ten-empathy .ten-gl{
  font-family: var(--ff-sans); font-size: 12px; color: var(--text-muted);
  letter-spacing: .04em;
}
#ten-empathy .ten-gbar{
  position: absolute; left: 0; bottom: 0; height: 2px; width: 44px;
  background: var(--gc); border-radius: 2px; opacity: .85;
}

/* p2 カード：声（つぶやき）を主役、悩み名はチップに格下げ */
#ten-empathy .ten-vcard{
  display: flex; align-items: center; gap: 16px; width: 100%;
  text-align: left; background: #fff; border: 1px solid var(--border-soft);
  border-left: 3px solid var(--c); border-radius: 14px;
  padding: 18px 18px; margin-bottom: 10px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
#ten-empathy .ten-vcard:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,42,74,.08);
  border-color: color-mix(in srgb, var(--c) 40%, var(--border-soft));
}
#ten-empathy .ten-vcard:active{ transform: translateY(0); }
/* 左カラム：アイコン＋「AIレポートを見る」を縦に */
#ten-empathy .ten-vlead{
  flex: 0 0 auto; width: 72px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
}
#ten-empathy .ten-vic{
  width: 54px; height: 54px; display: grid; place-items: center;
}
#ten-empathy .ten-vic img{ width: 54px; height: 54px; display: block; }
#ten-empathy .ten-vgo{
  display: block; font-family: var(--ff-sans); font-size: 10px;
  font-weight: 600; letter-spacing: .02em; line-height: 1.35;
  color: var(--c); white-space: normal;
}
/* 右カラム：声コピーをゆったり */
#ten-empathy .ten-vtx{ flex: 1 1 auto; min-width: 0; }
#ten-empathy .ten-vword{
  display: inline-block; font-family: var(--ff-sans); font-size: 10px;
  font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--c);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; opacity: .94;
}
#ten-empathy .ten-vvoice{
  display: block; font-family: var(--ff-serif); font-size: 17px;
  line-height: 1.7; color: var(--text-primary); font-weight: 500;
}
#ten-empathy .ten-vvoice .core{
  font-style: normal; font-weight: 700; color: var(--c);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c) 22%, #fff) 0);
}
/* group-lead card：先頭だけ少し大きく */
#ten-empathy .ten-vcard.lead .ten-vlead{ width: 80px; }
#ten-empathy .ten-vcard.lead .ten-vic,
#ten-empathy .ten-vcard.lead .ten-vic img{ width: 64px; height: 64px; }
#ten-empathy .ten-vcard.lead .ten-vvoice{ font-size: 19px; color: var(--text-primary); }
#ten-empathy .ten-vcard.lead .ten-vword{ font-size: 11px; }

/* JANUS サブコンテンツ降格バー */
#ten-empathy .ten-janus-sub{
  max-width: var(--max-w); margin: 8px auto 0; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-mist); border: 1px dashed var(--border-mid);
  border-radius: 12px; cursor: pointer; transition: background .18s ease;
}
#ten-empathy .ten-janus-sub:hover{ background: var(--bg-warm); }
#ten-empathy .ten-janus-sub-tag{
  font-family: var(--ff-tech); font-size: 10px; letter-spacing: .07em;
  color: var(--text-soft);
}
#ten-empathy .ten-janus-sub-label{
  font-family: var(--ff-serif); font-size: 14px; font-weight: 600;
  color: var(--text-body); flex: 1 1 auto;
}
#ten-empathy .ten-janus-sub-go{
  font-family: var(--ff-tech); font-size: 11px; color: var(--rainbow-6);
  white-space: nowrap;
}

/* 結ブリッジ */
#ten-empathy .ten-bridge{
  max-width: var(--max-w); margin: 30px auto 0; padding: 0 18px;
  text-align: center; font-family: var(--ff-serif); font-size: 15px;
  line-height: 1.9; color: var(--text-body);
}
#ten-empathy .ten-bridge strong{ color: var(--rainbow-6); font-weight: 700; }

@media (min-width:768px){
  #ten-empathy .ten-groups{ max-width: 720px; }
  #ten-empathy .ten-vcard{ padding: 20px 22px; }
  #ten-empathy .ten-vvoice{ font-size: 19px; }
  #ten-empathy .ten-vcard.lead .ten-vvoice{ font-size: 22px; }
}

/* ============================================================
   v135: 20S Limited Plan — コース／お悩みアイコン 自動スライダー
   ============================================================ */
.plan-iconslider{
  margin: 18px 0 4px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.plan-iconslider-track{
  display: flex; align-items: center; gap: 22px; width: max-content;
  animation: planIconScroll 22s linear infinite;
}
.plan-iconslider-track img{
  width: 40px; height: 40px; display: block; flex: 0 0 auto;
  opacity: .92;
}
@keyframes planIconScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }   /* 2セットの片方分だけ流してループ */
}
@media (prefers-reduced-motion: reduce){
  .plan-iconslider-track{ animation: none; }
}
@media (min-width:768px){
  .plan-iconslider-track{ gap: 30px; }
  .plan-iconslider-track img{ width: 46px; height: 46px; }
}

/* ============================================================
   v135: 6コース カテゴリ切替 — 文字ベース セグメントスイッチ
   （.care-tabs-seg のときだけ従来カード型を上書き／縦方向圧縮）
   ============================================================ */
.care-tabs.care-tabs-seg{
  display: inline-flex;            /* gridをやめて横一列の一体型に */
  grid-template-columns: none;
  gap: 0; width: auto; max-width: none; padding: 4px;
  margin: 16px auto 24px;
  background: var(--bg-mist);
  border: 1px solid var(--border-soft);
  border-radius: 999px;            /* ピル型の土台 */
  /* 中央寄せ：navはblock幅なので親側がtext-align:centerなら効く。保険でautoマージン */
}
/* nav自体を中央に置くためのラッパ調整（section-inner内で中央寄せ） */
.care-tabs.care-tabs-seg{ display: inline-flex; }
.care-section-tabswrap{ text-align: center; }

.care-tabs-seg .care-tab{
  flex: 0 0 auto;
  flex-direction: row; align-items: baseline; gap: 6px;
  padding: 9px 20px;
  background: transparent; border: none; border-radius: 999px;
  box-shadow: none; transform: none;
  transition: background .25s ease, color .25s ease;
}
.care-tabs-seg .care-tab:hover{ transform: none; border: none; background: rgba(255,255,255,.5); }
.care-tabs-seg .care-tab.active{
  background: #fff; border: none; transform: none;
  box-shadow: 0 2px 8px -2px rgba(15,42,74,.18);
}
.care-tabs-seg .care-tab.active::before{ display: none; }  /* 上辺グラデ廃止 */
.care-tabs-seg .care-tab-label{
  font-family: var(--ff-tech); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; color: var(--text-muted); margin: 0; line-height: 1;
}
.care-tabs-seg .care-tab.active .care-tab-label{ color: var(--v9-orange-strong); }
.care-tabs-seg .care-tab-count{
  font-family: var(--ff-display); font-style: italic; font-size: 12px;
  color: var(--text-soft); line-height: 1;
}
.care-tabs-seg .care-tab.active .care-tab-count{ color: var(--v9-orange); }

@media (min-width:768px){
  .care-tabs.care-tabs-seg{ margin: 20px auto 32px; }
  .care-tabs-seg .care-tab{ padding: 10px 26px; }
  .care-tabs-seg .care-tab-label{ font-size: 13px; }
  .care-tabs-seg .care-tab-count{ font-size: 13px; }
}

/* ============================================================
   v136 ①: 承「A DAILY QUESTION」静的復旧（氷山サークル不使用）
   ＋ スクロール左右スライドイン（既存 .reveal 機構に乗せる修飾）
   ※旧 .iceberg-* / .iccard.pos-* は使用しない（別途撤去候補）
   ============================================================ */
.daily {
  padding: 56px 0 40px;
  background: var(--bg-base);
  overflow-x: hidden;
}
.daily .section-inner { text-align: center; }
.daily-title {
  font-family: var(--ff-serif);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 10px 0 18px;
}
.daily-title em.hi-orange { font-style: normal; }
.daily-lead {
  font-family: var(--ff-sans);
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 2.0;          /* 行間ゆったり */
  letter-spacing: .02em;
  margin: 0 auto 30px;
  max-width: 30em;
}
.daily-core {
  font-style: normal;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(180deg, transparent 64%,
              color-mix(in srgb, var(--v9-orange) 32%, transparent) 64%);
  padding: 0 .12em;
}
.daily-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
}
.daily-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 20px 64px;
  background: #fff;
  border: 0.5px solid var(--border-soft);
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(15,42,74,.05);
}
.daily-num {
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--ff-tech);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--v9-orange);
  opacity: .9;
}
.daily-ctitle {
  font-family: var(--ff-serif);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}
.daily-ctitle strong { font-size: 17px; font-weight: 600; }
.daily-cvoice {
  font-family: var(--ff-sans);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .daily { padding: 72px 0 52px; }
  .daily-title { font-size: 32px; }
  .daily-cards { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* --- 承カード専用スライドイン（dq-rise） ---
   携帯：画面端の半分(±50vw)から大きく動く。PC：控えめ(±120px)。
   速度1秒・連続スタッガー(JS側200ms間隔)で重ねて流す。 */
.dq-rise {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}
.dq-rise--left  { transform: translateX(-50vw); }
.dq-rise--right { transform: translateX(50vw); }
.dq-rise.in { opacity: 1; transform: none; }
@media (min-width: 768px) {
  /* PCは控えめな横移動に */
  .dq-rise--left  { transform: translateX(-120px); }
  .dq-rise--right { transform: translateX(120px); }
}
@media (prefers-reduced-motion: reduce) {
  .dq-rise { opacity: 1 !important; transform: none !important; transition: none; }
}
