@charset "utf-8";

/* -----------------------------------------------------------------
   詳細ページ専用スタイル（ポップアップ画面）
----------------------------------------------------------------- */
.boarding-detail-page {
    margin: 0;
    background: #fff;
    color: #222;
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
    line-height: 1.7;
}
.boarding-detail-page * {
    box-sizing: border-box;
}
.boarding-detail-page a {
    color: inherit;
}
.boarding-site-header {
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 18px max(5%, calc((100% - 1200px) / 2));
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.boarding-site-header img {
    display: block;
    width: 190px;
    max-width: 50vw;
}
.boarding-detail {
    width: min(960px, 90%);
    margin: 34px auto 80px;
}
.boarding-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #576575;
    font-size: .85rem;
}
.boarding-detail-title {
    margin: 35px 0;
    text-align: center;
}
.boarding-detail-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.boarding-detail-title p {
    margin: 8px 0 0;
    color: #5d6975;
}
.boarding-detail-title .boarding-type {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: #0d84ec;
}
.boarding-map-section h2,
.boarding-alighting-section > h2,
.boarding-guides > h2,
.boarding-note h2 {
    padding-bottom: 10px;
    border-bottom: 3px solid #0d84ec;
    color: #086db0;
}
.boarding-map-section iframe,
.boarding-alighting-place iframe {
    display: block;
    width: 100%;
    height: 440px;
    border: 0;
    border-radius: 10px;
}
.boarding-address {
    text-align: center;
}
.boarding-route-button {
    display: block;
    width: min(420px, 100%);
    margin: 22px auto;
    padding: 13px 25px;
    border: 3px solid #1cabab;
    border-radius: 999px;
    color: #127f7f;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.boarding-alighting-section,
.boarding-guides,
.boarding-note {
    margin-top: 70px;
}
.boarding-alighting-place + .boarding-alighting-place {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #cbd5e1;
}
.boarding-alighting-place h3 {
    color: #086db0;
}
.boarding-alighting-note {
    padding: 16px;
    border-radius: 8px;
    background: #fff8dc;
}
.boarding-guides ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.boarding-guides li {
    position: relative;
    padding: 18px;
    border-radius: 10px;
    background: #f4f8fb;
}
.boarding-guides img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.boarding-step {
    display: inline-block;
    margin: 0 0 10px;
    padding: 3px 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: #0d84ec;
}
.boarding-guides h3 {
    margin-bottom: 5px;
}
.boarding-note {
    padding: 20px 24px;
    border-radius: 8px;
    background: #fff8dc;
}
.boarding-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 50px;
}
.boarding-actions button {
    border: 1px solid #0d84ec;
    border-radius: 7px;
    padding: 9px 24px;
    color: #086db0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
}

/* 公開中の旧バス停マップに合わせた動的詳細ページ */
.boarding-detail-page {
    margin: 0 0 85px;
}
.boarding-map-header {
    padding: 20px;
}
.boarding-map-header a,
.boarding-map-header img {
    display: block;
    width: 260px;
    max-width: 100%;
    margin: auto;
}
.boarding-map-wrap > h1 {
    margin: 0 0 20px;
    padding: 20px;
    background: #d8e6fd;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
.boarding-map-wrap > h1 span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
}
.boarding-map-box {
    width: 90%;
    margin: 0 auto 50px;
}
.boarding-map-box > h2 {
    margin: 0 0 20px;
    padding: 20px;
    border: 0;
    border-radius: 8px;
    background: #0d84ec;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}
.boarding-map-content {
    width: 90%;
    margin: 0 auto 10px;
}
.boarding-map-content iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 0;
}
.boarding-map-content .boarding-address {
    margin: 1em 0;
    font-weight: 400;
    text-align: center;
}
.boarding-route {
    width: 90%;
    margin: 30px auto 0;
}
.boarding-route a {
    position: relative;
    display: block;
    box-sizing: border-box;
    padding: 15px 55px;
    border: 4px solid #1cabab;
    border-radius: 25rem;
    background: #f7f7f7;
    color: #1cabab;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.boarding-route-map-icon {
    position: absolute;
    top: 20%;
    left: 15px;
    width: 30px;
}
.boarding-route-link-icon {
    width: 14px;
    margin-left: 5px;
}
.boarding-alighting-section {
    margin-top: 0;
}
.boarding-alighting-place + .boarding-alighting-place {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ccc;
}
.boarding-alighting-place > h3,
.boarding-guides h3 {
    margin: 30px 0;
    color: #0d84ec;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}
.boarding-guides {
    margin-top: 0;
}
.boarding-guides ol {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.boarding-guides li {
    position: relative;
    margin: 0 0 40px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.boarding-guides li::after {
    position: absolute;
    bottom: -35px;
    width: 100%;
    color: #0d84ec;
    content: "↓";
    font-size: 2rem;
    text-align: center;
}
.boarding-guides li:last-child::after {
    display: none;
}
.boarding-guide-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}
.boarding-guides li > p {
    margin: 5px 0 0;
    font-size: 1.3rem;
    font-weight: 400;
}
.boarding-note {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.boarding-note > p,
.boarding-alighting-note {
    padding: 16px;
    border-radius: 8px;
    background: #fff8dc;
}
.boarding-print-button {
    text-align: center;
}
.boarding-print-button button {
    display: inline-block;
    padding: 15px 40px;
    border: 0;
    border-radius: 25rem;
    background: #12274a;
    color: #fff;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.boarding-close-button {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgb(0 0 0 / 35%);
    text-align: center;
}
.boarding-close-button button {
    display: block;
    width: 100%;
    height: 55px;
    padding: 15px 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.boarding-close-button span {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 12px;
    margin-right: 10px;
}
.boarding-close-button span::before,
.boarding-close-button span::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 25px;
    height: 3px;
    background: #fff;
    content: "";
}
.boarding-close-button span::before {
    transform: rotate(45deg);
}
.boarding-close-button span::after {
    transform: rotate(135deg);
}

/* -----------------------------------------------------------------
   乗り場一覧（#other）検索・五十音・結果表示スタイル
   本番の landing_guidance.css に美しく調和するスタイル
----------------------------------------------------------------- */
/* 五十音フィルター */
.boarding-kana-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #b2cced;
}
.boarding-kana {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.boarding-kana button {
    padding: 6px 12px;
    border: 1px solid #0d84ec;
    border-radius: 6px;
    background: #fff;
    color: #086db0;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.boarding-kana button:hover {
    background: #e6f0fa;
}
.boarding-kana button[aria-pressed="true"] {
    background: #0d84ec;
    color: #fff;
}

/* 件数表示 */
.boarding-count {
    width: 70%;
    margin: 20px auto 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}
.boarding-empty {
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    background: #f4f6f8;
    color: #666;
    font-size: 1.3rem;
}

/* 検索結果（.stop-list 内の .boarding-row） */
#other .stop-list .stop-heading,
#other .stop-list .boarding-row h3 {
    font-size: 1.6rem;
    font-weight: 400;
    border-bottom: 1px solid #999;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #000;
}
#other .stop-list .busmap {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 0;
    list-style: none;
}
#other .stop-list .busmap li {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 10px 10px 0;
}
#other .stop-list .busmap li a.boarding-detail-link {
    display: inline-block;
    width: auto;
    padding: 5px 12px;
    border: 1px solid #000;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    background: #fff;
    transition: opacity 0.2s ease;
}
#other .stop-list .busmap li a.boarding-detail-link:hover {
    opacity: 0.7;
}

