/* =========================================================
   風雅キャビネット一覧（凛キャビネット一覧 rin-cb-list.css のクラス名を fgcb- に置き換え、
   凛テレビボード rin-tv-list.css のタイプ切替を足したもの）
   file: fuuga-cb-list.css
   置き場所：https://kyno.jp/css/list/fuuga-cb-list.css
   スマホ版の説明欄では一番外の枠に fgcb-list--sp を付ける（凛キャビネットのスマホ版と同じ作り）
   ========================================================= */

.fgcb-list {
    background: #F2EFE5;
    color: #211E1A;
    font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
    max-width: 750px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: left;
}

.fgcb-list *,
.fgcb-list *::before,
.fgcb-list *::after {
    box-sizing: border-box;
}

.fgcb-list img {
    max-width: 100%;
    height: auto;
}

/* ---------- 材種タブ（5材種） ---------- */
.fgcb-material-tabs {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #D9D3C0;
    background: #FBFAF6;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.fgcb-material-tab {
    flex: 1;
    padding: 18px 4px;
    border: 0;
    border-right: 1px solid #D9D3C0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5C5648;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.fgcb-material-tab:last-child {
    border-right: 0;
}

.fgcb-material-tab.is-active {
    background: #37493A;
    color: #fff;
    border-bottom-color: #C9A66B;
}

.fgcb-material-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: -2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.fgcb-material-swatch--walnut {
    background: #4A2E1E;
}

.fgcb-material-swatch--oak {
    background: #C9A66B;
}

.fgcb-material-swatch--cherry {
    background: #9A5534;
}

.fgcb-material-swatch--ash {
    background: #EDE6D6;
}

.fgcb-material-swatch--sendan {
    background: #C8874A;
}

.fgcb-material-panel {
    display: none;
    border: 1px solid #D9D3C0;
    border-top: 0;
    background: #FBFAF6;
    padding: 32px;
    box-shadow: 0 10px 26px -18px rgba(33, 30, 26, .25);
}

.fgcb-material-panel.is-active {
    display: block;
}

/* ---------- 共通スタイル（rindt-css-xx と同じ番号） ---------- */

.fgcb-css-01 {
    padding: 28px 28px 0;
}

.fgcb-css-02 {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #37493A;
    margin-bottom: 10px;
}

.fgcb-css-03 {
    font-family: serif;
    font-size: 30px;
    line-height: 1.5;
    margin: 0 0 16px;
    font-weight: 700;
}

.fgcb-css-04 {
    font-size: 14.5px;
    line-height: 2;
    color: #5C5648;
    margin: 0 0 24px;
}

.fgcb-css-05 {
    width: 100%;
    display: block;
    border-top: 1px solid #D9D3C0;
    border-bottom: 1px solid #D9D3C0;
}

.fgcb-css-06 {
    padding: 32px 28px 6px;
}

.fgcb-css-07 {
    border-left: 4px solid #C9A66B;
    padding-left: 16px;
    margin-bottom: 22px;
}

.fgcb-css-08 {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #37493A;
    margin-bottom: 7px;
}

.fgcb-css-09 {
    font-family: serif;
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 700;
}

.fgcb-css-10 {
    font-size: 13.5px;
    color: #5C5648;
    line-height: 1.9;
    margin: 0;
}

