/* ============================================
   YOU - Midwife Wellness Salon
   Design System & Global Styles
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --color-primary: #e77625;
  --color-primary-light: rgba(243, 151, 0, 0.2);
  --color-primary-btn: #f39700;
  --color-bg: #eadfcb;
  --color-bg-cream: #f0e6d5;
  --color-bg-beige: #d9c7b0;
  --color-bg-white: #ffffff;
  --color-text: #241408;
  --color-text-light: #5a4a3a;
  --color-accent-green: #7eb8a1;
  --color-accent-gold: #edd3a9;

  --font-en: 'Larken', 'Playfair Display', Georgia, serif;
  --font-jp: 'dnp-shuei-gothic-gin-std', 'Noto Sans JP', sans-serif;
  --font-all: 'dnp-shuei-gothic-gin-std', 'Noto Sans JP', sans-serif;

  --content-width: 600px;
  --content-padding: 24px;
  --inner-width: 345px;
  --radius-card: 10px;
  --radius-btn: 8px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-all);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Layout --- */
.page-wrapper {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  background-color: var(--color-bg);
}

/* --- Decorative Illustrations --- */
.deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
  animation: deco-float 6s ease-in-out infinite;
}
.deco:nth-of-type(even) {
  animation-duration: 8s;
  animation-delay: -3s;
}

@keyframes deco-float {
  0%, 100% { transform: translateY(0) rotate(var(--deco-rotate, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--deco-rotate, 0deg)); }
}

.section {
  padding: 60px var(--content-padding);
}

.section--cream {
  background-color: var(--color-bg-cream);
}

.section--beige {
  background-color: var(--color-bg-beige);
}

.section--white {
  background-color: #f5efe5;
}

.section--primary-light {
  background-color: var(--color-primary-light);
}

.inner {
  width: 100%;
  max-width: var(--inner-width);
  margin: 0 auto;
}

/* --- Typography --- */
.heading-en {
  font-family: var(--font-en);
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0;
}

.heading-en--hero {
  font-size: 49px;
  line-height: 1.04;
}

.heading-en--section {
  font-size: 23px;
  line-height: 1.04;
  margin-bottom: 24px;
}

.heading-jp {
  font-family: var(--font-all);
  font-weight: 300;
  color: var(--color-primary);
}

.heading-jp--xl {
  font-size: 35px;
  line-height: 1.45;
  letter-spacing: -1.2px;
}

.heading-jp--lg {
  font-size: 26px;
  line-height: 1.45;
  letter-spacing: -0.9px;
}

.heading-jp--md {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.78px;
}

.heading-jp--sm {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.66px;
}

.heading-jp--xs {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  color: var(--color-text);
}

