:root {
  --bg: #FBF4E6;
  --ink: #40372E;
  --soft: #8A7B69;
  --terra: #D96C47;
  --terra-lite: #F8E0D4;
  --mustard: #E8B84B;
  --mustard-lite: #F9EFD3;
  --card: #FFFDF7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.95; letter-spacing: 0.03em;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 28px; }
.display { font-family: "Kiwi Maru", serif; font-weight: 500; }

/* ========== ヘッダー（メニューバー） ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(251, 244, 230, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  opacity: 0; transform: translateY(-100%);
}
body.ready .site-header { opacity: 1; transform: none; transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s, border-color 0.3s ease, background 0.3s ease; }
.site-header.scrolled { border-bottom-color: var(--ink); background: rgba(251, 244, 230, 0.92); }
.site-header .bar {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .brand-name { font-family: "Kiwi Maru", serif; font-size: 15.5px; letter-spacing: 0.08em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 13.5px; letter-spacing: 0.08em; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--terra); color: #FFFDF7 !important;
  font-family: "Kiwi Maru", serif; padding: 9px 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translate(1.5px, 1.5px); box-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 720px) {
  .nav .nav-link { display: none; }
  .nav { gap: 0; }
  .brand .brand-name { font-size: 14px; }
}

/* 共通：セクション見出し */
section { padding: 96px 0; }
.sec-title { text-align: center; font-size: clamp(24px, 3.6vw, 31px); letter-spacing: 0.1em; margin: 0 0 8px; }
.sec-sub { text-align: center; color: var(--soft); font-size: 14px; margin: 0 0 52px; }

/* 共通：ふわっと表示 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ========== オープニング ========== */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.85s ease;
}
#intro.done { opacity: 0; pointer-events: none; }
#intro svg { transform-origin: 50% 56%; opacity: 0; animation: poof 0.85s cubic-bezier(0.22,1,0.36,1) forwards; animation-delay: 0.25s; }
@keyframes poof {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
#intro .word { text-align: center; }
#intro .copy {
  font-size: clamp(14px, 2.4vw, 17px); color: var(--soft); letter-spacing: 0.22em;
  margin: 0 0 10px; opacity: 0; transform: translateY(12px);
  animation: rise 0.8s ease forwards; animation-delay: 1.25s;
}
#intro .name {
  font-size: clamp(26px, 5vw, 40px); letter-spacing: 0.12em; margin: 0;
  opacity: 0; transform: translateY(14px);
  animation: rise 0.8s ease forwards; animation-delay: 1.5s;
}
#intro .name em { font-style: normal; color: var(--terra); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }
#intro .skip {
  position: absolute; bottom: 26px; font-size: 11.5px; color: var(--soft);
  letter-spacing: 0.2em; opacity: 0; animation: fadein 0.8s ease forwards; animation-delay: 1.95s;
}

/* ========== ヒーロー ========== */
.hero { padding: 116px 0 90px; }
.hero .inner { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.hero .text { flex: 1 1 400px; }
.hello {
  display: inline-block; position: relative;
  background: var(--card); border: 1.5px solid var(--ink);
  border-radius: 18px; padding: 8px 22px;
  font-size: 14px; margin-bottom: 28px;
}
.hello::after {
  content: ""; position: absolute; left: 26px; bottom: -9px;
  width: 14px; height: 14px; background: var(--card);
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.catch { font-size: clamp(15px, 2.6vw, 19px); letter-spacing: 0.14em; color: var(--soft); margin: 0 0 12px; }
h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.4;
  letter-spacing: 0.08em; margin: 0 0 28px;
  position: relative; display: inline-block;
}
h1 em { font-style: normal; color: var(--terra); }
.mini-robo {
  position: absolute; top: calc(-1 * clamp(44px, 7vw, 64px)); right: calc(-1 * clamp(8px, 2vw, 26px));
  width: clamp(60px, 9vw, 86px);
}
.mini-robo .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.lead { color: var(--soft); font-size: 15.5px; margin: 0 0 38px; max-width: 32em; }
.cta {
  display: inline-block; background: var(--terra); color: #FFFDF7;
  font-family: "Kiwi Maru", serif; font-size: 17px; letter-spacing: 0.08em;
  padding: 17px 42px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.area { font-size: 12.5px; color: var(--soft); letter-spacing: 0.14em; margin-top: 22px; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(0.12); }
}
.hero-in { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
body.ready .hero-in { opacity: 1; transform: none; }
body.ready .hero-in.h2 { transition-delay: 0.12s; }
body.ready .hero-in.h3 { transition-delay: 0.24s; }
body.ready .hero-in.h4 { transition-delay: 0.36s; }
body.ready .hero-in.h5 { transition-delay: 0.5s; }

/* ========== とは ========== */
.about { background: var(--card); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 68px 0 76px; }
.about .sec-sub { margin-bottom: 34px; }
.about .def {
  text-align: center;
  font-family: "Kiwi Maru", serif; font-weight: 500;
  font-size: clamp(17px, 2.8vw, 23px); line-height: 2.05; letter-spacing: 0.08em;
  margin: 0 auto 14px; max-width: 30em;
}
.about .def em { font-style: normal; color: var(--terra); }
.about .def-note {
  text-align: center; color: var(--soft); font-size: 14.5px;
  margin: 0 auto 40px; max-width: 34em;
}
.worries {
  position: relative;
  background: var(--bg); border: 1.5px solid var(--ink); border-radius: 22px;
  padding: 34px 36px 28px; max-width: 640px; margin: 0 auto;
}
.worries h3 {
  font-family: "Kiwi Maru", serif; font-weight: 500;
  font-size: 16.5px; letter-spacing: 0.1em; margin: 0 0 18px;
}
.worries ul { margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--soft); }
.worries li { padding: 6px 0 6px 24px; position: relative; }
.worries li::before {
  content: ""; position: absolute; left: 2px; top: 1.1em;
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--terra);
}
.worries p { font-size: 14px; margin: 0; }
.worries .robo {
  position: absolute; right: 26px; top: -46px; width: 72px;
}

