/************************************
** トップページ専用の強化スタイル
** 対象は body.home（フロントページ）のみ。記事ページ（.article 配下）には影響しない。
** 方針：「片づいた後の、静かな部屋」。煽らない・元気系にしない・没個性なテンプレ装飾
** （角丸カード＋均一シャドウ、意味のない連番、ALL CAPSラベル）は避ける。
************************************/

body.home .u-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.home .u-fade.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.home .u-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ヒーロー：フルブリード写真に、短い一言を重ねる。#main.mainの左右padding(20px)分だけ打ち消して画面幅いっぱいにする。
   vw基準のbreak-outは使わない（スクロールバー幅の分だけ計算がずれ、環境によって横スクロールや中央ズレの原因になるため） */
body.home .u-hero {
  margin: 0 -20px -24px;
  position: relative;
}
body.home .u-hero__frame {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 56px));
  overflow: hidden;
  position: relative;
}
body.home .u-hero__frame img {
  display: block;
  height: 62vw;
  max-height: 560px;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}
body.home .u-hero__scrim {
  background: linear-gradient(0deg, rgba(20, 22, 24, 0.58) 0%, rgba(20, 22, 24, 0.12) 42%, rgba(20, 22, 24, 0) 68%);
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}
body.home .u-hero__caption {
  bottom: 76px;
  color: #fff;
  left: 50%;
  max-width: 100%;
  padding: 0 20px;
  position: absolute;
  transform: translateX(-50%);
  width: 100%;
}
body.home .u-hero__caption p {
  font-size: clamp(22px, 18px + 1.6vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
@media screen and (max-width: 600px) {
  body.home .u-hero__frame { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 28px)); }
  body.home .u-hero__frame img { height: 78vw; max-height: 380px; }
  body.home .u-hero__caption { bottom: 36px; }
}

/* トップページの見出しは並列項目（FAQ的）であり手順ではないため、記事ページ用の連番(01/02..)は出さない */
body.home .entry-content h2::before {
  content: none;
}
body.home .entry-content h2 {
  margin-top: 56px;
}

/* 導入文（ヒーロー直下） */
body.home .u-lede {
  border-left: 3px solid var(--primary);
  margin: 0 0 48px;
  padding-left: 20px;
}

/* テーマ一覧：均一な角丸カードではなく、罫線で区切った横並びリスト。番号は使わない（順序ではないため） */
body.home .u-list {
  border-top: 1px solid var(--rule);
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}
body.home .u-list__item {
  align-items: flex-start;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 20px;
  padding: 24px 0;
}
body.home .u-list__icon {
  flex: none;
  height: 40px;
  margin-top: 2px;
  width: 40px;
}
body.home .u-list__body {
  flex: 1 1 auto;
  min-width: 0;
}
body.home .u-list__title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 4px;
}
body.home .u-list__body p:last-child {
  color: var(--muted);
  margin: 0;
}

/* 3つの立場（家族・大家・近隣）：カードではなく、話者ごとに区切った語りかけ形式 */
body.home .u-voices {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 48px;
}
body.home .u-voice {
  border-top: 3px solid var(--primary);
  padding: 20px 24px 0;
}
body.home .u-voice + .u-voice {
  border-left: 1px solid var(--rule);
}
body.home .u-voice__role {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}
body.home .u-voice p:last-child {
  margin-bottom: 0;
}
@media screen and (max-width: 720px) {
  body.home .u-voices { grid-template-columns: 1fr; }
  body.home .u-voice + .u-voice { border-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}

/* 写真を多用する場合のフレーム（角丸なし、罫線のみでトーンを合わせる） */
body.home .u-photo {
  border: 1px solid var(--rule);
  display: block;
  height: auto;
  width: 100%;
}
body.home .u-photo-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 40px;
}
@media screen and (max-width: 834px) {
  body.home .u-photo-row { grid-template-columns: repeat(2, 1fr); }
}
