@charset "UTF-8";

/* ============================================================
   住宅の器具種別ページ
   ============================================================ */

.home-category a {
  color: #333;
}

.home-category .home-card,
.home-category .home-media,
.home-category .home-support__link,
.home-category .home-video {
  display: block;
  text-decoration: none;
}

.home-category .home-card img,
.home-category .home-media img,
.home-category .home-video img {
  transition: opacity ease-out 0.3s;
}

.home-category .home-card:hover img,
.home-category .home-media:hover img,
.home-category .home-video:hover .home-video__img img {
  opacity: 0.7;
}

.home-category figure {
  margin: 0;
}

.home-category figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* 別窓アイコン（文末） */
.home-category .home-category-blank::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: -0.1em;
  background: url(/jp/common/v4/img/icon-blank.svg) no-repeat center / contain;
}

/* ---------- 見出し・グリッドの余白 ---------- */

.home-category .headline--h3 {
  margin-bottom: 32px;
}

.home-category .home-category-subttl {
  margin-top: 120px;
}

.home-category .home-category-grid {
  row-gap: 64px;
}

.home-category .home-category-btn {
  margin-top: 64px;
}

/* ---------- リード ---------- */

.home-category .home-category-lead {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- 背景つきの帯 ---------- */

.home-category .home-category-bg {
  margin-bottom: 120px;
  padding: 64px 0;
  background-color: #F2F2F2;
  box-shadow: 0 0 0 100vmax #F2F2F2;
  clip-path: inset(0 -100vmax);
}

.home-category .home-category-bg .btn__link {
  background-color: #fff;
}

.home-category .home-category-bg > .section-wrapper {
  margin-bottom: 0;
}

/* 最後の帯の下は V4 の標準（.wrapper の下余白）に任せる */
.home-category > .home-category-bg:last-child {
  margin-bottom: 0;
}

/* ---------- カード（画像＋見出し＋本文） ---------- */

.home-category .home-card__ttl {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.home-category .home-card__txt {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- インタビュー（画像を横に置く） ---------- */

.home-category .home-media {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.home-category .home-media__img {
  flex: 0 0 46.8%;
}

.home-category .home-media__body {
  flex: 1 1 auto;
  min-width: 0;
}

.home-category .home-media__ttl {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.home-category .home-media__txt {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.home-category .home-media__note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- 動画（クリックでモーダル） ---------- */

.home-category .home-video {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.home-category .home-video__ttl {
  display: block;
  margin-top: 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.home-category-modal {
  width: min(880px, calc(100vw - 48px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.home-category-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.home-category-modal__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.home-category-modal__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-category-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6L26 26M26 6L6 26' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  cursor: pointer;
}

/* ---------- TOPICS ---------- */

.home-category .home-topics__link {
  display: block;
  text-decoration: none;
}

.home-category .home-topics__link img {
  transition: opacity ease-out 0.3s;
}

.home-category .home-topics__link:hover img {
  opacity: 0.7;
}

/* 画面幅とページ幅の広いほうに合わせる */
.home-category .home-topics__slider {
  width: max(100vw, 100%);
  margin-left: calc((100% - max(100vw, 100%)) / 2);
}

.home-category .home-topics__slide {
  width: 500px;
  height: auto;
}

.home-category .home-topics__ttl {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.home-category .home-topics__txt {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.home-category .home-topics__navigation {
  position: relative;
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 0 116px;
}

.home-category .home-topics__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  height: 30px;
}

.home-category .home-topics__pagination .swiper-pagination-bullet {
  display: block;
  width: 48px;
  height: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: 0;
  opacity: 1;
  background-color: #D5D5D5;
  transition: background-color ease-out 0.3s;
}

.home-category .home-topics__pagination .swiper-pagination-bullet:hover,
.home-category .home-topics__pagination .swiper-pagination-bullet-active {
  background-color: #454545;
}

.home-category .home-topics__controller {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 32px;
  position: absolute;
  top: 0;
  right: 0;
  height: 30px;
}

.home-category .home-topics__prev,
.home-category .home-topics__next,
.home-category .home-topics__stop {
  padding: 0;
  border: 0;
  background: transparent no-repeat center / 100% auto;
  cursor: pointer;
  transition: opacity ease-out 0.3s;
}

.home-category .home-topics__prev:hover,
.home-category .home-topics__next:hover,
.home-category .home-topics__stop:hover {
  opacity: 0.5;
}

.home-category .home-topics__prev,
.home-category .home-topics__next {
  width: 10px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.30176 1.5L1.7002 8L8.30176 14.5' stroke='%23454545' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E%0A");
}

.home-category .home-topics__next {
  transform: scale(-1, 1);
}

.home-category .home-topics__stop {
  width: 18px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='7' height='15' rx='0.5' fill='%23454545' stroke='%23454545'/%3E%3Crect x='10.5' y='0.5' width='7' height='15' rx='0.5' fill='%23454545' stroke='%23454545'/%3E%3C/svg%3E%0A");
}

.home-category .home-topics__stop.is-stop {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.2479 7.56176C14.584 7.75553 14.584 8.24447 14.2479 8.43824L1.24849 15.9328C0.914971 16.125 0.500001 15.8821 0.500001 15.4945L0.500001 0.505486C0.500001 0.117935 0.914972 -0.12503 1.24849 0.0672489L14.2479 7.56176Z' fill='%23333333'/%3E%3C/svg%3E%0A");
  background-position: 100% 50%;
  background-size: 15px auto;
}

/* ---------- 検索 ---------- */

.home-category .home-search {
  display: flex;
  gap: 40px;
  margin-top: 96px;
}

.home-category .home-search__item {
  flex: 1 1 0;
  min-width: 0;
}

.home-category .home-search__ttl {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.home-category .home-search__form {
  display: flex;
  height: 56px;
}

.home-category .home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #333;
  border-right: 0;
  border-radius: 0;
  font-size: 16px;
  box-sizing: border-box;
}

.home-category .home-search__btn {
  flex: 0 0 56px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #333 url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cpath d='M16 16L22 22' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
  cursor: pointer;
  transition: opacity ease-out 0.3s;
}

/* V4 の黒ボタンと同じホバー */
.home-category .home-search__btn:hover {
  opacity: 0.4;
}

/* ---------- Instagram ---------- */

.home-category .home-insta__link {
  display: block;
}

.home-category .home-insta__link img {
  transition: opacity ease-out 0.3s;
}

.home-category .home-insta__link:hover img {
  opacity: 0.7;
}

.home-category .home-insta__img img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-category .home-insta__btn {
  margin-top: 48px;
}

.home-category .home-insta__btn .btn__link {
  min-width: 400px;
  box-sizing: border-box;
}

/* ---------- サポート ---------- */

.home-category .home-support__ttl {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.home-category .home-support__txt {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.home-category .home-support__link .link {
  display: inline-block;
  margin-top: 24px;
}

/* カードのホバー時の「詳しく見る」（V4 のテキストリンクと同じ見た目） */
#container .home-category .home-support__link:hover .link {
  color: #333;
  font-family: inherit;
  opacity: 0.85;
  border-bottom-color: transparent;
}

.home-category .home-support__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

/* ============================================================
   SP
   ============================================================ */

@media screen and (max-width: 47.99em) {
  .home-category .headline--h3 {
    margin-bottom: 24px;
  }

  .home-category .home-category-subttl {
    margin-top: 64px;
  }

  .home-category .home-category-grid {
    row-gap: 48px;
  }

  .home-category .home-category-btn {
    margin-top: 40px;
  }

  .home-category .home-category-lead {
    font-size: 14px;
    text-align: left;
  }

  .home-category .home-category-bg {
    margin-bottom: 64px;
    padding: 64px 0;
  }

  .home-category .home-card__ttl,
  .home-category .home-media__ttl,
  .home-category .home-video__ttl,
  .home-category .home-support__ttl {
    margin-top: 16px;
    font-size: 16px;
  }

  .home-category .home-support__ttl {
    margin-top: 0;
  }

  .home-category .home-card__txt,
  .home-category .home-media__txt,
  .home-category .home-support__txt {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.71429;
  }

  .home-category .home-media {
    display: block;
  }

  .home-category .home-topics__ttl {
    margin-top: 16px;
    font-size: 16px;
  }

  .home-category .home-topics__txt {
    font-size: 14px;
    line-height: 1.71429;
  }

  .home-category .home-topics__slide {
    width: calc(327 / 375 * 100vw);
  }

  .home-category .home-topics__navigation {
    margin-top: 24px;
    padding: 0 6.4vw;
  }

  .home-category .home-topics__pagination {
    flex-wrap: nowrap;
    gap: 8px;
    height: 4px;
  }

  .home-category .home-topics__pagination .swiper-pagination-bullet {
    flex: 0 1 33px;
    width: auto;
    min-width: 0;
  }

  .home-category .home-topics__controller {
    justify-content: center;
    position: static;
    margin-top: 32px;
    height: auto;
  }

  .home-category .home-search {
    flex-direction: column;
    margin-top: 64px;
  }

  .home-category .home-search__ttl {
    font-size: 16px;
  }

  .home-category .home-search__input {
    font-size: 14px;
  }

  .home-category .home-insta__btn {
    width: auto;
    margin-top: 40px;
    margin-right: 0;
    margin-left: 0;
  }

  .home-category .home-insta__btn .btn__link {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .home-category .home-category-blank::after {
    width: 16px;
    height: 16px;
  }
}
