/* 採用サイト（まなびのさき・あそびのば）共通。色だけ body[data-site] で変える。
   角丸10px／分けるのは余白と地の色の差／影は下の固定ボタンだけ／動きはボタンを押したときだけ。 */
:root {
  --r: 10px;
  --mark: #ffe14d;
  --ink: #1c2422;
  --sub: #4c5856;
  --line: #d5dedc;
  --bg: #fff;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}
body[data-site="manabinosaki"] { --c: #2a6fb3; --c-deep: #1d4f80; --tint: #eef4fa; --sub: #4b5765; --line: #d3dde8; }
body[data-site="asobinoba"] { --c: #147a6e; --c-deep: #0f5a51; --tint: #e9f5f2; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--bg); letter-spacing: .01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-deep); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: 0; word-break: auto-phrase; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ヘッダー */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: block; padding: 4px 0; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--sub); }
.top .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (max-width: 759px) { .top .btn { display: none; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: var(--r); background: var(--c); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; transition: background-color 150ms ease; }
.btn svg { flex: none; width: 22px; height: 22px; }
.btn:active { transform: translateY(1px); transition: transform 34ms; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--c-deep); } }
.btn-note { margin: 12px 0 0; font-size: 14px; color: var(--sub); }
.btn-note b { color: var(--ink); }

/* 見出しの上の黄色い札 */
.label { display: inline-block; margin: 0 0 12px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--mark); font-size: 14px; font-weight: 700; line-height: 1.6; }
mark { background: var(--mark); color: inherit; padding: 0 4px; border-radius: 4px; }

/* ファーストビュー */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1fr; gap: 48px; } .hero { padding: 64px 0 80px; } }
.eyebrow { margin: 0 0 12px; font-weight: 700; color: var(--c-deep); }
.hero h1 { font-size: 30px; font-weight: 900; }
@media (min-width: 760px) { .hero h1 { font-size: 48px; } }
.lead { margin: 20px 0 24px; font-size: 18px; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.facts { display: grid; gap: 8px; margin: 0 0 28px; }
.facts div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--tint); border-radius: var(--r); }
.facts dt { font-size: 14px; font-weight: 700; color: var(--c-deep); }
.facts dd { margin: 0; line-height: 1.5; }
.facts dd b, .spec .em { white-space: nowrap; }
.facts dd b { font-size: 20px; }

/* 節 */
.sec { padding: 64px 0; }
.sec.tint { background: var(--tint); }
@media (min-width: 760px) { .sec { padding: 96px 0; } }
.sec h2 { font-size: 28px; font-weight: 900; margin-bottom: 24px; }
@media (min-width: 760px) { .sec h2 { font-size: 36px; } }
.sec h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.split figure { margin: 0; }
.photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.illust { width: 100%; max-width: 420px; margin: 0 auto; }
@media (max-width: 759px) { .illust { max-width: 260px; } }
.pair-2 { margin-top: 24px; }
.cap { margin: 8px 0 0; font-size: 14px; color: var(--sub); text-align: center; }
.text { max-width: 36em; }

.checks { display: grid; gap: 8px; margin: 8px 0 24px; }
.checks li { position: relative; padding-left: 28px; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--c); border-bottom: 3px solid var(--c); transform: rotate(-45deg); }
.box { padding: 24px; background: var(--bg); border-radius: var(--r); }
.sec:not(.tint) .box { background: var(--tint); }
.box + .box { margin-top: 16px; }

.three { display: grid; gap: 12px; counter-reset: n; margin: 8px 0 24px; }
.three li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 16px; background: var(--bg); border-radius: var(--r); font-weight: 700; }
.three li::before { content: counter(n); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 900; }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
@media (max-width: 759px) { .photos:not(.two) img:first-child { grid-column: 1 / -1; } }
@media (min-width: 760px) { .photos { grid-template-columns: repeat(3, 1fr); gap: 16px; } .photos.two { grid-template-columns: 1fr 1fr; } }

