:root {
    --bg-main: #0f1f16;
    --bg-sub: #173125;
    --card-bg: rgba(26, 52, 39, 0.72);
    --card-border: rgba(153, 196, 163, 0.28);
    --text-main: #e6f3e8;
    --text-sub: #bdd3c1;
    --accent: #8db59b;
    --accent-strong: #a9cc6f;
    --shadow: 0 16px 40px rgba(7, 19, 12, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Zen Kaku Gothic New", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 15%, rgba(107, 161, 120, 0.14), transparent 45%),
        radial-gradient(circle at 88% 30%, rgba(109, 152, 92, 0.12), transparent 42%),
        linear-gradient(160deg, var(--bg-main), var(--bg-sub) 55%, #12291d);
    line-height: 1.8;
}

.hero {
    position: relative;
    min-height: 68vh;
    padding: 88px 6vw 72px;
    display: flex;
    align-items: flex-end;
    background-image: url("../images/Scenery/1_shinsei/1_header.png");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 20, 14, 0.2) 0%, rgba(10, 20, 14, 0.72) 85%),
        linear-gradient(110deg, rgba(21, 46, 33, 0.8), rgba(19, 34, 24, 0.36));
}

.hero__content {
    position: relative;
    max-width: 760px;
    animation: fadeUp 1s ease both;
}

.hero__eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.84rem;
}

.hero h1 {
    margin: 0 0 18px;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.25;
}

.hero__lead {
    margin: 0 0 26px;
    max-width: 64ch;
    color: #d6e8da;
}

.hero__button {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(169, 204, 111, 0.45);
    background: rgba(16, 43, 28, 0.78);
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero__button:hover {
    transform: translateY(-2px);
    background: rgba(25, 57, 38, 0.9);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__button--sub {
    border-color: rgba(141, 181, 155, 0.55);
    background: rgba(20, 39, 29, 0.76);
}

main {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 52px 0 80px;
}

.section + .section {
    margin-top: 54px;
}

.section__heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    font-family: "Noto Serif JP", serif;
}

.section__heading p {
    margin: 10px 0 0;
    color: var(--text-sub);
}

.city-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.city-card,
.route-card,
.gallery-grid figure {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.city-card {
    padding: 20px;
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.city-card:hover {
    transform: translateY(-5px);
    border-color: rgba(177, 216, 154, 0.55);
}

.city-card h3 {
    margin: 0 0 8px;
    font-family: "Noto Serif JP", serif;
}

.city-card__theme {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.94rem;
}

.city-card p {
    margin: 0 0 10px;
}

.city-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-sub);
}

.section--gallery {
    position: relative;
}

.gallery-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    cursor: zoom-in;
    animation: floatCard 8s ease-in-out infinite;
}

.gallery-grid figure:nth-child(3n + 2) {
    animation-delay: 0.8s;
}

.gallery-grid figure:nth-child(3n) {
    animation-delay: 1.6s;
}

.gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.045);
}

.gallery-grid figcaption {
    padding: 12px 14px 14px;
    color: var(--text-sub);
    font-size: 0.93rem;
}

.route-list {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.route-card {
    padding: 16px 18px;
    border-left: 4px solid rgba(169, 204, 111, 0.48);
}

.route-card h3 {
    margin: 0 0 4px;
    color: #d9ecc6;
    font-size: 1.02rem;
}

.route-card p {
    margin: 0;
    color: var(--text-sub);
}

.section--community {
    margin-bottom: 14px;
}

.community-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.community-card {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
}

.community-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.community-card:hover img {
    transform: scale(1.03);
}

.community-card__body {
    padding: 14px 16px 16px;
}

.community-card__body h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    color: #d9ecc6;
}

.community-card__meta {
    margin: 0 0 8px;
    color: #c5dcbe;
    font-size: 0.9rem;
}

.community-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.community-card__tags span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(173, 209, 155, 0.45);
    background: rgba(39, 68, 49, 0.7);
    color: #d7ebd5;
    font-size: 0.78rem;
    line-height: 1.4;
}

.community-card__body p {
    margin: 0;
    color: var(--text-sub);
    line-height: 1.72;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 11, 0.78);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    width: min(90vw, 1040px);
    max-height: 88vh;
    padding: 14px;
    border: 1px solid rgba(175, 215, 164, 0.5);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(24, 49, 36, 0.96), rgba(15, 31, 22, 0.96));
    box-shadow: 0 18px 50px rgba(3, 8, 5, 0.6);
    animation: fadeUp 0.35s ease both;
}

.modal__content img {
    width: 100%;
    max-height: calc(88vh - 95px);
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.modal__content p {
    margin: 10px 4px 2px;
    color: #d6e7d9;
    font-size: 0.95rem;
}

.modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(175, 215, 164, 0.55);
    border-radius: 50%;
    background: rgba(14, 35, 24, 0.9);
    color: var(--text-main);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.tour-footer {
    margin-top: 10px;
    padding: 32px 16px 40px;
    background: linear-gradient(180deg, rgba(12, 24, 17, 0.95), rgba(9, 18, 13, 0.98));
    border-top: 1px solid rgba(153, 196, 163, 0.22);
}

.tour-footer__copyright {
    margin: 0 auto;
    width: min(1120px, 92%);
    color: #c2d8c6;
    line-height: 1.9;
    font-size: 0.92rem;
}

.tour-footer__copyright a {
    color: #d4e9b5;
    text-decoration: none;
}

.tour-footer__copyright a:hover {
    text-decoration: underline;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 740px) {
    .hero {
        min-height: 58vh;
        padding-top: 72px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    main {
        padding-top: 40px;
    }

    .modal__content {
        width: min(94vw, 1040px);
        padding: 10px;
    }

    .modal__close {
        top: 6px;
        right: 6px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__button {
        width: 100%;
        text-align: center;
    }

    .tour-footer {
        padding: 26px 14px 34px;
    }

    .tour-footer__copyright {
        font-size: 0.88rem;
        line-height: 1.8;
    }
}