.fgcb-css-12 {
    font-family: serif;
    font-size: 21px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.fgcb-css-13 {
    font-family: monospace;
    font-size: 12px;
    color: #37493A;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
}

.fgcb-css-14 {
    width: 100%;
    border-collapse: collapse;
}

.fgcb-css-15 {
    width: 280px;
    vertical-align: top;
    padding: 0;
}

.fgcb-css-16 {
    width: 260px;
    max-width: 100%;
    border: 1px solid #D9D3C0;
    background: #fff;
    display: block;
    aspect-ratio: 1 / 1;   /* 元の写真が正方形で、3:2に切るとキャビネットの上下が切れるため */
    object-fit: cover;
}

/* キャッチを句の切れ目でだけ改行させる（語の途中で切れないように） */
.fgcb-nb {
    display: inline-block;
}

.fgcb-css-17 {
    vertical-align: top;
    padding: 0 0 0 26px;
}

.fgcb-css-18 {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #5C5648;
    margin-bottom: 16px;
    font-weight: 700;
}

.fgcb-css-19 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fgcb-css-20 {
    display: inline-block;
    padding: 13px 16px;
    border: 2px solid #D9D3C0;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: monospace;
    color: #211E1A;
    text-decoration: none;
    min-width: 74px;
    text-align: center;
}

.fgcb-css-21 {
    font-family: serif;
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.fgcb-css-22 {
    background: #FBFAF6;
    border: 1px solid #D9D3C0;
    padding: 24px;
}

.fgcb-css-25 {
    padding: 16px 28px 6px;
}

.fgcb-css-27 {
    background: #FBFAF6;
    border: 1px solid #D9D3C0;
    padding: 24px;
}

.fgcb-css-28 {
    font-family: monospace;
    font-size: 11.5px;
    color: #37493A;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.fgcb-css-29 {
    font-family: serif;
    font-size: 19px;
    margin: 0 0 10px;
}

.fgcb-css-30 {
    font-size: 13.5px;
    color: #5C5648;
    line-height: 1.9;
    margin: 0 0 14px;
}

.fgcb-css-31 {
    font-size: 13px;
    color: #37493A;
    border-bottom: 1px solid #37493A;
    text-decoration: none;
    padding-bottom: 2px;
}

.fgcb-css-35 {
    background: #25332A;
    color: #F2EFE5;
    padding: 40px 28px;
    margin-top: 14px;
}

.fgcb-css-36 {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #C9A66B;
    margin-bottom: 10px;
}

.fgcb-css-37 {
    font-family: serif;
    font-size: 24px;
    margin: 0 0 12px;
    font-weight: 700;
    color: #F2EFE5;
}

.fgcb-css-38 {
    font-size: 13.5px;
    color: #D8D6C6;
    line-height: 1.9;
    margin: 0;
}

/* 選べる項目の注記 */
.fgcb-note {
    margin: 14px 0 0;
    color: #5C5648;
    font-size: 12px;
    line-height: 1.8;
}

/* 仕様の一覧 */
.fgcb-spec {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #E5DFCF;
}

.fgcb-spec li {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #E5DFCF;
    font-size: 13px;
    line-height: 1.7;
    color: #5C5648;
}

.fgcb-spec b {
    flex: 0 0 5.5em;
    color: #211E1A;
}

/* 人気ランキング（今は使っていない。凛キャビネットと同じ部品を残している） */
.fgcb-ranking {
    display: flex;
    gap: 8px;
}

.fgcb-ranking a {
    flex: 1;
    display: block;
    background: #fff;
    border: 1px solid #D9D3C0;
    color: #211E1A;
    text-decoration: none;
}

.fgcb-ranking img {
    width: 100%;
    display: block;
}

/* 商品画像の中に文字が入っているので、順位は画像に重ねず上の帯に出す */
.fgcb-ranking__no {
    display: block;
    background: #37493A;
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
}

.fgcb-ranking__name {
    display: block;
    font-size: 11px;
    line-height: 1.6;
    padding: 8px;
}

/* 特長カードの中の写真 */
.fgcb-card-img {
    width: 100%;
    display: block;
    border: 1px solid #D9D3C0;
    margin: 4px 0 14px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* =========================================================
   凛キャビネットで足したもの
   ========================================================= */

/* 特長カードを2列に並べる（特長が8つあるので、ダイニングの縦1列だと長くなりすぎる） */
.fgcb-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fgcb-cards .fgcb-css-27 {
    padding: 20px;
}

/* 背面の写真は正方形で、中央で切ると天板の後ろの配線用の切り欠きが隠れるため、上に寄せて切る */
.fgcb-card-img--top {
    object-position: 50% 0;
}

/* 写真の下の「サイズ変更・カスタムについて」リンク */
.fgcb-sub-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12.5px;
    color: #37493A;
    border-bottom: 1px solid #37493A;
    text-decoration: none;
    padding-bottom: 1px;
}

/* ---------- 狭い幅での崩れ防止 ---------- */
@media (max-width: 750px) {
    .fgcb-material-panel {
        padding: 22px 16px;
    }
}

/* =========================================================
   スマホ版だけの調整（一番外の枠に fgcb-list--sp を付けたときだけ効く）
   ・ショップサーブの説明欄は <style> を消すので、txt ではなくこのCSSに書く
   ・写真 → 「SELECT ／ 商品を選ぶ」 → ボタン の順に縦に並べる（画面の幅に関係なく）
   ・ショップ側の表（table/td）の指定に負けないよう、並びに関わる所だけ !important
   ========================================================= */
.fgcb-list--sp .fgcb-css-01,
.fgcb-list--sp .fgcb-css-06,
.fgcb-list--sp .fgcb-css-25 {
    padding-left: 16px;
    padding-right: 16px;
}

.fgcb-list--sp .fgcb-css-03 {
    font-size: 25px;
}

.fgcb-list--sp .fgcb-css-14,
.fgcb-list--sp .fgcb-css-14 tbody,
.fgcb-list--sp .fgcb-css-14 tr,
.fgcb-list--sp .fgcb-css-15,
.fgcb-list--sp .fgcb-css-17 {
    display: block !important;
    width: 100% !important;
}

.fgcb-list--sp .fgcb-css-16 {
    width: 100% !important;
    max-width: 100%;
}

.fgcb-list--sp .fgcb-css-17 {
    padding: 18px 0 0 !important;
    text-align: center;
}

/* 見出しの両側に細い線を引いて、ボタンの見出しだと分かるようにする */
.fgcb-list--sp .fgcb-css-18 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 11px;
}

.fgcb-list--sp .fgcb-css-18::before,
.fgcb-list--sp .fgcb-css-18::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #D9D3C0;
}

