/* ==========================================================================
   lesson.yasuhiro-otani.com — standalone design system
   Warm, approachable "last resort" lesson school. Deliberately distinct
   from yasuhiro-otani.com's austere dark editorial look: cream/paper
   background, rounded friendly type, soft shadows instead of hairlines,
   warm terracotta + grounding teal accents.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg: #fbf3e9;
  --bg-deep: #f3e3cd;
  --ink: #2c2420;
  --card: #ffffff;
  --border: #e8d9c3;
  --accent: #d9622b;
  --accent-ink: #ffffff;
  --accent2: #2f6f5e;
  --accent3: #b0491f;
  --sun: #f5a623;
  --muted: #7a6d5d;
  --shadow: 0 10px 30px rgba(44, 36, 32, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.link-accent { color: var(--accent3); font-weight: 700; }
img { max-width: 100%; display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }

.section-eyebrow {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent3);
  background: rgba(217, 98, 43, .1);
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -.01em;
  margin-bottom: 18px;
  color: var(--ink);
}

.section-title.teal { color: var(--accent2); }
.section-title.rust { color: var(--accent3); }

.lead {
  font-size: .95rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 28px;
}

.deep-section { background: var(--bg-deep); }

/* ----------------------------- corner nav -------------------------------- */

.corner-logo {
  position: fixed;
  top: 16px;
  left: 24px;
  z-index: 300;
}

.corner-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.menu-trigger {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 300;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.menu-trigger .bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-trigger .bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-overlay.open ~ .menu-trigger .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-overlay.open ~ .menu-trigger .bars span:nth-child(2) { opacity: 0; }
.nav-overlay.open ~ .menu-trigger .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 96px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
  justify-content: flex-start;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease;
}

.nav-overlay-list {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.nav-overlay-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 4.5vw, 2.6rem);
  letter-spacing: -.01em;
  padding: 10px 0;
  color: var(--ink);
  opacity: .55;
  transition: opacity .2s, color .2s, transform .2s;
  border-bottom: 1px solid var(--border);
}

.nav-overlay-list a .idx {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-overlay-list a:hover,
.nav-overlay-list a.active {
  opacity: 1;
  color: var(--accent3);
  transform: translateX(8px);
}

.nav-overlay-foot {
  max-width: 980px;
  margin: 24px auto 0;
  width: 100%;
  font-size: .72rem;
  color: var(--muted);
}

/* ----------------------------- hero -------------------------------------- */

.rescue-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 56px;
}

.hero-grid {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; max-width: 260px; margin: 0 auto; }
}

.rescue-hero .hero-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent3);
  background: rgba(217, 98, 43, .12);
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  max-width: max-content;
}

.rescue-hero h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6.4vw, 3.8rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.rescue-hero p.hero-desc {
  max-width: 560px;
  font-size: .96rem;
  color: var(--muted);
  margin-top: 22px;
}

.hero-illustration {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mascot-caption {
  max-width: 340px;
  margin: 10px auto 0;
  text-align: center;
  font-size: .68rem;
  color: var(--muted);
}

.mascot-caption span {
  display: block;
  font-size: .64rem;
  opacity: .75;
  margin-top: 2px;
}

/* ----------------------------- waveform accent (animated) ----------------- */

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-top: 18px;
}

.waveform span {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--accent);
  animation: wave 1.1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 40%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 100%; animation-delay: .1s; background: var(--accent2); }
.waveform span:nth-child(3) { height: 60%; animation-delay: .2s; }
.waveform span:nth-child(4) { height: 85%; animation-delay: .3s; background: var(--accent2); }
.waveform span:nth-child(5) { height: 50%; animation-delay: .4s; }
.waveform span:nth-child(6) { height: 75%; animation-delay: .5s; background: var(--accent2); }
.waveform span:nth-child(7) { height: 35%; animation-delay: .6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(.4); opacity: .7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; }
}

/* ----------------------------- photo placeholder --------------------------- */

.photo-placeholder {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  background: rgba(217, 98, 43, .04);
  max-width: 260px;
  margin: 24px auto 0;
}

