@charset "UTF-8";
/* ==========================================================================
   のがわ 共通コンポーネント
   静的ページ（自前CSSのみ）と WordPress（SWELL）の両方が読み込む。
   Bootstrap は使用していない（2026-08-27 に読み込みを削除済み）。
   WordPress 側は子テーマの functions.php から読み込んでいる。
   ========================================================================== */

:root {
  /* --- 色（D案） --- */
  --c-bg:          #FAF7EF;
  --c-bg-white:    #FFFFFF;
  --c-bg-tint:     #FEFDFA;
  --c-text:        #322F2A;
  --c-text-sub:    #5F5B53;
  --c-heading:     #3D5A1B;
  --c-primary:     #55801F;
  --c-primary-dk:  #3D5A1B;
  --c-accent:      #A7BC4F;
  --c-accent-dk:   #8CA138;
  --c-line:        #DAD4C6;
  --c-line-soft:   #EAE5DA;
  --c-footer:      #E9F0DC;
  --c-band:        #A7BC4F;

  /* --- 書体 --- */
  --f-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --f-sans:  "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;

  /* --- 文字サイズ（14px 以下は使わない） --- */
  --fs-lead:  1.1875rem; /* 19px */
  --fs-body:  1.0625rem; /* 17px */
  --fs-nav:   1rem;      /* 16px */
  --fs-small: 0.9375rem; /* 15px */
  --fs-h1:    2.25rem;   /* 36px */
  --fs-h2:    1.75rem;   /* 28px */
  --fs-h3:    1.3125rem; /* 21px */

  --lh:       2;
  --lh-head:  1.95;
  --ls-head:  0.11em;
  --ls-btn:   0.06em;

  --w-content: 1120px;
  --h-header: 96px;
}

/* --- 基本 ------------------------------------------------------------ */
.site-body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}

.l-container {
  width: min(100% - 3rem, var(--w-content));
  margin-inline: auto;
}

.c-heading,
.site-body h2,
.site-body h3 {
  font-family: var(--f-serif);
  font-weight: 600;
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
  line-height: var(--lh-head);
}
.site-body h2 { font-size: var(--fs-h2); margin: 0 0 1.2em; }
.site-body h3 { font-size: var(--fs-h3); margin: 0 0 0.9em; }

.c-heading__rule {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 2px;
  margin: 1rem 0 1.8rem;
}
.c-heading--center { text-align: center; }
.c-heading--center .c-heading__rule { margin-inline: auto; }

.c-lead { font-size: var(--fs-lead); line-height: var(--lh); }
.c-note { font-size: var(--fs-small); color: var(--c-text-sub); line-height: 1.9; }

/* --- ボタン ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: var(--fs-body);
  letter-spacing: var(--ls-btn);
  line-height: 1.5;
  padding: 17px 36px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dk); color: #fff; }
.btn--accent  { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dk); color: #fff; }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--sm { padding: 12px 24px; font-size: var(--fs-nav); }
.btn--block { display: block; text-align: center; }

/* --- ヘッダー -------------------------------------------------------- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line-soft);
  position: relative;
}
.site-header__inner {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
  min-height: var(--h-header);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-header__logo { display: block; line-height: 0; margin-right: auto; }
.site-header__logo img { height: 72px; width: auto; }

/* PC時はナビとCTAを横並びに（指定がないと block で折り返す） */
.site-header__nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: var(--fs-nav);
  letter-spacing: 0.04em;
  color: var(--c-text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--c-primary); }
.site-nav a.is-current { color: var(--c-heading); border-bottom-color: var(--c-accent); }

.site-header__cta { display: flex; gap: 10px; }

/* ハンバーガー */
.site-header__toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; margin-left: auto;
}
.site-header__toggle span {
  display: block; width: 26px; height: 1.5px;
  background: var(--c-heading); margin: 6px auto;
  transition: transform .25s, opacity .25s;
}
.site-header.is-open .site-header__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header.is-open .site-header__toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* --- WP側メインコンテンツの幅 --- */
.l-main {
  width: min(100% - 3rem, var(--w-content));
  margin-inline: auto;
  padding: 2.5rem 0 5rem;
}

/* --- フッター -------------------------------------------------------- */
.site-footer {
  background: var(--c-footer);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
main:has(.cta-band) + .site-footer { margin-top: 0; }
.site-footer__grid {
  display: grid;
}


.site-footer__copy {
  display: block;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  text-align: center;
}

/* --- スマホ固定ナビ --------------------------------------------------- */
.sp-fixnav { display: none; }

/* --- フェードイン（IntersectionObserver） ----------------------------- */
.js-inview { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-inview.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-inview { opacity: 1; transform: none; transition: none; }
}

/* --- レスポンシブ ----------------------------------------------------- */
@media (max-width: 900px) {
  :root { --fs-h2: 1.5rem; --fs-h1: 1.75rem; --h-header: 76px; }

  .site-header__logo img { height: 56px; }
  .site-header__toggle { display: block; }

  .site-header__nav-wrap {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    padding: 1.4rem 1.5rem 2rem;
    display: none;
  }
  .site-header.is-open .site-header__nav-wrap { display: block; }

  .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--c-line-soft);
  }
  .site-nav a.is-current { border-bottom-color: var(--c-accent); }

  .site-header__cta { flex-direction: column; margin-top: 1.4rem; }
  .site-header__cta .btn { display: block; text-align: center; }

  .site-footer { padding-bottom: 6.5rem; }

  .sp-fixnav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--c-bg-white);
    border-top: 1px solid var(--c-line);
  }
  .sp-fixnav a {
    padding: 12px 4px;
    text-align: center;
    font-size: var(--fs-small);
    color: var(--c-text);
    text-decoration: none;
    border-right: 1px solid var(--c-line-soft);
  }
  .sp-fixnav a:last-child { border-right: 0; }
  .sp-fixnav a.is-accent { background: var(--c-accent); color: #fff; }
}

/* --- 下層ページ共通 ------------------------------------------------- */
.l-section { padding: 4.5rem 0; }
.l-section--tint  { background: var(--c-bg-tint); }
.l-section--white { background: var(--c-bg-white); }

.page-hero { background: var(--c-bg-tint); padding: 3rem 0 3.6rem; }
.page-hero__title {
  font-family: var(--f-serif); font-weight: 500;
  font-size: var(--fs-h1); color: var(--c-heading);
  letter-spacing: var(--ls-head); line-height: var(--lh-head);
  margin: 0 0 1.4rem;
}
.page-hero__catch {
  font-family: var(--f-serif); font-size: var(--fs-h3);
  color: var(--c-heading); letter-spacing: 0.14em; margin: 0 0 0.3rem;
}
.page-hero__sub { font-size: var(--fs-lead); line-height: var(--lh); margin: 0; max-width: 42em; }

