

/* ========================================
   Scroll Animation
======================================== */

/* 初期状態 */
.js-fadeup {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 表示状態 */
.js-fadeup.is-show {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   Delay
======================================== */

.js-fadeup.delay-1 {
    transition-delay: 0.1s;
}

.js-fadeup.delay-2 {
    transition-delay: 0.2s;
}

.js-fadeup.delay-3 {
    transition-delay: 0.3s;
}

.js-fadeup.delay-4 {
    transition-delay: 0.4s;
}

.js-fadeup.delay-5 {
    transition-delay: 0.5s;
}

.js-fadeup.delay-6 {
    transition-delay: 0.6s;
}

.js-fadeup.delay-7 {
    transition-delay: 0.7s;
}

.js-fadeup.delay-8 {
    transition-delay: 0.8s;
}


/* ========================================
   Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {
    .js-fadeup {
        opacity: 1;
        transform: none;
        transition: none;
    }
}



/* ==============================

　　モーダル

　============================== */
/* ページ全体の起点（ここが基準になる） */
.wrap {
    position: relative !important;
}

/* モーダル本体 */
.custom-modal {
    position: fixed !important;
    z-index: 999999 !important;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* 表示時 */
.custom-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 白いボックス部分 */
.custom-modal>.wp-block-group__inner-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.custom-modal.active>.wp-block-group__inner-container {
    transform: scale(1);
}

/* テキスト・中身のエリア */

.custom-modal>.wp-block-group__inner-container {
    overflow-y: auto;
    padding: 60px 40px;
    width: 100%;
    box-sizing: border-box;
}

/* ×ボタンの配置 */
.wp-block-buttons.close-wrap {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 100;
    margin: 0 !important;
    max-width: fit-content;
    overflow: hidden;
}

.wp-block-buttons.close-wrap .close-modal a {
    font-size: 20px;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    display: block;
    line-height: 1;
    cursor: pointer;
    background: none;
    padding: 0;
}

@media screen and (max-width:1100px) {

    .custom-modal>.wp-block-group__inner-container {
        padding: 20px;
        width: 90%;
    }

    .wp-block-buttons.close-wrap .close-modal a {
        font-size: 16px;
    }

}

/* ==============================

　　固定背景　サイズ適宜変更

============================== */


.img_parallax-wrap {
    position: relative;
    height: 470px;
}

.img_parallax {
    clip: rect(0, auto, auto, 0);
    margin-bottom: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.img_parallax.wp-block-image img {
    width: 100%;
    height: 101vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    object-fit: cover;
    z-index: 0;
    transform: translateZ(0);
}



/* ==============================

    タブ切り替え

============================== */
.wp-block-group.tab-list {
    gap: 0;
}

.is-layout-flex>.tab-item h2 {
    font-size: 20px;
}

.wp-block-group.tab-panel h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.is-layout-flex>.tab-item {
    cursor: pointer;
    padding: 6px 22px 9px;
    background: #eee;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s ease;
    margin-left: 8px;
}

.tab-item.active {
    background: black;
    color: #fff;
}

.wp-block-group.tab-content {
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #eee;
}

/* タブコンテンツのスタイル */
.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

