@charset "UTF-8";

/* 
 * Living Table Selection Guide - Scoped Style System
 * すべてのスタイルを #living-table-special 内に限定し、ヘッダー・フッターへの干渉を防止します。
 */

/* 変数定義（これ自体はスタイルを適用しません） */
#living-table-special {
  --primary-color: #4a5568;
  --bg-color: #f8f7f5;
  --card-bg: #ffffff;
  --accent-gold: #c69126;
  /* わずかに深みのあるゴールドへ */
  --text-main: #2d3748;
  --text-sub: #4d5562;
  /* 読みやすさを考慮し、少し濃く */
  --border-light: #e2e8f0;
  /* 境界をはっきりさせるため少し濃く */
  --transition-smooth: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 0.4sから0.2sへ短縮し、よりシャープなイージングに変更 */
  --transition-slow: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* 1.2sから0.8sへ */

  /* ベーススタイルをこのIDの中だけに適用 */
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Animations (Scoped) */
#living-table-special .reveal-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

#living-table-special .reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Typography Overrides (Scoped) */
#living-table-special h1,
#living-table-special h2,
#living-table-special h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Layout Containers (Scoped) */
#living-table-special .special-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#living-table-special .feature-section {
  padding: 100px 0;
  margin: 0;
}

/* First View (Scoped) */
#living-table-special .fv-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  margin-bottom: 0 !important;
}

@media (min-width: 1025px) {
  #living-table-special .fv-section {
    background-attachment: fixed;
  }
}

#living-table-special .fv-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

#living-table-special .fv-content {
  position: relative;
  z-index: 10;
  padding: 40px;
}

#living-table-special .fv-subtitle {
  font-size: 1.6rem;
  margin-bottom: 20px;
  display: block;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.3em;
}

#living-table-special .fv-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 30px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Sticky Navigation (Scoped) */
#living-table-special .diagnosis-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-light);
}

#living-table-special .chip-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  overflow-x: auto;
  padding: 5px 0;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#living-table-special .chip-container::-webkit-scrollbar {
  display: none;
}

#living-table-special .nav-chip {
  padding: 10px 25px;
  background: var(--border-light);
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
}

#living-table-special .nav-chip:first-child {
  margin-left: 20px;
}

#living-table-special .nav-chip:last-child {
  margin-right: 20px;
}

#living-table-special .chip-container::after {
  content: "";
  display: block;
  padding-right: 1px;
}

@media (min-width: 769px) {
  #living-table-special .chip-container {
    justify-content: center;
  }

  #living-table-special .nav-chip:first-child {
    margin-left: 0;
  }

  #living-table-special .nav-chip:last-child {
    margin-right: 0;
  }

  #living-table-special .chip-container::after {
    display: none;
  }
}

#living-table-special .nav-chip:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Section Common Styles (Scoped) */
#living-table-special .feature-section {
  padding: 100px 0;
}

#living-table-special .section-label {
  text-align: center;
  margin-bottom: 60px;
}

.section-label p {
  text-align: center;
}

#living-table-special .label-en {
  display: block;
  font-family: "Lexend Giga", sans-serif;
  font-size: 1.1rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 20px;
  font-weight: 600;
}

#living-table-special .label-jp {
  font-size: 2.5rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

#living-table-special .label-jp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
}

/* Product Grid System (Scoped) */
#living-table-special .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

#living-table-special .product-card {
  position: relative;
  background: transparent;
  border-radius: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  box-shadow: none;
}

/* リンク要素以外は触れないように */
#living-table-special .product-card:not(.featured) {
  cursor: pointer;
}

#living-table-special .product-card.featured {
  cursor: default;
}

#living-table-special .product-card:hover {
  transform: translateY(-6px);
}

/* 通常カードの画像枠だけに角丸やシャドウを付与 */
#living-table-special .product-card:not(.featured) .product-img-wrap {
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  transition: var(--transition-smooth);
}

#living-table-special .product-card:not(.featured):hover .product-img-wrap {
  box-shadow: none;
  border-color: transparent;
}

#living-table-special .product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fdfdfd;
}

#living-table-special .product-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
  /* 余白を完全に除去して枠いっぱいにする */
}

/* ホバー時のホワイトオーバーレイ用 */
#living-table-special .product-img-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  transition: background 0.15s ease;
  /* 0.3sから短縮してテキパキ反応させる */
  pointer-events: none;
}

#living-table-special .product-img-wrap:hover::after {
  background: rgba(255, 255, 255, 0.4);
  /* 画像ホバー時のみホワイトのベール */
}

/* グローバルなPタグの不用意な余白や行間を厳格にリセット */
#living-table-special p {
  margin-bottom: 0 !important;
  line-height: 1.6;
}

#living-table-special .product-info {
  padding: 5px 15px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* 不要なmarginの代わりに確実なgapで制御 */
  justify-content: flex-start;
}

#living-table-special .product-name,
#living-table-special [id^="product-name-"] {
  display: none !important;
}

