/*
Theme Name: おぶちこども園 カスタムテーマ
Theme URI: https://example.com/obuchi-kodomoen
Author: Antigravity
Author URI: https://example.com
Description: おぶちこども園のウェブサイト用カスタムテーマ。カスタマイザーからすべてのセクションが動的に編集可能です。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obuchi-kodomoen
*/

/* ==========================================================================
   Design System & Root Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #e95413;       /* Main Orange */
  --color-secondary: #517c38;     /* Green accent */
  --color-accent: #f0932b;        /* Soft Amber Orange */
  --color-bg-base: #fcfbfa;       /* Warm Soft White */
  --color-text-main: #3a3330;     /* Cozy Dark Brown-Gray */
  --color-text-muted: #6b635f;    /* Muted Brown-Gray */
  --color-bg-gradient-start: #fff9f0;
  --color-bg-gradient-end: #f5ece1;

  /* Fonts */
  --font-main: 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic, "Yu Gothic Medium", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-heading: 'Quicksand', var(--font-main);

  /* Layout */
  --header-height: 105px; /* ロゴの1.5倍化に合わせてヘッダー高さを拡張 */
  --max-width: 1200px;
}

/* ==========================================================================
   Resets & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

main {
  overflow: hidden; /* ヒーロー全幅画像やカルーセルなどの負マージンはみ出し要素による右側の余白（横スクロールバグ）を完全に防止 */
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Background Decorations
   ========================================================================== */
.bg-decor-top-left {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-bg-gradient-start) 0%, rgba(252,251,250,0) 70%);
  border-radius: 50%;
  z-index: -2;
  pointer-events: none;
}

.bg-decor-top-right {
  position: absolute;
  top: 0;
  right: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #f4faee 0%, rgba(252,251,250,0) 80%);
  border-radius: 50%;
  z-index: -2;
  pointer-events: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.quick-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header floating state on scroll */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.7); /* 追従時は白背景を70%透過して美しく透かす */
  box-shadow: 0 4px 30px rgba(81, 124, 56, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.header-logo {
  height: 84px; /* ロゴサイズを1.5倍に拡大 (56px * 1.5 = 84px) */
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.header-logo:hover {
  transform: scale(1.02);
}
.header-logo img {
  height: 100%;
  width: auto;
}

/* Navigation */
.header-nav {
  display: block;
}
.header-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}
.header-nav a.nav-item,
.header-nav ul li a {
  font-size: 15px;
  font-weight: 700;
  color: #e27b58; /* 園名ロゴと調和する温かいオレンジ */
  padding: 8px 4px;
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
}
.header-nav a.nav-item:hover,
.header-nav a.nav-item.active,
.header-nav li.current-menu-item a,
.header-nav li.current-menu-item a:hover {
  color: #c95c39; /* ホバー・アクティブ時はやや濃いオレンジ */
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 110;
}
.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 10px; }
.mobile-menu-toggle span:nth-child(3) { top: 20px; }

/* Mobile Menu Opened state */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: #fff;
  z-index: 105;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  padding: 100px 40px 40px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open {
  right: 0;
}
.mobile-nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav-item,
.mobile-nav-menu ul li a {
  font-size: 16px;
  font-weight: 700;
  color: #e27b58;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f0ede9;
  transition: color 0.3s ease;
  text-decoration: none;
}
.mobile-nav-item.active,
.mobile-nav-menu li.current-menu-item a {
  color: #c95c39;
  border-bottom-color: #e27b58;
}

/* ==========================================================================
   Hero Section Component
   ========================================================================== */
.hero-section {
  width: 100%; /* ウィンドウ幅100%を保証 */
  padding-top: var(--header-height); /* ヘッダーのすぐ下から開始し、隙間を排除 */
  padding-bottom: 40px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch; /* 子コンテナを縦いっぱいに広げる */
}


.hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0; /* 中央寄せマージンを解除し、左端から開始させて右側を確実にウィンドウ右端へ吸着 */
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 2.5fr; /* グリッド比率を調整して右側の割合いを拡大 */
  gap: 0;
  align-items: stretch; /* 縦いっぱいに広げて上端吸着を可能にする */
}