.p-breadcrumb { font-size: var(--fs-small); color: var(--c-text-sub); margin-bottom: 2.2rem; }
.p-breadcrumb a { color: inherit; text-decoration: none; }
.p-breadcrumb a:hover { color: var(--c-primary); text-decoration: underline; }
.p-breadcrumb span::before { content: "／"; margin: 0 0.5em; color: var(--c-line); }

/* 施設概要テーブル */
.facility-table { width: 100%; border-collapse: collapse; background: var(--c-bg-white); }
.facility-table th,
.facility-table td { border: 1px solid var(--c-line-soft); padding: 14px 20px; text-align: left; vertical-align: top; font-weight: 400; }
.facility-table th { width: 28%; background: var(--c-bg-white); color: var(--c-heading); font-weight: 500; }
.facility-table a { color: var(--c-primary); }

/* 「確認中」バッジ（公開前に全て実データへ置換すること） */
.u-tbc {
  display: inline-block; font-size: var(--fs-small); line-height: 1.6;
  color: #8A6A14; background: #FBF3DF;
  border: 1px dashed #C9A227; border-radius: 2px; padding: 2px 12px;
}

/* 連絡パネル */
.contact-panel {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; align-items: center;
  background: var(--c-bg-white); border: 1px solid var(--c-line); border-radius: 2px;
  padding: 2rem 2.4rem; margin-top: 2rem;
}
.contact-panel__label { display: block; font-size: var(--fs-small); color: var(--c-text-sub); }
.contact-panel__tel {
  display: block; font-family: var(--f-serif); font-size: 2rem;
  letter-spacing: 0.04em; color: var(--c-heading); text-decoration: none; line-height: 1.5;
}
.contact-panel__tel:hover { color: var(--c-primary); }
.contact-panel__btns { display: grid; gap: 10px; min-width: 240px; }

.map-embed { border: 1px solid var(--c-line); background: var(--c-bg-white); line-height: 0; margin-top: 1.6rem; }

/* FAQ */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.6rem 1.15rem 0; font-weight: 500; color: var(--c-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--c-accent-dk); font-size: var(--fs-h3); line-height: 1;
}
.faq details[open] summary::after { content: "－"; }
.faq .faq__a { margin: 0; padding: 0 0 1.4rem; }

/* CTAバンド（明るい若草の帯・文字は濃オリーブでAA確保） */
.cta-band {
  background: var(--c-band); color: #fff;
  text-align: center; padding: 4.2rem 0 4.6rem; margin-top: 5rem;
}
.cta-band__title {
  color: #fff;
  font-weight: 700;
  font-family: var(--f-serif); font-size: 2rem;
  letter-spacing: var(--ls-head); margin: 0 0 0.8rem;
}
.cta-band__text { margin: 0 0 2rem; line-height: var(--lh); }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn--ghost { background: #fff; color: #55801F; border-color: #fff; }
.btn--ghost:hover { background: #3D5A1B; color: #fff; border-color: #3D5A1B; }

/* 追従ヘッダー（一度消え、しきい値超で上から降りてくる） */
.site-header.is-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(50, 47, 42, .07);
  animation: header-drop .35s ease;
}
@keyframes header-drop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.is-fixed { animation: none; }
}

/* 下層ページのレスポンシブ */
@media (max-width: 900px) {
  .l-section { padding: 3.2rem 0; }
  .page-hero { padding: 2.2rem 0 2.6rem; }
  .facility-table th,
  .facility-table td { display: block; width: auto; }
  .facility-table th { border-bottom: 0; padding-bottom: 8px; }
  .facility-table td { border-top: 0; padding-top: 0; padding-bottom: 14px; }
  .contact-panel { grid-template-columns: 1fr; padding: 1.6rem 1.4rem; }
  .contact-panel__btns { min-width: 0; }
  .cta-band { margin-top: 3.2rem; }
}

/* --- 動画FV（クリックで再生するYouTubeファサード） ----------------- */
.video-fv {
  position: relative;
  max-width: 880px;
  margin-top: 2.4rem;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-fv img,
.video-fv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fv img { object-fit: cover; }
.video-fv__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-decoration: none;
}
.video-fv__play::before {
  content: "";
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.video-fv__play::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--c-primary);
  margin-left: 6px;
}
.video-fv__play:hover::before { transform: scale(1.06); }
.video-fv__play:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 4px; }

/* --- 写真プレースホルダー（実写真が届いたら差し替え） ---------------- */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ph-figure {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: var(--c-bg-tint);
  border: 1px dashed var(--c-line);
  color: var(--c-text-sub);
  font-size: var(--fs-small);
  text-align: center;
  padding: 1rem;
}
@media (max-width: 900px) {
  .ph-grid { grid-template-columns: 1fr; }
  .video-fv__play::before { width: 68px; height: 68px; }
}

/* --- FVスライドショー（CSSのみのクロスフェード・4枚24秒） ------------ */
.hero-slider {
  position: relative;
  max-width: 880px;
  margin-top: 2.4rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-white);
}
.hero-slider picture,
.hero-slider img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slider img { object-fit: cover; display: block; }
.hero-slider picture:not(:first-of-type) img {
  opacity: 0;
  animation: hero-fade 24s linear infinite;
}
.hero-slider picture:nth-of-type(2) img { animation-delay: 5s; }
.hero-slider picture:nth-of-type(3) img { animation-delay: 11s; }
.hero-slider picture:nth-of-type(4) img { animation-delay: 17s; }
@keyframes hero-fade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider picture:not(:first-of-type) img { animation: none; opacity: 0; }
}