/* ----------------------------- visual block -------------------------------- */

.visual-frame {
  position: relative;
  min-height: 46vh;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.15) saturate(1.05);
}

.visual-frame .visual-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ----------------------------- pain-point list ----------------------------- */

.pain-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.pain-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
}

.pain-item::before {
  content: "♪";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(217, 98, 43, .12);
  color: var(--accent3);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

.reassure-box {
  background: var(--accent2);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.reassure-box .reassure-text { flex: 1; min-width: 240px; }

.reassure-box .rise-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--sun);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(245, 166, 35, .4);
}

.reassure-box .rise-badge svg { width: 42px; height: 42px; }

.reassure-box h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.reassure-box p { font-size: .9rem; opacity: .92; }

/* ----------------------------- video embed -------------------------------- */

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1c1712;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

/* ----------------------------- buttons ------------------------------------ */

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: 15px 30px;
  border-radius: 999px;
  display: inline-block;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 98, 43, .35);
}

.btn.ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ----------------------------- badges ------------------------------------ */

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badge {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(47, 111, 94, .1);
  border-radius: 999px;
  padding: 6px 14px;
}

.badge.rust { color: var(--accent3); background: rgba(217, 98, 43, .1); }

/* ----------------------------- cards ------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.card-icon {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent);
}

.card h3 { font-size: 1.02rem; font-weight: 700; }
.card p { font-size: .84rem; color: var(--muted); }

.card-price {
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent3);
}
.card-price small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; margin-top: 2px; }

.card a.card-link {
  margin-top: auto;
  font-size: .78rem;
  color: var(--accent2);
  font-weight: 700;
}

.point-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent2);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: .87rem;
  line-height: 1.9;
  box-shadow: var(--shadow);
}

.point-box strong { display: block; margin-bottom: 4px; color: var(--accent2); }
.point-box.rust { border-left-color: var(--accent3); }
.point-box.rust strong { color: var(--accent3); }

/* ----------------------------- instructor --------------------------------- */

.authority-grid { display:grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .authority-grid { grid-template-columns: 1fr; } }
.authority-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.authority-photo img { width: 100%; height: 100%; object-fit: cover; }
.cred-list { list-style: none; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.cred-list li { padding: 9px 0; border-top: 1px solid var(--border); }
.cred-list li:first-child { border-top: none; }
.cred-list b { color: var(--ink); font-weight: 700; }

/* ----------------------------- faq ----------------------------------------- */

.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-top: 12px; box-shadow: var(--shadow); }
.faq-q { font-weight: 700; font-size: .92rem; margin-bottom: 8px; color: var(--accent3); }
.faq-a { font-size: .86rem; color: var(--muted); }

/* ----------------------------- cta band ------------------------------------ */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 48px 32px;
  text-align: center;
}
.cta-band .section-eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.cta-band h2 { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 12px; }
.cta-band .lead { color: rgba(255,255,255,.75); margin: 0 auto 24px; }
.cta-band .btn.primary { box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* ----------------------------- footer -------------------------------------- */

.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: .74rem;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent3); }

.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: .72rem;
}

.footer-social a { color: var(--muted); }
.footer-social a:hover { color: var(--accent3); }

@media (max-width: 640px) {
  .rescue-hero { padding-top: 110px; min-height:auto; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ----------------------------- contact form -------------------------------- */

.page-hero { padding: 130px 0 8px; }
.page-hero .section-title { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.3; }

.form-section { padding-top: 24px; }

.lesson-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 680px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 8px;
}

.form-field .req,
.form-field .opt {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-field .req { color: #fff; background: var(--accent); }
.form-field .opt { color: var(--muted); background: var(--bg-deep); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .15s, box-shadow .15s;
}

.form-field textarea { min-height: 170px; resize: vertical; line-height: 1.7; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 98, 43, .15);
}

.form-note { font-size: .76rem; color: var(--muted); margin: 4px 0 22px; }

.form-submit { border: none; cursor: pointer; font-size: .95rem; }

@media (max-width: 640px) {
  .lesson-form { padding: 22px; }
  .page-hero { padding-top: 110px; }
}
