/* accessmap.html 追加CSS */

#access {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

#map {
    display: block;
    width: 100%;
    max-width: 960px;
    height: 420px;
    margin: 0 auto 32px;
    border-radius: 16px;
}

#access-map {
    max-width: 960px;
    margin: 0 auto;
}

.access-detail,
.location {
    background: #fff;
    border: 1px solid #e5edf1;
    border-radius: 18px;
    padding: 24px 26px;
    margin: 0 0 24px;
    box-shadow: 0 6px 18px rgba(40, 80, 100, 0.06);
}

.access-detail h3,
.access-detail h4 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d8e6ec;
    color: #224466;
    font-size: 1.35rem;
    line-height: 1.5;
}

.access-detail h5 {
    margin: 24px 0 10px;
    color: #335566;
    font-size: 1.08rem;
    line-height: 1.5;
}

.access-detail p {
    margin: 0 0 14px;
    line-height: 1.9;
}

.access-detail strong {
    color: #224466;
    font-weight: 600;
}

.location ul,
.access-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.location li,
.access-list li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 10px;
    line-height: 1.8;
}

.location li::before,
.access-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6f9fb3;
    font-weight: bold;
}

.location li.no-disc {
    padding-left: 0;
    margin-bottom: 14px;
    font-weight: 600;
    color: #224466;
}

.location li.no-disc::before {
    content: none;
}

.note {
    background: #f7fbfc;
    border-left: 4px solid #8db7c6;
    border-radius: 8px;
    padding: 12px 14px;
    color: #445;
    font-size: 0.95rem;
}

.parking {
    color: #9a6a2d;
}

.img-box,
.multiple-image {
    margin-top: 18px;
}

.imgscrollbox {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 2px 12px;
}

.img-description {
    flex: 0 0 auto;
}

.img-description img,
.single-image img,
#parking img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(30, 60, 80, 0.08);
}

.img-description img {
    height: 250px;
    width: auto;
}

#parking {
    margin-top: 16px;
    text-align: center;
}

.single-image {
    margin-top: 16px;
    text-align: center;
}

.linkshow {
    color: #226b8a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.linkshow:hover {
    color: #174a60;
}

.access-detail h5 {
    position: relative;
    margin: 26px 0 12px;
    padding-left: 12px;

    font-size: 1.08rem;
    font-weight: 600;
    color: #224466;

    border-left: 6px solid #8db7c6;
}

.access-detail h5::before {
    content: none !important;
}

.walkfrom {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 8px;
    border-radius: 6px;

    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    color: #224466;
    background: #e8f3f7;
}

.accessfrom {
    display: inline-block;
    margin-right: 8px;
    padding-left: 6px;

    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    color: #224466;
    border-left: 3px solid #8db7c6;  /* ←控えめアクセント */
}

/* map01a.png / map02.png：全体表示・縦横比維持 */
.multiple-image {
    margin-top: 14px;
    text-align: center;
}

.multiple-image.imgscrollbox {
    display: block;
    overflow: visible;
    padding: 0;
}

.multiple-image .img-description {
    width: 100%;
}

.multiple-image img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto !important;   /* 既存height指定を打ち消す */
    max-height: none !important;
    object-fit: contain;       /* 念のため歪み防止 */
    margin: 0 auto;

    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(30, 60, 80, 0.08);
}

/*  目次リンク  */

.access-route-nav {
    max-width: 960px;
    margin: 0 0 16px;
    padding: 0;
}

.access-route-nav__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.access-route-card {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2edf1;
    text-align: center;
    text-decoration: none;
    color: #334;
    box-shadow: 0 4px 12px rgba(40, 80, 100, 0.05);
}

.access-route-card__title {
    color: #224466;
    font-weight: 700;
    margin-bottom: 4px;
}

.access-route-card__text {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #667;
}

.access-route-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 80, 100, 0.08);
}

@media screen and (max-width: 800px){
    .access-route-card__text{
        text-align: left;
    }
}

.inpagelink {
    display: inline-block;
    margin: 16px auto 8px;
    padding: 10px 16px;

    border-radius: 999px;
    background: #eef6f9;
    color: #224466;

    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;

    border: 1px solid #d6e7ee;
}

/* 矢印を付ける */
.inpagelink::after {
    content: " →";
    margin-left: 4px;
    font-size: 0.9rem;
}

/* hover（PC） */
.inpagelink:hover {
    background: #e3f0f5;
}

/* 中央寄せしたい場合 */
.inpagelink {
    display: block;
    width: fit-content;
}

@media screen and (max-width: 800px) {
    #access {
        padding: 0 12px 40px;
    }

    #map {
        height: 320px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .access-detail,
    .location {
        padding: 18px 16px;
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .access-detail h3,
    .access-detail h4 {
        font-size: 1.18rem;
    }

    .access-detail h5 {
        font-size: 1.1rem;
    }

    .access-detail p,
    .location li,
    .access-list li {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .img-description img {
        height: 210px;
    }
}