:root {
  --cream: #fbf6ec;
  --cream-2: #fffdf8;
  --ink: #4a3d33;
  --muted: #8a7b6b;
  --accent: #d9784a;
  --accent-dark: #b95f32;
  --accent-soft: #f3d9c8;
  --green: #6f8f7c;
  --green-soft: #e9efe6;
  --sand: #f3e8d2;
  --sand-deep: #ead9b4;
  --white: #fff;
  --shadow: 0 16px 40px rgba(74, 61, 51, 0.1);
  --shadow-soft: 0 10px 26px rgba(74, 61, 51, 0.08);
  --container: min(1120px, calc(100% - 40px));
  --section-y: clamp(56px, 7vw, 92px);
  --section-gap: clamp(26px, 4vw, 40px);
  --card-radius: 22px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 12% 0%, rgba(111, 143, 124, 0.08), transparent 30rem), var(--cream);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 1000;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white);
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 61, 51, 0.07);
  overflow: visible;
}
.header-inner {
  position: relative;
  width: min(1180px, calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: clamp(14px, 2.2vw, 36px); padding: 10px 0 18px;
  overflow: visible;
}
.brand { display: inline-flex; align-items: center; justify-content: center; }
.brand-logo { width: clamp(112px, 11vw, 150px); height: auto; object-fit: contain; }
.global-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 0.92rem; font-weight: 900; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-item {
  position: relative; display: grid; justify-items: center; gap: 4px;
  min-width: 64px; padding: 4px; color: var(--ink); text-align: center;
  transition: color 0.2s ease;
}
.nav-item img { width: clamp(68px, 6vw, 84px); height: clamp(68px, 6vw, 84px); object-fit: contain; }
.nav-item strong { font-size: clamp(0.72rem, 1vw, 0.86rem); line-height: 1.15; white-space: nowrap; }
.nav-item span {
  font-family: "Kosugi Maru", sans-serif; font-size: 0.5rem; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.nav-item:hover, .nav-item:focus-visible, .nav-item[aria-current="page"] { color: var(--accent); }
.global-nav .nav-cta strong { color: inherit; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-soft);
}
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 999px; }

main, .site-footer, .floating-cta { position: relative; z-index: 1; }
#main {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  transform: none;
  overflow-x: clip;
}

.section { width: var(--container); margin: 0 auto; padding: var(--section-y) 0; }
.in-container { width: var(--container); margin-left: auto; margin-right: auto; }
.note-block { max-width: 720px; margin: 18px auto 0; }