/* Hero Left Content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 520px;
  /* 左側の余白を最大幅1200pxの中央寄せロゴ位置に合わせる */
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  padding-right: 24px;
  padding-top: 105px; /* さらに20px文字全体を下にずらす調整 */
  position: relative;
  z-index: 5; /* 画像の上に文字が重なるよう前面に配置 */
}

.hero-text-area {
  margin-bottom: 30px;
}

.hero-title {
  font-size: 46px; /* 文字サイズを1.1倍に拡大 (42px * 1.1 = 46.2px) */
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text-main);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  white-space: nowrap; /* 明示的な<br>以外の箇所で勝手に自動改行されるのを防止 */
}

.dots-decor {
  width: 100px;
  margin-bottom: 25px;
}

.hero-lead {
  font-size: 18px; /* 文字サイズを1.2倍に拡大 (15px * 1.2 = 18px) */
  font-weight: 500;
  line-height: 1.85;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap; /* リード文も勝手に改行されてレイアウトが崩れるのを防止 */
}

/* Small Classroom Image (Organic Pot/Bean Shape) */
.hero-sub-image {
  width: 627px; /* 0.95倍に縮小してテキストとのかぶりを緩和 (660px * 0.95 = 627px) */
  height: 328px; /* 0.95倍に縮小 (345px * 0.95 = 327.75px -> 328px) */
  position: absolute;
  left: max(-60px, calc((100vw - var(--max-width)) / 2 - 60px));
  bottom: 95px; /* 5px下へずらす (100px - 5px = 95px) */
  max-width: none;
  filter: drop-shadow(0 10px 30px rgba(81, 124, 56, 0.15));
  z-index: 6;
}
.sub-image-mask {
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* 添付デザイン案の有機的な二重うねりのあるそら豆型マスクを適用 */
  clip-path: url(#sub-organic-mask);
}
.sub-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-sub-image:hover img {
  transform: scale(1.05);
}

/* Hero Right Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start; /* 画像を上揃えにしてヘッダー直下にピッタリ接させる */
  width: calc(100% + 12vw + 40px); /* 左シフト70px分、幅を拡張して右端吸着を維持 */
  margin-left: calc(-12vw + 30px); /* 50px右に戻す調整 */
  transform: translateX(-70px); /* 70pxだけ左にずらす */
  /* clip-pathをかけると要素自体の影が消えるため、親要素にドロップシャドウをかける */
  filter: drop-shadow(0 15px 35px rgba(58, 51, 48, 0.15)); 
  z-index: 1;
}

/* Big Image Mask (Organic leaf/wave shape using SVG mask) */
.main-image-mask {
  width: 100%; /* 画像エリアを100%まで拡大 */
  aspect-ratio: 1.45 / 1; /* アスペクト比をさらに横長にして、画像の縦幅（高さ）をさらに50px削減 */
  overflow: hidden;
  /* SVGで定義したより複雑な有機적S字波型クリップパスを適用 */
  clip-path: url(#hero-organic-mask); 
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.hero-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-main-img.active {
  opacity: 1;
  z-index: 2;
}
.main-image-mask:hover .hero-main-img {
  transform: scale(1.04);
}

/* Circular Floating Button */
.hero-circle-btn {
  position: absolute;
  bottom: 4%;
  right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px)); /* 画面端ではなく1200pxのサイト幅の右端に綺麗に整列させる */
  width: 160px; /* 少し大きめにして視認性を向上 */
  height: 160px;
  background-color: rgba(226, 123, 88, 0.8); /* カンプ通りオレンジを80%透過 (rgba(226, 123, 88, 0.8)) */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(226, 123, 88, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 10;
}
.circle-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}
.btn-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
.btn-arrow {
  display: inline-block;
  margin-top: 2px;
  transition: transform 0.3s ease;
}

