@charset "UTF-8";
/* トップ静的化（docs/specs/top-static-html/design.md）に伴う調整 */

html {
  scroll-behavior: smooth;
}

/* スライド: 1枚のみ表示（Splide の代わり）。横幅いっぱい、PC は最大 1100px（Q32 / Q36） */
#top-slides .splide__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
#top-slides .splide__slide img {
  width: 100%;
  height: auto;
  opacity: 1;
}
/* PC はコンテンツ幅（.section-inner と同じ 1100px）を上限に中央寄せ */
@media screen and (min-width: 641px) {
  div#top-slides .splide__slide picture {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* お知らせ（Q33）: 見出しは既存の #top-news-section のまま。本文は黒、リンクは青（Q23） */
#top-notice {
  padding: 15px 0;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}
#top-notice p {
  color: #000;
  font-size: 15px;
  line-height: 1.8;
}
#top-notice p + p {
  margin-top: 1em;
}
#top-notice a,
#top-notice a:hover {
  color: #0066cc;
  text-decoration: underline;
  word-break: break-all;
}
@media screen and (max-width: 640px) {
  #top-notice p {
    font-size: 14px;
  }
}

/* 端末カラー切替（page.js の代わり） */
#tanmatsu-sale_list_device .viewer > div img { opacity: 0; transition: opacity 1s; }
#tanmatsu-sale_list_device .viewer > div img:first-child { opacity: 1; }
#tanmatsu-sale_list_device .viewer .color-list li { cursor: pointer; }

/* 色見本にホバー中は、いったん全画像を隠す */
#tanmatsu-sale_list_device .viewer:has(.color-list li:hover) > div img { opacity: 0; }
/* ホバー中の色見本と同じ順番の画像を表示（最大6色） */
#tanmatsu-sale_list_device .viewer:has(.color-list li:nth-child(1):hover) > div img:nth-child(1),
#tanmatsu-sale_list_device .viewer:has(.color-list li:nth-child(2):hover) > div img:nth-child(2),
#tanmatsu-sale_list_device .viewer:has(.color-list li:nth-child(3):hover) > div img:nth-child(3),
#tanmatsu-sale_list_device .viewer:has(.color-list li:nth-child(4):hover) > div img:nth-child(4),
#tanmatsu-sale_list_device .viewer:has(.color-list li:nth-child(5):hover) > div img:nth-child(5),
#tanmatsu-sale_list_device .viewer:has(.color-list li:nth-child(6):hover) > div img:nth-child(6) { opacity: 1; }

/* ページトップ: JS の出し入れの代わりに常時表示（追従お申込みバナーが無いので下端寄せ） */
#pagetop {
  display: block;
  position: fixed;
  bottom: 20px;
}

/* SP ヘッダー: メニューボタン（#sp-menu）削除で高さが縮むため、元の高さを保ってロゴを上下中央に */
@media screen and (max-width: 640px) {
  header > .section-inner {
    min-height: 62px;
  }
}

/* ロゴ: ホバー処理なし・下線なし（Q22） */
header #logo a,
header #logo a:hover {
  text-decoration: none;
  opacity: 1;
}

/* 特徴1〜5 の外枠: 下余白なし（Q31） */
#anniversary5th-wrap02 {
  margin-bottom: 0;
}

/* 特徴5: 背景画像を特徴5の後ろ側に表示（Q25） */
#anniversary5th-wrap03::before {
  z-index: auto;
}

/* フッター末尾: 横幅を絞り、X / Instagram と TOKAIコミュニケーションズのロゴを横並び（Q28 / Q34） */
footer #copy {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dcdcdc;
}
footer #copy::before,
footer #copy::after {
  content: none;
}
footer #copy > div {
  float: none;
}
#copy .copy-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
#copy #sns {
  width: auto;
  gap: 10px;
}
#copy #sns li {
  margin: 0;
}
/* SNS ボタン: 円形アイコン画像を、ブランド色の角丸四角の中に置く */
#copy #sns li a {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
}
#copy #sns li img {
  display: block;
  width: 100%;
  height: 100%;
}
#copy #sns li.sns-x a {
  background: #000;
}
#copy #sns li.sns-insta a {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
@media screen and (max-width: 640px) {
  footer #copy {
    flex-direction: column;
    gap: 15px;
    padding: 20px 4%;
  }
  footer #copy > div:first-child p {
    text-align: center;
  }
}

/* FAQ: 横幅を絞って中央寄せ（Q27） */
#other-contents {
  padding: 50px 0 60px;
}
#other-contents .section-inner {
  width: auto;
  max-width: 800px;
  margin: 0 auto;
}
#other-contents .section-inner > div:first-child {
  margin-bottom: 0;
}
@media screen and (max-width: 640px) {
  #other-contents {
    padding: 8% 4% 10%;
  }
}

/* フッター: 常時表示の PAGE TOP がロゴに重ならないよう下に余白（Q28）。
   後から読み込まれる sale_tanmatsu_202401.css の footer { padding-bottom: 0 } より優先させる */
html body footer {
  padding-bottom: 100px;
}