/* Hero */
.hero { padding: clamp(52px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.hero-inner, .split {
  width: var(--container); margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  gap: clamp(32px, 4.5vw, 56px); align-items: center;
}
.hero-copy h1, .page-hero h1, .sub-hero h1 {
  margin: 0; width: auto; max-width: 100%; height: auto;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.28; letter-spacing: 0;
  /* 大きい和文見出しの字形が上端で切れないように余裕を確保 */
  padding-block: 0.08em; overflow: visible;
}
.hero-copy, .hero-visual { min-width: 0; }
.lead, .section-heading p, .split-copy p, .page-hero p, .sub-hero p, .form-shell p { color: var(--muted); }
.lead { max-width: 640px; font-size: 1.06rem; }
.eyebrow {
  margin: 0 0 10px; color: var(--accent); font-family: "Kosugi Maru", sans-serif;
  font-size: 0.84rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 900; box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.button.primary { background: var(--accent); color: var(--white); }
.button.secondary { background: var(--white); color: var(--ink); border: 1px solid rgba(74, 61, 51, 0.12); }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 30px 0 0; list-style: none; }
.hero-facts li {
  min-width: 148px; padding: 14px 18px; border: 1px solid rgba(74, 61, 51, 0.1);
  border-radius: 18px; background: var(--white);
}
.hero-facts span { display: block; color: var(--muted); font-size: 0.76rem; }

/* Hero photo composition */
.photo-stack { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; }
.photo-main, .photo-two, .photo-panel img, .food-card img {
  border: 6px solid var(--white); box-shadow: var(--shadow); object-fit: cover;
}
.photo-main { width: 100%; aspect-ratio: 4 / 5; border-radius: 28px; grid-row: span 2; }
.photo-two { width: 100%; aspect-ratio: 1 / 1; border-radius: 22px; }
.photo-caption {
  grid-column: 2; margin: 0; padding: 10px 16px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-soft);
  font-family: "Kosugi Maru", sans-serif; font-weight: 700; font-size: 0.86rem;
  color: var(--accent-dark); text-align: center;
}

.quick-links {
  width: var(--container); margin: 0 auto var(--section-gap); display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px);
}
.quick-links.in-section { margin: 0 auto; }
.quick-links a, .feature-card, .food-card, .season-card, .news-card, .instagram-card, .cta-card, .form-card, .job-card, .value-card, .visit-flow article {
  border: 1px solid rgba(74, 61, 51, 0.08); border-radius: var(--card-radius); background: var(--white); box-shadow: var(--shadow-soft);
}
.quick-links a { min-height: 120px; padding: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.quick-links a:hover, .quick-links a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-links span { display: inline-block; margin-bottom: 6px; color: var(--accent); font-size: 0.8rem; font-weight: 900; }
.quick-links strong { display: block; line-height: 1.45; }

.section-heading { max-width: 720px; margin: 0 auto var(--section-gap); text-align: center; }
.section-heading h2, .split-copy h2, .cta-card h3, .form-shell h2 {
  margin: 0 0 16px; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.24; letter-spacing: 0;
}
.feature-grid, .food-grid, .season-grid, .class-grid, .insta-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}
.feature-grid, .food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .food-card, .season-card, .news-card, .instagram-card, .job-card, .value-card { padding: 26px; }
.feature-card h3, .food-card h3, .season-card h3, .news-row h2 { margin-top: 0; line-height: 1.4; }
.feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; font-size: 1.1rem;
}
.section-green, .section-peach, .section-cream { position: relative; width: 100%; max-width: none; box-sizing: border-box; }
.section.section-green:not(.split),
.section.section-peach:not(.split) { width: 100%; max-width: none; }
.section-green { padding: var(--section-y) 0; background: var(--green-soft); }
.section-peach { padding: var(--section-y) 0; background: var(--sand); }
.section-green > .section-heading,
.section-green > .concept-statement,
.section-green > .class-grid,
.section-green > .center-cta,
.section-peach > .section-heading,
.section-peach > .food-grid,
.section-peach > .center-cta {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.section-green.split, .split.section-green, .section-peach.split, .split.section-peach {
  width: var(--container); margin-left: auto; margin-right: auto;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  padding: clamp(36px, 5vw, 60px); border-radius: 32px; background: var(--white);
}
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 900; }
.text-link::after { content: "→"; }

.concept-statement { max-width: 760px; margin: 0 auto; text-align: center; }
.concept-statement .eyebrow { text-align: center; }

.photo-panel img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 420px;
  object-fit: cover; border-radius: 28px;
}
.food-card img { width: 100%; aspect-ratio: 1.25 / 1; border-radius: 20px; margin-bottom: 16px; }

.season-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.season-card h3 { font-size: 1.5rem; color: var(--accent); }
.season-card ul, .support-list { padding: 0; margin: 0; list-style: none; }
.season-card li { position: relative; padding-left: 1.2em; margin: 8px 0; }
.season-card li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft);
}
.support-list { display: grid; gap: 12px; margin-top: 22px; }
.support-list div { padding: 16px 18px; border-radius: 16px; background: var(--sand); }
.support-list strong, .support-list span { display: block; }
.support-list span { color: var(--muted); }
.cta-card { padding: 32px; }

.overview-table { max-width: 880px; margin: 0 auto; border-radius: 26px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-soft); }
.overview-table div { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid rgba(74, 61, 51, 0.08); }
.overview-table div:last-child { border-bottom: 0; }
.overview-table dt, .overview-table dd { margin: 0; padding: 16px 20px; }
.overview-table dt { background: var(--green-soft); font-weight: 900; }

