/* 082 みなも水泳学校 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #ffffff;
  --c-paper: #f2f2ef;
  --c-ink: #111111;
  --c-line: #c9ccd0;
  --c-accent: #9aa1a8;
  --c-accent-text: #4a5560;
  --c-mark: #e3e7ea;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-sub-dark: #c9cdd2;
  --font: "M PLUS 1", sans-serif;
  --font-head: "Hina Mincho", serif;
  --font-en: "Antic Didone", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; 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: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.label { font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); margin-bottom: 20px; }
.label--dark { color: var(--c-sub-dark); }
.h2 { font-family: var(--font-head); font-size: clamp(30px, 4.4vw, 52px); line-height: 1.5; letter-spacing: .12em; color: var(--c-ink); margin-bottom: 40px; }
.h2--dark { color: #fff; }
.note { margin-top: 20px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font-size: 15px; letter-spacing: .12em; text-decoration: none; white-space: nowrap; flex: none; border: 1px solid var(--c-ink); transition: background-color .4s, color .4s; }
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--ink:hover { background: #fff; color: var(--c-ink); }
.btn--white { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 20px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; color: var(--c-ink); white-space: nowrap; flex: none; line-height: 1.1; }
.logo__en { font-family: var(--font-en); font-size: 24px; letter-spacing: .24em; }
.logo__ja { font-family: var(--font-head); font-size: 15px; letter-spacing: .18em; color: var(--c-sub); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; }
@media (max-width: 400px) { .header__btn { padding: 0 12px; letter-spacing: .04em; } .logo__en { font-size: 21px; } }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 32px 0 40px; gap: 36px; }
  .gnav { display: flex; gap: 32px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-size: 15px; letter-spacing: .12em; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .header__btn { margin-left: 0; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--c-ink); }
.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: 24px; height: 1px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.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: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); padding: 8px 20px 20px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; font-family: var(--font-head); font-size: 18px; letter-spacing: .14em; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== メインビジュアル：文字が主役 ===== */
.hero { position: relative; min-height: 100vh; padding: 104px 20px 40px; display: flex; flex-direction: column; justify-content: space-between; background: var(--c-bg); }
.hero__label { font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); border-bottom: 1px solid var(--c-line); padding-bottom: 14px; }
.hero__title { display: flex; flex-direction: column; align-items: flex-start; }
.hero__word { display: flex; justify-content: space-between; width: 100%; font-family: var(--font-en); font-size: clamp(120px, 30.5vw, 470px); line-height: .9; letter-spacing: 0; color: var(--c-ink); }
/* 文字の中に水面の写真。写真が読めないときはグラデが見える */
.w { display: block; background-image: url(images/water.webp), linear-gradient(160deg, #111 0%, #5b6168 60%, #111 100%); background-size: 420% auto, 100% 100%; background-repeat: no-repeat; background-position: 0% 40%, 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.w--2 { background-position: 30% 40%, 0 0; }
.w--3 { background-position: 58% 40%, 0 0; }
.w--4 { background-position: 82% 40%, 0 0; }
.hero__copy { display: flex; align-items: center; gap: 20px; font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 44px); letter-spacing: .3em; color: var(--c-ink); margin-top: 16px; }
.hero__copy::before { content: ""; width: 48px; height: 1px; background: var(--c-ink); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 40px; }
.hero__lead { font-size: 15px; line-height: 2.1; color: var(--c-text); }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 96px; min-width: 44px; text-decoration: none; font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; color: var(--c-ink); writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: var(--c-ink); }
@media (min-width: 1080px) {
  .hero { padding: 120px 48px 48px; }
  .hero__word { margin-top: 3vh; }
}

/* ===== ごあいさつ：ペン（E06） ===== */
.about { position: relative; padding: 120px 0 0; background: var(--c-bg); }
.about__inner { display: grid; gap: 32px; }
.about__body { position: relative; }
.pen-line { font-family: var(--font-head); font-size: clamp(18px, 2vw, 24px); line-height: 2.2; letter-spacing: .08em; color: var(--c-ink); }
.pen-line + .pen-line { margin-top: 12px; }
mark { background: linear-gradient(var(--c-mark), var(--c-mark)) no-repeat 0 85% / 100% .55em; color: inherit; padding: 0 .1em; }
.pen { display: none; position: absolute; left: 0; top: 0; width: 14px; height: 28px; opacity: 0; pointer-events: none; transform-origin: 50% 100%; }
.about__photo { margin-top: 96px; overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c-paper); }
@media (min-width: 1080px) {
  .about { padding-top: 200px; }
  .about__inner { grid-template-columns: 1fr 1.4fr; gap: 64px; }
  .about__photo { margin: 140px 0 0 22vw; }
}

/* ===== コース：Swiper ===== */
.courses { padding: 120px 0; background: var(--c-paper); }
.courses__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.courses__ctrl { display: flex; gap: 8px; margin-bottom: 40px; }
.sbtn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--c-ink); color: var(--c-ink); cursor: pointer; padding: 0; transition: background-color .3s, color .3s; }
.sbtn:hover { background: var(--c-ink); color: #fff; }
.sbtn svg { width: 22px; height: 22px; }
.sbtn.swiper-button-disabled { opacity: .35; cursor: default; }
.sbtn--pause .i-play { display: none; }
.sbtn--pause[aria-pressed="true"] .i-play { display: block; }
.sbtn--pause[aria-pressed="true"] .i-pause { display: none; }
.courses__swiper { padding: 0 20px; }
.course { background: #fff; border: 1px solid var(--c-line); padding: 32px 28px 36px; height: auto; min-width: 0; display: flex; flex-direction: column; }
.course__no { font-family: var(--font-en); font-size: 64px; line-height: 1; color: var(--c-ink); }
.course__fig { width: 100%; max-width: 220px; margin: 20px 0 8px; }
.course__name { font-family: var(--font-head); font-size: 28px; letter-spacing: .1em; color: var(--c-ink); line-height: 1.5; margin: 12px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.course__name small { display: block; font-family: var(--font); font-size: 15px; letter-spacing: .04em; color: var(--c-sub); margin-top: 4px; }
.course--photo { padding-top: 0; }
.course__photo { margin: 0 -28px 24px; }
.course__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--c-paper); }
.courses__dots { display: flex; justify-content: center; margin-top: 24px; min-height: 44px; }
.courses__dots .swiper-pagination-bullet { width: 44px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; position: relative; border-radius: 0; }
.courses__dots .swiper-pagination-bullet::after { content: ""; position: absolute; left: 10px; right: 10px; top: 21px; height: 1px; background: var(--c-accent); }
.courses__dots .swiper-pagination-bullet-active::after { height: 3px; top: 20px; background: var(--c-ink); }
/* Swiper が動かないときは、指で横に送れる並び */
.courses__swiper:not(.swiper-initialized) { overflow: visible; }
.courses__swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; }
.courses__swiper:not(.swiper-initialized) .course { flex: 0 0 82%; scroll-snap-align: start; }
@media (min-width: 768px) { .courses__swiper:not(.swiper-initialized) .course { flex-basis: 44%; } }
@media (min-width: 1080px) { .courses { padding: 160px 0; } .courses__swiper { padding: 0 max(40px, calc((100vw - 1080px) / 2)); } .courses__swiper:not(.swiper-initialized) .course { flex-basis: 31%; } }

