@charset "UTF-8";

/* Modern Access Page Design */
:root {
    --access-primary: #ec7171;
    --access-text: #333;
    --access-bg: #f9f9f9;
    --access-card-bg: #fff;
    --access-font-heading: 'Outfit', sans-serif;
    --access-font-body: 'Noto Sans JP', sans-serif;
    --access-radius: 16px;
    --access-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.access-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: var(--access-font-body);
    color: var(--access-text);
}

/* Hero */
.access-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff0f0 0%, #fff 50%, #f0fff4 100%);
    border-radius: var(--access-radius);
    margin-bottom: 40px;
    box-shadow: var(--access-shadow);
    border: none;
}

.access-hero-eyebrow {
    color: var(--access-primary);
    font-weight: 700;
    font-family: var(--access-font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.access-hero h1 {
    font-family: var(--access-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--access-text);
}

.access-hero-lead {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.access-last-updated {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    background: #fff;
    border: 1px solid #f0d8d8;
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 22px;
}

.access-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button overrides for specific styling within access page if generic btn classes aren't enough */
.access-hero-cta .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.access-hero-cta .btn-primary {
    background: var(--access-primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 113, 113, 0.4);
}

.access-hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 113, 113, 0.5);
    background: #e65b5b;
}

.access-hero-cta .btn-secondary {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
}

.access-hero-cta .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-2px);
}

/* Sections */
.access-section {
    background: var(--access-card-bg);
    border-radius: var(--access-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--access-shadow);
    border: none;
}

.access-section h2 {
    font-family: var(--access-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.access-section h2 i {
    color: var(--access-primary);
}

/* List */
.access-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}

.access-list li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: "Font Awesome 6 Free"; /* Updated to 6 */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--access-primary);
    font-size: 1em;
}

/* Table */
.access-table-wrap {
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
    border: 1px solid #eee;
}

.access-table {
    width: 100%;
    min-width: 600px; /* Ensure scroll on horizontal desktop */
    border-collapse: collapse;
}

.access-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 700;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.access-table th,
.access-table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    color: #555;
}

/* Prevent wrapping for the first two columns (Station, Time) */
.access-table th:nth-child(1),
.access-table td:nth-child(1),
.access-table th:nth-child(2),
.access-table td:nth-child(2) {
    white-space: nowrap;
    width: 1%; /* Shrink to fit content */
}
/* Let the third column (Route) take remaining space */
.access-table th:nth-child(3),
.access-table td:nth-child(3) {
    width: auto;
}

.access-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
    text-align: right;
}

.station-guides {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.station-guide-card {
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-guide-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.station-guide-card h3 {
    font-family: var(--access-font-heading);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Featured Shinjuku Card */
.station-guide-card:nth-child(1) {
    grid-column: 1 / -1; /* Span full width */
    background: linear-gradient(to right bottom, #fff, #fffbfb);
    border-color: #ffe0e0;
}

.station-guide-card:nth-child(1) h3 {
    font-size: 1.4rem;
    color: var(--access-primary);
}

/* Internal Layout for Featured Card on Desktop */
@media (min-width: 769px) {
    .station-guide-card:nth-child(1) .access-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 30px; /* row-gap col-gap */
    }

    .station-guide-card:nth-child(1) .access-list li {
        margin-bottom: 0;
    }

    .station-guide-card:nth-child(1) .route-links {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px dashed #eee;
    }
}

.access-list-compact li {
    margin-bottom: 8px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.route-links {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route-links a {
    color: #a0181d;
    font-weight: 700;
    text-decoration: underline;
    font-size: 0.92rem;
}

/* Map Card */
.access-card {
    background: #fcfcfc;
    border: 1px dashed #ddd; /* Dotted/dashed style for info card */
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.access-address {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.access-map-wrap iframe {
    width: 100%;
    min-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: none;
}

/* FAQ */
.access-faq details {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.access-faq details[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: transparent;
}

.access-faq summary {
    padding: 16px 20px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px; /* Prevent text overlap */
}

.access-faq summary::-webkit-details-marker {
    display: none;
}

.access-faq summary::after {
    content: '\f078'; /* Chevron down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ccc;
    font-size: 0.9em;
    flex-shrink: 0; /* Prevent icon shrinking */
    transition: transform 0.3s ease;
}

.access-faq details[open] summary::after {
    transform: rotate(180deg);
    color: var(--access-primary);
}

.access-faq p {
    padding: 0 20px 20px;
    margin: 0;
    color: #555;
    background: #fff;
    line-height: 1.6;
}

/* CTA Bottom */
.access-cta {
    text-align: center;
    background: linear-gradient(135deg, #fdf2f8 0%, #fff 60%, #f0fff4 100%);
    padding: 60px 20px;
}

.access-cta p {
    margin-bottom: 24px;
}

/* Mobile */
@media (max-width: 768px) {
    .access-page {
        padding: 20px 10px 60px;
    }

    .access-hero {
        padding: 32px 16px;
        border-radius: 12px;
    }

    .access-hero h1 {
        font-size: 1.8rem;
    }

    .access-section {
        padding: 24px 16px;
    }

    .station-guides {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Reset internal grid on mobile */
    .station-guide-card:nth-child(1) .access-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .station-guide-card:nth-child(1) .route-links {
        flex-direction: column;
        gap: 10px;
    }

    .access-table-wrap {
        border: none;
        overflow: visible;
    }

    .access-table {
        min-width: 100%;
        display: block;
    }

    .access-table thead {
        display: none;
    }

    .access-table tbody, .access-table tr, .access-table td {
        display: block;
        width: 100%;
    }

    .access-table tr {
        margin-bottom: 16px;
        border: 1px solid #eee;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .access-table td {
        padding: 12px 16px;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        border-bottom: 1px solid #f0f0f0;
    }

    .access-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #666;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .access-table tr:last-child td:last-child {
        border-bottom: none;
    }

    /* Reset desktop column sizing for mobile */
    .access-table th:nth-child(1),
    .access-table td:nth-child(1),
    .access-table th:nth-child(2),
    .access-table td:nth-child(2) {
        width: 100%;
        white-space: normal;
    }
}
