/* =========================================================
   どんぐり教室 - Design System
   Concept: 「小さな一歩が、大きな未来につながる。」
   ========================================================= */

:root {
  --ivory: #F8F4EA;
  --ivory-deep: #F1EBDB;
  --forest: #2E4A3A;
  --forest-deep: #203428;
  --brown: #8A5A38;
  --brown-deep: #6B4228;
  --yellow: #E7B65C;
  --yellow-soft: #F1D49A;
  --charcoal: #2B2823;
  --charcoal-soft: #534E45;
  --white: #FFFFFF;
  --line: rgba(43, 40, 35, 0.12);

  --font-serif: "Shippori Mincho", "Noto Serif JP", serif;
  --font-sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;

  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.font-serif { font-family: var(--font-serif); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-deep);
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ---------- Eyebrow / Kicker ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--brown-deep);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brown);
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248, 244, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(43,40,35,0.05);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .header-inner { padding: 18px 40px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--forest-deep);
}
.brand img { width: 30px; height: 30px; object-fit: contain; }

.main-nav {
  display: none;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--brown);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--ivory);
  box-shadow: 0 6px 18px rgba(46, 74, 58, 0.25);
}
.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 74, 58, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--forest-deep);
  border-color: var(--forest-deep);
}
.btn-secondary:hover {
  background: var(--forest-deep);
  color: var(--ivory);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brown); color: var(--brown-deep); }
.btn-small { padding: 10px 22px; font-size: 13.5px; }
.btn-block { width: 100%; }

.header-cta-btn {
  padding: 11px 24px;
  font-size: 14px;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest-deep);
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 28px; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--forest-deep);
  font-weight: 600;
}
.mobile-nav .mobile-cta { margin-top: 20px; }
.mobile-nav a.mobile-cta,
.mobile-nav a.mobile-cta:visited {
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 15px;
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: block; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--ivory);
  padding-top: 76px;
  overflow: hidden;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - 76px); }
}
.hero-copy {
  position: relative;
  z-index: 3;
  padding: 56px 24px 48px;
}
@media (min-width: 768px) { .hero-copy { padding: 60px 40px 60px; } }
@media (min-width: 1024px) { .hero-copy { padding: 0 24px 0 56px; } }

.hero-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--forest-deep);
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--brown); }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--charcoal-soft);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.hero-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--charcoal-soft);
  font-weight: 600;
}
.hero-price-tag strong {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--forest-deep);
}

.hero-photo {
  position: relative;
  height: 56vh;
  min-height: 360px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-photo { height: 100%; min-height: calc(100vh - 76px); }
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,74,58,0.04) 0%, rgba(46,74,58,0.08) 100%);
}
.hero-photo::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, var(--ivory), transparent);
  z-index: 2;
  display: none;
}
@media (min-width: 1024px) {
  .hero-photo::before { display: block; }
}

.hero-caption {
  position: absolute;
  bottom: 22px;
  right: 22px;
  z-index: 3;
  background: rgba(248,244,234,0.9);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--charcoal-soft);
  letter-spacing: 0.04em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--charcoal-soft);
}
.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: var(--charcoal-soft);
  opacity: 0.4;
  overflow: hidden;
  position: relative;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 100%;
  background: var(--brown);
  animation: scrollDown 2.2s infinite ease-in-out;
}
@keyframes scrollDown {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .line::after { animation: none; display:none; }
}

/* ---------- Sections general ---------- */
section { position: relative; }
.section-pad { padding: 100px 0; }
@media (max-width: 767px) { .section-pad { padding: 72px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 20px;
}
.section-text {
  color: var(--charcoal-soft);
  font-size: 1rem;
}

.bg-forest { background: var(--forest-deep); color: var(--ivory); }
.bg-forest h2, .bg-forest h3, .bg-forest h4 { color: var(--ivory); }
.bg-forest .section-text { color: rgba(248,244,234,0.78); }
.bg-ivory-deep { background: var(--ivory-deep); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Philosophy (02) ---------- */
.philosophy {
  background: var(--forest-deep);
  color: var(--ivory);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .philosophy-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
}
.philosophy-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.philosophy-photo img { width: 100%; height: 100%; object-fit: cover; }
.philosophy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  margin-bottom: 28px;
  color: var(--ivory);
}
.philosophy p { color: rgba(248,244,234,0.82); margin-bottom: 18px; font-size: 1.02rem; }
.philosophy .divider {
  width: 44px; height: 2px; background: var(--yellow); margin: 28px 0;
}

/* ---------- Concept (03) ---------- */
.concept { background: var(--ivory); }
.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .concept-grid { grid-template-columns: 1fr 0.95fr; gap: 64px; }
}
.concept-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
}
.concept-visual img { width: 100%; height: 100%; object-fit: cover; }
.concept-stages {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.concept-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--brown-deep);
  font-weight: 600;
}
.concept-stage .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--brown);
}
.concept-stage.grown .dot { background: var(--forest); width:14px; height:14px; }
.concept-arrow { color: var(--charcoal-soft); opacity: 0.5; }

