/* ============================================================
   Font Reset
   - デフォルトはシステムゴシックで統一
   - フォントセット選択時は --lpb-font-body / --lpb-font-heading が
     LPB_Font::head_html() から注入され、上書きされる
============================================================ */
#lpb-frame,
#lpb-frame * {
    font-family: var(--lpb-font-body, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif) !important;
}
#lpb-frame h1, #lpb-frame h2, #lpb-frame h3,
#lpb-frame h4, #lpb-frame h5, #lpb-frame h6,
#lpb-frame .lpb-slide-title,
#lpb-frame .lpb-voice-hdg,
#lpb-frame .lpb-feature-title,
#lpb-frame .lpb-plan-card-title,
#lpb-frame .lpb-fair-card-title,
#lpb-frame .lpb-couple-name {
    font-family: var(--lpb-font-heading, var(--lpb-font-body, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif)) !important;
}

/* ============================================================
   LP Builder - Frontend CSS
   Mobile-first. PC shows centered mobile frame.
============================================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}
.lpb-pc-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
/* PC背景のオーバーレイマスク */
@media (min-width: 900px) {
    .lpb-pc-wrap::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 0;
        pointer-events: none;
    }
    .lpb-index,
    #lpb-frame {
        position: relative;
        z-index: 1;
    }
}
.lpb-frame {
    width: 100%;
    background: #fff;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.25);
}
/* モバイル: 背景非表示・フレーム全幅・影なし */
@media (max-width: 899px) {
    .lpb-pc-wrap {
        background: none !important;
    }
    #lpb-frame {
        max-width: 100% !important;
        left: 0 !important;
        box-shadow: none !important;
    }
}

