* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #101426;
    background: #ffffff;
    font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

a {
    color: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    padding: 0 clamp(22px, 4vw, 56px);
    color: #101426;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e8ebf2;
    backdrop-filter: blur(16px);
}

header h1 {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
    font-size: 0.88rem;
    font-weight: 800;
}

nav a {
    position: relative;
    text-decoration: none;
}

nav a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 2px;
    content: "";
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.4);
    transition: 0.2s ease;
}

nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

nav a.active {
    color: #7c4dff;
}

nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff9b2f, #ff3d77);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(255, 61, 119, 0.28);
    font-weight: 900;
    text-decoration: none;
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

main {
    padding: 0;
}

.hero {
    min-height: 680px;
    padding: clamp(72px, 10vw, 112px) clamp(24px, 6vw, 72px);
    color: white;
    background:
        linear-gradient(90deg, rgba(7, 12, 32, 0.96) 0%, rgba(7, 12, 32, 0.78) 44%, rgba(7, 12, 32, 0.42) 100%),
        url("/images/hero-live.jpg");
    background-position: center;
    background-size: cover;
}

.hero h2 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(4rem, 9vw, 7.6rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.hero p:not(.eyebrow) {
    max-width: 560px;
    margin: 26px 0 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.9;
}

.eyebrow {
    margin: 0 0 20px;
    color: #ff5b73;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.section-heading {
    padding: 44px 24px 22px;
    text-align: center;
}

.section-heading h2 {
    display: inline-block;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 4px solid #ff4f62;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: -0.04em;
}

.feature-grid,
.point-grid {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 58px;
}

.mini-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    padding: 36px;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(53, 47, 104, 0.22);
}