/* ---------- Learning (04) ---------- */
.learning { background: var(--ivory-deep); }
.learning-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.learning-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.learning-row:first-child { padding-top: 0; }
.learning-row:last-child { border-bottom: none; }
@media (min-width: 860px) {
  .learning-row { grid-template-columns: 0.55fr 1fr; gap: 56px; }
  .learning-row.reverse { grid-template-columns: 1fr 0.55fr; }
  .learning-row.reverse .learning-photo { order: 2; }
  .learning-row.reverse .learning-text { order: 1; }
}
.learning-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.learning-row:nth-child(1) .learning-photo { aspect-ratio: 4/5; }
.learning-row:nth-child(2) .learning-photo { aspect-ratio: 1/1; }
.learning-row:nth-child(3) .learning-photo { aspect-ratio: 3/4; }
.learning-photo img { width: 100%; height: 100%; object-fit: cover; }
.learning-num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--brown);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.learning-text h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 16px;
}
.learning-text p { color: var(--charcoal-soft); }

/* ---------- Classroom (05) ---------- */
.classroom { background: var(--ivory); }
.classroom-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 36px;
}
.classroom-media img { width: 100%; height: 100%; object-fit: cover; }
.classroom-note {
  font-size: 13px;
  color: var(--charcoal-soft);
  opacity: 0.8;
  margin-top: 10px;
}

/* ---------- How to join (06) ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
}
.step {
  position: relative;
  padding: 32px 24px 32px 0;
  border-top: 2px solid var(--line);
}
@media (min-width: 760px) {
  .step { border-top: 2px solid var(--line); border-left: none; padding: 28px 20px 0 0; }
  .step:not(:last-child) { border-right: 1px solid var(--line); padding-right: 28px; }
}
.step-index {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--brown);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}
.step h4 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { color: var(--charcoal-soft); font-size: 0.94rem; }

/* ---------- Price (07) ---------- */
.price-section { background: var(--forest-deep); color: var(--ivory); }
.price-hero {
  text-align: center;
  padding: 10px 0 48px;
  border-bottom: 1px solid rgba(248,244,234,0.15);
  margin-bottom: 48px;
}
.price-amount {
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  margin: 10px 0 14px;
  white-space: nowrap;
}
.price-amount .price-unit-prefix,
.price-amount .price-unit-num,
.price-amount .price-unit-suffix {
  display: inline-block;
  vertical-align: bottom;
  line-height: 1;
}
.price-amount .price-unit-num {
  font-family: var(--font-serif);
  font-size: 1em;
  color: var(--yellow-soft);
  margin: 0 0.12em;
}
.price-amount .price-unit-prefix,
.price-amount .price-unit-suffix {
  font-size: 0.28em;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ivory);
}
.price-note { color: rgba(248,244,234,0.75); max-width: 460px; margin: 0 auto; }

.price-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 760px) { .price-stats { grid-template-columns: repeat(4, 1fr); } }
.price-stat {
  background: rgba(248,244,234,0.06);
  border: 1px solid rgba(248,244,234,0.14);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
}
.price-stat .num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--yellow-soft);
  display: block;
  margin-bottom: 6px;
}
.price-stat .label { font-size: 13px; color: rgba(248,244,234,0.75); }

.price-disclaimer {
  margin-top: 40px;
  padding: 22px 26px;
  background: rgba(248,244,234,0.05);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: rgba(248,244,234,0.78);
  line-height: 1.9;
}