/* Common block — 親幅に収まるよう強制 */
.lpb-block {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.lpb-block * {
    max-width: 100%;
    box-sizing: border-box;
}
/* テキスト系要素の折り返し保証 */
.lpb-block p,
.lpb-block h1,
.lpb-block h2,
.lpb-block h3,
.lpb-block span,
.lpb-block div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============================================================
   Pattern 1: Main Visual
============================================================ */
.lpb-main-visual {
    width: 100%;
    line-height: 0; /* 画像下の隙間を除去 */
}
.lpb-mv-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   Pattern 2: Message
============================================================ */
.lpb-message {
    padding: 40px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.lpb-message-inner {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #444;
    width: 100%;
    word-break: break-word;
}
.lpb-message-inner p { margin: 0 0 12px; }
.lpb-message-inner strong { font-weight: 700; }
.lpb-message-inner h2 { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.lpb-message-inner em { font-style: italic; color: #c8a951; }

/* ============================================================
   Pattern 3: Gallery
============================================================ */
.lpb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.lpb-gallery-cell img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* ============================================================
   Pattern 4: Plan
============================================================ */
.lpb-plan {
    padding: 0 0 32px;
}
/* 結婚式費用 */
.lpb-plan-header {
    background: #ffffff;
    padding: 20px 31px;
    margin: 25px 15px 25px 15px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.lpb-plan-header-title {
    font-size: 20px;
    font-weight: normal;
    color: #c8a951;
    text-align: center;
    margin: 0 0 20px 0;
}
.lpb-plan-header-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.lpb-plan-header-col {
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 12px;
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.lpb-plan-header-label {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}
.lpb-plan-header-val {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}
.lpb-plan-header-sep {
    font-size: 24px;
    color: #4aaa8a;
    margin: 0 12px;
    font-weight: 300;
}
.lpb-plan-desc {
    padding: 32px 24px 24px;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-align: center;
    color: #444;
}
.lpb-plan-tab-btns {
    display: flex;
    border-bottom: 2px solid #ddd;
    background: #fff;
}
.lpb-tab-btn {
    flex: 1;
    padding: 12px 4px;
    font-size: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #888;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    transition: all .2s;
}
.lpb-tab-btn.active {
    color: #333;
    border-bottom-color: #4aaa8a;
}
.lpb-tab-pane { display: none; padding: 24px 16px; }
.lpb-tab-pane.active { display: block; }
.lpb-plan-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 8px;
    padding: 20px 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.lpb-price-col { text-align: center; }
.lpb-price-label { font-size: 12px; color: #888; display: block; margin-bottom: 4px; }
.lpb-price-val { font-size: 22px; font-weight: 700; color: #333; }
.lpb-price-total { color: #e05; font-size: 28px; }
.lpb-price-op { font-size: 20px; color: #aaa; }
.lpb-plan-includes { padding: 16px 16px 0; }
.lpb-plan-includes-label { font-size: 13px; color: #666; text-align: center; margin: 0 0 12px; }
.lpb-plan-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.lpb-plan-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.lpb-plan-item-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.lpb-plan-item-name {
    font-size: 14px;
    text-align: center;
    padding: 6px 4px;
    color: #555;
    background: #fff;
}

/* ============================================================
   Pattern 5: Parallax
   background-attachment:fixed はフレーム幅環境で縮尺が崩れるため
   position:sticky の擬似パララックスに変更
============================================================ */
.lpb-parallax {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.lpb-parallax-bg {
    position: absolute;
    inset: -150px 0;   /* 上下に余白を持たせてスクロール余地を作る */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    will-change: transform;
}
.lpb-parallax-overlay {
    position: relative;
    z-index: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
}
.lpb-parallax-text {
    color: #fff;
    font-size: 16px;
    line-height: 2;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 2;
}

/* ============================================================
   Pattern 6: Section Title
============================================================ */
.lpb-section-title {
    padding: 32px 20px 16px;
    text-align: center;
}
.lpb-stitle-box {
    display: table;
    margin: 0 auto;
    min-width: 60%;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    border: 2px solid #333;
    padding: 12px 32px;
    position: relative;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 5px,
        rgba(200,169,81,.25) 5px,
        rgba(200,169,81,.25) 10px
    );
}
.lpb-stitle-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
    background: rgba(255,255,255,.85);
    padding: 4px 12px;
    letter-spacing: 0.1em;
}
.lpb-stitle-bar {
    width: 1px;
    height: 24px;
    background: #333;
    margin: 0 auto;
}
.lpb-stitle-sub {
    font-size: 17px;
    color: #4e4e4e;
    margin: 8px 0 30px;
    line-height: 1.5;
    font-weight: bold;
    letter-spacing: 1.5px;
}

/* ============================================================
   Pattern 7 & 8: Sliders
============================================================ */
.lpb-slider-block, .lpb-voice-block {
    padding: 32px 0;
}
.lpb-section-hdr {
    text-align: center;
    padding: 0 0 24px;
}
.lpb-sec-en {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #333;
    margin: 0 0 8px;
}
.lpb-sec-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
}
.lpb-sec-rule::before,
.lpb-sec-rule::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: #ccc;
}

.lpb-slider {
    position: relative;
    overflow: hidden;
}
.lpb-slider-track {
    display: flex;
    transition: transform .35s ease;
    will-change: transform;
}
.lpb-slide {
    min-width: 100%;
    box-sizing: border-box;
}
.lpb-slide-imgwrap { position: relative; }
.lpb-slide-imgwrap img {
    width: 100%;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
}
.lpb-slide-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #4aaa8a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.lpb-slide-title {
    font-size: 20px;
    font-weight: 700;
    color: #c8a951;
    padding: 16px 20px 4px;
    margin: 0;
    border-bottom: 1px solid #eee;
}
.lpb-slide-text {
    font-size: 16px;
    color: #666;
    padding: 8px 20px 20px;
    margin: 0;
    line-height: 1.7;
}
.lpb-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
}
.lpb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background .2s;
}
.lpb-dot.active { background: #4aaa8a; }
.lpb-slider-prev,
.lpb-slider-next {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    z-index: 2;
}
.lpb-slider-prev { left: 8px; }
.lpb-slider-next { right: 8px; }

/* Voice card */
.lpb-voice-card {
    padding: 0 16px 16px;
}
.lpb-voice-card-inner {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    padding: 0 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.lpb-voice-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin-bottom: 0;
}
.lpb-voice-hdg {
    font-size: 17px;
    font-weight: 700;
    color: #c8a951;
    margin: 16px 20px 8px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}
.lpb-voice-body {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin: 0 20px;
}
.lpb-voice-body strong { font-weight: 700; }

/* ============================================================
   Pattern 9: FAQ
============================================================ */
.lpb-faq-block {
    padding: 32px 0;
}
.lpb-faq-list { padding: 0 16px; }
.lpb-faq-item {
    border-bottom: 1px solid #e8e8e8;
}
.lpb-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    color: #333;
}
.lpb-faq-q-lbl {
    font-size: 16px;
    font-weight: 700;
    color: #c8a951;
    min-width: 20px;
}
.lpb-faq-q-txt { flex: 1; line-height: 1.5; font-size: 16px; }
.lpb-faq-chevron {
    /* テキスト文字の代わりにCSSボーダーで矢印を描く */
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: rotate(45deg);
    transition: transform .25s ease, border-color .25s;
    flex-shrink: 0;
    margin-right: 4px;
    margin-bottom: 3px; /* 視覚的中央補正 */
}
.lpb-faq-item.open .lpb-faq-chevron {
    transform: rotate(225deg);
    margin-bottom: -3px;
}
.lpb-faq-a {
    padding: 0 4px 18px 30px;
    font-size: 16px;
    line-height: 1.85;
    color: #555;
    animation: lpb-fadein .2s ease;
}
@keyframes lpb-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Pattern 10: Features
============================================================ */
.lpb-features-block {
    padding: 16px 0 32px;
}
/* カード全体：左右余白・角丸・ボーダー（ボーダー色は管理画面で設定） */
.lpb-feature {
    position: relative;
    margin: 32px 20px 0;
    padding: 24px 20px 28px;
    border: 2px solid #b5d9cc;
    border-radius: 12px;
    background: #fff;
}
/* ナンバーが無い場合、カード上部の余白を少し詰める */
.lpb-feature:not(:has(.lpb-feature-num)) {
    margin-top: 20px;
    padding-top: 20px;
}
/* 番号バッジ：カードの上辺中央に重ねる（背景色は border-color に合わせる） */
.lpb-feature-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4aaa8a;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.lpb-feat-main {
    width: 100%;
    display: block;
    border-radius: 8px;
    margin-bottom: 6px;
    aspect-ratio: 4/3;
    object-fit: cover;
}
/* サブ画像：枚数に応じて列数を変える */
.lpb-feat-subs {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
}
.lpb-feat-subs--1 { grid-template-columns: 1fr; }
.lpb-feat-subs--2 { grid-template-columns: repeat(2, 1fr); }
.lpb-feat-subs--3 { grid-template-columns: repeat(3, 1fr); }
.lpb-feat-subs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}
/* サブ画像が 1 枚だけのときは aspect-ratio を 16:9 にして横長で表示 */
.lpb-feat-subs--1 img {
    aspect-ratio: 16/9;
}
.lpb-feature-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}
.lpb-feature-text {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin: 12px 0 0;
    text-align: left;
}

/* ============================================================
   Pattern 14: Message + Image
============================================================ */
.lpb-msg-img-block { padding: 32px 16px; }
.lpb-msg-img-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}
.lpb-msg-img-text {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #444;
    margin-bottom: 16px;
    text-align: center;
}
.lpb-msg-img-photo {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* ============================================================
   Pattern 15: Map + Info
============================================================ */
.lpb-mapinfo-block {
    padding: 32px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.lpb-logo-wrap {
    margin: 0 0 4px;
}
.lpb-logo-img {
    max-width: 250px;
    display: inline-block;
}
.lpb-logo-wrap a {
    display: inline-block;
}
.lpb-map-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}
.lpb-map-address {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 14px;
}
.lpb-map-embed-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 4px;
}
.lpb-map-link {
    display: inline-block;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 10px;
}
.lpb-map-embed-wrap iframe {
    width: 100%;
    display: block;
    border-radius: 4px;
}
.lpb-map-free-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px;
}
.lpb-map-tel {
    margin: 0 0 6px;
}
.lpb-map-tel a {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.lpb-map-hours {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}
.lpb-copyright {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* ============================================================
   Fixed CTA Bar
============================================================ */
.lpb-cta-spacer { height: 70px; }
.lpb-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    z-index: 9999;
    transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s;
    opacity: 0;
}
.lpb-cta-bar.visible {
    transform: translateY(0);
    opacity: 1;
}
/* PC時: フレームが284px右にずれているのでCTAも合わせる */
@media (min-width: 900px) {
    .lpb-cta-bar {
        left: 426px;
        width: calc(100% - 284px);
    }
}
.lpb-cta-inner {
    display: flex;
    gap: 2px;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}
.lpb-cta-btn {
    flex: 1;
    display: block;
    text-align: center;
    background: #4aaa8a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 8px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background .2s;
}
.lpb-cta-btn:hover { background: #378a6e; color: #fff; }
.lpb-cta-btn:nth-child(2) { background: #e8834a; }
.lpb-cta-btn:nth-child(2):hover { background: #c86030; }

/* ============================================================
   PC: standalone mode hides body scrollbar overflow
============================================================ */
body.lpb-standalone {
    margin: 0;
    padding: 0;
    background: #888;
}

/* ============================================================
   Pattern 6: Section Title - Style 2 & 3
============================================================ */

/* Style 2: 英字大文字 + 横罫線（voice sliderと同デザイン） */
.lpb-section-title--s2 {
    padding: 32px 20px 24px;
}
.lpb-stitle-s2-en {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #333;
    text-align: center;
    margin: 0 0 10px;
}
.lpb-stitle-s2-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #888;
}
.lpb-stitle-s2-rule::before,
.lpb-stitle-s2-rule::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: #ccc;
}

/* Style 3: シンプル中央下線 */
.lpb-section-title--s3 {
    padding: 32px 20px 16px;
}
.lpb-stitle-s3-text {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.08em;
    margin: 0 0 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8a951;
}
.lpb-section-title--s3 {
    text-align: center;
}

/* Section Title: ボディテキスト */
.lpb-stitle-body {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #444;
    text-align: center;
    padding: 30px 0 30px;
    word-break: break-word;
}
.lpb-stitle-body p { margin: 0 0 10px; }
.lpb-stitle-body p:last-child { margin-bottom: 0; }

/* ============================================================
   Gallery Modal (Lightbox)
============================================================ */
.lpb-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.lpb-modal.active {
    display: flex;
}
.lpb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    animation: lpb-fade-in .2s ease;
}
.lpb-modal-content {
    position: relative;
    z-index: 1;
    max-width: 96vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lpb-scale-in .22s ease;
}
.lpb-modal-img {
    max-width: 96vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lpb-modal-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: .8;
    z-index: 2;
}
.lpb-modal-close:hover { opacity: 1; }
.lpb-modal-prev,
.lpb-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 4px;
    z-index: 2;
    transition: background .15s;
}
.lpb-modal-prev { left: 8px; }
.lpb-modal-next { right: 8px; }
.lpb-modal-prev:hover,
.lpb-modal-next:hover { background: rgba(255,255,255,.3); }

@keyframes lpb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes lpb-scale-in {
    from { transform: scale(.93); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   PC Index Navigation
============================================================ */
.lpb-index {
    display: none;
}

/* ============================================================
   PC インデックス（900px以上）
============================================================ */
@media (min-width: 900px) {
    #lpb-frame {
        position: relative;
        left: 284px;
    }
    .lpb-index {
        display: block;
        position: fixed;
        margin-top: 40px;
        margin-left: -615px;
        width: 100%;
        max-width: 358px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        background: #fff;
        box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.25);
        padding: 10px 12px 20px;
        /* Windowsのスクロールバーを非表示 */
        scrollbar-width: none;      /* Firefox */
        -ms-overflow-style: none;   /* IE/Edge */
    }
    /* Chrome / Safari / Opera */
    .lpb-index::-webkit-scrollbar {
        display: none;
    }
}

.lpb-index-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid #ddd;
}

