/* ============================================
   ものがたりや — Monogataria
   AI Pet Storybook Service
   ============================================ */

:root {
  /* Color Palette */
  --bg-cream: #FAF6EF;
  --bg-cream-deep: #F2EBDC;
  --card: #FFFFFF;
  --primary: #8FA98A;
  --primary-deep: #6E8A6A;
  --accent: #C97B5C;
  --accent-deep: #A85F42;
  --text-dark: #2D2419;
  --text: #4A3D2E;
  --text-muted: #8A7C6B;
  --border: #E8DFD0;
  --gold: #C9A961;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-serif: "Klee One", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", sans-serif;
  --font-en: "Caveat", "Klee One", cursive;

  /* Layout */
  --container: 1140px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 24px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(45, 36, 25, 0.06);
  --shadow: 0 8px 24px rgba(45, 36, 25, 0.08);
  --shadow-lg: 0 20px 48px rgba(45, 36, 25, 0.12);
}

/* ===== 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);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.en-label {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 1.35rem;
  text-transform: lowercase;
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-xl) 0;
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-head p.lead {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo .mark {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.logo .mark-en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.nav .btn-order {
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav .btn-order:hover {
  background: var(--accent-deep);
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav { gap: 1rem; }
  .nav a:not(.btn-order) { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-deep) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(143, 169, 138, 0.12), transparent 70%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201, 123, 92, 0.1), transparent 70%);
  z-index: 0;
}

.hero .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.hero-copy h1 .accent {
  color: var(--accent);
  display: inline-block;
}

.hero-copy .sub {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}
.btn-ghost:hover {
  background: var(--text-dark);
  color: white;
  opacity: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 460px;
}

.hero-illustration {
  height: auto;
}

.hero-illustration img {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
}

.hero-illustration img:hover {
  transform: rotate(0deg) scale(1.01);
}

/* Storybook mockup illustration (legacy, kept for fallback) */
.book {
  position: absolute;
  width: 280px;
  height: 360px;
  border-radius: 4px 12px 12px 4px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.4s ease;
}

.book::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px 0 0 4px;
}

