/*
 * トップページ専用スタイル
 */

/*
 * ヒーロー
 */
.home-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px 64px;
  align-items: end;
  padding: 104px 0 88px;
  border-bottom: 1px solid var(--color-rule);
}

.home-hero__text {
  display: flex;
  gap: 38px;
  min-width: 0;
}

.home-hero__tagline {
  writing-mode: vertical-rl;
  letter-spacing: 0.42em;
  padding-top: 6px;
  flex-shrink: 0;
}

.home-hero__kicker {
  margin-bottom: 26px;
  text-transform: uppercase;
}

.home-hero__title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.home-hero__lead {
  margin-top: 36px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.home-hero__button {
  padding: 0 34px;
}

.home-hero__visual {
  padding: 10px;
}

.home-hero__visual img {
  height: 420px;
}

/*
 * セクション共通
 */
.home-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--color-rule);
}

/*
 * 01 最新情報
 */
.home-news {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-rule);
}

.home-news__item {
  display: grid;
  grid-template-columns: minmax(110px, 140px) 110px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid var(--color-rule);
}

.home-news__date {
  font-feature-settings: "tnum";
}

.home-news__label {
  padding: 5px 0;
  min-width: 0;
}

/*
 * 02 ３つの柱
 */
.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-rule);
}

.home-pillar {
  padding: 44px 32px;
  min-width: 0;
}

.home-pillar + .home-pillar {
  border-left: 1px solid var(--color-rule);
}

.home-pillar__visual {
  margin-bottom: 28px;
}

.home-pillar__visual img {
  height: 200px;
}

.home-pillar__kicker {
  margin-bottom: 18px;
}

.home-pillar__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* ラベルは見出しの中に並べるので、行内に収まる大きさにする */
.home-pillar__label {
  display: inline-flex;
  min-width: 0;
  padding: 3px 9px;
}

.home-pillar__note {
  margin-top: 16px;
}

/*
 * SP
 */
@media (max-width: 767px) {
  /* ヒーロー: キッカー → 見出し → タグライン → リード → 写真 → ボタン の順に縦積み */
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 44px 0 40px;
  }

  .home-hero__text,
  .home-hero__copy {
    display: contents;
  }

  .home-hero__kicker {
    order: 1;
    margin-bottom: 16px;
  }

  .home-hero__title {
    order: 2;
  }

  .home-hero__tagline {
    order: 3;
    writing-mode: horizontal-tb;
    letter-spacing: 0.3em;
    padding-top: 0;
    margin-top: 12px;
  }

  .home-hero__lead {
    order: 4;
    margin-top: 26px;
  }

  .home-hero__visual {
    order: 5;
    margin-top: 32px;
  }

  .home-hero__visual img {
    height: 230px;
  }

  .home-hero__actions {
    order: 6;
    display: grid;
    gap: 12px;
    margin-top: 26px;
  }

  .home-hero__button {
    width: 100%;
    padding: 0;
  }

  .home-section {
    padding: 40px 0;
  }

  /* 日付・ラベルを1行目、タイトルを2行目に */
  .home-news__item {
    grid-template-columns: auto auto 1fr;
    gap: 8px 14px;
    padding: 18px 2px;
  }

  .home-news__label {
    padding: 3px 9px;
  }

  .home-news__title {
    grid-column: 1 / -1;
  }

  .home-pillars {
    grid-template-columns: 1fr;
    gap: 32px;
    border-top: 0;
  }

  .home-pillar {
    padding: 0;
  }

  .home-pillar + .home-pillar {
    border-left: 0;
    border-top: 1px solid var(--color-rule);
    padding-top: 32px;
  }

  .home-pillar__visual {
    margin-bottom: 20px;
  }

  .home-pillar__visual img {
    height: 180px;
  }

  .home-pillar__kicker {
    margin-bottom: 12px;
  }

  .home-pillar__title {
    gap: 10px;
    margin-bottom: 14px;
  }

  .home-pillar__note {
    margin-top: 14px;
  }
}