.mini-card:nth-child(1) {
    background: linear-gradient(135deg, #8e4cf7, #4731c9);
}

.mini-card:nth-child(2) {
    background: linear-gradient(135deg, #ffb12c, #ff465f);
}

.mini-card:nth-child(3) {
    background: linear-gradient(135deg, #74a6ff, #244bdd);
}

.mini-card span {
    font-size: 2rem;
    font-weight: 900;
}

.feature-icon {
    position: absolute;
    top: 42px;
    right: 40px;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 3rem;
}

.mini-card h3 {
    margin: 86px 0 14px;
    font-size: 1.55rem;
}

.mini-card p,
.point-grid p {
    margin: 0;
    line-height: 1.85;
    font-weight: 700;
}

.point-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 28px 0 72px;
    text-align: center;
}

.point-grid article {
    padding: 8px 34px;
    border-right: 1px solid #e1e5ef;
}

.point-grid article:last-child {
    border-right: 0;
}

.point-grid span {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 18px;
    color: white;
    background: #6252df;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
}

.point-grid h3 {
    margin: 0 0 12px;
}

.live-hero {
    position: relative;
    overflow: hidden;
    padding: 84px clamp(24px, 6vw, 72px) 60px;
    background:
        radial-gradient(circle at 88% 24%, rgba(137, 100, 255, 0.18), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
    border-bottom: 1px solid #e7eaf3;
}

.live-hero::after {
    position: absolute;
    top: 30px;
    right: 7%;
    width: 230px;
    height: 160px;
    content: "";
    background:
        linear-gradient(60deg, transparent 36%, rgba(123, 84, 255, 0.12) 36% 62%, transparent 62%),
        radial-gradient(circle, rgba(123, 84, 255, 0.18) 2px, transparent 3px);
    background-size: 100% 100%, 18px 18px;
    opacity: 0.8;
}

.live-hero h2 {
    position: relative;
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    letter-spacing: -0.06em;
}

.live-hero p:not(.eyebrow) {
    position: relative;
    max-width: 680px;
    margin: 24px 0 0;
    color: #4d5568;
    font-weight: 700;
}

.event-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1120px, calc(100% - 48px));
    margin: 34px auto 28px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-button,
#sort-events {
    min-height: 46px;
    padding: 0 18px;
    color: #20263a;
    background: #ffffff;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(16, 20, 38, 0.05);
}

.filter-button.active {
    color: #ffffff;
    background: #6759e8;
    border-color: #6759e8;
}

.event-list {
    display: grid;
    gap: 28px;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.event-card {
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e8f1;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(16, 20, 38, 0.1);
}

.event-image {
    width: 100%;
    height: 100%;
    min-height: 206px;
    background-position: center;
    background-size: cover;
}

.event-body {
    padding: 36px 32px;
}

.event-card h3 {
    margin: 16px 0 14px;
    font-size: 1.35rem;
}

.event-card p {
    margin: 0;
    color: #3d465b;
    line-height: 1.8;
    font-weight: 700;
}

.event-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag,
.open,
.closed {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 900;
}

.tag {
    color: #ffffff;
    background: #7c66ff;
}

.tag-ゲーム大会 {
    background: #ff9b2f;
}

.tag-展示 {
    background: #5294f4;
}

.tag-勉強会 {
    background: #4ab08f;
}

.event-meta {
    display: grid;
    align-content: center;
    gap: 18px;
    margin: 30px 0;
    padding: 8px 34px;
    border-left: 1px solid #dfe4ee;
}

.event-meta div {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
}

.event-meta dt {
    color: #8a93a7;
    font-weight: 900;
}

.event-meta dd {
    margin: 0;
    color: #2c3448;
    font-weight: 800;
}

.open {
    color: #176b4b;
    background: #bff2db;
}

.closed {
    color: #c33141;
    background: #ffd2d2;
}

.loading,
.error {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4e8f1;
    border-radius: 10px;
}

.error {
    color: #c33141;
}

.notice-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    width: min(1120px, calc(100% - 48px));
    margin: 40px auto 64px;
    padding: 36px 42px;
    color: white;
    background: linear-gradient(135deg, #5548e7, #f04d86);
    border-radius: 10px;
}

.notice-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 2rem;
    font-weight: 900;
}

.notice-panel h3,
.notice-panel p {
    margin: 0;
}

.notice-panel p {
    margin-top: 10px;
    line-height: 1.8;
    font-weight: 700;
}

.notice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    color: #101426;
    background: white;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.access-hero {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 42px;
    align-items: center;
    min-height: 210px;
    overflow: hidden;
    padding: 48px clamp(24px, 8vw, 164px);
    background:
        linear-gradient(135deg, rgba(129, 83, 255, 0.16) 0 18%, transparent 18%),
        linear-gradient(120deg, transparent 68%, rgba(255, 145, 96, 0.24) 68%),
        radial-gradient(circle at 88% 28%, rgba(126, 86, 255, 0.16), transparent 18rem),
        linear-gradient(135deg, #ffffff, #f6f0ff 62%, #fff3ee);
}

.access-hero::after {
    position: absolute;
    right: 8%;
    bottom: 24px;
    width: 280px;
    height: 140px;
    content: "";
    background:
        radial-gradient(circle, rgba(255, 160, 76, 0.22) 2px, transparent 3px),
        linear-gradient(135deg, transparent 30%, rgba(125, 82, 255, 0.12) 30% 58%, transparent 58%);
    background-size: 18px 18px, 100% 100%;
}

.access-hero h2 {
    position: relative;
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.1rem);
    letter-spacing: -0.06em;
}

.access-hero p {
    position: relative;
    margin: 18px 0 0;
    font-size: 1.18rem;
    font-weight: 800;
}

.pin-mark {
    position: relative;
    width: 86px;
    height: 108px;
    justify-self: center;
    background: linear-gradient(160deg, #d44ee9, #6849e8);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 22px 42px rgba(109, 73, 232, 0.28);
}

.pin-mark::before {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 36px;
    height: 36px;
    content: "";
    background: white;
    border-radius: 50%;
}

.pin-mark::after {
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 102px;
    height: 32px;
    content: "";
    border: 6px solid rgba(125, 82, 255, 0.22);
    border-radius: 50%;
    transform: rotate(45deg);
}

.access-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: min(1220px, calc(100% - 48px));
    margin: 34px auto 0;
}

.access-card,
.map-card,
.access-request {
    border: 1px solid #e6e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(24, 28, 48, 0.1);
}

.access-card {
    padding: 28px 28px 24px;
}

.access-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 22px;
    padding: 0 0 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e1e5ef;
}

