/* ============================================================
   erb アロマ・ハーブ教室 LP — style.css
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --text-dark: #1A1A1A;
  --text-mid: #5C5C5C;
  --text-light: #999999;
  --border: #E0E0DC;
  --charcoal: #2B2B2B;

  --font-serif-jp: 'Noto Serif JP', serif;
  --font-sans-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Cormorant Garamond', serif;

  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
  --radius: 4px;

  --section-pad: 100px;
  --container: 1100px;
}

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

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utility --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section-pad { padding: var(--section-pad) 0; }
.bg-off { background: var(--off-white); }
.sp-only { display: none; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: #A07850;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1.5px solid #A07850;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}

.btn-primary:hover {
  background: #A07850;
  color: #ffffff;
}

.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-arrow {
  font-style: normal;
  transition: transform var(--transition);
}

.btn-large { padding: 20px 48px; font-size: 15px; }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif-jp);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

/* ヘッダーナビのテキストをヒーロー写真の上でも常に見えるように */
.site-header:not(.scrolled) .header-nav a {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.site-header:not(.scrolled) .header-nav a:hover {
  color: #fff;
}

.site-header:not(.scrolled) .nav-cta {
  border-color: rgba(255,255,255,0.8) !important;
  color: rgba(255,255,255,0.9) !important;
}

.site-header:not(.scrolled) .nav-cta:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

.site-header:not(.scrolled) .logo-ja {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.site-header:not(.scrolled) .hamburger span {
  background: #A07850;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 14px 0;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6),
    0 4px 24px rgba(255,255,255,0.7),
    0 8px 48px rgba(255,255,255,0.4);
  /* 明るい光のフェードアウト効果 */
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
  transition: filter var(--transition), opacity var(--transition);
}

/* 透過対応ロゴ：黒背景PNGに対応した合成方式 */
.logo-img--transparent {
  background: transparent;
}

/* ヒーロー上（スクロール前）：白背景JPEGにmultiply合成 → 白背景が消えてロゴ文字だけ浮かぶ */
.site-header:not(.scrolled) .logo-img--transparent {
  mix-blend-mode: multiply;
  filter: none;
  opacity: 1;
}

/* スクロール後：白背景ヘッダーでもmultiply → 白背景が消えて自然に表示 */
.site-header.scrolled .logo-img--transparent {
  mix-blend-mode: multiply;
  filter: none;
  opacity: 1;
}

/* フッター：ダーク背景にscreen合成で黒背景が消え文字が白く浮かぶ */
.logo-img--footer {
  mix-blend-mode: screen;
  filter: none;
  height: 30px;
  opacity: 0.92;
}

.logo-ja {
  font-family: var(--font-en);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  font-weight: 300;
  padding-left: 10px; /* ERBロゴの棒部分に合わせて右寄せ */
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--text-dark);
  color: var(--text-dark) !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
  background: var(--text-dark);
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #A07850;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 99;
  padding: 80px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.mobile-cta {
  margin-top: 24px;
  padding: 14px 0;
  text-align: center;
  background: transparent;
  color: #A07850 !important;
  letter-spacing: 0.1em;
  border: 1.5px solid #A07850 !important;
  border-bottom: 1.5px solid #A07850 !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

/* Hero Slides */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: 75%;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.slide-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* ボトムの白フェード（テキストエリア用） */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.5) 75%,
    rgba(255,255,255,0.92) 100%
  );
  z-index: 1;
}

/* 上部ナビエリアの自然な光フェード */
.hero-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0) 100%
  );
  z-index: 1;
  /* ソフトな光の広がり感 */
  filter: blur(0.5px);
}

/* 左側テキストエリアの強い白フェード */
.hero-overlay-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.95) 15%,
    rgba(255,255,255,0.75) 30%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0) 65%,
    rgba(255,255,255,0) 100%
  );
  z-index: 1;
}

/* 右端：写真の途切れ目を白くフェードアウト */
.hero-overlay-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.85) 3%,
    rgba(255,255,255,0.5) 7%,
    rgba(255,255,255,0) 14%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px 80px;
  /* テキストを左半分に収める */
  max-width: 600px;
  margin-left: max(40px, calc(50vw - 550px));
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif-jp);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 20px;
}

.title-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  font-style: italic;
}

.title-ja {
  display: block;
  font-family: var(--font-serif-jp);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 400;
  color: var(--text-dark);
}

.hero-sub {
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  line-height: 2;
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll-hint span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mid);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-mid), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 4px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.trust-logos .divider { color: var(--border); }

/* ============================================================
   REASONS
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.reason-card {
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.reason-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* 写真背景カード */
.reason-card--photo {
  position: relative;
  min-height: 320px;
  border: none;
  overflow: hidden;
}

/* imgタグによる背景写真（iOS Safari完全対応） */
.reason-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

