/* ===== Tokens ===== */
:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe2;
  --surface: #ffffff;
  --ink: #2f2a25;
  --ink-soft: #6b6158;
  --line: #e2d9cc;
  --brand: #ad8e6e;      /* ロゴのトープ */
  --brand-deep: #8a6c4f;
  --accent: #e98a4f;     /* 花のオレンジ */
  --green: #6f8a62;
  --radius: 4px;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --latin: "Cormorant Garamond", serif;
  --container: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.5; margin: 0; letter-spacing: .08em; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-size: 14px; letter-spacing: .1em; text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border: 1px solid var(--brand); color: var(--brand-deep); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.text-link { color: var(--brand-deep); font-size: 14px; text-underline-offset: 4px; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(250,247,242,.78); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(250,247,242,.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand img { width: 56px; height: 56px; mix-blend-mode: multiply; }
.global-nav { display: flex; align-items: center; gap: 28px; }
.global-nav a { font-family: var(--latin); font-size: 17px; letter-spacing: .12em; text-decoration: none; }
.global-nav a:hover { color: var(--brand-deep); }
.global-nav .nav-cta { font-family: var(--sans); font-size: 13px; background: var(--brand); color: #fff; padding: 9px 20px; border-radius: 999px; }
.global-nav .nav-cta:hover { background: var(--brand-deep); color: #fff; }
.nav-toggle { display: none; }
@media (min-width: 901px) and (max-width: 1100px) {
  .global-nav { gap: 16px; }
  .global-nav a { font-size: 15px; letter-spacing: .06em; }
  .global-nav .nav-cta { padding: 8px 14px; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block; position: relative; z-index: 60;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .3s; }
  .nav-toggle span:first-child { top: 18px; }
  .nav-toggle span:last-child { top: 26px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(25deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-25deg); }
  .global-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .global-nav.is-open { opacity: 1; pointer-events: auto; }
  .global-nav a { font-size: 24px; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
}
.hero-media { height: 100svh; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-copy { padding: 120px clamp(24px, 6vw, 88px) 80px; }
.eyebrow { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--brand-deep); letter-spacing: .14em; }
.hero h1 { font-size: clamp(28px, 3.4vw, 44px); margin: 12px 0 28px; }
.hero .lead { color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 24px; margin: 0;
  font-family: var(--latin); font-size: 13px; letter-spacing: .3em; color: var(--ink-soft);
  writing-mode: vertical-rl; padding-bottom: 56px;
}
.hero-scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 48px; background: var(--brand); animation: scrollLine 2s infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { height: 62svh; }
  .hero-copy { padding: 40px var(--gutter) 72px; }
  .hero-scroll { display: none; }
}

/* ===== Sections ===== */
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-label {
  font-family: var(--latin); font-size: 15px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brand-deep); display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.section-label::before { content: ""; width: 28px; height: 1px; background: var(--brand); }
.section h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 24px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.plus { color: var(--accent); font-family: var(--latin); }
.about-points { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.about-points li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-points span { font-family: var(--latin); color: var(--brand); font-size: 18px; }
.about-photo { margin: 0; }
.about-photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 200px 200px var(--radius) var(--radius); }
.about-photo figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 12px; text-align: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 420px; margin: 0 auto; } }

/* Lesson */
.lesson { background: var(--bg-alt); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  background: var(--surface); padding: 36px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); text-align: center;
}
.plan-featured { border-color: var(--brand); box-shadow: 0 18px 40px -24px rgba(138,108,79,.5); }
.plan-tag { display: inline-block; font-size: 12px; color: var(--brand-deep); border: 1px solid var(--brand); padding: 2px 14px; border-radius: 999px; }
.plan-featured .plan-tag { background: var(--brand); color: #fff; }
.plan h3 { font-size: 20px; margin: 8px 0 12px; }
.price { font-family: var(--latin); font-size: 40px; line-height: 1.2; color: var(--ink); }
.price small { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); margin-left: 4px; }
.plan ul { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-soft); }
.note { font-size: 12px; color: var(--ink-soft); margin-top: 16px; }

.lesson-extra { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; margin-top: 80px; }
.lesson-extra figure { margin: 0; }
.lesson-extra img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: var(--radius); }
.lesson-extra h3 { font-size: 22px; margin-bottom: 16px; }
.lesson-list { margin: 0 0 28px; }
.lesson-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lesson-list dt { font-family: var(--serif); font-weight: 600; }
.lesson-list dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.bring { background: var(--surface); padding: 20px 24px; border-radius: var(--radius); margin-bottom: 28px; }
.bring-title { font-weight: 500; margin-bottom: 6px; color: var(--green); }
.bring ul { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .lesson-extra { grid-template-columns: 1fr; }
  .lesson-extra figure { max-width: 420px; }
  .lesson-extra .btn { width: 100%; }
}