.page-hero, .sub-hero { padding: clamp(52px, 6vw, 76px) 0 clamp(44px, 5vw, 64px); }
.page-hero-inner, .sub-hero-inner { width: var(--container); margin: 0 auto; max-width: 860px; }
.visit-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.visit-flow article { padding: 26px; }
.visit-flow span {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sand); color: var(--accent-dark); font-weight: 900;
}
.form-shell {
  width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: 32px; align-items: start; padding: 32px; border-radius: 32px; background: var(--white); box-shadow: var(--shadow-soft);
}
.contact-box { display: grid; gap: 10px; margin-top: 22px; }
.contact-box a, .contact-line { display: inline-flex; width: fit-content; padding: 10px 14px; border-radius: 999px; background: var(--green-soft); color: var(--ink); font-weight: 900; }
.soft-form { display: grid; gap: 16px; }
.soft-form label { display: grid; gap: 8px; font-weight: 900; }
input, select, textarea {
  width: 100%; border: 1px solid rgba(74, 61, 51, 0.16); border-radius: 14px; padding: 13px 14px;
  background: var(--cream-2); color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }
.news-list { display: grid; gap: 16px; }
.news-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; padding: 24px; }
.tag { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 0.78rem; font-weight: 900; }

.floating-cta { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 8px; }
.floating-cta a {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-weight: 900; box-shadow: var(--shadow);
}
.site-footer { margin-top: 42px; padding: 48px 0 32px; background: var(--ink); color: var(--cream); }
.footer-grid { width: var(--container); margin: 0 auto 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { color: var(--white); font-size: 1.2rem; font-weight: 900; }
.footer-links { display: grid; gap: 8px; font-weight: 700; }
.footer-links a:hover { color: var(--accent-soft); }
.site-footer small { display: block; width: var(--container); margin: 0 auto; color: rgba(251, 246, 236, 0.6); }

/* Class cards (組紹介) */
.class-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.class-card {
  display: grid; justify-items: center; gap: 4px; padding: 20px 12px 16px;
  border: 1px solid rgba(74, 61, 51, 0.08); border-radius: var(--card-radius);
  background: var(--white); box-shadow: var(--shadow-soft); text-align: center;
}
.class-card img { width: 64px; height: 64px; object-fit: contain; }
.class-card strong { font-size: 1rem; }
.class-card span { color: var(--muted); font-size: 0.8rem; }

/* Goals (保育目標) */
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); max-width: 880px; margin: 0 auto; }
.goal-card {
  display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 14px;
  padding: 22px 24px; border: 1px solid rgba(74, 61, 51, 0.08); border-radius: var(--card-radius);
  background: var(--white); box-shadow: var(--shadow-soft); font-weight: 700;
}
.goal-card i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-style: normal; font-weight: 900;
}

/* Policy list (保育方針) */
.policy-list { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; }
.policy-list li {
  position: relative; padding: 14px 18px 14px 2.6em; border-radius: 16px; background: var(--white);
  border: 1px solid rgba(74, 61, 51, 0.08);
}
.policy-list li::before {
  content: "●"; position: absolute; left: 1em; top: 14px; color: var(--accent); font-size: 0.8em; line-height: 2.2;
}

/* Age blocks (年齢別の保育) */
.age-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.age-card { padding: 26px; border: 1px solid rgba(74, 61, 51, 0.08); border-radius: var(--card-radius); background: var(--white); box-shadow: var(--shadow-soft); }
.age-card .age-label {
  display: inline-flex; padding: 4px 14px; border-radius: 999px;
  background: var(--sand); color: var(--accent-dark); font-weight: 900; font-size: 0.86rem;
}
.age-card h3 { margin: 12px 0 8px; line-height: 1.4; }
.age-card p { margin: 0; color: var(--muted); }

/* Lessons (特別指導科目) */
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.lesson-card { padding: 26px; border: 1px solid rgba(74, 61, 51, 0.08); border-radius: var(--card-radius); background: var(--white); box-shadow: var(--shadow-soft); }
.lesson-card h3 { margin: 10px 0 8px; line-height: 1.4; }
.lesson-card .age-note { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 6px; }
.lesson-card p { margin: 0; color: var(--muted); }
.tag.tag-out { background: var(--accent-soft); color: var(--accent-dark); }

