/* ========================================================= */
/* --- Access Page Styles (アクセスページ) --- */
/* ========================================================= */

.access-breadcrumbs {
    background: var(--color-light-purple);
    padding: 10px 0;
}

.access-breadcrumbs .container {
    font-size: 0.9rem;
    text-align: center;
}

.access-main-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--color-main);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--color-border-medium);
    padding-bottom: 15px;
}

.access-sub-title,
.access-sub-title-01 {
    font-size: 1.5rem;
    color: var(--color-main);
    margin-bottom: 15px;
    text-align: center;
}

/* 医療機関名スタイル */
.access-hospital-name {
    font-size: 1.5rem;
    color: var(--color-main);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

/* 住所の折り返し制御用 */
.text-keep {
    display: inline-block;
}

/* --- 上段：所在地・地図 2カラムレイアウト --- */
.access-top-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    border-radius: 15px;
    align-items: stretch;
}

.address-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: transparent;
}

.address-detail-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.address-detail-item:first-child {
    border-bottom: 1px dotted var(--color-border-medium);
}

.address-detail-item .info-label {
    font-weight: bold;
    color: var(--color-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.address-detail-item .info-label i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.address-detail-item .info-content {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

.address-detail-item .tel-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-main);
    letter-spacing: 0.05em;
}

.tel-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.tel-link:hover {
    opacity: 0.7;
}

/* 地図コンテナ */
.map-container {
    flex: 1.2;
    height: auto;
    min-height: 350px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

/* GoogleMapで見るボタン */
.map-link-btn-wrapper {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.btn-map-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f5f0;
    color: var(--color-main);
    border: 1px solid #e0d8cc;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
}

.btn-map-external i {
    margin-right: 8px;
}

.btn-map-external:hover {
    background-color: var(--color-main);
    color: #fff;
}

/* --- 中段：駐車場 2カラムレイアウト --- */
.access-middle-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.access-middle-layout .card,
.access-middle-layout .parking-map-image {
    flex: 1;
}

.parking-map-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
}

.parking-map-image h3 {
    width: 100%;
    color: var(--color-main);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.parking-map-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.parking-map-image p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* PDFボタン */
.btn-pdf {
    display: inline-block;
    min-width: 280px;
    text-align: center;
    background-color: var(--color-main);
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: auto;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 var(--color-dark);
    position: relative;
}

.btn-pdf:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--color-dark);
    opacity: 0.9;
}

.btn-pdf::before {
    content: "\f1c1";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

/* --- 下段：電車案内・徒歩ルート 2カラムレイアウト --- */
.access-bottom-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.access-bottom-layout .card {
    flex: 1;
}

.access-bottom-layout .route-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.access-bottom-layout .route-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 1rem;
}

.access-bottom-layout .route-item img {
    width: 140px;
    height: 100px;
    margin-bottom: 0;
}

.access-bottom-layout .route-item p {
    flex: 1;
    text-align: left;
    margin-bottom: 0;
}

/* --- カード共通デザイン --- */
.card {
    background: #fff;
    border: none !important;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
}

.card h3 {
    color: var(--color-main);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.card ul {
    margin: 15px 0;
    list-style: disc;
    padding-left: 20px;
    line-height: 1.8;
    text-align: left;
}

.card-image-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 20px;
}

.card-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 駐車場サービス詳細 */
.parking-alert {
    font-weight: bold;
    color: var(--color-main);
    background: var(--color-light);
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.parking-item {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid var(--color-main);
    text-align: left;
}

.parking-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

/* --- 徒歩ルート案内 基本スタイル --- */
.route-section {
    padding: 40px 20px;
    border-radius: 15px;
}

.route-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.route-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.route-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* --- 診療時間 --- */
.page-access-time-area {
    margin-top: 80px;
}

/* ========================================================= */
/* --- Media Query: スマホ閲覧時 (992px以下) --- */
/* ========================================================= */
@media (max-width: 992px) {

    h2.access-main-title {
        margin-bottom: 0;
    }

    .access-main-title {
        padding-bottom: 10px;
    }

    h3.access-sub-title {
        padding-bottom: 0px;
        margin-bottom: 0px !important;
    }

    .parking-map-image {
        padding: 0 25px;
    }

    .parking-map-image h3 {
        padding-bottom: 0px;
        margin-bottom: 1rem;
    }

    .card {
        padding: 0 25px;
    }

    .card h3 {
        padding-bottom: 0px;
        margin-bottom: 1rem;
    }

    /* 交通アクセスセクションを縦並び & 順序制御 */
    .access-top-layout {
        flex-direction: column;
        padding: 0;
        gap: 20px;
    }

    .map-container {
        order: 1;
        /* 地図を一番上に */
        height: 250px;
        min-height: auto;
        border-radius: 10px;
        padding-top: 10px;
        background-color: #fff;
    }

    .address-info {
        order: 2;
        /* 医院情報を地図の下に */
        width: 100%;
        /* align-items: flex-start; */
        padding: 0;
    }

    .access-hospital-name {
        text-align: left;
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-left: 10px;
        /* border-left: 4px solid var(--color-main); */
    }

    .address-detail-item {
        flex-direction: row;
        /* 横並びのリスト形式 */
        align-items: flex-start;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .address-detail-item:first-child {
        border-top: 1px solid #eee;
    }

    .address-detail-item .info-label {
        flex: 0 0 90px;
        margin-bottom: 0;
        font-size: 0.95rem;
        justify-content: flex-start;
    }

    .address-detail-item .info-content {
        flex: 1;
        font-size: 1rem;
        line-height: 1.5;
    }

    .map-link-btn-wrapper {
        order: 3;
        /* ボタンを最後に */
        margin-top: 25px;
    }

    /* 他のレイアウトも縦並びへ */
    .access-middle-layout,
    .access-bottom-layout {
        flex-direction: column;
        /* gap: 30px; */
    }

    .access-bottom-layout .route-item {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .access-bottom-layout .route-item img {
        width: 100%;
        height: 180px;
    }

    .access-bottom-layout .route-item p {
        text-align: center;
        /* padding-top: 15px; */
    }

    .btn-pdf {
        width: 100%;
    }

    .access-middle-layout {
        gap: 0px;
    }
}

@media (max-width: 768px) {
    .address-detail-item .tel-number {
        font-size: 1.4rem;
    }
}