@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 導入セクションの基本設定 */
section.introduction {
  font-family: 'Shippori Mincho', serif;
  color: #333;
}

/* トップ画像とタイトル */
h2.cover {
  width: 80%;
  margin: 0 auto;
}

/* 住宅における「ノイズ」 */
.noise-container {
  width: 100%;
  background-color: #f0f0f0;
  margin-top: 64px;
  padding: 32px 0;
}

.noise-inner-container {
  width: 65%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 64px;
  margin: 0 auto;
}

.noise-image-box {
  flex: 1;
}

.noise-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.noise-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 0;
}

.noise-text {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
}

/* 家具のようなキッチン */
article.furniture-container {
  margin: 64px auto 0;
  display: flex;
  flex-direction: row-reverse;
  gap: 64px;
  padding: 32px 0;
  align-items: center;
}

/* 使いやすさへのこだわり */
article.function-container {
  margin: 64px auto 0;
  display: flex;
  flex-direction: row;
  gap: 64px;
  padding: 32px 0;
  align-items: center;
}

/* 家具・使いやすさ共通 */
div.introduction-inner-container {
  width: 65%;
  margin: 0 auto;
}

.ff-image-box,
.ff-text-box {
  flex: 1;
}

.ff-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 0;
}

.ff-text {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
}

/* アコーディオンセクションの基本設定 */
section.accordion-sections {
  width: 65%;
  margin: 50px auto;
  font-family: 'Shippori Mincho', serif;
  color: #333;
}

h3.section-heading {
  font-size: 32px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3em;
  font-weight: bold;
}

h3.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 100%;
  height: 1px;
  background-color: #333;
}

h4.content-title {
  font-size: 22.4px;
  position: relative;
  font-weight: bold;
}

h4.content-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #333;
}

.text-box {
  font-size: 17.6px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-align: justify;
}

.section-subtitle {
  font-size: 20px;
  font-weight: 600;
}

h5 {
  font-size: 19.2px;
  font-weight: bold;
}

.sensor-card h6 {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.sensor-card p {
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
}

picture img {
  max-width: 100%;
  height: auto;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
}

.swiper-slide p {
  font-size: 15.2px;
  text-align: justify;
}

/* アコーディオン開閉ボタン */
.accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 32px;
  text-align: center;
  font-size: 19.2px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #ccc;
  transition: background 0.3s ease;
  font-family: 'Shippori Mincho', serif;
  color: #333;
}

.accordion-toggle:hover {
  background: #f7f7f7;
}

.accordion-toggle::after {
  content: '';
  border: solid #333;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 5px;
  transform: rotate(45deg);
  position: absolute;
  right: 32px;
  top: 50%;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.accordion-toggle.active::after {
  transform: rotate(-135deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin: 20px 0;
}

/* キッチン */
.image-wrapper {
  position: relative;
  display: inline-block;
}

.section-main-image {
  display: block;
  width: 100%;
  height: auto;
}

.section-subtitle {
  position: absolute;
  bottom: 15px;
  right: 10px;
  color: #fff;
  font-size: 20px;
  max-width: 60%;
}

.equipment-item {
  margin-top: 70px;
}

/* ワークトップ */
.title-under-text {
  margin-top: 10px;
}

.compare-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 15px;
}

.before-image-container,
.after-image-container {
  padding: 25px;
  flex: 1;
}

.before-image-container {
  background-color: #E6E3DF;
}

.after-image-container {
  background-color: #F4EFEA;
}

.arrow-box {
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 25px solid #7a7a7a;
}

.before-image-box,
.after-image-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 10px;
  gap: 15px;
  width: 100%;
}

.before-image-box picture,
.after-image-box picture {
  display: block;
  max-width: 100%;
  height: auto;
  flex: 1;
}

.before-image-box picture:nth-of-type(1),
.after-image-box picture:nth-of-type(1) {
  aspect-ratio: 1 / 1;
  flex: 1.5;
}

.before-image-box picture:nth-of-type(2),
.after-image-box picture:nth-of-type(2) {
  aspect-ratio: 4 / 3;
  flex: 3;
}

