/* KINOKUNI SITE / 天然木テーブル */
.kt-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 55px 0 80px;
    box-sizing: border-box;
    color: #111;
    font-family: var(--kinokuni-font-jp, "Noto Sans JP", sans-serif);
}
.kt-wrap *, .kt-wrap *::before, .kt-wrap *::after { box-sizing: border-box; }
.kt-wrap [hidden] { display: none !important; }
.kt-heading { text-align: center; margin-bottom: 40px; }
.kt-heading > span, .kt-eyebrow, .kt-number { color: #8b7759; font-family: var(--kinokuni-font-en, Jost, sans-serif); font-size: 13px; letter-spacing: .15em; }
.kt-wrap .kt-heading h2, .kt-wrap .kt-card h3, .kt-wrap .kt-title, .kt-wrap .kt-contact h2 { padding: 0; border: 0; background: none; box-shadow: none; font-weight: 500; color: inherit; line-height: 1.45; }
.kt-wrap .kt-heading h2::before, .kt-wrap .kt-heading h2::after, .kt-wrap .kt-card h3::before, .kt-wrap .kt-card h3::after, .kt-wrap .kt-title::before, .kt-wrap .kt-title::after, .kt-wrap .kt-contact h2::before, .kt-wrap .kt-contact h2::after { content: none; }
.kt-wrap .kt-heading h2 { margin: 8px 0 0; font-size: clamp(24px, 2.6vw, 34px); }
.kt-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 28px; }
.kt-card { min-width: 0; margin: 0; }
.kt-card-link { display: flex; flex-direction: column; height: 100%; color: #111 !important; text-decoration: none !important; }
.kt-card-photo { display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: #f4f3f0; color: #777; font-size: 13px; letter-spacing: .1em; }
.kt-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.kt-card-link:hover img { transform: scale(1.035); }
.kt-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px 0 14px; border-bottom: 1px solid #ddd; min-width: 0; }
.kt-number { display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.kt-wrap .kt-card h3 { margin: 0 0 8px; font-size: clamp(16px,1.5vw,20px); overflow-wrap: anywhere; }
.kt-material { margin: 0 0 12px; font-size: 13px; color: #666; overflow-wrap: anywhere; }
.kt-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; margin-top: auto; }
.kt-price-value { font-family: var(--kinokuni-font-en,Jost,sans-serif); font-size: 23px; font-weight: 500; overflow-wrap: anywhere; }
.kt-tax, .kt-price-net { font-size: 12px; color: #666; }
.kt-price-net { flex-basis: 100%; }
.kt-more { margin-top: 12px; width: 100%; display: flex; justify-content: space-between; font-family: var(--kinokuni-font-en,Jost,sans-serif); font-size: 12px; letter-spacing: .12em; color: #8b7759; }
.kt-pagination { margin-top: 45px; }
.kt-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kt-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 5px; margin: 0; border: 1px solid #ddd; border-radius: 5px; background: #fff; color: #111; text-decoration: none; }
.kt-pagination .current, .kt-pagination a:hover { background: #111; border-color: #111; color: #fff; }
.kt-empty { text-align: center; }
.kt-detail-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 50px; align-items: start; }
.kt-gallery, .kt-info { min-width: 0; }
.kt-stage { position: relative; }
.kt-slide { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #f4f3f0; margin-bottom: 12px; }
.kt-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kt-controls { position: absolute; top: 50%; left: 10px; right: 10px; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.kt-wrap .kt-controls button { pointer-events: auto; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid #c2b49b; border-radius: 6px; color: #fff; background: #111e; font-size: 26px; line-height: 1; cursor: pointer; }
.kt-thumbs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.kt-wrap .kt-thumbs button { display: block; min-width: 0; width: 100%; margin: 0; padding: 2px; border: 2px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
.kt-thumbs button[aria-pressed="true"] { border-color: #a18e72; }
.kt-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.kt-counter { margin: 10px 0 0; color: #666; font-size: 12px; text-align: center; }
.kt-wrap .kt-title { margin: 0 0 12px; font-size: clamp(25px,2.6vw,38px); overflow-wrap: anywhere; }
.kt-price-large { border-top: 1px solid #ddd; padding-top: 19px; margin: 20px 0; }
.kt-price-large .kt-price-value { font-size: clamp(26px,3vw,40px); }
.kt-description { color: #444; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.kt-description p { margin: 0 0 14px; }
.kt-specs { padding: 0; margin: 26px 0 0; border-top: 1px solid #ddd; }
.kt-specs > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; border-bottom: 1px solid #ddd; padding: 13px 0; font-size: 14px; }
.kt-specs dt { margin: 0; color: #666; font-weight: 500; }
.kt-specs dd { margin: 0; overflow-wrap: anywhere; }
.kt-contact { margin: 70px 0 0; padding: 50px 25px; border-radius: 12px; background: #111; color: #fff; text-align: center; }
.kt-contact .kt-eyebrow { color: #c2b49b; }
.kt-wrap .kt-contact h2 { margin: 12px 0; color: #fff; font-size: clamp(22px,2vw,30px); }
.kt-contact p { margin: 4px 0; color: #ddd; font-size: 14px; }
.kt-wrap .kt-contact-btn, .kt-back a { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 50px; padding: 12px 28px; border: 1px solid #fff; border-radius: 6px; background: #fff; color: #111 !important; font-size: 15px; text-decoration: none !important; transition: background .25s; }
.kt-wrap .kt-contact-btn { margin-top: 24px; }
.kt-wrap .kt-contact-btn:hover { background: #c2b49b; border-color: #c2b49b; }
.kt-back { text-align: center; margin-top: 30px; }
.kt-back a { border-color: #aaa; }
.kt-back a:hover { background: #f4f3f0; }
.kt-wrap a:focus-visible, .kt-wrap button:focus-visible { outline: 2px solid #a18e72; outline-offset: 3px; }
@media (max-width: 991.98px) {
    .kt-detail-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px; }
    .kt-grid { gap: 34px 20px; }
}
@media (max-width: 767.98px) {
    .kt-wrap { padding: 34px 0 48px; }
    .kt-heading { margin-bottom: 26px; }
    .kt-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 14px; }
    .kt-card-photo, .kt-slide { border-radius: 10px; }
    .kt-card-body { padding: 12px 0; }
    .kt-wrap .kt-card h3 { font-size: 15px; }
    .kt-price-value { font-size: 18px; }
    .kt-detail-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .kt-contact { margin-top: 40px; padding: 34px 17px; border-radius: 10px; }
    .kt-wrap .kt-contact-btn { width: 100%; max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) { .kt-wrap *, .kt-wrap *::before, .kt-wrap *::after { transition: none !important; } }
/* Full width content only on this CPT. */
body.post-type-archive-wood-table .site-body-container, body.single-wood-table .site-body-container { max-width: 1400px; }

/* ==========================================
   在庫なし・売り切れ表示
========================================== */
.kt-card-photo { position: relative; }
.kt-soldout-badge { position: absolute; top: 14px; left: 14px; right: auto; z-index: 3; display: inline-flex; justify-content: center; align-items: center; min-width: 90px; min-height: 34px; margin: 0; padding: 7px 14px; background: #a13e3e; border: 1px solid #a13e3e; border-radius: 5px; color: #ffffff; font-family: var(--kinokuni-font-jp, "Noto Sans JP", sans-serif); font-size: 13px; font-weight: 500; line-height: 1.35; letter-spacing: .09em; white-space: nowrap; box-shadow: none; }
.kt-soldout-badge--detail { top: 18px; left: 18px; right: auto; }
.kt-stock-status { margin: 8px 0 0; padding: 0; line-height: 1.4; }
.kt-soldout-label { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 14px; border-radius: 5px; background: #a13e3e; color: #ffffff; font-size: 13px; font-weight: 500; letter-spacing: .09em; }
@media (max-width: 767.98px) {
    .kt-soldout-badge { top: 8px; left: 8px; right: auto; min-width: 70px; min-height: 28px; padding: 5px 9px; border-radius: 4px; font-size: 11px; }
    .kt-soldout-badge--detail { top: 12px; left: 12px; right: auto; min-width: 82px; min-height: 32px; padding: 6px 12px; font-size: 12px; }
}
/* 売り切れラベル：赤色に変更 */
.kt-soldout-badge {
    background: #c62828 !important;
    border-color: #c62828 !important;
    color: #ffffff !important;
}

/* 商品詳細ページの在庫表示 */
.kt-soldout-label {
    background: #c62828 !important;
    border-color: #c62828 !important;
    color: #ffffff !important;
}