#living-table-special .product-price {
  margin: 0 !important;
  line-height: 1.2 !important;
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 700;
}

#living-table-special .product-desc {
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* Featured Card Redesign (Anti-Crop & Full-Width Row) */
#living-table-special .product-card.featured {
  grid-column: 1 / -1;
  /* 専用の全幅行にする */
  flex-direction: row;
  /* PCでは横並び */
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#living-table-special .product-card.featured:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  /* シャドウを通常と同じままにする（浮かない） */
  border-color: rgba(0, 0, 0, 0.08);
  /* 少しだけ境界を濃くする程度 */
  transform: none;
  /* 浮き上がるアニメーションを無効化 */
}

#living-table-special .product-card.featured .product-img-wrap {
  width: 40%;
  aspect-ratio: auto;
  min-height: 380px;
}

#living-table-special .product-card.featured .product-img-wrap img {
  object-fit: contain !important;
  padding: 40px;
}

#living-table-special .product-card.featured .product-info {
  width: 40%;
  padding: 40px;
  gap: 15px;
  background: linear-gradient(to right, #fefefe, #ffffff);
  border-left: 1px solid var(--border-light);
  justify-content: center;
  display: flex;
  flex-direction: column;
}

/* 特大カード用のボタン */
#living-table-special .featured-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  background: var(--primary-color, #222);
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  border-radius: 8px;
  font-size: 1.#living-table-special .nav-chip5rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: background 0.15s, transform 0.15s;
  /* サクサク動かす */
}

#living-table-special .featured-btn:hover {
  background: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 特大カード用のスペック（仕様）テーブル */
#living-table-special .featured-specs {
  margin: 15px 0 20px;
  background: var(--bg-color);
  /* 背景と馴染ませる */
  border-radius: 8px;
  padding: 15px 20px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#living-table-special .featured-specs dl {
  display: flex;
  margin: 0;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 8px;
  font-size: 1.5rem;
}

#living-table-special .featured-specs dl:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#living-table-special .featured-specs dt {
  width: 70px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

#living-table-special .featured-specs dd {
  margin: 0;
  font-size: 1.4rem;
  flex: 1;
  line-height: 1.5;
}

.scene-group-label {
  font-size: 1.8rem;
}

#living-table-special .priority-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-gold);
  color: #fff;
  padding: 8px 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 0 0 16px 0;
  z-index: 5;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
}

/* 価格とバッジグループの横並びコンテナ */
#living-table-special .price-badge-group {
  display: flex !important;
  align-items: center;
  column-gap: 2px;
  /* ￥と数値の間は最低限の隙間 */
}

/* 縦積み用バッジカラム */
#living-table-special .badge-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-top: 2px;
}

/* 通常カードのバッジは右端へ寄せる (margin-left: auto) */
#living-table-special .product-card:not(.featured) .badge-col,
#living-table-special .budget-card-container .badge-col {
  margin-left: auto;
  padding-left: 10px;
  align-items: flex-end;
}

.budget-card-container h3 {
  font-size: 1.8rem !important;
}

.budget-card-container .sale-price,
.budget-card-container .price-badge-group {
  font-size: 1.8rem !important;
}


/* 送料無料バッジ */
#living-table-special .free-shipping-badge {
  font-family: "Noto Sans JP", sans-serif;
  display: inline-block;
  background: #222;
  color: #fff;
  font-size: 1.2rem;
  padding: 5px 11px;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1;
}

/* 在庫なしバッジ用 (独立した角丸長方形) */
#living-table-special .stock-badge {
  display: inline-block;
  background: #999;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  padding: 4px 12px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 4px;
  line-height: 1;
}

/* Category Specific Sections (Scoped) */
#living-table-special .bg-sub {
  background-color: #f3eee7;
}

/* Sofa Compatibility Guide (Scoped) */
#living-table-special .sofa-compatibility-visual {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

#living-table-special .guide-left,
#living-table-special .guide-right {
  flex: 1;
  padding: 60px;
}

#living-table-special .guide-right {
  background: var(--primary-color);
  color: #fff;
}

.featured .product-price {
  font-size: 2.5rem !important;
}

#living-table-special .product-desc {
  font-size: 1.6rem !important;
}