.lpb-index-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: border-left-color .2s, background .2s;
    border-left: 3px solid transparent;
    margin-left: -2px;
    background: transparent;
}
.lpb-index-item:last-child {
    border-bottom: none;
}
.lpb-index-item:hover {
    border-left-color: #c8a951;
    background: rgba(200,169,81,.06);
}
.lpb-index-item.active {
    border-left-color: #c8a951;
    background: rgba(200,169,81,.08);
}
.lpb-index-title {
    font-size: 19px;
    font-weight: 200;
    color: #333;
    line-height: 1.9;
    letter-spacing: 0.07em;
}
.lpb-index-sub {
    font-size: 12px;
    color: #7d7d7d;
    line-height: 1.4;
    letter-spacing: 1.3px;
}
.lpb-index-item.active .lpb-index-title {
    color: #c8a951;
}

/* ============================================================
   Index Decoration
============================================================ */
.lpb-index-deco {
    text-align: center;
    padding: 16px 8px 12px;
}
.lpb-index-deco-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   LP Builder - Form Fields (Phase 2b)
   ※ 旧フォームモーダル方式の CSS は v1.14.0 でページ遷移方式に
     移行したため削除済み。.lpb-modal* セレクタはギャラリーライト
     ボックス専用となる。
============================================================ */

