/* みずのいろ（見本）
   色: 白い紙・青みの灰・藍・水彩の青／ばら色／黄土。見出しは明朝、本文は端末のゴシック。
   目立たせるのは、最初の画面の写真の後ろの水彩のにじみだけ。 */
:root {
  color-scheme: only light;
  --paper: #ffffff;
  --mist: #f4f6f9;
  --indigo: #24344d;
  --muted: #556070;
  --cta: #2f6e9e;
  --cta-dark: #245a83;
  --blue: #5b9bc8;
  --rose: #d98a9b;
  --ochre: #d9b26f;
  --rule: #dde3ea;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--indigo);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.5; }
p, li, dd, summary, figcaption { margin: 0; }
/* 見出し・質問・ボタンは言葉の途中で切らない（切ってよい所は <wbr>）。文節で折り返せるブラウザはそれを使う */
h1, h2, h3, summary, .btn, .check-list li { word-break: keep-all; }
@supports (word-break: auto-phrase) {
  h2, h3, summary, figcaption, .hero-lead, .hero-note, .check-list li, .apply-card p { word-break: auto-phrase; }
}
.nowrap { white-space: nowrap; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 400px) { .wrap { padding-inline: 16px; } }

section { padding-block: 72px; }
@media (min-width: 900px) { section { padding-block: 112px; } }
section h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); margin-bottom: 40px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  border-radius: 6px;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  transition: background-color .15s ease;
}
.btn-main { background: var(--cta); color: #fff; }
.btn-main:hover { background: var(--cta-dark); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; background: var(--cta); color: #fff; }

/* 見本の帯とヘッダー */
.sample-bar {
  display: block; padding: 6px 16px;
  background: var(--indigo); color: #fff;
  font-size: .8125rem; text-align: center; text-decoration: none;
}
.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .1em; line-height: 1.2; }
.logo span { display: block; font-family: var(--sans); font-weight: 400; font-size: .75rem; letter-spacing: .12em; color: var(--muted); margin-top: 2px; }
@media (min-width: 760px) {
  .site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--rule); }
  [id] { scroll-margin-top: 80px; }
  html { scroll-padding-top: 80px; }
}