/* ホワイトオーバーレイ（明るく飛ばすエフェクト） */
.reason-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.88) 0%,
    rgba(255,255,255,0.75) 40%,
    rgba(255,255,255,0.55) 100%
  );
  z-index: 1;
  transition: opacity 0.6s ease;
}

.reason-card--photo:hover .reason-card-overlay {
  opacity: 0.85;
}

.reason-card-inner {
  position: relative;
  z-index: 2;
  padding: 48px 36px;
}

.reason-heading {
  font-family: var(--font-serif-jp);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.reason-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
}

/* ============================================================
   MENU
   ============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.menu-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s ease;
  position: relative;
}

/* シャインエフェクト：削除済み */
.menu-card::before {
  content: none;
}

/* ボーダーグロー用の疑似要素 */
.menu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(120,160,80,0.6), rgba(180,210,130,0.3), rgba(120,160,80,0.1)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.menu-card:hover {
  box-shadow: 0 20px 60px rgba(100,140,60,0.15), 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-8px);
  border-color: rgba(120,160,80,0.3);
}

.menu-card:hover::after {
  opacity: 1;
}

.menu-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.menu-img-wrap img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-card:hover .menu-img-wrap img { transform: scale(1.06); }

.menu-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.04);
  transition: background var(--transition);
}

.menu-card:hover .menu-img-overlay { background: rgba(0,0,0,0); }

.menu-card-body {
  padding: 20px 24px 24px;
  position: relative;
  z-index: 3;
}

.menu-card-body h3 {
  font-family: var(--font-serif-jp);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: color 0.4s ease;
}

.menu-card:hover .menu-card-body h3 {
  color: #5a8a30;
}

.menu-card-body p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   PRICE — NEW FLEXIBLE DESIGN
   ============================================================ */
.price-flex-wrap {
  max-width: 900px;
  margin: 0 auto 48px;
}

.price-flex-message {
  text-align: center;
  padding: 48px 40px 56px;
  border: 1px solid var(--border);
  background: var(--off-white);
  margin-bottom: 24px;
  position: relative;
}

.price-flex-message::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(120,160,90,0.4), transparent);
}

.price-flex-lead {
  font-family: var(--font-serif-jp);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.price-flex-lead strong {
  font-weight: 500;
  position: relative;
}

.price-flex-lead strong::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 1px;
  background: var(--text-dark);
  opacity: 0.3;
}

.price-flex-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  max-width: 560px;
  margin: 0 auto;
}

.price-range-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.price-range-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.price-range-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.price-range-card--rich {
  background: var(--off-white);
  border-color: rgba(120,160,90,0.3);
}

.price-range-card--rich::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(120,160,90,0.6), transparent);
}

.price-range-label {
  font-family: var(--font-sans-jp);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.price-range-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  line-height: 1;
}

.price-range-amount-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-range-from {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.price-range-num {
  font-family: var(--font-sans-jp);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.price-range-yen {
  font-size: 18px;
  font-weight: 300;
}

.price-range-unit {
  font-size: 13px;
  color: var(--text-mid);
}

.price-range-note {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.price-flex-footnote {
  font-size: 11px;
  color: var(--text-light);
  line-height: 2;
  text-align: center;
  letter-spacing: 0.03em;
}

/* ============================================================
   PRICE — old styles kept for reference
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 24px;
}

.price-card {
  padding: 48px 40px;
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
}

.price-card--premium {
  border-color: var(--charcoal);
  background: var(--off-white);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 4px 16px;
}

.price-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
  line-height: 1;
}

.price-from {
  font-size: 12px;
  color: var(--text-mid);
}

.price-num {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.price-unit {
  font-size: 14px;
  color: var(--text-mid);
}

.price-features {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.price-features li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-features li::before {
  content: '—';
  color: var(--text-light);
  flex-shrink: 0;
}

.price-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.price-cta { text-align: center; }

/* ============================================================
   FORMAT
   ============================================================ */
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.format-item {
  text-align: center;
  padding: 0 0 32px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.format-item:last-child { border-right: none; }

.format-photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--off-white);
}

.format-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.format-item:hover .format-photo img { transform: scale(1.05); }

.format-photo--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-photo--icon svg {
  width: 60px;
  height: 60px;
  color: var(--text-light);
}

.format-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--text-dark);
}

.format-item h3 {
  font-family: var(--font-serif-jp);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0 20px;
}

.format-item p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.8;
  padding: 0 16px;
}

/* ============================================================
   FORMAT CARDS — NEW TEXT-ONLY DESIGN
   ============================================================ */
.format-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.format-card-new {
  position: relative;
  overflow: hidden;
  padding: 48px 32px 52px;
  border-right: 1px solid var(--border);
  background: #fff;
  cursor: default;
  transition: background 0.5s ease;
}