.fgcb-list--sp .fgcb-css-19 {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
}

.fgcb-list--sp .fgcb-css-19 .fgcb-css-20 {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 0;
}

.fgcb-list--sp .fgcb-css-22,
.fgcb-list--sp .fgcb-css-27 {
    padding: 20px 16px;
}

/* スマホは特長カードを縦1列にする */
.fgcb-list--sp .fgcb-cards {
    grid-template-columns: 1fr;
}

/* 文字リンクのタップ範囲を広げる */
.fgcb-list--sp .fgcb-css-31 {
    display: inline-block;
    padding: 12px 0;
}

.fgcb-list--sp .fgcb-sub-link {
    padding: 10px 0 2px;
}

/* 一覧見出しの左右の余白をほかとそろえる */
.fgcb-list--sp .fgcb-css-35 {
    padding-left: 16px;
    padding-right: 16px;
}

/* 冒頭の「商品一覧へ」リンク（説明が長いので、すぐ一覧に飛べるように） */
.fgcb-jump {
    display: inline-block;
    margin: 0 0 24px;
    padding: 12px 18px;
    border: 1px solid #37493A;
    background: #FBFAF6;
    font-size: 13px;
    text-decoration: none;
}

.fgcb-list a.fgcb-jump {
    color: #37493A;
}

/* ---------- スマホ版サイト共通CSS（hpgen/smp/css/default.css）の打ち消し ----------
   h2 {text-align:center; margin:30px 0; font-size:1rem}、.freearea p {margin:0 0 5px; line-height:1.8}、
   a:link {color:#3B91D6} が部品の指定より強く効くため、.fgcb-list を付けて戻す */
.fgcb-list {
    line-height: 1.8;
}

