/*
Theme Name: Kindergarten Smile - たかおかこども園
Theme URI: https://takaokakodomoen.example.com
Author: Custom Theme
Description: たかおかこども園 公式サイト テーマ。あたたかい雰囲気のパステルカラーで、保育園向けに最適化。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kindergarten-smile
*/

/* =============================================
   CSS VARIABLES (たかおかこども園パレット)
============================================= */
:root {
  --color-main:     #BAE8F5;   /* スカイブルー（メイン） */
  --color-main-dk:  #7FCFE4;
  --color-main-lt:  #E3F5FB;
  --color-sub:      #FFD98A;   /* イエロー（サブ） */
  --color-sub-dk:   #F0B94A;
  --color-sub-lt:   #FFF1CC;
  --color-accent:   #F7A4B9;   /* ピンク（アクセント） */
  --color-accent-lt:#FDE0E7;
  --color-bg:       #FFFCF5;   /* ほんのり暖かいクリーム背景 */
  --color-bg-alt:   #F2F9FC;
  --color-white:    #FFFFFF;
  --color-text:     #334A5C;
  --color-text-lt:  #7A8A9A;
  --color-border:   #D4E8F0;
  --color-cta:      #55BFD5;   /* CTAボタン用ターコイズ */
  --color-cta-dk:   #3DA5BC;

  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow:       0 4px 20px rgba(51,74,92,0.08);
  --shadow-hover: 0 10px 36px rgba(51,74,92,0.15);

  --font-main: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --fs-xs:   13px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-2xl:  36px;
  --fs-hero: clamp(28px, 4vw, 56px);

  --header-h:    80px;
  --header-h-sp: 64px;
}

/* =============================================
   RESET
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-main-dk); text-decoration: none; transition: all 0.2s; }
a:hover { opacity: 0.85; }

/* 電話リンク: SPのみタップコール可、PC/タブレットではクリック不可・通常テキスト表示
   （.sp-overlay__item は SP専用のCTAボタンなので除外） */
a[href^="tel:"]:not(.sp-overlay__item) {
  color: inherit;
  text-decoration: none;
  cursor: text;
}
a[href^="tel:"]:not(.sp-overlay__item):hover { opacity: 1; }
@media (min-width: 769px) {
  a[href^="tel:"]:not(.sp-overlay__item) {
    pointer-events: none;
  }
}
ul, ol { list-style: none; }
button { font-family: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 820px;
}

/* =============================================
   共通ボタン
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.4;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(85,191,213,0.4);
}
.btn-primary:hover {
  background: var(--color-cta-dk);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(85,191,213,0.5);
  opacity: 1;
}
.btn-outline {
  background: var(--color-white);
  color: var(--color-main-dk);
  border: 2px solid var(--color-main);
}
.btn-outline:hover {
  background: var(--color-main);
  color: var(--color-white);
  opacity: 1;
}

/* =============================================
   セクション共通
============================================= */
.section {
  padding: 80px 24px;
  position: relative;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  color: var(--color-main-dk);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.section-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 12px;
}
.section-lead {
  color: var(--color-text-lt);
  font-size: var(--fs-sm);
  line-height: 2;
}

/* 見出しの横に配置する装飾イラスト */
.heading-illust {
  display: inline-block;
  vertical-align: middle;
  height: 56px;
  width: auto;
  margin-left: 14px;
  margin-top: -6px;
  pointer-events: none;
  animation: heading-float 3s ease-in-out infinite;
  will-change: transform;
}
.intro__title-main .heading-illust {
  height: 48px;
  margin-left: 12px;
  margin-top: -4px;
  animation-duration: 2.8s;
}

/* 複数イラストが同じ動きで同期しないように、見出しレベル別に遅延を散らす */
h1 .heading-illust { animation-delay: -0.4s; }
h2 .heading-illust { animation-delay: -1.1s; animation-duration: 3.2s; }
h2 + h2 .heading-illust,
.section + .section h2 .heading-illust { animation-delay: -1.9s; }

