/* =========================================================
   風雅テレビボード お部屋10選
   PC用 / ShopServeフリーページ / 本文幅1025px
   HTML: fuga-rooms.css 読み込みページ用
   ========================================================= */

:root{
  --fuuga-bg:#f6f2eb;
  --fuuga-card:#fffdfa;
  --fuuga-ink:#2d241d;
  --fuuga-muted:#75695f;
  --fuuga-line:#ddd3c7;
  --fuuga-line-soft:#ebe3da;
  --fuuga-brown:#2d241d;
  --fuuga-brown-hover:#70481d;
  --fuuga-gold:#a66d25;
  --fuuga-gold-soft:#f3e8d8;
  --fuuga-green-soft:#edf3e9;
  --fuuga-blue-soft:#edf1f4;
  --fuuga-beige-soft:#f5eee5;
  --fuuga-width:1025px;
}

/* このページ内の共通設定 */
.page-header,
.control-bar,
.room-list,
.page-note{
  box-sizing:border-box;
  width:100%;
  max-width:var(--fuuga-width);
  margin-left:auto;
  margin-right:auto;
  color:var(--fuuga-ink);
  font-family:"Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
}

.page-header *,
.control-bar *,
.room-list *,
.page-note *{
  box-sizing:border-box;
}

/* =========================================================
   ページタイトル
   ========================================================= */
.page-header{
  padding:36px 22px 30px;
  background:#fbf8f3;
  border-top:1px solid var(--fuuga-line-soft);
  border-bottom:1px solid var(--fuuga-line);
  text-align:center;
}

.page-header h1{
  margin:0;
  color:var(--fuuga-ink);
  font-family:"Shippori Mincho","Yu Mincho",serif;
  font-size:32px;
  font-weight:600;
  letter-spacing:.035em;
  line-height:1.4;
}

.page-header h1 strong{
  margin:0 2px;
  color:var(--fuuga-gold);
  font-size:44px;
  font-weight:500;
  line-height:1;
}

.page-header p{
  margin:12px 0 0;
  color:var(--fuuga-muted);
  font-size:13px;
  line-height:1.8;
}

/* =========================================================
   STEP 1 / STEP 2
   ========================================================= */
.control-bar{
  background:#f8f4ed;
  border-bottom:1px solid var(--fuuga-line);
}

.control-inner{
  width:100%;
  padding:20px 14px 21px;
}

/* STEP 1：材種 */
.material-filter-wrap{
  display:grid;
  grid-template-columns:185px 1fr;
  gap:18px;
  align-items:center;
}

.material-filter-heading span,
.material-filter-heading strong,
.material-filter-heading small{
  display:block;
}

.material-filter-heading span{
  margin-bottom:2px;
  color:var(--fuuga-gold);
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
}

.material-filter-heading strong{
  font-family:"Shippori Mincho","Yu Mincho",serif;
  font-size:18px;
  font-weight:600;
  line-height:1.45;
}

.material-filter-heading small{
  margin-top:4px;
  color:var(--fuuga-muted);
  font-size:11px;
  line-height:1.6;
}

.material-filter{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}

