/* ==========================================================
   結の樹天白 — 下層ページ（暮らし・地域活動・あゆみ・お問い合わせ）
   base.css と home.css の部品を使い、ここでは下層ページ固有の部品だけを足す。
   ========================================================== */

/* ---------- ページの見出し ---------- */
.page-hero { padding: 12px 12px 0; }
.page-hero__inner {
  display: grid;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 20px;
  background: var(--tint);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-hero__title { font-size: clamp(28px, 7.4vw, 46px); margin-top: 12px; line-height: 1.45; }
.page-hero__lead { margin-top: 16px; max-width: 32em; }
.page-hero__photo { margin: 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--simple .page-hero__inner { padding-bottom: 32px; }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--ink-sub); }
.breadcrumb li + li::before { content: "／"; margin: 0 6px; }
.breadcrumb a { color: var(--ink-sub); }

/* ---------- ページ内メニュー ---------- */
.page-toc { padding: 20px 0 0; }
.page-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--tree-dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.page-toc a:hover { background: var(--tree-pale); }

/* ---------- 文章＋イラスト ---------- */
.split { display: grid; gap: 24px; align-items: center; }
.split__text { margin-top: 16px; max-width: 34em; }
.split__illust { margin: 0 auto; max-width: 300px; }
.subhead { font-size: 20px; margin: 48px 0 16px; }

.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.point { padding: 20px; border-radius: var(--radius-md); background: var(--tint); }
.point__title { font-size: 18px; margin-bottom: 6px; }
.point p { font-size: 16px; }

.split + .life__facts { margin-top: 40px; }
.section:not(.section--tint) .life__facts li { background: var(--tint); }

/* ---------- 写真ギャラリー ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--card); }
.gallery__item:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute;
  left: 8px; bottom: 8px;
  padding: 2px 10px;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.7;
}

/* 同じ大きさで並べる版（トップの「暮らしとお部屋」） */
.gallery--even .gallery__item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 1; }

/* ---------- 特徴カード ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature { padding: 20px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.section--tint .feature { box-shadow: none; }
.feature__meta { font-size: 13px; color: var(--ink-sub); }
.feature__title { font-size: 18px; margin-bottom: 6px; }
.feature p:not(.feature__meta) { font-size: 16px; }

/* ---------- 料金シミュレーター ---------- */
.simulator {
  margin-top: 40px;
  padding: 24px 20px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 2px var(--tree-pale);
}
.simulator__title { font-size: 22px; }
.simulator__lead { margin-top: 8px; font-size: 15px; color: var(--ink-sub); }
.simulator__form { margin-top: 16px; display: grid; gap: 16px; }
.simulator__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.simulator__field legend { padding: 0; margin-bottom: 8px; font-weight: 500; font-size: 15px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 15px;
  cursor: pointer;
}
.choice input:checked + span { background: var(--tree); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--tree); outline-offset: 2px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 10px; cursor: pointer; line-height: 1.6; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--tree); flex: none; }

.simulator__result { margin-top: 20px; padding: 16px; border-radius: var(--radius-sm); background: var(--tint); }
.simulator__total-label { font-size: 14px; color: var(--ink-sub); }
.simulator__total { font-family: var(--font-round); font-weight: 700; font-size: 16px; }
.simulator__total output { font-size: clamp(34px, 9vw, 44px); margin: 0 4px; color: var(--tree-dark); }
.simulator__breakdown { margin: 8px 0 0; }
.simulator__breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.simulator__breakdown dd { margin: 0; white-space: nowrap; }
.simulator__note { margin-top: 12px; font-size: 13px; color: var(--ink-sub); }
.simulator__note + .simulator__note { margin-top: 6px; }
.simulator__note--strong { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--tree-pale); color: var(--tree-dark); font-size: 14px; font-weight: 500; }

/* ---------- 誘導の帯 ---------- */
.cta-band {
  display: grid;
  gap: 8px;
  padding: 32px 20px;
  background: var(--tint);
  border-radius: var(--radius-lg);
}
.cta-band__illust { margin: 0 auto; max-width: 220px; }
.cta-band__title { font-size: clamp(22px, 5.6vw, 30px); }
.cta-band__body > p { margin-top: 12px; }
.cta-band__actions { display: grid; gap: 10px; margin-top: 20px; }
.cta-band__sub { margin-top: 12px; }

