/* TOPのサービス説明（.top-lead／.top-service-intro／.top-feature*／.top-about-button）の
   スタイルは top.css が持つ。ここでは紹介ポップアップとお試し確認ポップアップの
   スタイルだけを定義する（Stitchデザイン案「Inori Fan Atelier」適用）。
   ※このファイルは top.css の後に読み込まれるため、本文側と同名のクラスは置かない */

/* 紹介ポップアップは土台側のモーダル：共通モーダル（z-index:1000）・確認ポップアップ（1300）より下に置く */
.top-introduction-modal{display:none;position:fixed;inset:0;z-index:900;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;background:rgba(25,15,22,.58)}
.top-introduction-modal.is-open{display:flex}
.top-introduction-dialog{display:flex;flex-direction:column;width:min(100%,520px);max-height:calc(100dvh - 32px);margin:auto;overflow:hidden;border-radius:24px;background:#fff;border:1px solid var(--theme-border-soft);box-shadow:0 24px 60px rgba(var(--theme-brand-rgb),.28)}
.top-introduction-dialog .modal-header{flex:0 0 auto;height:auto;min-height:0;padding:18px 22px 12px;border-bottom:1px solid var(--theme-border-soft)}
.top-introduction-dialog .modal-close,.guest-confirm-dialog .modal-close{width:32px;height:32px;border-radius:50%;background:var(--theme-blush);color:var(--theme-brand);font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
.top-introduction-dialog .modal-title{font-size:19px;font-weight:700;color:#1a1b22}
.top-introduction-dialog .modal-title::before{content:"";display:inline-block;width:9px;height:9px;margin-right:9px;border-radius:50%;background:var(--theme-accent);vertical-align:2px}
.top-introduction-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px;-webkit-overflow-scrolling:touch;word-break:auto-phrase;line-break:strict}
.top-introduction-body h3{margin:0 0 10px;font-size:18px;line-height:1.6;color:var(--theme-brand)}
.top-introduction-body>p,.top-introduction-feature p,.top-introduction-guest p{margin:0;font-size:13px;line-height:1.8;color:var(--theme-text)}
.top-introduction-features{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.top-introduction-feature{padding:13px 14px;border:1px solid var(--theme-border-soft);border-radius:14px;background:var(--theme-tint)}
.top-introduction-feature h4,.top-introduction-guest h4{margin:0 0 5px;font-size:14px;color:#1a1b22}
.top-introduction-body>p.top-introduction-more{margin-top:14px;text-align:right}
.top-introduction-body>p.top-introduction-more a{color:var(--theme-brand);font-weight:700;text-decoration:none}
.top-introduction-guest{margin-top:14px;padding:14px;border:1px solid var(--theme-border);border-radius:14px;background:#fffafd}
.top-introduction-guest p+p{margin-top:7px}
.top-introduction-note{font-size:11.5px !important;color:var(--theme-text-sub) !important}
.top-introduction-actions{display:flex;flex:0 0 auto;flex-direction:column;gap:8px;padding:14px 22px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--theme-border-soft);background:#fff}
.top-introduction-actions button{display:block;box-sizing:border-box;width:auto;min-width:0;min-height:46px;flex:1 1 0;padding:12px 18px;border-radius:999px;font-size:14px;line-height:1.5;font-weight:700;white-space:normal;writing-mode:horizontal-tb;word-break:keep-all;cursor:pointer}
.top-introduction-primary{border:none;background:linear-gradient(135deg,var(--theme-accent),#dc2c4f);color:#fff;box-shadow:0 6px 16px rgba(var(--theme-primary-rgb),.3)}
.top-introduction-secondary{border:1.5px solid var(--theme-border);background:#fff;color:var(--theme-text)}
@media(min-width:700px){
    .top-introduction-dialog{width:min(100%,620px)}
    .top-introduction-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .top-introduction-actions{flex-direction:row;align-items:stretch;justify-content:flex-end}
    .top-introduction-actions .top-introduction-secondary{order:1;flex:0 0 130px;width:130px}
    .top-introduction-actions .top-introduction-primary{order:2;flex:0 0 230px;width:230px}
}

/* お試し確認ポップアップ（共通モーダルの .modal-content をこのダイアログだけ差し替える） */
.guest-confirm-dialog{border:1.5px solid var(--theme-border) !important;border-radius:24px !important;box-shadow:0 24px 60px rgba(var(--theme-brand-rgb),.28);overflow:hidden}
.guest-confirm-dialog .modal-header{height:auto;min-height:0;flex:0 0 auto;padding:18px 22px 6px;border-bottom:none}
.guest-confirm-dialog .modal-title{font-size:18px;font-weight:700;color:#1a1b22}
.guest-confirm-dialog .modal-body{padding:10px 22px 6px;font-size:13.5px;line-height:1.8;color:var(--theme-text);word-break:auto-phrase;line-break:strict}
.guest-info-box{padding:13px 14px;margin:12px 0;border:1px solid var(--theme-border-soft);border-radius:14px;background:var(--theme-tint)}
.guest-info-box strong{color:var(--theme-brand)}
.guest-info-box p{margin:6px 0 0}
.guest-confirm-actions{display:flex;flex-direction:row;gap:10px;padding:12px 22px 20px;border-top:none}
.guest-confirm-actions button{flex:1;min-width:0;min-height:48px;padding:10px 8px;border-radius:14px;font-size:14px;font-weight:700;cursor:pointer}

/* ===== TOPページ共通モーダルの調整（TOP内のみ・body.top-pageで限定） ===== */
/* スマホ：下部ナビ前提の70px空けをやめ、画面全体を覆う（フッター文が浮いて見える問題の解消） */
@media(max-width:600px){body.top-page .modal{bottom:0}}
/* 覆いの色をTOPの世界観に統一 */
body.top-page .modal{background:rgba(25,15,22,.58)}
/* ダイアログの角丸と影を新デザインに寄せる */
body.top-page .modal-content{border-radius:20px;box-shadow:0 24px 60px rgba(25,15,22,.35)}
body.top-page .modal-header{border-bottom:1px solid var(--theme-border-soft)}
body.top-page .modal-title{color:var(--theme-heading)}
body.top-page .modal-close{width:32px;height:32px;border-radius:50%;background:var(--theme-blush);color:var(--theme-brand);font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