.format-card-new:last-child {
  border-right: none;
}

/* ホバー時：背景をごく薄いグリーンに */
.format-card-new:hover {
  background: #f7faf5;
}

/* 光のグロウエフェクト（右上から広がる） */
.format-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 195, 130, 0.25) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.format-card-new:hover .format-glow {
  opacity: 1;
  transform: scale(1);
}

.format-card-inner {
  position: relative;
  z-index: 1;
}

/* 番号 */
.format-num {
  display: block;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--accent, #7a9e6e);
  margin-bottom: 20px;
}

/* 区切り線：ホバーで伸びる */
.format-line {
  width: 24px;
  height: 1px;
  background: var(--text-dark);
  margin-bottom: 28px;
  transition: width 0.4s ease;
}

.format-card-new:hover .format-line {
  width: 48px;
}

/* タイトル */
.format-title-new {
  font-family: var(--font-serif-jp);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

/* 説明文 */
.format-desc-new {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.9;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  user-select: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-scroll-wrap::-webkit-scrollbar { display: none; }
.gallery-scroll-wrap.is-dragging { cursor: grabbing; }

.gallery-track {
  display: flex;
  gap: 12px;
  padding: 0 40px;
  width: max-content;
}

.gallery-item {
  width: 320px;
  height: 240px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--off-white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 72px;
  align-items: flex-start;
}

/* 写真フレーム：小さくしてアクセント装飾 */
.profile-img-frame {
  position: relative;
}

.profile-img-frame::before {
  display: none;
}

.profile-img-accent {
  display: none;
}

.profile-img-wrap {
  aspect-ratio: 2/3;
  overflow: hidden;
  width: 100%;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s ease;
}

.profile-img-wrap:hover img { transform: scale(1.03); }

.profile-text-col {
  padding-top: 24px;
}

.profile-text-col .section-eyebrow { margin-bottom: 16px; }

.profile-name {
  font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

.profile-title {
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.profile-bio {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 28px;
}

.profile-certs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-certs li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}

.profile-certs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--text-light);
  transform: translateY(-50%);
}

/* ============================================================
   MEDIA
   ============================================================ */
.media-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 60px;
  border: 1px solid var(--border);
}

.stat-item {
  background: var(--off-white);
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* クリック可能な stat-item */
.stat-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition:
    background 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

.stat-item--link:hover {
  background: #f0ebe4;
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(160, 120, 80, 0.15);
  z-index: 1;
}

.stat-item--link:hover .stat-num {
  color: #A07850;
}

.stat-link-hint {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #A07850;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  margin-top: 4px;
}

.stat-item--link:hover .stat-link-hint {
  opacity: 1;
  transform: translateY(0);
}

.stat-num {
  font-family: var(--font-sans-jp);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-sans-jp);
  font-size: 16px;
  font-weight: 300;
}

.stat-label {
  font-size: 12px;
  color: var(--text-mid);
  letter-spacing: 0.1em;
}

.media-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding: 40px 20px;
}

/* テキストのみのクライアント一覧 */
.media-clients-text {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #555555;
  text-align: center;
  line-height: 2.4;
}

.media-slash {
  color: #aaaaaa;
  margin: 0 0.4em;
  font-weight: 300;
}

.media-item:last-child { border-right: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--white); }

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-eyebrow { margin-bottom: 16px; }

.contact-title {
  font-family: var(--font-serif-jp);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 40px;
}

.contact-sub strong {
  color: var(--text-dark);
  font-weight: 500;
}

/* FAQ */
.faq-wrap {
  margin-top: 72px;
  text-align: left;
}

.faq-title {
  font-family: var(--font-serif-jp);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 28px;
  text-align: center;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q, .faq-a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
}

.faq-q { margin-bottom: 10px; }

.faq-mark {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
}

.faq-q span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
}

.faq-a span:last-child {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  padding: 48px 0;
  color: var(--white);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo .logo-en {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--white);
}