/* --- 写真ギャラリー --------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 1.4rem;
  margin-top: 2rem;
}
.photo-grid figure { margin: 0; }
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-grid figcaption {
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  padding-top: 0.5rem;
  line-height: 1.7;
}

/* --- 一日の流れ -------------------------------------------------------- */
.day-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  counter-reset: dayflow;
}
.day-flow li {
  counter-increment: dayflow;
  background: var(--c-bg-white);
  border: 1px solid var(--c-line-soft);
  border-radius: 2px;
  padding: 1rem 0.5rem 1.1rem;
  text-align: center;
  font-weight: 500;
  color: var(--c-heading);
  line-height: 1.7;
}
.day-flow li::before {
  content: counter(dayflow, decimal-leading-zero);
  display: block;
  font-family: var(--f-serif);
  color: var(--c-accent-dk);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

/* --- ご入居までの流れ --------------------------------------------------- */
.step-flow {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  counter-reset: stepflow;
  max-width: 560px;
}
.step-flow li {
  counter-increment: stepflow;
  position: relative;
  padding: 0.9rem 0 0.9rem 64px;
  border-bottom: 1px solid var(--c-line-soft);
}
.step-flow li::before {
  content: counter(stepflow);
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-serif);
  font-size: var(--fs-nav);
}
.step-flow li b { font-weight: 500; color: var(--c-heading); }
.step-flow li .c-note { display: block; }

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0.9rem; }
  .day-flow { grid-template-columns: repeat(2, 1fr); }
}

/* --- 基本方針リスト --------------------------------------------------- */
.policy-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  counter-reset: policy;
}
.policy-list li {
  counter-increment: policy;
  position: relative;
  padding: 0.85rem 0 0.85rem 52px;
  border-bottom: 1px solid var(--c-line-soft);
}
.policy-list li::before {
  content: counter(policy);
  position: absolute;
  left: 4px; top: 1.05rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-bg-tint);
  border: 1px solid var(--c-line);
  color: var(--c-heading);
  font-family: var(--f-serif);
  font-size: var(--fs-small);
}

/* --- 全幅ヒーロー（100%×80vh・スライドショー背景＋文字オーバーレイ） --- */
.hero-full {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 320px;
  overflow: hidden;
  background: #1c2415;
}
.hero-full__slides,
.hero-full__slides picture,
.hero-full__slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-full__slides img { object-fit: cover; display: block; }
.hero-full__slides picture:not(:first-of-type) img {
  opacity: 0;
  animation: hero-fade 24s linear infinite;
}
.hero-full__slides picture:nth-of-type(2) img { animation-delay: 5s; }
.hero-full__slides picture:nth-of-type(3) img { animation-delay: 11s; }
.hero-full__slides picture:nth-of-type(4) img { animation-delay: 17s; }

.hero-full__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(24, 32, 14, .30) 0%, rgba(24, 32, 14, .12) 55%, rgba(24, 32, 14, 0) 100%);
}
.hero-full__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  color: #fff;
  letter-spacing: var(--ls-head);
  line-height: 1.7;
  margin: 0 0 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.hero-full__catch {
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #fff;
  letter-spacing: 0.16em;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.hero-full__sub {
  font-size: var(--fs-lead);
  color: #fff;
  line-height: var(--lh);
  margin: 0;
  max-width: 34em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.p-breadcrumb--bar { margin: 1.4rem auto 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-full__slides picture:not(:first-of-type) img { animation: none; opacity: 0; }
}

/* --- 流れる写真スライダー（複製トラックの無限ループ） ------------------ */
.photo-slider { overflow: hidden; margin-top: 2rem; }
.photo-slider__track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: slide-x 48s linear infinite;
}
.photo-slider:hover .photo-slider__track { animation-play-state: paused; }
.photo-slider figure { margin: 0; width: clamp(240px, 30vw, 380px); flex: none; }
.photo-slider img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-slider figcaption {
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  padding-top: 0.5rem;
  line-height: 1.7;
}
@keyframes slide-x {
  to { transform: translateX(calc(-50% - 0.7rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-slider { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .photo-slider__track { animation: none; }
}
@media (max-width: 900px) {
  .hero-full { height: 40vh; min-height: 300px; }
}

/* --- ヒーロー: スライドごとの文言＋ボタン・ケンバーンズ（ゆっくりズーム） --- */
.hero-full__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease-in-out;
}
.hero-full__slide:first-child { opacity: 1; pointer-events: auto; }
.hero-full.is-init .hero-full__slide:first-child:not(.is-active) { opacity: 0; pointer-events: none; }
.hero-full__slide.is-active { opacity: 1; pointer-events: auto; }

.hero-full__slide picture,
.hero-full__slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-full__slide img { object-fit: cover; display: block; }
.hero-full.is-init .hero-full__slide.is-active img {
  animation: hero-zoom 6s ease-out both;
}
.hero-full.is-init .hero-full__slide.is-leaving img {
  transform: scale(1.07);
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero-full__overlay {
  background: linear-gradient(to right, rgba(24, 32, 14, .30) 0%, rgba(24, 32, 14, .12) 55%, rgba(24, 32, 14, 0) 100%);
}
.hero-full__text > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-full__slide:first-child .hero-full__text > *,
.hero-full__slide.is-active .hero-full__text > * { opacity: 1; transform: none; }
.hero-full.is-init .hero-full__slide:first-child:not(.is-active) .hero-full__text > * { opacity: 0; }
.hero-full__slide.is-active .hero-full__text > *:nth-child(1) { transition-delay: .45s; }
.hero-full__slide.is-active .hero-full__text > *:nth-child(2) { transition-delay: .65s; }
.hero-full__slide.is-active .hero-full__text > *:nth-child(3) { transition-delay: .85s; }
.hero-full__btn { margin: 1.6rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-full__slide, .hero-full__text > * { transition: none; }
  .hero-full.is-init .hero-full__slide.is-active img { animation: none; }
}

/* --- 葉の装飾（ロゴモチーフ・緑の濃淡で舞う） -------------------------- */
.has-leaves { position: relative; }
.has-leaves > .l-container,
.has-leaves > .media-row { position: relative; z-index: 1; }
.leaves {
  position: absolute;
  inset: 0;
  clip-path: inset(0);
  pointer-events: none;
  z-index: 0;
}
.leaf {
  position: absolute;
  animation: leaf-sway 11s ease-in-out infinite alternate;
}
.leaf path { fill: currentColor; }
.leaf--1 { width: 120px; color: #C9D66A; opacity: .34; left: -34px;  top: 8%;    rotate: -24deg; }
.leaf--2 { width: 64px;  color: #A7BC4F; opacity: .30; left: 6%;    top: 58%;   rotate: 38deg;  animation-delay: -3s; }
.leaf--3 { width: 44px;  color: #7CA845; opacity: .26; left: 13%;   top: 26%;   rotate: 140deg; animation-delay: -7s; }
.leaf--4 { width: 150px; color: #C9D66A; opacity: .30; right: -44px; top: 52%;  rotate: 158deg; animation-delay: -5s; }
.leaf--5 { width: 70px;  color: #A7BC4F; opacity: .28; right: 7%;   top: 14%;   rotate: -150deg; animation-delay: -9s; }
.leaf--6 { width: 40px;  color: #55801F; opacity: .18; right: 16%;  top: 74%;   rotate: 66deg;  animation-delay: -2s; }
@keyframes leaf-sway {
  from { translate: 0 0; }
  to   { translate: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaf { animation: none; }
}
@media (max-width: 900px) {
  .leaf--1 { width: 80px; }
  .leaf--4 { width: 96px; }
  .leaf--3, .leaf--6 { display: none; }
}

/* --- 一日の流れ（写真＋バッジ式タイムライン） -------------------------- */
.day-sched {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 1.8rem;
}
.day-sched__photo { margin: 0; }
.day-sched__photo picture,
.day-sched__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.day-sched__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.day-sched__list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: stretch;
}
.day-sched__badge {
  display: grid; place-items: center;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--f-serif);
  font-size: var(--fs-nav);
  letter-spacing: 0.12em;
  border-radius: 8px;
  padding: 0.9rem 0;
}
.day-sched__card {
  display: flex; align-items: center;
  background: var(--c-bg-white);
  border: 1px solid var(--c-line-soft);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  line-height: 1.8;
}
@media (max-width: 900px) {
  .day-sched { grid-template-columns: 1fr; }
  .day-sched__photo img { aspect-ratio: 4 / 3; height: auto; }
  .day-sched__list li { grid-template-columns: 72px 1fr; }
}

/* --- 管理者メッセージ --------------------------------------------------- */
.manager-msg {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
  margin-top: 1.8rem;
}
.manager-msg__photo { aspect-ratio: 3 / 4; }
.manager-msg__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manager-msg__catch {
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
  line-height: var(--lh-head);
  margin: 0 0 1rem;
}
.manager-msg__name {
  margin: 1.6rem 0 0;
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  line-height: 1.9;
}
@media (max-width: 900px) {
  .manager-msg { grid-template-columns: 1fr; gap: 1.4rem; }
  .manager-msg__photo { max-width: 220px; }
}

/* --- CTAバンド2列（入居相談＋求人応募） -------------------------------- */
.cta-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.cta-duo__col { display: flex; flex-direction: column; }
.cta-duo .cta-band__btns { margin-top: auto; }
.cta-duo .cta-band__title { text-align: center; }
.cta-duo .cta-band__text { text-align: center; }
.cta-duo__col:first-child { padding-right: 3rem; }
@media (max-width: 900px) {
  .cta-duo { grid-template-columns: 1fr; gap: 2.6rem; }
  .cta-duo__col:first-child { padding-right: 0; }
}

/* --- LINEボタン --------------------------------------------------------- */
.btn--line { background: #06C755; color: #fff; border-color: #06C755; }
.btn--line:hover { background: #05A648; border-color: #05A648; color: #fff; }
.btn--line__badge {
  display: inline-block;
  background: #fff; color: #06C755;
  font-size: 0.72em; font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* --- 特長カード（アイコン＋見出し＋本文の2×2グリッド） -------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--c-bg-white);
  border: 1px solid var(--c-line-soft);
  border-radius: 8px;
  padding: 2.2rem 1.9rem 2rem;
}
.feature-card__icon {
  width: 76px; height: 76px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--c-footer);
  display: grid; place-items: center;
}
.feature-card__icon svg {
  width: 36px; height: 36px;
  fill: none;
  stroke: var(--c-heading);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
  line-height: 1.7;
  text-align: center;
  margin: 0 0 0.9rem;
}
.feature-card__text { margin: 0; line-height: 1.9; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature-card { padding: 1.8rem 1.4rem 1.6rem; }
  .feature-card__icon { width: 64px; height: 64px; margin-bottom: 1rem; }
  .feature-card__icon svg { width: 30px; height: 30px; }
}

/* --- グローバルナビのドロップダウン（JSなし・hover / focus-within） ------- */
.site-nav__item {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.site-nav__item--has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.site-nav__item--has-sub:hover > a::after,
.site-nav__item--has-sub:focus-within > a::after {
  transform: translateY(1px) rotate(225deg);
}

.site-subnav {
  position: absolute;
  top: 100%; left: 50%;
  min-width: 264px;
  list-style: none; margin: 0; padding: 0.5rem 0;
  background: var(--c-bg-white);
  border: 1px solid var(--c-line-soft);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(50, 47, 42, .12);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 120;
}
.site-nav__item--has-sub:hover > .site-subnav,
.site-nav__item--has-sub:focus-within > .site-subnav {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.site-subnav a {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-nav);
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
}
.site-subnav a:hover {
  background: var(--c-footer);
  color: var(--c-heading);
}
@media (prefers-reduced-motion: reduce) {
  .site-subnav { transition: none; }
  .site-nav__item--has-sub > a::after { transition: none; }
}


@media (max-width: 900px) {
  .site-nav__item { align-self: auto; display: block; }
  .site-nav__item--has-sub > a::after { float: right; margin-top: 8px; transform: rotate(45deg); }
  .site-subnav {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    min-width: 0;
    background: transparent;
    border: 0; box-shadow: none;
    padding: 0 0 0.4rem;
  }
  .site-subnav a {
    padding: 13px 4px 13px 1.2rem;
    font-size: var(--fs-small);
    color: var(--c-text-sub);
    border-bottom: 1px solid var(--c-line-soft);
  }
  .site-subnav a:hover { background: transparent; }

}

/* --- フッター: 内容幅の4列＋余白を均等分配・下揃え（2026-08-28 統合） ---
   このブロックがフッターのグリッドとナビの唯一の定義。
   同じセレクタを他所に書き足さないこと。

   列を max-content（中身ぴったり）にしたうえで space-between で余白を
   3等分する。文字数の違いに関係なく②③の間隔が必ず等しくなる。
   ①だけ広げたい場合は下の :first-child の padding-right を増やす。 */
.site-footer__grid {
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  column-gap: 2rem;
  align-items: end;
}
.site-footer__grid > div:first-child { padding-right: 2.5rem; }

.site-footer__logo { margin: 0 0 1.4rem; }
.site-footer__logo img { height: 96px; width: auto; }
.site-footer__addr {
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  line-height: 1.9;
  margin: 0;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: none;
  gap: 0.9rem;
  align-content: end;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__nav li { margin: 0; }
.site-footer__nav a {
  font-size: var(--fs-nav);
  color: var(--c-text);
  text-decoration: none;
  display: inline-block;
  padding: 0;
  line-height: 1.7;
}
.site-footer__nav a:hover { color: var(--c-primary); text-decoration: underline; }

@media (max-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    column-gap: 1.4rem;
    row-gap: 2rem;
    align-items: start;
  }
  .site-footer__grid > div:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
  }
  .site-footer__logo img { height: 72px; }
  .site-footer__nav { gap: 0.75rem; align-content: start; }
  .site-footer__nav a { padding: 3px 0; }
}

/* ==========================================================================
   トップページ用（2026-08-27 追加）
   ここから下は index.php でのみ使用。既存4ページには影響しない。
   ========================================================================== */

/* --- ヒーロー: トップだけ背を高くする --------------------------------- */
.hero-full--home { height: 62vh; min-height: 440px; }

/* --- ボタン: 明るい背景の上に置くアウトライン型 ------------------------ */
.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-accent);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* --- セクション: 淡い若草の帯 ----------------------------------------- */
.l-section--leaf { background: var(--c-footer); }

/* --- 写真カード（サービス4枚・ブログ3枚で共用） ------------------------ */
.card-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pic-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-white);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(61, 90, 27, .13);
  color: inherit;
}
.pic-card__media {
  display: block;
  overflow: hidden;
  background: var(--c-footer);
}
.pic-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.pic-card:hover .pic-card__media img { transform: scale(1.05); }
.pic-card__noimg { display: block; width: 100%; aspect-ratio: 4 / 3; }
/* ブログのアイキャッチは 16:9 のバナー画像。
   4:3 で切ると左右のロゴと文字が欠け、1200:630 では上下が欠ける。
   画像の比率と一致させて、切らずに全体を見せる。
   サービス紹介と求人カードは写真なので 4:3 のまま。 */
.card-grid--blog .pic-card__media img,
.card-grid--blog .pic-card__noimg { aspect-ratio: 16 / 9; }

.pic-card__body {
  display: block;
  padding: 1.4rem 1.3rem 1.6rem;
}
.pic-card__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.pic-card__title {
  display: block;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
  line-height: 1.7;
  margin-bottom: 0.7rem;
}
.pic-card__text {
  display: block;
  font-size: var(--fs-small);
  line-height: 1.9;
}

/* --- 写真＋テキストの非対称2列 ---------------------------------------- */
/* 写真側を画面端まで抜くため l-container の外に置く。 */
.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
  margin-top: 2.4rem;
}
.media-row__text {
  width: min(100% - 3rem, calc(var(--w-content) / 2 - 1.75rem));
  margin-left: auto;
  margin-right: 0;
  padding-block: 1rem;
}
.media-row__media img,
.media-row__media picture {
  display: block;
  width: 100%;
}
.media-row__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-row__catch {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
  line-height: 1.8;
  margin: 0 0 1.4rem;
}
.media-row__text p { margin: 0 0 1.2rem; }
.media-row__text p:last-child { margin-bottom: 0; }

/* 左右反転（写真が左・テキストが右） */
.media-row--reverse .media-row__text { order: 2; margin-left: 0; margin-right: auto; }
.media-row--reverse .media-row__media { order: 1; }

@media (max-width: 900px) {
  .media-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .media-row__text {
    width: min(100% - 3rem, var(--w-content));
    margin-inline: auto;
    order: 2 !important;
  }
  .media-row__media { order: 1 !important; }
}

/* --- 理念の4本柱（カード枠を持たない横並び） --------------------------- */
.pillar-row {
  list-style: none;
  margin: 3rem 0 1.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.pillar-row li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--c-accent);
}
.pillar-row b {
  display: block;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--c-heading);
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.pillar-row span {
  display: block;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--c-text-sub);
}

/* --- お知らせ一覧 ------------------------------------------------------ */
.news-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.news-list__item { margin: 0; }
.news-list__link {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 0.4rem 1.6rem;
  background: var(--c-bg-white);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  transition: background-color .2s ease;
}
.news-list__link:hover { background: var(--c-footer); color: inherit; }
.news-list__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}
.news-list__date {
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  letter-spacing: 0.06em;
}
.news-list__cat {
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.35em 0.9em;
  background: var(--c-footer);
  color: var(--c-heading);
  border-radius: 2px;
}
.pic-card__cat {
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.35em 0.9em;
  background: var(--c-footer);
  color: var(--c-heading);
  border-radius: 2px;
  letter-spacing: 0;
}
.news-list__title { line-height: 1.8; }
.news-list__item--empty {
  background: var(--c-bg-white);
  padding: 1.1rem 1.4rem;
  color: var(--c-text-sub);
  border-radius: 2px;
}

/* --- 短いページでフッターが画面中ほどに浮くのを防ぐ ---------------------
   WordPress のカテゴリ一覧など、記事が1件しかないページで発生していた。
   body を縦のflexにして main を伸ばし、フッターを最下部へ押し下げる。
   .bg-leaves は position: fixed なのでフレックスの並びには入らない。 */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.site-body > .l-main { flex: 1 0 auto; }
.site-body > .site-header,
.site-body > .cta-band,
.site-body > .site-footer { flex: 0 0 auto; }

/* --- 会社概要のコンパクト表 -------------------------------------------- */
.facility-table--compact { margin-top: 1.6rem; }
.facility-table--compact th,
.facility-table--compact td {
  padding: 0.75rem 1rem;
  font-size: var(--fs-small);
}

/* --- 汎用ユーティリティ ------------------------------------------------ */
/* 44em だと47文字の導入文が「ます。」だけ2行目に落ちる。48emで1行に収まる。
   それでも折り返す幅では balance が行長を揃え、1〜2文字の孤立を防ぐ。 */
.u-center-lead {
  text-align: center;
  max-width: 48em;
  margin-inline: auto;
  text-wrap: balance;
}
/* ボタンを横並びにし、文字数に関わらず幅を揃える。
   inline-block のままだと折り返したとき行間に余白が入らず、
   スマホで上下のボタンがくっついていた。
   flex-basis を同じ値にして両方 grow させるので、
   ラベルの長短にかかわらず必ず同じ幅になる。 */
.u-center-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.9rem;
  margin-top: 2.6rem;
}
.u-center-btn > .btn {
  flex: 1 1 240px;
  max-width: 300px;
  text-align: center;
}
.page-hero__btns > .btn {
  flex: 1 1 200px;
  max-width: 260px;
  text-align: center;
}
@media (max-width: 600px) {
  .u-center-btn > .btn,
  .page-hero__btns > .btn { max-width: none; }
}
.u-btn-left.u-btn-left { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --- レスポンシブ ------------------------------------------------------ */
@media (max-width: 1080px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-row   { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
}
@media (max-width: 900px) {
  .hero-full--home { height: 52vh; min-height: 360px; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .news-list__link { grid-template-columns: 1fr; gap: 0.5rem; }
  .u-center-lead { text-align: left; }
}
@media (max-width: 600px) {
  .card-grid--4 { grid-template-columns: 1fr; }
  .pillar-row   { grid-template-columns: 1fr; margin-top: 2.2rem; }
}

/* --- 葉の装飾: スクロール連動パララックス（2026-08-27 追加・v2） -------
   葉ごとに移動量を変えて奥行きを出す。大きい葉ほど速く、小さい葉ほど遅い。
   回転は rotate プロパティ、そよぎは translate、パララックスは transform と
   チャンネルを分けているので3つが同時に効く。
   animation-timeline: view() 非対応ブラウザでは従来どおり静止する。
   ------------------------------------------------------------------- */
.leaves__inner { position: absolute; inset: 0; }

@supports (animation-timeline: view()) {
  .leaf {
    animation-name: leaf-sway, leaf-drift;
    animation-duration: 11s, auto;
    animation-timing-function: ease-in-out, linear;
    animation-iteration-count: infinite, 1;
    animation-direction: alternate, normal;
    animation-fill-mode: none, both;
    animation-timeline: auto, view();
    animation-range: normal, cover 0% cover 100%;
    will-change: transform;
  }
  /* --drift: 大きいほど速く動く。animation-delay は2本ぶん指定が必要。 */
  .leaf--1 { --drift: 150px; animation-delay:  0s, 0s; }
  .leaf--2 { --drift:  70px; animation-delay: -3s, 0s; }
  .leaf--3 { --drift:  34px; animation-delay: -7s, 0s; }
  .leaf--4 { --drift: 175px; animation-delay: -5s, 0s; }
  .leaf--5 { --drift:  86px; animation-delay: -9s, 0s; }
  .leaf--6 { --drift:  26px; animation-delay: -2s, 0s; }
}

@keyframes leaf-drift {
  from { transform: translateY(var(--drift, 60px)); }
  to   { transform: translateY(calc(var(--drift, 60px) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
  .leaf { animation: none; transform: none; }
}

/* --- 理念のことば（会社概要ページ） ------------------------------------ */
.creed {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  color: var(--c-heading);
  letter-spacing: 0.16em;
  line-height: 2;
  text-align: center;
  margin: 2.4rem 0 0;
}

/* ==========================================================================
   採用ページ専用（2026-08-27 追加）
   サービスページと印象を変えるための部品。/recruit/ でのみ使用。
   ========================================================================== */

/* --- 3列の枠線カード（福利厚生・教育体制など） ------------------------- */
.feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card--plain { text-align: center; }
.feature-card--plain .feature-card__title { margin-bottom: 0.6rem; }
.feature-card--plain .feature-card__text { text-align: left; }

/* --- 帯状の情報ブロック（子育て支援・キャリアステップ） ----------------- */
.note-block {
  background: var(--c-footer);
  padding: 1.5rem 1.8rem;
  border-radius: 2px;
  margin-top: 1rem;
}
.note-block b {
  display: block;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.note-block span { display: block; line-height: 1.9; }

/* --- 時刻つきタイムライン（1日の働き方例） ----------------------------- */
.timeline {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--c-footer);
}
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.6rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-bg-white);
}
.timeline time {
  display: inline-block;
  min-width: 5.2em;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--c-heading);
  letter-spacing: 0.06em;
}
.timeline p { margin: 0.25rem 0 0; line-height: 1.9; }

/* --- 数字カード（数字でみる） ------------------------------------------ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--c-bg-white);
  border: 1px solid var(--c-line-soft);
  border-radius: 4px;
  padding: 1.1rem 1.4rem;
}
.stat-card__label {
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  line-height: 1.6;
}
.stat-card__value {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--c-primary);
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}
.stat-card__value small {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-left: 0.15em;
}
.stat-card__value em {
  display: block;
  font-style: normal;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-sub);
  line-height: 1.7;
  white-space: normal;
}
.stat-card--wide { grid-column: 1 / -1; }
.stat-card--text .stat-card__value {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-primary);
  white-space: normal;
  text-align: right;
  max-width: 60%;
}

/* --- 人物カード（施設長・サービス提供責任者の紹介） -------------------- */
.person-card {
  background: var(--c-bg-white);
  border-radius: 4px;
  padding: 2rem 2.2rem 2.2rem;
  margin-top: 1.6rem;
}
.person-card__head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--c-footer);
  margin-bottom: 1.4rem;
}
.person-card__photo {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-footer);
  display: grid;
  place-items: center;
}
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card__name {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
  line-height: 1.6;
  margin: 0;
}
.person-card__role {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}
.person-card dl { margin: 0; }
.person-card dt {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-primary);
  letter-spacing: 0.04em;
  margin-top: 1.2rem;
}
.person-card dt:first-child { margin-top: 0; }
.person-card dd { margin: 0.35rem 0 0; line-height: 1.95; }

/* --- 動画埋め込み ------------------------------------------------------ */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.8rem;
  background: var(--c-footer);
  border-radius: 4px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FAQのカテゴリ見出し ----------------------------------------------- */
.faq-group { margin-top: 2.4rem; }
.faq-group:first-of-type { margin-top: 1.6rem; }
.faq-group > h3 {
  font-size: var(--fs-h3);
  color: var(--c-heading);
  margin: 0 0 0.9rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--c-accent);
  line-height: 1.6;
}

/* --- 事業所名の小見出し ------------------------------------------------ */
.sub-label {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--c-primary);
  letter-spacing: 0.08em;
  margin: 2.6rem 0 0.6rem;
}
.sub-label:first-of-type { margin-top: 1.4rem; }

/* --- レスポンシブ ------------------------------------------------------ */
@media (max-width: 900px) {
  .feature-grid--3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card--text .stat-card__value { max-width: 55%; }
  .person-card { padding: 1.6rem 1.4rem 1.8rem; }
  .person-card__head { gap: 1rem; }
  .person-card__photo { width: 64px; height: 64px; }
}

/* --- 下層見出し帯（採用ページ用・写真FVの代わり） ---------------------- */
.page-hero--band {
  background: var(--c-band);
  padding: 3.2rem 0 3.4rem;
  text-align: center;
}
.page-hero--band .page-hero__title { color: #fff; margin-bottom: 0.9rem; }
.page-hero--band .page-hero__sub {
  color: #fff;
  max-width: none;
  margin: 0 auto 1.8rem;
}
.page-hero__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0;
}
@media (max-width: 600px) {
  .page-hero--band { padding: 2.4rem 0 2.6rem; }
}

/* --- 2列（コンテンツ幅に収め、写真の背後に色面をずらして重ねる） -------
   .media-row--framed を足すと、写真が画面端まで抜けずコンテンツ幅に収まる。
   写真の左下（reverse では右下）に淡い若草の四角がずれて重なる。
   ------------------------------------------------------------------- */
.media-row--framed {
  width: min(100% - 3rem, var(--w-content));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.media-row--framed .media-row__text {
  width: auto;
  margin: 0;
  padding-block: 0;
}
.media-row--framed .media-row__media {
  position: relative;
  isolation: isolate;
}
.media-row--framed .media-row__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -28px -28px auto;
  width: 100%;
  height: 100%;
  background: var(--c-footer);
  border-radius: 2px;
}
.media-row--framed.media-row--reverse .media-row__media::before {
  inset: auto auto -28px -28px;
}
.media-row--framed .media-row__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .media-row--framed { grid-template-columns: 1fr; gap: 2.4rem; }
  .media-row--framed .media-row__media::before { inset: auto -16px -16px auto; }
  .media-row--framed.media-row--reverse .media-row__media::before { inset: auto auto -16px -16px; }
}

/* --- タイムラインを大きく・はっきり見せる ------------------------------ */
.timeline--bold {
  padding-left: 0;
  border-left: 0;
  display: grid;
  gap: 0.7rem;
}
.timeline--bold li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding: 0;
  background: var(--c-bg-white);
  border-radius: 4px;
  overflow: hidden;
}
.timeline--bold li::before { content: none; }
.timeline--bold time {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  padding: 1rem 0.6rem;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}
.timeline--bold p {
  margin: 0;
  padding: 0.9rem 1.4rem 0.9rem 0;
  font-size: var(--fs-body);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .timeline--bold li { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 0.9rem; }
  .timeline--bold time { font-size: 1rem; padding: 0.9rem 0.4rem; }
  .timeline--bold p { padding: 0.8rem 1rem 0.8rem 0; font-size: var(--fs-small); }
}

