/* そよかぜの丘幼稚園：下層ページ共通のデザイン */
/* ===== 園についてページ専用 ===== */
.page-title {
  position: relative;
  padding: 64px 0 90px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 30%, rgba(255,255,255,.12) 0 50px, transparent 51px),
    radial-gradient(circle at 90% 60%, rgba(255,255,255,.1) 0 80px, transparent 81px),
    var(--green);
}

.page-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 28px;
  font-size: 13px;
  color: #777;
}

.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--green); }

.page-body { padding-bottom: 100px; }

/* 画像を入れるまでの空欄 */
.img-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 2px dashed #c3d7e2;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #f4f8fa 0 12px, #ecf3f7 12px 24px);
  color: #6f8d9e;
  font-size: 14px;
}

.img-wide { aspect-ratio: 1000 / 500; margin-bottom: 36px; }

/* 写真が入った枠 */
.img-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #eef3f6;
}

.img-photo.img-wide { aspect-ratio: 1000 / 500; }


/* 元の画像が小さい写真は、ぼやけないよう小さめに中央へ */
.img-photo.img-small {
  width: min(100%, 420px);
  aspect-ratio: 5 / 4;
  margin: 0 auto 36px;
}

.img-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ページ内の目次 */
.page-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
  padding: 24px 40px;
  border-radius: 12px;
  background: var(--bg-news);
}

.page-index a {
  position: relative;
  display: inline-block;
  padding-left: 18px;
}

.page-index a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  border: 5px solid transparent;
  border-left: 8px solid var(--green);
  transform: translateY(-50%);
}

.page-index a:hover { color: var(--green); text-decoration: underline; }

.block { padding-top: 80px; }

/* 見出し：大（中央＋波線）、中（かざぐるま＋点線）、小（丸印） */
.sec-ttl {
  margin: 0 0 34px;
  padding-bottom: 24px;
  text-align: center;
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 94 16'%3E%3Cpath d='M2 8 Q 13 0 24 8 T 47 8 T 70 8 T 92 8' fill='none' stroke='%23e0703f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom / 64px auto;
}

.sub-ttl {
  position: relative;
  margin: 52px 0 22px;
  padding: 0 0 12px 34px;
  border-bottom: 2px dashed var(--green);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 700;
  line-height: 1.6;
}

.sub-ttl::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0 0V-11L8-5Z' fill='%23ef6a4c'/%3E%3Cpath d='M0 0V-11L8-5Z' fill='%23f7b733' transform='rotate(90)'/%3E%3Cpath d='M0 0V-11L8-5Z' fill='%232a8fbd' transform='rotate(180)'/%3E%3Cpath d='M0 0V-11L8-5Z' fill='%237cc4dd' transform='rotate(270)'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mini-ttl {
  position: relative;
  margin: 18px 0 4px;
  padding-left: 20px;
  font-size: 16px;
  font-weight: 700;
}

.mini-ttl::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.pin-ttl {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 700;
}

.pin-ttl::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 9px;
  height: 9px;
  background: var(--leaf);
  transform: rotate(45deg);
}

/* 表 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #dbe6ec;
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #dbe6ec;
  text-align: left;
  vertical-align: middle;
}

.info-table th {
  width: 26%;
  background: var(--bg-news);
  font-weight: 700;
  text-align: center;
}

.class-table thead th {
  width: auto;
  background: var(--green);
  color: #fff;
}

.class-table td { text-align: center; }

.note { margin: 10px 0 0; font-size: 13px; color: #777; }

/* 写真と文章の2列 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.two-col p { margin: 0 0 12px; }

.lead {
  margin: 0 0 30px;
  text-align: center;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  color: var(--brown);
}

.dot-list li {
  position: relative;
  padding-left: 22px;
}

.dot-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.tint-box {
  padding: 24px 32px;
  border-radius: 12px;
  background: var(--bg-info);
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.goal {
  padding: 4px 22px 18px;
  border-radius: 12px;
  background: var(--bg-news);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}

.facility-grid .img-empty { aspect-ratio: 4 / 3; }

@media (max-width: 768px) {
  .page-title { padding: 40px 0 64px; }
  .page-index { grid-template-columns: 1fr; padding: 18px 22px; }
  .block { padding-top: 56px; }
  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .goal-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .info-table th, .info-table td { padding: 12px 10px; font-size: 14px; }
  .info-table th { width: 30%; }
  .tint-box { padding: 18px 20px; }
  .lead { text-align: left; }
}

/* ===== ここから：各ページ共通の部品 ===== */

/* ボタンを横に並べる／準備中のボタン */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-row .btn { margin: 0; }

.btn.is-disabled {
  background: #b8c4cb;
  cursor: default;
  pointer-events: none;
}

.btn.is-disabled::after { display: none; }

.center-text { text-align: center; }

/* ===== 園生活：一日の流れ（時間の順番） ===== */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 縦の線 */
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 54px;
  width: 3px;
  border-radius: 3px;
  background: #cfe3ec;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 220px;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
}

.timeline-time {
  position: relative;
  z-index: 1;
  justify-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  line-height: 1.6;
}

.timeline h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
}

.timeline p { margin: 0; }

.timeline .img-photo,
.timeline .img-empty { aspect-ratio: 4 / 3; }