/* --- フォーム本体 --- */
.lpb-form { font-size: 14px; color: #333; }

.lpb-field { margin-bottom: 14px; }

.lpb-field-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 13px;
    color: #222;
    line-height: 1.5;
}

.lpb-required-mark,
.lpb-optional-mark {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 2px;
    margin-left: 4px;
    font-weight: normal;
    color: #fff;
    vertical-align: middle;
}
.lpb-required-mark { background: #d63638; }
.lpb-optional-mark { background: #888; }

.lpb-field-input input[type=text],
.lpb-field-input input[type=email],
.lpb-field-input input[type=tel],
.lpb-field-input input[type=date],
.lpb-field-input textarea,
.lpb-field-input select {
    width: 100%;
    max-width: 100%;             /* iOS Safari で input[type=date] が親をはみ出す対策 */
    min-width: 0;                /* flex 子要素になった場合に縮められるよう */
    padding: 8px 10px;
    /* iOS Safari は 16px 未満の input をタップすると自動拡大するため 16px を確保 */
    font-size: 16px;
    border: 1px solid #c5c9cd;
    border-radius: 4px;
    box-sizing: border-box;
    background: #fff;
    color: #222;
    line-height: 1.4;
    -webkit-appearance: none;    /* iOS デフォルト見た目を無効化（はみ出しの主因） */
    appearance: none;
    font-family: inherit;
}

/* date input の iOS 固有問題：
   ・タップ領域の確保のため明示的に高さを揃える
   ・テキスト系と同じ box-model に */
.lpb-field-input input[type=date] {
    min-height: 38px;
    display: block;              /* iOS は inline-block 扱いで右に余白が出ることがある */
}

.lpb-field-input input:focus,
.lpb-field-input textarea:focus,
.lpb-field-input select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.lpb-field-input textarea {
    resize: vertical;
    min-height: 84px;
}

/* 姓/名グループ */
.lpb-name-group {
    display: flex;
    gap: 8px;
}
.lpb-name-group input { flex: 1; min-width: 0; }

/* 同意系チェックボックス */
.lpb-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
    font-size: 13px;
}
.lpb-consent input[type=checkbox] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.lpb-consent a {
    color: #2271b1;
    text-decoration: underline;
}

/* 選択肢グループ（checkbox / radio） */
.lpb-choice-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lpb-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

/* 送信ボタン */
.lpb-form-actions {
    margin-top: 20px;
    text-align: center;
}
.lpb-form-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    font-weight: bold;
}
.lpb-form-submit:hover { background: #135e96; }
.lpb-form-submit:disabled { background: #999; cursor: not-allowed; }

.lpb-form-msg {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    min-height: 1.5em;
}

/* CTA ボタン（既存と統一しつつ form-trigger も同スタイル） */
.lpb-cta-form-trigger {
    border: none;
    cursor: pointer;
    font: inherit;
    /* a.lpb-cta-btn と同じ見た目になるよう button のデフォルト UA スタイルを打ち消す */
    appearance: none;
    -webkit-appearance: none;
}

/* スマホ用調整 */
@media (max-width: 480px) {
    .lpb-modal { padding: 8px; }
    .lpb-modal-dialog { max-height: calc(100vh - 16px); border-radius: 6px; }
    .lpb-modal-header { padding: 16px 48px 12px 16px; }
    .lpb-modal-body { padding: 16px; }
    .lpb-form-submit { width: 100%; min-width: 0; }
}

/* ============================================================
   LP Builder - Form Pages (Phase 2b 再実装)
   /{venue}/lpb-form/{form}/{input|confirm|thanks} の各画面用
============================================================ */
body.lpb-form-page {
    background: #f6f7f9;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
}

.lpb-page-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.lpb-page-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.lpb-page-title {
    margin: 0 0 16px;
    font-size: 20px;
    color: #222;
    line-height: 1.4;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

/* ステップインジケータ */
.lpb-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
}
.lpb-step {
    padding: 4px 12px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #888;
}
.lpb-step.active {
    background: #2271b1;
    color: #fff;
    font-weight: bold;
}
.lpb-step-sep {
    color: #ccc;
    font-size: 16px;
}

/* エラーボックス */
.lpb-form-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #b91c1c;
    font-size: 13px;
}
.lpb-form-errors ul {
    margin: 6px 0 0;
    padding-left: 20px;
}
.lpb-form-errors li { margin-bottom: 2px; }

/* 確認画面 */
.lpb-confirm-lead {
    background: #fef9e7;
    border-left: 4px solid #f6c945;
    padding: 10px 14px;
    margin: 0 0 20px;
    font-size: 13px;
    color: #6b5d1c;
    line-height: 1.6;
}

.lpb-confirm-list {
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid #e5e7eb;
}
.lpb-confirm-list dt {
    font-size: 12px;
    color: #666;
    font-weight: bold;
    padding: 12px 0 4px;
    border-bottom: 1px dashed #f0f0f0;
}
.lpb-confirm-list dd {
    margin: 0 0 4px;
    padding: 4px 0 12px;
    font-size: 15px;
    color: #222;
    border-bottom: 1px solid #e5e7eb;
    word-break: break-word;
}

.lpb-confirm-actions { margin-top: 20px; }

.lpb-back-form { margin-top: 12px; }
.lpb-back-actions { text-align: center; }
.lpb-back-btn {
    background: #fff;
    color: #555;
    border: 1px solid #d5d9dd;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
}
.lpb-back-btn:hover { background: #f6f7f9; }

/* 完了画面 */
.lpb-thanks-message {
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #222;
}
.lpb-thanks-message .description {
    color: #999;
    font-size: 12px;
    margin-top: 12px;
}

@media (max-width: 480px) {
    .lpb-page-wrap { padding: 16px 12px 48px; }
    .lpb-page-card { padding: 20px 16px; border-radius: 6px; }
    .lpb-page-title { font-size: 17px; }
    .lpb-step-indicator { font-size: 11px; gap: 4px; }
    .lpb-step { padding: 3px 8px; }
}

/* ============================================================
   Pattern 11: Couple Report
   - 画像は左右余白なしで横幅100%
   - カップル単位で複数並べる
============================================================ */
.lpb-couple-report-block {
    padding: 16px 0;
}
.lpb-couple-report + .lpb-couple-report {
    margin-top: 48px;
}
.lpb-couple-name {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 20px 8px;
    line-height: 1.5;
    color: #333;
    text-align: center;
}
.lpb-couple-desc {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin: 0 20px 16px;
    text-align: left;
}
/* 画像コンテナ：左右余白なし */
.lpb-couple-img {
    overflow: hidden;
}
.lpb-couple-img img {
    width: 100%;
    height: auto;
    display: block;
}
/* 単体画像（1,4）：横幅100% */
.lpb-couple-img-full {
    width: 100%;
    margin-bottom: 0;
}
.lpb-couple-img-full + .lpb-couple-img-pair,
.lpb-couple-img-pair + .lpb-couple-img-full {
    margin-top: 2px;
}
/* ペア画像（2,3）：1/2幅ずつ */
.lpb-couple-img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.lpb-couple-img-pair .lpb-couple-img {
    width: 100%;
}
/* ペアに片方しか画像が無いとき、そちらを横幅いっぱいに */
.lpb-couple-img-pair:has(> .lpb-couple-img-half:only-child) {
    grid-template-columns: 1fr;
}

/* ============================================================
   Pattern 12: Plan Card
   - 画像周りに padding: 18px
   - タイトル：ゴールド・太字
   - 料金前に「プラン料金」ラベル、人数前に「／」
   - アイコンの下に「詳しく見る」アコーディオン
   - 含まれるアイテムはテーブル枠
============================================================ */
.lpb-plan-card-block {
    padding: 16px 0;
}
.lpb-plan-card {
    border: 1px solid #D6D6D6;
    border-radius: 6px;
    background: #fff;
    margin: 16px 16px 0;
    padding-bottom: 18px;
    overflow: hidden;
}

/* 画像コンテナ：周囲に 18px の余白を持たせる */
.lpb-plan-card-imgwrap {
    padding: 18px;
}
.lpb-plan-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}
.lpb-plan-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* タイトル：ゴールド・太字 */
.lpb-plan-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #b48a3b;
    margin: 0 18px 10px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* 料金・人数・フリーテキスト */
.lpb-plan-card-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 18px 14px;
}
.lpb-plan-card-price-block {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.lpb-plan-card-price-label {
    font-size: 12px;
    color: #b48a3b;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.lpb-plan-card-price {
    font-size: 26px;
    font-weight: 700;
    color: #b48a3b;
    line-height: 1.1;
}
.lpb-plan-card-price-yen {
    font-size: 14px;
    font-weight: 500;
    margin-left: 2px;
    color: #b48a3b;
}
.lpb-plan-card-guests {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin-left: 2px;
}
.lpb-plan-card-extra {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* アイコン */
.lpb-plan-card-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 18px 14px;
}
.lpb-plan-card-icon {
    display: inline-block;
    font-size: 11px;
    line-height: 1.4;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f6efde;
    color: #8a6620;
    border: 1px solid #e6d6a6;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* 「詳しく見る」トグルボタン */
.lpb-plan-card-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 36px);
    margin: 4px 18px 0;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #b48a3b;
    color: #b48a3b;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lpb-plan-card-toggle:hover {
    background: #b48a3b;
    color: #fff;
}
.lpb-plan-card-toggle-icon {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s;
}
.lpb-plan-card-toggle[aria-expanded="true"] .lpb-plan-card-toggle-icon {
    transform: rotate(180deg);
}