/* ふわふわ浮くアニメーション */
@keyframes heading-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@media (max-width: 768px) {
  .heading-illust { height: 40px; margin-left: 10px; margin-top: -3px; }
  .intro__title-main .heading-illust { height: 36px; margin-left: 8px; }
}
@media (max-width: 480px) {
  .heading-illust { height: 32px; margin-left: 8px; }
  .intro__title-main .heading-illust { height: 30px; }
}

/* モーション軽減設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  .heading-illust { animation: none; }
}

/* =============================================
   HEADER
============================================= */
.site-header {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(61,46,31,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  min-height: var(--header-h);
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  width: auto;
  height: 52px;
}
.site-nav .nav-list {
  display: flex;
  gap: 6px;
  align-items: center;
}
.site-nav .nav-list li a {
  display: block;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.2s;
}
.site-nav .nav-list li a:hover {
  background: var(--color-main-lt);
  color: var(--color-main-dk);
  opacity: 1;
}
.site-nav .nav-contact-btn {
  background: var(--color-cta);
  color: var(--color-white) !important;
  padding: 10px 22px !important;
  box-shadow: 0 3px 10px rgba(85,191,213,0.4);
}
.site-nav .nav-contact-btn:hover {
  background: var(--color-cta-dk) !important;
  color: var(--color-white) !important;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* モバイルドロワー */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--color-white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav__inner {
  padding: 64px 32px 32px;
}
.mobile-nav__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text);
}
.mobile-nav__list li {
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav__list li a {
  display: block;
  padding: 16px 4px;
  font-weight: 600;
  color: var(--color-text);
}
body.menu-open { overflow: hidden; }

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}
.hero__picture {
  display: block;
  width: 100%;
}
.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero__illust {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.hero__illust--1 {
  top: 10%;
  left: 4%;
  width: clamp(60px, 10vw, 140px);
}
.hero__illust--2 {
  bottom: 8%;
  right: 5%;
  width: clamp(60px, 10vw, 160px);
  animation-delay: 2s;
}

/* =============================================
   INTRO（園の紹介）
============================================= */
.intro {
  padding: 96px 24px;
  background: var(--color-bg);
  position: relative;
}
.intro__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro__tag {
  color: var(--color-main-dk);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.intro__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.intro__title-main {
  color: var(--color-text);
}
.intro__title-sub {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-main-dk);
}
.intro__lead {
  font-size: var(--fs-base);
  line-height: 2.1;
  color: var(--color-text);
  margin-bottom: 32px;
}
.intro__image {
  position: relative;
}
.intro__image > img:first-child {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.intro__deco {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: clamp(60px, 10vw, 110px);
  animation: float 6s ease-in-out infinite;
}
.intro__image-deco {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: clamp(90px, 14vw, 160px);
  height: auto;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
@media (max-width: 768px) {
  .intro__image-deco {
    right: -8px;
    bottom: -8px;
    width: clamp(70px, 22vw, 110px);
  }
}

/* =============================================
   TOPICS（お知らせ）
============================================= */
.topics {
  padding: 80px 24px;
}
.parallax-bg {
  position: relative;
  overflow: hidden;
}
.parallax-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -50%;
  bottom: -50%;
  background-image: url("images/illustration/takaoka_top_illust_haikei.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .parallax-bg::before { transform: none; }
}
.parallax-bg > .container { position: relative; z-index: 2; }
.topics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 48px;
}
.topics__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.topics__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.topics__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  color: var(--color-text);
  text-decoration: none;
}
.topics__link:hover { opacity: 1; }
.topics__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.topics__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.topics__cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  background: #F0EDE8;
  color: #5B5145;
  line-height: 1.6;
}
.topics__cat.cat-event { background: var(--color-cta); color: #FFF; }
.topics__cat.cat-info  { background: var(--color-sub);  color: #2E5643; }
.topics__card-title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}
.topics__thumb {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-main-lt);
  aspect-ratio: 16/9;
}
.topics__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topics__nophoto {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(247, 164, 185, 0.35) 0, rgba(247, 164, 185, 0) 28%),
    radial-gradient(circle at 82% 82%, rgba(255, 217, 138, 0.45) 0, rgba(255, 217, 138, 0) 30%),
    linear-gradient(135deg, var(--color-main-lt) 0%, var(--color-sub-lt) 100%);
}
.topics__nophoto-illust {
  width: 42%;
  max-width: 120px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}