/* --- 人物カード: 写真を左に置く2カラムへ ------------------------------- */
.person-card__head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 3px solid var(--c-footer);
  margin-bottom: 1.4rem;
}
.person-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  background: var(--c-footer);
  display: block;
}
.person-card__photo picture { display: block; width: 100%; height: 100%; }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-card__photo .ph-figure { aspect-ratio: 3 / 4; height: 100%; }
.person-card__meta { padding-top: 0.4rem; }
.person-card__name { font-size: 1.5rem; }
.person-card__kana {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-text-sub);
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

@media (max-width: 700px) {
  .person-card__head { grid-template-columns: 1fr; gap: 1.2rem; }
  .person-card__photo { max-width: 200px; }
}

/* ==========================================================================
   ブログ記事本文（WordPress / SWELL）を静的ページと同じ見た目に揃える
   .post_content の中だけに効くので、静的ページには一切影響しない。
   SWELLの初期スタイル（濃紺 #04384C の見出しなど）を打ち消している。
   ========================================================================== */

/* --- 記事エリアの幅と背景 ---------------------------------------------- */
/* 静的ページの .l-container と同じ幅（--w-content）に揃える。
   SWELL側の幅指定に勝つため .l-main を前置して詳細度を上げている。 */
.l-main .l-mainContent,
.l-main .l-mainContent__inner,
.l-main .l-articleBottom,
.l-main #content,
.l-main .l-content {
  width: min(100% - 3rem, var(--w-content));
  max-width: none;
  margin-inline: auto;
}
.l-main .l-mainContent__inner {
  width: 100%;
}
.l-main .p-articleHead,
.l-main .p-articleMetas,
.l-main .post_content,
.l-main .p-articleFoot,
.l-main .post_content > * {
  max-width: none;
}
/* 記事本文の面だけ白にして、外側の地色と差をつける */
.l-main .post_content {
  background: var(--c-bg-white);
  padding: 3.6rem 4rem 4rem;
  border-radius: 2px;
}
/* カテゴリバッジ */
.l-main .c-categoryLabel {
  background: var(--c-accent);
  color: #fff;
}

/* --- h2: 静的ページの c-heading と同じ（下に短い若草の線） -------------- */
.post_content h2,
.post_content h2.wp-block-heading {
  background: transparent;
  color: var(--c-heading);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-head);
  line-height: var(--lh-head);
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 3.2rem 0 1.8rem;
  position: relative;
}
.post_content h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 2px;
  margin-top: 1rem;
}
.post_content h2::before { content: none; }
.post_content > h2:first-child { margin-top: 0; }

/* --- h3: 太字・深若草。左に若草のバーでh2と差をつける ------------------- */
.post_content h3,
.post_content h3.wp-block-heading {
  background: transparent;
  color: var(--c-heading);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-head);
  line-height: var(--lh-head);
  border: 0;
  border-left: 5px solid var(--c-accent);
  border-radius: 0;
  padding: 0.1em 0 0.1em 0.8em;
  margin: 2.8rem 0 1.2rem;
}
.post_content h3::before,
.post_content h3::after { content: none; }

/* --- h4 ---------------------------------------------------------------- */
.post_content h4 {
  background: transparent;
  color: var(--c-heading);
  font-family: var(--f-serif);
  font-weight: 600;
  border: 0;
  border-bottom: 2px solid var(--c-footer);
  padding: 0 0 0.4em;
  margin: 2.2rem 0 1rem;
}
.post_content h4::before,
.post_content h4::after { content: none; }

/* --- 本文・リンク ------------------------------------------------------ */
.post_content p { line-height: var(--lh); }
.post_content a { color: var(--c-primary); }
.post_content a:hover { color: var(--c-primary-dk); }
.post_content strong { font-weight: 700; color: var(--c-heading); }
.post_content hr { border: 0; border-top: 1px solid var(--c-line-soft); margin: 2.4rem 0; }

/* --- 画像 -------------------------------------------------------------- */
.post_content figure.wp-block-image img { border-radius: 2px; }

