/* ノア韓国語教室 — 色は校舎のネイビーと、韓服の袖のセットン（색동）から */
:root {
  --ink: #1b2340;
  --ink-soft: #55607c;
  --paper: #ffffff;
  --mist: #f3f5fa;
  --line: #dde2ee;
  --rose: #d42a62;
  --rose-deep: #b01d4e;
  --sun: #f7c62f;
  --leaf: #1e9e73;
  --sky: #2f6fe0;
  --jp-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --ko: "Jua", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --stripe: linear-gradient(90deg, var(--rose) 0 20%, var(--sun) 20% 40%, var(--leaf) 40% 60%, var(--sky) 60% 80%, var(--ink) 80% 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { text-wrap: balance; font-family: var(--jp-round); font-weight: 700; line-height: 1.4; margin: 0; }
h1 { font-size: clamp(1.85rem, 5.4vw, 3rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.ko { font-family: var(--ko); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ヘッダー */
.stripe { height: 6px; background: var(--stripe); }
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--ink); font-family: var(--jp-round); font-weight: 700; font-size: 1.15rem; }
.logo .ko { font-size: 1.35rem; color: var(--rose); }
.nav-toggle {
  font: inherit; font-family: var(--jp-round); font-weight: 700; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: .35rem 1rem; cursor: pointer;
}
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1.25rem; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .7rem .25rem; color: var(--ink); text-decoration: none; font-family: var(--jp-round); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--rose-deep); font-weight: 700; }
.site-nav li:last-child a { border: 0; margin-top: .9rem; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 1.5rem; }
  .site-nav a { border: 0; padding: .4rem 0; font-size: .95rem; }
  .site-nav a:hover { color: var(--rose-deep); }
  .site-nav li:last-child a { margin: 0; }
}