.topics__nophoto-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-main-dk);
}
.topics__excerpt {
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--color-text-lt);
}
.topics__more {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 24px;
  font-size: var(--fs-xs);
}
.topics__card--placeholder { opacity: 0.85; }
.topics__card--placeholder .topics__card-title,
.topics__card--placeholder .topics__excerpt {
  color: var(--color-text-lt);
}
.topics__more-wrap {
  text-align: center;
}

/* =============================================
   MAP
============================================= */
.map-section {
  padding: 80px 24px;
  background: var(--color-bg-alt);
}
.map-section__embed {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-section__embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--color-main);
  color: var(--color-text);
  padding: 56px 24px 0;
  position: relative;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(51,74,92,0.25);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo {
  display: inline-block;
  background: var(--color-white);
  padding: 12px 16px;
  border-radius: var(--radius);
  width: fit-content;
}
.footer-logo img {
  height: 48px;
  width: auto;
}
.footer-address {
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: 2;
  color: var(--color-text);
}
.footer-address a {
  color: var(--color-text);
  text-decoration: underline;
}
.footer-nav ul {
  columns: 2;
  gap: 16px;
}
.footer-nav ul li {
  margin-bottom: 12px;
  break-inside: avoid;
}
.footer-nav ul li a {
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  position: relative;
  padding-left: 14px;
}
.footer-nav ul li a::before {
  content: "▸";
  position: absolute;
  left: 0;
}
.footer-nav ul li a:hover { opacity: 0.75; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: var(--fs-xs);
  color: rgba(51,74,92,0.85);
}

/* =============================================
   SP 固定オーバーレイ
============================================= */
.sp-overlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--color-white);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sp-overlay.is-visible {
  transform: translateY(0);
}
.sp-overlay__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  color: var(--color-white);
  text-decoration: none;
  min-height: 56px;
}
.sp-overlay__item--mail { background: var(--color-sub-dk); }
.sp-overlay__item--tel  { background: var(--color-cta); }
.sp-overlay__icon {
  font-size: 22px;
  line-height: 1;
}
.sp-overlay__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sp-overlay__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
}
.sp-overlay__sub {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.2;
}

/* =============================================
   スクロールトップ
============================================= */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  border: 1px solid var(--color-white);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 80;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--color-main-dk);
  transform: translateY(-4px);
}

/* =============================================
   ページヘッダー（下層共通）
============================================= */
.page-header {
  background: linear-gradient(135deg, var(--color-main-lt), var(--color-accent-lt));
  padding: 64px 24px 56px;
  text-align: center;
}
.page-header h1 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-text);
}
.breadcrumb {
  font-size: var(--fs-xs);
  color: var(--color-text-lt);
  margin-top: 12px;
}
.breadcrumb a { color: var(--color-main-dk); }

/* =============================================
   SINGLE / ARCHIVE
============================================= */
.single-post-wrap,
.archive-wrap {
  max-width: 840px;
  margin: 64px auto;
  padding: 0 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
  color: var(--color-text-lt);
}
.entry-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 28px;
}
.entry-content {
  font-size: var(--fs-base);
  line-height: 2;
}
.entry-content h2 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--color-main);
}
.entry-content p { margin-bottom: 20px; }

.post-list {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-list-item {
  display: flex;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  transition: background 0.2s;
}
.post-list-item:last-child { border-bottom: none; }
.post-list-item:hover { background: var(--color-main-lt); }
.post-list-item .post-date {
  font-size: var(--fs-xs);
  color: var(--color-text-lt);
  white-space: nowrap;
  min-width: 90px;
}
.post-list-item .post-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  flex: 1;
  line-height: 1.7;
}

/* ページネーション */
.pagination {
  margin: 40px auto 0;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  margin: 0 4px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
}
.pagination .page-numbers.current {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
}

