/* 062 そらいろ英会話 ― 可愛い系・ふつうの縦長。色はここだけ触れば差し替わる */
:root {
  --c-bg: #f2f8ff;
  --c-sky: #3b9cff;
  --c-skypale: #d8ebff;
  --c-yellow: #ffd84d;
  --c-pink: #ff9fb2;
  --c-main: #12325c;
  --c-accent: #1a5fb4;
  --c-accent-text: #1a5fb4;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "M PLUS Rounded 1c", sans-serif;
  --font-pop: "Potta One", sans-serif;
  --font-en: "Sniglet", sans-serif;
  --line: 3px solid var(--c-main);
  --shadow: 5px 5px 0 var(--c-main);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ttl { font-family: var(--font-pop); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.35; color: var(--c-main); margin-bottom: 32px; }
.ttl__en { display: block; font-family: var(--font-en); font-size: 20px; color: var(--c-accent-text); }
.note { margin-top: 14px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: var(--line); border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 4px 4px 0 var(--c-main); transition: transform .2s, box-shadow .2s; }
.btn:hover, .btn:focus-visible { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c-main); }
.btn--yellow { background: var(--c-yellow); color: var(--c-main); }
.btn--navy { background: var(--c-accent); color: #fff; }
.btn--lg { min-height: 62px; padding: 0 34px; font-size: 18px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 10px 10px 0; }
.header__inner { display: flex; align-items: center; gap: 8px; height: 62px; padding: 0 8px 0 14px; max-width: 1280px; margin: 0 auto; background: #fff; border: var(--line); border-radius: 999px; }
.logo { display: flex; align-items: center; gap: 6px; min-height: 48px; font-family: var(--font-pop); font-size: 21px; color: var(--c-main); text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { width: 32px; height: 32px; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: none; }
@media (max-width: 374px) { .logo { font-size: 18px; } .logo__mark { display: none; } }
@media (min-width: 1080px) {
  .header { padding: 16px 24px 0; }
  .header__inner { height: 72px; padding: 0 12px 0 22px; gap: 16px; }
  .logo { font-size: 25px; }
  .gnav { display: flex; gap: 2px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--c-main); }
  .gnav a:hover { background: var(--c-skypale); }
  .header__btn { margin-left: 0; padding: 0 22px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; background: var(--c-skypale); color: var(--c-main); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 18px; height: 3px; border-radius: 3px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -6px; } .spmenu__bar::after { top: 6px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 10px; right: 10px; top: calc(100% + 8px); background: #fff; border: var(--line); border-radius: 24px; padding: 8px 20px 12px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.spmenu__nav a { display: flex; align-items: center; min-height: 50px; color: var(--c-main); font-weight: 700; text-decoration: none; border-bottom: 2px dashed var(--c-skypale); }
.spmenu__nav a:last-child { border-bottom: 0; }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== メインビジュアル（分割・A07） ===== */
.hero { position: relative; padding: 96px 16px 56px; background: var(--c-bg); overflow: hidden; }
.hero__split { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; height: min(64svh, 540px); max-width: 1200px; margin: 0 auto; }
.arch { position: relative; height: 100%; overflow: hidden; border: var(--line); border-radius: 50% 50% 20px 20px / 26% 26% 20px 20px; background: var(--c-skypale); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--1 { height: 82%; }
.arch--2 { height: 100%; border-radius: 50% / 26%; }
.arch--3 { height: 72%; }
.hero__bubble { position: absolute; z-index: 3; left: 50%; top: 4%; transform: translateX(-50%); writing-mode: vertical-rl; font-family: var(--font-pop); font-size: clamp(24px, 6vw, 44px); line-height: 1.25; letter-spacing: .06em; color: var(--c-main); background: #fff; border: var(--line); border-radius: 28px; padding: 16px 10px; box-shadow: var(--shadow); }
.hero__bubble span { display: block; }
.hero__bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 20px; height: 20px; margin-left: -10px; background: #fff; border-right: var(--line); border-bottom: var(--line); transform: rotate(45deg); }
.hero__dot { position: absolute; z-index: 2; border-radius: 50%; border: var(--line); }
.hero__dot--1 { width: 34px; height: 34px; left: -6px; top: 6%; background: var(--c-yellow); }
.hero__dot--2 { width: 22px; height: 22px; right: 4%; top: 2%; background: var(--c-pink); }
.hero__dot--3 { width: 46px; height: 46px; right: -8px; bottom: 30%; background: var(--c-sky); }
.hero__text { max-width: 1200px; margin: 28px auto 0; padding: 0 4px; }
.hero__title { font-family: var(--font-pop); font-weight: 400; font-size: clamp(40px, 11vw, 88px); line-height: 1.2; color: var(--c-main); }
.hero__lead { margin-top: 12px; font-weight: 700; font-size: 17px; color: var(--c-main); max-width: 30em; }
/* E07：体験ボタンの周りを回る円の文字 */
.ring { position: absolute; z-index: 4; right: 10px; top: calc(96px + min(64svh, 540px) - 76px); display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: var(--c-yellow); border: var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--c-main); }
.ring__text { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring__text text { font-family: var(--font-en); font-size: 18px; font-weight: 800; fill: var(--c-main); letter-spacing: 1px; }
.ring__label { font-weight: 800; font-size: 15px; line-height: 1.35; text-align: center; }
@media (min-width: 900px) {
  .hero { padding: 120px 40px 72px; }
  .hero__split { grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; height: min(56vh, 600px); }
  .hero__title { font-size: clamp(48px, 5vw, 72px); white-space: nowrap; }
  .hero__title br { display: none; }
  .hero__text { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; margin-top: 36px; }
  .ring { right: 4vw; top: 170px; width: 170px; height: 170px; }
  .ring__label { font-size: 17px; }
}
/* 動く版：3枚が時間差でゆっくり拡大（ずっと続く）・円の文字が回る */
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes spin { to { transform: rotate(360deg); } }
.is-motion .arch img { animation: slowZoom 10s ease-in-out infinite alternate; }
.is-motion .arch--2 img { animation-delay: -3.3s; }
.is-motion .arch--3 img { animation-delay: -6.6s; }
.is-motion .ring__text { animation: spin 20s linear infinite; }

/* ===== 3つのこと ===== */
.about { padding: 88px 0 72px; }
.points { display: grid; gap: 20px; }
.point { position: relative; background: #fff; border: var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 26px 24px 24px 96px; min-height: 120px; }
.point__icon { position: absolute; left: 22px; top: 24px; display: grid; place-items: center; width: 56px; height: 56px; border: var(--line); border-radius: 50%; font-family: var(--font-en); font-weight: 800; font-size: 26px; color: var(--c-main); }
.point__icon--1 { background: var(--c-yellow); } .point__icon--2 { background: var(--c-pink); } .point__icon--3 { background: var(--c-skypale); }
.point h3 { font-weight: 800; font-size: 20px; color: var(--c-main); }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); gap: 28px; } .point { padding: 100px 26px 28px; } }

/* ===== コース（scroll-snap） ===== */
.course { padding: 72px 0 40px; background: var(--c-skypale); border-top: var(--line); border-bottom: var(--line); }
.course__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course__nav { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.course__count { font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--c-main); margin-right: 4px; }
.arrow { min-width: 52px; min-height: 52px; border: var(--line); border-radius: 50%; background: #fff; color: var(--c-main); font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--c-main); }
.arrow:hover { background: var(--c-yellow); }
.snap { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 32px; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; }
.snap:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -3px; }
.ccard { flex: none; width: 80%; max-width: 380px; scroll-snap-align: start; background: #fff; border: var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.ccard__img { border-bottom: var(--line); background: var(--c-yellow); }
.ccard__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ccard__img--cut img { object-fit: contain; padding: 10px; }
.ccard--2 .ccard__img { background: var(--c-pink); }
.ccard__body { padding: 20px 22px 26px; }
.ccard__age { display: inline-block; font-weight: 800; font-size: 15px; color: var(--c-main); background: var(--c-skypale); border-radius: 999px; padding: 2px 14px; }
.ccard h3 { font-family: var(--font-pop); font-weight: 400; font-size: 30px; color: var(--c-main); margin: 6px 0; }
@media (min-width: 1080px) { .snap { padding-left: max(20px, calc((100vw - 1080px) / 2)); scroll-padding-left: max(20px, calc((100vw - 1080px) / 2)); } .ccard { width: 360px; } }

/* ===== E07：波に沿って流れる見出し ===== */
.wave { overflow: hidden; padding: 24px 0 0; }
.wave__svg { display: block; width: 100%; height: clamp(170px, 22vw, 280px); }
.wave__text { font-family: var(--font-en); font-weight: 800; font-size: 46px; fill: var(--c-main); }

/* ===== レッスンの流れ ===== */
.flow { padding: 40px 0 80px; }
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; background: #fff; border: var(--line); border-radius: 24px; padding: 20px 22px 20px 86px; min-height: 100px; }
.step__no { position: absolute; left: 18px; top: 20px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--c-sky); border: var(--line); font-family: var(--font-en); font-weight: 800; font-size: 24px; color: var(--c-main); }
.step h3 { font-family: var(--font-en); font-weight: 800; font-size: 24px; color: var(--c-main); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .step { padding: 86px 22px 24px; } .step:nth-child(even) { transform: translateY(24px); } }

/* ===== 料金 ===== */
.price { padding: 72px 0 88px; }
.table-wrap { background: #fff; border: var(--line); border-radius: 24px; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 14px 12px; border-bottom: 2px dashed var(--c-skypale); text-align: left; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { background: var(--c-skypale); color: var(--c-main); font-weight: 800; }
.table tbody th { color: var(--c-main); font-weight: 800; }
.table td:last-child { font-weight: 800; color: var(--c-accent-text); }

/* ===== 無料体験 ===== */
.trial { background: var(--c-yellow); border-top: var(--line); border-bottom: var(--line); padding: 88px 0; text-align: center; }
.trial__inner { display: grid; justify-items: center; gap: 18px; }
.trial__en { font-family: var(--font-en); font-weight: 800; font-size: 22px; color: var(--c-main); }
.trial__title { font-family: var(--font-pop); font-weight: 400; font-size: clamp(32px, 6vw, 56px); line-height: 1.3; color: var(--c-main); }
.trial p { color: var(--c-main); }
.trial__tel { font-size: 15px; }

/* ===== アクセス ===== */
.access { padding: 80px 0 96px; }
.info { margin: 0; background: #fff; border: var(--line); border-radius: 24px; padding: 4px 22px; }
.info div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 2px dashed var(--c-skypale); }
.info div:last-child { border-bottom: 0; }
.info dt { font-weight: 800; color: var(--c-main); }
.info dd { margin: 0; }
@media (min-width: 768px) { .info div { grid-template-columns: 6em 1fr; gap: 16px; } }

/* ===== フッター ===== */
.footer { background: var(--c-main); color: #e6f1ff; padding: 56px 20px 40px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-pop); font-size: 26px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 18px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
