.hanabi-japan-app {
    --hanabi-paper: #f8f4ec;
    --hanabi-paper-deep: #eee4d4;
    --hanabi-ink: #181512;
    --hanabi-ink-soft: #3b3732;
    --hanabi-muted: #686055;
    --hanabi-line: #d6c8b6;
    --hanabi-panel: #fffdf8;
    --hanabi-red: #c1272d;
    --hanabi-red-dark: #921b20;
    --hanabi-gold: #b8874e;
    --hanabi-green: #2f9364;
    --hanabi-blue: #257ea8;
    --hanabi-shadow: 0 18px 34px rgba(42, 32, 21, 0.1);
    background:
        linear-gradient(90deg, rgba(24, 21, 18, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 21, 18, 0.03) 1px, transparent 1px),
        var(--hanabi-paper);
    background-size: 36px 36px, 36px 36px, auto;
    color: var(--hanabi-ink);
    font-family: inherit;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    width: 100vw;
}

.hanabi-japan-app * {
    box-sizing: border-box;
}

.hanabi-template-nav {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1160px;
    padding: 20px 24px 0;
    position: relative;
    z-index: 2;
}

.hanabi-template-logo {
    align-items: center;
    background: rgba(255, 253, 248, 0.88);
    border: 1px solid rgba(214, 200, 182, 0.72);
    display: inline-flex;
    min-height: 50px;
    padding: 8px 12px;
    text-decoration: none;
}

.hanabi-template-logo img {
    display: block;
    height: 42px;
    width: auto;
}

.hanabi-template-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.hanabi-template-links a {
    color: var(--hanabi-ink-soft);
    font-size: 0.88rem;
    font-weight: 750;
    padding: 8px 10px;
    text-decoration: none;
}

.hanabi-template-links a:hover,
.hanabi-template-links a:focus {
    color: var(--hanabi-red);
    text-decoration: underline;
}

.hanabi-hero {
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(248, 244, 236, 0.92) 48%, rgba(238, 228, 212, 0.9)),
        repeating-linear-gradient(90deg, rgba(184, 135, 78, 0.09) 0, rgba(184, 135, 78, 0.09) 1px, transparent 1px, transparent 18px);
    border-bottom: 1px solid var(--hanabi-line);
    color: var(--hanabi-ink);
    min-height: 620px;
    position: relative;
}

.hanabi-hero::before,
.hanabi-hero::after {
    content: "";
    pointer-events: none;
    position: absolute;
}

.hanabi-hero::before {
    background:
        linear-gradient(0deg, transparent 48%, rgba(193, 39, 45, 0.5) 49%, rgba(193, 39, 45, 0.5) 51%, transparent 52%),
        linear-gradient(45deg, transparent 48%, rgba(184, 135, 78, 0.42) 49%, rgba(184, 135, 78, 0.42) 51%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(47, 147, 100, 0.32) 49%, rgba(47, 147, 100, 0.32) 51%, transparent 52%),
        linear-gradient(135deg, transparent 48%, rgba(37, 126, 168, 0.28) 49%, rgba(37, 126, 168, 0.28) 51%, transparent 52%);
    height: 210px;
    opacity: 0.45;
    right: max(24px, calc((100vw - 1160px) / 2));
    top: 150px;
    transform: rotate(-7deg);
    width: 210px;
}

.hanabi-hero::after {
    background: var(--hanabi-red);
    bottom: 0;
    height: 6px;
    left: 0;
    right: 0;
}

.hanabi-hero-inner {
    display: grid;
    margin: 0 auto;
    max-width: 1160px;
    padding: clamp(66px, 9vw, 118px) 24px clamp(58px, 8vw, 96px);
    position: relative;
    z-index: 1;
}

.hanabi-hero-mark {
    margin-bottom: clamp(28px, 4vw, 48px);
    max-width: min(430px, 78vw);
}

.hanabi-hero-mark img {
    display: block;
    height: auto;
    width: 100%;
}

