:root {
    --green: #3aaa5c; /* メイングリーン（ロゴ・アクセント） */
    --green-dark: #2d8a4a;
    --green-light: #e8f5ee;
    --orange: #e8873a; /* サブオレンジ */
    --orange-light: #fdf3ea;
    --gray-bg: #f5f5f5;
    --text: #333333;
    --text-light: #666666;
    --border: #dddddd;
    --white: #ffffff;
    --header-h: 70px;
}

.page-wrap {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    background: var(--white);
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 20px 80px;
}

/* ─── カテゴリラベル ─── */
.cat-label {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 12px;
    border-radius: 2px;
    margin-bottom: 14px;
}

/* ─── ページタイトル ─── */
.page-title {
    font-size: clamp(1.8em, 3.5vw, 3em);
    font-weight: 700;
    line-height: 1.8;
    color: var(--orange);
    margin-bottom: 20px;
    width: fit-content;
    margin: 0 auto 0.8em;
    border-bottom: 2px solid var(--orange);
}
.page-title .accent {
    color: var(--orange);
    font-size: inherit;
    font-weight: inherit;
    display: inline;
}

/* ════════════════════════════
CAROUSEL（トップ3枚）
════════════════════════════ */
.carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 40px;
    background: #ddd;
    aspect-ratio: 16/9;
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* プレースホルダー */
.slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #999;
}
.slide-placeholder svg {
    width: 56px;
    height: 56px;
}
.slide-placeholder p {
    font-size: 0.8rem;
}
/* 背景色で区別 */
.carousel-slide:nth-child(1) {
    background: #d5e8d9;
}
.carousel-slide:nth-child(2) {
    background: #d9e8e0;
}
.carousel-slide:nth-child(3) {
    background: #ddeae2;
}

/* ドット */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -18px;
    position: relative;
    z-index: 10;
    padding-bottom: 18px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s;
}
.dot.active {
    background: var(--orange);
}

/* 矢印 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: var(--white);
}
.carousel-btn.prev {
    left: 12px;
}
.carousel-btn.next {
    right: 12px;
}
.carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: #555;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ════════════════════════════
INTRO TEXT
════════════════════════════ */
.intro-text {
    font-size: clamp(0.96em, 4vw, 1.2em);
    line-height: 2;
    color: var(--text);
    margin-bottom: 3em;
    text-align: center;
}

/* ════════════════════════════
SECTION BLOCK（見本準拠）
════════════════════════════ */
.lp-section {
    margin-bottom: 56px;
}

/* セクション見出し：オレンジの下線 */
.lp-section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--orange);
    padding: 0 0 10px 0;
    border-left: none;
    border-bottom: 2px solid var(--orange);
    margin-bottom: 16px;
    line-height: 1.5;
}

.lp-section-body {
    font-size: 1em;
    line-height: 2;
    color: var(--text);
    margin-bottom: 20px;
}
.lp-section-body p + p {
    margin-top: 14px;
}

/* ─── 写真グリッド ─── */
.photo-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}
.photo-grid.g2 {
    grid-template-columns: 1fr 1fr;
}
.photo-grid.g3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.photo-grid.g4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
/* 見本では横3枚＋横3枚の2段 */
.photo-grid.g3x2 {
    grid-template-columns: repeat(3, 1fr);
}

.photo-cell {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #e0e0e0;
    aspect-ratio: 4/3;
}
.photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.photo-cell:hover img {
    transform: scale(1.04);
}

/* プレースホルダー（写真差し替え前） */
.ph {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #aaa;
}
.ph svg {
    width: 36px;
    height: 36px;
}
.ph span {
    font-size: 0.68rem;
}
.ph-1 {
    background: #dce8de;
}
.ph-2 {
    background: #dde5dd;
}
.ph-3 {
    background: #d8e3d8;
}
.ph-4 {
    background: #d4e1d6;
}
.ph-5 {
    background: #d1dfd3;
}
.ph-6 {
    background: #cedbcf;
}
.ph-7 {
    background: #cad7cc;
}
.ph-8 {
    background: #c7d5c9;
}

.photo-caption {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}

/* ─── インフォボックス ─── */
.info-box {
    background: var(--orange-light);
    border: 1px solid #f0c898;
    border-radius: 4px;
    padding: 20px 24px;
    font-size: 0.88rem;
    line-height: 2;
    margin: 16px 0 0;
}

/* ─── 注意書きボックス ─── */
.note-box {
    background: var(--green-light);
    border-left: 4px solid var(--green);
    padding: 16px 20px;
    font-size: 0.88rem;
    line-height: 1.9;
    border-radius: 0 4px 4px 0;
    margin-top: 16px;
}