/* =============================================
   装飾イラスト（散りばめ）
============================================= */
.intro,
.topics,
.map-section { position: relative; overflow: hidden; }

.deco-illust {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: float 6s ease-in-out infinite;
}
.intro__inner,
.topics .container,
.map-section .container { position: relative; z-index: 2; }

/* INTRO */
.deco-illust--intro-1 { top: 40px;    left: 2%;    width: clamp(60px, 8vw, 110px); animation-delay: 0s; }
.deco-illust--intro-2 { bottom: 30px; right: 3%;   width: clamp(70px, 9vw, 130px); animation-delay: 2s; }

/* TOPICS */
.deco-illust--topics-1 { top: 32px;    right: 6%;  width: clamp(60px, 8vw, 110px); animation-delay: 0.8s; }
.deco-illust--topics-2 { top: 40%;     left: 2%;   width: clamp(60px, 7vw, 100px); animation-delay: 1.8s; }
.deco-illust--topics-3 { bottom: 40px; right: 4%;  width: clamp(80px, 10vw, 150px); animation-delay: 2.6s; }

/* MAP */
.deco-illust--map-1 { top: 24px;    left: 4%;  width: clamp(60px, 8vw, 110px); animation-delay: 1.2s; }
.deco-illust--map-2 { top: 32px;    right: 4%; width: clamp(60px, 8vw, 120px); animation-delay: 2.4s; }

/* =============================================
   アニメーション
============================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE — TABLET (〜1024px)
============================================= */
@media (max-width: 1024px) {
  .site-nav .nav-list li a { padding: 8px 12px; font-size: var(--fs-xs); }
  .intro__inner { gap: 40px; }
  .topics__grid { gap: 24px; }
}

/* =============================================
   RESPONSIVE — SP (〜768px)
============================================= */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 12px 20px; min-height: var(--header-h-sp); }
  .site-logo img { height: 40px; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; }

  .section,
  .intro,
  .topics { padding: 56px 20px; }

  /* SP: MAPは画面幅いっぱいまで広げる */
  .map-section { padding: 56px 0 48px; }
  .map-section .container { padding: 0; }
  .map-section .section-header { padding: 0 20px; margin-bottom: 32px; }
  .map-section__embed { border-radius: 0; box-shadow: none; }
  .map-section__embed iframe { height: 360px; }

  .section-title,
  .intro__title { font-size: var(--fs-lg); }
  .intro__title-sub { font-size: var(--fs-base); }

  .intro__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro__image { order: -1; }

  .topics__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }
  .footer-nav ul { columns: 2; }

  .hero__illust--1 { top: 6%; left: 3%; }
  .hero__illust--2 { bottom: 5%; right: 3%; }

  /* SP: 装飾イラストはサイズ小さめ＆一部非表示で読みやすく */
  .deco-illust { width: 56px !important; opacity: 0.9; }
  .deco-illust--intro-1  { top: 16px; left: 2%; }
  .deco-illust--intro-2  { bottom: 16px; right: 2%; width: 64px !important; }
  .deco-illust--topics-1 { top: 12px; right: 2%; }
  .deco-illust--topics-2 { display: none; }
  .deco-illust--topics-3 { bottom: 20px; right: 2%; width: 70px !important; }
  .deco-illust--map-1    { top: 10px; left: 2%; width: 52px !important; }
  .deco-illust--map-2    { top: 14px; right: 2%; width: 52px !important; }

  .sp-overlay { display: flex; }
  body { padding-bottom: 56px; }

  .scroll-top { right: 12px; bottom: 72px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .section-title,
  .intro__title { font-size: var(--fs-md); }
  .btn { padding: 12px 24px; font-size: var(--fs-xs); }
}