.book-1 {
  background: linear-gradient(135deg, #C97B5C, #A85F42);
  transform: rotate(-8deg) translateX(-80px);
  z-index: 1;
}
.book-2 {
  background: linear-gradient(135deg, #8FA98A, #6E8A6A);
  transform: rotate(2deg);
  z-index: 3;
  width: 290px;
  height: 370px;
}
.book-3 {
  background: linear-gradient(135deg, #C9A961, #9C8345);
  transform: rotate(10deg) translateX(80px);
  z-index: 2;
}

.book-cover-text {
  text-align: center;
  padding: 1rem;
  line-height: 1.6;
}

.book-cover-text .pet-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.book-cover-text .title-jp {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.book-cover-text .title-en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.15rem;
  opacity: 0.92;
  margin-top: 0.3rem;
}

@media (max-width: 880px) {
  .hero .inner { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; }
  .book { width: 200px; height: 260px; }
  .book-2 { width: 210px; height: 270px; }
  .book-cover-text .pet-emoji { font-size: 3rem; }
}

/* ===== Use Cases Ribbon ===== */
.usecases {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.usecase-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.usecase-card:hover {
  background: var(--bg-cream);
  transform: translateY(-4px);
}

.usecase-card .icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.usecase-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.usecase-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

/* ===== Sample Showcase ===== */
.samples {
  background: var(--bg-cream);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sample-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.sample-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.sample-cover {
  aspect-ratio: 4 / 5;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sample-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.cover-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.5rem 1.5rem 1.4rem;
  color: white;
  text-align: center;
  font-family: var(--font-serif);
}

.cover-overlay .title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.cover-overlay .subtitle {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.25rem;
  opacity: 0.95;
  margin-top: 0.3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.sample-meta {
  padding: 1.25rem 1.5rem;
}

.sample-meta .pet-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sample-meta .desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* ===== Flow / Steps ===== */
.flow {
  background: var(--card);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.step .num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 2px solid var(--primary);
  color: var(--primary-deep);
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding-top: 4px;
}

.step h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps::before { display: none; }
}

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

/* ===== Actual Book ===== */
.actual-book {
  background: var(--bg-cream);
}

.actual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.actual-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.actual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.actual-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.actual-caption {
  padding: 1.75rem 2rem 2rem;
}

.actual-caption h3 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.actual-caption p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

@media (max-width: 880px) {
  .actual-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== Plans ===== */
.plans {
  background: var(--bg-cream-deep);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.plan-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.plan-card.featured {
  border-color: var(--accent);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.plan-card.featured::before {
  content: "おすすめ";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plan-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.plan-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.plan-tag {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.plan-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.plan-price .yen {
  font-size: 1rem;
  margin-right: 0.25rem;
}

.plan-price .tax {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

.plan-features {
  margin: 1.5rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.plan-features li {
  font-size: 0.92rem;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.plan-cta {
  width: 100%;
  padding: 0.85rem;
  background: var(--text-dark);
  color: white;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: center;
  display: block;
}

.plan-card.featured .plan-cta {
  background: var(--accent);
}

.plan-cta:hover {
  background: var(--accent-deep);
  opacity: 1;
}

@media (max-width: 880px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }
}

/* ===== Voice / Testimonials ===== */
.voice {
  background: var(--bg-cream);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.voice-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.voice-card::before {
  content: "“";
  position: absolute;
  top: 12px;
  left: 18px;
  font-family: var(--font-en);
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.voice-card p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.voice-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.voice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.voice-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-serif);
}

.voice-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ===== CTA Section ===== */
.cta-band {
  background: linear-gradient(135deg, #4A3D2E 0%, #2D2419 100%);
  color: white;
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(201, 123, 92, 0.18), transparent 70%);
}

.cta-band .inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-band .en-label {
  color: var(--gold);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  background: var(--accent);
  font-size: 1.05rem;
  padding: 1.1rem 2.5rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-lg) 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .mark {
  color: white;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: block;
  letter-spacing: 0.02em;
}

.footer-brand .mark-en {
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h5 {
  font-family: var(--font-serif);
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: white;
  opacity: 1;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

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

/* ===== FAQ Teaser ===== */
.faq-teaser {
  background: var(--card);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-item summary {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-en);
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 0.2s ease;
  font-weight: 500;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

/* ============================================
   SUB-PAGES
   ============================================ */

/* ===== Sub-page Hero ===== */
.subpage-hero {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-deep) 100%);
  padding: 2.5rem 0 var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 45%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(143, 169, 138, 0.12), transparent 70%);
}

.subpage-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.subpage-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.subpage-hero .hero-sub {
  color: var(--text);
  font-size: 1rem;
  line-height: 2;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb .sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ===== Lead Block ===== */
.lead-block {
  background: var(--card);
  text-align: center;
}

.lead-block .inner {
  max-width: 680px;
  margin: 0 auto;
}

.lead-block .big-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--text-dark);
  line-height: 2;
  font-weight: 600;
}

.lead-block .big-text .em {
  color: var(--accent);
}

/* ===== Feature Rows ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row .feature-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-row.reverse .feature-img {
  order: 2;
}

.feature-text h3 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-text h3 .step-dot {
  font-family: var(--font-en);
  color: var(--accent);
  font-size: 1.6rem;
  margin-right: 0.5rem;
}

.feature-text p {
  color: var(--text);
  line-height: 2;
  font-size: 0.97rem;
}

@media (max-width: 800px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-row.reverse .feature-img {
    order: 0;
  }
}

/* ===== Note / Callout Box ===== */
.note-box {
  background: var(--bg-cream);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 2rem auto;
  max-width: 720px;
}

.note-box.accent {
  border-left-color: var(--accent);
}

.note-box h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.note-box p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.9;
}

/* ===== Occasion Grid ===== */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.occasion-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.occasion-card:hover {
  transform: translateY(-4px);
}

.occasion-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.occasion-card h4 {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.occasion-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* ===== Single Plan Highlight ===== */
.plan-highlight {
  max-width: 460px;
  margin: 0 auto;
}

/* ===== FAQ Full Page ===== */
.faq-page-category {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

.faq-page-category:last-child {
  margin-bottom: 0;
}

.faq-category-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 600;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-category-title .cat-icon {
  font-size: 1.4rem;
}

/* ===== Sub-page generic content ===== */
.content-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.content-narrow p {
  line-height: 2;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.content-narrow h2 {
  margin: 2.5rem 0 1rem;
}

.content-narrow h2:first-child {
  margin-top: 0;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-dark);
}

.legal-section p {
  line-height: 2;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.94rem;
}

.legal-list, .legal-ol {
  margin: 0.5rem 0 1.25rem 1.5rem;
}

.legal-list li {
  list-style: disc;
  margin-bottom: 0.4rem;
  line-height: 1.9;
  font-size: 0.94rem;
  color: var(--text);
}

.legal-ol li {
  list-style: decimal;
  margin-bottom: 0.4rem;
  line-height: 1.9;
  font-size: 0.94rem;
  color: var(--text);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.9;
}

.legal-table th {
  background: var(--bg-cream-deep);
  width: 32%;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-dark);
}

.legal-table td {
  background: var(--card);
  color: var(--text);
}

.placeholder-fill {
  background: #FCEFE3;
  color: var(--accent-deep);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .legal-table, .legal-table tbody, .legal-table tr,
  .legal-table th, .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table th { border-bottom: none; }
  .legal-table td { border-top: none; margin-bottom: 0.6rem; }
}

/* ============================================
   ORDER FORM
   ============================================ */
.order-main {
  background: var(--bg-cream);
  padding: var(--space-lg) 0 var(--space-xl);
}

.order-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.form-progress::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.progress-step .dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.progress-step .label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.progress-step.active .dot {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.progress-step.done .dot {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.progress-step.active .label,
.progress-step.done .label {
  color: var(--text-dark);
}

@media (max-width: 560px) {
  .progress-step .label { display: none; }
}

.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 560px) {
  .form-card { padding: 1.5rem; }
}

.form-step { display: none; }
.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.form-step h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.form-step .step-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.form-label .req {
  color: var(--accent);
  font-size: 0.78rem;
  margin-left: 0.4rem;
}

.form-label .opt {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-left: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-cream);
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.8;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.plan-select {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-option { display: block; cursor: pointer; position: relative; }
.plan-option input { position: absolute; opacity: 0; }

.plan-option .po-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.plan-option input:checked + .po-card {
  border-color: var(--accent);
  background: #FFF8F3;
}

.po-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.08rem;
}

.po-desc {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.po-price {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.15rem;
  white-space: nowrap;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

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

.choice { cursor: pointer; position: relative; display: block; }
.choice input { position: absolute; opacity: 0; }

.choice .ch-box {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
  transition: all 0.2s ease;
  font-size: 0.88rem;
  color: var(--text);
}

.choice input:checked + .ch-box {
  border-color: var(--accent);
  background: #FFF8F3;
  color: var(--text-dark);
}

.choice .ch-emoji {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  background: var(--bg-cream);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-drop:hover { border-color: var(--accent); }

.file-drop .fd-icon { font-size: 2.2rem; }

.file-drop .fd-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.file-list {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text);
}

.file-list li {
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.btn-prev {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn-prev:hover {
  border-color: var(--text-muted);
  opacity: 1;
}

.field-error { border-color: #D9534F !important; }

.error-msg {
  color: #D9534F;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.error-msg.show { display: block; }

.review-block {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.review-block dt {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.review-block dd {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.agree-box {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--bg-cream);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.agree-box input { margin-top: 0.3rem; flex-shrink: 0; }
.agree-box a { color: var(--accent); }

.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success.show { display: block; animation: fadeIn 0.4s ease; }
.form-success .fs-icon { font-size: 3.5rem; }
.form-success h2 { margin: 1rem 0 0.6rem; }
.form-success p { color: var(--text-muted); font-size: 0.95rem; }

.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
}

.contact-info {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text);
}
