:root {
    --portal-bg: #f5f7fa;
    --portal-card: #ffffff;
    --portal-text: #1f2933;
    --portal-muted: #52606d;
    --portal-accent: #1a5276;
    --portal-accent-hover: #154360;
    --portal-border: #d9e2ec;
    --portal-danger: #c0392b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
    color: var(--portal-text);
    background: var(--portal-bg);
    line-height: 1.5;
}

.portal-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.portal-card {
    width: min(420px, 100%);
    background: var(--portal-card);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.portal-card h1 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.portal-lead {
    margin: 0 0 16px;
    color: var(--portal-muted);
    font-size: 0.95rem;
}

.portal-card label {
    display: block;
    margin: 12px 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.portal-card input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    font-size: 1rem;
}

.portal-turnstile {
    margin-top: 16px;
    min-height: 0;
}

.portal-error {
    margin: 12px 0 0;
    color: var(--portal-danger);
    font-size: 0.9rem;
}

button,
.portal-btn-secondary {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

#portal-login-submit {
    width: 100%;
    margin-top: 16px;
    padding: 11px 16px;
    background: var(--portal-accent);
    color: #fff;
}

#portal-login-submit:hover:not(:disabled) {
    background: var(--portal-accent-hover);
}

#portal-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.portal-view-header {
    background: var(--portal-card);
    border-bottom: 1px solid var(--portal-border);
    padding: 16px;
}

.portal-view-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-view-header h1 {
    margin: 0;
    font-size: 1.25rem;
}

.portal-view-meta {
    max-width: 960px;
    margin: 8px auto 0;
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.portal-btn-secondary {
    padding: 8px 12px;
    background: #eef2f6;
    color: var(--portal-text);
}

.portal-view-root {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.portal-loading,
.portal-empty {
    color: var(--portal-muted);
}

.portal-overview {
    background: var(--portal-card);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.portal-overview h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.portal-overview-body {
    font-size: 0.95rem;
}

.portal-day {
    background: var(--portal-card);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.portal-day-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--portal-border);
    padding-bottom: 10px;
}

.portal-day-date {
    font-size: 1.05rem;
    font-weight: 700;
}

.portal-day-summary {
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.portal-day-map {
    margin: 0 0 12px;
}

.portal-day-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--portal-border);
}

.portal-day-map a {
    display: inline-block;
    margin-top: 6px;
    color: var(--portal-accent);
    font-size: 0.85rem;
}

.portal-spot {
    padding: 12px 0;
    border-top: 1px solid var(--portal-border);
}

.portal-spot:first-of-type {
    border-top: none;
    padding-top: 0;
}

.portal-spot-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}

.portal-spot-name {
    font-weight: 700;
}

.portal-spot-name a {
    color: inherit;
    text-decoration: none;
}

.portal-spot-name a:hover {
    text-decoration: underline;
}

.portal-spot-reserved {
    color: #cc0000;
}

.portal-spot-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--portal-muted);
}

.portal-spot-times {
    margin-top: 4px;
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.portal-spot-memo,
.portal-spot-attractions {
    margin-top: 8px;
    font-size: 0.92rem;
}

.portal-spot-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.portal-spot-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--portal-border);
}

.portal-flight-ticket {
    margin-top: 8px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .portal-view-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