/* =============================================
   ページヘッダー（下層ページ共通）
============================================= */
.page-header {
  padding: clamp(36px, 5vw, 60px) 0 clamp(8px, 1.2vw, 14px);
  background: linear-gradient(180deg, var(--color-main-lt) 0%, var(--color-bg) 100%);
  text-align: center;
}
/* ページヘッダー直後のセクションは上余白を詰める */
.page-header + .section,
.page-header + section.section {
  padding-top: clamp(20px, 3vw, 28px);
}
.page-header__tag {
  font-family: "Georgia", serif;
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  color: var(--color-main-dk);
  margin-bottom: 8px;
}
.page-header__title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 20px;
}
.page-header__lead {
  font-size: var(--fs-base);
  color: var(--color-text-lt);
  line-height: 2;
  margin-bottom: 24px;
}
.breadcrumb {
  font-size: var(--fs-sm);
  color: var(--color-text-lt);
}
.breadcrumb a { color: var(--color-main-dk); }
.breadcrumb__sep { margin: 0 8px; color: var(--color-border); }

@media (max-width: 768px) {
  .page-header { padding: 32px 20px 8px; }
  .page-header__lead br { display: none; }
  .page-header + .section,
  .page-header + section.section { padding-top: 20px; }
}

/* =============================================
   園の紹介（施設概要）
============================================= */
.syoukai-hero {
  padding: clamp(20px, 3vw, 28px) 0 0;
}
.syoukai-hero__fig {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.syoukai-hero__fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.info-dl {
  max-width: 840px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.info-dl__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
}
.info-dl__row:last-child { border-bottom: none; }
.info-dl__row dt {
  font-weight: 700;
  color: var(--color-main-dk);
  line-height: 1.7;
}
.info-dl__row dd {
  line-height: 1.9;
  color: var(--color-text);
}
.info-dl__row dd address {
  font-style: normal;
}
.info-dl__list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.info-dl__list li {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-sub-lt);
  color: var(--color-sub-dk);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.info-dl__note {
  max-width: 840px;
  margin: 16px auto 0;
  text-align: right;
  font-size: var(--fs-sm);
  color: var(--color-text-lt);
}

@media (max-width: 768px) {
  .info-dl__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 20px;
  }
  .info-dl__row dt {
    font-size: var(--fs-sm);
    color: var(--color-main-dk);
  }
}

.syoukai-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.syoukai-gallery__grid li {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.syoukai-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.syoukai-gallery__grid li:hover img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .syoukai-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .syoukai-gallery__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* =============================================
   園での生活
============================================= */
.seikatsu__grid {
  display: grid;
  grid-template-columns: repeat(2, 340px);
  gap: 28px;
  justify-content: center;
}
.seikatsu__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.seikatsu__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.seikatsu__fig {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.seikatsu__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.seikatsu__card:hover .seikatsu__fig img {
  transform: scale(1.08);
}
.seikatsu__body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seikatsu__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-main-dk);
  line-height: 1.5;
}
.seikatsu__desc {
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--color-text-lt);
}

@media (max-width: 1024px) {
  .seikatsu__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .seikatsu__grid { grid-template-columns: 1fr; gap: 20px; }
}

.seikatsu-cta__inner {
  text-align: center;
  max-width: 720px;
}
.seikatsu-cta__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}
.seikatsu-cta__lead {
  font-size: var(--fs-base);
  color: var(--color-text-lt);
  margin-bottom: 28px;
  line-height: 2;
}

/* =============================================
   １日の活動内容（園での生活ページ）
============================================= */
.schedule .section-header { margin-bottom: 36px; }

