@charset "UTF-8";
/* modal.css */


* {
        box-sizing: border-box;
    }

    body {
        font-family: "Arial", sans-serif;
    }
    h1{
        font-size: 24px;
    }
    h2{
        font-size: 18px;
    }

    /* ボタン */
    .open-btn {
        /*background-color: #f7d96b;
        color: #5b370d;
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
        font-weight: bold;
        border: none;
        border-radius: 10px;*/
        cursor: pointer;
        /*transition: background-color 0.3s ease;
        margin: 16px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
		transition: all .3s linear;
    }

    .open-btn:hover {
       /* background-color: #dfbb36;*/
	   opacity: 0.7;
    }

    .close-btn {
        position: absolute;
		z-index: 10;
        top: 10px;
        right: 15px;
        font-size: 1.6rem;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    /* モーダル背景 */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0, 0.8);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    /* モーダル表示状態 */
    .modal.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    /* モーダルの中身*/
    .modal-content {
        background: #fff;
       /* padding: 1rem;
        border-radius: 10px;*/
        width: 80vw;
        max-width: 1400px;
		max-height: 90vh;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        position: relative;
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.3s ease;
		overflow-y: scroll;
    }

    /* アニメーション*/
    .modal.active .modal-content {
        animation: fadeInScale 0.4s ease forwards;
    }

    @keyframes fadeInScale {
        0% {
            opacity: 0;
            transform: scale(0.8);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }