@charset "UTF-8";

/* モーダルのスタイル */
#myModal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* 初期状態で非表示 */
}

#myModal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 閉じるボタン */
#closeModal {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* 矢印のスタイル */
.arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* 画像のホバーエフェクト */
.defaultImage {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.defaultImage img {
    max-width: 100%;
    transition: filter 0.3s ease;
}

/* ホバー時に画像を暗くする */
.defaultImage:hover img {
    filter: brightness(50%);
}

/* ホバー時に表示されるテキスト */
.defaultImage::after {
    content: "クリックで画像を表示します";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.defaultImage:hover::after {
    opacity: 1;
}

/* モーダル内の画像 */
.modal-image {
    max-width: 100%;
    height: auto;
}

.warning {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}
.notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}
