/* =========================================================
   トップページだけで読む CSS
   ========================================================= */

/* ---------- 新着のお知らせ：スマホ・タブレットは見出し → 一覧 → ボタンの順。1024px からは見出しとボタンを左、一覧を右（元のサイトと同じく縦の中央にそろえる）
   元のサイトは 769px から2列だったが、日付とボタンが元より大きく、1023px までの2列ではボタンが2行に折れ、題名も3行に詰まるため 1024px からにしている ---------- */
.home-news {
  display: grid;
  gap: 24px;
}

/* 1023px までは、見出しとボタンのまとまりをほどき、ボタンを一覧の下へ回す */
.home-news .home-news__head {
  display: contents;
}

.home-news .home-news__title {
  order: 1;
}

.home-news .home-news__query {
  order: 2;
}

.home-news .home-news__more {
  order: 3;
}
@media (min-width: 1024px) {
  .home-news .home-news__head {
    display: block;
  }

  .home-news .home-news__query {
    order: 0;
  }
}
@media (min-width: 1024px) {
  .home-news {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }
}

.home-news > *,
.home-news__head > * {
  margin: 0;
}

.home-news .home-news__title {
  font-size: clamp(20px, 2.8vw, 28px);
  letter-spacing: 0.14em;
  text-align: center;
}
@media (min-width: 1024px) {
  .home-news .home-news__title {
    text-align: left;
  }
}

.home-news .home-news__more {
  justify-content: center;
  margin-top: 16px;
}
@media (min-width: 1024px) {
  .home-news .home-news__more {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

/* ---------- 会社紹介：青い写真の上に白い文字。写真は元のサイトと同じ色のまま出す（幕は重ねない。2026-11-23 ユーザー指示） ---------- */
.layout-main .home-about {
  max-width: var(--width--wide);
}

.home-about {
  position: relative;
  display: grid;
  min-height: 450px;
  overflow: hidden;
  color: var(--color--white);
  text-align: center;
}

.home-about__image,
.home-about__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-about__image img {
  display: block;
  object-fit: cover;
}

.home-about__content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(48px, 8vw, 96px) 6%;
}

.home-about .home-about__title {
  margin: 0 0 clamp(24px, 3vw, 35px);
  color: var(--color--white);
  font-size: clamp(20px, 3.4vw, 30px);
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-wrap: balance;
}

.home-about .home-about__text {
  margin: 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 2;
}

/* 2つ目の段落の前は1行ぶん空ける（元のサイトは1つの段落の中で空行を入れていた） */
.home-about .home-about__text + .home-about__text {
  margin-top: 1.8em;
}

.home-about .home-about__action {
  justify-content: center;
  margin-top: 40px;
}

/* ---------- 取り扱い製品：カード2列（スマホは1列） ---------- */
.home-products > * {
  margin: 0;
}

.home-products .home-products__lead {
  margin-top: 24px;
  text-align: center;
}

.home-products .home-products__list {
  display: grid;
  gap: 24px;
  margin-top: clamp(32px, 5vw, 48px);
}
@media (min-width: 768px) {
  .home-products .home-products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-products__list > * {
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background-color: var(--color--surface);
}

.product-card > * {
  margin: 0;
}

.product-card .product-card__title {
  font-size: clamp(18px, 2.4vw, 21px);
  letter-spacing: 0.08em;
  text-align: center;
}

.product-card .product-card__lead {
  margin-top: 8px;
  color: var(--color--ink);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-align: center;
}

.product-card .product-card__image {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;
}

.product-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.product-card .product-card__text {
  margin-top: 16px;
}

.product-card .product-card__text + .product-card__text {
  margin-top: 8px;
}

.product-card .product-card__action {
  justify-content: center;
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- 新着トピックス：カードの形は style.css の .topics-list・.topics-card（トピックス一覧と共通） ---------- */
/* 1023px までは4件まで（元のサイトと同じ）。1024px からは6件 */
.home-topics .topics-list > li:nth-child(n+5) {
  display: none;
}
@media (min-width: 1024px) {
  .home-topics .topics-list > li:nth-child(n+5) {
    display: list-item;
  }
}

.home-topics .topics-list > li:nth-child(4) .topics-card {
  margin-bottom: 0;
}

.section .home-topics__more {
  justify-content: center;
  margin-top: clamp(32px, 5vw, 48px);
}
