/* ==========================================================================
   10. Page-specific (minimal)
   ========================================================================== */


/* --- Top page: blocks 2-9 now inherit base.css .sec / .sec__inner
   as-is (下層と統一・改修#5トップ展開、2026-08-22)。
   旧 .page-top{background:var(--bg)} / .page-top .sec{padding:0} /
   .page-top .sec__inner{...} は全て削除。body の --beige がそのまま
   透過し、各 .sec__inner の白ブロックが乗る構成になる。 */

/* --- Top page: Hero FV（再設計 2026-08-22・修正版2）---
   .top-hero は全幅・白背景・下角丸30pxで固定（.top-hero自身は
   position指定なし）。絶対配置の基準は .top-hero__photo
   （position:relative）。.top-hero__body以下はphotoの内側にネスト
   されているため、座標はphoto左上基準の直値がそのまま使える
   （裁定2）。overflow:hidden は使用しない。 */
.top-hero {
  width: 100%;
  background: var(--bg);
  border-radius: 0 0 30px 30px;
}

.top-hero__photo {
  position: relative;
  width: 1134px;
  height: 531px;
  margin: 0 auto;
  background: url('../img/top/top_pc.jpg') center / contain no-repeat;
}

.top-hero__body {
  /* 絶対配置の子要素のみを持つラッパー。自身のスタイルは不要 */
}

.top-hero__catch {
  position: absolute;
  left: 52px;
  top: 59px;
  width: 261px;
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  color: #4a3f30;
  line-height: 1.4;
}

.top-hero__catch-first {
  font-size: 46px;
}

.top-hero__lead {
  position: absolute;
  left: 52px;
  top: 219px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  margin-left: -12px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
}

/* --- Top page: About link --- */
.top-about__link {
  margin-top: var(--space-md);
  text-align: right;
}

.top-about__link a {
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
}

.top-about__link a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --- Top page: Voices (parent testimonials) --- */
.voices {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
}

.voices__photo {
  flex: 0 0 30%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.voices__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.voices__item {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.voices__quote {
  font-size: var(--fs-base);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.voices__attr {
  font-size: var(--fs-sm);
  color: var(--ink);
  opacity: 0.6;
  font-style: normal;
}

.voices__more {
  grid-column: 1 / -1;
  margin-top: var(--space-md);
  text-align: right;
}

.voices__more a {
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
}

.voices__more a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.link-leaf__icon {
  height: 26px;
  width: auto;
  display: block;
}

/* --- Top page: News list "more" link --- */
.top-news__more {
  margin-top: var(--space-md);
  text-align: right;
}

.top-news__more a {
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
}

.top-news__more a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --- Top page: Care lead text --- */
.top-care__lead {
  margin-bottom: var(--space-md);
}

/* --- Top page: Care item per-card colors --- */
.page-top .care-item:nth-child(1) { background: #fceaef; } /* admission tint */
.page-top .care-item:nth-child(2) { background: #fdf3d4; } /* life tint */
.page-top .care-item:nth-child(3) { background: #e4f1df; } /* about tint */
.page-top .care-item:nth-child(4) { background: #e4f1df; } /* about tint */
.page-top .care-item:nth-child(5) { background: var(--tint-blue); }

/* --- Top page: Card grid 4-column variant --- */
.card-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.card--link {
  display: block;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.card--link:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card--link .card__title {
  color: var(--accent);
}

/* --- Top page: Guide grid (3-column, icon nav) --- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  justify-items: center;
}

.guide-grid__item {
  width: 100%;
}

.guide-grid__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-weight: var(--font-weight-bold);
  transition: box-shadow 0.2s;
}

.guide-grid__item a:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: var(--accent);
}

.guide-grid__icon {
  height: 52px;
  width: auto;
}

.guide-grid__label {
  font-size: var(--fs-sm);
  text-align: center;
}

/* --- Top page: 関連リンク（ブロック10, .guide-grid--links, 5.17）--- */
.guide-grid--links svg.guide-grid__icon {
  fill: currentColor;
}

.guide-grid--links .guide-grid__icon--green {
  color: #93BB50;
}

.guide-grid--links .guide-grid__icon--pink {
  color: var(--btn-bg);
}

.guide-grid--links .guide-grid__icon--yellow {
  color: #FEDC4D;
}

.guide-grid--links .guide-grid__item a {
  height: 100%;
}

.guide-grid--links .guide-grid__sub {
  display: block;
  font-weight: 400;
  font-size: var(--fs-sm);
}



@media (max-width: 600px) {
  /* Top page: .sec / .sec__inner は base.css のSP定義（8px／30px 20px）
     をそのまま継承させるため、page-top固有の上書きはここでは行わない
     （下層と統一・改修#5トップ展開） */

  /* Top hero SP（修正 2026-08-22・計画チャット承認）
     padding-bottom: リード最終行下端→ヒーロー下端を30px確保する値として
     var(--space-xl)(64px)に確定（SP 390px iframe計測済み） */
  .top-hero {
    width: 100%;
    padding-bottom: var(--space-xl);
  }

  .top-hero__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 393 / 531;
    margin: 0;
    background-image: url('../img/top/top_sp.jpg');
  }

  .top-hero__catch {
    left: 23px;
    top: 320px;
    width: 185px;
    font-size: 30px;
  }

  .top-hero__catch-first {
    font-size: 35px;
  }

  .top-hero__lead {
    left: 23px;
    top: 460px;
    white-space: nowrap;
    font-size: 14px;
    background: none;
    padding: 0;
    margin-left: 0;
    border-radius: 0;
  }

  /* Voices SP */
  .voices {
    flex-direction: column;
  }

  .voices__photo {
    flex: none;
    width: 100%;
  }

  .voices__photo img {
    aspect-ratio: 16 / 9;
  }

  .voices__grid {
    grid-template-columns: 1fr;
  }

  /* Card grid 4col → 2col on SP */
  .card-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Guide grid SP: 2col + center last row */
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA単独セクション: 白カードを出さずベージュに直置き */
.sec--plain > .sec__inner {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.sec--plain .cta-box {
  box-shadow: 0 8px 32px rgba(99, 84, 64, .22);
}