/* Floating button hover animations */
.hero-circle-btn:hover {
  background-color: rgba(226, 123, 88, 0.95); /* ホバー時は透過をやや濃くして反応を示す */
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 30px rgba(226, 123, 88, 0.35);
}
.hero-circle-btn:hover .btn-icon {
  transform: rotate(-10deg) scale(1.1);
}
.hero-circle-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Layout (1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 90px; /* タブレット版もヘッダー高さを拡張 */
  }
  .header-logo {
    height: 72px; /* タブレット版のロゴ高さも拡大 */
  }
  .hero-container {
    gap: 30px;
  }
  .hero-title {
    font-size: 34px;
    white-space: normal; /* タブレット以下では自動折り返しを許可して画面はみ出しを防止 */
  }
  .hero-lead {
    white-space: normal; /* リード文も自動折り返しを許可 */
  }
  .hero-sub-image {
    width: 266px;
    height: 152px;
  }
  .hero-circle-btn {
    width: 135px;
    height: 135px;
    right: 24px; /* タブレット版もはみ出さずに枠内右端に配置 */
  }
  .btn-text {
    font-size: 11px;
  }
}

/* Mobile & Small Tablet (768px) */
@media (max-width: 768px) {
  .site-header {
    height: 85px; /* モバイル版も1.5倍に合わせてヘッダー高さを拡張 */
  }
  .site-header.scrolled {
    height: 75px;
  }
  .header-logo {
    height: 60px; /* モバイル版ロゴも1.5倍に拡大 (40px * 1.5 = 60px) */
  }
  .header-nav, .header-contact {
    display: none; /* Hide desktop nav and contact */
  }
  .mobile-menu-toggle {
    display: block; /* Show hamburger toggle */
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-container {
    grid-template-columns: 1fr; /* Single column */
    gap: 40px;
    text-align: center;
    padding: 0 0 0 24px; /* 右側のパディングを0にして画像が右端へピッタリ接するようにする */
  }
  .hero-content {
    min-height: auto;
    align-items: center;
    padding-left: 0;
    padding-right: 24px; /* テキスト領域の右側は余白を維持 */
  }
  .dots-decor {
    margin: 0 auto 20px;
  }
  .hero-sub-image {
    position: relative; /* absolute配置をリセットし通常の縦並びに戻す */
    left: auto;
    bottom: auto;
    margin: 30px auto 0;
    width: 90%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1.9 / 1; /* 横長比率を維持 */
  }
  .hero-visual {
    justify-content: flex-end; /* 右端に吸着させる */
    max-width: none; /* 最大幅の制限を解除して画面幅一杯にする */
    margin: 0;
    width: 100%;
    margin-left: 0; /* PC版のネガティブマージンをリセット */
  }
  .main-image-mask {
    width: 100%;
  }
  .hero-circle-btn {
    bottom: -30px;
    right: 50%;
    transform: translateX(50%);
    width: 140px;
    height: 140px;
  }
  .hero-circle-btn:hover {
    transform: translateX(50%) translateY(-5px) scale(1.02);
  }
  .leaf-top-left {
    width: 100px;
    top: 80px;
    left: 10px;
  }
  .leaf-mid-left {
    display: none;
  }
}

/* Extra Small Phones (480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-lead {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ==========================================================================
   What We Value Section (私たちが大切にすること - 2カラムレイアウト)
   ========================================================================== */
.value-section {
  background-color: var(--color-bg-base);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.value-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

/* Left Column: Title & Lead */
.value-left {
  width: 28%;
  position: relative;
}

.value-main-title {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.4;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-main-title span.title-decor {
  display: inline-flex;
  vertical-align: middle;
  transform: rotate(-15deg);
}

.value-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Right Column: 3 rounded items */
/* Right Column: 3 horizontal card boxes */
.value-right {
  width: 72%;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.value-card-box {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px 20px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(81, 124, 56, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.value-card-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(81, 124, 56, 0.07);
}

.value-circle-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(58, 51, 48, 0.03);
  transition: transform 0.4s ease;
}

.value-card-box:hover .value-circle-icon {
  transform: scale(1.06) rotate(5deg);
}

/* Watercolor gradients (pink, green, blue) */
.bg-soft-pink {
  background: radial-gradient(circle, rgba(232, 141, 162, 0.15) 0%, rgba(232, 141, 162, 0.8) 100%);
}
.bg-soft-green {
  background: radial-gradient(circle, rgba(155, 195, 160, 0.15) 0%, rgba(155, 195, 160, 0.8) 100%);
}
.bg-soft-blue {
  background: radial-gradient(circle, rgba(123, 174, 200, 0.15) 0%, rgba(123, 174, 200, 0.8) 100%);
}

.value-card-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.value-card-text p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Category Cards Section (3枚の大きな横長カード)
   ========================================================================== */
.category-cards-section {
  background-color: var(--color-bg-base);
  padding: 0 0 100px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  display: flex;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(58, 51, 48, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(81, 124, 56, 0.08);
}

.category-card.cat-green {
  background-color: #9cb583;
}
.category-card.cat-orange {
  background-color: #df9b5a;
}
.category-card.cat-darkgreen {
  background-color: #76966f;
}

.category-content {
  padding: 30px 24px;
  flex: 1; /* 左右半分半分の50%:50%に分割 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #fff; /* 文字色を白に統一 */
}

.category-content p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9); /* 説明文も白抜きテキストに */
}

.category-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cat-green .category-btn {
  background-color: #fff;
  color: #9cb583; /* 矢印を背景色と同じ色に */
}
.cat-orange .category-btn {
  background-color: #fff;
  color: #df9b5a;
}
.cat-darkgreen .category-btn {
  background-color: #fff;
  color: #76966f;
}

.category-card:hover .category-btn {
  transform: scale(1.1);
}

.category-img {
  flex: 1; /* 左右半分半分の50%:50%に分割 */
  height: 100%;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: none; /* 斜めクリップを解除してカスタマイザーによる通常画像差し替えに対応 */
  transition: transform 0.6s ease;
}

.category-card:hover .category-img img {
  transform: scale(1.05);
}

/* ==========================================================================
   Gallery Section (施設紹介ギャラリー)
   ========================================================================== */
.gallery-section {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg-base);
  position: relative;
  /* 左右のはみ出しカットをセクション全体の枠外マージンで十分に吸収（傾斜による白抜け防止） */
  margin-left: -150px;
  width: calc(100% + 300px);
}

.gallery-inner {
  display: flex;
  width: calc(14 * 26vw); /* 幅を明確な計算値にして画像読込前の幅0によるフリーズバグを完全防止 */
  animation: loop-slide-right-to-left 28s linear infinite; /* 右から左へ流れるループ */
}


.gallery-item {
  position: relative;
  height: 420px;
  width: 26vw; /* PC時：画面幅の約1/4サイズ */
  flex-shrink: 0; /* カルーセル内で縮まないように固定 */
  overflow: hidden;
  transform: skewX(-12deg); /* 右上がりの斜めスリット */
  margin: 0 -2px; /* 重なり境界を埋める */
  z-index: 1;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: -30%; /* 傾斜によるはみ出しのために大きく余裕を持たせる */
  width: 160%; /* 幅を160%に拡大 */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: skewX(12deg) scale(1.45); /* 傾斜の相殺と、四隅を完全に埋める大きめのスケールアップ */
}

/* Infinite loop scrolling from right to left */
@keyframes loop-slide-right-to-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Info & Admission Section (お知らせ＆入園案内)
   ========================================================================== */
.info-section {
  background-color: #fff;
  padding: 100px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 24px;
}

/* News Card */
.news-card {
  background-color: var(--color-bg-base);
  border-radius: 28px;
  padding: 45px 35px;
  box-shadow: 0 10px 30px rgba(58, 51, 48, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0ede9;
  padding-bottom: 15px;
}

.news-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-title .icon svg {
  color: var(--color-secondary);
  vertical-align: middle;
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.news-list li {
  display: flex;
  align-items: center;
  font-size: 14.5px;
  border-bottom: 1px dashed #f0ede9;
  padding-bottom: 12px;
}

.news-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #e27b58;
  margin-right: 18px;
  white-space: nowrap;
}

.news-text {
  color: var(--color-text-main);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
}

.badge {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 10px;
  letter-spacing: 0.05em;
}

.badge-green {
  background-color: var(--color-secondary);
  color: #fff;
}

.news-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.more-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.more-link:hover {
  color: var(--color-secondary);
}

.more-link .arrow {
  transition: transform 0.3s ease;
}

.more-link:hover .arrow {
  transform: translateX(4px);
}

/* Admission Card */
.admission-card {
  background-color: #f7f1e6; /* Soft Beige */
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(240, 147, 43, 0.05);
}

.admission-content {
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admission-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admission-lead {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.admission-lead-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.admission-lead {
  margin-bottom: 0;
  line-height: 1.8;
}

.admission-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  opacity: 0.9;
}

.admission-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.admission-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}

/* Updated green theme button to match design mockup */
.btn-green {
  background-color: var(--color-secondary);
  color: #fff;
  box-shadow: 0 6px 15px rgba(81, 124, 56, 0.2);
  border: none;
}

.btn-green:hover {
  background-color: #3b5c28;
  transform: translateY(-2px);
}

.btn-border-green {
  background-color: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-border-green:hover {
  background-color: #f4f7f2;
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.admission-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.admission-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Sub-Navigation Cards (下部リンクカード)
   ========================================================================== */
.quick-nav-section {
  background-color: var(--color-bg-base);
  padding: 100px 0 100px; /* イラスト表示のために以前広げていた余白を調整 */
  position: relative;
  overflow: hidden; /* イラストの左右はみ出しをカット */
}

/* Hills Background Illustration Container */
.hills-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 69px; /* イラスト画像の高さの3倍（69px）に固定 */
  background-image: url('assets/hills-decor.png');
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 3072px 69px; /* 画像のサイズを3倍（幅3072px、高さ69px）に拡大してリピート */
  z-index: 1;
  pointer-events: none; /* クリック干渉防止 */
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2; /* イラストの手前にカードを表示 */
}

.quick-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(58, 51, 48, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
  text-decoration: none;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(81, 124, 56, 0.08);
}

.quick-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* 水彩風丸型 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(58, 51, 48, 0.03);
}

.quick-card:hover .quick-icon {
  transform: scale(1.05) rotate(5deg);
}

/* Watercolor gradients for icons */
.bg-water-peach {
  background: radial-gradient(circle, rgba(226, 123, 88, 0.15) 0%, rgba(226, 123, 88, 0.8) 100%);
}
.bg-water-olive {
  background: radial-gradient(circle, rgba(81, 124, 56, 0.15) 0%, rgba(81, 124, 56, 0.8) 100%);
}
.bg-water-green {
  background: radial-gradient(circle, rgba(132, 169, 140, 0.15) 0%, rgba(132, 169, 140, 0.8) 100%);
}
.bg-water-orange {
  background: radial-gradient(circle, rgba(232, 122, 93, 0.15) 0%, rgba(232, 122, 93, 0.8) 100%);
}

/* Make all SVGs inside watercolor circles white per mockup */
.quick-icon svg {
  stroke: #fff !important;
}
.quick-icon svg circle,
.quick-icon svg path,
.quick-icon svg rect,
.quick-icon svg polyline,
.quick-icon svg line {
  stroke: #fff !important;
}

.quick-title {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.quick-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.quick-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f7f5f2;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.quick-card:hover .quick-arrow {
  background-color: var(--color-secondary);
  color: #fff;
}

/* ==========================================================================
   Site Footer (フッター)
   ========================================================================== */
.site-footer {
  background-color: #809665; /* Olive Green (#809665) */
  color: #fff;
  padding: 80px 0 0;
  font-size: 14.5px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.8fr 1.1fr; /* 中央のアクセス情報を横並びにするため広げる */
  gap: 0;
  padding-bottom: 60px;
}

/* Brand Area */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 50px;
  border-right: 1px solid rgba(255, 255, 255, 0.25); /* カラム間縦線 */
}

.footer-logo {
  display: inline-block;
  height: 60px;
}

.footer-logo-img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1); /* 白抜き版として描画 */
}

.footer-desc {
  line-height: 1.8;
  opacity: 0.95;
  font-weight: 500;
}

/* Heading */
.footer-heading {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

/* Access Area (Horizontal Layout) */
.footer-access {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 0 50px;
  border-right: 1px solid rgba(255, 255, 255, 0.25); /* カラム間縦線 */
}

.footer-access-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-address {
  line-height: 1.6;
  opacity: 0.95;
}

.footer-tel {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-size: 13.5px;
}

.btn-map {
  background-color: #fff;
  color: #809665; /* フッター色と合わせる */
  align-self: flex-start;
}

.btn-map:hover {
  background-color: #fff9f5;
  transform: translateY(-2px);
}

.footer-img {
  width: 240px;
  height: 155px;
  border-radius: 20px; /* カンプの大きめの角丸 */
  overflow: hidden;
  flex-shrink: 0;
}

.footer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Area */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-left: 50px;
}

.footer-contact-tel {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
}

.footer-contact-tel .label {
  font-size: 14px;
  font-weight: 700;
}

.footer-contact-tel .number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-time {
  line-height: 1.6;
  opacity: 0.95;
}

.btn-mail {
  background-color: #fff;
  color: #809665; /* フッター色と合わせる */
  align-self: flex-start;
}

.btn-mail:hover {
  background-color: #fff9f5;
  transform: translateY(-2px);
}

/* Bottom Area */
.footer-bottom {
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* フッター底面との境界線 */
}

/* ==========================================================================
   Responsive overrides for new sections
   ========================================================================== */
@media (max-width: 1024px) {
  .value-container {
    flex-direction: column;
    gap: 40px;
  }
  .value-left, .value-right {
    width: 100%;
  }
  .value-right {
    flex-direction: column;
    gap: 20px;
  }
  
  .gallery-inner {
    display: flex;
    width: calc(14 * 48vw); /* 幅を計算値に固定してアニメーション停止バグを防止 */
    margin-left: 0;
    animation: loop-slide-right-to-left 22s linear infinite;
  }
  .gallery-item {
    transform: skewX(-8deg);
    margin: 0 -2px;
    width: 48vw; /* タブレット：画面に約2枚強見える */
    height: 300px;
  }
  .gallery-image {
    width: 150%;
    left: -25%;
    transform: skewX(8deg) scale(1.35);
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-card {
    height: 150px;
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr; /* タブレットから縦並びにして余裕を持たせる */
    gap: 40px;
    padding-bottom: 40px;
  }
  
  .footer-brand, .footer-access, .footer-contact {
    border-right: none;
    padding: 0;
  }
  
  .footer-access {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .value-section {
    padding: 60px 0;
  }
  
  .value-container {
    flex-direction: column;
    gap: 30px;
  }
  .value-left, .value-right {
    width: 100%;
  }
  .value-right {
    flex-direction: column;
    gap: 16px;
  }
  .value-main-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .value-circle-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }
  .value-card-box {
    padding: 30px 16px;
  }
  
  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
  }
  
  .gallery-inner {
    display: flex;
    width: calc(14 * 72vw); /* 幅を計算値に固定してアニメーション停止バグを防止 */
    margin-left: 0;
    animation: loop-slide-right-to-left 16s linear infinite;
  }
  .gallery-item {
    transform: skewX(-6deg);
    margin: 0 -2px;
    width: 72vw; /* スマホ：画面に1枚強見える */
    height: 240px;
  }
  .gallery-image {
    width: 140%;
    left: -20%;
    transform: skewX(6deg) scale(1.3);
  }
  
  .info-section {
    padding: 60px 0;
  }
  
  .admission-lead-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .admission-decor {
    display: none;
  }
  
  .admission-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .news-card {
    padding: 30px 20px;
  }
  
  .admission-card {
    grid-template-columns: 1fr;
  }
  
  .admission-img-wrapper {
    height: 220px;
  }
  
  .admission-img-wrapper img {
    clip-path: none;
  }
  .category-card {
    height: auto;
    flex-direction: column;
  }
  .category-content {
    padding: 24px;
    order: 1;
  }
  .category-img {
    height: 140px;
    order: 0;
  }
  .category-img img {
    clip-path: none;
  }
  
  .quick-nav-section {
    padding: 60px 0;
  }
  
  .quick-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
  
  .footer-brand, .footer-access, .footer-contact {
    border-right: none;
    padding: 0;
  }
  
  .footer-access {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-logo {
    height: 52px;
  }
  
  .btn-map, .btn-mail {
    align-self: stretch;
  }
}

/* ==========================================================================
   Page Top Button (ページトップに戻るボタン)
   ========================================================================== */
.page-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--color-brand-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(81, 124, 56, 0.25);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  text-decoration: none;
}

.page-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-top:hover {
  background-color: #3b5f27;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(81, 124, 56, 0.35);
}

/* Responsive adjustments for mobile menu overlap prevention */
@media (max-width: 768px) {
  .page-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   Scroll Fade In Animations (スクロール連動フェードイン)
   ========================================================================== */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers for cascade animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

