/* ===== リセット ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロール防止 */
    display: flex;
    flex-direction: column;
} 
/* ページ全体の余白をなくす */
* {
    box-sizing: border-box;
}

/* スプラッシュ画面 */
#splash {
    opacity: 0;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #1383dc;
    display: flex;
    justify-content: center;
    align-items: center;
   z-index: 9999;  /*最前面に  */
}
#splash.show {
    opacity: 1;
}

.splash-text {
    font-size: 6vw;
    color: #333;
    opacity: 0;
    animation: fadeInOut 3s ease forwards;
}

 /* フェードイン→表示→フェードアウト  */
@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateY(20px); }
    20%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* 本サイトは最初非表示にしておく  */
#main-content {
    opacity: 1;
    transition: opacity 1s ease;
}
#main-content.show {
    opacity: 1;
    display: block;
}

#main-content{
    flex: 1;
    display: flex;
    position: relative;
    flex-direction: column;
    min-height: 100vh; /* ビューポートの高さに合わせる */
}

/* ===== ヘッダー一部 ===== */
.p-fv{
    width: 100%;
    height: 500px;
    background-image: url(../img/bunaitaikai_1.webp);
    background-color:rgba(255, 255, 255, 0);
    background-blend-mode:lighten;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
}

.p-fv::before {
    content: "";
    width: 100%;
    height: 85%;
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    top: 75px;
    left: 0;
}

/* ===== メインコンテンツ =====*/

.contents{
    background-color: white;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.main-usage{
    width: 50%;
    margin: 0 auto;
}

.main-usage h2{
    font-family: sans-serif ;
}

.main-usage h3{
    font-size: large;
}

/* ===== 内容 ===== */

.wrapper-plot{
    margin: 30px 0;
}

.wrapper-plot ul{
    margin-top: 30px 0;
    line-height: 2rem;
}

.wrapper-title{
    margin-left: 1%;
}

.wrapper-image{
    width: 90%;
    margin: 0 auto;
}

.wrapper-image-ex{
    max-width: 100%;
    margin-bottom: 20px;
}

.wrapper-link{
    width: fit-content;
    padding: 0.5rem 1.5rem;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}

.wrapper-link a{
    width: fit-content;
    font-size: large;
    text-decoration: none;
    color: #004080;
}

.wrapper-link span{
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.wrapper-link span::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #004080;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.wrapper-link:hover span::after{
    transform: scaleX(1);
}



/* ===== 小画面対応 ===== */
@media (max-width: 1200px) {
    .sp-container{
        width: 100%;
        margin: 20px auto;
        padding: 0 15px;
    }
    
}

/* ===== 小画面対応 =====*/
@media (max-width: 1000px) {
    .footer-content{
        flex-direction: column;
    }

    .footer-plot{
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);  /* 2カラム */
        justify-items: center;
        gap: 30px 40px; 
    }
    
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
    header .upper {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-usage{
        width: 95%;
    }

    .sp-summary{
        width: 95%;
        margin: 10px auto;
        margin-bottom: 50px;
    }

    .sp-container{
        width: 95%;
        margin: 15px auto;
        padding: 0 10px;
    }

    .spon-list{
        flex-direction: column;
        height: auto;
        width: 100%;
        margin-bottom: 20px;
    }

    .spon-card {
        width: 99%;
        aspect-ratio: 17/7;
    }

    .spon-logo{
        width: 90%;
        max-height: auto;
    }

    .footer-plot{
        grid-template-columns: 1fr;  /* 1列にする */
        gap: 20px;
    }
}