/* Homepage invitation and native modal are isolated from the legacy theme. */
.eacpf-invite,.eacpf-dialog{--pf-rose:#af4b70;--pf-ink:#62535e;--pf-muted:#786e76;--pf-line:#eadfe5;--pf-soft:#fcf1f5;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--pf-ink);line-height:1.8;letter-spacing:.02em;}
.eacpf-invite *,.eacpf-dialog *{box-sizing:border-box;}
.eacpf-invite [hidden],.eacpf-dialog [hidden]{display:none!important;}
.eacpf-invite :is(p,h2,figure),.eacpf-dialog :is(h2,h3,h4,p,ul,ol,dl,dd,fieldset,legend){margin:0;padding:0;}
.eacpf-invite button,.eacpf-dialog button,.eacpf-dialog input{font:inherit;letter-spacing:inherit;}
.eacpf-invite button,.eacpf-dialog button{cursor:pointer;}
.eacpf-invite a,.eacpf-dialog a{text-decoration:none;}
.eacpf-invite :is(a,button):focus-visible,.eacpf-dialog :is(a,button,input,textarea):focus-visible{outline:3px solid #ae5277;outline-offset:4px;}
.eacpf-invite{padding:42px 24px 58px;background:#f2f7f6;}
.eacpf-invite-card{position:relative;max-width:1080px;margin:0 auto;padding:42px 50px;display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:center;border:1px solid #fff;border-radius:26px;background:linear-gradient(115deg,#fffaf5 12%,#fff4f6 54%,#eff8f6);box-shadow:0 12px 40px #856f7910;overflow:hidden;}
.eacpf-kicker{font-size:10px!important;font-weight:600;letter-spacing:.2em;line-height:1.6;color:var(--pf-rose);}
.eacpf-minute{display:inline-block;margin-top:16px;font-size:11px;letter-spacing:.1em;border-radius:30px;background:white;padding:4px 13px;color:#8c6578;}
#pages-index .eacpf-invite h2{font-size:clamp(23px,2.4vw,33px);font-weight:700;color:var(--pf-ink);line-height:1.65;letter-spacing:.03em;margin:10px 0 14px;padding:0;border:0;background:none;box-shadow:none;}
.eacpf-invite h2 em{font-style:normal;color:var(--pf-rose);background:linear-gradient(transparent 68%,#f5dce4 68%,#f5dce4 91%,transparent 91%);}
.eacpf-one{font-family:Georgia,serif;font-size:1.7em;font-weight:400;color:var(--pf-rose);line-height:1;margin-right:8px;}
.eacpf-one>span{font-family:"Noto Sans JP",sans-serif;font-size:.51em;font-weight:700;margin-left:3px;}
.eacpf-invite-lead{font-size:13px;line-height:1.9;}
.eacpf-invite .eacpf-primary,.eacpf-dialog .eacpf-primary{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:50px;border:1px solid var(--pf-rose);border-radius:50px;background:var(--pf-rose);color:#fff;padding:12px 25px;font-size:14px;font-weight:600;line-height:1.7;box-shadow:0 6px 0 #efd8e1;transition:background .2s,transform .2s,box-shadow .2s;text-align:center;}
.eacpf-invite .eacpf-primary:hover,.eacpf-dialog .eacpf-primary:hover{background:#973c5f;border-color:#973c5f;color:#fff;transform:translateY(-2px);box-shadow:0 8px 0 #efd8e1;}
.eacpf-invite .eacpf-primary{margin-top:23px;}
.eacpf-primary>span{font-size:20px;}
.eacpf-postcards{position:relative;min-height:310px;}
.eacpf-postcard{position:absolute;background:#fff;padding:8px 8px 3px;width:56%;border-radius:8px;box-shadow:0 10px 25px #6b566520;}
.eacpf-postcard img{display:block;width:100%;height:190px;object-fit:cover;border-radius:4px;}
.eacpf-postcard figcaption{font:italic 17px/1.8 Georgia,serif;color:#806377;text-align:center;white-space:nowrap;}
.eacpf-postcard-one{left:0;top:6px;transform:rotate(-8deg);}
.eacpf-postcard-two{right:0;top:63px;transform:rotate(9deg);}
.eacpf-stamp{position:absolute;right:7px;top:-8px;display:grid;place-items:center;width:82px;height:82px;border:1px dashed #ae647f;border-radius:50%;font-size:9px;line-height:1.4;letter-spacing:.1em;color:#995c77;transform:rotate(12deg);background:#f9f1ef;}
.eacpf-stamp span{font-size:19px;line-height:1;}
.eacpf-spark{position:absolute;color:#bf9270;z-index:2;pointer-events:none;}
.eacpf-spark-one{left:-22px;top:7px;font-size:38px;}.eacpf-spark-two{left:30px;bottom:28px;font-size:22px;}
.eacpf-postcards .eacpf-postcard-note{position:absolute;bottom:-13px;left:0;right:0;text-align:center;font-size:11px;letter-spacing:.1em;color:#90697d;}

.eacpf-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(850px,calc(100% - 48px));max-width:none;max-height:min(90dvh,920px);border:0;border-radius:24px;background:#fffdfd;box-shadow:0 24px 100px #55425145;overflow:hidden;}
.eacpf-dialog[open]{display:flex;flex-direction:column;animation:eacpf-enter .3s ease both;}
.eacpf-dialog::backdrop{background:#62535e80;backdrop-filter:blur(5px);}
.eacpf-dialog-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 32px;background:#fff;border-bottom:1px solid var(--pf-line);}
.eacpf-dialog .eacpf-dialog-head h2{margin:4px 0 0;padding:0;color:var(--pf-ink);font-size:16px;line-height:1.6;font-weight:600;border:0;background:none;box-shadow:none;}
.eacpf-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #ecdfe5;border-radius:50%;font-size:26px!important;line-height:1;background:#fcf5f8;color:#98637b;}
.eacpf-close:hover{background:#f4e1e9;}
.eacpf-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:28px 42px 34px;scrollbar-width:thin;scrollbar-color:#d8b6c4 transparent;}
.eacpf-progress{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;gap:10px;margin:0 0 35px!important;}
.eacpf-progress li{display:flex;align-items:center;justify-content:center;gap:9px;border-bottom:2px solid #ede7eb;padding-bottom:13px;font-size:12px;color:#8a7b84;}
.eacpf-progress li>span{display:grid;place-items:center;width:26px;height:26px;background:#f4eef1;border-radius:50%;font-size:12px;}
.eacpf-progress li[aria-current]{color:var(--pf-rose);font-weight:700;border-color:#ba6687;}
.eacpf-progress li[aria-current]>span{background:var(--pf-rose);color:white;}
.eacpf-progress .eacpf-complete{color:#8f6175;border-color:#dcb6c6;}
.eacpf-step{border:0;min-width:0;animation:eacpf-step .25s ease both;}
.eacpf-step legend{display:block;width:100%;font-size:26px;line-height:1.6;font-weight:700;color:var(--pf-ink);outline:none;}
.eacpf-step-number{display:block;font-size:10px;font-weight:500;color:#aa6683;letter-spacing:.16em;margin-bottom:8px;}
.eacpf-hint{font-size:13px;margin:10px 0 23px!important;color:var(--pf-muted);}
.eacpf-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.eacpf-option{position:relative;display:block;margin:0;cursor:pointer;}
.eacpf-option input{position:absolute;opacity:0;width:1px;height:1px;}
.eacpf-option>span{text-wrap:balance;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;border:1px solid #e5dce2;border-radius:13px;background:white;padding:13px 17px;font-size:14px;line-height:1.7;transition:background .18s,border-color .18s,box-shadow .18s;}
.eacpf-option i{display:grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid #d5c5cf;border-radius:50%;font-style:normal;}
.eacpf-option input[type=checkbox]+span i{border-radius:5px;}
.eacpf-option:hover>span{background:#fff7fa;border-color:#d3a7ba;}
.eacpf-option input:checked+span{background:#fcf0f5;border-color:#b96385;color:#994364;box-shadow:0 0 0 1px #b9638520;}
.eacpf-option input:checked+span i{background:#b4557b;border-color:#b4557b;color:white;}
.eacpf-option input:checked+span i::after{content:'✓';font-size:12px;font-weight:700;}
.eacpf-option input:focus-visible+span{outline:3px solid #ae5277;outline-offset:3px;}
.eacpf-help{font-size:11px!important;line-height:1.9;color:var(--pf-muted);}
.eacpf-step>.eacpf-help{margin-top:18px;}
.eacpf-month-row{margin-top:22px;padding:20px 24px;background:#f3f7f5;border-radius:14px;}
.eacpf-month-row label{display:block;font-size:13px;margin-bottom:10px;}
.eacpf-month-row input{display:block;width:100%;max-width:320px;min-height:48px;border:1px solid #c5d7ce;background:#fff;border-radius:8px;padding:10px 14px;color:#5a655e;font-size:16px;}
.eacpf-month-row .eacpf-help{margin-top:8px;}
.eacpf-error{background:#fff0f3;border-radius:8px;padding:12px 16px!important;color:#a03157;font-size:13px;margin-top:18px!important;}
.eacpf-step-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:30px;}
.eacpf-step-actions .eacpf-next{margin-left:auto;min-width:175px;}
.eacpf-back{border:0;background:transparent;color:#796372;padding:12px 0;font-size:13px!important;}
.eacpf-private{text-align:center;font-size:10px;color:#8a7b85;margin-top:24px!important;}
.eacpf-results{animation:eacpf-step .3s ease both;}
.eacpf-result-kicker{font-size:10px;letter-spacing:.2em;text-align:center;color:var(--pf-rose);}
.eacpf-dialog .eacpf-results h3{background:none;border:0;box-shadow:none;font-size:26px;line-height:1.6;color:var(--pf-ink);font-weight:700;text-align:center;margin:10px 0 15px;outline:none;}
.eacpf-results h3 em{font-style:normal;color:var(--pf-rose);}
.eacpf-result-intro{font-size:12px;text-align:center;}
.eacpf-answer-summary{font-size:12px;text-align:center;margin:18px 0 10px!important;background:#f5ecef;padding:11px 15px!important;border-radius:12px;}
.eacpf-result-note{font-size:11px;line-height:1.9;text-align:center;color:#866277;margin-bottom:24px!important;}
.eacpf-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;}
.eacpf-result-card{min-width:0;overflow:hidden;display:flex;flex-direction:column;background:white;border:1px solid #eadfe5;border-radius:16px;box-shadow:0 5px 18px #7a627b08;}
.eacpf-result-photo{position:relative;}
.eacpf-result-photo img{display:block;width:100%;height:165px;object-fit:cover;}
.eacpf-result-number{position:absolute;top:12px;left:12px;border-radius:25px;background:#ffffffed;color:#8e5b72;padding:4px 11px;font-size:10px;letter-spacing:.1em;}
.eacpf-result-body{padding:23px;display:flex;flex-direction:column;flex:1;}
.eacpf-country{font-size:9px;letter-spacing:.06em;color:#897480;}
.eacpf-dialog .eacpf-result-card h4{font-size:23px;font-weight:700;line-height:1.6;color:var(--pf-ink);background:none;border:0;box-shadow:none;padding:0;margin:3px 0 8px;}
.eacpf-plan-title{font-size:13px;font-weight:600;color:var(--pf-rose);margin-bottom:14px!important;}
.eacpf-reasons{display:flex;gap:6px;flex-wrap:wrap;list-style:none;margin-bottom:14px!important;}
.eacpf-reasons li{font-size:10px;line-height:1.8;padding:3px 8px;border-radius:6px;background:#eff5f2;color:#516f61;}
.eacpf-description{font-size:12px;line-height:1.9;}
.eacpf-plan-detail{font-size:12px;line-height:1.9;margin-top:12px!important;}
.eacpf-plan-meta{padding-block:13px!important;margin:16px 0 12px!important;border-block:1px solid #eee4e9;}
.eacpf-plan-meta>div{display:grid;grid-template-columns:42px 1fr;gap:9px;font-size:11px;line-height:1.8;}
.eacpf-plan-meta>div+div{margin-top:5px;}
.eacpf-plan-meta dt{font-weight:500;color:#9b6c82;}.eacpf-plan-meta dd{margin:0;}
.eacpf-season,.eacpf-school-note,.eacpf-travel-note{font-size:10px;line-height:1.8;color:var(--pf-muted);margin-bottom:9px!important;}
.eacpf-school-note{color:#9b5372;}
.eacpf-city-link{display:block;text-align:center;padding:11px 5px;border-top:1px solid var(--pf-line);font-size:12px;font-weight:600;color:var(--pf-rose);margin-top:auto;}
.eacpf-city-link:hover{background:var(--pf-soft);color:#8e3558;}
.eacpf-consult{margin-top:28px;padding:26px 20px;border-radius:16px;text-align:center;background:linear-gradient(115deg,#fff1f6,#f0f6f4);}
.eacpf-consult>p:first-child{font-size:15px;font-weight:600;margin-bottom:16px;}
.eacpf-consult .eacpf-help{margin-top:18px;}
.eacpf-result-actions{display:flex;justify-content:center;gap:20px;margin:22px 0 10px;}
.eacpf-result-actions button{border:0;border-bottom:1px solid #d3b5c3;background:transparent;color:#8f5370;padding:7px 2px;font-size:12px;}
.eacpf-copy-status{font-size:11px;color:#557365;text-align:center;}
.eacpf-copy-fallback{display:block;width:100%;height:120px;margin-top:15px;padding:15px;border:1px solid #d4bdc8;font:inherit;font-size:12px;}
.eacpf-result-disclaimer{margin-top:22px!important;}
@keyframes eacpf-enter{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes eacpf-step{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:641px) and (max-height:800px){
 .eacpf-dialog-head{padding-block:15px;}.eacpf-scroll{padding-block:20px 24px;}.eacpf-progress{margin-bottom:22px!important;}.eacpf-step legend{font-size:24px;}.eacpf-step-number{margin-bottom:5px;}.eacpf-hint{margin:7px 0 17px!important;}.eacpf-options{gap:10px;}.eacpf-option>span{min-height:50px;padding-block:10px;}.eacpf-step-actions{margin-top:22px;}.eacpf-private{margin-top:18px!important;}
}
@media(max-width:900px){.eacpf-invite-card{padding:32px;gap:20px;}.eacpf-postcards{min-height:290px;}.eacpf-postcard img{height:155px;}.eacpf-postcard-two{top:90px;}.eacpf-stamp{width:72px;height:72px;}}
@media(max-width:640px){
 .eacpf-invite{padding:28px 18px 35px;}.eacpf-invite-card{grid-template-columns:1fr;padding:27px 25px 25px;border-radius:22px;gap:22px;}.eacpf-kicker{font-size:9px!important;}.eacpf-minute{margin-top:12px;font-size:10px;}#pages-index .eacpf-invite h2{font-size:25px;line-height:1.6;}.eacpf-invite-lead{font-size:12px;}.eacpf-invite .eacpf-primary{font-size:12px;padding-inline:18px;margin-top:20px;gap:16px;}.eacpf-postcards{min-height:185px;max-width:340px;width:100%;margin:0 auto;}.eacpf-postcard{width:48%;padding:6px;}.eacpf-postcard img{height:120px;}.eacpf-postcard figcaption{font-size:13px;}.eacpf-postcard-one{top:8px;left:12px;}.eacpf-postcard-two{top:21px;right:10px;}.eacpf-stamp{right:-5px;top:-8px;width:57px;height:57px;font-size:6px;z-index:2;}.eacpf-stamp span{font-size:15px;}.eacpf-spark-one{left:-5px;font-size:25px;}.eacpf-spark-two{bottom:5px;left:5px;}.eacpf-postcards .eacpf-postcard-note{bottom:-10px;font-size:9px;}
 .eacpf-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:20px;}.eacpf-dialog-head{padding:17px 19px;gap:10px;}.eacpf-dialog .eacpf-dialog-head h2{font-size:13px;}.eacpf-close{width:38px;height:38px;}.eacpf-scroll{padding:24px 20px 28px;}.eacpf-progress{gap:7px;margin-bottom:26px!important;}.eacpf-progress li{font-size:10px;gap:6px;padding-bottom:10px;}.eacpf-progress li>span{width:22px;height:22px;font-size:10px;}.eacpf-step legend{font-size:21px;}.eacpf-hint{font-size:12px;}.eacpf-options{gap:10px;}.eacpf-option>span{padding:12px 11px;min-height:62px;font-size:12px;gap:5px;}.eacpf-option i{width:16px;height:16px;}.eacpf-help{font-size:10px!important;}.eacpf-step-actions{gap:12px;margin-top:23px;}.eacpf-step-actions .eacpf-next{min-width:0;flex:1;font-size:12px;padding:12px 15px;}.eacpf-back{font-size:11px!important;white-space:nowrap;}.eacpf-private{font-size:9px;}.eacpf-month-row{padding:17px;}.eacpf-dialog .eacpf-results h3{font-size:23px;}.eacpf-result-grid{grid-template-columns:minmax(0,1fr);gap:20px;}.eacpf-result-photo img{height:180px;}.eacpf-result-body{padding:22px;}.eacpf-consult{padding:23px 16px;}.eacpf-dialog .eacpf-consult .eacpf-primary{font-size:12px;padding:12px 15px;gap:10px;}.eacpf-consult>p:first-child{font-size:13px;}.eacpf-result-actions{gap:18px;}.eacpf-result-actions button{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){.eacpf-dialog[open],.eacpf-step,.eacpf-results{animation:none;}.eacpf-invite *,.eacpf-dialog *{transition:none!important;}.eacpf-primary:hover{transform:none!important;}}
