/*
Theme Name: Sakura Kindergarten
Theme URI: https://example.com/
Author: Codex
Description: 幼稚園・保育園向けの納品用WordPressテンプレート。トップページ、固定ページ、お知らせ一覧/詳細を備えています。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sakura-kindergarten
*/

:root {
  --pink: #f27f9b;
  --pink-soft: #ffe8ed;
  --yellow: #fff5cf;
  --cream: #fffaf0;
  --brown: #4c3528;
  --text: #5b4a40;
  --green: #83c96b;
  --blue: #63bde5;
  --orange: #ffc157;
  --line: #f4dce2;
  --shadow: 0 18px 45px rgba(120, 78, 58, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  background: #fff;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 1000;
  background: #fff; padding: 8px 14px; border-radius: 999px;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 220, 226, .7);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 86px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brown); font-size: 25px; letter-spacing: .04em; }
.brand-mark {
  position: relative; width: 37px; height: 37px; border-radius: 50%;
  background: #ffe48f; border: 5px solid #ffa7bb;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: #fff;
}
.brand-mark::after {
  content: ""; position: absolute; left: 10px; top: 13px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--pink); box-shadow: 11px 0 0 var(--pink);
}
.site-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; color: var(--brown); font-size: 14px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  border-radius: 999px; background: var(--pink); transform: scaleX(0); transition: .2s;
}
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.contact-button, .pill-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--pink); color: #fff; font-weight: 800; box-shadow: 0 10px 24px rgba(242,127,155,.24);
}
.contact-button::before { content: "✉"; font-size: 16px; }
.menu-toggle { display: none; border: 0; background: var(--pink-soft); color: var(--brown); border-radius: 999px; width: 44px; height: 44px; font-size: 22px; }