.text-body {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.text-body--sm {
  font-size: 13px;
  line-height: 1.9;
}

.text-body--xs {
  font-size: 13px;
  line-height: 1.9;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px calc(var(--content-padding) - 5px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Top page: header hidden initially, shown on scroll */
.header--top-hidden {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--content-width);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.header--top-hidden.header--visible {
  opacity: 1;
  pointer-events: all;
}

.header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

body.nav-open .header {
  z-index: 300;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  width: 171px;
  height: auto;
}

.header__nav-toggle {
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.header__nav-toggle span {
  display: block;
  position: absolute;
  width: 25px;
  height: 1.5px;
  background: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__nav-toggle span:first-child {
  transform: translateY(-4px);
}

.header__nav-toggle span:last-child {
  transform: translateY(4px);
}

body.nav-open .header__nav-toggle span:first-child {
  transform: translateY(0) rotate(45deg);
}

body.nav-open .header__nav-toggle span:last-child {
  transform: translateY(0) rotate(-45deg);
}

.header__menu-icon {
  width: 25px;
  height: 11px;
  display: block;
}

/* Desktop nav — hidden on mobile */
.header__nav {
  display: none;
}

/* Static hero — hidden on mobile, shown on desktop */
.hero-static {
  display: none;
}

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 200;
  padding: 24px var(--content-padding) 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__header {
  margin-bottom: 32px;
}

.nav-overlay__logo-img {
  width: 90px;
  height: auto;
}

body.nav-open .header__logo {
  opacity: 0;
  pointer-events: none;
}

.nav-overlay__close {
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-overlay__item a {
  display: block;
  padding: 9px 0;
  font-family: var(--font-all);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  border-bottom: 1px solid rgba(36, 20, 8, 0.1);
  transition: color 0.2s;
}

.nav-overlay__item a:hover {
  color: var(--color-primary);
}

.nav-overlay__item--sub a {
  padding-left: 24px;
  font-size: 14px;
}

.nav-overlay__group {
  font-family: var(--font-all);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #b3a690;
  margin-top: 22px;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(36, 20, 8, 0.09);
}

/* グループ見出し直前の項目は下線を消す（見出しの上線と2本並ぶのを防ぐ） */
.nav-overlay__item:has(+ .nav-overlay__group) a {
  border-bottom: none;
}

.nav-overlay__cta {
  margin-top: 24px;
}

/* Prevent background scroll when menu is open */
body.nav-open {
  overflow: hidden;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-all);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  border: none;
  transition: filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  justify-content: center;
}

.btn:hover {
  filter: brightness(0.93);
}

.btn:active {
  filter: brightness(0.88);
}

.btn--primary {
  background-color: var(--color-primary-btn);
  color: #ffffff;
}

.btn--primary-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--full {
  width: 100%;
  padding: 12px 20px;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 17px;
}

/* 電話ボタン: ラベル + 番号の2段組み（番号の途中折り返しを防ぐ） */
.btn--tel {
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.btn--tel .btn__tel-label {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn__icon--circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn__icon--circle svg {
  width: 10px;
  height: 10px;
}

/* --- Cards --- */
.card {
  background-color: #f7f2ea;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  position: relative;
}

.card > *:last-child:not(.btn):not(a[class*="btn"]) {
  margin-bottom: 0;
  padding-bottom: 0;
}

.card--white {
  background-color: var(--color-bg-white);
}

.card--cream {
  background-color: var(--color-bg-cream);
}

.card__icon {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 32px;
  height: 32px;
}

.card__title {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.78px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.card__text {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.card__text--sm {
  font-size: 13px;
  line-height: 1.9;
}

.card + .card {
  margin-top: 24px;
}

/* --- Program Cards (with image placeholder) --- */
.program-card {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-bg-white);
}

.program-card__image {
  width: 100%;
  aspect-ratio: 345 / 206;
  background-color: #fbfbfb;
  background-size: cover;
  background-position: center;
}

.program-card__body {
  padding: 20px 24px 24px;
}

.program-card__title {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 12px;
}

.program-card__text {
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.program-card + .program-card {
  margin-top: 32px;
}

/* --- Hero Section --- */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  z-index: 0;
}

.hero + .page-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 100svh;
  border-radius: 20px 20px 0 0;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #c8b89a;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 2.5s ease-out;
}

.hero__bg--active {
  opacity: 1;
  animation: hero-kenburns 9s ease-out both;
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.085); }
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px var(--content-padding) 32px;
}

.hero__toplogo {
  width: 323px;
  height: auto;
}

.hero__cta-wrap {
  display: flex;
  justify-content: center;
}

.hero__title-en {
  font-family: var(--font-en);
  font-size: 51px;
  line-height: 1.04;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero__title-jp {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--color-primary);
}

/* --- Page Hero (Sub Pages) --- */
.page-hero {
  position: relative;
  width: 100%;
  padding-top: 16px;
}

.page-hero__image {
  width: var(--inner-width);
  margin: 0 auto;
  height: 540px;
  border-radius: var(--radius-card);
  background-size: cover;
  background-position: center;
  background-color: #c8b89a;
}

.page-hero__content {
  padding: 32px var(--content-padding) 0;
}

.page-hero__subtitle {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.66px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.page-hero__title {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.84px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

/* --- Testimonial --- */
.testimonial {
  background-color: var(--color-bg-cream);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.testimonial__quote {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 16px;
  font-style: normal;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 32px;
  color: var(--color-primary);
  line-height: 0;
  vertical-align: -8px;
  margin-right: 4px;
}

.testimonial__author {
  font-size: 13px;
  color: var(--color-text-light);
}

.testimonial + .testimonial {
  margin-top: 16px;
}

/* --- Price Table --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table tr {
  border-bottom: 1px solid rgba(36, 20, 8, 0.1);
}

.price-table td {
  padding: 16px 0;
  font-size: 15px;
  line-height: 1.6;
  vertical-align: top;
}

.price-table td:first-child {
  font-weight: 300;
  padding-right: 16px;
  white-space: nowrap;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

/* --- Steps --- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 48px;
  padding-bottom: 32px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background-color: var(--color-primary-light);
}

.step:last-child::after {
  display: none;
}

.step:last-child {
  padding-bottom: 0;
}

.step__title {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step__text {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

/* --- Decorative Elements --- */
.deco-ellipse {
  position: absolute;
  border-radius: 50%;
  background-color: var(--color-accent-gold);
  z-index: 0;
}

.deco-icon {
  width: 270px;
  height: 270px;
  opacity: 0.15;
}

/* --- Section Divider --- */
.section__label {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 25px;
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.section__heading {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.78px;
  color: var(--color-text);
  margin-bottom: 28px;
}

.section__text {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* --- Two-Column Comparison --- */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison__col {
  flex: 1;
  background-color: var(--color-bg-cream);
  border-radius: var(--radius-card);
  padding: 20px 16px;
}

.comparison__title {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-align: center;
}

.comparison__list li {
  font-size: 13px;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.comparison__list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--color-primary);
  font-weight: bold;
}

/* --- Dot List (和文の箇条書き: ぶら下げインデントで折り返しを揃える) --- */
.dot-list {
  color: var(--color-text);
}

.dot-list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.dot-list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.dot-list--md li {
  font-size: 14px;
}

/* --- Info Box --- */
.info-box {
  background-color: var(--color-bg-cream);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 16px;
}

.info-box__title {
  font-family: var(--font-all);
  font-weight: 300;
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.info-box__text {
  font-size: 14px;
  line-height: 1.85;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px var(--content-padding) 32px;
}

.footer__logo-img {
  height: 72px;
  width: auto;
  margin-bottom: 32px;
  filter: brightness(0) invert(1) opacity(0.8);
}

.footer__section {
  margin-bottom: 28px;
}

.footer__section-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__moriane {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 8px;
}

.footer__moriane-title {
  font-family: var(--font-all);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.footer__moriane-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.footer__sns {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__sns a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.footer__sns a:hover {
  background-color: var(--color-primary);
}

.footer__sns svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.8);
}

.footer__copyright {
  margin-top: 32px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* --- Sticky CTA (Mobile) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  background-color: rgba(234, 223, 203, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px var(--content-padding) calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 12px;
  z-index: 98;
  border-top: 1px solid rgba(36, 20, 8, 0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-cta.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.sticky-cta .btn {
  flex: 1;
  font-size: 14px;
  padding: 10px 12px;
}

/* --- Float CTA Button --- */
.float-cta {
  position: fixed;
  bottom: 24px;
  z-index: 98;
  right: calc(50% - var(--content-width) / 2 + 16px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s;
}

@media (max-width: 393px) {
  .float-cta {
    right: 16px;
  }
}

.float-cta:hover {
  transform: translateY(-2px);
}

.float-cta__img {
  height: 48px;
  width: auto;
  display: block;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  /* hug the right edge of the centered column on wide screens, but never
     go off-screen on narrow phones (16px gutter) */
  right: max(16px, calc(50% - var(--content-width) / 2 + 16px));
  z-index: 97;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(36, 20, 8, 0.08);
  border-radius: 50%;
  background: #f7f2ea;
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(36, 20, 8, 0.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* lifted above the bottom sticky CTA bar on pages that have it */
.scroll-top.is-above-cta {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
}

.scroll-top__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Spacing Utilities --- */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-small { font-size: 13px; }

/* ============================================
   Responsive — Desktop (wider than mobile)
   Centered mobile view with beige background
   ============================================ */
@media (min-width: 641px) {
  body {
    background-color: var(--color-bg);
  }

  .page-wrapper,
  .footer {
    position: relative;
    z-index: 1;
  }

  .page-wrapper {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }

  .hero {
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--content-width);
    z-index: 0;
  }

  .footer {
    max-width: var(--content-width);
    margin: 0 auto;
  }

  .sticky-cta {
    z-index: 99;
  }
}

/* --- Desktop Sidebars --- */
.desktop-sidebar {
  display: none;
}

@media (min-width: 1100px) {
  /* On the desktop sidebar layout the nav is always visible, so the
     mobile scroll-to-top button is unnecessary. */
  .scroll-top {
    display: none;
  }

  .desktop-sidebar {
    position: fixed;
    z-index: 10;
  }

  /* Right: nav centered vertically */
  .desktop-sidebar--right {
    left: calc(50% + var(--content-width) / 2 + clamp(24px, 3vw, 60px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Left: logo top-aligned with nav top */
  .desktop-sidebar--left {
    right: calc(50% + var(--content-width) / 2 + clamp(24px, 3vw, 60px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-bottom: clamp(200px, 22vw, 310px);
  }

  .desktop-sidebar__logo img {
    width: clamp(140px, 14vw, 240px);
    height: auto;
  }

  .desktop-sidebar__nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(7px, 0.8vw, 11px);
  }

  .desktop-sidebar__nav a {
    font-family: var(--font-jp);
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 300;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .desktop-sidebar__nav a:hover {
    color: var(--color-primary);
  }

  .desktop-sidebar__nav a.is-current {
    color: var(--color-text);
    font-weight: 500;
  }

  .desktop-sidebar__group {
    font-family: var(--font-jp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #b3a690;
    margin-top: 24px;
    margin-bottom: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(36, 20, 8, 0.09);
    white-space: nowrap;
  }

  /* Hide header on wide desktop (sidebar has logo + nav) */
  .header,
  .header--top-hidden {
    display: none;
  }

  .page-wrapper {
    padding-top: 40px;
  }
}

/* ===== YouTube facade ===== */
.video-embed__play-btn:hover .video-embed__play,
.video-embed__play-btn:focus-visible .video-embed__play { background: var(--color-primary-btn) !important; }
.video-embed__play-btn:hover .video-embed__thumb { opacity: 0.95; }

/* In-page large view (custom fullscreen button) */
.video-embed__fs {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(36, 20, 8, 0.55);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: background 0.2s ease;
}
.video-embed__fs:hover { background: var(--color-primary-btn); }
.video-embed__fs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.video-embed--expanded {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: #000;
  z-index: 9999;
}
.video-embed--expanded .video-embed__fs {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  width: 44px;
  height: 44px;
}
body.video-expanded { overflow: hidden; }

/* ===== Soft scroll reveal (ふわっとやさしい) ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__bg--active { animation: none; }
  .scroll-top { transition: none; }
}