/* ========== 教えられること ========== */
.bubbles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 26px; }
.bubble {
  position: relative; background: var(--card);
  border: 1.5px solid var(--ink); border-radius: 22px;
  padding: 28px 26px 24px;
  transition: transform 0.25s ease;
}
.bubble:hover { transform: translateY(-5px) rotate(-0.4deg); }
.bubble::after {
  content: ""; position: absolute; left: 30px; bottom: -10px;
  width: 16px; height: 16px; background: var(--card);
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) skew(10deg, 10deg);
}
.bubble .icon { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; }
.bubble .tag {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.16em;
  border-radius: 999px; padding: 3px 14px; margin-bottom: 12px;
  border: 1.5px solid var(--ink); font-weight: 500;
}
.bubble:nth-child(odd) .tag { background: var(--terra-lite); }
.bubble:nth-child(even) .tag { background: var(--mustard-lite); }
.bubble h3 { font-family: "Kiwi Maru", serif; font-weight: 500; font-size: 18px; margin: 0 0 8px; letter-spacing: 0.05em; }
.bubble p { font-size: 13px; color: var(--soft); line-height: 1.85; margin: 0; }
.anything { text-align: center; margin-top: 52px; font-family: "Kiwi Maru", serif; font-size: 16.5px; }
.anything span { background: linear-gradient(transparent 60%, var(--mustard-lite) 60%); padding: 0 6px; }

/* ========== レッスンの流れ ========== */
.steps { max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 26px; position: relative; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step .no {
  flex: 0 0 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: "Kiwi Maru", serif; font-size: 15px; letter-spacing: 0.05em;
  position: relative; z-index: 1;
}
.step:nth-child(2) .no { background: var(--mustard-lite); }
.step:nth-child(3) .no { background: var(--terra-lite); }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 26px; top: 52px; bottom: 0;
  border-left: 1.5px dashed var(--ink); opacity: 0.4;
}
.step h3 { font-family: "Kiwi Maru", serif; font-weight: 500; font-size: 18px; margin: 10px 0 8px; letter-spacing: 0.06em; }
.step p { margin: 0; font-size: 14px; color: var(--soft); max-width: 30em; }