/* ---------- GAUSS：参加 ---------- */
.join { text-align: center; }
.join p { margin: 16px auto 0; max-width: 32em; text-align: left; }
.join__actions { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- あゆみ ---------- */
.message { display: grid; gap: 24px; }
.message__figure { position: relative; margin: 0 auto; width: 60%; max-width: 280px; }
.message__figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 18px;
}
.message__figure figcaption span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--ink-sub); }
.message__body p { margin-top: 16px; max-width: 36em; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__item { position: relative; display: grid; gap: 2px; padding: 0 0 20px 32px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 4px var(--tree);
}
.timeline__date { font-size: 14px; color: var(--ink-sub); }
.timeline__text { line-height: 1.7; }

.media-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.media-item { padding: 18px 20px; background: var(--card); border-radius: var(--radius-md); }
.media-item__name { font-family: var(--font-round); font-weight: 700; font-size: 17px; }
.media-item__name span { margin-left: 8px; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--ink-sub); }
.media-item__text { margin-top: 4px; font-size: 15px; }

.info-table { margin: 0; background: var(--card); border-radius: var(--radius-md); padding: 4px 20px; }
.info-table div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.info-table div:last-child { border-bottom: 0; }
.info-table dt { color: var(--ink-sub); font-size: 15px; }
.info-table dd { margin: 0; }