.sec:not(.tint) .three li { background: var(--tint); }
.more { display: inline-block; padding: 10px 0; font-weight: 700; line-height: 1.6; }
.more::after { content: "→"; margin-left: 6px; }
.more-list { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* 時間割 */
.times { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 760px) { .times { grid-template-columns: 1fr 1fr; } }
.times h3 { font-size: 18px; }
.slots { display: grid; gap: 8px; }
.slots li { padding: 10px 16px; background: var(--tint); border-radius: var(--r); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sec.tint .slots li { background: var(--bg); }
@media (max-width: 759px) { .slots.compact { grid-template-columns: 1fr 1fr; } .slots.compact li { font-size: 18px; padding: 10px 12px; } }
.slots li small { display: block; font-size: 14px; font-weight: 500; color: var(--sub); }
.times p { margin: 12px 0 0; font-size: 14px; color: var(--sub); }
.notes { margin-top: 24px; display: grid; gap: 4px; }
.notes li { padding-left: 1em; text-indent: -1em; }
.notes li::before { content: "・"; }

/* 募集要項 */
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .spec > div { grid-template-columns: 180px 1fr; gap: 24px; padding: 20px 0; } }
.spec dt { font-weight: 700; color: var(--c-deep); }
.spec dd { margin: 0; }
.spec dd ul li { padding-left: 1em; text-indent: -1em; }
.spec dd ul li::before { content: "・"; }
.spec .em { font-size: 20px; font-weight: 900; }
.spec small { display: block; font-size: 14px; color: var(--sub); margin-top: 4px; }

/* 選考の流れ */
.steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding: 20px; background: var(--bg); border-radius: var(--r); }
.sec:not(.tint) .steps li { background: var(--tint); }
.steps li::before { content: "STEP " counter(s); display: block; margin-bottom: 4px; font-size: 14px; font-weight: 900; color: var(--c); letter-spacing: .04em; }
.steps b { display: block; font-size: 18px; line-height: 1.5; }
.steps span { display: block; margin-top: 4px; font-size: 14px; color: var(--sub); }

/* 応募 */
.apply { padding: 64px 0 72px; background: var(--tint); }
@media (min-width: 760px) { .apply { padding: 96px 0; } }
.apply .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .apply .wrap { grid-template-columns: 1fr 340px; gap: 56px; } }
.apply h2 { font-size: 28px; font-weight: 900; margin-bottom: 20px; }
@media (min-width: 760px) { .apply h2 { font-size: 36px; } }
.chat { display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.chat img { width: 180px; }
.bubble { position: relative; margin: 0; padding: 12px 20px; background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); font-weight: 700; font-size: 18px; line-height: 1.5; white-space: nowrap; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.bubble small { display: block; font-size: 12px; font-weight: 500; color: var(--sub); }
.apply.plain .bubble { background: var(--tint); }
.howto { display: grid; gap: 8px; margin: 0 0 28px; counter-reset: h; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.howto li::before { content: counter(h); display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--ink); background: var(--mark); font-size: 14px; font-weight: 900; }

/* となりの募集 */
.sister { padding: 48px 0; border-top: 1px solid var(--line); }
.sister .wrap { display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .sister .wrap { grid-template-columns: 1fr auto; } }
.sister p { margin: 0; }
.sister b { display: block; font-size: 20px; }
.btn.ghost { background: var(--bg); color: var(--ink); border: 2px solid var(--ink); font-size: 16px; min-height: 52px; }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { background: var(--tint); } }

/* フッター */
.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-block; padding: 12px 0; color: var(--sub); }
.spec small a { padding-block: 12px; }
.nw { display: inline-block; }
.sister b, .btn-note, .howto li { word-break: auto-phrase; }
.split.mid { align-items: center; }
/* スマホの下に固定する応募ボタン */
.fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -4px 16px rgb(28 36 34 / .08); }
.fixed .btn { width: 100%; min-height: 52px; font-size: 17px; }
.fixed { transition: transform 200ms ease-out; }
.fixed.off { transform: translateY(110%); transition-duration: 160ms; }
@media (max-width: 759px) { body { padding-bottom: 76px; } }
@media (min-width: 760px) { .fixed { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn:active { transition: none; transform: none; } }