.material-filter button{
  min-width:0;
  height:50px;
  padding:0 5px;
  appearance:none;
  -webkit-appearance:none;
  border:1px solid var(--fuuga-line);
  border-radius:4px;
  background:#fffdfa;
  color:#574a40;
  cursor:pointer;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.material-filter button:hover{
  border-color:#b68a56;
  color:#6e461a;
  transform:translateY(-1px);
}

.material-filter button.active{
  background:var(--fuuga-brown);
  border-color:var(--fuuga-brown);
  color:#fff;
  box-shadow:0 4px 12px rgba(45,36,29,.14);
}

/* STEP 2：サイズ */
.size-switch{
  margin-top:16px;
  padding-top:16px;
  display:grid;
  grid-template-columns:185px repeat(4,minmax(0,1fr));
  gap:8px;
  align-items:center;
  border-top:1px solid var(--fuuga-line);
  transition:opacity .2s ease;
}

.size-switch-label{
  display:block;
  color:var(--fuuga-ink);
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}

.size-switch-label b{
  display:block;
  margin-bottom:2px;
  color:var(--fuuga-gold);
  font-size:10px;
  letter-spacing:.14em;
}

.size-switch button{
  min-width:0;
  min-height:54px;
  padding:7px 4px;
  appearance:none;
  -webkit-appearance:none;
  border:1px solid var(--fuuga-line);
  border-radius:4px;
  background:#fffdfa;
  color:#5f534a;
  cursor:pointer;
  font-family:inherit;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}

.size-switch button span,
.size-switch button small{
  display:block;
}

.size-switch button span{
  font-size:14px;
  font-weight:700;
  line-height:1.25;
}

.size-switch button small{
  margin-top:3px;
  color:inherit;
  opacity:.72;
  font-size:10px;
  line-height:1.2;
}

.size-switch button.active{
  background:var(--fuuga-gold);
  border-color:var(--fuuga-gold);
  color:#fff;
}

.size-switch.is-disabled{
  opacity:.43;
}

.size-switch button:disabled{
  cursor:not-allowed;
}

/* =========================================================
   一覧エリア
   ========================================================= */
.room-list{
  padding:20px 6px 48px;
  background:var(--fuuga-bg);
}

/* 材種未選択時 */
.select-first{
  min-height:150px;
  padding:28px 30px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  background:#fffdfa;
  border:1px solid var(--fuuga-line);
  border-radius:7px;
}

.select-first-mark{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--fuuga-gold-soft);
  color:var(--fuuga-gold);
  font-family:"Shippori Mincho","Yu Mincho",serif;
  font-size:16px;
}

.select-first strong{
  display:block;
  font-family:"Shippori Mincho","Yu Mincho",serif;
  font-size:19px;
  font-weight:600;
  line-height:1.5;
}

.select-first p{
  margin:3px 0 0;
  color:var(--fuuga-muted);
  font-size:11px;
  line-height:1.7;
}

/* 選択した材種の画像が未登録の場合 */
.filter-empty{
  min-height:150px;
  padding:35px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:#fffdfa;
  border:1px dashed var(--fuuga-line);
  border-radius:7px;
}

.filter-empty strong{
  font-family:"Shippori Mincho","Yu Mincho",serif;
  font-size:16px;
  font-weight:600;
}

.filter-empty span{
  margin-top:5px;
  color:var(--fuuga-muted);
  font-size:11px;
  line-height:1.7;
}

/* hidden属性はレイアウト指定より優先する */
.room-card[hidden],
.select-first[hidden],
.filter-empty[hidden]{
  display:none !important;
}

/* =========================================================
   お部屋カード
   左：画像420px / 中央：説明 / 右：商品導線190px
   ========================================================= */
.room-card{
  width:100%;
  min-height:315px;
  margin:0 0 16px;
  display:grid;
  grid-template-columns:420px minmax(0,1fr) 190px;
  overflow:hidden;
  background:var(--fuuga-card);
  border:1px solid var(--fuuga-line);
  border-radius:8px;
  box-shadow:0 3px 12px rgba(45,36,29,.045);
}

/* 画像：トリミングせず全体を表示 */
.room-image{
  position:relative;
  min-height:315px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#f3eee7;
}

.room-image img{
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  object-fit:contain;
  object-position:center center;
  transition:opacity .18s ease;
}

.room-no{
  position:absolute;
  top:11px;
  left:11px;
  min-width:38px;
  height:27px;
  padding:0 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:3px;
  background:rgba(45,36,29,.82);
  color:#fff;
  font-family:"Shippori Mincho","Yu Mincho",serif;
  font-size:12px;
}

/* 中央：スタイル名・説明・寸法 */
.room-main{
  min-width:0;
  padding:23px 22px 20px;
  border-right:1px solid var(--fuuga-line);
}

.room-tag{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:0 10px;
  border-radius:3px;
  color:#655547;
  font-size:11px;
  line-height:1;
}

.room-tag.beige{background:var(--fuuga-beige-soft);}
.room-tag.green{background:var(--fuuga-green-soft);}
.room-tag.blue{background:var(--fuuga-blue-soft);}
.room-tag.gold{background:var(--fuuga-gold-soft);}