.hero {
  position: relative; overflow: hidden; padding: 64px 0 42px;
  background: url("assets/images/wave-yellow.png") center top / cover no-repeat;
}
.hero-inner { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 54px; }
.hero-kicker { color: var(--pink); font-weight: 800; font-size: 20px; letter-spacing: .08em; margin: 0 0 18px; }
.hero h1 { color: var(--brown); font-size: clamp(36px, 4.1vw, 52px); line-height: 1.55; margin: 0 0 22px; letter-spacing: .05em; }
.hero-copy { font-weight: 700; color: var(--brown); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.pill-button.secondary { background: #fff; color: var(--pink); border: 1px solid #ffc7d3; box-shadow: none; }
.pill-button span { font-size: 19px; line-height: 1; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 18px 35px rgba(120, 78, 58, .12)); }

.news-band {
  background: #fff8dc;
  padding: 10px 0 72px;
}
.news-strip {
  width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 24px 34px;
  display: grid; grid-template-columns: 150px 1fr auto; gap: 26px; align-items: center;
  background: #fff; border: 1px solid rgba(255, 255, 255, .88); border-radius: 18px;
  box-shadow: 0 18px 48px rgba(120, 78, 58, .14);
}
.news-title { display: flex; align-items: center; gap: 12px; color: var(--brown); font-weight: 800; }
.news-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-size: 25px; }
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.news-list li { display: grid; grid-template-columns: 100px 1fr; gap: 18px; font-size: 14px; }
.news-date { color: #8e7d73; }
.text-link { color: var(--brown); font-weight: 800; white-space: nowrap; }
.text-link::after { content: "›"; color: var(--pink); font-size: 24px; margin-left: 14px; vertical-align: -2px; }

.section { padding: 76px 0; position: relative; }
.section-yellow { background: linear-gradient(180deg, #fff7d8 0%, #fffdf7 100%); }
.section-pink { background: url("assets/images/wave-pink.png") center top / cover no-repeat; padding-top: 90px; }
.section-heading { text-align: center; margin-bottom: 38px; }
.section-heading .flower { color: var(--pink); font-size: 30px; line-height: 1; }
.section-heading h2 { margin: 4px 0 8px; color: var(--brown); font-size: clamp(28px, 3vw, 38px); letter-spacing: .08em; }
.section-heading p { margin: 0; font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature-card {
  min-height: 286px; padding: 36px 26px 30px; text-align: center; background: #fff; border-radius: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center;
}
.feature-icon { font-size: 48px; line-height: 1; margin-bottom: 20px; }
.feature-card h3, .life-card h3 { color: var(--brown); margin: 0 0 14px; font-size: 19px; }
.feature-card p { margin: 0 0 24px; font-size: 14px; font-weight: 600; }
.mini-button { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 142px; height: 42px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-weight: 800; font-size: 14px; }
.mini-button::after { content: "›"; font-size: 22px; margin-left: 12px; }

.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.life-card { text-align: center; }
.life-card img { width: 100%; aspect-ratio: 18 / 9.5; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.life-card p { margin: 0; font-size: 14px; font-weight: 600; }
.center-action { text-align: center; margin-top: 36px; }
.visit-box {
  display: grid; grid-template-columns: 1.1fr 1.6fr .8fr; gap: 24px; align-items: center;
  background: rgba(255,255,255,.94); border-radius: 22px; box-shadow: var(--shadow); padding: 34px 44px;
}
.visit-box h2 { color: var(--brown); margin: 0 0 10px; font-size: 28px; }
.visit-box p { margin: 0; font-weight: 700; }
.visit-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.visit-action {
  min-height: 110px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center;
  text-align: center; color: var(--brown); font-weight: 800; background: #fff;
}
.visit-action .icon { display: block; font-size: 34px; color: var(--pink); margin-bottom: 5px; }
.visit-illust { justify-self: end; max-width: 180px; }

.site-footer { background: var(--yellow); color: var(--brown); }
.footer-main { display: grid; grid-template-columns: 1.25fr repeat(5, 1fr); gap: 28px; padding: 62px 0 42px; }
.footer-address { font-size: 14px; font-weight: 600; margin: 18px 0; }
.footer-col h3 { font-size: 16px; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; }
.footer-col li::before { content: "・"; color: var(--pink); }
.footer-bottom { background: var(--pink); color: #fff; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; }
.pagetop {
  position: fixed; right: 28px; bottom: 28px; z-index: 40; width: 72px; height: 72px;
  border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 12px; box-shadow: 0 12px 26px rgba(242,127,155,.32);
}
.pagetop::before { content: "↑"; display: block; font-size: 26px; line-height: 1; }

.page-hero { padding: 86px 0 70px; background: url("assets/images/wave-yellow.png") center center / cover no-repeat; text-align: center; }
.page-hero h1 { color: var(--brown); font-size: clamp(34px, 4vw, 48px); margin: 0 0 10px; letter-spacing: .08em; }
.breadcrumb { font-size: 13px; color: #8d776d; margin-top: 14px; }
.content-section { padding: 70px 0; }
.content-panel { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: clamp(26px, 4vw, 48px); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.lead { color: var(--brown); font-size: 24px; font-weight: 800; line-height: 1.7; margin-top: 0; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 16px 10px; text-align: left; vertical-align: top; }
.info-table th { width: 170px; color: var(--brown); }
.step-list, .check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step-list li, .check-list li { background: var(--cream); border-radius: 14px; padding: 18px 20px; font-weight: 700; }
.step-list strong { color: var(--pink); margin-right: 8px; }

.archive-list { display: grid; gap: 16px; }
.archive-item { display: grid; grid-template-columns: 140px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.archive-item time { color: #8d776d; }
.archive-item h2 { margin: 0 0 8px; font-size: 20px; color: var(--brown); }
.post-content { font-size: 17px; }
.post-content h2, .post-content h3 { color: var(--brown); line-height: 1.5; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; }
.wp-block-button__link { border-radius: 999px; background: var(--pink); }

@media (max-width: 980px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; left: 20px; right: 20px; top: 78px; display: none;
    background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px;
  }
  .site-nav.is-open { display: grid; }
  .site-nav ul { display: grid; gap: 14px; }
  .site-nav .contact-button { width: 100%; margin-top: 8px; }
  .hero-inner, .visit-box, .two-column { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .hero-visual { order: -1; }
  .feature-grid, .life-grid { grid-template-columns: repeat(2, 1fr); }
  .news-strip { grid-template-columns: 1fr; gap: 14px; }
  .visit-actions { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .brand { font-size: 20px; }
  .hero h1 { font-size: 32px; }
  .hero-actions { display: grid; }
  .feature-grid, .life-grid, .footer-main { grid-template-columns: 1fr; }
  .news-list li, .archive-item { grid-template-columns: 1fr; gap: 2px; }
  .visit-box { padding: 26px 20px; }
  .footer-bottom .container { display: grid; }
  .pagetop { width: 58px; height: 58px; right: 16px; bottom: 16px; }
}
