/* =========================================================
   風雅ダイニングテーブル一覧（風雅センターテーブル一覧 fuuga-ct-list.css のクラス名を fgdt- に置き換えたもの）
   file: fuuga-dt-list.css
   置き場所：https://kyno.jp/css/list/fuuga-dt-list.css
   スマホ版の説明欄では一番外の枠に fgdt-list--sp を付ける（風雅センターテーブルのスマホ版と同じ作り）
   センターテーブルから変えた所
     ・材種が5つ（メープルの色を足した）。スマホは 2＋2＋1 の3段
     ・1材種＝1商品なので、サイズのボタンは1つ
   ========================================================= */

.fgdt-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;
}

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

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

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

.fgdt-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;
}

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

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

.fgdt-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);
}

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

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

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

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

.fgdt-material-swatch--maple {
    background: #F1E4CC;
}

.fgdt-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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fgdt-css-16 {
    width: 260px;
    max-width: 100%;
    border: 1px solid #D9D3C0;
    background: #fff;
    display: block;
    aspect-ratio: 3 / 2;   /* 写真は3:2にそろえる */
    object-fit: cover;
}

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

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

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

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

.fgdt-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* 人気ランキング（今のページの3商品） */
.fgdt-ranking {
    display: flex;
    gap: 8px;
}

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

.fgdt-ranking img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 2;   /* 元の写真の縦横比がばらばら（正方形と3:2）なのでそろえる */
    object-fit: cover;
}

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

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

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

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

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

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

/* 写真を上に寄せて切る（今は使っていない） */
.fgdt-card-img--top {
    object-position: 50% 0;
}

/* 写真の下の「サイズ変更・カスタムについて」リンク */
.fgdt-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) {
    .fgdt-material-panel {
        padding: 22px 16px;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fgdt-list a.fgdt-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} が部品の指定より強く効くため、.fgdt-list を付けて戻す */
.fgdt-list {
    line-height: 1.8;
}

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

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

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

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

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

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

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

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

.fgdt-list .fgdt-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 .fgdt-list p,
#shouhin_category .fgdt-list li {
    letter-spacing: normal;
    text-align: left;   /* スマホ版サイトの共通CSSで p が中央寄せになるため */
}

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

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

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

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

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

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

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

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

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

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

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

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

/* タイプ切替（ダイニングテーブルでは使っていない）。凛テレビボードと同じ見た目 */
.fgdt-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.fgdt-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;
}

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

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

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

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

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

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

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

/* サイズの表（ダイニングテーブルでは使っていない） */
.fgdt-compare {
    width: 100%;
    table-layout: fixed;   /* 幅の列をそろえる */
    border-collapse: collapse;
    margin: 0 0 4px;
    font-size: 13px;
}

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

.fgdt-compare thead th:first-child {
    width: 20%;
}

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

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

/* スマホ：材種が5つなので 2＋2＋1 の3段にする（最後の1つは横いっぱい） */
.fgdt-list--sp .fgdt-material-tab {
    min-width: 50%;
    border-bottom: 1px solid #D9D3C0;
    font-size: 12px;
    padding: 16px 2px;
}

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

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

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

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

/* スマホ：幅のボタンは3等分の幅（ボタンが1個のときも同じ大きさ） */
.fgdt-list--sp .fgdt-css-19 {
    flex-wrap: wrap;
}

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

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

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

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

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

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

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

/* PCはボタンを1列に並べる。数が少ない（1〜3個）ので、1個の幅は最大180pxにして中央にそろえる */
.fgdt-css-19 {
    flex-wrap: nowrap;
    justify-content: center;
}

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

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

/* =========================================================
   ダイニングテーブルで足した所
   ========================================================= */
/* サイズのボタンは1つだけなので、PCは少し広く、スマホは横いっぱいにする */
.fgdt-css-19 .fgdt-css-20 {
    flex: 0 1 260px;
}

.fgdt-list--sp .fgdt-css-19 .fgdt-css-20 {
    flex: 1 1 100%;
}