/* ===== 数字：黒地 ===== */
.numbers { position: relative; background: var(--c-ink); color: var(--c-sub-dark); padding: 120px 0 0; overflow: hidden; }
.numbers__list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #3a3d42; }
.numbers__list li { padding: 28px 0 28px; border-bottom: 1px solid #3a3d42; min-width: 0; }
.numbers__list li:nth-child(odd) { padding-right: 16px; border-right: 1px solid #3a3d42; }
.numbers__list li:nth-child(even) { padding-left: 16px; }
.num { font-family: var(--font-en); font-size: clamp(48px, 7vw, 96px); line-height: 1.1; color: #fff; }
.num small { font-family: var(--font); font-size: 15px; margin-left: 6px; color: var(--c-sub-dark); }
.numbers__photo { margin-top: 80px; overflow: hidden; }
.numbers__photo img { width: 100%; height: 56vh; min-height: 320px; object-fit: cover; background: #222; opacity: .9; }
@media (min-width: 1080px) { .numbers { padding-top: 160px; } .numbers__list { grid-template-columns: repeat(4, 1fr); } .numbers__list li, .numbers__list li:nth-child(odd), .numbers__list li:nth-child(even) { padding: 32px 24px; border-right: 1px solid #3a3d42; } .numbers__list li:last-child { border-right: 0; } }

/* ===== はじめての方へ ===== */
.first { padding: 120px 0; background: var(--c-bg); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--c-line); }
.step__no { grid-row: span 2; font-family: var(--font-en); font-size: 32px; line-height: 1.2; color: var(--c-ink); }
.step__title { font-family: var(--font-head); font-size: 22px; letter-spacing: .08em; color: var(--c-ink); line-height: 1.6; margin-bottom: 6px; }
@media (min-width: 1080px) { .first { padding: 160px 0; } .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; } .step { grid-template-columns: 1fr; border-bottom: 0; border-left: 1px solid var(--c-line); padding: 8px 32px 8px; } .step__no { grid-row: auto; margin-bottom: 16px; } }

/* ===== 料金 ===== */
.price { padding: 120px 0; background: var(--c-paper); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--c-line); font-weight: 400; }
.ptable thead th { font-size: 15px; color: var(--c-sub); padding-top: 0; }
.ptable tbody th { font-family: var(--font-head); font-size: 19px; color: var(--c-ink); letter-spacing: .08em; }
.ptable td:last-child { text-align: right; font-family: var(--font-en); font-size: 20px; color: var(--c-ink); white-space: nowrap; }
.ptable thead th:last-child { text-align: right; }
@media (min-width: 1080px) { .price { padding: 160px 0; } .ptable { max-width: 880px; } }

/* ===== 体験 ===== */
.trial { background: var(--c-ink); color: var(--c-sub-dark); padding: 120px 20px; text-align: center; }
.trial__title { font-family: var(--font-head); font-size: clamp(28px, 4.6vw, 56px); letter-spacing: .14em; line-height: 1.6; color: #fff; margin-bottom: 20px; }
.trial__btn { margin-top: 40px; min-height: 64px; padding: 0 48px; font-size: 16px; }
.trial__tel { margin-top: 24px; }
.trial__tel a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-family: var(--font-en); font-size: 22px; letter-spacing: .1em; }

/* ===== アクセス ===== */
.access { padding: 120px 0; background: var(--c-bg); }
.access__inner { display: grid; gap: 40px; }
.info { margin: 0; border-top: 1px solid var(--c-line); }
.info div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-family: var(--font-head); color: var(--c-ink); letter-spacing: .1em; }
.info dd { margin: 0; }
.map svg { width: 100%; height: auto; }
.map p { font-size: 15px; color: var(--c-sub); text-align: center; margin-top: 8px; }
@media (min-width: 900px) { .access__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } .info div { grid-template-columns: 5em 1fr; gap: 16px; } }

/* ===== G01：のぞく子ども ===== */
.peek { position: fixed; right: 0; bottom: 0; z-index: 40; width: 240px; height: 130px; pointer-events: none; }
.peek__kid { position: absolute; right: 8px; bottom: -124px; width: 80px; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12)); }
.peek__say { transition: opacity .5s; position: absolute; right: 96px; bottom: 40px; max-width: 150px; background: #fff; border: 1px solid var(--c-ink); padding: 6px 12px; font-family: var(--font-head); font-size: 15px; line-height: 1.6; color: var(--c-ink); white-space: nowrap; }
.peek__say::after { content: ""; position: absolute; right: -7px; bottom: 10px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--c-ink); border-top: 1px solid var(--c-ink); transform: rotate(45deg); }
@media (max-width: 767px) {
  .peek { width: 200px; height: 100px; }
  .peek__kid { width: 64px; bottom: -99px; right: 4px; }
  .peek__say { right: 72px; bottom: 26px; padding: 4px 10px; }
}
@media (min-width: 1080px) { .peek { width: 190px; height: 170px; } .peek__kid { width: 96px; bottom: -147px; right: 32px; } .peek__say { right: 12px; bottom: 104px; max-width: none; } .peek__say::after { right: 40px; bottom: -7px; border-top: 0; border-bottom: 1px solid var(--c-ink); } }

/* ===== フッター ===== */
.footer { background: var(--c-paper); color: var(--c-text); padding: 72px 20px 140px; text-align: center; font-size: 15px; border-top: 1px solid var(--c-line); }
.footer__logo { font-family: var(--font-en); font-size: 40px; letter-spacing: .3em; color: var(--c-ink); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 16px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; color: var(--c-sub); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.is-motion .pen { display: block; }
/* 伏せ字の〇は日本語の書体で（英字の書体だと大きな丸に見える） */
.maru { font-family: var(--font); font-size: max(15px, .8em); letter-spacing: 0; }
.seg { display: inline-block; white-space: nowrap; }
.about .h2 { font-size: clamp(30px, 3.2vw, 44px); }
.trial__title { font-size: clamp(24px, 4.6vw, 56px); }
@media (max-width: 1279px) { .peek__say { opacity: 0; } .is-say .peek__say { opacity: 1; } }
.num .maru { font-size: .5em; }