/* アコーディオン中身 */
.lpb-plan-card-details {
    margin-top: 14px;
}
.lpb-plan-card-desc {
    font-size: 14px;
    line-height: 1.85;
    color: #444;
    margin: 0 18px 12px;
}
.lpb-plan-card-meta {
    margin: 0 18px 12px;
    padding: 0;
    font-size: 12.5px;
    line-height: 1.7;
}
.lpb-plan-card-meta dt {
    color: #888;
    margin-top: 6px;
    font-weight: 500;
}
.lpb-plan-card-meta dt:first-child { margin-top: 0; }
.lpb-plan-card-meta dd {
    margin: 0 0 6px;
    color: #333;
}

/* 含まれるアイテム：テーブル枠 */
.lpb-plan-card-includes {
    margin: 12px 18px 0;
}
.lpb-plan-card-includes-title {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
}
.lpb-plan-card-includes-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #D6D6D6;
    font-size: 13px;
    background: #fafafa;
}
.lpb-plan-card-includes-table th,
.lpb-plan-card-includes-table td {
    border-bottom: 1px solid #e6e6e6;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}
.lpb-plan-card-includes-table tr:last-child th,
.lpb-plan-card-includes-table tr:last-child td {
    border-bottom: none;
}
.lpb-plan-card-includes-table th {
    width: 38%;
    background: #f3f0e8;
    color: #555;
    font-weight: 600;
    border-right: 1px solid #e6e6e6;
    white-space: nowrap;
}
.lpb-plan-card-includes-table td {
    color: #333;
}

/* ============================================================
   Pattern 13: Fair Card
   - 画像：正方形（周囲に余白）
   - タイトル：黒・太字
   - 特典：グレー枠で「このフェアの参加特典」見出し
   - フェア内容：タイトル/内容を縦に表示
============================================================ */
.lpb-fair-card-block {
    padding: 16px 0;
}
.lpb-fair-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    margin: 16px 16px 0;
    padding-bottom: 18px;
    overflow: hidden;
}

