/* ==========================================================================
   吹上幼稚園 サイト共通スタイル
   ========================================================================== */

:root {
  --color-green: #006532;
  --color-green-dark: #004a24;
  --color-bg: #F8F7E9;
  --color-light-green: #D6E8A5;
  --color-light-beige: #F6F6F0;
  --color-text: #000000;
  --color-white: #ffffff;
  --header-height: 84px;
  --font-main: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-white {
  background: var(--color-white);
  color: var(--color-green);
}
.btn-light-green {
  background: var(--color-light-green);
  color: var(--color-green-dark);
}
.header-cta .btn-light-green {
  background: #8EBF09;
  color: var(--color-white);
}
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-arrow::after { content: "\203A"; font-weight: 900; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1060;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-fixed {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { flex-shrink: 0; }
.logo-link img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--color-green); }

.header-cta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--color-green);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav,
.nav-overlay { display: none; }

/* ---------- Hero (TOP page) ---------- */
.hero {
  position: relative;
  margin-top: 0;
  height: 840px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slides-mobile { display: none; }
.hero-copy {
  position: absolute;
  z-index: 5;
  right: calc(6% + 150px);
  top: 110px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-bubble {
  background: var(--color-white);
  border-radius: 20px;
  padding: 22px 14px;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 10px;
  color: var(--color-green);
  writing-mode: vertical-rl;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.hero-bubble.large { font-size: 30px; padding: 28px 16px; }

.hero-mountain {
  display: block;
  width: 100%;
  height: 100px;
  position: relative;
  margin-top: -100px;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero { height: 570px; }
  .hero-slides-desktop { display: none; }
  .hero-slides-mobile { display: block; }
  .hero-copy { top: 120px; right: 35px; }
  .hero-mountain { height: 50px; margin-top: -50px; }
}

/* ---------- Sub page hero ---------- */
.page-hero {
  display: flex;
  align-items: stretch;
  margin-top: 120px;
  min-height: 320px;
}
.page-hero-text {
  width: 33.333%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6%;
}
.page-hero-text h1 {
  font-size: 35px;
  font-weight: 900;
  color: #000000;
}
.page-hero-text span {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-green);
  letter-spacing: 0.05em;
  margin-top: 10px;
}
.page-hero-photo {
  width: 66.667%;
  background-size: cover;
  background-position: center;
  border-radius: 2000px 0 0 2000px;
}
.sub-nav-pills {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.sub-nav-pills .btn { background: #8EBF09; color: #fff; }
.sub-nav-pills .btn.is-active { background: #006532; color: #fff; }

/* ---------- Section generic ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg); }
.section-green { background: #4F7D56; color: var(--color-white); }
.section-light-green { background: var(--color-light-green); }

.section-title {
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title-deco {
  display: block;
  margin: 14px auto 32px;
  width: 25px;
  height: 6px;
}
.lead-text {
  display: block;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: #006532;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .lead-text { font-size: 23px; }
}
.section-title-en {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--color-green);
  margin-bottom: 40px;
}
.section-green .section-title-en { color: #FFE550; }
.section-green .section-title { color: #ffffff; font-size: 35px; }
.section-title-dots {
  text-align: center;
  color: inherit;
  opacity: 0.5;
  letter-spacing: 0.3em;
  margin-top: 6px;
}

.scallop-divider {
  width: 100%;
  height: 76px;
  background-color: #4F7D56;
  background-image: url('../images/top/bg-nami.svg');
  background-repeat: repeat-x;
  background-position: top;
  background-size: auto 76px;
  margin-top: -1px;
}
@media (max-width: 900px) {
  .scallop-divider {
    height: 42px;
    background-size: auto 42px;
  }
}

/* ---------- Philosophy / Life cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.philosophy-card { text-align: center; }
.philosophy-card img,
.philosophy-card .ph-photo {
  border-radius: 20px;
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.philosophy-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-light-green);
  color: var(--color-green-dark);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 10px;
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-light-green);
  color: var(--color-green-dark);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---------- Feature box (image + number/heading box) ---------- */
.feature-box {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 1000px;
  margin: 0 auto 24px;
}
.feature-box img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
}
.feature-box-body {
  background: var(--color-white);
  border-radius: 0 20px 20px 0;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-box-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.feature-box-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #006532;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}
.feature-box-head h3 { font-size: 20px; font-weight: 900; color: var(--color-green); }
.feature-box-body p { font-size: 16px; }
@media (max-width: 900px) {
  .feature-box { grid-template-columns: 1fr; margin-bottom: 20px; }
  .feature-box img { aspect-ratio: 4/3; border-radius: 20px 20px 0 0; }
  .feature-box-body { border-radius: 0 0 20px 20px; padding: 24px; }
  .feature-box-head h3 br { display: none; }
}

.philosophy-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: #FFE550;
  margin-bottom: 12px;
}
.philosophy-card p { font-size: 16px; opacity: 0.92; }

.life-card {
  background: transparent;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.life-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
  transition: transform 0.35s ease;
}
.life-card:hover img { transform: scale(1.08); }
.life-card .life-card-body {
  background: var(--color-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}
.life-card h3 { font-size: 17px; font-weight: 900; color: var(--color-green); margin-bottom: 10px; }
.life-card p { font-size: 16px; padding-right: 40px; }
.life-card .circle-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  width: 46px; height: 46px;
  border-radius: 22px 0 0 0;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transition: background 0.2s ease;
}
.life-card .circle-arrow:hover { background: #8EBF09; }

/* ---------- Two column feature (admission / club) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.feature-block { text-align: center; }
.feature-block img {
  border-radius: 125px;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 550px;
  height: 250px;
  object-fit: cover;
  display: block;
}
.feature-block-photo {
  border-radius: 125px;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 550px;
  height: 250px;
  overflow: hidden;
}
.feature-block-photo img {
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.feature-block:hover .feature-block-photo img { transform: scale(1.08); }
.feature-block h3 { font-size: 35px; font-weight: 900; color: #000000; }
.feature-block span.en { display: block; font-size: 18px; font-weight: 900; color: var(--color-green); letter-spacing: 0.15em; margin-top: 8px; margin-bottom: 12px; }
.feature-block p { font-size: 16px; margin: 14px 0 20px; }

/* ---------- About section (TOP) ---------- */
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-flex img { border-radius: 20px; aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.info-table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 16px; }
.info-table th, .info-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.08); vertical-align: top; }
.info-table th { width: 110px; color: var(--color-green); font-weight: 900; white-space: nowrap; }
.info-table .note { font-weight: 400; font-size: 12px; }

/* ---------- Recruit band ---------- */
.recruit-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  border-radius: 200px;
  overflow: hidden;
  background: var(--color-white);
}
.recruit-copy { padding: 56px 72px; }
.recruit-copy span.en { display: block; font-size: 18px; font-weight: 700; color: var(--color-green); letter-spacing: 0.15em; margin-top: 8px; margin-bottom: 8px; }
.recruit-copy h3 { font-size: 35px; font-weight: 900; color: #000000; margin-bottom: 16px; }
.recruit-copy p { font-size: 16px; margin-bottom: 24px; }
.recruit-copy .btn { background: #006532; }
.recruit-flex img { height: 100%; width: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- News list ---------- */
.news-list {
  background: var(--color-white);
  border-radius: 20px;
  padding: 8px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.news-list li {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 16px;
}
.news-list li:last-child { border-bottom: none; }
.news-list time { color: var(--color-green); font-weight: 700; flex-shrink: 0; }
.news-more { text-align: center; margin-top: 28px; }

#news { padding-bottom: 160px; }
@media (max-width: 900px) {
  #news { padding-bottom: 96px; }
}

/* ---------- Footer ---------- */
.footer-mountain {
  display: block;
  width: 100%;
  height: 100px;
  margin-bottom: -1px;
}
.site-footer {
  background: #4F7D56;
  color: var(--color-white);
  padding: 72px 0 24px;
  position: relative;
}
@media (max-width: 900px) {
  .footer-mountain { height: 50px; }
  .site-footer { padding: 48px 0 24px; }
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-brand .logo-link img { height: 38px; margin-bottom: 16px; }
.footer-brand p { font-size: 16px; opacity: 0.85; margin: 4px 0; }
.footer-brand .footer-map { text-decoration: underline; font-size: 16px; }
.footer-icon { width: 18px; height: 18px; flex-shrink: 0; }
.footer-map-line,
.footer-brand .footer-phone { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 900; margin: 14px 0 6px; }
.footer-brand .footer-phone-note { font-size: 16px; opacity: 0.8; margin-bottom: 10px; }
.footer-contact-btn { gap: 10px; margin-top: 10px; }

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 16px;
}
.footer-sitemap .col-title { font-weight: 900; margin-bottom: 10px; }
.footer-sitemap li { margin-bottom: 8px; opacity: 0.9; }
.footer-sitemap li:hover { opacity: 1; text-decoration: underline; }
.footer-links-bold a { font-weight: 900; }

.footer-bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.75;
  padding-top: 20px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
  border: none;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Timeline (life.html) ---------- */
.timeline { max-width: 900px; margin: 0 auto; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 68px;
  top: 0; bottom: 70px;
  width: 2px;
  background: rgba(0,101,50,0.2);
}
.timeline-item {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-time {
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 900;
  border-radius: 999px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 2;
}
.timeline-body h3 { font-size: 28px; font-weight: 900; color: var(--color-green); margin-bottom: 8px; }
.timeline-body p + h3 { margin-top: 16px; }
.timeline-body p { font-size: 16px; margin-bottom: 6px; }
.timeline-body img { margin-top: 12px; border-radius: 16px; width: 100%; max-width: 320px; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Overview tables ---------- */
.overview-table {
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.hours-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 28px 32px;
}
.hours-card table { width: 100%; font-size: 16px; border-collapse: collapse; }
.hours-card th, .hours-card td { text-align: left; padding: 8px 0; }
.hours-card th { color: var(--color-green); font-weight: 900; width: 40%; }
.history-list {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 20px;
  padding: 12px 32px;
}
.history-list li { display: flex; gap: 24px; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.history-list li:last-child { border-bottom: none; }
.history-list .date { color: var(--color-green); font-weight: 700; flex-shrink: 0; width: 160px; }
.map-embed {
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

.evaluation-links { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- ご挨拶 (about/overview.html) ---------- */
.message-block { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; max-width: 1000px; margin: 0 auto; }
.message-block img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; }
.message-block p { font-size: 16px; margin-bottom: 14px; }
.message-block .message-name { text-align: right; font-weight: 700; margin-top: 20px; margin-bottom: 0; }

/* ---------- 主な年間行事 (life.html) ---------- */
.events-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; max-width: 1000px; margin: 0 auto; }
.events-layout .history-list { background: none; padding: 0; margin: 0 0 20px; }
.events-photos { display: flex; flex-direction: column; gap: 16px; }
.events-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; }

/* ---------- Reduction cards (about.html) ---------- */
.reduction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.reduction-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}
.reduction-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
}
.reduction-card h3 { font-size: 18px; font-weight: 900; color: var(--color-green); margin-bottom: 10px; }
.reduction-card p { font-size: 16px; text-align: left; }

.text-block { max-width: 900px; margin: 0 auto; font-size: 16px; }
.text-block + .text-block { margin-top: 20px; }
.media-text {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.media-text img { border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.media-text.reverse { grid-template-columns: 1fr 340px; }
.media-text.reverse img { order: 2; }
.media-text p { font-size: 16px; }
.media-text p + p { margin-top: 14px; }
.media-text strong { color: var(--color-green); }
.media-text h3 { font-size: 20px; font-weight: 900; color: var(--color-green); margin-bottom: 10px; }
.media-text .text-note { opacity: 0.8; }

/* Reusable text utilities */
.text-sub { font-size: 13px; font-weight: 400; opacity: 0.7; }
.sp-break { display: none; }

.icon-list { margin-top: 6px; }
.icon-list li {
  list-style: none;
  padding-left: 18px;
  background: url('../images/common/list.svg') no-repeat left 0.7em;
  background-size: 6px 6px;
  font-size: 16px;
  margin-bottom: 6px;
}
.icon-list li:last-child { margin-bottom: 0; }

.value-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.value-heading h3 { font-size: 22px; font-weight: 900; color: var(--color-green); margin-bottom: 12px; }
.value-heading p { font-size: 16px; }

.embed-block { max-width: 700px; margin: 0 auto; text-align: center; }
.btn-twitter { margin-top: 16px; background: #000; }
.video-embed { max-width: 800px; margin: 32px auto 0; border-radius: 20px; overflow: hidden; }
.video-embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--color-light-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.video-placeholder-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.video-placeholder p { font-size: 16px; color: var(--color-green); }

/* ---------- Content card (admission / faq / recruit / contact) ---------- */
.content-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: 48px 56px;
  max-width: 900px;
  margin: 0 auto;
}
.content-card + .content-card { margin-top: 40px; }
.content-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-green);
  margin: 40px 0 16px;
}
.content-card h3:first-child { margin-top: 0; }
.content-card p { font-size: 16px; margin-bottom: 10px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card .text-link { color: var(--color-green); text-decoration: underline; font-weight: 700; }
.content-card .note-red { color: #E2231A; font-weight: 700; margin-bottom: 10px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; font-size: 16px; vertical-align: middle; }
.data-table thead th { background: var(--color-light-beige); font-weight: 700; color: var(--color-text); }
.data-table thead th:nth-child(3), .data-table thead th:nth-child(4) { text-align: center; }
.data-table tbody td:nth-child(3), .data-table tbody td:nth-child(4) { text-align: center; }
.data-table tbody td:nth-child(2) { opacity: 0.7; font-size: 14px; }
.data-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.08); }
.data-table tbody tr:last-child { border-bottom: none; }

.cert-table tbody td:nth-child(1) { font-size: 16px; opacity: 1; font-weight: 900; color: var(--color-green); white-space: nowrap; }
.cert-table tbody td:nth-child(2) { font-size: 16px; opacity: 1; }
.cert-table tbody tr:nth-child(even) td { background: var(--color-light-beige); }

.calendar-table { width: 100%; border-collapse: collapse; margin-top: 16px; max-width: 700px; }
.calendar-table td { text-align: center; padding: 14px 8px; font-size: 16px; border: 1px solid rgba(0,0,0,0.1); }
.calendar-table tr:nth-child(even) td { background: var(--color-light-beige); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item {
  background: var(--color-white);
  border-radius: 20px;
  padding: 28px 36px;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-green);
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #006532;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-toggle { transform: rotate(180deg); }
.faq-answer {
  font-size: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: none;
}
.faq-item.is-open .faq-answer { display: block; }
.faq-answer table { margin-top: 12px; }

/* ---------- News row list (info/index.html) ---------- */
.news-row-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.news-row {
  background: var(--color-white);
  border-radius: 999px;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}
.news-row time { color: var(--color-green); font-weight: 700; flex-shrink: 0; width: 110px; }
.news-row .news-row-title { flex: 1; }
.news-row .news-row-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.pager .nav-links{ display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.pager .nav-links div{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.pager .nav-links .nav-previous{
  order:2;
}
.pager .nav-links .nav-next{
  order:1;
}
/* ---------- Article (news detail) ---------- */
.article-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: 48px 56px;
  max-width: 900px;
  margin: 0 auto;
}

.article-title { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.article-meta { color: var(--color-green); font-weight: 700; font-size: 15px; margin-bottom: 24px; }
.article-body img { border-radius: 16px; margin: 20px 0; }
.article-body h2 { font-size: 22px; font-weight: 900; color: var(--color-green); margin: 32px 0 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; font-weight: 900; color: var(--color-green); margin: 24px 0 12px; }
.article-body p { font-size: 16px; margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px 1.4em; font-size: 16px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-divider { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 32px 0; }
.article-nav .nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; max-width: 900px; margin: 32px auto 80px; gap: 16px; }
.article-nav a { font-size: 15px; }
.article-nav a{
display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.article-nav .nav-previous {
  order: 2;
}
.article-nav .nav-next {
  order: 1;
}
.article-nav .nav-previous a:after{
content:'>';
display:inline-block;
}
.article-nav .nav-next a:before{
content:'<';
display:inline-block;
}
/* ---------- Recruit ---------- */
.job-btn-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 720px;
  margin: 28px auto 0;
}
.job-btn-grid .btn { width: auto; justify-content: center; padding: 18px 30px; font-size: 16px; }
.job-section { max-width: 900px; margin: 0 auto 48px; scroll-margin-top: 110px; }
.job-section:last-child { margin-bottom: 0; }
.job-section h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-green);
  margin-bottom: 20px;
}

.job-info-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.job-info-table th, .job-info-table td { text-align: left; padding: 16px 0; font-size: 16px; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,0.08); }
.job-info-table th { width: 200px; color: var(--color-green); font-weight: 900; }
.job-info-table td { line-height: 1.7; }
.amount-table { border-collapse: collapse; }
.amount-table td { padding: 2px 0; border: none; font-size: inherit; line-height: 1.7; white-space: nowrap; }
.amount-table td:first-child { padding-right: 16px; }
.amount-table td:last-child { text-align: right; }
.job-note { text-align: center; font-size: 16px; margin-top: 24px; }
.job-note-red { text-align: center; font-size: 16px; color: #E2231A; font-weight: 700; margin-top: 24px; }
.job-cta { text-align: center; margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.job-cta .btn { padding: 14px 40px; }
.job-cta .tel-note { font-size: 13px; opacity: 0.7; }
.btn-icon-img { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Link cards (link/index.html) ---------- */
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.link-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.link-card-banner {
  overflow: hidden;
  padding: 32px 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card-banner img {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.link-card:hover .link-card-banner img { transform: scale(1.08); }
.link-card p { font-size: 15px; margin: 0; padding: 0 24px 28px; }

/* ---------- Contact form ---------- */
.contact-form { background: var(--color-white); border-radius: 24px; padding: 48px 56px; max-width: 800px; margin: 0 auto; }
.form-row { margin-bottom: 24px; }
.form-row label { display: block; font-weight: 900; color: var(--color-green); margin-bottom: 8px; font-size: 15px; }
.form-row .required { color: #E2231A; font-size: 12px; margin-left: 6px; font-weight: 700; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 15px;
  background: var(--color-light-beige);
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--color-text); margin-bottom: 0; }
.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn { padding: 14px 48px; font-size: 16px; border: none; }

@media (max-width: 900px) {
  .content-card, .contact-form, .article-card { padding: 32px 24px; }
  .link-grid, .form-row-half { grid-template-columns: 1fr; }
  .news-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-radius: 24px;
    position: relative;
    padding-right: 60px;
  }
  .news-row time { width: auto; }
  .news-row .news-row-arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }

  /* 募集定員表：ラベル付きの縦積み表示 */
  .capacity-table thead { display: none; }
  .capacity-table tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .capacity-table tbody tr:last-child { border-bottom: none; }
  .capacity-table tbody td { display: block; padding: 2px 0; font-size: 15px; }
  .capacity-table tbody td:nth-child(1) { display: inline; font-weight: 700; opacity: 1; font-size: 15px; }
  .capacity-table tbody td:nth-child(2) { display: inline; opacity: 1; font-size: 15px; }
  .capacity-table tbody td:nth-child(3),
  .capacity-table tbody td:nth-child(4) { text-align: left; }
  .capacity-table tbody td:nth-child(3)::before { content: "募集定員　"; color: var(--color-green); font-weight: 700; }
  .capacity-table tbody td:nth-child(4)::before { content: "利用定員　"; color: var(--color-green); font-weight: 700; }

  .sp-break { display: inline; }

  /* 認定区分の表：ラベルを太字で上、説明を下に縦積み表示 */
  .cert-table, .cert-table tbody, .cert-table tr, .cert-table td { display: block; width: 100%; }
  .cert-table tr { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .cert-table tr:first-child { padding-top: 0; }
  .cert-table tr:last-child { border-bottom: none; padding-bottom: 0; }
  .cert-table td { padding: 0; }
  .cert-table td:first-child { font-weight: 900; color: var(--color-green); margin-bottom: 4px; }

  /* 募集要項の表：項目名を上・内容を下に縦積み表示 */
  .job-info-table, .job-info-table tbody, .job-info-table tr, .job-info-table th, .job-info-table td {
    display: block;
    width: 100%;
  }
  .job-info-table th { padding: 16px 0 4px; border-bottom: none; }
  .job-info-table td { padding: 0 0 16px; }

  /* 本俸・手当の金額表は縦積みにせず、2列のまま維持 */
  .amount-table { display: table; width: auto; }
  .amount-table tr { display: table-row; }
  .amount-table td { display: table-cell; padding: 2px 0; }
  .amount-table td:first-child { padding-right: 16px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .site-header .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header { height: 60px; }
  .header-inner { padding: 0 16px; }
  .logo-link img { height: 30px; }

  .page-hero { flex-direction: column; margin-top: 80px; min-height: auto; }
  .page-hero-text { width: 100%; padding: 24px 6% 16px; text-align: center; }
  .page-hero-photo { width: 100%; height: 280px; border-radius: 2000px 0 0 2000px; }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 0; right: -100%;
    width: min(80vw, 340px);
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    padding: 90px 32px 32px;
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
  }
  .mobile-nav.is-active { right: 0; }
  .mobile-nav ul { display: flex; flex-direction: column; gap: 22px; }
  .mobile-nav a { font-size: 16px; font-weight: 700; }
  .mobile-nav .header-cta { margin-top: 28px; flex-direction: column; }
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
  }
  .nav-overlay.is-active { display: block; }

  .hero-bubble { font-size: 23px; letter-spacing: 4px; padding: 16px 10px; }
  .hero-bubble.large { font-size: 23px; padding: 20px 12px; }

  .card-grid,
  .two-col,
  .about-flex,
  .recruit-flex,
  .reduction-grid,
  .hours-grid,
  .events-layout,
  .message-block { grid-template-columns: 1fr; }
  .message-block img { max-width: 240px; margin: 0 auto 20px; order: -1; }

  .feature-block img,
  .feature-block-photo { height: 200px; }

  .recruit-flex { border-radius: 50px; }
  .recruit-flex img { order: -1; }
  .recruit-copy { padding: 32px 24px; }
  .cta-mobile-center { text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-sitemap { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }

  .media-text, .media-text.reverse {
    grid-template-columns: 1fr;
  }
  .media-text img, .media-text.reverse img { order: 0; max-width: 340px; margin: 0 auto; }

  .timeline::before { left: 58px; }
  .timeline-item { grid-template-columns: 100px 1fr; gap: 16px; }
  .timeline-time { font-size: 23px; height: 40px; }
  .timeline-body h3 { font-size: 24px; }
  .timeline-body img { max-width: none; }
}

@media (max-width: 560px) {
  .page-hero-text h1 { font-size: 24px; }
  .news-list li, .history-list li { flex-direction: column; gap: 4px; }
  .history-list .date { width: auto; }
}

#about .page-hero-photo{
  background-image:url('../images/about/about-hero.webp');
}
#overview .page-hero-photo{
  background-image:url('../images/about/about-hero.webp');
}
#life .page-hero-photo{
  background-image:url('../images/life/life-hero.webp');
}
#admission .page-hero-photo{
  background-image:url('../images/admission/admission-hero.webp');
}
#faq .page-hero-photo{
  background-image:url('../images/faq/faq-hero.webp');
}
#recruit .page-hero-photo{
  background-image:url('../images/recruit/recruit-hero.webp');
}
#requirements .page-hero-photo{
  background-image:url('../images/recruit/recruit-hero.webp');
}
#link .page-hero-photo{
  background-image:url('../images/link/link-hero.webp');
}
#contact .page-hero-photo{
  background-image:url('../images/contact/contact-hero.webp');
}
#complete .page-hero-photo{
  background-image:url('../images/contact/contact-hero.webp');
}
#archive .page-hero-photo{
  background-image:url('../images/info/info-hero.webp');
}
.single  .page-hero-photo{
  background-image:url('../images/info/info-hero.webp');
}