.hanabi-kicker {
    color: var(--hanabi-gold);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1.2;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hanabi-hero h1 {
    color: var(--hanabi-ink);
    font-size: clamp(2.4rem, 1.65rem + 3.1vw, 5.2rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
    max-width: 880px;
    text-wrap: balance;
}

.hanabi-hero-copy {
    color: var(--hanabi-muted);
    font-size: clamp(1.02rem, 0.95rem + 0.32vw, 1.22rem);
    line-height: 2;
    margin: 22px 0 0;
    max-width: 48rem;
}

.hanabi-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hanabi-section {
    margin: 0 auto;
    max-width: 1160px;
    padding: clamp(52px, 7vw, 86px) 24px 0;
}

.hanabi-section-head {
    align-items: end;
    border-top: 1px solid var(--hanabi-line);
    display: grid;
    gap: 8px 28px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 36rem);
    margin-bottom: 22px;
    padding-top: 22px;
}

.hanabi-section-head .hanabi-kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.hanabi-section-head h2 {
    color: var(--hanabi-ink);
    font-size: clamp(1.7rem, 1.35rem + 1.25vw, 2.65rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0;
}

.hanabi-section-head p:not(.hanabi-kicker) {
    color: var(--hanabi-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin: 0;
}

.hanabi-form {
    background: var(--hanabi-panel);
    border: 1px solid var(--hanabi-line);
    border-radius: 6px;
    box-shadow: var(--hanabi-shadow);
    padding: clamp(20px, 3vw, 32px);
}

.hanabi-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hanabi-form label,
.hanabi-admin-field {
    color: var(--hanabi-ink-soft);
    display: grid;
    font-size: 0.94rem;
    font-weight: 750;
    gap: 8px;
}

.hanabi-form strong {
    color: var(--hanabi-red);
}

.hanabi-form input,
.hanabi-form select,
.hanabi-form textarea,
.hanabi-admin-field input,
.hanabi-admin-field select {
    background: #fff;
    border: 1px solid #cfc1ad;
    border-radius: 4px;
    color: var(--hanabi-ink);
    font: inherit;
    min-height: 46px;
    padding: 11px 13px;
    width: 100%;
}

.hanabi-form textarea {
    margin-top: 16px;
    resize: vertical;
}

.hanabi-form input::placeholder,
.hanabi-form textarea::placeholder {
    color: #8b857d;
}

.hanabi-form input:focus,
.hanabi-form select:focus,
.hanabi-form textarea:focus,
.hanabi-admin-field input:focus,
.hanabi-admin-field select:focus {
    border-color: var(--hanabi-blue);
    box-shadow: 0 0 0 4px rgba(37, 126, 168, 0.16);
    outline: none;
}

.hanabi-button {
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 850;
    justify-content: center;
    line-height: 1;
    min-height: 46px;
    padding: 13px 18px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hanabi-button:hover,
.hanabi-button:focus {
    transform: translateY(-1px);
}

.hanabi-button-primary,
.hanabi-button:not(.hanabi-button-secondary) {
    background: var(--hanabi-red);
    border: 1px solid var(--hanabi-red);
    color: #fff;
}

.hanabi-button-primary:hover,
.hanabi-button-primary:focus,
.hanabi-button:not(.hanabi-button-secondary):hover,
.hanabi-button:not(.hanabi-button-secondary):focus {
    background: var(--hanabi-red-dark);
    border-color: var(--hanabi-red-dark);
    color: #fff;
}

.hanabi-button-secondary {
    background: transparent;
    border: 1px solid var(--hanabi-ink);
    color: var(--hanabi-ink);
}

.hanabi-button-secondary:hover,
.hanabi-button-secondary:focus {
    background: var(--hanabi-ink);
    color: #fff;
}

.hanabi-submit-section .hanabi-button {
    margin-top: 18px;
}

.hanabi-hidden-field {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.hanabi-block-panel {
    background: #fff8f6;
    border: 1px solid #e3b5ad;
    border-radius: 6px;
    margin-top: 18px;
    padding: 16px;
}

.hanabi-block-panel strong {
    color: #9f2f22;
    display: block;
    margin-bottom: 6px;
}

.hanabi-block-panel p {
    margin: 0 0 12px;
}

.hanabi-block-button {
    margin: 0 8px 8px 0 !important;
}

.hanabi-block-button span {
    display: block;
    font-size: 11px;
    opacity: 0.72;
}

.hanabi-list-block-links {
    font-size: 12px;
    margin-top: 8px;
}

.hanabi-notice {
    border-radius: 4px;
    font-weight: 750;
    margin: 0 0 16px;
    padding: 13px 15px;
}

.hanabi-notice-ok {
    background: #e8f5ee;
    color: #155b35;
}

.hanabi-notice-error {
    background: #fff0ed;
    color: #9f2f22;
}

.hanabi-event-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.hanabi-event-card {
    background: #fff;
    border: 1px solid var(--hanabi-line);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(42, 32, 21, 0.08);
    display: grid;
    overflow: hidden;
}

.hanabi-event-body {
    border-top: 4px solid var(--hanabi-gold);
    padding: 20px;
}

.hanabi-event-date {
    color: var(--hanabi-red);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.45;
    margin: 0 0 8px;
}

.hanabi-event-card h3 {
    font-size: 1.22rem;
    font-weight: 850;
    line-height: 1.35;
    margin: 0 0 15px;
}

.hanabi-event-card h3 a {
    color: var(--hanabi-ink);
    text-decoration: none;
}

.hanabi-event-card h3 a:hover,
.hanabi-event-card h3 a:focus {
    color: var(--hanabi-red);
    text-decoration: underline;
}

.hanabi-event-details {
    display: grid;
    gap: 9px;
    margin: 0;
}

.hanabi-event-details div {
    display: grid;
    gap: 10px;
    grid-template-columns: 6.25rem minmax(0, 1fr);
}

.hanabi-event-details dt {
    color: var(--hanabi-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.hanabi-event-details dd {
    color: #27231f;
    line-height: 1.65;
    margin: 0;
}

.hanabi-single-details {
    background: var(--hanabi-panel);
    border: 1px solid var(--hanabi-line);
    border-radius: 6px;
    display: grid;
    gap: 16px;
    margin: 0 0 24px;
    overflow: hidden;
    padding: 18px;
}

.hanabi-single-details .hanabi-map {
    border: 1px solid var(--hanabi-line);
    border-radius: 4px;
    overflow: hidden;
}

.hanabi-map {
    aspect-ratio: 16 / 9;
    background: #e7ddcf;
    border-top: 1px solid var(--hanabi-line);
    min-height: 210px;
}

.hanabi-map iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.hanabi-instagram-section {
    padding-bottom: clamp(60px, 8vw, 100px);
}

.hanabi-instagram-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
}

.hanabi-instagram-item {
    aspect-ratio: 1;
    background: #efe5d7;
    border: 1px solid var(--hanabi-line);
    border-radius: 4px;
    color: var(--hanabi-ink);
    display: grid;
    overflow: hidden;
    place-items: center;
    text-align: center;
    text-decoration: none;
}

.hanabi-instagram-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
    width: 100%;
}

.hanabi-instagram-item:hover img,
.hanabi-instagram-item:focus img {
    transform: scale(1.035);
}

.hanabi-empty {
    background: var(--hanabi-panel);
    border: 1px dashed #b9a58d;
    border-radius: 6px;
    color: var(--hanabi-muted);
    line-height: 1.8;
    margin: 0;
    padding: 20px;
}

.hanabi-empty a {
    color: var(--hanabi-blue);
    font-weight: 750;
}

.hanabi-admin-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hanabi-admin-field small {
    color: #646970;
    font-weight: 400;
}

@media (max-width: 860px) {
    .hanabi-section-head {
        align-items: start;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hanabi-template-nav {
        align-items: flex-start;
        display: grid;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hanabi-template-logo img {
        height: 36px;
    }

    .hanabi-template-links {
        justify-content: flex-start;
    }

    .hanabi-hero {
        min-height: auto;
    }

    .hanabi-hero::before {
        height: 142px;
        opacity: 0.26;
        right: -34px;
        top: 190px;
        width: 142px;
    }

    .hanabi-hero-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hanabi-hero-actions {
        align-items: stretch;
        display: grid;
        max-width: 330px;
    }

    .hanabi-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hanabi-form-grid,
    .hanabi-admin-grid {
        grid-template-columns: 1fr;
    }

    .hanabi-event-details div {
        gap: 2px;
        grid-template-columns: 1fr;
    }
}
