/* 学習塾のホームページの見本(LP)。架空の塾。
   方針: 余白を広く取り、大きな見出しと写真で見せる。色は温かいクリームと夕焼け色。 */
:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --sub: #5f5f66;
  --line: #ece6dc;
  --accent: #d9632f;      /* 夕焼け色。文字に使っても読める濃さ */
  --accent-soft: #fbeadf;
  --warm: #f6efe4;
  --line-green: #06c755;
  --line-green-dark: #05a647;
  --radius: 28px;
  --shadow: 0 2px 6px rgba(60, 40, 20, .04), 0 18px 40px rgba(60, 40, 20, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px; line-height: 1.85; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.4; letter-spacing: .03em; font-feature-settings: "palt"; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.sp { display: none; }

/* お知らせの帯 */
.notice { background: #2b2620; color: #fff; text-align: center; font-size: 13px; line-height: 1.6; padding: 8px 16px; }

/* 上部メニュー */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, .82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #f08a4b, #d9632f); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: .08em; line-height: 1.1; }
.brand-text small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--sub); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--sub); transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.line { background: var(--line-green); color: #fff; box-shadow: 0 8px 20px rgba(6, 199, 85, .25); }
.btn.line:hover { background: var(--line-green-dark); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #cfc6b8; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.btn.lg { min-height: 60px; padding: 0 34px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.actions.center { justify-content: center; }

/* ファーストビュー */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 16px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; line-height: 1.28; }
.lead { margin-top: 26px; font-size: 18px; color: var(--sub); max-width: 30em; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--sub); }
.hero-visual { position: relative; margin: 0; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 42% center; border-radius: 36px; box-shadow: 0 30px 70px rgba(60, 40, 20, .18); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 20px; padding: 14px 20px; font-size: 14px; font-weight: 700; line-height: 1.45; box-shadow: var(--shadow); }
.fc-1 { left: -28px; bottom: 44px; }
.fc-2 { right: -16px; top: 36px; }
.fc-num { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: 0; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--line-green); display: grid; place-items: center; }
.fc-icon svg { width: 22px; height: 22px; fill: #fff; }

/* 見出し */
.head { text-align: center; margin-bottom: 56px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.kicker.light { color: rgba(255, 255, 255, .85); }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.head .sub { margin-top: 14px; color: var(--sub); }
section { padding: 112px 0; }

/* お悩み */
.worries { background: var(--paper); }
.worry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.worry-list li { position: relative; background: var(--warm); border-radius: 24px; padding: 54px 22px 28px; font-weight: 700; font-size: 16px; line-height: 1.7; text-align: center; }
.worry-list li::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px; background: var(--warm); transform: translateX(-50%) rotate(45deg); border-radius: 4px; }
.q { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.bridge { margin-top: 64px; text-align: center; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }

/* 3つの約束 */
.promise-photo { position: relative; margin: 0 0 32px; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); }
.promise-photo img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; }
.promise-photo figcaption { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 18px; padding: 12px 18px; font-size: 14px; font-weight: 700; line-height: 1.5; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 40px 34px 38px; box-shadow: var(--shadow); overflow: hidden; }
.promise-card .num { position: absolute; top: 20px; right: 26px; font-size: 54px; font-weight: 800; color: var(--accent-soft); letter-spacing: 0; line-height: 1; }
.p-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 24px; }
.p-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.promise-card p { color: var(--sub); font-size: 16px; }

/* 特長 */
.features { background: var(--paper); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 104px; }
.feature.rev { grid-template-columns: 1fr 1.15fr; }
.feature.rev .f-img { order: 2; }
.f-img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.f-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .f-img img { transform: scale(1.03); }
.f-label { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.f-text h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 20px; }
.f-text p { color: var(--sub); }

/* 塾長より */
.message { padding-top: 0; }
.band { position: relative; height: min(64vh, 560px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 22, 14, .05) 30%, rgba(30, 22, 14, .45)); }
.band-copy { position: absolute; z-index: 1; right: max(40px, calc((100% - 1120px) / 2)); bottom: 64px; color: #fff; font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1.5; text-align: right; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.letter { position: relative; z-index: 2; max-width: 820px; margin: -84px auto 0; background: var(--paper); border-radius: var(--radius); padding: 52px 56px; box-shadow: var(--shadow); }
.letter-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.letter-head .kicker { margin-bottom: 4px; }
.avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--warm); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--accent-soft), 0 10px 24px rgba(0, 0, 0, .1); }
.letter p + p { margin-top: 18px; }
.letter p { color: #3a3a3e; }
.sign { text-align: right; font-weight: 700; color: var(--ink) !important; margin-top: 26px !important; }

/* コースと料金 */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.course { position: relative; background: var(--paper); border-radius: 24px; padding: 32px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.course.featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.c-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 14px; white-space: nowrap; }
.c-tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.course h3 { font-size: 22px; font-weight: 800; margin-top: 6px; }
.c-meta { color: var(--sub); font-size: 14px; margin-top: 6px; flex: 1; }
.c-price { margin-top: 22px; font-size: 34px; font-weight: 800; letter-spacing: 0; line-height: 1; }
.c-price small { font-size: 14px; font-weight: 700; margin-left: 4px; color: var(--sub); }

/* 流れ */
.flow { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: var(--bg); border-radius: 24px; padding: 34px 24px 28px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 8px; height: 8px; border-top: 2px solid #cdbfae; border-right: 2px solid #cdbfae; transform: translateY(-50%) rotate(45deg); }
.s-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--sub); }