.before-image-box img,
.after-image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* レンジフード */
.range-hood-container {
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.range-hood-container .image-box {
  flex: 3;
}

.range-hood-container .text-box {
  flex: 4;
}

/* タッチレス水栓 */
.tap-container {
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.tap-container .image-box {
  flex: 3;
}

.tap-container .text-box {
  flex: 4;
}

.triple-sensor-container {
  background-color: #f0f0f0;
  margin-top: 30px;
  padding: 20px 30px;
}

.sensor-swiper {
  margin-top: 20px;
}

.sensor-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media screen and (min-width: 769px) {
  .sensor-swiper .swiper-wrapper {
    display: flex;
    gap: 24px;
  }

  .sensor-swiper .swiper-slide {
    flex: 1;
    /* ← PCだけ */
  }
}

/* デフォルトではドットや矢印を非表示（PC用） */
.sensor-pagination,
.wsaport-pagination,
.sensor-button-prev,
.sensor-button-next,
.wsaport-button-prev,
.wsaport-button-next {
  display: none;
}

/* Wサポートシンク */
@media screen and (min-width: 769px) {
  .wsaport-swiper .swiper-wrapper {
    display: flex;
    gap: 24px;
  }

  .wsaport-swiper .swiper-slide {
    flex: 1;
    /* ← PCだけ */
  }
}

.swiper-slide.first-saport-container,
.swiper-slide.second-saport-container,
.swiper-slide.third-saport-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wsaport-swiper {
  margin-top: 20px;
}

/* カップボード標準採用 */
.cupboard-item {
  margin-top: 20px;
}

.basis-container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 30px;
}

.basis-container .image-box {
  flex: 3;
}

.basis-container .text-box {
  flex: 2;
}

/* カップボード天板と木目調吊り戸 */
.cupboard-inner {
  display: flex;
  flex-direction: row;
  gap: 64px;
  margin-top: 70px;
}

.cupboard-inner-item {
  flex: 1;
}

.cupboard-worktop-container,
.wall-cabinet-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* メインフローリング */
.interior-item {
  margin-top: 70px;
}

.interior-item:nth-of-type(1) {
  margin-top: 20px;
}

.mainfloor-container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 30px;
}

.mainfloor-container .image-box {
  flex: 3;
}

.mainfloor-container .text-box {
  flex: 4;
}

/* 耐水フローリング */
.sanitaryfloor-container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 30px;
}

.sanitaryfloor-container .image-box {
  flex: 3;
}

.sanitaryfloor-container .text-box {
  flex: 4;
}

/* リビングドアとスリム巾木 */
.interior-inner {
  display: flex;
  flex-direction: row;
  gap: 64px;
  margin-top: 70px;
}

.interior-inner-item {
  flex: 1;
}

.livingdoor-container,
.skirting-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media screen and (max-width: 768px) {
  h2.cover {
    width: 95%;
  }

  .noise-container {
    margin-top: 32px;
    padding: 16px 0;
  }

  .noise-inner-container {
    width: 90%;
    flex-direction: column;
    gap: 16px;
  }

  .noise-title {
    font-size: 22.4px;
    margin-bottom: 12px;
  }

  .noise-text {
    margin-top: 0;
    font-size: 14.4px;
  }

  /* 家具のようなキッチン */
  article.furniture-container {
    margin: 32px auto 0;
    flex-direction: column;
    gap: 8px;
    padding: 0;
  }

  /* 使いやすさへのこだわり */
  article.function-container {
    margin: 32px auto 0;
    flex-direction: column;
    gap: 8px;
    padding: 0;
  }

  /* 家具・使いやすさ共通 */
  div.introduction-inner-container {
    width: 90%;
  }

  .ff-title {
    font-size: 22.4px;
    margin-bottom: 12px;
  }

  .ff-text {
    margin-top: 0;
    font-size: 14.4px;
  }

  /* アコーディオンセクションの基本設定 */
  section.accordion-sections {
    width: 90%;
  }

  h3.section-heading {
    font-size: 22.4px;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }

  h4.content-title {
    font-size: 17.6px;
  }

  .text-box {
    font-size: 14.4px;
  }

  .section-subtitle {
    font-size: 14.4px;
  }

  h5 {
    font-size: 14.4px;
  }

  h6 {
    font-size: 12px;
  }

  .swiper-slide p {
    font-size: 12px;
  }

  .equipment-item {
    margin-top: 55px;
  }

  .equipment-item:nth-of-type(1) {
    margin-top: 45px;
  }

  .section-subtitle {
    position: static;
    /* 絶対位置を解除して自然なフローに */
    margin-top: 10px;
    /* 画像との間に余白 */
    text-align: center;
    /* 中央寄せ */
    color: #333;
    /* 指定の文字色 */
    max-width: 100%;
    /* 幅制限解除 */
  }

  .compare-container {
    flex-direction: column;
  }

  .arrow-box {
    border: none;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid #7a7a7a;
  }

  .before-image-container,
  .after-image-container {
    padding: 20px 15px;
  }

  .range-hood-container {
    margin-top: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .tap-container {
    margin-top: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .triple-sensor-container {
    margin-top: 15px;
    padding: 20px 20px;
  }

  .sensor-swiper .swiper-slide {
    width: auto;
    /* Swiperが計算する幅を優先 */
    flex: none;
  }

  /* ドットはSPで表示 */
  .sensor-pagination,
  .wsaport-pagination {
    display: block;
    margin-top: 12px;
    text-align: center;
  }

  .cupboard-item {
    margin-top: 10px;
  }

  .basis-container {
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }

  /* カップボード天板と木目調吊り戸 */
  .cupboard-inner {
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
  }

  .cupboard-worktop-container,
  .wall-cabinet-container {
    margin-top: 20px;
    gap: 10px;
  }

  /* メインフローリング */
  .interior-item {
    margin-top: 55px;
  }

  .mainfloor-container {
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }

  /* 耐水フローリング */
  .sanitaryfloor-container {
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }

  /* リビングドアとスリム巾木 */
  .interior-inner {
    flex-direction: column;
    gap: 55px;
    margin-top: 55px;
  }

  .livingdoor-container,
  .skirting-container {
    margin-top: 20px;
  }
}