/* ---------- お問い合わせ ---------- */
.section--compact { padding: 32px 0 48px; }
.tel-box { padding: 24px 20px; text-align: center; background: var(--tint); border-radius: var(--radius-md); }
.tel-box__title { font-size: 18px; }
.tel-box__num { display: inline-block; margin-top: 4px; font-family: var(--font-round); font-weight: 700; font-size: clamp(30px, 9vw, 40px); letter-spacing: 0.06em; color: var(--tree-dark); text-decoration: none; }
.tel-box__time { font-size: 14px; color: var(--ink-sub); }
.contact-jump { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-jump .btn { width: 100%; }

.form-alert { background: #FCEDEA; color: #7A2E21; padding: 16px 0; }
.form { display: grid; gap: 20px; padding: 24px 20px; background: var(--card); border-radius: var(--radius-md); }
.section:not(.section--tint) .form { box-shadow: inset 0 0 0 1px var(--line); }
.form__row { display: grid; gap: 6px; }
.form__row--half { gap: 20px; }
.form__row--half > div { display: grid; gap: 6px; }
.form__label { font-weight: 500; }
.form__req, .form__opt { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1.8; vertical-align: 2px; }
.form__req { background: #B5533F; color: #fff; }
.form__opt { background: var(--tint); color: var(--ink-sub); }
.form__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #B9C2B5;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
textarea.form__input { min-height: 120px; resize: vertical; }
.form__input:focus { outline: 3px solid var(--tree-pale); border-color: var(--tree); }
.form__hint { font-size: 13px; color: var(--ink-sub); }
.form__submit { width: 100%; border: 0; cursor: pointer; }
.privacy { font-size: 15px; }

/* ---------- 送信完了 ---------- */
.thanks { text-align: center; }
.thanks__illust { width: 200px; margin: 0 auto 16px; }
.thanks > p { margin-top: 16px; text-align: left; }
.thanks__notes { margin: 16px 0 0; padding: 16px 20px 16px 36px; text-align: left; background: var(--tint); border-radius: var(--radius-sm); }
.thanks__actions { display: grid; gap: 10px; margin-top: 32px; }

/* ---------- タブレット以上 ---------- */
@media (min-width: 600px) {
  .page-hero__inner { padding: 40px; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item:first-child { grid-row: span 2; grid-column: span 1; aspect-ratio: auto; }
  .cta-band { padding: 40px; }
  .cta-band__actions, .join__actions, .thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; }
  .cta-band__actions { justify-content: flex-start; }
  .contact-jump { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; }
  .form__row--half { grid-template-columns: 1fr 1fr; }
  .form__submit { width: auto; justify-self: start; padding-left: 48px; padding-right: 48px; }
  .media-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  .page-hero { padding: 16px 24px 0; }
  .page-hero__inner { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; padding: 48px 48px 48px 64px; }
  .page-hero--simple .page-hero__inner { grid-template-columns: 1fr; padding-bottom: 56px; }
  .split { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .split--reverse .split__illust { order: -1; }
  .split--reverse { grid-template-columns: 1fr 1.5fr; }
  .split__illust { max-width: 360px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .simulator { padding: 32px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 40px; }
  .simulator__title, .simulator__lead { grid-column: 1 / -1; }
  .simulator__result { margin-top: 16px; align-self: start; }
  .simulator__note { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 240px 1fr; align-items: center; gap: 40px; padding: 48px 56px; }
  .cta-band__illust { max-width: none; }
  .message { grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
  .message__figure { width: 100%; position: sticky; top: calc(var(--header-h) + 24px); }
  .gallery--even { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- お知らせ ---------- */
.summary-box { padding: 24px 20px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 2px var(--tree-pale); }
.summary-box__title { font-size: 20px; }
.summary-box p { margin-top: 12px; }
.news-articles { display: grid; gap: 16px; }
.news-article { padding: 24px 20px; background: var(--card); border-radius: var(--radius-md); scroll-margin-top: calc(var(--header-h) + 16px); }
.news-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--ink-sub); }
.news-article__cat { padding: 0 10px; border-radius: 999px; background: var(--tree-pale); color: var(--tree-dark); font-size: 13px; line-height: 1.8; }
.news-article__title { margin-top: 8px; font-size: clamp(18px, 4.8vw, 22px); }
.news-article__body p { margin-top: 10px; }
.news-article__lead { margin-top: 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
@media (min-width: 600px) {
  .summary-box, .news-article { padding: 32px; }
}

/* ---------- 平面図 ---------- */
.plans { display: grid; gap: 16px; }
.plan { margin: 0; }
.plan a { display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan img { width: 100%; }
.plan figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-sub); text-align: center; }
.plan--small { margin-top: 24px; max-width: 360px; }
.subhead--first { margin-top: 0; }
.media-note { margin: -8px 0 16px; font-size: 14px; color: var(--ink-sub); }
@media (min-width: 600px) { .plans { grid-template-columns: 1fr 1fr; align-items: start; } }
.plans__note { margin: -4px 0 16px; font-size: 15px; color: var(--ink-sub); }
.plan--room { padding: 16px; background: var(--card); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line); }
.plan__photo { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 60%; }
@media (min-width: 1024px) { .plans { grid-template-columns: 0.9fr 1fr 1fr; } }

/* ---------- フォームのロボット対策欄（画面には出さない） ---------- */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- プライバシーポリシー ---------- */
.legal__section + .legal__section { margin-top: 36px; }
.legal__title { font-size: 19px; padding-bottom: 8px; border-bottom: 2px solid var(--tree-pale); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.4em; }
.legal li + li { margin-top: 6px; }
.legal__date { margin-top: 40px; text-align: right; color: var(--ink-sub); font-size: 14px; }

/* ---------- 採用情報 ---------- */
.life__facts--5 { grid-template-columns: repeat(2, 1fr); }
.life__facts--5 li:last-child { grid-column: span 2; }
.voices { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.voice { padding: 22px 20px; background: var(--card); border-radius: var(--radius-md); }
.voice__text { font-size: 16px; }
.voice__name { margin-top: 12px; font-family: var(--font-round); font-weight: 700; }
.voice__name span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--ink-sub); }
.jobs { display: grid; gap: 16px; }
.job { padding: 24px 20px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.job__tag { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--tree-pale); color: var(--tree-dark); font-size: 13px; line-height: 1.8; }
.job__title { margin-top: 8px; font-size: 20px; }
.job__pay { margin-top: 6px; font-family: var(--font-round); font-weight: 700; font-size: 20px; color: var(--tree-dark); }
.job__time { font-size: 14px; color: var(--ink-sub); }
.job__lead { margin-top: 10px; font-size: 16px; }
.job__more { margin-top: 12px; }
.job__more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--tree-dark); text-decoration: underline; text-underline-offset: 4px; }
.job__table { margin-top: 8px; padding: 4px 16px; background: var(--tint); }
.job__table div { grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 600px) {
  .life__facts--5 { grid-template-columns: repeat(5, 1fr); }
  .life__facts--5 li:last-child { grid-column: auto; }
  .voices { grid-template-columns: repeat(3, 1fr); }
  .jobs { grid-template-columns: 1fr 1fr; align-items: start; }
  .job__table div { grid-template-columns: 7em 1fr; gap: 12px; }
}

/* ---------- お知らせページ：絞り込み・続けている取り組み ---------- */
.news-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; }
.news-list-head .section-title { margin: 0; }
.news-ongoing-title { margin-top: 56px; }
.news-ongoing-lead { margin: 8px 0 20px; font-size: 14px; color: var(--ink-sub); }
.news-articles[hidden] { display: none; }

/* ---------- 採用：スタッフの声の見出し ---------- */
.voice-head { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.voice-head .section-title { margin: 0 0 12px; }
.voice-head__img { width: auto; height: 120px; }
.voice-head__img:first-child { height: 150px; }
.news-article__more { margin-top: 14px; font-weight: 500; }
.news-article__title a { color: inherit; text-decoration: none; }
.news-article__title a:hover { color: var(--tree-dark); text-decoration: underline; text-underline-offset: 4px; }

/* 記事ごとのページ（news/<id>.html） */
.news-page__meta { margin-top: 16px; }
.news-page__title { font-size: clamp(22px, 5.6vw, 32px); line-height: 1.5; }
.news-page .news-article__body p:first-child { margin-top: 0; }
.news-page__photo { margin: 0 0 20px; }
.news-page__photo img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.news-pager { display: grid; gap: 12px; margin-top: 24px; }
.news-pager__link {
  display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font-weight: 500; line-height: 1.6; text-decoration: none;
}
.news-pager__link:hover { box-shadow: inset 0 0 0 2px var(--tree); }
.news-pager__label { font-size: 13px; font-weight: 400; color: var(--ink-sub); }
.news-pager__link--newer .news-pager__label::before { content: "← "; }
.news-pager__link--older .news-pager__label::after { content: " →"; }
.news-page__back { margin-top: 28px; text-align: center; }
@media (min-width: 720px) {
  .news-pager { grid-template-columns: 1fr 1fr; }
  .news-pager__link--older { grid-column: 2; text-align: right; }
}
.message__subtitle { margin-top: 36px; font-size: 19px; color: var(--tree-dark); }

/* 歴史ページ ⇔ お知らせの記事 */
.story-link { margin-left: 4px; font-size: 14px; white-space: nowrap; }
.timeline__item, .media-item { scroll-margin-top: calc(var(--header-h) + 16px); }
.timeline__item:target .timeline__text, .media-item:target { background: var(--tree-pale); }
.timeline__item:target .timeline__text { border-radius: 6px; box-shadow: 0 0 0 4px var(--tree-pale); }
.news-page__story { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }

/* 季節や、ふだんの楽しみ（ゆっくり自動で進むスライダー。指・ボタンでも操作できる） */
.scene-slider { margin-top: 16px; }
.scene-slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 320px); gap: 16px;
  list-style: none; margin: 0; padding: 4px 4px 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--tree) var(--tree-pale);
}
.scene-slider__track::-webkit-scrollbar { height: 8px; }
.scene-slider__track::-webkit-scrollbar-track { background: var(--tree-pale); border-radius: 999px; }
.scene-slider__track::-webkit-scrollbar-thumb { background: var(--tree); border-radius: 999px; }
.scene-slider__track:focus-visible { outline: 3px solid var(--tree); outline-offset: 2px; border-radius: var(--radius-sm); }
.scene-slider__item { scroll-snap-align: start; }
.scene-card { margin: 0; padding: 10px 10px 14px; border-radius: var(--radius-md); background: var(--card); box-shadow: 0 6px 18px rgba(47, 82, 64, 0.08); }
.scene-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.scene-card figcaption { margin-top: 10px; text-align: center; font-family: var(--font-round); font-weight: 700; font-size: 16px; }
.scene-slider__controls { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.scene-slider__btn {
  min-width: 48px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--tree); color: var(--tree-dark);
  font-family: var(--font-body); font-size: 22px; font-weight: 500; line-height: 1; cursor: pointer;
}
.scene-slider__btn--pause { font-size: 14px; }
.scene-slider__btn:hover { background: var(--tree-pale); }
.scene-slider__btn[aria-pressed="true"] { background: var(--tree); color: #fff; }
@media (prefers-reduced-motion: reduce) { .scene-slider__track { scroll-behavior: auto; } }
