@charset "utf-8";

/* ==========================================================
   メンテナンスサポートページ (page-support.php)
   ========================================================== */

.spt-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* ── Hero ── */
.spt-page__hero {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.spt-page__hero img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
}

.spt-page__hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.spt-page__hero-en {
    color: #fff;
    font-family: 'Sorts Mill Goudy', serif;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    letter-spacing: 0.22em;
    margin: 0 0 6px;
}

.spt-page__hero-catch {
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── リード ── */
.spt-page__lead {
    max-width: 860px;
    margin: 56px auto 0;
    padding: 0 24px;
    text-align: center;
}

.spt-page__lead p {
    font-size: 0.95rem;
    line-height: 2.0;
    color: #444;
    margin: 0;
}

/* ── Section ── */
.spt-section {
    padding: 72px 40px;
    border-top: 1px solid #e8e8e8;
    margin-top: 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ── テキスト ── */
.spt-section__text {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.spt-section__heading {
    margin: 0 0 20px;
    font-weight: 400;
}

.spt-section__heading-en {
    display: block;
    font-family: var(--font-display, 'Sorts Mill Goudy', serif);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    letter-spacing: 0.12em;
    color: #111;
}

.spt-section__heading-ja {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    color: #888;
    margin-top: 6px;
}

.spt-section__body {
    font-size: 0.92rem;
    line-height: 2.0;
    color: #444;
    margin: 0;
    text-align: left;
}

/* ── 画像ギャラリー（共通） ── */
.spt-gallery {
    display: grid;
    gap: 8px;
}

.spt-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.15s;
}

.spt-gallery img:hover {
    opacity: 0.85;
}

/* ── FURNITURE：5枚 / 大1＋小4（左に大・右に2×2） ── */
.spt-gallery--furniture {
    grid-template-columns: 3fr 2fr 2fr;
    grid-template-rows: auto auto;
}

.spt-gallery--furniture img:first-child {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
}

.spt-gallery--furniture img:not(:first-child) {
    aspect-ratio: 4 / 3;
}

/* ── LIGHTING：7枚 / 4列×2段 ── */
.spt-gallery--lighting {
    grid-template-columns: repeat(4, 1fr);
}

.spt-gallery--lighting img {
    aspect-ratio: 4 / 3;
}

/* ── WINDOW：6枚 / 3列×2段 ── */
.spt-gallery--window {
    grid-template-columns: repeat(3, 1fr);
}

.spt-gallery--window img {
    aspect-ratio: 4 / 3;
}

/* ── ライトボックス ── */
#spt-lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#spt-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}
#spt-lightbox-img {
    max-width: min(90vw, calc(100vw - 120px));
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    cursor: default;
}
#spt-lightbox.is-active #spt-lightbox-img {
    transform: scale(1);
}

#spt-lightbox-prev,
#spt-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9001;
    transition: background 0.2s ease;
    padding: 0;
}
#spt-lightbox-prev:hover,
#spt-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}
#spt-lightbox-prev { left: 20px; }
#spt-lightbox-next { right: 20px; }

#spt-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* ── Closing ── */
.spt-page__closing {
    text-align: center;
    padding: 64px 24px 0;
    border-top: 1px solid #e8e8e8;
    margin-top: 72px;
}

.spt-page__closing p {
    font-size: 0.95rem;
    line-height: 2.1;
    color: #333;
    letter-spacing: 0.04em;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .spt-section {
        padding: 56px 24px;
    }
    .spt-gallery--furniture {
        grid-template-columns: 1fr 1fr;
    }
    .spt-gallery--furniture img:first-child {
        grid-row: span 2;
    }
    .spt-gallery--lighting {
        grid-template-columns: repeat(3, 1fr);
    }
    .spt-gallery--window {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .spt-page__hero {
        max-height: 320px;
    }
    .spt-page__hero img {
        max-height: 320px;
    }
    .spt-page__hero-text {
        padding: 20px;
    }
    .spt-section {
        padding: 48px 16px;
    }
    .spt-page__lead {
        margin-top: 40px;
    }
    .spt-gallery--furniture {
        grid-template-columns: 1fr 1fr;
    }
    .spt-gallery--furniture img:first-child {
        grid-column: span 2;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }
    .spt-gallery--lighting {
        grid-template-columns: repeat(2, 1fr);
    }
    .spt-gallery--window {
        grid-template-columns: repeat(2, 1fr);
    }
    .spt-page__closing {
        padding: 48px 16px 0;
    }
}