/* Media Queries (Scoped) */
@media (max-width: 1024px) {
  #living-table-special .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  #living-table-special .fv-title {
    font-size: 2.25rem;
  }

  #living-table-special .fv-section {
    height: 60vh;
    margin-bottom: 0 !important;
  }

  #living-table-special .feature-section {
    padding: 60px 0;
  }

  #living-table-special .label-jp {
    font-size: 1.75rem;
  }

  #living-table-special .nav-chip {
    padding: 8px 20px;
    font-size: 1.05rem;
  }

  #living-table-special .special-container {
    padding: 0 15px;
    /* 左右の余白を15pxに一律固定 */
  }

  /* スマホでも2カラムを維持しつつアライメント調整 */
  #living-table-special .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    /* 余白を詰めて密度感を出す */
  }

  /* 特大カードはスマホでは全幅・縦並びに */
  #living-table-special .product-card.featured {
    grid-column: 1 / -1;
    /* CSSグリッドの全幅 */
    flex-direction: column;
  }

  #living-table-special .product-card.featured .product-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: auto;
    margin: 50px auto 0;
  }

  #living-table-special .product-card.featured .product-img-wrap img {
    padding: 20px;
  }

  #living-table-special .product-info {
    padding: 12px;
  }

  #living-table-special .product-card.featured .product-info {
    padding: 20px;
    width: 100%;
    border-left: none;
    background: #fff;
  }


  /* セクションヘッダー内のサイズラベル */
  #living-table-special .header-size-label {
    font-size: 0.8em;
    font-weight: normal;
    color: var(--text-sub);
    margin-left: 10px;
    vertical-align: baseline;
    display: inline-block;
    opacity: 0.8;
  }

  @media screen and (max-width: 768px) {

    #living-table-special .featured-specs {
      margin: 15px 0 0;
    }


    #living-table-special .header-size-label {
      display: block;
      margin-left: 0;
      margin-top: 5px;
      font-size: 0.75em;
    }
  }

  /* 相性ガイドのスマホ表示アライメント */
  #living-table-special .sofa-compatibility-visual {
    flex-direction: column;
    margin-top: 20px;
  }

  #living-table-special .guide-left,
  #living-table-special .guide-right {
    padding: 40px 20px;
  }

  .scene-group {
    margin-bottom: 40px !important;
  }
}

/* =================================================================
   Budget Swiper Styles
================================================================== */
#living-table-special .budget-swiper-container {
  position: relative;
  padding: 0 50px;
  /* 矢印用のスペース */
  margin-top: 30px;
}

#living-table-special .budget-swiper {
  padding-bottom: 40px !important;
  overflow: visible !important;
  /* カードの浮き上がりが見えるように */
}

#living-table-special .budget-bracket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Swiper Navigation Customization */
#living-table-special .budget-swiper-next,
#living-table-special .budget-swiper-prev {
  color: var(--accent-gold);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

#living-table-special .budget-swiper-next:after,
#living-table-special .budget-swiper-prev:after {
  font-size: 1.2rem;
  font-weight: bold;
}

#living-table-special .budget-swiper-next:hover,
#living-table-special .budget-swiper-prev:hover {
  background: var(--accent-gold);
  color: #fff;
}

#living-table-special .budget-swiper-next {
  right: -25px;
}

#living-table-special .budget-swiper-prev {
  left: -25px;
}

#living-table-special .budget-swiper-pagination {
  bottom: 0 !important;
}

#living-table-special .budget-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent-gold);
}

@media (max-width: 768px) {
  #living-table-special .budget-swiper-container {
    padding: 0;
  }

  #living-table-special .budget-bracket-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px !important;
  }

  #living-table-special .budget-swiper-next,
  #living-table-special .budget-swiper-prev {
    display: none;
    /* スマホはスワイプ操作メイン */
  }
}

/* =================================================================
   Style Group Layout Refinement
================================================================== */
#living-table-special .style-group {
  margin-bottom: 100px;
  padding: 40px;
  border-radius: 30px;
  border-width: 1px;
  border-style: solid;
  transition: var(--transition-slow);
}

#living-table-special .style-group-header {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Noto Serif JP', serif;
}

#living-table-special .style-group-line {
  width: 50px;
  height: 3px;
  display: block;
}

#living-table-special .style-group-desc {
  color: var(--text-sub);
  margin-top: 15px;
  font-size: 1.5rem;
  line-height: 1.8;
}

/* Color Variations */
#living-table-special .style-group.natural {
  background: rgba(139, 94, 60, 0.07);
  border-color: rgba(139, 94, 60, 0.1);
}
#living-table-special .style-group.natural .style-group-line {
  background: #8b5e3c;
}

#living-table-special .style-group.modern {
  background: rgba(74, 85, 104, 0.07);
  border-color: rgba(74, 85, 104, 0.1);
}
#living-table-special .style-group.modern .style-group-line {
  background: #4a5568;
}

#living-table-special .style-group.design {
  background: rgba(214, 158, 46, 0.07);
  border-color: rgba(214, 158, 46, 0.1);
}
#living-table-special .style-group.design .style-group-line {
  background: var(--accent-gold);
}

@media (max-width: 768px) {
  #living-table-special .style-group {
    padding: 24px 15px; /* スマホ表示で左右の空きを削減 */
    border-radius: 16px;
    margin-bottom: 50px;
  }
  
  #living-table-special .style-group-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    flex-wrap: wrap; /* 長いタイトルに対応 */
    gap: 10px;
  }
  
  #living-table-special .style-group-line {
    width: 30px;
  }

  #living-table-special .style-group-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-top: 15px;
  }
}