/* ボタン */
.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--jp-round); font-weight: 700; font-size: 1.05rem; line-height: 1.4;
  color: #fff; background: var(--rose); border: 2px solid var(--rose); border-radius: 999px;
  padding: .85rem 1.75rem;
}
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.site-nav .btn { color: #fff; padding: .5rem 1.2rem; font-size: .95rem; text-align: center; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }

/* ヒーロー */
.hero { background: var(--mist); padding: 2.5rem 0 3rem; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero .place { font-family: var(--jp-round); font-weight: 700; color: var(--rose-deep); margin: 0 0 .5rem; }
.hero .lead { font-size: 1.05rem; color: var(--ink-soft); margin: 1rem 0 1.5rem; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.hero .tel { font-family: var(--jp-round); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.hero .tel small { display: block; font-family: var(--jp); font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
}

/* ハングルを作るカード */
.builder { background: var(--paper); border: 2px solid var(--ink); border-radius: 28px; padding: 1.5rem 1.25rem 1.25rem; box-shadow: 8px 8px 0 var(--sun); }
.builder h2 { font-size: 1.15rem; text-align: center; }
.builder .result { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .75rem 0 1rem; }
.builder .piece { font-family: var(--ko); font-size: 2.4rem; line-height: 1; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 16px; }
.builder .piece.c { background: #fde8ef; color: var(--rose-deep); }
.builder .piece.v { background: #e3edfd; color: #1c4fae; }
.builder .op { font-family: var(--jp-round); font-weight: 700; font-size: 1.4rem; color: var(--ink-soft); }
.builder .glyph { font-family: var(--ko); font-size: 5.25rem; line-height: 1; min-width: 5.5rem; text-align: center; }
.builder .reading { text-align: center; font-family: var(--jp-round); font-weight: 700; font-size: 1.25rem; margin: 0 0 1.1rem; }
.builder .reading span { color: var(--ink-soft); font-weight: 500; font-size: .9rem; }
.builder fieldset { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
.builder legend { font-family: var(--jp-round); font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: .4rem; }
.builder .keys { display: flex; flex-wrap: wrap; gap: .4rem; }
.builder .keys button {
  font-family: var(--ko); font-size: 1.5rem; line-height: 1; color: var(--ink);
  width: 2.75rem; height: 2.75rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
}
.builder .keys button:hover { border-color: var(--ink); }
.builder .keys.c button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.builder .keys.v button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.builder .hint { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: .5rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .builder .glyph.pop { animation: pop .28s ease-out; }
  @keyframes pop { from { transform: scale(.82); } to { transform: scale(1); } }
}

/* セクション共通 */
.section { padding: 3.5rem 0; }
.section.tint { background: var(--mist); }
.section > .wrap > h2 { margin-bottom: .6rem; }
.section .intro { color: var(--ink-soft); max-width: 36em; margin-bottom: 2rem; }
.page-head { background: var(--mist); padding: 2.5rem 0; }
.page-head p { color: var(--ink-soft); margin: .6rem 0 0; max-width: 36em; }

/* 特長 */
.reasons { display: grid; gap: 2rem; align-items: start; }
.reasons figure { margin: 0; }
.reasons img { border-radius: 24px; width: 100%; }
.reasons figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
.reasons dl { margin: 0; }
.reasons dt { font-family: var(--jp-round); font-weight: 700; font-size: 1.15rem; padding-left: 1rem; border-left: 6px solid var(--rose); line-height: 1.4; }
.reasons dt:nth-of-type(2) { border-color: var(--leaf); }
.reasons dt:nth-of-type(3) { border-color: var(--sky); }
.reasons dd { margin: .5rem 0 1.6rem 0; padding-left: 1.4rem; color: var(--ink-soft); }
@media (min-width: 800px) { .reasons { grid-template-columns: .8fr 1.2fr; gap: 3rem; } }

/* レッスンの種類 */
.lessons { display: grid; gap: 1rem; }
.lesson { background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; padding: 1.5rem; border-top: 8px solid var(--rose); }
.lesson:nth-child(2) { border-top-color: var(--sky); }
.lesson:nth-child(3) { border-top-color: var(--leaf); }
.lesson .ko { display: block; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: .2rem; }
.lesson ul { list-style: none; margin: .9rem 0; padding: 0; font-family: var(--jp-round); font-weight: 500; }
.lesson li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.lesson p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (min-width: 800px) { .lessons { grid-template-columns: repeat(3, 1fr); } }
.more { margin-top: 1.75rem; }
.fee { margin-top: 2rem; background: var(--paper); border-radius: 20px; padding: 1.25rem 1.5rem; border: 1.5px solid var(--line); }
.fee h3 { margin-bottom: .4rem; }
.fee p { margin: 0; color: var(--ink-soft); }

/* 体験の流れ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.6rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: #fff;
  font-family: var(--jp-round); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center;
}
.steps h3 { margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } .steps li { padding: 3.4rem 0 0; } }

/* 文化講座 */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.gallery figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.videos { display: grid; gap: 1rem; margin-top: 2rem; }
.videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; }
@media (min-width: 800px) { .videos { grid-template-columns: repeat(2, 1fr); } }

/* アクセス */
.access { display: grid; gap: 1.5rem; }
.access img { border-radius: 24px; width: 100%; }
.access iframe { width: 100%; height: 320px; border: 0; border-radius: 24px; }
.info { margin: 0; display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: .6rem 1rem; }
.info dt { font-family: var(--jp-round); font-weight: 700; }
.info dd { margin: 0; }
@media (min-width: 800px) { .access { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; } }

/* コース表 */
.levels { width: 100%; border-collapse: collapse; }
.levels th, .levels td { text-align: left; vertical-align: top; padding: .9rem .75rem; border-bottom: 1px solid var(--line); }
.levels thead th { font-family: var(--jp-round); font-size: .9rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.levels tbody th { font-family: var(--jp-round); white-space: nowrap; }
.levels td:nth-child(2) { white-space: nowrap; }
@media (max-width: 640px) {
  .levels thead { display: none; }
  .levels, .levels tbody, .levels tr, .levels th, .levels td { display: block; }
  .levels tr { border-bottom: 1px solid var(--line); padding: .9rem 0; }
  .levels th, .levels td { border: 0; padding: .1rem 0; }
  .levels tbody th { font-size: 1.1rem; }
  .levels td:nth-child(2) { color: var(--rose-deep); font-family: var(--jp-round); font-weight: 700; }
  .levels td:nth-child(4) { color: var(--ink-soft); font-size: .9rem; }
}
.kids { list-style: none; padding: 0; margin: 1rem 0 0; }
.kids li { padding: .6rem 0; border-bottom: 1px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.kids span { font-family: var(--jp-round); font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-family: var(--jp-round); font-weight: 700; font-size: 1.05rem; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.6rem; line-height: 1; color: var(--rose); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.25rem; color: var(--ink-soft); max-width: 40em; }

/* 最後の案内 */
.cta { background: var(--ink); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #c9d0e4; margin: .75rem auto 1.75rem; max-width: 30em; }
.cta .tel { display: block; margin-top: 1.25rem; color: #fff; font-family: var(--jp-round); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.cta .tel small { display: block; font-family: var(--jp); font-weight: 400; font-size: .8rem; color: #c9d0e4; }

/* フッター */
.site-foot { background: var(--paper); padding: 2.5rem 0 2rem; font-size: .9rem; color: var(--ink-soft); }
.site-foot .wrap { display: grid; gap: 1.5rem; }
.site-foot strong { font-family: var(--jp-round); color: var(--ink); font-size: 1.05rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.site-foot a { color: var(--ink); }
.site-foot .copy { font-size: .8rem; margin: 0; }
@media (min-width: 800px) { .site-foot .wrap { grid-template-columns: 1.2fr 1fr; } .site-foot .copy { grid-column: 1 / -1; } }