/* ===== 年間行事：月ごとの表＋写真の帯 ===== */
.event-table th { width: 16%; }

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

/* ===== 畑でとれる作物：季節のカード ===== */
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.season {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #e5eef3;
}

.season .img-photo,
.season .img-empty { aspect-ratio: 4 / 3; border-radius: 0; border: 0; }

.season-body { padding: 14px 18px 18px; }

.season h3 {
  display: inline-block;
  margin: 0 0 6px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.season.is-spring h3 { background: #f09891; }
.season.is-summer h3 { background: var(--green); }
.season.is-autumn h3 { background: var(--leaf); }
.season.is-winter h3 { background: #7c95a8; }

.season p { margin: 0; font-size: 14px; }

/* ===== 手順（見学の流れなど、順番があるもの） ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 44px 20px 20px;
  border-radius: 14px;
  background: var(--bg-news);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.steps h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.steps p { margin: 0; font-size: 14px; }

/* ===== お知らせ一覧：カテゴリで絞り込み ===== */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.news-tabs button {
  min-width: 110px;
  padding: 8px 18px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.news-tabs button[aria-pressed="true"],
.news-tabs button:hover {
  background: var(--green);
  color: #fff;
}

.news-list.is-page { max-height: none; overflow: visible; }

.news-empty {
  display: none;
  padding: 30px 0;
  text-align: center;
  color: #777;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}

.pager span,
.pager a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d6e2e8;
}

.pager [aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ===== お知らせ記事 ===== */
.article {
  max-width: 820px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #666;
  font-size: 14px;
}

.article-title {
  margin: 10px 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--green);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.5;
}

.article .img-photo { margin-bottom: 24px; }

.article-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #dbe6ec;
  font-size: 14px;
}

.article-nav a:hover { color: var(--green); text-decoration: underline; }
.article-nav .next { text-align: right; }

/* ===== カード（関連施設など） ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid #e5eef3;
  background: #fff;
}

.card .img-photo,
.card .img-empty { aspect-ratio: 16 / 10; border-radius: 0; border: 0; }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 20px 20px;
}

.card h3,
.card h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--brown); }
.card p { flex: 1; margin: 0 0 16px; font-size: 14px; }
.card .btn { max-width: none; padding: 9px 36px; font-size: 14px; }

/* ===== 保護者サークル：項目と内容の一覧 ===== */
.circle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.circle dl {
  margin: 0;
  border-top: 1px solid #dbe6ec;
}

.circle dt {
  margin-top: 0;
  padding: 12px 0 0;
  font-weight: 700;
  color: var(--green);
}

.circle dd {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid #dbe6ec;
}

/* ===== フォトギャラリー：押すと大きく表示 ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #eef3f6;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery button:hover img { transform: scale(1.04); }

.lightbox {
  max-width: min(960px, 92vw);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #111;
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.75); }

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.lightbox figcaption {
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ===== ダウンロード一覧 ===== */
.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dbe6ec;
}

.doc-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 16px 6px;
  border-bottom: 1px solid #dbe6ec;
}

.doc-name { font-weight: 700; }
.doc-name small { display: block; font-weight: 500; font-size: 13px; color: #777; }
.doc-list .btn { width: auto; margin: 0; padding: 8px 40px 8px 24px; font-size: 14px; }

/* ===== お問い合わせフォーム ===== */
.form {
  max-width: 820px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #dbe6ec;
}

.form-row:first-child { border-top: 1px solid #dbe6ec; }

.form-label {
  padding-top: 8px;
  font-weight: 700;
}

.req,
.opt {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.8;
  vertical-align: 1px;
}

.req { background: var(--red); color: #fff; }
.opt { background: #e6edf1; color: #555; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d6e2e8;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.form textarea { min-height: 180px; resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 127, 171, 0.18);
}

.form-hint { margin: 6px 0 0; font-size: 13px; color: #777; }

.form-agree {
  margin: 28px 0 0;
  text-align: center;
}

.form-agree label { cursor: pointer; }
.form-agree input { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; accent-color: var(--green); }

.form .btn-row .btn { min-width: 240px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

.btn.is-sub { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn.is-sub:hover { background: var(--bg-news); }

.form-msg {
  display: none;
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--bg-news);
  border: 2px solid var(--green);
  text-align: center;
  font-weight: 700;
}

.form-msg.is-shown { display: block; }

.tel-box {
  margin: 0 0 40px;
  padding: 22px;
  border-radius: 14px;
  background: var(--bg-info);
  text-align: center;
}

.tel-box a {
  display: inline-block;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .timeline::before { left: 38px; }
  .timeline li { grid-template-columns: 78px 1fr; gap: 14px; }
  .timeline-time { font-size: 14px; padding: 2px 8px; }
  .timeline .img-photo,
  .timeline .img-empty { grid-column: 2; }

  .photo-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .season-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .season-body { padding: 10px 12px 14px; }
  .steps { grid-template-columns: 1fr; }
  .article-photos { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; text-align: center; }
  .article-nav .next { text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
  .circle { grid-template-columns: 1fr; gap: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .form-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .form-label { padding-top: 0; }
  .event-table th { width: 22%; }
}

/* いま開いているページのメニューを色付け */
.menu-list > li > a[aria-current="page"] { color: var(--green); font-weight: 700; }
