@charset "UTF-8";
/* CSS Document */

/* モーダル表示中は背景スクロールを固定 */
.no-scroll {
    overflow: hidden;
}
.modalBtn-close {
    background-color: #6c757d;
}

/* ＝＝＝ モーダルの背景（オーバーレイ） ＝＝＝ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100dvh;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 初期状態は非表示（フェードアニメーション用） */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

/* モーダルが開いた時の状態 */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ＝＝＝ モーダル本体 ＝＝＝ */
.modal-container {
    background-color: #fff;
    width: 90%;
    max-width: 1300px;
    border-radius: var(--br30);
    position: relative; /* 右上ボタンの配置基準 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* 少し下からフワッと浮き上がるアニメーション */
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* ＝＝＝ 右上の閉じるボタン ＝＝＝ */
.modal-close-top {
	position: absolute;
	top: -62px;
	right: 0px;
	width: 56px;
	height: 56px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.modal-close-top::before,
.modal-close-top::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 70px;
	height: 2px;
	background: #fff;
	border-radius: 999px;
	transform-origin: center;
	transition: .3s;
}

.modal-close-top::before {
	transform: translate(-50%, -50%) rotate(28deg);
}

.modal-close-top::after {
	transform: translate(-50%, -50%) rotate(-28deg);
}

/* ＝＝＝ モーダル内の各エリアの余白 ＝＝＝ */
.modal-body {
    margin: 40px 10px;
    padding-inline: 50px;
    max-height: calc(80vh - 105px);
    overflow-y: auto;
}
.modal-header {
    padding: 20px;
    color: var(--colorWhite);
    background-color: var(--colorMainGreen);
    text-align: center;
    border-radius: 30px 30px 0 0 ;
}
.modalTit {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: .2rem;
}
.modalSubTit {
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}
.modalreadBox {
    margin-bottom: 25px;
}
.modalreadTxtBox {
    display: flex;
}
.modalreadBox .readMainTit {
    font-size: 1.6rem;
    font-weight: 700;
}
.modalNumber {
    min-width: 32px;
}
.modalWalkColorGrey {
    font-size: 1.5rem;
    font-weight: 700;
    width: fit-content;
    padding: 3px 15px;
    margin-block: 5px;
    color: #fff;
    width: fit-content;
    border-radius: 30px;
    background-color: var(--colorGrey50);
}

/* ＝＝＝ モーダル閉じるボタン ＝＝＝ */
.modal-footer {
    font-size: 1.8rem;
    font-weight: 600;
    background-color: var(--colorMainOrange);
    color: var(--colorWhite);
    width: fit-content;
    border-radius: 30px;
    margin: 40px auto 0;
}
.modal-footer button {
    padding: 10px 40px;
}



@media screen and (max-width:812px){
	/* ＝＝＝ モーダル本体 ＝＝＝ */

    .modal-container {
        background-color: #fff;
        width: 90%;
        max-width: 100%;
        border-radius: var(--br20);
    }
    .modal-body {
        margin: 20px 6px;
        padding-inline: 14px;
        max-height: calc(80vh - 105px);
        overflow-y: auto;
    }
    /* ＝＝＝ 右上の閉じるボタン ＝＝＝ */
    .modal-close-top {
        top: -50px;
    }

    .modal-close-top::before,
    .modal-close-top::after {
        width: 45px;
    }
    /* ＝＝＝ モーダル内の各エリアの余白 ＝＝＝ */
    .modal-header {
        padding: 10px;
        border-radius: 20px 20px 0 0 ;
    }
    .modalSubTit {
        font-size: 1.4rem;
        text-align: justify;
        margin-bottom: 10px;
    }
    .modalreadBox .readMainTit {
        font-size: 1.3rem;
    }
    .modalreadBox {
        margin-bottom: 15px;
    }
    .modalTit {
        font-size: 1.8rem;
    }
    .modalNumber {
        min-width: 26px;
    }
    .modalWalkColorGrey {
        font-size: 1.3rem;
        padding: 2px 10px;
    }

    /* ＝＝＝ モーダル閉じるボタン ＝＝＝ */
    .modal-footer {
        font-size: 1.6rem;
        margin: 15px auto 0;
    }
}

@media (any-hover: hover){
    .modalBtn-close:hover {
        background-color: #5a6268;
    }
     .modal-close-top:hover {
        opacity: .7;
    }
}