/* Facility (施設紹介) */
.facility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); max-width: 880px; margin: 0 auto; }
.facility-card { padding: 26px; border: 1px solid rgba(74, 61, 51, 0.08); border-radius: var(--card-radius); background: var(--white); box-shadow: var(--shadow-soft); }
.facility-card h3 { margin: 0 0 10px; color: var(--accent); }
.facility-card ul { margin: 0; padding: 0; list-style: none; }
.facility-card li { position: relative; padding-left: 1.2em; margin: 6px 0; }
.facility-card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--sand-deep); }

/* Requirements (入所要件) */
.req-list { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; counter-reset: req; display: grid; gap: 10px; }
.req-list li {
  counter-increment: req; position: relative; padding: 14px 18px 14px 3.2em;
  border-radius: 16px; background: var(--white); border: 1px solid rgba(74, 61, 51, 0.08);
}
.req-list li::before {
  content: counter(req); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-weight: 900; font-size: 0.9rem;
}

.note { color: var(--muted); font-size: 0.86rem; }
.center-cta { text-align: center; margin-top: var(--section-gap); }

/* Instagram feed */
.insta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.insta-card {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--card-radius);
  overflow: hidden; box-shadow: var(--shadow-soft); background: var(--sand);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.insta-card figure { margin: 0; height: 100%; }
.insta-card:hover, .insta-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.insta-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.insta-card:hover img { transform: scale(1.05); }
.insta-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 34px 14px 12px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, transparent, rgba(40, 30, 22, 0.66));
  color: var(--white); font-size: 0.82rem; font-weight: 700; line-height: 1.4;
}
.insta-card figcaption svg { flex: none; width: 16px; height: 16px; }
.insta-follow {
  display: inline-flex; align-items: center; gap: 10px;
}
.insta-follow svg { width: 20px; height: 20px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* ヘッダーの折りたたみは site.css のモバイル用ヘッダーと同じ 900px 以下に合わせる */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 10px 22px; padding: 12px 0;
  }
  .brand { order: 1; }
  .nav-toggle { order: 2; }
  .nav-left { order: 3; }
  .nav-right { order: 4; }
  .global-nav {
    display: none; flex-direction: column; align-items: stretch; flex-basis: 100%;
    gap: 4px; padding: 12px 4px 4px;
  }
  .global-nav.is-open { display: flex; }
  .nav-item {
    grid-template-columns: 48px 1fr; justify-items: start; align-items: center;
    column-gap: 12px; padding: 10px 8px; border-radius: 14px; text-align: left;
  }
  .nav-item:hover, .nav-item:focus-visible { background: var(--green-soft); }
  .nav-item img { width: 40px; height: 40px; }
  .nav-item strong, .nav-item span { grid-column: 2; }
}

@media (max-width: 980px) {
  .hero-inner, .split, .section-green.split, .section-peach.split, .form-shell, .visit-flow { grid-template-columns: 1fr; }
  .quick-links, .feature-grid, .food-grid, .season-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-table div { grid-template-columns: 1fr; }
  .photo-stack { grid-template-columns: 1.3fr 1fr; }
  .class-grid { grid-template-columns: repeat(3, 1fr); }
  .age-grid, .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --container: min(calc(100% - 28px), 1120px); }
  .brand-logo { width: 100px; }
  .hero { padding-top: clamp(40px, 7vw, 56px); }
  .hero-copy h1, .page-hero h1, .sub-hero h1 { line-height: 1.32; }
  .section, .section-green, .section-peach { padding: 48px 0; }
  .section-green.split, .section-peach.split { padding: 32px 20px; }
  .quick-links, .feature-grid, .food-grid, .season-grid { grid-template-columns: 1fr; }
  .photo-stack { grid-template-columns: 1fr; }
  .photo-main { aspect-ratio: 4 / 3; grid-row: auto; }
  .photo-caption { grid-column: 1; }
  .footer-grid { flex-direction: column; }
  .floating-cta { left: 14px; right: 14px; grid-template-columns: repeat(3, 1fr); }
  .floating-cta a { width: auto; height: 50px; border-radius: 999px; }
  .news-row { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .age-grid, .lesson-grid, .goal-grid, .facility-grid { grid-template-columns: 1fr; }
  .goal-card { grid-template-columns: 40px 1fr; padding: 18px 20px; }
}
