/* デスコグループ 福祉・子育てサイト 共通スタイル
   スマホを基準に作り、900px以上でPCレイアウトに切り替えます */

:root {
  --ground: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #22303C;
  --text: #4F5A66;
  --muted: #7A838D;
  --line: #E4E0D7;
  --brand: #1F5C99;
  --brand-dark: #174677;
  --hoiku: #C95A41;
  --hoiku-bg: #FBEDE7;
  --hattatsu: #6E52AE;
  --hattatsu-bg: #F1ECF8;
  --kourei: #3B7A58;
  --kourei-bg: #E7F1EB;
  --sand: #F4F0E6;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --gutter: 16px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.45; margin: 0; text-wrap: balance; letter-spacing: .02em; }
p { margin: 0; }
.todo { color: #B4233A; font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.section--sand { background: var(--sand); }
.section--white { background: var(--surface); }
.eyebrow { display: block; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--brand); margin-bottom: 8px; }
.section__title { font-size: 26px; }
.section__lead { color: var(--text); margin-top: 12px; max-width: 38em; }
.section__head { margin-bottom: 28px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.arrow::after { content: "→"; font-family: var(--font-body); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.brand b { display: block; font-family: var(--font-head); font-size: 17px; line-height: 1.2; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.menu-toggle { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
.global-nav { display: none; }
.global-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.global-nav a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; }
.global-nav .btn { color: #fff; margin-top: 8px; }

/* ヒーロー */
.hero { padding-block: 32px 48px; }
.hero__inner { display: grid; gap: 28px; }
.hero__title { font-size: 28px; line-height: 1.5; }
.hero__lead { color: var(--text); font-size: 15px; margin-top: 16px; max-width: 32em; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.hero__facts div { background: var(--surface); padding: 14px 12px; }
.hero__facts b { display: block; font-family: var(--font-head); font-size: 22px; line-height: 1.2; }
.hero__facts span { font-size: 12px; color: var(--muted); }
.hero__photos { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.hero__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.hero__photos img:first-child { aspect-ratio: auto; grid-row: span 2; }

/* 3つの柱 */
.pillars { display: grid; gap: 16px; }
.pillar { border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 12px; align-content: start; }
.pillar--hoiku { background: var(--hoiku-bg); }
.pillar--hattatsu { background: var(--hattatsu-bg); }
.pillar--kourei { background: var(--kourei-bg); }
.pillar__label { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.pillar--hoiku .pillar__label { color: var(--hoiku); }
.pillar--hattatsu .pillar__label { color: var(--hattatsu); }
.pillar--kourei .pillar__label { color: var(--kourei); }
.pillar h3 { font-size: 21px; }
.pillar p { font-size: 14px; color: var(--text); }
.pillar ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.pillar li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.pillar li a::after { content: "→"; color: var(--muted); font-weight: 400; }
.pillar li a:hover { background: #fff; }

/* おおぞら村 */
.village { display: grid; gap: 24px; align-items: center; }
.village__art { background: var(--surface); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.village__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.village__list li { display: flex; gap: 10px; align-items: baseline; }
.village__list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--brand)); transform: translateY(1px); }

/* 施設カード */
.facility-group + .facility-group { margin-top: 40px; }
.facility-group__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 16px; }
.facility-group__title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--accent, var(--brand)); }
.facilities { display: grid; gap: 16px; }
.facility { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.facility__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); }
.facility__nophoto { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--accent-bg, var(--sand)); color: var(--accent, var(--muted)); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.facility__body { padding: 18px 20px 20px; display: grid; gap: 8px; flex-grow: 1; align-content: start; }
.facility__type { font-size: 12px; font-weight: 700; color: var(--accent, var(--brand)); letter-spacing: .06em; }
.facility__name { font-size: 19px; }
.facility__meta { font-size: 13px; color: var(--text); display: grid; gap: 2px; }
.facility__link { margin-top: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }
.facility__link::after { content: " →"; }
.g-hoiku { --accent: var(--hoiku); --accent-bg: var(--hoiku-bg); }
.g-hattatsu { --accent: var(--hattatsu); --accent-bg: var(--hattatsu-bg); }
.g-kourei { --accent: var(--kourei); --accent-bg: var(--kourei-bg); }

/* 採用 */
.recruit-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 32px 24px; display: grid; gap: 18px; }
.recruit-band .eyebrow { color: #9CC3EA; }
.recruit-band h2 { font-size: 22px; }
.recruit-band p { color: #D5DCE3; font-size: 15px; }
.recruit-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.recruit-band li { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.recruit-band .btn--primary { background: #fff; color: var(--ink); justify-self: start; }
.recruit-band .btn--primary:hover { background: #E6EEF6; color: var(--ink); }

/* グループ */
.group { display: grid; gap: 12px; }
.group__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.group__item b { font-family: var(--font-head); font-size: 17px; }
.group__item span { font-size: 13px; color: var(--text); }

/* お問い合わせ一覧 */
.contacts { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.contacts th, .contacts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.contacts th { font-family: var(--font-head); }
.contacts td a { white-space: nowrap; font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* 施設ページ */
.page-hero { padding-block: 28px 40px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.page-hero__inner { display: grid; gap: 24px; }
.page-hero__type { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-bg); border-radius: 999px; padding: 4px 12px; }
.page-hero__title { font-size: 30px; margin-top: 10px; }
.page-hero__lead { color: var(--text); margin-top: 12px; }
.page-hero__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.points { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.points b { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; color: var(--accent, var(--ink)); }
.points p { font-size: 14px; color: var(--text); }
.info { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; font-size: 14px; }
.info div { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { font-weight: 700; color: var(--ink); font-size: 13px; }
.info dd { margin: 0; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); background: var(--sand); }
/* 施設の情報のまとまり・沿革の年表（2026-11-05） */
.info-groups { display: grid; gap: 24px; }
.info-group__title { font-size: 16px; margin: 0 0 8px; padding-left: 12px; border-left: 4px solid var(--accent, var(--brand)); line-height: 1.4; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 24px 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent, var(--brand)); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline__when { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.timeline__what { color: var(--text); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.cta-box { background: var(--accent-bg, var(--sand)); border-radius: 24px; padding: 28px 22px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.cta-box h2 { font-size: 22px; }
.cta-box .tel { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); text-decoration: none; }

/* フッター */
.site-footer { background: #1B2630; color: #C7CFD7; font-size: 13px; padding-block: 40px 32px; margin-top: 56px; }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer b { color: #fff; font-family: var(--font-head); }
.site-footer a { color: #C7CFD7; }
.site-footer ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.site-footer small { display: block; margin-top: 24px; color: #8F9AA5; }

@media (min-width: 900px) {
  :root { --gutter: 48px; }
  .section { padding-block: 96px; }
  .section__title { font-size: 36px; }
  .section__head { margin-bottom: 44px; }
  .site-header__inner { min-height: 80px; }
  .brand img { width: 42px; }
  .brand b { font-size: 20px; }
  .menu-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: block; position: static; border: 0; padding: 0; background: none; }
  .global-nav ul { display: flex; align-items: center; gap: 26px; }
  .global-nav a { padding: 6px 0; font-size: 15px; }
  .global-nav .btn { margin: 0; padding: 10px 22px; min-height: 0; }
  .hero { padding-block: 64px 96px; }
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .hero__title { font-size: clamp(34px, 3.3vw, 46px); }
  .hero__lead { font-size: 17px; }
  .hero__facts b { font-size: 28px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .pillar { padding: 32px 28px; }
  .pillar h3 { font-size: 24px; }
  .village { grid-template-columns: 1fr 1fr; gap: 56px; }
  .facilities { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
  .recruit-band { grid-template-columns: 1.3fr 1fr; padding: 56px; align-items: center; gap: 24px 48px; }
  .recruit-band h2 { font-size: 28px; }
  .group { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .page-hero { padding-block: 48px 72px; }
  .page-hero__inner { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .page-hero__title { font-size: 44px; }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .info div { grid-template-columns: 150px 1fr; align-items: baseline; }
  .map { height: 420px; position: sticky; top: 100px; }
  .timeline li { grid-template-columns: 130px 1fr; gap: 16px; }
  .cta-box { padding: 48px; }
  .cta-box h2 { font-size: 28px; }
  .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
}

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