/* ===============================================================
    about / message セクション全体
=============================================================== */

.message {
    position: relative; /* 背景色用の ::before を重ねるため相対位置 */
    width: 100%;
    height: auto;
}

.message::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -99; /* コンテンツの背面に配置 */
    width: 91.66666vw; /* ビューポート幅の割合で背景幅 */
    height: clamp(600px, 58.05555vw, 836px); /* 高さのレスポンシブ設定 */
    background-color: var(--bg-color-light-gray);
    content: '';
}

.message__inner {
    width: 100%;
    max-width: 1320px; /* 最大幅で中央寄せ */
    margin: 0 auto;
    padding: 0 60px; /* 横の余白 */
}

.message__content-wrapper {
    display: flex; /* 横並び */
    align-items: center; /* 縦中央揃え */
    justify-content: center;
    gap: 40px; /* 要素間の隙間 */
    max-width: 1200px;
    padding: 0 30px;
    box-sizing: border-box;
}

.message__image {
    width: 42%; /* 画像の幅 */
}

.message__image img {
    width: 100%;
    max-width: 477px;
}

.message__content {
    width: 54%; /* テキストエリアの幅 */
}

.message__catch {
    font-size: var(--font-size-title-xl);
    font-weight: 700;
    line-height: 1.75;
    padding-bottom: 1em;
}

.message__description {
    margin-bottom: 1rem;
}

.message__text {
    font-size: var(--font-size-body-md);
    font-weight: 500;
    line-height: 2;
    padding-bottom: 1.33333em;
}

.message__name {
    font-size: var(--font-size-title-lg);
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.message__name span {
    font-size: var(--font-size-body-lg);
    font-weight: 500;
    line-height: 1;
    padding-right: 1em;
}


/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */
@media (max-width: 1024px) {
    .message__inner {
        padding: 0 40px;
    }

    .message__content-wrapper {
        padding: 0 10px;
    }
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .message::before {
        width: 96.8vw;
        height: clamp(600px, 253vw, 952px);
    }

    .message__inner {
        padding: 0 24px;
    }

    .message__content-wrapper {
        flex-direction: column-reverse; /* スマホでは縦並びに変更 */
        gap: 40px;
        padding: initial;
    }

    .message__image {
        width: 69.33333%;
        max-width: 477px;
    }

    .message__content {
        width: 100%;
    }
}


/* ===============================================================
    overview セクション
=============================================================== */

.overview {
    padding: 0;
}

.overview__inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 40px;
    padding: 0 60px;
}

.overview__list {
    margin: 0 0 0 auto; /* 右寄せ */
    max-width: 820px;
    line-height: 1.75;
}

.overview__item {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #9A9A9A; /* 項目の下線 */
    padding: 1.5em 0;
}

.overview__term {
    width: 200px;
    font-weight: 500;
}

.overview__desc {
    text-align: left;
    font-weight: 700;
}

.overview__map {
    width: 100%;
    height: 500px;
}

.overview__map iframe {
    width: 100%;
    height: 500px;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .overview {
    }
    .overview__inner {
        padding: 0 24px;
    }

    .overview__list {
        width: 79.2vw;
    }

    .overview__item {
        gap: 8%;
    }

    .overview__term {
        width: 80px;
        flex-shrink: 0;
    }

    .overview__desc {
        flex: 1;
    }

    .overview__map,
    .overview__map iframe {
        height: 250px;
    }
}


/* ===============================================================
    history セクション（スライダー）
=============================================================== */

.history {
    padding-top: 0;
    padding-bottom: 160px;
}

.history__inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 40px;
    padding: 0 60px;
}

.history__slider {
    position: relative;
    overflow: hidden;
    padding-top: 160px;
    padding-right: 30px;
    padding-left: 21.875vw;
}

.history__list {
    display: flex;
    padding-bottom: 55px;
}

.history__item {
    position: relative;
    width: 320px;
    height: 350px;
    background: var(--bg-color-light-gray);
    padding: 20px;
    flex-shrink: 0;
}

/* swiper スライドの共通設定 */
.swiper-slide {
    width: 320px;
    height: 350px;
}

.history__item::before {
    content: "";
    position: absolute;
    top: -48px;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--text-color-blue);
    z-index: 99;
}

.history__item::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: calc(100% + 40px);
    height: 2px;
    background: #9A9A9A;
}

/* 点線の垂直ライン */
.history__item .dashed-line {
    position: absolute;
    top: -40px;
    left: 7px;
    height: 40px;
    border-left: 2px dashed #9A9A9A;
}

.swiper-backface-hidden .swiper-slide {
    transform: translateZ(0);
    width: 320px;
    height: 350px;
}

.history__year {
    padding-bottom: 0.52em;
    font-size: clamp(2.1rem, 3.19444444vw, 4.6rem);
    font-weight: 700;
    color: var(--text-color-light-gray);
}

.history__month {
    font-size: var(--font-size-body-lg);
    font-weight: 700;
    line-height: 1.75;
    color: var(--text-color-blue);
}

.history__text {
    font-size: var(--font-size-body-md);
    font-weight: 500;
    line-height: 1.75;
}

/* スクロールバー */
.swiper-scrollbar {
    margin-left: 21.875vw;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 30px;
    width: 80%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
}

.swiper-scrollbar-drag {
    height: 100%;
    width: 100%;
    position: relative;
    background: var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));
    border-radius: var(--swiper-scrollbar-border-radius, 10px);
    left: 0;
    top: 0;
}

/* スライダーナビ（矢印ボタン） */
.history__nav {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 60px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.history__prev,
.history__next {
    position: relative;
    background: var(--bg-color-light-gray);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history__prev::before,
.history__next::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-top: 4px solid var(--text-color-blue);
    border-right: 4px solid var(--text-color-blue);
    content: '';
    transition: 0.3s;
    transform: translate(-50%, -50%) rotate(-135deg); /* ← */
}

.history__next::before {
    transform: translate(-50%, -50%) rotate(45deg); /* → */
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .history {
        padding-bottom: 120px;
    }
    .history__inner {
        padding: 0 24px;
    }

    .history__item {
        width: 200px;
        height: 210px;
        padding: 30px 20px;
    }

    .history__item::before {
        top: -30px;
        width: 10px;
        height: 10px;
    }

    .history__item::after {
        top: -25px;
    }

    .history__item .dashed-line {
        top: -30px;
        left: 4px;
        border-left: 1px dashed #9A9A9A;
        z-index: -999;
    }

    .history__nav {
        position: absolute;
        top: 0;
        right: 0;
        padding-right: 24px;
        display: flex;
        gap: 12px;
        z-index: 10;
    }
    .history__prev::before, .history__next::before {
        width: 12px;
        height: 12px;
        border-top: 4px solid var(--text-color-blue);
        border-right: 4px solid var(--text-color-blue);
    }

    .history__prev, .history__next {
        width: 46px;
        height: 46px;
    }

    .history__slider {
        position: relative;
        overflow: hidden;
        padding-top: 100px;
        padding-right: 24px;
        padding-left: 24px;
    }
    .history__list {
        padding-bottom: 32px;
    }

    .swiper-scrollbar {
        margin-left: initial;
        margin: initial;
        margin:  0 auto;
        width: 87.2vw;
        height: 2px;
        right: initial;
    }

}

/* ========================= 25.06.23 追記 ========================= */
iframe {
    border: none !important;
    outline: none;
}