/* 画像コンテナ：周囲 18px の余白 + 正方形 */
.lpb-fair-card-imgwrap {
    padding: 18px;
}
.lpb-fair-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}
.lpb-fair-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* タイトル：黒・太字 */
.lpb-fair-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 18px 10px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* 説明文 */
.lpb-fair-card-desc {
    font-size: 14px;
    line-height: 1.85;
    color: #444;
    margin: 0 18px 16px;
}

/* 特典：グレー枠 */
.lpb-fair-card-benefit {
    margin: 0 18px 16px;
}
.lpb-fair-card-benefit-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.lpb-fair-card-benefit-body {
    background: #f3f3f3;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.75;
    color: #333;
}

/* フェア内容：縦に並べる */
.lpb-fair-card-contents {
    margin: 0 18px;
    border-top: 1px solid #e6e6e6;
    padding-top: 14px;
}
.lpb-fair-card-content-item {
    padding: 10px 0;
    border-bottom: 1px solid #efefef;
}
.lpb-fair-card-content-item:last-child {
    border-bottom: none;
}
.lpb-fair-card-content-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.lpb-fair-card-content-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: #555;
}

/* ============================================================
   共通：画像左上バッジ（プラン・フェア）
   - 親要素（.lpb-plan-card-img / .lpb-fair-card-img）に position:relative が必要
   - 画像の左上に被さる形で配置（画像内に収まる）
============================================================ */
.lpb-plan-card-img,
.lpb-fair-card-img {
    position: relative;
}
.lpb-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 60px;
    min-height: 60px;
    padding: 6px 10px;
    border-radius: 50%;
    background: #b32d2e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    letter-spacing: 0.02em;
    box-sizing: border-box;
    word-break: keep-all;
}

/* ============================================================
   フェアの「詳しく見る」アコーディオン
============================================================ */
.lpb-fair-card-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 36px);
    margin: 4px 18px 0;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #333;
    color: #333;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lpb-fair-card-toggle:hover {
    background: #333;
    color: #fff;
}
.lpb-fair-card-toggle-icon {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s;
}
.lpb-fair-card-toggle[aria-expanded="true"] .lpb-fair-card-toggle-icon {
    transform: rotate(180deg);
}
.lpb-fair-card-details {
    margin-top: 14px;
}