/* ---------- FAQ (08) ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--forest-deep);
  font-weight: 600;
}
.faq-q .q-mark {
  font-family: var(--font-sans);
  color: var(--brown);
  font-weight: 800;
  margin-right: 14px;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--forest-deep);
  transition: transform 0.3s var(--ease);
}
.faq-q .icon::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .icon::after { top: 0; left: 50%; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-item.open .icon::after { transform: translateX(-50%) rotate(90deg); opacity:0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding: 0 4px 28px 38px;
  color: var(--charcoal-soft);
  font-size: 0.96rem;
}

/* ---------- Contact (09) ---------- */
.contact-section { background: var(--ivory-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}
.contact-side h2 { margin-bottom: 20px; }
.contact-side p { color: var(--charcoal-soft); margin-bottom: 24px; }
.contact-points { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact-point { display: flex; gap: 14px; align-items: flex-start; }
.contact-point .mark { width: 8px; height: 8px; border-radius: 50%; background: var(--brown); margin-top: 8px; flex-shrink: 0; }
.contact-point .mark.acorn-bullet { width: 14px; height: 14px; border-radius: 0; background: none; margin-top: 2px; }
.contact-point p { margin: 0; color: var(--charcoal-soft); font-size: 0.94rem; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .form-card { padding: 44px 40px; } }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 8px;
}
.form-row .optional {
  font-weight: 500;
  color: var(--charcoal-soft);
  font-size: 12px;
  margin-left: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--ivory);
  color: var(--charcoal);
  transition: border-color 0.25s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--forest);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--charcoal-soft);
}
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-demo-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--charcoal-soft);
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px dashed var(--line);
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success.show { display: block; }
.form-success .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

