:root {
    color-scheme: light;
    --ink: #253738;
    --navy: #235452;
    --paper: #f4f5f0;
    --line: #d8e0d8;
    --orange: #a8441d;
    --muted: #596a66;
    --green: #24735a;
    --white: #fff;
    --shadow: 0 16px 52px #223b2c12;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
body > #app { min-height: calc(100dvh - 40px); }
h1, h2, h3, p { margin-top: 0; }
p { line-height: 1.65; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
input:not([type=checkbox], [type=radio]), textarea, select {
    display: block;
    inline-size: 100%;
    min-block-size: 46px;
    border-radius: 9px;
    border: 1px solid #bfcfc4;
    padding: .6rem .85rem;
    color: var(--ink);
    background: white;
}
input[type=checkbox], input[type=radio] { accent-color: var(--navy); }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #b44d27; outline-offset: 3px; }
.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: .6rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #e8efea;
    color: var(--ink);
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}
.btn-primary { background: var(--navy); color: white; }
.btn-outline { background: white; border-color: #becfc5; }
.btn-primary:hover:not(:disabled) { background: #193f3d; }
.btn-outline:hover:not(:disabled) { background: #f6f9f6; }
.card { border: 1px solid var(--line); border-radius: 16px; background: white; }
.welcome-header {
    padding: max(22px, env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) 16px max(26px, env(safe-area-inset-left));
    max-width: 1360px;
    margin: 0 auto;
}
.wordmark { display: flex; align-items: center; gap: .7rem; font-size: 1.5rem; font-weight: 750; letter-spacing: -.035em; }
.wordmark img { border-radius: 11px; }
.welcome { max-width: 1120px; margin: clamp(30px, 8vh, 110px) auto 0; padding: 0 26px 24px; }
.reception-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.reception-top { border-bottom: 1px solid var(--line); padding: 18px clamp(25px, 5vw, 60px); }
.reception-english { font-size: .88rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--navy); }
.reception-body { display: grid; grid-template-columns: minmax(0, 1fr) 35%; }
.reception-copy { padding: clamp(26px, 5vw, 68px); }
.reception-copy h1 { margin: 0 0 1.2rem; font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.12; letter-spacing: -.045em; }
.welcome-ja { margin-bottom: .25rem; font-weight: 600; }
.welcome-en { color: var(--muted); margin-bottom: clamp(24px, 5vh, 42px); }
.reception-start { flex-direction: column; align-items: flex-start; gap: .25rem; padding: .85rem 1.3rem; text-align: left; }
.reception-start span { font-size: .86rem; font-weight: 450; }
.reception-art {
    display: grid;
    place-content: center;
    padding: 30px 24px;
    background: #e4ede4;
    border-left: 1px solid #d9e5db;
}
.arch {
    display: grid;
    gap: 10%;
    grid-template-columns: 1fr 1fr;
    position: relative;
    width: clamp(95px, 13vw, 154px);
    aspect-ratio: 5 / 8;
    border: clamp(6px, 1.1vw, 12px) solid #306661;
    border-bottom: 0;
    border-radius: 45% 45% 0 0;
    padding: 31% 15% 30%;
    background: #d8e8dc;
    box-shadow: inset 0 -28px #bed7c6, 12px 12px 0 #dae7d9;
}
.pane { min-width: 0; background: #abccba; }
.knob { position: absolute; top: 65%; right: 14%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: #be5f36; }
.reception-step { height: 10px; background: #306661; border-radius: 3px; margin: 0 -14px; }
.welcome-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 2px 0; color: var(--muted); }
.welcome-actions #property-name { overflow-wrap: anywhere; }
.app-footer { padding: 7px max(26px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .84rem; text-align: right; }
.auth-page { max-width: 630px; margin: 0 auto; padding: clamp(22px, 5vh, 64px) 24px; }
.auth-card { padding: clamp(21px, 4vw, 44px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.auth-card p, .app-dialog p { color: var(--muted); }
.auth-form { display: grid; gap: 1rem; }
.auth-form label, .dialog-body label { display: grid; gap: 6px; font-weight: 650; }
.message-error { color: #9e2626 !important; margin: 0; }
.message-error:empty { display: none; }
.app-dialog {
    padding: 0;
    width: min(650px, calc(100% - 36px));
    max-height: calc(100dvh - 34px);
    color: var(--ink);
    box-shadow: var(--shadow);
    overflow: auto;
}
.app-dialog::backdrop { background: #162f2bdd; }
.dialog-body { padding: clamp(20px, 4vw, 38px); }
.dialog-body h2 { margin-bottom: .8rem; }
.dialog-body h3 { margin-bottom: .4rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: .75rem; }
@media (max-width: 620px) {
    .reception-body { grid-template-columns: minmax(0, 1fr); }
    .reception-art { display: none; }
    .welcome { margin-top: 18px; padding-inline: 16px; }
    .welcome-actions { flex-wrap: wrap; }
    .welcome-header { padding-inline: 20px; }
    .dialog-actions { grid-template-columns: 1fr; }
}