/* Schedule */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.upcoming { margin-top: 32px; border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; }
.upcoming-title { font-family: var(--serif); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.upcoming ul { list-style: none; padding: 0; margin: 0; color: var(--ink); }
.upcoming time { font-weight: 500; margin-right: 8px; }
.upcoming .muted { color: var(--ink-soft); font-size: 14px; }

/* Calendar (data/calendar.json から描画) */
.calendar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px); box-shadow: 0 24px 50px -36px rgba(47,42,37,.45);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { margin: 0; text-align: center; font-family: var(--latin); line-height: 1.2; }
.cal-year { display: block; font-size: 14px; letter-spacing: .3em; color: var(--ink-soft); }
.cal-month { font-size: 24px; letter-spacing: .14em; }
.cal-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none;
  font-size: 22px; line-height: 1; color: var(--brand-deep); cursor: pointer;
}
.cal-nav:hover:not(:disabled) { background: var(--bg-alt); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week { text-align: center; font-size: 12px; color: var(--ink-soft); padding-bottom: 4px; }
.cal-week.sun { color: #c0533a; } .cal-week.sat { color: #4a6f96; }
.cal-cell {
  position: relative; min-height: 64px; padding: 6px 4px 4px; border-radius: 3px;
  background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.cal-cell.is-blank { background: none; }
.cal-cell.is-past { opacity: .45; }
.cal-cell.is-open { background: #f3ebdf; }
.cal-cell.is-today { outline: 1.5px solid var(--brand); }
.cal-date { font-family: var(--latin); font-size: 16px; line-height: 1; }
.cal-cell.sun .cal-date { color: #c0533a; } .cal-cell.sat .cal-date { color: #4a6f96; }
.cal-cell .dot, .cal-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: inline-block; }
.cal-lesson { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.flower { color: var(--accent); font-size: 14px; line-height: 1; }
.cal-times { font-size: 10px; letter-spacing: 0; color: var(--ink); text-align: center; }
.cal-note { font-size: 10px; letter-spacing: 0; line-height: 1.3; color: var(--green); text-align: center; word-break: break-all; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 16px 0 0; font-size: 13px; color: var(--ink-soft); }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-empty { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 480px) {
  .cal-cell { min-height: 54px; padding: 4px 1px; }
  .cal-times { font-size: 9px; }
  .cal-note { display: none; }
}
@media (max-width: 900px) { .schedule-grid { grid-template-columns: 1fr; } .section-head { margin-bottom: 0; } .calendar { margin-top: 32px; } }

/* Gallery */
.gallery { background: var(--bg-alt); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .6s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* 3D Print promo */
.promo3d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.promo3d-media { margin: 0; position: relative; height: clamp(360px, 42vw, 520px); }
.promo3d-media img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: 0 24px 50px -32px rgba(47,42,37,.55); }
.promo3d-media img:first-child { right: 0; top: 0; width: 64%; height: 100%; border-radius: 200px 200px var(--radius) var(--radius); }
.promo3d-media img:last-child { left: 0; bottom: 8%; width: 44%; aspect-ratio: 1; border: 6px solid var(--bg); }
.promo3d-list { list-style: none; padding: 0; margin: 24px 0 28px; border-top: 1px solid var(--line); }
.promo3d-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.promo3d-list span { color: var(--brand-deep); font-weight: 500; }
@media (max-width: 900px) { .promo3d-grid { grid-template-columns: 1fr; } .promo3d-media { height: 80vw; max-height: 460px; } }

/* News */
.news-wrap { max-width: 860px; }
.news-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: auto auto 1fr; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--latin); font-size: 16px; color: var(--ink-soft); }
.news-list .cat { font-size: 11px; color: var(--brand-deep); border: 1px solid var(--line); padding: 0 10px; border-radius: 999px; }
.news-list p { margin: 0; }
@media (max-width: 640px) { .news-list li { grid-template-columns: auto 1fr; gap: 4px 12px; } .news-list p { grid-column: 1 / -1; } }

/* Access */
.access-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.access-info dl { margin: 0 0 32px; }
.access-info dl div { display: grid; grid-template-columns: 100px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.access-info dt { font-family: var(--latin); font-size: 17px; color: var(--brand-deep); letter-spacing: .1em; }
.access-info dd { margin: 0; }
.access-info dd a { text-decoration: none; font-size: 18px; }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35) sepia(.15); }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--bg-alt); text-align: center; padding: 56px var(--gutter) 96px; }
.site-footer img { margin: 0 auto 16px; mix-blend-mode: multiply; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.site-footer nav a { font-family: var(--latin); font-size: 16px; letter-spacing: .12em; text-decoration: none; }
.site-footer small { color: var(--ink-soft); }

/* Floating CTA (mobile) */
.float-cta { display: none; }
@media (max-width: 900px) {
  .float-cta {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    text-align: center; background: var(--brand); color: #fff; text-decoration: none;
    padding: 14px; border-radius: 999px; letter-spacing: .1em; font-size: 14px;
    box-shadow: 0 10px 30px -10px rgba(47,42,37,.5);
    transform: translateY(120%); transition: transform .35s;
  }
  .float-cta.is-visible { transform: none; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img, .hero-scroll::after { animation: none; }
  html { scroll-behavior: auto; }
}
