/* =========================
   Muya─木芽─ Core Theme
   ========================= */

:root {
  --paper: #FFF3E7;
  --brand: #365C3B;
  --ink: #43311F;
  --ink-sub: #6b5642;
  --line: rgba(54, 92, 59, 0.18);
  --emotion: #C7A3A0;

  --maxw: 1120px;
  --radius: 22px;
}

/* ===== Reset / Base ===== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  line-height: 1.9;
}

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

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

/* ===== Layout ===== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

.center {
  text-align: center;
}

/* ===== Header ===== */
header.site {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(67, 49, 31, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
}

.logo-en {
  font-family: "Beth Ellen", cursive;
  font-size: 2rem;
  line-height: 1;
}

.logo-ja {
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

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

.header-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.9;
  white-space: nowrap;
}

.header-nav a:hover {
  opacity: 1;
}

/* Instagram icon */
.ig-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ig-link img {
  width: 18px;
  height: 18px;
  max-width: none;
  display: block;
  object-fit: contain;
  opacity: 0.85;
}

.ig-link img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}

/* ===== Typography ===== */
h1,
h2,
h3 {
  font-family: "Noto Serif JP", serif;
  color: var(--brand);
  margin: 0;
}

h2 {
  font-size: clamp(22px, 3vw, 34px);
  text-align: center;
}

p {
  margin: 0 0 1.6em;
}

.lead {
  max-width: 760px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--ink-sub);
}

.note {
  color: var(--ink-sub);
}

.emotion {
  color: var(--emotion);
}

/* ===== Sections ===== */
.section-head {
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(67, 49, 31, 0.65);
}

.section-head h2 {
  margin-top: 10px;
}

.divider {
  width: 72px;
  height: 1px;
  background: var(--line);
  margin: 40px auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(54, 92, 59, 0.28);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.btn.primary {
  background: var(--brand);
  color: var(--paper);
  border-color: transparent;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(67, 49, 31, 0.08);
  border-radius: 22px;
  padding: 20px;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: rgba(67, 49, 31, 0.75);
  line-height: 1.8;
}

/* ===== Prose ===== */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.6em;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(67, 49, 31, 0.08);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 120px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto auto;
  column-gap: 60px;
  row-gap: 12px;
  align-items: start;
}

/* 左上：イラスト */
.hero-illust {
  grid-column: 1;
  grid-row: 1;
}

.hero-left-visual {
  width: 220px;
  max-width: 100%;
  display: block;
  opacity: 0.92;
}

/* 左下：コピー */
.hero-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 320px;
}

.hero-copy h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.4;
  color: var(--brand);
  margin: 0;
  text-align: left;
  word-break: keep-all;
}

.hero-copy .lead {
  margin-top: 20px;
  margin-left: 0;
  margin-right: 0;
  max-width: 18em;
  line-height: 2;
  text-align: left;
  color: var(--ink);
}

/* 右：画像 */
.hero-media {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  border-radius: 32px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
  transition: opacity 0.8s ease;
}

.hero-media img.is-fading {
  opacity: 0;
}

/* ===== Loading Screen ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-inner {
  text-align: center;
}

.loader-logo .logo-en {
  font-family: "Beth Ellen", cursive;
  font-size: 42px;
  color: var(--brand);
  line-height: 1;
}

.loader-logo .logo-ja {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-left: 10px;
}

.loader-note {
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink-sub);
  opacity: 0.8;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .loader {
    transition: none;
  }
}

/* ===== Sprout Image Animation ===== */
.sprout-img {
  width: 48px;
  height: auto;
  margin: 18px auto 0;
  display: block;
  opacity: 0;
  transform: translateY(12px) scale(0);
  animation: sproutPop 1.1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes sproutPop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0);
  }
  65% {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 24px;
  }

  .hero-illust {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    max-width: 100%;
  }

  .hero-media {
    grid-column: 1;
    grid-row: 3;
    max-width: 100%;
    margin-left: 0;
  }

  .hero-copy h1,
  .hero-copy .lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-left-visual {
    margin: 0 auto;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 120px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 360px 1fr; /* 左を少し広く */
  grid-template-rows: auto auto;
  column-gap: 72px;
  row-gap: 8px;
  align-items: start;
}

/* 左上：イラスト */
.hero-illust {
  grid-column: 1;
  grid-row: 1;
}

.hero-left-visual {
  width: 560px;   /* ← 220px → 300px に大きく */
  max-width: 100%;
  display: block;
  opacity: 0.92;
}

/* 左下：コピー */
.hero-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 260px;
  margin-top: -12px; /* イラストに少し近づける */
}

.hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 46px); /* ← 小さく */
  line-height: 1.5;
  color: var(--brand);
  margin: 0;
  text-align: left;
  word-break: keep-all;
}

.hero-copy .lead {
  margin-top: 18px;
  margin-left: 0;
  margin-right: 0;
  max-width: 16em;
  line-height: 1.9;
  text-align: left;
  color: var(--ink);
  font-size: 0.98rem;
}

/* 右：画像 */
.hero-media {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 100%;
  max-width: 480px; /* ← 620px → 540px に小さく */
  margin-left: auto;
  border-radius: 32px;
  overflow: hidden;
}
