:root {
    --bg: #faf4ea;
    --surface: #fff;
    --primary: #ed7a0c;
    --primary-dark: #c35b09;
    --gray: #555;
    --text: #2d2d2d;
    --border: #e6d3b4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
#contents {
    width: unset;
    padding-bottom: 0;
}
.common-page_wrap * {
    font-family: "Noto Sans JP", "Lato",sans-serif;
  }

.common-page_wrap {
    padding: 50px 0;
    background: #fff;
}

.wrap {
    width: 890px;
    max-width: 100%;
    margin: 0 auto;
}

.page_chukai_cont {
    background: #fff;
}

h1.page_h1 {
    font-weight: 700;
    font-size: 22px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 40px;
    height: auto;
    text-shadow: none;
}

.page_h3 {
    font-weight: 700;
    font-size: 18px;
    margin: 40px 0 12px;
    padding-bottom: 0.4em;
    border-bottom: 4px solid #f7b52a;
    display: flex;
    align-items: center;
    gap: 1em;
}

main {
    background: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.setsubi-hero-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-height: 240px;
}

.setsubi-hero-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.setsubi-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.setsubi-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0;
}

/* ヒーロー画像がない場合のフォールバック */
.setsubi-hero-img:not(:has(img[src])) .setsubi-hero-overlay,
.setsubi-hero-img img[src="../image/page_setsubi_top.jpg"] {
    background: linear-gradient(135deg, #2d2d2d 0%, #555 100%);
}

/* イントロ文 */
.setsubi-intro {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray);
    margin: 0 0 32px;
}

/* セクション */
.setsubi-section {
    margin-bottom: 48px;
}

.setsubi-section-head h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin: 40px 0 12px;
    padding-bottom: 0.4em;
    border-bottom: 4px solid #f7b52a;
    display: flex;
    align-items: center;
    gap: 1em;
    color: var(--text);
    background: none;
}

/* カテゴリタイトル（家電・家具・備品） */
.setsubi-category {
    margin-bottom: 36px;
}

.setsubi-category-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    padding: 6px 0 6px 12px;
    border-left: 4px solid var(--primary);
    background: #fff8f0;
}

/* アイテムグリッド（5列） */
.setsubi-item-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* 4列バリアント */
.setsubi-item-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

/* アイテムカード */
.setsubi-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.setsubi-item-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setsubi-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10%;
}

/* 画像が読み込めない場合のフォールバック */
.setsubi-item-img img[src]::after {
    content: "";
}

.setsubi-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin: 8px 6px 2px;
    line-height: 1.4;
}

.setsubi-item-name:last-child {
    margin-bottom: 8px;
}

.setsubi-item-note {
    font-size: 0.72rem;
    color: var(--gray);
    margin: 0 6px 8px;
    line-height: 1.4;
}

/* 注意事項ボックス */
.setsubi-note-box {
    margin-top: 20px;
    padding: 14px 16px;
    background: #faf8f5;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.7;
}

.setsubi-note-box p {
    margin: 0 0 4px;
}

.setsubi-note-box p:last-child {
    margin: 0;
}

/* キャンペーンラベル */
.setsubi-campaign-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d32f2f;
    margin: 0 0 20px;
}

/* レンタル品セクション */
.setsubi-rental-section .setsubi-item-grid--4col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
}

/* ========== レスポンシブ ========== */
@media (max-width: 760px) {
    .wrap {
        padding: 0 16px;
    }

    /* 5列 → 3列 */
    .setsubi-item-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* 4列 → 2列 */
    .setsubi-item-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .setsubi-rental-section .setsubi-item-grid--4col {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .setsubi-hero-title {
        font-size: 1.5rem;
    }

    .setsubi-hero-img {
        max-height: 180px;
    }

    .setsubi-hero-img img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    /* 3列 → 2列 */
    .setsubi-item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* 4列バリアント → 2列維持 */
    .setsubi-item-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .setsubi-item-name {
        font-size: 0.78rem;
    }

    .setsubi-item-note {
        font-size: 0.68rem;
    }

    .setsubi-hero-img {
        max-height: 140px;
        border-radius: 10px;
    }

    .setsubi-hero-img img {
        height: 140px;
    }

    .setsubi-hero-title {
        font-size: 1.2rem;
    }
}