/* 最初の画面 */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 24px 80px; }
.hero-inner { display: grid; gap: 48px; }
.hero h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.15rem);
  line-height: 1.4; letter-spacing: .03em;
}
.hero-lead { margin-top: 22px; max-width: 26em; color: var(--muted); }
.hero .btn-main { margin-top: 30px; width: 100%; }
.hero-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.hero-visual { position: relative; margin-inline: 12px 24px; }
.hero-wash {
  position: absolute; z-index: -1;
  width: 56%; right: -12%; top: -12%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero-photo { position: relative; margin: 0; padding: 10px; background: #fff; box-shadow: 0 1px 2px rgba(36, 52, 77, .12), 0 14px 34px rgba(36, 52, 77, .10); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 600px) { .hero .btn-main { width: auto; } }
@media (min-width: 900px) {
  .hero { padding-block: 72px 128px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
  .hero-visual { margin: 0 32px 0 0; }
  .hero-wash { width: 72%; right: -26%; top: -16%; }
  .hero-photo img { aspect-ratio: 5 / 6; }
}

/* こんな方に */
.for-you { background: var(--mist); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative; padding: 16px 20px 16px 52px;
  background: #fff; border-left: 3px solid var(--blue);
}
.check-list li::before {
  content: ""; position: absolute; left: 20px; top: 50%;
  width: 14px; height: 8px; margin-top: -6px;
  border-left: 2px solid var(--cta); border-bottom: 2px solid var(--cta);
  transform: rotate(-45deg);
}
@media (min-width: 760px) { .check-list { grid-template-columns: 1fr 1fr; gap: 16px 24px; } }

/* 3か月で学べること */
.months { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.months li { display: flex; flex-direction: column; }
.swatch { width: 96px; height: 64px; display: block; margin-left: -12px; }
.month { margin-top: 4px; font-size: .875rem; color: var(--muted); letter-spacing: .08em; }
.months h3 { font-size: 1.5rem; margin-top: 2px; }
.months li > p:not(.month) { margin-top: 10px; max-width: 26em; }
.months img { margin-top: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.months li > p:not(.month) { margin-bottom: 20px; }
@media (min-width: 900px) {
  .months { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .months img { aspect-ratio: 4 / 5; }
}

/* 受講までの流れ */
.steps { background: var(--mist); }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 28px; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-content: start; }
.step-list li::before {
  content: counter(s); grid-row: 1 / span 2;
  font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.1; color: #3f7fae;
}
.step-list h3 { font-size: 1.15rem; }
.step-list p { margin-top: 6px; color: var(--muted); max-width: 30em; }
@media (min-width: 1000px) {
  .step-list { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .step-list li { grid-template-columns: 1fr; }
  .step-list li::before { grid-row: auto; margin-bottom: 8px; }
  .step-list h3 { font-size: 1.05rem; }
}

/* 料金と日程 */
.plan-grid { display: grid; gap: 20px; }
.plan { padding: 28px 24px; border: 1px solid var(--rule); border-top: 4px solid var(--blue); }
.plan + .plan { border-top-color: var(--rose); }
.plan h3 { font-size: 1.25rem; }
.plan-price { margin-top: 8px; font-family: var(--serif); font-weight: 700; font-size: 2.4rem; line-height: 1.2; }
.plan-price span { font-family: var(--sans); font-weight: 400; font-size: .95rem; margin-left: 4px; color: var(--muted); }
.plan-unit { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.plan ul { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 6px; }
.plan li { padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: .7; }
.plan + .plan li::before { background: var(--rose); }
.schedule {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 20px;
  margin: 32px 0 0; padding: 24px; max-width: 880px;
  background: var(--mist);
}
.schedule dt { font-weight: 700; white-space: nowrap; }
@media (max-width: 599px) {
  .schedule { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .schedule dd + dt { margin-top: 12px; }
}
.schedule dd { margin: 0; }
.plan-note { margin-top: 20px; font-size: .9rem; color: var(--muted); max-width: 880px; }
.plan-cta { margin-top: 28px; width: 100%; }
@media (min-width: 600px) { .plan-cta { width: auto; } }
@media (min-width: 760px) { .plan-grid { grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; } }

/* 作品 */
.works { background: var(--mist); }
.work-grid { display: grid; gap: 28px; }
.work-grid figure { margin: 0; padding: 10px 10px 14px; background: #fff; box-shadow: 0 1px 2px rgba(36, 52, 77, .1); }
.work-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work-grid figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.works-note { margin-top: 16px; font-size: .8125rem; color: var(--muted); }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

/* 講師 */
.teacher-inner { display: grid; gap: 32px; }
.teacher-inner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.teacher h2 { margin-bottom: 8px; }
.teacher-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 18px; }
.teacher-inner p + p:not(.teacher-name) { margin-top: 14px; }
.teacher-inner p { max-width: 30em; }
@media (min-width: 900px) {
  .teacher-inner { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .teacher-inner img { aspect-ratio: 4 / 5; }
}

/* よくある質問 */
.faq { background: var(--mist); }
.faq details { max-width: 760px; border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; cursor: pointer; list-style: none; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--cta); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 2px 22px; color: var(--muted); max-width: 40em; }

/* 申し込み */
.apply { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.apply-wash { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .9; pointer-events: none; }
.apply-card {
  max-width: 560px; margin-inline: auto; padding: 40px 28px;
  background: rgba(255, 255, 255, .95); text-align: center;
}
.apply-card h2 { margin-bottom: 16px; }
.apply-card p { color: var(--muted); }
.apply-card .btn { margin-top: 28px; width: 100%; }
@media (min-width: 600px) { .apply-card { padding: 56px 48px; } .apply-card .btn { width: auto; } }

/* 見本の説明・フッター */
.sample-note { padding-block: 48px; border-top: 1px solid var(--rule); }
.sample-note h2 { font-size: 1.15rem; margin-bottom: 12px; }
.sample-note p { font-size: .9rem; color: var(--muted); max-width: 44em; }
.sample-note p + p { margin-top: 8px; }
.site-footer { padding: 24px 20px 32px; text-align: center; font-size: .8125rem; color: var(--muted); }
.site-footer p + p { margin-top: 4px; }

/* スマホの下に固定する申し込みボタン */
.fixed-bar { display: none; }
@media (max-width: 759px) {
  html { scroll-padding-bottom: 80px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .fixed-bar {
    display: block;
    position: fixed; inset: auto 0 0 0; z-index: 10;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--cta);
  }
  .fixed-bar a {
    display: grid; place-items: center; min-height: 64px;
    color: #fff; font-weight: 700; text-decoration: none;
  }
  .fixed-bar :focus-visible { outline-color: #fff; outline-offset: -6px; }
}
