@charset "UTF-8";

/* ==========================================================================
   TOP Page Visual Styles (Vanilla JS Slider Version)
   ========================================================================== */

.main__visual {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 40rem;
    /* PCは横長に */
}

.main__visual-list {
    width: 100%;
    height: 100%;
    position: relative;
}

.main__visual-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
}

.main__visual-item.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.main__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 中央の円形タイトルエリア */
.page-title--top {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--title-bk-color);
    color: #fff;
    width: 30rem;
    /* イメージに合わせてもう少し大きく */
    height: 30rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    /* わずかにぼかしを入れると馴染みます */
}

/* アクティブなスライドのテキストアニメーション（オプション） */
.main__visual-item.is-active .page-title--top {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.page-title__lead {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.page-title__main {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.page-title__link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0rem 2.5rem;
    border-radius: 4rem;
    color: #fff;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
}

.page-title__link:hover {
    background-color: #fff;
    color: var(--sub-color);
}

.page-title__link-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.page-title__arrow {
    width: 1.5rem;
    height: auto;
}

/* 16枚のアイコンを正円に配置 */
.main__visual-icons {
    --icon-radius: -22rem;
    /* デフォルトの半径 */
    position: absolute;
    top: 50%;
    left: -2rem;
    width: 44rem;
    height: 44rem;
    margin-top: -22rem;
    margin-left: -22rem;
    z-index: 5;
    pointer-events: none;
    /* 透明な枠がクリックを邪魔しないようにする */
    touch-action: none;
    /* ページスクロールを防止 */
}

.main__visual-icons-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    /* JSで座標を直接指定するため回転は使用しない */
}

.main__visual-icon-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.5rem;
    height: 4.5rem;
    margin: -2.25rem;
    background: #fff;
    border: 1px solid var(--sub-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    /* クリックを有効化 */
    cursor: pointer;
    /* カーソルをポインターに */
    will-change: transform;
}

.main__visual-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* JSによる直接座標指定を行うため、CSSでのアニメーション・個別配置指定は削除 */

/* Pagination Dots */
.main__visual-pagination {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}

.main__visual-dot {
    width: 0.75rem;
    height: 0.75rem;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s;
}

.main__visual-dot.is-active {
    opacity: 1;
    background-color: var(--sub-color);
    transform: scale(1.2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1280px) {
    .page-title--top {
        width: 28rem;
        height: 28rem;
    }

    .page-title__main {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .main {
        overflow: hidden;
        /* はみ出たアイコンを隠す */
        height: 100%;
    }

    .main__visual {
        min-height: 480px;
        overflow: hidden;
    }

    /* 中央の丸いタイトルの位置調整 */
    .page-title--top {
        position: absolute;
        top: 5.5rem;
        left: 37%;
        transform: translateX(-50%);
        margin: 0;
        width: 14rem;
        height: 14rem;
        padding: 1rem;
        z-index: 5;
    }

    .page-title__arrow {
        width: 1rem;
    }

    /* アイコン群の位置とサイズ調整 */
    .main__visual-icons {
        --icon-radius: -10rem;
        width: 28rem;
        height: 28rem;
        left: 0;
        top: 71%;
        margin-top: -14rem;
        /* 半分(14rem)戻して中心を合わせる */
        margin-left: -14rem;
        /* 半分(14rem)戻して中心を合わせる */
        /* 左端に半分隠れるように配置 */
    }

    .main__visual-icon-item {
        width: 2.5rem;
        height: 2.5rem;
        margin: -1.75rem;
    }

    .page-title__lead {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .page-title__main {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .page-title__link {
        padding: 0rem 1rem;
        gap: 0.5rem;
    }

    .page-title__link-text {
        font-size: 0.8rem;
    }

    .main__visual-item.is-active .page-title--top {
        animation: none;
        /* スマホではシンプルに */
    }
}

/* ==========================================================================
   Popup Modal (PC)
   ========================================================================== */

.p-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    /* ナビ表示(2000)より低く設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* 非表示時はクリックイベントを無効化 */
    transition: all 0.4s ease;
}

.p-popup.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* 表示時は有効化 */
}

.p-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.p-popup__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.p-popup.is-active .p-popup__content {
    transform: translateY(0);
}

.p-popup__header {
    background-color: var(--title-bk-color);
    padding: 1.5rem 2rem;
    position: relative;
    text-align: center;
}

.p-popup__title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.p-popup__close-btn {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.p-popup__close-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 0;
}

.p-popup__close-btn span:first-child {
    transform: rotate(45deg);
}

.p-popup__close-btn span:last-child {
    transform: rotate(-45deg);
}

.p-popup__body {
    padding: 3rem 2rem;
}

.p-popup__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    list-style: none;
    padding: 0;
}

.p-popup__item {
    border-bottom: 1px solid #eee;
}

.p-popup__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease-out;
}

.p-popup__link:hover {
    opacity: 0.7;
}

.p-popup__link-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.p-popup__link-arrow {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #333;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.p-popup__link-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 45%;
    width: 0.6rem;
    height: 0.6rem;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: translate(-50%, -50%) rotate(45deg);
}

@media screen and (max-width: 768px) {
    .p-popup__content {
        width: 85%;
        max-width: none;
    }

    .p-popup__header {
        padding: 1.25rem 1.5rem;
    }

    .p-popup__title {
        font-size: 1.5rem;
        text-align: left;
        line-height: 1.4;
    }

    .p-popup__body {
        padding: 1.5rem;
    }

    .p-popup__list {
        grid-template-columns: 1fr;
        /* 1カラムに変更 */
        gap: 0;
    }

    .p-popup__item {
        border-bottom: 1px solid #eee;
    }

    .p-popup__link {
        padding: 1rem 0;
    }

    .p-popup__link-text {
        font-size: var(--font-size-body-pc);
        line-height: 1.4;
        padding-right: 1rem;
    }

    .p-popup__link-arrow {
        width: 1.75rem;
        height: 1.75rem;
    }

    .p-popup__link-arrow::after {
        width: 0.5rem;
        height: 0.5rem;
    }

    .p-popup__close-btn {
        display: none;
        /* SP表現では×マークを非表示にする */
    }
}