/* The gate has its own scope and does not change the shared site styles. */
.ypa-scope {
	--ypa-paper: var(--e-paper, #f7f4ed);
	--ypa-ink: var(--e-ink, #263a31);
	--ypa-deep: var(--e-deep, #1e2a23);
	--ypa-gold: var(--e-gold, #d2c5a5);
	--ypa-line: var(--e-line, #d8d5c9);
	--ypa-serif: var(--e-serif, 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif);
	--ypa-sans: var(--e-sans, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', sans-serif);
	color: var(--ypa-ink);
	font-family: var(--ypa-serif);
	-webkit-font-smoothing: antialiased;
}
.ypa-scope, .ypa-scope *, .ypa-scope *::before, .ypa-scope *::after { box-sizing: border-box; }
.ypa-scope [hidden] { display: none !important; }
.ypa-scope :is(h1, h2, p) { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.ypa-scope :is(h1, h2)::before, .ypa-scope :is(h1, h2)::after { display: none; }
.ypa-scope :is(button, input) { font-family: var(--ypa-sans); }
.ypa-scope button { appearance: none; cursor: pointer; }
.ypa-scope :is(button, a, input):focus-visible { outline: 2px solid #886335; outline-offset: 4px; }
.ypa-scope a { color: inherit; }
.ypa-scope svg { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.ypa-eyebrow { font: 10px/1.8 var(--ypa-sans); letter-spacing: .2em; }
.ypa-landing, body.yomo-inner #main_content.ypa-landing { display: grid; place-items: center; width: 100%; max-width: none; margin: 0; min-height: 76vh; min-height: 76svh; padding: 160px 24px 90px; background: var(--ypa-deep); color: var(--ypa-paper); text-align: center; }
body.ypa-modal-open { overflow: hidden; }
.ypa-landing-inner { width: 100%; max-width: 740px; }
.ypa-landing .ypa-eyebrow { color: var(--ypa-gold); }
.ypa-lock { display: grid; place-items: center; width: 72px; height: 72px; margin: 30px auto 24px; border: 1px solid rgb(210 197 165 / 45%); border-radius: 50%; color: var(--ypa-gold); }
.ypa-lock svg { width: 40px; height: 40px; }
.ypa-landing h1 { color: inherit; font: 400 clamp(32px, 4vw, 48px)/1.65 var(--ypa-serif); letter-spacing: .08em; }
.ypa-landing-copy { margin-top: 22px !important; color: #eee9dc; font-size: 13px; line-height: 2.2; }
.ypa-landing-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 32px; }
.ypa-scope .ypa-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 15px 20px; border: 1px solid transparent; border-radius: 2px; font: 500 12px/1.8 var(--ypa-sans); letter-spacing: .025em; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.ypa-scope .ypa-button-primary { background: var(--ypa-ink); color: var(--ypa-paper); }
.ypa-landing .ypa-button-primary { background: #e1d0ac; color: #263a31; }
.ypa-scope .ypa-button-primary:hover { background: #16251c; }
.ypa-landing .ypa-button-primary:hover { background: #efdfbf; }
.ypa-scope .ypa-button:disabled { cursor: progress; opacity: .65; }
.ypa-scope .ypa-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: 12px/1.9 var(--ypa-sans); text-align: left; text-decoration: none; text-underline-offset: 4px; }
.ypa-scope .ypa-text-link:hover { text-decoration: underline; }
.ypa-dialog { position: fixed; inset: 0; z-index: 1000; width: min(840px, calc(100% - 48px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--ypa-gold); border-radius: 3px; background: var(--ypa-paper); box-shadow: 0 32px 100px rgb(0 0 0 / 28%); }
.ypa-dialog:not([open]) { display: none; }
.ypa-dialog::backdrop { background: rgb(12 24 17 / 78%); backdrop-filter: blur(5px); }
.ypa-dialog-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); }
.ypa-dialog-aside { display: flex; flex-direction: column; min-width: 0; padding: 45px 32px 30px; background: var(--ypa-deep); color: var(--ypa-paper); }
.ypa-dialog-aside .ypa-eyebrow { color: var(--ypa-gold); font-size: 9px; }
.ypa-library-mark { width: 104px; height: 104px; margin: 48px 0 24px; color: var(--ypa-gold); stroke-width: 1; }
.ypa-aside-title { font: 400 25px/1.9 var(--ypa-serif); letter-spacing: .04em; }
.ypa-aside-note { margin-top: 22px !important; color: #e0e3d7; font-size: 11px; line-height: 2; }
.ypa-aside-rule { display: block; width: 100%; height: 1px; margin-top: auto; padding-top: 38px; border-bottom: 1px solid rgb(210 197 165 / 30%); }
.ypa-aside-footer { margin-top: 14px !important; color: var(--ypa-gold); font: 9px/1.8 var(--ypa-sans); letter-spacing: .18em; }
.ypa-dialog-main { position: relative; min-width: 0; padding: 58px 38px 38px; }
.ypa-scope .ypa-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ypa-ink); font: 300 29px/1 var(--ypa-sans); }
.ypa-scope .ypa-close:hover { background: #e9e5da; }
.ypa-step { margin-bottom: 14px !important; color: #59675c; font: 10px/1.8 var(--ypa-sans); letter-spacing: .07em; }
.ypa-view h2 { color: var(--ypa-ink); font: 400 clamp(21px, 2.2vw, 26px)/1.75 var(--ypa-serif); letter-spacing: .015em; overflow-wrap: anywhere; }
.ypa-view h2:focus { outline: 0; }
.ypa-view-copy { margin-top: 15px !important; color: #526054; font-size: 12px; line-height: 2; }
.ypa-form { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.ypa-field { display: flex; flex-direction: column; gap: 8px; }
.ypa-field label { display: flex; align-items: baseline; gap: 10px; font: 500 12px/1.8 var(--ypa-sans); }
.ypa-required { color: #5f6258; font-size: 9px; font-weight: 400; }
.ypa-scope .ypa-field input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #a8afa0; border-radius: 2px; background: #fffdf8; color: #263a31; font-size: 16px; line-height: 1.5; box-shadow: none; }
.ypa-scope .ypa-field input::placeholder { color: #59675c; opacity: 1; }
.ypa-scope .ypa-field input[aria-invalid='true'] { border-color: #9b3c2c; }
.ypa-field-note { color: #59675c; font: 10px/1.8 var(--ypa-sans); }
.ypa-privacy { color: #526054; font: 11px/1.9 var(--ypa-sans); }
.ypa-privacy a { text-decoration: underline; text-underline-offset: .2em; }
.ypa-form .ypa-button { width: 100%; margin-top: 2px; text-align: left; }
.ypa-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ypa-switch-block { margin-top: 28px; padding-top: 21px; border-top: 1px solid var(--ypa-line); }
.ypa-switch-block > p { margin-bottom: 6px; color: #59675c; font: 10px/1.8 var(--ypa-sans); }
.ypa-switch-block .ypa-text-link { width: 100%; font-size: 11px; }
.ypa-status { margin: 0 0 24px !important; padding: 13px 14px !important; border: 1px solid #9b3c2c !important; border-radius: 2px; background: #fff3ee !important; color: #783023; font: 12px/1.9 var(--ypa-sans); overflow-wrap: anywhere; }
.ypa-status-success { border-color: #81917c !important; background: #eaf0e5 !important; color: #2a432e; }
.ypa-status-pending { border-color: #a8afa0 !important; background: #eeeee5 !important; color: #354837; }
.ypa-request-next { margin-top: 22px !important; font-size: 12px; line-height: 2; }
.ypa-view + .ypa-view { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--ypa-line); }
.ypa-dialog.ypa-enhanced .ypa-view { margin-top: 0; padding-top: 0; border-top: 0; }
.ypa-noscript { margin-top: 24px !important; font: 11px/2 var(--ypa-sans); }
.ypa-fallback-body { margin: 0; background: #1e2a23; }
.ypa-fallback-header, .ypa-fallback-footer { padding: 24px; background: #f7f4ed; }
.ypa-fallback-header a { font: 24px/1.5 var(--ypa-serif); text-decoration: none; }
.ypa-fallback-footer { text-align: center; font-size: 12px; }
@media (max-width: 680px) {
	.ypa-landing, body.yomo-inner #main_content.ypa-landing { min-height: 72svh; padding-top: 130px; padding-bottom: 70px; }
	.ypa-landing-copy br { display: none; }
	.ypa-landing .ypa-button { width: 100%; max-width: 360px; }
	.ypa-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
	.ypa-dialog-grid { grid-template-columns: minmax(0, 1fr); }
	.ypa-dialog-aside { padding: 23px 26px; }
	.ypa-dialog-aside .ypa-eyebrow { font-size: 9px; }
	.ypa-library-mark, .ypa-aside-title, .ypa-aside-note, .ypa-aside-rule, .ypa-aside-footer { display: none; }
	.ypa-dialog-main { padding: 40px 25px 28px; }
	.ypa-scope .ypa-close { top: -53px; right: 10px; color: var(--ypa-paper); }
	.ypa-scope .ypa-close:hover { background: rgb(255 255 255 / 12%); }
	.ypa-step { margin-bottom: 10px !important; }
	.ypa-view h2 { font-size: 22px; }
	.ypa-switch-block { margin-top: 24px; padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ypa-scope .ypa-button { transition: none; }
	.ypa-dialog::backdrop { backdrop-filter: none; }
}