.access-item:nth-of-type(3) {
    margin-bottom: 24px;
    border-bottom: 0;
}

.access-icon,
.request-icon {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #744eff;
    background: #f0e8ff;
    border-radius: 50%;
    font-weight: 900;
}

.access-icon::before,
.access-icon::after,
.request-icon::before,
.request-icon::after {
    content: "";
    position: absolute;
}

.icon-building::before {
    width: 24px;
    height: 28px;
    border: 4px solid #744eff;
    border-radius: 4px;
}

.icon-building::after {
    width: 4px;
    height: 4px;
    background: #744eff;
    box-shadow:
        -7px -7px 0 #744eff,
        7px -7px 0 #744eff,
        -7px 5px 0 #744eff,
        7px 5px 0 #744eff,
        0 12px 0 #744eff;
}

.icon-train::before {
    width: 25px;
    height: 30px;
    border: 4px solid #744eff;
    border-radius: 7px;
}

.icon-train::after {
    width: 5px;
    height: 5px;
    background: #744eff;
    border-radius: 50%;
    box-shadow:
        12px 0 0 #744eff,
        6px -11px 0 3px #744eff,
        -3px 17px 0 -1px #744eff,
        15px 17px 0 -1px #744eff;
}

.icon-walk::before {
    top: 13px;
    width: 10px;
    height: 10px;
    background: #744eff;
    border-radius: 50%;
}

.icon-walk::after {
    top: 25px;
    left: 28px;
    width: 4px;
    height: 22px;
    background: #744eff;
    border-radius: 99px;
    box-shadow:
        -9px 7px 0 #744eff,
        9px 13px 0 #744eff,
        -8px -2px 0 #744eff,
        8px -5px 0 #744eff;
    transform: rotate(18deg);
}

.icon-calendar::before {
    width: 28px;
    height: 28px;
    border: 4px solid #744eff;
    border-radius: 6px;
}

.icon-calendar::after {
    width: 18px;
    height: 4px;
    background: #744eff;
    box-shadow:
        0 -9px 0 #744eff,
        -6px 7px 0 -1px #744eff,
        6px 7px 0 -1px #744eff;
}

.access-item h3,
.access-request h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.access-item p,
.access-request p {
    margin: 0;
    color: #2e3548;
    font-weight: 800;
    line-height: 1.8;
}

.access-note {
    margin: 0;
    padding: 16px 18px;
    color: #7953f2;
    background: #f4edff;
    border: 1px solid #ded0ff;
    border-radius: 8px;
    font-weight: 800;
}

.map-card {
    position: relative;
    min-height: 446px;
    overflow: hidden;
    background: #f7f8fb;
}