/* -----------------------------------------------------------------
   レスポンシブ対応（スマホ幅 767px以下）
----------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
    .boarding-route {
        width: 100%;
    }
    .boarding-route a {
        padding: 15px 10px 15px 40px;
        white-space: nowrap;
    }
    .boarding-detail-title h1 {
        font-size: 2rem;
    }
    .boarding-guides ol {
        grid-template-columns: 1fr;
    }
    .boarding-map-section iframe,
    .boarding-alighting-place iframe {
        height: 280px;
    }
    .boarding-kana button {
        padding: 5px 8px;
        font-size: 1.1rem;
    }
    .boarding-count {
        width: 100%;
        font-size: 1.2rem;
    }
    #other .stop-list .stop-heading,
    #other .stop-list .boarding-row h3 {
        font-size: 1.2rem;
    }
    #other .stop-list .busmap li {
        font-size: 1.1rem;
    }
}

@page {
    size: A4 portrait;
    margin: 7mm;
}

@media print {
    html,
    body.boarding-detail-page {
        width: auto;
        min-width: 0;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff;
    }
    body.boarding-detail-page {
        color: #000;
        font-size: 9pt;
        line-height: 1.3;
        zoom: var(--boarding-print-scale, 1);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .boarding-map-header,
    .boarding-print-button,
    .boarding-close-button {
        display: none !important;
    }
    .boarding-map-wrap {
        width: 100%;
        margin: 0;
    }
    .boarding-map-wrap > h1 {
        margin: 0 0 3mm;
        padding: 3mm 4mm;
        font-size: 16pt;
        line-height: 1.25;
    }
    .boarding-map-wrap > h1 span {
        font-size: 9pt;
    }
    .boarding-map-box {
        width: 100%;
        margin: 0 0 3mm;
        break-inside: avoid;
    }
    .boarding-map-box > h2 {
        margin: 0 0 2mm;
        padding: 2mm 3mm;
        border-radius: 2mm;
        font-size: 12pt;
        line-height: 1.25;
    }
    .boarding-map-content {
        width: 100%;
        margin: 0;
    }
    .boarding-map-content iframe {
        height: 52mm;
    }
    .boarding-map-content .boarding-address {
        margin: 1.5mm 0;
    }
    .boarding-route {
        width: 72%;
        margin: 2mm auto 0;
    }
    .boarding-route a {
        padding: 2mm 12mm;
        border-width: 1mm;
        line-height: 1.2;
    }
    .boarding-route-map-icon {
        top: 1.5mm;
        left: 4mm;
        width: 6mm;
    }
    .boarding-route-link-icon {
        width: 3mm;
    }
    .boarding-alighting-place + .boarding-alighting-place {
        margin-top: 3mm;
        padding-top: 3mm;
    }
    .boarding-alighting-place > h3,
    .boarding-guides h3 {
        margin: 2mm 0;
        font-size: 10pt;
        line-height: 1.25;
    }
    .boarding-alighting-note,
    .boarding-note > p {
        margin: 2mm 0 0;
        padding: 2mm 3mm;
    }
    .boarding-guides ol {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3mm;
        margin: 0;
    }
    .boarding-guides li {
        margin: 0;
        break-inside: avoid;
    }
    .boarding-guides li::after {
        display: none;
    }
    .boarding-guide-image img {
        width: 100%;
        height: 34mm;
        object-fit: contain;
    }
    .boarding-guides li > p {
        margin: 1mm 0 0;
        font-size: 9pt;
        line-height: 1.25;
    }
    .boarding-note {
        break-inside: avoid;
    }
}