.fgcb-list h1.fgcb-css-03,
.fgcb-list h2.fgcb-css-09,
.fgcb-list h2.fgcb-css-21,
.fgcb-list h2.fgcb-css-37,
.fgcb-list h3.fgcb-css-29 {
    text-align: left;
    line-height: 1.5;
}

.fgcb-list p.fgcb-css-04 {
    margin: 0 0 24px;
    line-height: 2;
}

.fgcb-list p.fgcb-css-10,
.fgcb-list p.fgcb-css-38 {
    margin: 0;
    line-height: 1.9;
}

.fgcb-list p.fgcb-css-30 {
    margin: 0 0 14px;
    line-height: 1.9;
}

.fgcb-list p.fgcb-css-12 {
    margin: 0 0 8px;
    line-height: 1.6;
}

.fgcb-list p.fgcb-note {
    margin: 14px 0 0;
    line-height: 1.8;
}

/* ボタン・リンクの文字がショップ側のリンク色（青）にならないようにする */
.fgcb-list a.fgcb-css-20 {
    color: #211E1A !important;
    text-decoration: none !important;
}

.fgcb-list a.fgcb-css-31,
.fgcb-list a.fgcb-sub-link {
    color: #37493A;
}

.fgcb-list .fgcb-ranking a {
    color: #211E1A;
}

/* ---------- PC版サイト共通CSS（default.css）の打ち消し（凛ダイニング rin-dt-list.css と同じやり方） ----------
   #shouhin_category p（13pt・字間1px）、#shouhin_category h3（24pt・中央）、
   article h2（22px !important・点線・中央）、article h1（下余白・文字色）が
   部品の指定より強く効くため、#shouhin_category を付けて戻す */
#shouhin_category .fgcb-list p,
#shouhin_category .fgcb-list li {
    letter-spacing: normal;
    text-align: left;   /* スマホ版サイトの共通CSSで p が中央寄せになるため */
}

/* スマホ版：写真の下のボタン欄だけは、ボタンに合わせて注記も中央にそろえる */
#shouhin_category .fgcb-list--sp .fgcb-css-17 p {
    text-align: center;
}

#shouhin_category .fgcb-list .fgcb-css-04 {
    font-size: 14.5px;
    line-height: 2;
}

#shouhin_category .fgcb-list .fgcb-css-10,
#shouhin_category .fgcb-list .fgcb-css-30,
#shouhin_category .fgcb-list .fgcb-css-38 {
    font-size: 13.5px;
    line-height: 1.9;
}

#shouhin_category .fgcb-list .fgcb-css-12 {
    font-size: 21px;
    line-height: 1.6;
}

#shouhin_category .fgcb-list .fgcb-note {
    font-size: 12px;
    line-height: 1.8;
}

#shouhin_category .fgcb-list h1.fgcb-css-03 {
    padding: 0;
    color: #211E1A;
    text-align: left;
}

#shouhin_category .fgcb-list h2.fgcb-css-09,
#shouhin_category .fgcb-list h2.fgcb-css-21,
#shouhin_category .fgcb-list h2.fgcb-css-37 {
    font-size: 24px !important;
    border-bottom: 0;
    text-align: left;
    line-height: 1.5;
    padding: 0;
}

#shouhin_category .fgcb-list h2.fgcb-css-09 {
    margin: 0 0 10px;
}

#shouhin_category .fgcb-list h2.fgcb-css-21 {
    margin: 0;
}

#shouhin_category .fgcb-list h2.fgcb-css-37 {
    margin: 0 0 12px;
}

#shouhin_category .fgcb-list h3.fgcb-css-29 {
    font-size: 19px;
    text-align: left;
    line-height: 1.5;
    margin: 0 0 10px;
}

/* =========================================================
   風雅キャビネットで足したもの
   ========================================================= */

/* タイプ切替（サイドキャビネット／キャビネット）。凛テレビボードと同じ見た目 */
.fgcb-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.fgcb-type-tab {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #D9D3C0;
    background: #fff;
    color: #5C5648;
    cursor: pointer;
    font-family: inherit;
    border-radius: 2px;
}