.map-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(27deg, transparent 46%, #ffffff 46% 50%, transparent 50%),
        linear-gradient(118deg, transparent 42%, #ffffff 42% 47%, transparent 47%),
        linear-gradient(91deg, transparent 62%, #ffffff 62% 66%, transparent 66%),
        linear-gradient(#e5e8ee 1px, transparent 1px),
        linear-gradient(90deg, #e5e8ee 1px, transparent 1px);
    background-size: 220px 180px, 240px 160px, 260px 180px, 74px 74px, 74px 74px;
    opacity: 0.72;
}

.waterway {
    position: absolute;
    top: -30px;
    left: 84px;
    width: 42px;
    height: 520px;
    background: #8ee2f4;
    transform: rotate(22deg);
    opacity: 0.88;
}

.park {
    position: absolute;
    right: 190px;
    bottom: 78px;
    width: 118px;
    height: 84px;
    background: #bcefa3;
    border-radius: 38% 62% 48% 52%;
    opacity: 0.9;
}

.route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.route polyline {
    fill: none;
    stroke: #855dff;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14 12;
}

.stop-marker,
.venue-marker {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: white;
    background: linear-gradient(160deg, #d44ee9, #6849e8);
    border: 6px solid rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    box-shadow: 0 14px 28px rgba(109, 73, 232, 0.26);
    font-weight: 900;
}

.stop-marker {
    left: 262px;
    bottom: 54px;
}

.venue-marker {
    top: 176px;
    right: 176px;
}

.venue-marker span {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
}

.map-label {
    position: absolute;
    padding: 12px 16px;
    color: #ffffff;
    background: #202840;
    border-radius: 6px;
    box-shadow: 0 14px 28px rgba(24, 28, 48, 0.18);
    font-weight: 900;
}

.map-label small {
    display: block;
    margin-top: 6px;
    color: #e9edf7;
    font-weight: 700;
    line-height: 1.5;
}

.stop-label {
    left: 146px;
    bottom: 166px;
}

.venue-label {
    top: 92px;
    right: 36px;
}

.bus-symbol {
    position: relative;
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-radius: 5px;
}

.bus-symbol::before,
.bus-symbol::after {
    position: absolute;
    content: "";
}

.bus-symbol::before {
    top: 5px;
    left: 4px;
    width: 12px;
    height: 5px;
    background: white;
    border-radius: 2px;
}

.bus-symbol::after {
    left: 3px;
    bottom: -7px;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 12px 0 0 white;
}

.access-request {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr 260px;
    gap: 24px;
    align-items: center;
    width: min(1220px, calc(100% - 48px));
    margin: 34px auto 48px;
    padding: 28px 42px;
    overflow: hidden;
    background: linear-gradient(135deg, #fbf7ff, #f1e8ff);
}

.bus-line {
    height: 74px;
    opacity: 0.55;
    background:
        linear-gradient(#9d7cff, #9d7cff) 36px 48px / 156px 4px no-repeat,
        radial-gradient(circle, transparent 9px, #9d7cff 10px 13px, transparent 14px) 54px 45px / 64px 30px repeat-x,
        linear-gradient(90deg, transparent 12px, #9d7cff 12px 96px, transparent 96px) 34px 14px / 132px 42px no-repeat;
}

.card {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4e8f1;
    border-radius: 10px;
}

footer {
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(90deg, #101426, #22156c);
    text-align: center;
}

footer p {
    margin: 0;
}

@media (max-width: 900px) {
    header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    nav {
        flex-wrap: wrap;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .feature-grid,
    .point-grid {
        grid-template-columns: 1fr;
    }

    .point-grid article {
        border-right: 0;
        border-bottom: 1px solid #e1e5ef;
    }

    .point-grid article:last-child {
        border-bottom: 0;
    }

    .event-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .access-hero,
    .access-wrap,
    .access-request {
        grid-template-columns: 1fr;
    }

    .access-hero {
        gap: 20px;
        text-align: center;
    }

    .map-card {
        min-height: 380px;
    }

    .venue-marker {
        right: 220px;
    }

    .venue-label {
        right: 24px;
    }

    .bus-line {
        display: none;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-image {
        aspect-ratio: 16 / 9;
    }

    .event-meta {
        margin: 0;
        border-left: 0;
        border-top: 1px solid #dfe4ee;
    }

    .notice-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .hero h2 {
        font-size: 3.5rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .feature-grid,
    .point-grid,
    .event-toolbar,
    .event-list,
    .notice-panel {
        width: min(100% - 32px, 1120px);
    }

    .mini-card {
        min-height: 250px;
    }

    .event-body,
    .event-meta,
    .notice-panel,
    .access-card,
    .access-request {
        padding: 24px;
    }

    .access-hero {
        padding: 42px 20px;
    }

    .access-wrap,
    .access-request {
        width: min(100% - 32px, 1220px);
    }

    .access-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .map-card {
        min-height: 320px;
    }

    .waterway {
        left: 48px;
    }

    .stop-marker {
        left: 112px;
        bottom: 52px;
    }

    .venue-marker {
        top: 134px;
        right: 86px;
    }

    .stop-label {
        left: 28px;
        bottom: 146px;
    }

    .venue-label {
        top: 28px;
        right: 18px;
        max-width: 190px;
    }

    .event-meta div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