/* よくある質問 */
.faq details { background: var(--paper); border-radius: 20px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 64px 24px 28px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 30px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 28px 26px; color: var(--sub); }

/* アクセス */
.access { background: var(--paper); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.a-img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.a-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.access h2 { margin-bottom: 28px; }
.info { display: grid; grid-template-columns: 7em 1fr; margin: 0; }
.info dt, .info dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info dt { font-weight: 700; color: var(--sub); font-size: 15px; }

/* 最後の申し込み */
.cta { text-align: center; color: #fff; background: radial-gradient(120% 140% at 20% 0%, #f39a5b 0%, #d9632f 45%, #a8461f 100%); }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); }
.cta p { margin-top: 18px; opacity: .92; }
.cta .cta-note { font-size: 13px; opacity: .8; margin-top: 22px; }

/* フッター */
.foot { padding: 48px 0 56px; font-size: 14px; color: var(--sub); text-align: center; }
.foot-brand { font-weight: 800; color: var(--ink); margin-bottom: 6px; }

/* スマホ下部の申し込みボタン */
.fixed-cta { display: none; }

/* 現れる動き */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-copy > *, .hero-visual { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .3s; }
.hero-visual { animation-delay: .12s; }
.float-card { animation: rise 1s var(--ease) both, drift 7s ease-in-out 1.2s infinite; }
.fc-1 { animation-delay: .5s, 1.5s; }
.fc-2 { animation-delay: .7s, 2.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* タブレット */
@media (max-width: 960px) {
  .nav { display: none; }
  .top .btn.sm { margin-left: auto; }
  .hero { padding: 44px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .worry-list { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 28px; }
  .feature.rev .f-img { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .access-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* スマホ */
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .sp { display: inline; }
  section { padding: 80px 0; }
  .head { margin-bottom: 40px; }
  .top-inner { min-height: 58px; gap: 12px; }
  .top .btn.sm { display: none; }
  .brand-text { font-size: 17px; }
  .lead { font-size: 16px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .hero-visual img { aspect-ratio: 4 / 3.3; border-radius: 26px; }
  .fc-1 { left: 10px; bottom: -22px; padding: 10px 14px; font-size: 13px; }
  .fc-2 { right: 10px; top: -18px; padding: 10px 14px; font-size: 13px; }
  .fc-num { font-size: 22px; }
  .fc-icon { width: 32px; height: 32px; }
  .worry-list { grid-template-columns: 1fr; gap: 16px; }
  .worry-list li { font-size: 15px; padding: 18px 20px 18px 62px; text-align: left; border-radius: 20px; }
  .worry-list li::after { left: 34px; }
  .q { top: 50%; left: 18px; transform: translateY(-50%); }
  .promise-card { padding: 34px 26px; }
  .promise-photo { border-radius: 26px; margin-bottom: 24px; }
  .promise-photo img { aspect-ratio: 4 / 3; object-position: 60% 40%; }
  .promise-photo figcaption { left: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }
  .band { height: 360px; }
  .band-copy { right: 20px; bottom: 96px; }
  .letter { margin: -72px 16px 0; padding: 36px 24px; }
  .avatar { width: 80px; height: 80px; }
  .course-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .faq summary { padding: 20px 52px 20px 22px; }
  .faq summary::after { right: 24px; }
  .faq details p { padding: 0 22px 22px; }
  .info { grid-template-columns: 6em 1fr; }
  .cta .btn { width: 100%; }
  .fixed-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 248, 243, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .fixed-cta.is-shown { transform: none; }
  .fixed-cta .btn { flex: 1; min-height: 50px; padding: 0 12px; font-size: 15px; }
  .fixed-cta .btn.white { flex: 0 0 34%; box-shadow: inset 0 0 0 1.5px #cfc6b8; }
}

/* 動きを減らす設定の人には、動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .top, .fixed-cta, .notice { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { box-shadow: none !important; animation: none !important; }
}