/* 保育時間カード */
.schedule-hours {
  max-width: 1080px;
  margin: 0 auto 56px;
}
.schedule-hours__heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.schedule-hours__heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-main);
}
.schedule-hours__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.schedule-hours__item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  border-top: 6px solid var(--color-main);
}
.schedule-hours__item--short    { border-top-color: var(--color-main); }
.schedule-hours__item--standard { border-top-color: var(--color-sub-dk); }
.schedule-hours__item--type1    { border-top-color: var(--color-accent); }
.schedule-hours__cat {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 16px;
}
.schedule-hours__times {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.schedule-hours__times > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.schedule-hours__times dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-main-dk);
  letter-spacing: 0.04em;
}
.schedule-hours__item--standard .schedule-hours__times dt { color: var(--color-sub-dk); }
.schedule-hours__item--type1    .schedule-hours__times dt { color: #d97090; }
.schedule-hours__times dd {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

/* 共通フロー（登園〜・降園） */
.schedule-flow {
  max-width: 720px;
  margin: 0 auto 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}
.schedule-flow__heading {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-main-dk);
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--color-border);
}
.schedule-flow--down .schedule-flow__heading { color: var(--color-cta-dk); }
.schedule-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.schedule-flow__step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
}
.schedule-flow__step:not(:last-child) > .schedule-flow__time::after {
  content: "▼";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 4px);
  color: var(--color-main);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.schedule-flow--down .schedule-flow__step:not(:last-child) > .schedule-flow__time::after { color: var(--color-cta); }
.schedule-flow__time {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 14px;
  background: var(--color-main-lt);
  color: var(--color-main-dk);
  font-weight: 700;
  font-size: var(--fs-xs);
  border-radius: 999px;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}
.schedule-flow--down .schedule-flow__time {
  background: rgba(85, 191, 213, 0.15);
  color: var(--color-cta-dk);
}
.schedule-flow__step--branch .schedule-flow__time { display: none; }
.schedule-flow__step--branch .schedule-flow__body {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px 16px;
  background: var(--color-sub-lt);
  border-radius: var(--radius);
  color: var(--color-text);
}
.schedule-flow__title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}
.schedule-flow__sub {
  font-size: var(--fs-sm);
  color: var(--color-text-lt);
  margin-top: 4px;
  line-height: 1.7;
}
.schedule-flow__notes {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.schedule-flow__notes li {
  font-size: var(--fs-sm);
  color: var(--color-text-lt);
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}
.schedule-flow__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-main);
}

/* 年齢別フロー（2列） */
.schedule-groups {
  max-width: 1080px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.schedule-group {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 28px 32px;
  border-top: 8px solid var(--color-main);
}
.schedule-group--older   { border-top-color: var(--color-main); }
.schedule-group--younger { border-top-color: var(--color-accent); }
.schedule-group__heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: var(--color-main-lt);
  border-radius: var(--radius);
}
.schedule-group--younger .schedule-group__heading {
  background: var(--color-accent-lt);
}
.schedule-group--younger .schedule-flow__time {
  background: var(--color-accent-lt);
  color: #c25577;
}
.schedule-group--younger .schedule-flow__step:not(:last-child) > .schedule-flow__time::after {
  color: var(--color-accent);
}
.schedule-group--younger .schedule-flow__notes li::before {
  background: var(--color-accent);
}