/* ========== 料金 ========== */
.price { background: var(--card); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 20px; margin-bottom: 30px; }
.plan {
  background: var(--bg); border: 1.5px solid var(--ink); border-radius: 22px;
  padding: 28px 26px 24px; position: relative;
}
.plan.hot { box-shadow: 4px 4px 0 var(--ink); }
.plan.hot::before {
  content: "まずはここから"; position: absolute; top: -14px; left: 22px;
  background: var(--terra); color: #FFFDF7;
  font-size: 11.5px; letter-spacing: 0.14em; font-weight: 500;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 14px;
}
.plan h3 { font-family: "Kiwi Maru", serif; font-weight: 500; font-size: 17.5px; margin: 0 0 2px; letter-spacing: 0.06em; }
.plan .time { font-size: 12.5px; color: var(--soft); margin: 0 0 14px; }
.plan .fee { font-family: "Kiwi Maru", serif; font-size: 27px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.plan .fee small { font-size: 12.5px; color: var(--soft); letter-spacing: 0.06em; }
.plan .note { font-size: 12px; color: var(--soft); margin: 12px 0 0; line-height: 1.8; }
.free-line {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  border: 1.5px dashed var(--ink); border-radius: 999px;
  background: var(--mustard-lite);
  padding: 18px 28px; text-align: center;
  font-family: "Kiwi Maru", serif; font-size: 15.5px; letter-spacing: 0.08em;
}
.free-note { text-align: center; color: var(--soft); font-size: 12.5px; margin: 12px 0 0; }

/* エリア */
.areas-box { max-width: 640px; margin: 64px auto 0; }
.areas-box h3 {
  text-align: center; font-family: "Kiwi Maru", serif; font-weight: 500;
  font-size: 19px; letter-spacing: 0.1em; margin: 0 0 6px;
}
.areas-box .note { text-align: center; color: var(--soft); font-size: 13px; margin: 0 0 28px; }
.areas {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden;
  background: var(--bg); font-size: 14px;
}
.areas th, .areas td { text-align: left; padding: 15px 20px; vertical-align: top; }
.areas tr:not(:last-child) th, .areas tr:not(:last-child) td { border-bottom: 1.5px solid rgba(64,55,46,0.25); }
.areas th { font-weight: 500; width: 60%; }
.areas td { color: var(--soft); white-space: nowrap; }
.areas td.free { color: var(--terra); font-weight: 500; }

/* ========== 先生の紹介 ========== */
.policy { background: var(--card); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.policy .inner { display: flex; gap: 24px 44px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.policy .photo-box { flex: 0 1 180px; max-width: 190px; margin: 0; text-align: center; }
.policy .photo {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--bg); border: 1.5px solid var(--ink); border-radius: 18px;
}
.policy figcaption { margin-top: 12px; display: grid; gap: 2px; }
.policy figcaption .role { font-size: 10.5px; color: var(--soft); letter-spacing: 0.22em; }
.policy figcaption .name { font-size: 17px; letter-spacing: 0.18em; }
.policy .msg { flex: 1 1 380px; max-width: 480px; }
.policy .msg p {
  font-family: "Kiwi Maru", serif; font-weight: 400;
  font-size: clamp(14.5px, 2.2vw, 16.5px); line-height: 1.95; letter-spacing: 0.05em;
  margin: 0 0 1em;
}
.policy .msg p:last-child { margin-bottom: 0; }
.policy .msg em { font-style: normal; color: var(--terra); }

/* ========== FAQ ========== */
.faq-list { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
details {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px;
  overflow: hidden;
}
summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px; position: relative;
  font-family: "Kiwi Maru", serif; font-size: 15.5px; letter-spacing: 0.04em;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q. "; color: var(--terra); }
summary::after {
  content: "＋"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--terra); font-size: 17px;
}
details[open] summary::after { content: "－"; }
details .a { padding: 0 24px 22px; font-size: 14px; color: var(--soft); }

/* ========== CTA・フォーム ========== */
.contact { background: var(--card); border-top: 1.5px solid var(--ink); padding-bottom: 110px; }
.contact .lead2 { text-align: center; color: var(--soft); font-size: 14.5px; margin: 0 auto 48px; max-width: 34em; }
.form-card {
  max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 40px 38px 36px;
}
form { display: grid; gap: 20px; }
label { display: grid; gap: 7px; font-size: 13px; letter-spacing: 0.1em; font-weight: 500; }
label .req { color: var(--terra); font-size: 11px; margin-left: 6px; }
input, textarea, select {
  font-family: "Zen Kaku Gothic New", sans-serif; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--mustard); outline-offset: 1px;
}
.form-card .cta { justify-self: center; margin-top: 8px; cursor: pointer; }
.sent {
  display: none; margin-top: 18px; padding: 14px 18px; text-align: center;
  border: 1.5px dashed var(--ink); border-radius: 12px;
  background: var(--mustard-lite); font-size: 13.5px;
}
.sent.show { display: block; }
.sent.error { background: var(--terra-lite); border-color: var(--terra); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { text-align: center; font-size: 12px; color: var(--soft); margin: 26px auto 0; }

footer {
  border-top: 1.5px solid var(--ink); background: var(--bg);
  text-align: center; padding: 34px 20px 110px;
  font-size: 12px; color: var(--soft); letter-spacing: 0.18em;
}

.replay {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11.5px; color: var(--ink);
  letter-spacing: 0.12em; padding: 9px 18px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.replay:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

/* ========== スマホ用 追従CTA ========== */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 244, 230, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--ink);
  transform: translateY(110%); transition: transform 0.35s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta a {
  display: block; text-align: center;
  background: var(--terra); color: #FFFDF7;
  font-family: "Kiwi Maru", serif; font-size: 15.5px; letter-spacing: 0.06em;
  padding: 13px 0; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
@media (max-width: 720px) {
  .sticky-cta { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .mini-robo .eye, #intro svg { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
