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

/* スクロールを無効にするためのクラス */
.no-scroll {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #151515;
    font-size: 18px;
}

.yontan01 {
    width: 30%;
    height: auto;
}

#welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF0D7;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 1s ease-in-out;
}

#welcome-modal.slide-out {
    transform: translateY(-120%);
}

#con01 {
    font-size: 0;
    margin-top: 0;
}

#slideshow01 {
    position: relative;
    margin: auto;
    overflow: hidden;
    height: 100vh;
}

#slideshow01 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#slideshow01 img.active {
    opacity: 1;
}

.slideshow01-text {
    width: 100%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    font-weight: 300;
    text-align: center;
    z-index: 50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.con01-1 {
    position: absolute;
    width: 50px;
    height: 120px;
    z-index: 50;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%);
    background-color: hsla(0,0%,100%,0.70);
    border-radius: 100px;
    color: #FFFFFF;
}

.yajirusi {
    font-family: "M PLUS 2", sans-serif;
    font-size: 50px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    position: absolute; /* 親要素を基準に位置を調整 */
    opacity: 0; /* 透明度も0から開始 */
}

/* 最初の一度だけ実行されるスライドダウンアニメーション */
@keyframes slideDown {
    0% {
        transform: translateY(-100px);
        opacity: 0; /* 透明度も0から開始 */
    }
    50% {
        transform: translateY(40px);
        opacity: 1; /* 透明度も1で終了 */
    }
    100% {
        transform: translateY(0);
    }
}

/* 繰り返し実行される上下バウンドアニメーション */
@keyframes arrowBounce {
    0%, 10%, 100% {
        transform: translateY(0);
    }
    55% {
        transform: translateY(40px); /* 下に50px移動 */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#con01-1-animation {
    opacity: 0; /* 最初は非表示 */
    transition: opacity 1s; /* 透明度の変化にアニメーションを適用 */
}

.fade-in {
    animation: fadeIn 1s forwards;
}

.slide-in {
    animation: slideIn 1s forwards;
}

#con02 {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#con02 h2 {
    font-family: "M PLUS 2", sans-serif;
    font-size: 1.5rem;
    border-bottom: 2px solid #EFB754;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#con02 ul {
    list-style: none;
}

#con02 li {
    margin-bottom: 10px;
}

#con02 a {
    color: #007bff;
    text-decoration: none;
}

#con02 a:hover {
    text-decoration: underline;
}

#con03 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto;
}

.con3_box1,
.con3_box2,
.con3_box3,
.con3_box4 {
    font-family: "M PLUS 2", sans-serif;
    height: 200px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 50px;
    color: #FFFFFF;
}

.con3_box1 {
    background-image: url('asset/top/photo/miyako_totogasaki.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
}

.con3_box2 {
    background-image: url('asset/top/photo/shimonoseki_bishanohana.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
}

.con3_box3 {
    background-image: url('asset/top/photo/kushimoto_shionomisaki.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
}

.con3_box4 {
    background-image: url('asset/top/photo/oma_omazaki02.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
}

#con04 {
    position: relative; /* 子要素の配置基準にする */
    text-align: center;
    max-width: 1000px;
    border-top: 4px dotted #FFC76A;
    margin: auto;
}

.yontan_rally_image {
    margin-top: 30px;
    width: 100%;
    border-radius: 10px;
}

.yontan_rally {
    margin: 0;
    position: absolute; /* 親要素を基準に配置 */
    top: 50%; /* 親要素の上から50%の位置 */
    left: 50%; /* 親要素の左から50%の位置 */
    transform: translate(-50%, -50%); /* 要素自体の幅と高さを考慮して中央に移動 */
    z-index: 100;
    color: #FFFFFF;
    font-family: "M PLUS 2", sans-serif;
    font-size: 60px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
    width: 60%;
}

#footer {
    background-color: #FFF0D7;
    height: 50px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 100;
}
