/* LangLang — 三色団子
   方向: 餅の白い地、抹茶の緑、桜のピンク。文字は黒。
   緑は主な操作（ボタン・選択中）、ピンクは差し色（下線・印）、白は背景。 */
:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --sunk: #f7f1e6;
  --hover: #f2ebdd;
  --line: #ece4d6;
  --line-strong: #d3c6b0;
  --ink: #3d6b3f;
  --ink-deep: #2f5233;
  --text: #0a0a0a;
  --text-2: #525252;
  --muted: #6b6b6b;
  --invert: #ffffff;
  --focus: #a63d60;
  --pink: #ef9fb4;
  --pink-soft: #fbe3ea;
  --pink-deep: #a63d60;
  --green: #8fbf74;
  --green-soft: #e3efd8;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --sans: "Inter", "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 80px);
  --radius-lg: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--invert); padding: 8px 12px; border-radius: var(--radius); z-index: 30; }
.skip:focus { top: 8px; }
.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: transparent; border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease); }
.site-header.is-scrolled { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
main { padding-top: 64px; }
.lang-btn, .menu-btn { background: transparent !important; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.logo-mark { width: 36px; height: 30px; flex: none; display: block; }
.logo-word { font-family: "Outfit", "Inter", sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; margin-right: -0.32em; color: var(--text); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--text-2); transition: color 0.15s var(--ease); white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-cta { font-size: 14px; }
.menu-btn { display: none; }

/* language switcher */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 14px; cursor: pointer; transition: border-color 0.15s var(--ease); }
.lang-btn:hover { border-color: var(--ink); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); z-index: 25; }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 4px; text-decoration: none; font-size: 15px; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--hover); }
.lang-menu a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--invert); }
.btn-primary:hover { background: var(--ink-deep); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.btn .arrow { transition: transform 0.15s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* hero */
.hero { margin-top: -64px; padding: 112px 0 64px; min-height: 100svh; display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 112px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; margin: 0 0 20px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
h1, h2, h3 { font-weight: 500; margin: 0; line-height: 1.35; }
.hero h1 { font-size: clamp(30px, 4.6vw, 96px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
:lang(ja) .hero h1, .hero h1:lang(ja) { letter-spacing: 0; }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.1em; height: 0.3em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 50 4, 120 3, 197 8' fill='none' stroke='%23ef9fb4' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; pointer-events: none; }
.hero-lead { font-size: 17px; color: var(--text-2); max-width: 32em; margin: 24px 0 32px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 48px 0 0; padding: 0; }
.hero-facts > div { padding: 0 28px; border-left: 1px solid var(--line); }
.hero-facts > div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { font-size: 12px; color: var(--muted); }
.hero-facts dd { margin: 2px 0 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }

/* lesson preview (moment) */
.lesson { margin: 0; background: var(--surface); border: 1px solid var(--ink); border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.22); overflow: hidden; }
.lesson-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.lesson-bar .time { margin-left: auto; color: var(--muted); }
.lesson-body { display: grid; grid-template-columns: 1fr 120px; }
.board { padding: 24px; border-right: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 36px; background-position: 0 23px; min-height: 280px; }
.board p { margin: 0; font-size: 17px; line-height: 36px; font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; }
.board .wrong, .board .fix { white-space: nowrap; }
.board .wrong { text-decoration: line-through; text-decoration-color: var(--ink); text-decoration-thickness: 2px; color: var(--muted); }
.board .fix { font-weight: 500; position: relative; }
.board .fix::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 50 4, 120 3, 197 8' fill='none' stroke='%23ef9fb4' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.board .note { font-family: var(--sans); font-size: 13px; color: var(--text-2); }
.people { display: grid; grid-template-rows: 1fr 1fr; }
.person { display: grid; place-items: center; gap: 4px; padding: 16px; text-align: center; font-size: 12px; color: var(--text-2); }
.person + .person { border-top: 1px solid var(--line); }
.lesson-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); background: var(--surface); }

/* hero cutouts (Work & Co風: 透過写真を大きく重ねる) */
.cast { position: relative; margin: 0; width: 100%; height: min(74svh, 860px); min-height: 360px; }
.cast::before { content: ""; position: absolute; inset: 12% 0 0 6%; border-radius: 24px; background: linear-gradient(180deg, var(--pink-soft), #f7d3dd); }
.cast img { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.12)); user-select: none; }
.cast .c1 { left: 2%; width: 44%; z-index: 2; }
.cast .c2 { left: 30%; width: 40%; bottom: 0; z-index: 1; }
.cast .c3 { right: 0; width: 42%; z-index: 3; }
.cast figcaption { position: absolute; left: 10%; top: 16%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.cast figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* avatar (monogram, no real photos) */
.avatar { width: 64px; height: 64px; border-radius: var(--radius-lg); display: grid; place-items: center; font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-size: 24px; font-weight: 500; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); flex: none; position: relative; }
.avatar-lg { width: 120px; height: 120px; border-radius: 16px; font-size: 44px; }
.avatar-sm { width: 48px; height: 48px; border-radius: 10px; font-size: 19px; }
.avatar-photo { overflow: hidden; background: var(--sunk); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.avatar-photo { background: linear-gradient(180deg, var(--green-soft), #d3e6c5); }
.avatar-ink { background: var(--ink); color: var(--invert); border-color: var(--ink); }

/* sections */
.section { padding: 96px 0; scroll-margin-top: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
:lang(ja) .section h2 { letter-spacing: 0; }
.section-sub { color: var(--text-2); margin: 8px 0 0; max-width: 40em; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; background: var(--sunk); border-radius: var(--radius-lg); }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-label { font-size: 13px; color: var(--text-2); }
.filters-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 24px; flex-wrap: wrap; }
.result-count { color: var(--text-2); font-size: 14px; margin: 0; }
.input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 16px; font-weight: 400; transition: border-color 0.15s var(--ease); }
.input::placeholder { color: #a3a3a3; }
.input:hover { border-color: #a89a84; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
textarea.input { padding: 10px 12px; min-height: 120px; resize: vertical; line-height: 1.7; }
.input[aria-invalid="true"], .choice-btn[aria-invalid="true"] { border-color: var(--ink); background: var(--sunk); }

/* FormChoice: custom listbox select */
.choice { position: relative; }
.choice-btn { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 16px; font-weight: 400; text-align: left; cursor: pointer; transition: border-color 0.15s var(--ease); }
.choice-btn:hover { border-color: #a89a84; }
.choice-btn[aria-expanded="true"] { border-color: var(--ink); }
.choice-btn .val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-btn .val.placeholder { color: var(--muted); }
.choice-btn svg { flex: none; color: var(--muted); transition: transform 0.15s var(--ease); }
.choice-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.choice-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); max-height: 280px; overflow: auto; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.12s var(--ease), transform 0.12s var(--ease); }
.choice-list.open { opacity: 1; transform: none; pointer-events: auto; }
.choice-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 4px; font-size: 16px; font-weight: 400; cursor: pointer; }
.choice-opt.active { background: var(--hover); }
.choice-opt .check { visibility: hidden; color: var(--ink); }
.choice-opt[aria-selected="true"] .check { visibility: visible; }

/* toggle chips (checkbox / radio) */
.toggles { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.toggles legend { font-size: 13px; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 14px; font-weight: 400; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease); }
.toggle:hover span { border-color: #a89a84; }
.toggle input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--invert); }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* tutor card */
.tutor-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tutor { display: grid; grid-template-columns: 64px 1fr 200px; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tutor h3 { font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tutor h3 a { text-decoration: none; }
.tutor h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tutor h3 .sub { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tutor-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 10px; font-size: 13px; color: var(--text-2); }
.tutor-meta svg { vertical-align: -3px; margin-right: 4px; color: var(--muted); }
.tutor-headline { margin: 0 0 6px; font-weight: 500; }
.tutor-intro { margin: 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tutor-side { display: grid; align-content: start; gap: 10px; text-align: right; }
.price { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.price small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.rating { font-size: 14px; color: var(--text-2); }
.rating b { font-weight: 500; color: var(--text); }
.star { color: var(--pink-deep); }
.tutor-side .btn { width: 100%; }
.empty { padding: 48px 24px; text-align: center; border-bottom: 1px solid var(--line); color: var(--text-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { padding: 24px 24px 8px 0; counter-increment: s; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); display: block; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); margin-bottom: 20px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--text-2); font-size: 14px; }

/* price table */
.plans { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.plan-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan-box h3 { font-size: 17px; margin-bottom: 12px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-table th, .plan-table td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.plan-table td { text-align: right; font-weight: 500; }
.plan-table th { color: var(--text-2); }
.plain-list { margin: 0; padding-left: 1.2em; color: var(--text-2); font-size: 14px; }
.plain-list li + li { margin-top: 6px; }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--text); transition: transform 0.15s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--text-2); max-width: 44em; }

/* tutor CTA */
.tutor-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 16px; background: var(--ink); color: var(--invert); flex-wrap: wrap; }
.tutor-cta h2 { font-size: 22px !important; }
.tutor-cta p { margin: 8px 0 0; color: #d9e8cf; max-width: 40em; font-size: 14px; }
.tutor-cta .btn-ghost { background: var(--invert); color: var(--ink); border-color: var(--invert); }
.tutor-cta .btn-ghost:hover { background: var(--green-soft); }
.tutor-cta :focus-visible { outline-color: var(--invert); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 13px; color: var(--text); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* tutor detail */
.crumb { font-size: 13px; color: var(--text-2); margin: 24px 0; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 96px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 18px; margin-bottom: 12px; }
.profile-top { display: flex; gap: 24px; align-items: center; }
.profile-top h1 { font-size: 32px; letter-spacing: -0.02em; }
.profile-top .kana { color: var(--muted); font-size: 13px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.sticky { position: sticky; top: 88px; }
.aside-panel { border-color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 13px; text-align: center; }
.week .day { color: var(--text-2); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.week .slot { padding: 6px 0; border-radius: 4px; background: var(--sunk); font-variant-numeric: tabular-nums; }
.review { padding: 16px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.review .who { font-size: 13px; color: var(--muted); }

/* booking */
.book { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 96px; }
.form { display: grid; gap: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--muted); font-size: 12px; margin-left: 6px; font-weight: 400; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.err-text { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink); font-weight: 500; margin: 0; }
.err-text::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--ink); color: var(--invert); font-size: 11px; line-height: 1; }
.err-text:empty { display: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.slots legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.slots .toggle span { width: 100%; justify-content: center; min-height: 44px; font-variant-numeric: tabular-nums; }
.slots .toggle input:disabled + span { color: #b5b5b5; text-decoration: line-through; border-style: dashed; cursor: not-allowed; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.summary-row span:first-child { color: var(--text-2); }
.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--sunk); font-size: 13px; color: var(--text-2); }
.form-status { font-size: 14px; }
.done { padding: 8px 0; text-align: left; }
.done h2 { font-size: 24px; margin-bottom: 12px; letter-spacing: -0.01em; }
.meet-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid var(--ink); border-radius: var(--radius-lg); flex-wrap: wrap; }
.meet-link a { font-weight: 500; word-break: break-all; }
.submit .spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.submit[data-state="sending"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* apply + AI interview */
.apply { max-width: 800px; padding: 48px 0 96px; }
.apply h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.apply-steps { display: flex; gap: 0; list-style: none; margin: 32px 0 16px; padding: 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.apply-steps li { padding: 10px 16px 10px 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.apply-steps li + li { padding-left: 16px; }
.apply-steps li[aria-current="step"] { color: var(--text); border-bottom-color: var(--ink); font-weight: 500; }
.iv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.iv-head h2 { font-size: 18px; }
.iv-progress { font-size: 13px; color: var(--muted); }
.iv-read { margin-left: auto; font-size: 13px; }
.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-height: min(56vh, 560px); overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 16px; }
.msg { display: grid; gap: 4px; max-width: 86%; }
.msg .who { font-size: 12px; color: var(--muted); }
.msg .bubble { padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.msg-ai .bubble { background: var(--sunk); border-top-left-radius: 4px; }
.msg-me { justify-self: end; text-align: right; }
.msg-me .bubble { background: var(--ink); color: var(--invert); border-top-right-radius: 4px; text-align: left; }
.iv-thinking { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.25; animation: blink 1.2s infinite var(--ease); }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 1; } }
.iv-answer { display: grid; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.iv-answer textarea.input { min-height: 96px; }
.iv-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-top: 4px; }
.mic[aria-pressed="true"] { background: var(--ink); color: var(--invert); border-color: var(--ink); }
.mic[aria-pressed="true"] svg { animation: pulse 1.2s infinite var(--ease); }
@keyframes pulse { 50% { opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .submit .spinner { animation-duration: 1.6s; animation-iteration-count: infinite !important; }
}

/* responsive */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
}
@media (max-width: 960px) {
  .cast { height: 56svh; }
  .hero .wrap, .detail, .book, .plans { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
  .nav { display: none; }
  .nav.open { display: grid; position: absolute; top: 64px; left: 0; right: 0; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
  .lang { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .site-header .wrap { gap: 8px; }
  .nav.open { padding: 8px 16px 16px; }
  .lang-btn { height: 44px; }
  .header-cta { display: none; }
  .hero { padding: 104px 0 48px; min-height: 0; }
  .cast { height: 380px; min-height: 0; }
  .hero-lead { font-size: 16px; }
  .hero-facts > div { padding: 0 16px; }
  .hero-facts dd { font-size: 22px; }
  .lesson-body { grid-template-columns: 1fr; }
  .board { border-right: 0; min-height: 0; padding: 16px 20px; }
  .board p { font-size: 15px; }
  .people { grid-template-rows: none; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .person + .person { border-top: 0; border-left: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .filters { grid-template-columns: 1fr; }
  .tutor { grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; }
  .tutor .avatar { width: 48px; height: 48px; font-size: 19px; border-radius: 10px; }
  .tutor-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; text-align: left; }
  .tutor-side .btn { grid-column: 1 / -1; }
  .tutor-side .rating { text-align: right; }
  .form .row { grid-template-columns: 1fr; }
  .profile-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .kv { grid-template-columns: 104px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tutor-cta { padding: 24px; }
  .msg { max-width: 100%; }
  .iv-read { margin-left: 0; }
  .iv-actions .btn { flex: 1 1 auto; }
}

/* ===== motion（選択: 02 1行ずつせり上がる / 04 スクロールで奥行き / 09 下線を書く ＋ 全体の出現） ===== */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .ln > span { display: block; }
.js-motion .hero h1 .ln > span { transform: translateY(110%); }
.js-motion .hero.is-in h1 .ln > span { transform: none; transition: transform 1s var(--out, cubic-bezier(0.16, 1, 0.3, 1)); transition-delay: calc(var(--i) * 120ms); }
.js-motion .hero .mark::after { clip-path: inset(0 100% 0 0); }
.js-motion .hero.is-in .mark::after { clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(0.65, 0, 0.35, 1) .75s; }
.js-motion .hero [data-in] { opacity: 0; transform: translateY(14px); }
.js-motion .hero.is-in [data-in] { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(.35s + var(--i) * 90ms); }
.js-motion .cast img { clip-path: inset(100% 0 0 0); }
.js-motion .hero.is-in .cast img { clip-path: inset(-20% -20% 0 -20%); transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(.9s + var(--i) * 140ms); }
.js-motion .cast::before { transform: scaleY(0.6); transform-origin: bottom; opacity: 0; }
.js-motion .hero.is-in .cast::before { transform: none; opacity: 1; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) .6s, opacity .6s ease .6s; }
.cast { clip-path: inset(-60% -60% 0 -60%); }
.cast img { will-change: translate; }
:lang(ja) .hero h1 .ln > span, :lang(zh) .hero h1 .ln > span, :lang(ko) .hero h1 .ln > span { white-space: nowrap; }
/* スクロールで現れる */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1), transform .9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--d, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .js-motion .hero h1 .ln > span, .js-motion .hero [data-in], .js-motion [data-reveal], .js-motion .cast::before { opacity: 1 !important; transform: none !important; }
  .js-motion .hero .mark::after, .js-motion .cast img { clip-path: none !important; }
  .cast .px { transform: none !important; }
}

/* ===== 予約: プラン選択と週カレンダー ===== */
.plans-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.plans-pick legend, .cal legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-opt > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; height: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease); }
.plan-opt b { font-weight: 500; font-size: 15px; }
.plan-opt small { grid-column: 1; font-size: 12px; color: var(--muted); }
.plan-opt em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 500; font-size: 17px; text-align: right; white-space: nowrap; }
.plan-opt em small { font-size: 12px; color: inherit; opacity: .7; margin-left: 2px; }
.plan-opt:hover > span { border-color: #a89a84; }
.plan-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--invert); }
.plan-opt input:checked + span small { color: #d9e8cf; }
.plan-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.cal { border: 0; padding: 0; margin: 0; min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-range { margin: 0; font-weight: 500; }
.cal-nav { width: 40px; padding: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day { display: grid; align-content: start; gap: 6px; min-width: 0; }
.cal-date { display: grid; justify-items: center; padding: 6px 0 8px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cal-date b { font-weight: 500; font-size: 14px; color: var(--text); }
.cal-slot { position: relative; }
.cal-slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cal-slot span { display: grid; place-items: center; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 14px; background: var(--surface); transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.cal-slot:hover span { border-color: #a89a84; }
.cal-slot input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--invert); }
.cal-slot input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.cal-slot input:disabled + span { color: #b5b5b5; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.cal-none { display: grid; place-items: center; min-height: 40px; font-size: 12px; color: #a3a3a3; }
#cal-local { margin-top: 8px; }
.member-box { margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 500; }
.member-link { margin: 20px 0 0; padding: 16px; border-radius: var(--radius-lg); background: var(--sunk); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font-size: 14px; }
.complete { max-width: 720px; padding: 48px 0 96px; }
.checking { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); }
.spinner-ink { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@media (max-width: 720px) {
  .plans-pick { grid-template-columns: 1fr; }
  .cal-grid { gap: 3px; }
  .cal-date { font-size: 11px; }
  .cal-date b { font-size: 12px; }
  .cal-slot span { font-size: 12px; min-height: 44px; letter-spacing: -0.02em; }
  .cal-none { font-size: 11px; }
  .copy-row { flex-direction: column; }
}

/* ===== Googleの予約ページ・フォームの埋め込み ===== */
.gbook, .gmonth { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.gbook-title { font-size: 18px; margin-bottom: 6px; }
.gframe { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.gframe iframe { display: block; width: 100%; height: 640px; border: 0; }
.gframe-form iframe { height: 1600px; }
.gbook-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 12px 0 0; font-size: 14px; }
.gbook-foot a { font-weight: 500; }
.gmonth-steps { margin: 12px 0 20px; }
@media (max-width: 720px) {
  .gframe iframe { height: 720px; }
  .gframe-form iframe { height: 2000px; }
}

/* 講師登録 */
.register { margin-top: 24px; }
.reg-steps { margin: 0 0 24px; padding-left: 1.4em; display: grid; gap: 10px; }
.reg-steps li::marker { font-variant-numeric: tabular-nums; color: var(--muted); }
.btn-google { min-height: 52px; padding: 0 24px; font-size: 16px; }

/* ===== 画面いっぱいのレイアウト（広い画面で列を増やす） ===== */
.hero-lead { font-size: clamp(16px, 1.2vw, 20px); }
@media (min-width: 1100px) {
  .faq { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 80px); align-items: start; }
}
@media (min-width: 1400px) {
  .tutor-list { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 4vw, 80px); }
  .tutor { grid-template-columns: 64px 1fr 180px; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; }
  .filters #f-time { grid-column: auto !important; }
  .section { padding: 120px 0; }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .cast { height: 64svh; }
}

/* ポイントの購入 */
.points { padding: 48px 0 96px; }
.points h1 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em; }
.points > .section-sub { max-width: 40em; }
.pk-paid { margin: 24px 0 0; color: var(--text); border: 1px solid var(--ink); background: var(--surface); }
.packs { list-style: none; margin: 32px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s var(--ease); }
.pack:hover { border-color: var(--ink); }
.pack-pt { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.pack-yen { font-size: 18px; }
.pack-yen small { font-size: 12px; color: var(--muted); }
.pack .hint { margin: 0 0 12px; }
.pack .btn { margin-top: auto; width: 100%; }
.btn.is-disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.pk-how { margin-top: 48px; max-width: 880px; }
.pk-how h2 { font-size: 20px; margin-bottom: 16px; }
.pk-rules { margin: 0 0 24px; }
@media (max-width: 720px) { .packs { grid-template-columns: 1fr; } .points { padding: 32px 0 64px; } }

/* コース・法人・法的ページ */
.courses .pack { gap: 10px; }
.course-name { font-weight: 500; font-size: 17px; }
.course-desc { margin: 0 0 12px; font-size: 14px; color: var(--text-2); line-height: 1.8; }
.packs.courses { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; }
.biz-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; flex-wrap: wrap; }
.biz-band h2 { font-size: 22px; }
.biz-band p { margin: 8px 0 0; color: var(--text-2); max-width: 40em; font-size: 14px; }
.biz-band-cta, .biz-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.biz-hero { padding: 64px 0 32px; }
.biz-hero h1 { font-size: clamp(32px, 4.4vw, 72px); letter-spacing: -0.03em; line-height: 1.2; font-weight: 500; margin: 8px 0 16px; }
.biz-hero .eyebrow { margin: 0; font-size: 13px; color: var(--muted); }
.biz-cta { margin-top: 28px; }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.biz-grid h2, #biz-flow { font-size: 22px; margin-bottom: 16px; }
.biz-list { font-size: 15px; line-height: 1.8; }
.biz-plans { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.biz-plans .pack-pt small { font-size: 14px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.biz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.biz-steps li { counter-increment: s; padding-top: 16px; border-top: 1px solid var(--ink); display: grid; gap: 8px; }
.biz-steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.biz-steps b { font-weight: 500; }
.biz-steps span { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.legal { max-width: 860px; padding: 48px 0 96px; line-height: 1.9; }
.legal h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; margin-bottom: 24px; }
.legal h2 { font-size: 18px; margin: 32px 0 8px; }
.legal ul, .legal ol { padding-left: 1.4em; color: var(--text-2); }
.legal p { color: var(--text-2); }
.legal-todo { margin-bottom: 24px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 400; }
.legal-table th { width: 28%; padding-right: 16px; color: var(--muted); }
.legal-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.legal-links a { color: inherit; }
@media (max-width: 960px) { .biz-plans, .biz-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .biz-grid, .biz-plans, .biz-steps, .packs.courses { grid-template-columns: 1fr; } .legal-table th { width: 36%; } .biz-band { padding: 24px; } }

/* 講師の手数料 */
.apply .fee { margin-top: 24px; }
.fee h2 { font-size: 20px; margin-bottom: 8px; }
.fee h3 { font-size: 15px; font-weight: 500; margin: 20px 0 4px; }
.fee p { color: var(--text-2); font-size: 14px; line-height: 1.8; margin: 0 0 8px; }
.fee-table thead th, .fee-table thead td { color: var(--muted); font-size: 12px; border-top: 0; padding-bottom: 6px; }
.fee .hint { margin-top: 12px; }

/* 三色団子の差し色 */
::selection { background: var(--pink-soft); color: var(--text); }
.tutor-cta { background: var(--ink-deep); }
.notice { background: var(--green-soft); color: var(--text); }
.pk-paid { border-color: var(--ink); background: var(--green-soft); }
.site-footer { background: var(--sunk); }