.footer-logo .logo-ja {
  font-family: var(--font-en);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* フッター専用：Aroma Herb文字を右にずらす */
.logo-ja--footer {
  padding-left: 12px;
  color: rgba(255,255,255,0.5) !important;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}

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

.scroll-top:hover { background: #444; }

.scroll-top svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .header-nav { display: none; }
  .hamburger { display: flex; }
  .sp-only { display: inline; }

  .reasons-grid { grid-template-columns: 1fr; gap: 16px; }
  .reason-card-inner { padding: 32px 28px; }
  .reason-card--photo { min-height: 240px; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); }

  .price-grid { max-width: 100%; }
  .price-range-cards { grid-template-columns: 1fr; }

  .format-grid { grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); }
  .format-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .format-item:nth-child(2n) { border-right: none; }
  .format-item:nth-last-child(-n+2) { border-bottom: none; }

  /* 新カード：タブレット2列 */
  .format-grid-new { grid-template-columns: repeat(2, 1fr); }
  .format-card-new { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .format-card-new:nth-child(2n) { border-right: none; }
  .format-card-new:nth-last-child(-n+2) { border-bottom: none; }

  .gallery-track { padding: 0 20px; }
  .gallery-item { width: 260px; height: 200px; }

  .profile-inner { grid-template-columns: 1fr; gap: 40px; }
  .profile-img-frame { max-width: 180px; }
  .profile-img-wrap { max-width: 100%; }

  .media-stats { grid-template-columns: repeat(3, 1fr); }

  .media-item { padding: 16px 20px; font-size: 13px; min-width: 0; }
  .media-logos { gap: 24px 32px; }

  .site-footer .container { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 600px) {
  :root { --section-pad: 56px; }

  .container { padding: 0 20px; }

  .header-inner { padding: 0 20px; }

  .hero-content { padding: 0 20px 60px; }
  .hero-scroll-hint { display: none; }

  .section-title { font-size: 24px; }
  .section-header { margin-bottom: 40px; }

  .reasons-grid { gap: 12px; }
  .reason-card-inner { padding: 28px 24px; }

  .menu-grid { grid-template-columns: 1fr; }

  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 36px 28px; }
  .price-num { font-size: 36px; }
  .price-flex-message { padding: 36px 24px 40px; }
  .price-flex-lead { font-size: 18px; }
  .price-range-cards { grid-template-columns: 1fr; }
  .price-range-card { padding: 28px 24px; }

  .format-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .format-item { padding: 0 0 24px; border: 1px solid var(--border); }

  /* 新カード：モバイル2列 */
  .format-grid-new { grid-template-columns: repeat(2, 1fr); }
  .format-card-new { padding: 32px 20px 36px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .format-card-new:nth-child(2n) { border-right: none; }
  .format-card-new:nth-last-child(-n+2) { border-bottom: none; }
  .format-title-new { font-size: 16px; }
  .format-item:nth-child(2n) { border-right: 1px solid var(--border); }

  .gallery-item { width: 220px; height: 165px; }

  .profile-img-frame { max-width: 160px; }
  .profile-name { font-size: 26px; }

  .media-stats { grid-template-columns: 1fr; }
  .stat-item { padding: 28px; }

  .media-logos { gap: 20px 24px; }
  .media-logo-item svg { height: 32px; }
  .media-logo-item--small svg { height: 44px; }

  .contact-title { font-size: 28px; }

  .scroll-top { right: 20px; bottom: 20px; }
}

/* ============================================================
   ロゴ画像 追加スタイル
   ============================================================ */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 3px;
}

/* footerロゴ */
.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 3px;
}

/* ============================================================
   ヒーロー：緑背景スライド等の文字保護
   ============================================================ */
/* 緑・暗い背景の写真スライドでも文字が見えるよう、
   左側オーバーレイを十分に白くしている。
   個別スライドへの追加輝度調整（lesson_scene2 = 緑背景）*/
.hero-slide:nth-child(3) {
  filter: brightness(1.15) saturate(0.85);
}

/* ============================================================
   セクション間パラレックス帯（背景なし区間の解消）
   ============================================================ */
/* 各セクションの切れ目に自然なつながりを持たせるため
   .bg-off セクション以外は白、.bg-off は off-white を使う。
   追加で「区切りがない」感を出すため、.reasons、.price、
   .profile、.contact に薄いボトムシャドウを付ける */
.reasons,
.price-section,
.profile-section,
.contact-section {
  background: var(--white);
}

/* パラレックス区切りバナー：メニューとフォーマットの間 */
.parallax-divider {
  position: relative;
  height: 320px;
  overflow: hidden;
}

/* imgタグによる背景写真（iOS Safari完全対応） */
.parallax-divider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

.parallax-divider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.35);
  z-index: 1;
}

/* ============================================================
   モバイル：hero-content を全幅に
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    max-width: 100%;
    margin-left: 0;
    padding: 0 40px 80px;
  }

  .hero-overlay-left {
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.80) 35%,
      rgba(255,255,255,0.45) 55%,
      rgba(255,255,255,0.1) 70%,
      rgba(255,255,255,0) 100%
    );
  }
}

@media (max-width: 600px) {
  .hero-content {
    max-width: 100%;
    margin-left: 0;
    padding: 0 20px 60px;
  }

  /* スマホ専用：グラデーションをさらに緩く（3分の2まで写真が見える） */
  .hero-overlay-left {
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.75) 30%,
      rgba(255,255,255,0.35) 55%,
      rgba(255,255,255,0.05) 67%,
      rgba(255,255,255,0) 100%
    );
  }

  .logo-img {
    height: 32px;
  }
}
