/* にじっ子ハウス サイト共通スタイル
   スマホを基準に作り、900px以上でPCレイアウトに切り替えます */

:root {
  --ink: #1F1B3A;
  --text: #4A4663;
  --line: #D9D5EA;
  --white: #FFFFFF;
  --purple: #5B2F9E;
  --purple-dark: #43207A;
  --red: #E8384F;
  --orange: #F28C28;
  --yellow: #F5C22B;
  --green: #2EAA5C;
  --sky: #1FA0DB;
  --blue: #1E63D0;
  --violet: #6B3FA0;
  --alert: #B4233A;
  --bg-peach: #FFF6EE;
  --bg-pink: #FFF1F3;
  --bg-apricot: #FFF4E5;
  --bg-mint: #E8F6EE;
  --bg-sky: #EAF5FD;
  --bg-lemon: #FFF8DC;
  --bg-lilac: #F4F0FB;
  --font-round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --shadow: 5px 5px 0 var(--ink);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-round); font-weight: 800; line-height: 1.4; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { color: var(--alert); font-weight: 700; }

.container { width: 100%; max-width: 1328px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 48px; }
.section--peach { background: var(--bg-peach); }
.section--pink { background: var(--bg-pink); }
.section--mint { background: var(--bg-mint); }
.section--sky { background: var(--bg-sky); }
.section--lemon { background: var(--bg-lemon); }
.section--lilac { background: var(--bg-lilac); }
.section__head { display: grid; gap: 6px; justify-items: center; text-align: center; margin-bottom: 24px; }
.section__eyebrow { font-family: var(--font-round); font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.section__title { font-size: 26px; }
.section__lead { color: var(--text); font-size: 15px; }

/* ボタン・タグ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--font-round); font-weight: 800; font-size: 17px; text-decoration: none; text-align: center; line-height: 1.3; transition: transform .15s, box-shadow .15s; }
.btn--primary { background: var(--purple); color: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:hover { color: var(--white); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--red { background: var(--red); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--red:hover, .btn--blue:hover { color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--yellow:hover, .btn--white:hover { color: var(--ink); }
.btn--block { width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-round); font-weight: 800; font-size: 14px; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 10px; background: var(--white); }
.tag:nth-child(3n+1) { transform: rotate(-1.5deg); background: var(--bg-mint); }
.tag:nth-child(3n+2) { transform: rotate(1.5deg); background: var(--bg-sky); }
.tag:nth-child(3n) { transform: rotate(-1deg); background: #FFF3C4; }
.pill { justify-self: start; align-self: start; display: inline-block; font-family: var(--font-round); font-weight: 800; font-size: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 4px 10px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--ink); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-header__logo img { height: 44px; width: auto; }
.menu-toggle { width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 14px; background: var(--bg-peach); display: grid; place-items: center; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; box-shadow: 0 7px 0 var(--ink), 0 -7px 0 var(--ink); }
.global-nav { display: none; }
.global-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 2px solid var(--ink); padding: 8px var(--gutter) 20px; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.global-nav a { display: block; padding: 12px 4px; font-family: var(--font-round); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.global-nav .btn { margin-top: 8px; color: var(--white); }

/* ヒーロー */
.hero { position: relative; overflow: hidden; }
.hero__rainbow { position: absolute; width: 420px; right: -110px; bottom: -30px; pointer-events: none; }
.hero__inner { position: relative; display: grid; gap: 20px; padding-block: 28px 44px; }
.hero__text { display: grid; gap: 20px; min-width: 0; }
.hero__title { font-size: 40px; line-height: 1.3; }
.hero__mark { background: linear-gradient(transparent 62%, #FFD84D 62%); }
.hero__lead { color: var(--text); font-size: 15px; }
.hero__photos { position: relative; height: 300px; }
.photo { border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); object-fit: cover; }
.hero__photo-a { position: absolute; right: 0; top: 0; width: 72%; height: 200px; transform: rotate(2deg); }
.hero__photo-b { position: absolute; left: 0; top: 140px; width: 56%; height: 150px; transform: rotate(-3deg); }
.badge-new { position: absolute; right: 12px; top: 186px; width: 104px; height: 104px; border-radius: 50%; background: var(--red); color: var(--white); border: 3px solid var(--ink); display: grid; place-content: center; text-align: center; transform: rotate(8deg); font-family: var(--font-round); font-weight: 800; line-height: 1.25; }
.badge-new small { font-size: 11px; display: block; }
.badge-new b { font-size: 17px; display: block; }
.hero__actions { display: grid; gap: 12px; }
.hero__tel { display: grid; text-decoration: none; color: var(--ink); line-height: 1.3; }
.hero__tel small { font-size: 12px; font-weight: 700; color: var(--text); }
.hero__tel b { font-family: var(--font-round); font-size: 24px; }

/* 悩みカード */
.worries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.worry { border: 2px solid var(--ink); border-radius: 20px; padding: 20px 12px; display: grid; justify-items: center; gap: 10px; text-align: center; font-family: var(--font-round); font-weight: 800; font-size: 15px; line-height: 1.5; }
.worry img { width: 44px; height: 44px; }
.worry:nth-child(1) { background: var(--bg-pink); }
.worry:nth-child(2) { background: var(--bg-apricot); }
.worry:nth-child(3) { background: var(--bg-mint); }
.worry:nth-child(4) { background: var(--bg-sky); }
.worries-note { margin-top: 20px; text-align: center; color: var(--text); font-size: 14px; }

/* 教室カード */
.classrooms { display: grid; gap: 24px; }
.classroom { position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.classroom__photo { width: 100%; height: 190px; object-fit: cover; border-bottom: 3px solid var(--ink); }
.classroom__new { position: absolute; top: 14px; right: 14px; font-family: var(--font-round); font-weight: 800; font-size: 13px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; transform: rotate(4deg); }
.classroom__body { padding: 20px; display: grid; gap: 12px; }
.classroom__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.classroom__name b { font-family: var(--font-round); font-size: 28px; }
.classroom__name span, .classroom__text { font-size: 14px; color: var(--text); }
.classroom--nana .chip { background: var(--bg-pink); }
.classroom--sanbon .chip { background: var(--bg-sky); }
.classroom__foot { display: grid; gap: 8px; }
.classroom__tel { font-family: var(--font-round); font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; text-align: center; padding: 6px; }

/* プログラム */
.programs { display: grid; gap: 10px; }
.program { display: flex; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.program__name { flex: none; width: 76px; display: grid; place-items: center; font-family: var(--font-round); font-weight: 800; font-size: 18px; border-right: 2px solid var(--ink); }
.program__body { padding: 12px 14px; font-size: 13px; line-height: 1.6; display: grid; gap: 4px; }
.program__body span { color: var(--text); }
.program--move .program__name { background: var(--green); color: var(--white); }
.program--music .program__name { background: var(--orange); }
.program--craft .program__name { background: var(--red); color: var(--white); }
.program--study .program__name { background: var(--sky); }
.program--life .program__name { background: var(--violet); color: var(--white); }

/* 1日の流れ */
.dayflow__tabs { display: flex; gap: 6px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.dayflow__tab { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 10px 4px; font: 700 13px var(--font-body); color: var(--ink); cursor: pointer; min-height: 44px; }
.dayflow__tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.dayflow__panels { display: grid; gap: 16px; }
.dayflow__panel { background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 22px 20px; }
.dayflow__panel h3 { font-size: 18px; margin-bottom: 10px; }
.dayflow__panel dl { display: grid; grid-template-columns: 62px 1fr; row-gap: 10px; margin: 0; font-size: 15px; }
.dayflow__panel dt { font-weight: 700; color: var(--purple); }
.dayflow__panel dd { margin: 0; }
.dayflow__note { margin-top: 12px; font-size: 12px; color: var(--text); text-align: center; }
.js .dayflow__panel[hidden] { display: none; }

/* ステップ */
.steps { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 20px; padding: 16px; font-size: 14px; line-height: 1.7; }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-round); font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.step b { display: block; font-size: 16px; font-family: var(--font-round); }
.step:nth-child(1) { background: var(--bg-pink); }
.step:nth-child(2) { background: var(--bg-apricot); }
.step:nth-child(3) { background: var(--bg-mint); }
.step:nth-child(4) { background: var(--bg-sky); }

/* よくある質問 */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-family: var(--font-round); font-weight: 800; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--purple); }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; font-size: 14px; color: var(--text); }

/* 申込みエリア */
.cta { color: var(--white); text-align: center; }
.cta--purple { background: var(--purple); }
.cta--red { background: var(--red); }
.cta--blue { background: var(--blue); }
.cta__title { font-size: 28px; line-height: 1.45; margin-bottom: 20px; }
.cta__buttons { display: grid; gap: 12px; max-width: 1100px; margin: 0 auto; }
.cta__card { display: grid; gap: 4px; padding: 18px; border: 2px solid var(--ink); border-radius: 20px; font-family: var(--font-round); font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); background: var(--white); }
.cta__card small { font-size: 13px; }
.cta__card--yellow { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.cta__card:hover { color: var(--ink); }
.cta__sub { display: inline-block; margin-top: 16px; color: var(--white); font-weight: 700; font-size: 14px; padding: 8px; }
.cta__sub:hover { color: var(--white); }

/* フッター */
.site-footer { background: var(--ink); color: #D9D5EA; font-size: 13px; line-height: 1.8; padding-block: 32px 110px; }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer img { height: 56px; width: auto; }
.site-footer b { color: var(--white); display: block; }
.site-footer a { color: #D9D5EA; }
.site-footer small { display: block; margin-top: 12px; }

/* スマホ下部の固定ボタン */
.float-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; gap: 8px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 6px; box-shadow: 0 8px 24px rgba(31, 27, 58, .25); }
.float-bar__tel { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-peach); border: 2px solid var(--ink); display: grid; place-items: center; }
.float-bar__main { flex: 1; display: grid; place-items: center; background: var(--purple); color: var(--white); text-decoration: none; border-radius: 999px; font-family: var(--font-round); font-weight: 800; font-size: 17px; }
.float-bar__main:hover { color: var(--white); }
.page-nana .float-bar__main { background: var(--red); }
.page-sanbon .float-bar__main { background: var(--blue); }

/* 拠点ページ */
.place-hero__inner { display: grid; gap: 18px; padding-block: 24px 36px; }
.place-hero__name { display: flex; align-items: baseline; gap: 8px; }
.place-hero__name small { font-family: var(--font-round); font-weight: 800; font-size: 16px; color: var(--text); }
.place-hero__name b { font-family: var(--font-round); font-size: 52px; line-height: 1; }
.page-nana .place-hero__name b { color: var(--red); }
.place-hero__logo { position: relative; max-width: 300px; }
.place-hero__logo .badge { position: absolute; right: -8px; top: -4px; width: 70px; height: 70px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-content: center; text-align: center; font-family: var(--font-round); font-weight: 800; font-size: 12px; line-height: 1.25; transform: rotate(10deg); }
.place-hero__photo { width: 100%; height: 250px; object-fit: cover; }
.place-hero__photo-sub { display: none; }
.place-hero__title { font-size: 26px; line-height: 1.5; }
.place-hero__lead { font-size: 15px; color: var(--text); }
.place-hero__actions { display: none; }
.features { display: grid; gap: 14px; }
.feature { border: 2px solid var(--ink); border-radius: 20px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.7; background: var(--white); }
.feature__no { font-family: var(--font-round); font-weight: 800; font-size: 28px; line-height: 1; }
.feature b { display: block; font-size: 16px; font-family: var(--font-round); }
.services { display: grid; gap: 14px; }
.service { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 22px; display: grid; gap: 10px; }
.service .pill { justify-self: start; }
.service h3 { font-size: 22px; }
.service p { font-size: 14px; color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.gallery figure { margin: 0; display: grid; gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 2px solid var(--ink); }
.gallery figcaption { font-size: 13px; font-weight: 700; }
.village { display: grid; gap: 14px; }
.village__art { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 14px; }
.village p { font-size: 14px; color: #3A4A40; }
.info { display: grid; gap: 20px; }
.info__table { margin: 0; border-top: 2px solid var(--ink); font-size: 14px; }
.info__table div { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info__table dt { font-weight: 700; }
.info__table dd { margin: 0; }
.map { width: 100%; height: 260px; border: 3px solid var(--ink); border-radius: 24px; }

/* PC */
@media (min-width: 900px) {
  :root { --gutter: 56px; }
  .section { padding-block: 96px; }
  .section__head { margin-bottom: 44px; }
  .section__eyebrow { font-size: 15px; }
  .section__title { font-size: 44px; }
  .section__lead { font-size: 18px; }
  .site-header__inner { min-height: 104px; }
  .site-header__logo img { height: 64px; }
  .menu-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: block; position: static; border: 0; padding: 0; }
  .global-nav ul { display: flex; align-items: center; gap: 28px; }
  .global-nav a { padding: 8px 0; font-size: 16px; }
  .global-nav .btn { margin: 0; padding: 12px 24px; min-height: 0; font-size: 16px; }
  .hero__rainbow { width: 760px; right: -60px; top: auto; bottom: -40px; }
  .hero__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "text photos"; gap: 40px; padding-block: 72px 96px; align-items: center; }
  .hero__text { grid-area: text; display: grid; gap: 28px; }
  .hero__photos { grid-area: photos; height: 640px; }
  .hero__title { font-size: clamp(48px, 4.4vw, 66px); }
  .hero__lead { font-size: 19px; max-width: 29em; }
  .hero__photo-a { width: 500px; height: 380px; right: 20px; }
  .hero__photo-b { width: 400px; height: 300px; left: 10px; top: 290px; }
  .badge-new { width: 170px; height: 170px; right: 60px; top: 420px; }
  .badge-new small { font-size: 15px; }
  .badge-new b { font-size: 26px; }
  .hero__actions { display: flex; align-items: center; gap: 16px; }
  .photo { border-radius: 32px; box-shadow: 8px 8px 0 var(--ink); }
  .worries { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .worry { padding: 32px 24px; font-size: 21px; border-radius: 28px; gap: 18px; }
  .worry img { width: 64px; height: 64px; }
  .worries-note { font-size: 19px; margin-top: 44px; }
  .classrooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .classroom { border-radius: 36px; box-shadow: 8px 8px 0 var(--ink); }
  .classroom__photo { height: 320px; }
  .classroom__body { padding: 32px 36px 36px; gap: 18px; }
  .classroom__name b { font-size: 38px; }
  .classroom__name span { font-size: 16px; }
  .classroom__text { font-size: 17px; }
  .classroom .chip { font-size: 15px; padding: 6px 12px; }
  .classroom__foot { grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
  .classroom__tel { font-size: 20px; }
  .programs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .program { flex-direction: column; border-radius: 24px; }
  .program__name { width: auto; padding: 18px; font-size: 26px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .program__body { padding: 20px; font-size: 15px; gap: 10px; }
  .dayflow__tabs { display: none; }
  .dayflow__panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .js .dayflow__panel[hidden] { display: block; }
  .dayflow__panel { border-radius: 28px; padding: 30px 32px; }
  .dayflow__panel h3 { font-size: 22px; }
  .dayflow__panel dl { grid-template-columns: 70px 1fr; font-size: 16px; }
  .dayflow__note { font-size: 15px; margin-top: 28px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .step { flex-direction: column; border-radius: 28px; padding: 30px 26px; font-size: 15px; }
  .step::before { width: 52px; height: 52px; font-size: 24px; }
  .step b { font-size: 21px; margin-bottom: 8px; }
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .faq details { border-radius: 24px; padding: 0 32px; }
  .faq summary { font-size: 20px; padding-block: 24px; }
  .faq details p { font-size: 16px; padding-bottom: 24px; }
  .cta__title { font-size: 48px; margin-bottom: 32px; }
  .cta__buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .cta__buttons--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .cta__card { padding: 24px; font-size: 24px; border-radius: 24px; }
  .cta__card small { font-size: 15px; }
  .cta__sub { font-size: 17px; }
  .site-footer { font-size: 15px; padding-block: 56px; }
  .site-footer__inner { grid-template-columns: auto 1fr 1fr; gap: 64px; }
  .site-footer img { height: 72px; }
  .float-bar { display: none; }
  .place-hero__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "text photos"; gap: 56px; padding-block: 72px 88px; align-items: center; }
  .place-hero__text { grid-area: text; display: grid; gap: 24px; }
  .place-hero__photos { grid-area: photos; position: relative; height: 560px; }
  .place-hero__name small { font-size: 22px; }
  .place-hero__name b { font-size: 88px; }
  .place-hero__name { flex-direction: column; gap: 4px; }
  .place-hero__logo { max-width: 460px; }
  .place-hero__logo .badge { width: 96px; height: 96px; font-size: 16px; right: -40px; }
  .place-hero__photo { position: absolute; right: 0; top: 0; width: 560px; height: 420px; transform: rotate(1.5deg); }
  .place-hero__photo-sub { display: block; position: absolute; left: 0; bottom: 0; width: 300px; height: 220px; transform: rotate(-3deg); }
  .page-sanbon .place-hero__photo { width: 580px; height: 435px; transform: rotate(-1.5deg); }
  .page-sanbon .place-hero__photo-sub { width: 190px; height: 250px; left: 10px; transform: rotate(3deg); }
  .place-hero__title { font-size: 40px; line-height: 1.45; }
  .place-hero__lead { font-size: 18px; max-width: 30em; }
  .place-hero__actions { display: flex; gap: 16px; align-items: center; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .feature { flex-direction: column; border-radius: 28px; padding: 32px; font-size: 16px; }
  .feature__no { font-size: 44px; }
  .feature b { font-size: 22px; margin-bottom: 6px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .service { border-radius: 32px; padding: 40px; gap: 16px; }
  .service h3 { font-size: 30px; }
  .service p { font-size: 16px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .gallery img { border-radius: 24px; }
  .gallery figcaption { font-size: 16px; font-family: var(--font-round); }
  .village { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
  .village__art { order: 2; padding: 28px; border-radius: 32px; }
  .village p { font-size: 17px; }
  .info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .info__table { font-size: 16px; }
  .info__table div { grid-template-columns: 140px 1fr; padding: 14px 0; }
  .map { height: 100%; min-height: 460px; border-radius: 32px; }
}


/* ===== 1ページ構成の追加分 ===== */
.section--cream { background: #FFFBF4; }
.section--navy { background: #F1F3FA; }
.hero__jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero__jump a { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); color: var(--ink); text-decoration: none; font-family: var(--font-round); font-weight: 800; font-size: 17px; line-height: 1.3; }
.hero__jump a small { font-size: 12px; font-weight: 700; color: var(--text); }
.hero__jump a:nth-child(1) { border-bottom: 6px solid var(--red); }
.hero__jump a:nth-child(2) { border-bottom: 6px solid var(--blue); }

/* 教室の切り替え */
.place-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin: 0 auto 24px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 5px; }
.place-tab { border: 0; border-radius: 999px; min-height: 52px; background: transparent; font: 800 17px var(--font-round); color: var(--ink); cursor: pointer; }
.place-tab small { display: block; font-size: 11px; font-weight: 700; }
.place-tab[aria-selected="true"][data-place="nanabanchi"] { background: var(--red); color: var(--white); }
.place-tab[aria-selected="true"][data-place="sanbonyanagi"] { background: var(--blue); color: var(--white); }
.place { display: grid; gap: 28px; }
.js .place[hidden] { display: none; }
.place + .place { margin-top: 48px; }
.js .place + .place { margin-top: 0; }
.place__head { display: grid; gap: 16px; }
.place__logo { max-width: 300px; position: relative; }
.place__logo .badge { position: absolute; right: -6px; top: -4px; width: 70px; height: 70px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-content: center; text-align: center; font: 800 12px/1.25 var(--font-round); transform: rotate(10deg); }
.place__title { font-size: 26px; line-height: 1.5; }
.place__lead { font-size: 15px; color: var(--text); }
.place__actions { display: grid; gap: 10px; }
.place__block { display: grid; gap: 14px; }
.place__block > h3 { font-size: 20px; }
.gallery--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; }
.gallery--scroll figure { flex: 0 0 72%; scroll-snap-align: start; }
.gallery--scroll img { aspect-ratio: 4 / 3; }
.gallery__hint { font-size: 12px; color: var(--text); }

/* 安心して預けられる理由 */
.trust { display: grid; gap: 14px; }
.trust__item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 18px; }
.trust__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 2px solid var(--ink); }
.trust__item b { display: block; font-family: var(--font-round); font-size: 17px; margin-bottom: 4px; }
.trust__item p { font-size: 14px; color: var(--text); }
.trust__item:nth-child(1) .trust__icon { background: var(--bg-pink); }
.trust__item:nth-child(2) .trust__icon { background: var(--bg-mint); }
.trust__item:nth-child(3) .trust__icon { background: var(--bg-sky); }
.trust__item:nth-child(4) .trust__icon { background: #FFF3C4; }

/* 採用 */
.recruit { background: var(--ink); color: var(--white); }
.recruit .section__eyebrow { color: var(--yellow); }
.recruit .section__lead { color: #D9D5EA; }
.recruit__grid { display: grid; gap: 24px; }
.recruit__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 3px solid var(--white); }
.recruit__points { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.recruit__points li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 18px; padding: 16px 18px; font-size: 14px; color: #E6E3F2; }
.recruit__points b { display: block; font-family: var(--font-round); font-size: 17px; color: var(--white); margin-bottom: 4px; }
.recruit__jobs { display: grid; gap: 10px; }
.recruit__job { background: var(--white); color: var(--ink); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; }
.recruit__job b { font-family: var(--font-round); font-size: 18px; }
.recruit__job span { font-size: 13px; color: var(--text); }
.recruit__todo { color: #FFB4BF; font-weight: 700; font-size: 13px; }
.recruit__actions { display: grid; gap: 12px; }

@media (min-width: 900px) {
  .hero__jump { grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; }
  .place-tabs { margin-bottom: 48px; }
  .place-tab { min-height: 64px; font-size: 22px; }
  .place-tab small { font-size: 13px; }
  .place { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 40px; }
  .place__head { grid-column: 1 / 7; align-content: center; gap: 22px; }
  .place__hero-photo { grid-column: 7 / 13; }
  .place__block { grid-column: 1 / -1; }
  .place__block--half { grid-column: span 6; }
  .place__logo { max-width: 440px; }
  .place__logo .badge { width: 96px; height: 96px; font-size: 16px; right: -36px; }
  .place__title { font-size: 38px; line-height: 1.45; }
  .place__lead { font-size: 17px; }
  .place__actions { display: flex; gap: 16px; align-items: center; }
  .place__block > h3 { font-size: 26px; }
  .gallery--scroll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .gallery__hint { display: none; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .trust__item { grid-template-columns: 72px 1fr; padding: 28px; border-radius: 28px; gap: 20px; }
  .trust__icon { width: 72px; height: 72px; border-radius: 20px; }
  .trust__item b { font-size: 21px; }
  .trust__item p { font-size: 16px; }
  .recruit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
  .recruit__points li { font-size: 16px; padding: 20px 24px; }
  .recruit__points b { font-size: 20px; }
  .recruit__actions { display: flex; gap: 16px; }
}


/* 空き状況 */
.avail { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.avail__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.avail__head h3 { font-size: 20px; }
.avail__updated { font-size: 12px; color: var(--text); }
.avail__note { background: #FFF3C4; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; }
.avail__fallback { font-size: 14px; color: var(--text); }
.avail__table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: center; }
.avail__table th, .avail__table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.avail__table thead th { font-size: 12px; color: var(--text); font-weight: 700; }
.avail__table tbody th { font-family: var(--font-round); font-weight: 800; }
.avail__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; font-size: 17px; border: 2px solid var(--ink); }
.avail__legend .avail__mark { width: 24px; height: 24px; font-size: 12px; margin-right: 2px; vertical-align: middle; }
.avail__mark--ok { background: var(--bg-mint); color: #1E7A43; }
.avail__mark--few { background: #FFF3C4; color: #8A5F00; }
.avail__mark--full { background: var(--bg-pink); color: var(--alert); }
.avail__mark--off { background: #F1F0F5; color: #8C86A8; border-color: #C9C5D8; }
.avail__legend { font-size: 12px; color: var(--text); line-height: 2.2; }
@media (min-width: 900px) {
  .avail { padding: 32px 36px; border-radius: 32px; box-shadow: 8px 8px 0 var(--ink); }
  .avail__head h3 { font-size: 26px; }
  .avail__table { font-size: 17px; }
  .avail__table thead th { font-size: 14px; }
  .avail__legend { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* 上部の「横に流れる写真の帯」（デスコグループのサイトと共通の動き） */
.hero__inner { grid-template-columns: 1fr; padding-bottom: 28px; }
.hero .badge-new { top: auto; bottom: 10px; right: 16px; }
.hero .flow { position: relative; z-index: 1; overflow: hidden; padding-block: 12px 40px; }
.hero .flow__track { display: flex; gap: 20px; width: max-content; animation: flow-move 70s linear infinite; }
.hero .flow__track img { height: clamp(200px, 30vw, 380px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; flex: none; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); }
.hero .flow__track img:nth-child(odd) { transform: rotate(-1.5deg); }
.hero .flow__track img:nth-child(even) { transform: rotate(1.5deg); }
.hero .flow:hover .flow__track, .hero .flow.is-paused .flow__track { animation-play-state: paused; }
.flow__pause { position: absolute; right: 16px; bottom: 6px; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
@keyframes flow-move { to { transform: translateX(calc(-50% - 10px)); } }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "text"; padding-block: 40px 20px; }
  .hero__text { grid-template-columns: 1.15fr 1fr; grid-template-areas: "pill ." "title lead" "title tags" "title jump"; column-gap: 56px; row-gap: 18px; align-items: end; }
  .hero__text > .pill { grid-area: pill; justify-self: start; }
  .hero__text > .hero__title { grid-area: title; font-size: clamp(44px, 4.2vw, 62px); align-self: center; }
  .hero__text > .hero__lead { grid-area: lead; font-size: 17px; }
  .hero__text > .tags { grid-area: tags; }
  .hero__text > .hero__jump { grid-area: jump; }
  .hero__inner { z-index: 2; }
  .hero .badge-new { width: 130px; height: 130px; right: 4%; top: auto; bottom: -70px; z-index: 3; }
  .hero .badge-new b { font-size: 21px; }
  .hero .badge-new small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .flow__track { animation: none; }
  .hero .flow { overflow-x: auto; }
  .flow__pause { display: none; }
}

/* 色の調整（2026-09-24）：デスコグループのサイトに合わせ、水彩の絵から取った淡い色に寄せる。
   ロゴの7色は画像のまま。白い文字をのせる色は、読みやすさの基準（コントラスト4.5以上）を満たす濃さにしている */
:root {
  --ink: #3E4A55;
  --text: #5E6A74;
  --line: #E1DDE9;
  --purple: #6E5A9E;
  --purple-dark: #5A4885;
  --red: #BF4F5B;
  --orange: #E3A06A;
  --yellow: #EBCB72;
  --green: #7FB08A;
  --sky: #8DBBD3;
  --blue: #4F7896;
  --violet: #8A77B5;
  --bg-peach: #FBF1EA;
  --bg-pink: #FBEFF1;
  --bg-apricot: #FCF3E7;
  --bg-mint: #EAF3E8;
  --bg-sky: #EBF3F6;
  --bg-lemon: #FBF6E4;
  --bg-lilac: #F2EFF7;
  --shadow: 4px 4px 0 rgba(62, 74, 85, .85);
}
body { background: #FDFBF7; }
.section--cream { background: #FBF8F2; }
.section--navy { background: #EEF2F6; }
.hero__mark { background: linear-gradient(transparent 62%, #F1DA8C 62%); }
.tag:nth-child(3n) { background: #FBF1CF; }
.hero__rainbow { opacity: .45; }

/* 色の試し案：ミルキーパステル */
:root {
  --ink: #5A4A42;
  --text: #6E625B;
  --line: #EADFD8;
  --purple: #8660AE;
  --purple-dark: #6E4C95;
  --red: #BD5360;
  --blue: #437C9E;
  --orange: #F2B07E;
  --yellow: #F6D77A;
  --green: #8CC9A0;
  --sky: #9ED0E6;
  --violet: #B79ADB;
  --bg-peach: #FFF0EA;
  --bg-pink: #FFEFF3;
  --bg-apricot: #FFF4E8;
  --bg-mint: #EAF7EF;
  --bg-sky: #EAF5FB;
  --bg-lemon: #FFF8E1;
  --bg-lilac: #F5F0FC;
  --shadow: 4px 4px 0 #5A4A42;
}
body { background: #FFFCF7; }
.hero__mark { background: linear-gradient(transparent 62%, #F8DF96 62%); }
.hero__rainbow { opacity: .6; }