/* ---------- Footer (10) ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(248,244,234,0.85);
  padding: 72px 0 32px;
  transition: padding-bottom 0.2s var(--ease);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248,244,234,0.12);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 19px; color: var(--ivory); margin-bottom: 14px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-tagline { font-size: 13.5px; color: rgba(248,244,234,0.6); max-width: 280px; }
.footer-col h5 { font-size: 13px; letter-spacing: 0.1em; color: var(--yellow-soft); margin-bottom: 18px; text-transform: uppercase; font-family: var(--font-sans); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(248,244,234,0.8); }
.footer-col a:hover { color: var(--yellow-soft); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(248,244,234,0.5);
}
@media (min-width: 760px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-disclaimer {
  font-size: 12px;
  color: rgba(248,244,234,0.45);
  margin-top: 6px;
  line-height: 1.8;
}

/* ---------- Floating CTA bar (mobile/tablet) ---------- */
.floating-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: rgba(248, 244, 234, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(43, 40, 35, 0.08);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.floating-cta .btn { width: 100%; }
.floating-cta.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .floating-cta { display: none; }
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 8px 20px rgba(46, 74, 58, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.3s var(--ease);
  z-index: 960;
  cursor: pointer;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg { width: 20px; height: 20px; display: block; }
.back-to-top:hover { background: var(--forest-deep); transform: translateY(-3px); }
@media (min-width: 1024px) {
  .back-to-top { bottom: 28px; right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta, .back-to-top { transition: none; }
}

/* ---------- Page header (sub pages) ---------- */
.page-hero {
  padding: 150px 0 70px;
  background: var(--ivory-deep);
  text-align: left;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-bottom: 20px;
}
.page-hero p { color: var(--charcoal-soft); max-width: 600px; font-size: 1.02rem; }
.breadcrumb { font-size: 12.5px; color: var(--charcoal-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--brown-deep); font-weight: 600; }

/* ---------- Generic content blocks ---------- */
.content-block { max-width: 820px; }
.content-block p { color: var(--charcoal-soft); margin-bottom: 20px; }
.content-block h3 { margin: 40px 0 16px; font-size: 1.3rem; }
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.value-card h4 { font-size: 1.1rem; margin-bottom: 12px; display:flex; align-items:center; gap:10px;}
.value-card h4 .num { font-family: var(--font-serif); color: var(--brown); font-size: 1rem; }
.value-card p { color: var(--charcoal-soft); margin: 0; font-size: 0.95rem; }
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 700px) { .value-grid { grid-template-columns: 1fr 1fr; } }

.price-table-simple {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.price-table-simple th, .price-table-simple td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.price-table-simple th { color: var(--charcoal-soft); font-weight: 600; width: 40%; }
.price-table-simple td { color: var(--forest-deep); font-weight: 600; }

.cta-band {
  background: var(--brown-deep);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h3 { color: var(--ivory); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 16px; }
.cta-band p { color: rgba(248,244,234,0.8); margin-bottom: 28px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.privacy-content h2 { margin: 42px 0 16px; font-size: 1.3rem; }
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p, .privacy-content li { color: var(--charcoal-soft); margin-bottom: 14px; }
.privacy-content ul { padding-left: 20px; list-style: disc; }

/* ---------- Acorn deco motif ---------- */
.deco-acorn {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  color: var(--brown);
  width: 34px;
  height: auto;
  will-change: transform;
}
.deco-acorn svg { width: 100%; height: 100%; display: block; }

/* 浮遊アニメーション本体。個体ごとに時間差・角度をずらして自然に揺れる */
/* --parallax-y / --parallax-rot はJSがスクロール位置に応じて更新するCSS変数 */
@keyframes acornFloat {
  0%   { transform: translateY(var(--parallax-y, 0px)) rotate(calc(var(--acorn-rot, 0deg) + var(--parallax-rot, 0deg))); }
  50%  { transform: translateY(calc(-14px + var(--parallax-y, 0px))) rotate(calc(var(--acorn-rot, 0deg) + 6deg + var(--parallax-rot, 0deg))); }
  100% { transform: translateY(var(--parallax-y, 0px)) rotate(calc(var(--acorn-rot, 0deg) + var(--parallax-rot, 0deg))); }
}
.deco-acorn.float {
  animation: acornFloat var(--acorn-dur, 7s) ease-in-out infinite;
  animation-delay: var(--acorn-delay, 0s);
}

/* スクロール連動のゆるやかな回転・視差（JSが--parallax-y/--parallax-rotを更新） */
.deco-acorn.parallax:not(.float) {
  transform: translateY(var(--parallax-y, 0px)) rotate(calc(var(--acorn-rot, 0deg) + var(--parallax-rot, 0deg)));
  transition: transform 0.2s linear;
}

.deco-acorn--sm { width: 20px; opacity: 0.12; }
.deco-acorn--md { width: 34px; opacity: 0.1; }
.deco-acorn--lg { width: 52px; opacity: 0.08; }
.deco-acorn--brand { color: var(--forest); }
.deco-acorn--yellow { color: var(--yellow); opacity: 0.18; }

@media (max-width: 640px) {
  .deco-acorn--hide-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .deco-acorn.float { animation: none; }
  .deco-acorn.parallax { transition: none; transform: none !important; }
}

/* ---------- Section divider (acorn) ---------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  margin: 0 auto;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.section-divider .divider-line {
  width: 56px;
  height: 1px;
  background: var(--line);
}
.section-divider .divider-acorn {
  width: 16px;
  height: 16px;
  color: var(--brown);
  opacity: 0.55;
  flex-shrink: 0;
}
.section-divider .divider-acorn svg { width: 100%; height: 100%; display: block; }
.bg-forest .section-divider .divider-line,
.price-section .section-divider .divider-line { background: rgba(248,244,234,0.2); }
.bg-forest .section-divider .divider-acorn,
.price-section .section-divider .divider-acorn { color: var(--yellow-soft); opacity: 0.7; }

/* ---------- Acorn bullet (used in lists) ---------- */
.acorn-bullet {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--brown);
  opacity: 0.7;
  flex-shrink: 0;
}
.acorn-bullet svg { width: 100%; height: 100%; display: block; }

/* ---------- Button acorn hover micro-interaction ---------- */
.btn .btn-acorn {
  width: 16px;
  height: 16px;
  display: inline-flex;
  flex-shrink: 0;
  transform: translateY(0) rotate(0deg);
  transition: transform 0.4s var(--ease);
}
.btn .btn-acorn svg { width: 100%; height: 100%; display: block; }
.btn:hover .btn-acorn {
  transform: translateY(-3px) rotate(18deg);
}
@media (prefers-reduced-motion: reduce) {
  .btn .btn-acorn { transition: none; }
  .btn:hover .btn-acorn { transform: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--forest);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0; top: 0;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
