@charset "UTF-8";

/* ===== リセットCSS ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    position: relative;
}

body {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.6;
    font-feature-settings: 'palt';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* リストのデフォルトスタイルを削除 */
ul, ol {
    list-style: none;
}

/* aタグのデフォルトスタイルを削除 */
a {
    text-decoration: none;
    color: inherit;
}

/* ボタンのリセット */
button {
    border: none;
    background: none;
    cursor: pointer;
}

/* 画像のリセット */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

.clearfix:after {
    display: block;
    visibility: hidden;
    clear: both;
    height: 0;
    content: ".";
    line-height: 0;
}

/* ===== PC・スマホの表示切り替え ===== */
.pc {
    display: none;
}

.sp {
    display: block;
}

/* ===== Swiper基本設定 ===== */
.swiper {
    width: 100%;
    height: auto;
    margin: 2rem auto;
    margin-bottom: 2rem;
}

.swiper-slide {
    text-align: center;
    font-size: 1.125rem;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 0;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== リンク付き画像 ===== */
.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-slide a img {
    transition: opacity 0.2s ease;
}

.swiper-slide a:hover img {
    opacity: 0.8;
}

/* ===== ズーム可能画像 ===== */
.swiper-slide img.zoomable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.swiper-slide img.zoomable:hover {
    opacity: 0.8;
}

/* ===== 動画スライド ===== */
.swiper-slide.video-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-slide.video-slide::before {
    content: '';
    display: block;
    width: 100%;
    padding-bottom: 133.25%; /* 543/400 * 100% = 画像と同じアスペクト比 */
    background-image: url('../img/slides/beige_r.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== ページネーション ===== */
.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 1.25rem;
    text-align: center;
    width: 18.75rem !important;
    left: 50% !important;
    transform: translateX(-50%);
}

.swiper-pagination-bullet {
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 0.438rem)) !important;
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 0.438rem)) !important;
    background: #000000 !important;
    opacity: 0.3;
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 0.14rem) !important;
    /*margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 0.188rem) !important;*/
}

.swiper-pagination-bullet-active {
    background: #000000 !important;
    opacity: 1;
}

/* ===== ナビゲーション矢印 ===== */
.swiper-button-prev,
.swiper-button-next {
    color: #000000 !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    margin-top: 0 !important;
    top: auto !important;
    bottom: -0.625rem !important;
    z-index: 10;
}

.swiper-button-prev {
    left: 0.625rem !important;
}