.fgcb-type-tab small {
    display: block;
    font-size: 11px;
    opacity: .85;
}

.fgcb-type-tab.is-active {
    background: #37493A;
    color: #fff;
}

.fgcb-type-panel {
    display: none;
}

.fgcb-type-panel.is-active {
    display: block;
}

/* 写真の下の「写真は幅○mm」 */
.fgcb-img-note {
    margin: 6px 0 0;
    color: #8A8170;
    font-size: 11px;
    line-height: 1.6;
}

.fgcb-list p.fgcb-img-note {
    margin: 6px 0 0;
    line-height: 1.6;
}

#shouhin_category .fgcb-list .fgcb-img-note {
    font-size: 11px;
}

/* タイプの違いの表 */
.fgcb-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 4px;
    font-size: 13px;
}

.fgcb-compare th,
.fgcb-compare td {
    border: 1px solid #E5DFCF;
    padding: 9px 8px;
    text-align: center;
    line-height: 1.6;
    color: #5C5648;
    background: #fff;
}

.fgcb-compare thead th {
    background: #37493A;
    color: #fff;
    font-weight: 700;
}

.fgcb-compare tbody th {
    background: #FBFAF6;
    color: #211E1A;
    white-space: nowrap;
}

/* スマホ：材種が5つなので 3＋2 の2段にする */
.fgcb-list--sp .fgcb-material-tab {
    min-width: 33.33%;
    border-bottom: 1px solid #D9D3C0;
    font-size: 11px;   /* 「ブラックチェリー」が3等分の幅に収まる大きさ */
    padding: 16px 2px;
}

.fgcb-list--sp .fgcb-material-swatch {
    width: 12px;
    height: 12px;
    margin-right: 4px;
}

.fgcb-list--sp .fgcb-material-tab:nth-child(3n) {
    border-right: 0;
}

.fgcb-list--sp .fgcb-material-tab.is-active {
    border-bottom: 3px solid #C9A66B;
}

.fgcb-list--sp .fgcb-type-tab {
    font-size: 13px;
    padding: 10px 4px;
}

/* スマホ：幅のボタンが6つあるので、3つずつ折り返す */
.fgcb-list--sp .fgcb-css-19 {
    flex-wrap: wrap;
}

.fgcb-list--sp .fgcb-css-19 .fgcb-css-20 {
    flex: 0 0 calc((100% - 16px) / 3);
}

.fgcb-list--sp .fgcb-compare {
    font-size: 12px;
}

/* =========================================================
   PC版も写真を大きくして、サイズのボタンを写真の下に置く（2026/10/30）
   ・スマホ版と同じ並び：写真（枠いっぱい）→「SELECT WIDTH ／ サイズを選ぶ」→ボタン
   ・ショップ側の表（table/td）の指定に負けないよう、並びに関わる所だけ !important
   ・スマホ版の指定（.fgcb-list--sp …）の方が強いので、スマホ版の見た目は変わらない
   ========================================================= */
.fgcb-css-14,
.fgcb-css-14 tbody,
.fgcb-css-14 tr,
.fgcb-css-15,
.fgcb-css-17 {
    display: block !important;
    width: 100% !important;
}

.fgcb-css-16 {
    width: 100% !important;
    max-width: 100%;
}

.fgcb-css-17 {
    padding: 22px 0 0 !important;
    text-align: center;
}

/* 見出しの両側に細い線（スマホ版と同じ） */
.fgcb-css-18 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fgcb-css-18::before,
.fgcb-css-18::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #D9D3C0;
}

/* PCは幅が足りるので、ボタンを1列に同じ幅で並べる */
.fgcb-css-19 {
    flex-wrap: nowrap;
    justify-content: center;
}

.fgcb-css-19 .fgcb-css-20 {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 0;
}

/* ボタンの下の注記もボタンに合わせて中央にそろえる */
#shouhin_category .fgcb-list .fgcb-css-17 p {
    text-align: center;
}