/* Prefecture Taxonomy Template Styles */

/* Overview section (full width) */
.prefecture-overview-wrapper {
    padding: 2.5rem 0;
}

/* Two-column layout for main content section (starts at Notable Places) */
.prefecture-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 510px;
    gap: 2.5rem;
}

.prefecture-main-content {
    min-width: 0; /* Prevent grid blowout */
}

.prefecture-sidebar {
    align-self: start;
    /* position: sticky;
    top: 50px; */
}

/* Main content section spacing */
.prefecture-content-section {
    margin-top: -50px;
    padding: 2.5rem 0 0rem 0;
}

/* Subsections within main content */
.prefecture-subsection {
    margin-bottom: 3rem;
}

.prefecture-subsection:first-child {
    margin-top: 0;
}

/* Getting There section specific styles */
.prefecture-getting-there-content {
    font-size: 22px;
    color: #363636;
}

.prefecture-getting-there-content p {
    margin-bottom: 1rem;
}

.prefecture-getting-there-content h2 {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2.2rem;
    font-size: 40px;
}

.prefecture-getting-there-content h2:after {
    content: "";
    width: 3rem;
    height: 1.5px;
    background-color: #000;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
}

.prefecture-getting-there-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.6rem;
    font-size: 34px;
}

.prefecture-getting-there-content h3:after {
    content: "";
    width: 3rem;
    height: 1.5px;
    background-color: #000;
    display: block;
    margin-top: 1rem;
}

.prefecture-getting-there-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    font-size: 26px;
    font-weight: 700;
}

.prefecture-getting-there-content ul,
.prefecture-getting-there-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prefecture-getting-there-content li {
    margin-bottom: 0.5rem;
}

/* Desktop only: Show two-column at 1024px+ */
@media (max-width: 1024px) {
    .prefecture-two-column-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prefecture-sidebar {
        display: none; /* Hide sidebar on tablet and mobile */
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .prefecture-overview-wrapper {
        padding: 2rem 0;
    }

    .prefecture-content-section {
        padding: 2rem 0 3rem 0;
    }

    .prefecture-subsection {
        margin-bottom: 2.5rem;
    }

    .prefecture-getting-there-content {
        font-size: 22px;
    }

    .prefecture-getting-there-content h2 {
        text-align: center;
        margin: 2.3rem 0 2.1rem;
        font-size: 2.2rem;
    }

    .prefecture-getting-there-content h3 {
        margin: 1.5rem 0;
        font-size: 1.8rem;
    }

    .prefecture-getting-there-content h4 {
        margin: 1.5rem 0 0.7rem;
        font-size: 1.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .prefecture-overview-wrapper {
        padding: 1.5rem 0;
    }

    .prefecture-content-section {
        padding: 1.5rem 0 2rem 0;
    }

    .prefecture-subsection {
        margin-bottom: 2rem;
    }
}

/* Ensure proper spacing for section IDs (for anchor links from TOC) */
section[id] {
    scroll-margin-top: 120px;
}