/* ════════════════════════════
CTAバナー（見本下部の大見出し）
════════════════════════════ */
.cta-banner {
    background: var(--orange-light);
    border: 2px solid var(--orange);
    border-radius: 6px;
    padding: 36px 16px;
    text-align: center;
    margin: 64px 0 48px;
}
.cta-banner .cta-title {
    font-size: clamp(1.5em, 4vw, 2.4em);
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 18px;
    line-height: 1.5;
}
.cta-banner .cta-title .kagi {
    color: var(--orange);
    font-weight: 700;
}
.cta-banner .cta-body {
    font-size: 1em;
    line-height: 2;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 24px;
}
.cta-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
}
.cta-layout .cta-txt {
    font-size: 1em;
    flex: 1;
}
.cta-layout .cta-img {
    flex-shrink: 0;
    width: 200px;
}
.cta-layout .cta-img .photo-cell {
    aspect-ratio: 4/3;
}

.cta-message {
    margin-block-start: 1.5em;
}
.cta-message .c-btn {
    font-size: 0.9em;
    height: 4em;
}
.cta-message p {
    font-weight: 700;
}

/* ════════════════════════════
CLOSING
════════════════════════════ */
.closing-msg {
    text-align: center;
    font-size: 1em;
    line-height: 2;
    color: var(--text-light);
    padding: 32px 0 8px;
    border-top: 1px solid var(--border);
}

/* ════════════════════════════
RESPONSIVE
════════════════════════════ */
@media (max-width: 768px) {
    .global-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .photo-grid.g3,
    .photo-grid.g3x2,
    .photo-grid.g4 {
        grid-template-columns: 1fr 1fr;
    }
    .cta-layout {
        flex-direction: column;
    }
    .cta-layout .cta-img {
        width: 100%;
    }
    .footer-inner {
        flex-direction: column;
    }
    .footer-nav-wrap {
        gap: 24px;
    }
}
@media (max-width: 480px) {
    .photo-grid.g3,
    .photo-grid.g3x2,
    .photo-grid.g4 {
        grid-template-columns: 1fr 1fr;
    }
    .photo-grid.g2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ════════════════════════════
モーダル
════════════════════════════ */
/* photo-cell にカーソルとオーバーレイを追加 */
.photo-grid .photo-cell {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}
/* ホバー時の暗幕 */
.photo-grid .photo-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.photo-grid .photo-cell:hover::after {
    background: rgba(0, 0, 0, 0.28);
}
/* 画像のズーム */
.photo-grid .photo-cell img {
    transition: transform 0.35s ease;
    display: block;
    width: 100%;
}
.photo-grid .photo-cell:hover img {
    transform: scale(1.06);
}
/* ズームアイコン */
.photo-cell-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 2;
}
.photo-cell-zoom-icon svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.photo-grid .photo-cell:hover .photo-cell-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ── モーダル オーバーレイ ── */
#tryonLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
#tryonLightbox.is-open {
    display: flex;
    animation: tlbFadeIn 0.25s ease forwards;
}
@keyframes tlbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* ── モーダル本体 ── */
#tryonLightboxBox {
    position: relative;
    max-width: 900px;
    width: 100%;
    cursor: default;
    animation: tlbScaleIn 0.3s ease forwards;
}
@keyframes tlbScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
/* ── 画像エリア ── */
#tryonLightboxImgWrap {
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#tryonLightboxImg {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}
#tryonLightboxImg.is-loading {
    opacity: 0;
}
/* ── 閉じるボタン ── */
#tryonLightboxClose {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    z-index: 1;
}
#tryonLightboxClose:hover {
    transform: scale(1.12);
    background: #f0f0f0;
}
#tryonLightboxClose svg {
    width: 16px;
    height: 16px;
    stroke: #333;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
/* ── 前後ナビ ── */
.tlb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.2s;
}
.tlb-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.tlb-nav svg {
    width: 20px;
    height: 20px;
    stroke: #222;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#tryonLightboxPrev {
    left: -64px;
}
#tryonLightboxNext {
    right: -64px;
}
/* ── カウンター ── */
#tryonLightboxFooter {
    text-align: center;
    margin-top: 14px;
}
#tryonLightboxCounter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
}
/* ── スマートフォン対応 ── */
@media (max-width: 640px) {
    #tryonLightboxPrev {
        left: 6px;
    }
    #tryonLightboxNext {
        right: 6px;
    }
    #tryonLightboxClose {
        top: -14px;
        right: -14px;
    }
}