/* --- 記事タイトル・カテゴリバッジ -------------------------------------- */
.c-postTitle__ttl {
  font-family: var(--f-serif);
  font-weight: 600;
  color: var(--c-heading);
  letter-spacing: var(--ls-head);
}
.p-articleMetas .c-categoryLabel,
.p-articleFoot .c-categoryLabel,
.c-categoryLabel {
  background: var(--c-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .l-main .post_content { padding: 2.4rem 1.8rem 2.6rem; }
}
@media (max-width: 600px) {
  .l-main .post_content { padding: 1.8rem 1.3rem 2rem; }
  .post_content h2 { margin-top: 2.4rem; }
}

/* --- ブログ側の葉の装飾（ページ全体の背景レイヤー） ---------------------
   子テーマの header.php で <div class="bg-leaves has-leaves"> を body 直下に置く。
   position: fixed なので、スクロールしても葉はその場に留まり、
   本文が上を流れていくことで奥行きが出る。
   ------------------------------------------------------------------- */
.bg-leaves {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-leaves .leaves { clip-path: none; }

/* 背景レイヤーでは、本文（最大1120px）の左右の余白に葉を配置し直す。
   セクション内装飾用の座標（left:-34px など）だと画面外で見切れるため。 */
.bg-leaves .leaf--1 { width: 260px; left: 1.5%;  right: auto; top: 6%;  opacity: .30; }
.bg-leaves .leaf--2 { width: 110px; left: 6%;    right: auto; top: 40%; opacity: .26; }
.bg-leaves .leaf--3 { width: 150px; left: 2.5%;  right: auto; top: 72%; opacity: .24; }
.bg-leaves .leaf--4 { width: 300px; right: 1%;   left: auto;  top: 22%; opacity: .28; }
.bg-leaves .leaf--5 { width: 130px; right: 6.5%; left: auto;  top: 60%; opacity: .26; }
.bg-leaves .leaf--6 { width: 90px;  right: 3%;   left: auto;  top: 86%; opacity: .20; }

/* 画面が狭いときは葉を小さくする。本文は白の不透明面なので、
   背後に回り込んだ葉は自然に隠れる。非表示にはしない。 */
@media (max-width: 1400px) {
  .bg-leaves .leaf--1 { width: 180px; }
  .bg-leaves .leaf--4 { width: 210px; }
}
@media (max-width: 900px) {
  .bg-leaves .leaf--1 { width: 120px; }
  .bg-leaves .leaf--4 { width: 140px; }
  .bg-leaves .leaf--2,
  .bg-leaves .leaf--5 { width: 80px; }
}

/* 背景レイヤーより前面に出す要素 */
.site-body > .site-header,
.site-body > .l-main,
.site-body > .cta-band,
.site-body > .site-footer,
.site-body > .sp-fixnav {
  position: relative;
  z-index: 1;
}

/* --- ブログ側: main の下にCTAが続くため、間の余白を詰める -------------- */
.l-main:has(+ .cta-band) { padding-bottom: 0; margin-bottom: 0; }
.cta-band + .site-footer { margin-top: 0; }

/* --- ブログ内のボタン・ナビを静的ページの .btn に揃える ------------------
   SWELLのボタンブロック（.wp-block-button）と前後記事ナビの濃紺を上書きする。
   ------------------------------------------------------------------- */
.l-main .wp-block-button__link,
.l-main .wp-block-button .wp-block-button__link,
.l-main .swell-block-button__link,
.l-main .swell-block-button > a,
.l-main .swell-block-linkButton__link,
.l-main .is-style-btn_normal > a,
.l-main .is-style-btn_line > a,
.l-main .is-style-btn_shiny > a,
.l-main .is-style-btn_solid > a {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: var(--ls-btn);
  line-height: 1.5;
  padding: 17px 36px;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: none;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.l-main .wp-block-button__link:hover,
.l-main .swell-block-button__link:hover,
.l-main .swell-block-button > a:hover,
.l-main .swell-block-linkButton__link:hover,
.l-main .is-style-btn_normal > a:hover,
.l-main .is-style-btn_line > a:hover,
.l-main .is-style-btn_shiny > a:hover,
.l-main .is-style-btn_solid > a:hover {
  background: var(--c-primary-dk);
  color: #fff;
}
/* SWELLのボタンは擬似要素で光沢や影を足すことがあるので消す */
.l-main .swell-block-button__link::before,
.l-main .swell-block-button__link::after { content: none; }
/* アウトライン指定のボタン */
.l-main .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.l-main .is-style-outline .wp-block-button__link:hover {
  background: var(--c-primary);
  color: #fff;
}

/* --- 前後記事ナビ ------------------------------------------------------ */
.l-main .c-prevNextNav__item {
  background: var(--c-bg-white);
  border: 1px solid var(--c-line-soft);
  border-radius: 2px;
}
.l-main .c-prevNextNav__item:hover { background: var(--c-footer); }
.l-main .c-prevNextNav__title { color: var(--c-text); }
.l-main .c-prevNextNav__item::before,
.l-main .c-prevNextNav__item::after,
.l-main .c-prevNextNav__arrow {
  background: var(--c-accent);
  color: #fff;
}

/* --- タグ ------------------------------------------------------------- */
.l-main .c-tagList__link,
.l-main .p-articleFoot .c-tagList a {
  color: var(--c-primary);
  border-color: var(--c-accent);
}

/* ヘッダーの重なり順を確定させる（WP側ページでドロップダウンが隠れるため） */
.site-header {
  position: relative !important;
  z-index: 9999 !important;
}
.site-subnav {
  z-index: 9999 !important;
}
/* WP固定ページ内のボタン（SWELLのa要素スタイルに負けるため明示） */
.l-main .btn,
.l-main .btn:link,
.l-main .btn:visited,
.l-main .btn:hover {
  color: #fff !important;
  text-decoration: none !important;
}
.l-main .btn--outline,
.l-main .btn--outline:link,
.l-main .btn--outline:visited {
  color: var(--c-primary) !important;
}

/* WPForms 進行状況インジケーター（バーとStep表記を消して、タイトルのみ） */
.wpforms-container .wpforms-page-indicator.progress {
  background-color: transparent !important;
}
.wpforms-container .wpforms-page-indicator-page-progress-wrap,
.wpforms-container .wpforms-page-indicator-page-progress,
.wpforms-container .wpforms-page-indicator-steps {
  display: none !important;
}

.wpforms-container .wpforms-page-indicator-page-title {
  color: var(--c-heading) !important;
  font-size: var(--fs-h3) !important;
  font-weight: 600 !important;
  line-height: var(--lh-head) !important;
  letter-spacing: var(--ls-head) !important;
  padding-left: .75rem !important;
  border-left: 4px solid var(--c-accent) !important;
}
.wpforms-container .wpforms-page-indicator-page-title-sep {
  display: none !important;
}