* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: #eaf2f5; color: #102a36; font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; }
.pillow-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 25% 20%, #fff 0, transparent 55%), linear-gradient(135deg, #f7fafb, #dce9ee 55%, #b7ced8); }
.pillow-backdrop picture, .pillow-backdrop img { display: block; width: 100%; height: 100%; }
.pillow-backdrop img { object-fit: cover; object-position: center top; }
.country-modal { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 1rem; background: rgba(7, 32, 43, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.country-modal__dialog { width: min(100%, 620px); padding: clamp(1.5rem, 5vw, 2.4rem); border: 1px solid #d8e6ec; border-radius: 22px; background: #f8fcfe; text-align: center; box-shadow: 0 28px 80px rgba(0, 0, 0, .4); }
.country-modal__eyebrow { margin: 0 0 .65rem; color: #105d7d; font-size: .8rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0 0 1rem; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
#country-description { margin: 0 auto 1.4rem; color: #52646d; font-size: .95rem; }
.country-modal__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.country-modal__option { display: flex; min-width: 0; min-height: 170px; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1rem .65rem; border: 2px solid #cbdfe8; border-radius: 14px; background: #fff; color: #102a36; font: inherit; font-weight: 800; line-height: 1.3; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.country-modal__option img { display: block; width: 96px; height: 60px; max-width: 100%; object-fit: cover; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.country-modal__option:hover { transform: translateY(-2px); border-color: #187ba3; box-shadow: 0 8px 20px rgba(16, 93, 125, .14); }
.country-modal__option:focus-visible { outline: 3px solid #105d7d; outline-offset: 3px; }
.country-modal__option:disabled { opacity: .6; cursor: wait; transform: none; }
.country-modal__status { margin: 1rem auto 0; color: #105d7d; font-size: .9rem; font-weight: 800; }
.country-modal__status[hidden] { display: none; }
.information-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; margin-top: 1.2rem; font-size: .8rem; }
.information-links a { color: #105d7d; text-underline-offset: .2em; }
.information-links a:focus-visible { outline: 3px solid #105d7d; outline-offset: 3px; }
.information-page { min-height: 100vh; padding: clamp(1rem, 4vw, 3rem); }
.information-card { max-width: 800px; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid #d8e6ec; border-radius: 22px; background: #f8fcfe; overflow-wrap: anywhere; }
.information-card > .information-links { justify-content: flex-start; margin: 0 0 2rem; }
.information-card h2 { margin: 1.5rem 0 .5rem; font-size: 1.2rem; }
.information-card p { color: #52646d; }
@media (max-width: 560px) {
  .country-modal { padding: .65rem; }
  .country-modal__dialog { padding: 1.4rem 1rem 1.2rem; border-radius: 17px; }
  .country-modal__options { grid-template-columns: 1fr; gap: .65rem; }
  .country-modal__option { min-height: 105px; gap: .6rem; padding: .7rem 1rem; }
  .country-modal__option img { width: 72px; height: 45px; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .country-modal__option { transition: none; } }

html { scroll-behavior: smooth; }
.country-selector-root { height: 100%; overflow: hidden; scroll-behavior: auto; }
.landing-page { position: fixed; inset: 0; overflow: hidden; background: #344b55; }
:where(a, summary, button):focus-visible { outline: 3px solid #105d7d; outline-offset: 3px; }
.landing-content { position: relative; }
.landing-page .country-modal { position: fixed; inset: 0; z-index: 10; overflow-y: auto; overscroll-behavior: contain; align-items: safe center; }
.landing-page .country-modal__dialog:focus { outline: none; }
.selection-heading { margin: 0 0 .5rem; font-size: 1rem; }
.country-modal__option small { font-size: .75rem; font-weight: 500; }
details { border-top: 1px solid #d8e6ec; padding: .65rem 0; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: list-item; align-content: center; }
.information-links a { min-height: 32px; padding: .25rem 0; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2; transform: translateY(-200%); padding: .65rem; background: #fff; color: #105d7d; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 560px) {
  .landing-page .country-modal__dialog { padding: 1.1rem 1rem 1rem; }
  .landing-page .country-modal__option { gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .country-modal__option:hover { transform: none; } }

.country-modal__dialog { position: relative; }
.country-modal__loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 1rem; border-radius: inherit; background: rgba(248, 252, 254, .94); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); cursor: wait; }
.country-modal__loading[hidden] { display: none; }
.country-modal__loading p { margin: 0; font-size: 1.2rem; font-weight: 800; }
.country-modal__loading span { font-size: 1rem; font-weight: 500; color: #52646d; }
.country-modal__loading p::before { content: ""; display: block; width: 2rem; height: 2rem; margin: 0 auto 1rem; border: 3px solid #d8e6ec; border-top-color: #105d7d; border-radius: 50%; animation: country-loading-spin .8s linear infinite; }
@keyframes country-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .country-modal__loading p::before { animation: none; } }

.pillow-backdrop { z-index: 1; }
.landing-content { z-index: auto; }