/* 注意書き */
.schedule-notice {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 24px;
  background: var(--color-sub-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.schedule-notice__icon {
  font-size: 28px;
  line-height: 1;
  color: var(--color-sub-dk);
  flex-shrink: 0;
}
.schedule-notice__text {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}
.schedule-notice__text strong {
  color: var(--color-cta-dk);
  font-size: var(--fs-lg);
  margin: 0 2px;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .schedule-hours__list   { grid-template-columns: 1fr; gap: 16px; }
  .schedule-groups        { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .schedule-flow          { padding: 22px 16px; }
  .schedule-flow__step    { grid-template-columns: 108px 1fr; gap: 10px; }
  .schedule-flow__time    { padding: 4px 12px; }
  .schedule-group         { padding: 22px 16px 26px; }
  .schedule-group__heading { font-size: var(--fs-md); }
  .schedule-notice        { padding: 14px 18px; flex-direction: column; gap: 6px; }
  .schedule-notice__text  { font-size: var(--fs-base); }
  .schedule-notice__text strong { font-size: var(--fs-md); }
}
@media (max-width: 480px) {
  .schedule-hours__item   { padding: 20px; }
  .schedule-hours__times > div { padding: 8px 12px; }
}

/* =============================================
   年間行事
============================================= */
.gyoji-hero {
  padding: clamp(20px, 3vw, 28px) 0 0 !important;
}
.gyoji-hero__fig {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 1120px;
  margin: 0 auto;
}
.gyoji-hero__fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
}

.gyoji__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gyoji__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 24px 24px 100px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.gyoji__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.gyoji__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 80px;
  background: var(--color-main-lt);
}
.gyoji__card--summer::before { background: var(--color-sub-lt); }
.gyoji__card--autumn::before { background: var(--color-accent-lt); }
.gyoji__card--winter::before { background: var(--color-main-lt); opacity: 0.5; }

.gyoji__month {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translate(-50%, -50%);
  font-family: "Georgia", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-main-dk);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.gyoji__card--summer .gyoji__month { color: var(--color-sub-dk); }
.gyoji__card--autumn .gyoji__month { color: #B89232; }
.gyoji__card--winter .gyoji__month { color: var(--color-main-dk); }
.gyoji__month-unit {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-main);
}

.gyoji__month-label {
  font-size: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.gyoji__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gyoji__items li {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.gyoji__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-main);
}

@media (max-width: 1024px) {
  .gyoji__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gyoji__grid { grid-template-columns: 1fr; gap: 14px; }
  .gyoji__card { padding: 20px 20px 20px 84px; }
  .gyoji__card::before { width: 64px; }
  .gyoji__month { left: 32px; font-size: 28px; }
  .gyoji__items li { font-size: var(--fs-sm); }
}

/* 定例行事 */
.gyoji-regular__list {
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gyoji-regular__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.8;
}
.gyoji-regular__row:last-child { border-bottom: none; }
.gyoji-regular__row dt {
  font-weight: 700;
  color: var(--color-main-dk);
}
.gyoji-regular__row dd {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .gyoji-regular__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 20px;
  }
  .gyoji-regular__row dt { font-size: var(--fs-sm); }
}

/* =============================================
   入園・お問い合わせ（FAQ）
============================================= */
.contact-hero {
  padding: clamp(20px, 3vw, 28px) 0 0 !important;
}
.contact-hero__fig {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 960px;
  margin: 0 auto;
}
.contact-hero__fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.faq-group__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-main-dk);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}
.faq-group__title-mark {
  color: var(--color-cta);
  font-weight: 700;
}

.faq-group__fig {
  max-width: 720px;
  margin: 0 auto 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
}
.faq-group__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item__q,
.faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 28px;
  line-height: 1.9;
}
.faq-item__q {
  background: var(--color-main-lt);
  font-weight: 700;
  color: var(--color-text);
}
.faq-item__a {
  color: var(--color-text);
  font-weight: 400;
}
.faq-item__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: "Georgia", serif;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}
.faq-item__mark--q { background: var(--color-main); }
.faq-item__mark--a { background: var(--color-sub-dk); }
.faq-item__text { flex: 1; padding-top: 4px; }

@media (max-width: 768px) {
  .faq-group__title { font-size: 20px; margin-bottom: 20px; }
  .faq-group__fig { margin-bottom: 24px; }
  .faq-item__q,
  .faq-item__a { padding: 16px 18px; gap: 12px; font-size: var(--fs-sm); }
  .faq-item__mark { width: 28px; height: 28px; font-size: var(--fs-sm); }
  .faq-list { gap: 12px; }
}