.room-main h2{
  margin:8px 0 0;
  color:var(--fuuga-ink);
  font-family:"Shippori Mincho","Yu Mincho",serif;
  font-size:26px;
  font-weight:600;
  line-height:1.4;
}

.room-main h2 .num{
  margin-right:8px;
  color:var(--fuuga-gold);
  font-size:31px;
  font-weight:400;
}

.room-desc{
  margin:11px 0 13px;
  color:#665b52;
  font-size:14px;
  line-height:1.8;
}

.room-features{
  display:flex;
  gap:7px 12px;
  flex-wrap:wrap;
}

.room-features span{
  position:relative;
  padding-left:15px;
  color:#6d6259;
  font-size:12px;
  line-height:1.65;
  white-space:nowrap;
}

.room-features span::before{
  content:"";
  position:absolute;
  top:50%;
  left:0;
  width:9px;
  height:9px;
  transform:translateY(-50%);
  border-radius:50%;
  background:#eadfce;
  box-shadow:inset 0 0 0 1px #ddcfbd;
}

.room-spec{
  margin-top:14px;
  padding-top:11px;
  display:flex;
  gap:13px;
  flex-wrap:wrap;
  border-top:1px dashed #e3d9ce;
  color:#82766c;
  font-size:11px;
  line-height:1.6;
}

.room-spec strong{
  color:#342a23;
  font-size:12px;
  font-weight:700;
}

/* 右：サイズ・商品詳細ボタン */
.room-action{
  min-width:0;
  padding:24px 15px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.size-badge{
  min-width:92px;
  padding:9px 12px;
  border-radius:3px;
  background:var(--fuuga-gold);
  color:#fff;
  font-size:14px;
  font-weight:700;
  letter-spacing:.04em;
}

.tv-guide{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:#51443a;
  font-size:11px;
  white-space:nowrap;
}

.width-icon{
  color:#7e5a31;
  font-size:16px;
  line-height:1;
}

.action-line{
  width:100%;
  margin:14px 0;
  border-top:1px solid var(--fuuga-line);
}

.room-cta{
  width:100%;
  min-height:52px;
  padding:0 11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  border-radius:3px;
  background:var(--fuuga-brown);
  color:#fff !important;
  text-decoration:none !important;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  white-space:nowrap;
  transition:background .18s ease;
}

.room-cta:hover{
  background:var(--fuuga-brown-hover);
}

.room-cta .arrow{
  flex:0 0 auto;
  font-size:18px;
  line-height:1;
}

/* JS側で無効状態を付ける場合に使用 */
.room-cta.is-disabled{
  pointer-events:none;
  opacity:.42;
}

.action-sub{
  margin-top:9px;
  color:#90847a;
  font-size:9px;
  line-height:1.55;
}

/* =========================================================
   画像切り替え時の状態表示
   JSが .is-loading / .is-unavailable を付与する場合に使用
   ========================================================= */
.room-image::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:rgba(255,253,250,0);
  transition:background .18s ease;
}

.room-image.is-loading::after{
  background:rgba(255,253,250,.14);
}

.room-image.is-unavailable::after{
  content:"このサイズの画像を準備中";
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:0 10px 10px;
  background:linear-gradient(transparent 65%,rgba(45,36,29,.62));
  color:#fff;
  font-size:8px;
  letter-spacing:.03em;
}

/* =========================================================
   注記・キーボード操作
   ========================================================= */
.page-note{
  margin-top:-30px;
  margin-bottom:40px;
  padding:0 10px;
  color:#8a7e73;
  font-size:8px;
  text-align:center;
}

.material-filter button:focus-visible,
.size-switch button:focus-visible,
.room-cta:focus-visible{
  outline:2px solid #c79a5f;
  outline-offset:2px;
}

/* =========================================================
   ShopServe PCレイアウト
   左サイドバーを非表示にし、本文を1025pxへ拡張
   ========================================================= */
@media (min-width:761px){
  #sub-column{
    display:none !important;
  }

  #main-column{
    width:1025px !important;
    max-width:1025px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    float:none !important;
  }
}