.swiper-button-next {
    right: 0.625rem !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: '' !important;
    background-image: url('../img/arrow.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.swiper-button-prev::after {
    transform: scaleX(-1) !important;
}

/* ===== カスタムナビゲーション ===== */
.custom-nav-first,
.custom-nav-last {
    position: absolute !important;
    color: transparent !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    margin-top: 0 !important;
    top: auto !important;
    bottom: -0.625rem !important;
    z-index: 10;
    background-image: url('../img/arrow2.svg') !important;
    background-size: 1.5rem 1.5rem !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none;
    cursor: pointer;
    font-size: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-nav-first {
    left: 0 !important;
    transform: scaleX(-1) !important;
}

.custom-nav-last {
    right: 0 !important;
}

.custom-nav-first:disabled,
.custom-nav-last:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
}

.custom-nav-first:hover:not(:disabled),
.custom-nav-last:hover:not(:disabled) {
    opacity: 0.7 !important;
}

/* ===== 画像マップ ===== */
.image-map-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.map-link {
    position: absolute;
    display: block;
    transition: opacity 0.2s ease;
    z-index: 10;
    cursor: pointer;
}

.map-link-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.313rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 20;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.map-link:hover .map-link-tooltip {
    opacity: 1;
}

/* ===== バナーセクション ===== */
.banner-section {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.banner-link {
    display: inline-block;
}

.banner-image.sp {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

.banner-image.pc {
    max-width: 50rem;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===== フッター ===== */
.footer-box {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.button-wrapper {
    max-width: 62.5rem;
    margin: 0 auto 3rem;
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: "Montserrat";
}

.button {
    display: inline-block;
    margin: 0 0.625rem;
}

.button-link {
    display: inline-block;
    padding: 0.4rem 0.2rem;
    background-color: #53565b;
    color: #ffffff;
    border: 0.063rem solid #53565b;
    text-decoration: none;
    border-radius: 0.313rem;
    transition: background-color 0.3s;
    width: 16rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.button-link:hover {
    background-color: #ffffff;
    color: #53565b;
    border: 0.063rem solid #53565b;
}

footer {
    padding: 2.5rem 1.25rem;
}

.onward-logo {
    margin-bottom: 1.25rem;
}

.onward-logo img {
    width: 10rem;
    margin: 0 auto;
}

.copyright {
    font-size: 0.75rem;
    font-family: "Montserrat";
    color: #666;
    margin: 0;
}

/* ===== モーダル ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-image-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    overflow: auto;
    touch-action: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.modal-image {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.875rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3.125rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

.zoom-controls {
    position: absolute;
    bottom: 1.875rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem;
    z-index: 1001;
}

.zoom-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3.125rem;
    height: 3.125rem;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.zoom-btn.reset {
    background-image: url('../img/reset.svg') !important;
    background-size: 1.25rem 1.25rem !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.zoom-btn.reset::before,
.zoom-btn.reset::after {
    display: none !important;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zoom-info {
    position: absolute;
    bottom: 6.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.313rem 0.938rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    z-index: 1001;
}

/* ===== スマートフォン用スタイル ===== */
@media (max-width: 768px) {
    /* スマホで見開き風の隙間を作る */
    .mySwiper .swiper-slide.odd-page {
        padding-left: 0.938rem !important;
        box-sizing: border-box !important;
    }

    .mySwiper .swiper-slide.odd-page img {
        border-radius: 0 0.5rem 0.5rem 0 !important;
        box-shadow: 0.5rem 0 0.938rem rgba(0, 0, 0, 0.1) !important;
    }

    .mySwiper .swiper-slide.video-slide.odd-page::before {
        border-radius: 0 0.5rem 0.5rem 0 !important;
        box-shadow: 0.5rem 0 0.938rem rgba(0, 0, 0, 0.1) !important;
    }

    .mySwiper .swiper-slide.even-page {
        padding-right: 0.938rem !important;
        box-sizing: border-box !important;
    }

    .mySwiper .swiper-slide.even-page img {
        border-radius: 0.5rem 0 0 0.5rem !important;
        box-shadow: -0.5rem 0 0.938rem rgba(0, 0, 0, 0.1) !important;
    }

    .mySwiper .swiper-slide.video-slide.even-page::before {
        border-radius: 0.5rem 0 0 0.5rem !important;
        box-shadow: -0.5rem 0 0.938rem rgba(0, 0, 0, 0.1) !important;
    }

    .mySwiper .swiper-slide.video-slide.even-page video {
        border-radius: 0.5rem 0 0 0.5rem !important;
    }

    /* モーダル調整 */
    .modal-image {
        max-height: 90vh;
        max-width: 90vw;
        width: auto;
        height: auto;
    }

    .close-modal {
        top: 0.625rem;
        right: 0.938rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.875rem;
    }

    .zoom-controls {
        bottom: 1.25rem;
        gap: 0.5rem;
    }

    .zoom-btn {
        width: 2.813rem;
        height: 2.813rem;
        font-size: 1.6rem;
    }

    .zoom-info {
        bottom: 5rem;
        font-size: 0.75rem;
        padding: 0.188rem 0.75rem;
    }
}

/* ===== 小さなスマートフォン用調整 ===== */
@media (max-width: 375px) {
    .swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
    .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
        margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 0.125rem) !important;
    }
}

/* ===== PC用スタイル ===== */
@media screen and (min-width: 769px) {
    .pc {
        display: block;
    }

    .sp {
        display: none;
    }

    .swiper {
        max-width: 62.5rem;
    }

    .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .swiper-slide.video-slide::before {
        padding-bottom: 133.25%;
    }

    .swiper-slide.video-slide video {
        max-width: 80%;
        max-height: 80%;
    }

    .button-link {
        width: 35%;
    }

    .modal-image {
        max-height: 90vh;
        height: 90vh;
        width: auto;
    }
}