/* お電話での問い合わせ誘導 */
.contact-direct__inner { text-align: center; max-width: 720px; }
.contact-direct__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.contact-direct__lead {
  font-size: var(--fs-base);
  color: var(--color-text-lt);
  margin-bottom: 24px;
}
.contact-direct__tel {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.contact-direct__icon { font-size: 0.8em; line-height: 1; color: var(--color-main-dk); }
.contact-direct__num { color: var(--color-text); }
.contact-direct__note {
  font-size: var(--fs-sm);
  color: var(--color-text-lt);
  line-height: 1.8;
}

/* =============================================
   トピックス（一覧 / カテゴリーナビ / 詳細）
============================================= */

/* カテゴリーナビ */
.topics-nav {
  padding: clamp(12px, 2vw, 20px) 0 clamp(4px, 1vw, 10px);
}
.topics-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.topics-nav__btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #E6DFD4;
  background: #FFF;
  color: #5B5145;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.topics-nav__btn:hover {
  background: var(--color-bg);
  border-color: var(--color-main);
}
.topics-nav__btn.is-active {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #FFF;
}
.topics-nav__btn.cat-event.is-active { background: var(--color-cta); border-color: var(--color-cta); color: #FFF; }
.topics-nav__btn.cat-info.is-active  { background: var(--color-sub);  border-color: var(--color-sub);  color: #2E5643; }

/* カテゴリーラベル（共通） */
.topics-list__cat,
.single-post__cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  background: #F0EDE8;
  color: #5B5145;
  line-height: 1.6;
}
.topics-list__cat.cat-event,
.single-post__cat.cat-event { background: var(--color-cta); color: #FFF; }
.topics-list__cat.cat-info,
.single-post__cat.cat-info  { background: var(--color-sub); color: #2E5643; }

/* 一覧 */
.topics-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.topics-list__item {
  background: #FFF;
  border: 1px solid #F0EDE8;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(90, 70, 50, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.topics-list__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(90, 70, 50, .08);
}
.topics-list__link {
  display: block;
  padding: clamp(20px, 2.4vw, 26px);
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.topics-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.topics-list__date {
  color: #8A7F6F;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.topics-list__title {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.55;
  color: #3D352C;
  margin-bottom: 10px;
}
.topics-list__excerpt {
  color: #6E6456;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.topics-list__more {
  display: inline-block;
  color: var(--color-main);
  font-size: 13px;
  font-weight: 700;
}
.topics-list__empty {
  text-align: center;
  color: #8A7F6F;
  padding: 40px 0;
}

/* 詳細 */
.single-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 8px 0 6px;
}
.single-post__date {
  color: #8A7F6F;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}
.single-post__title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
}
.single-post__thumb {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(24px, 3vw, 36px);
  background: #F7F2EA;
}
.single-post__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.single-post__body {
  color: #4D4438;
  font-size: 16px;
  line-height: 2;
}
.single-post__body > * + * { margin-top: 1.2em; }
.single-post__body h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  margin-top: 2em;
  padding-left: 14px;
  border-left: 4px solid var(--color-main);
}
.single-post__body h3 {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  margin-top: 1.6em;
  color: #3D352C;
}
.single-post__body p {
  margin-top: 1em;
}
.single-post__body ul,
.single-post__body ol {
  padding-left: 1.4em;
  margin-top: 1em;
}
.single-post__body ul { list-style: disc; }
.single-post__body ol { list-style: decimal; }
.single-post__body li + li { margin-top: .3em; }
.single-post__body a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-post__body blockquote {
  margin-top: 1.4em;
  padding: 16px 20px;
  background: var(--color-bg);
  border-left: 4px solid var(--color-sub);
  border-radius: 4px;
  color: #5B5145;
}
.single-post__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 記事ナビゲーション */
.single-post__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid #F0EDE8;
}
.single-post__nav-item a {
  display: block;
  color: #5B5145;
  text-decoration: none;
}
.single-post__nav-item a.btn-primary {
  color: var(--color-white);
}
.single-post__nav-item a.btn-primary:hover {
  color: var(--color-white);
}
.single-post__nav-item a:hover .single-post__nav-title { color: var(--color-main); }
.single-post__nav-item--next { text-align: right; }
.single-post__nav-label {
  display: block;
  font-size: 12px;
  color: #8A7F6F;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.single-post__nav-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  transition: color .18s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(32px, 4vw, 48px);
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #E6DFD4;
  background: #FFF;
  color: #5B5145;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pagination .page-numbers:hover {
  background: var(--color-bg);
  border-color: var(--color-main);
}
.pagination .page-numbers.current {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #FFF;
}
.pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

@media (max-width: 640px) {
  .topics-list__grid { grid-template-columns: 1fr; }
  .single-post__nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .single-post__nav-item--next { text-align: center; }
  .single-post__nav-item--list { order: 3; }
}

/* =============================================
   prefers-reduced-motion
============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__illust,
  .intro__deco { animation: none; }
}
