/* ===== リセット ===== */
html, body {
    font-family: sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
} 
/* ページ全体の余白をなくす */
* {
    box-sizing: border-box;
}

/* スプラッシュ画面 */
#splash {
    opacity: 0;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #589eff; 
    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;
    flex: 1;
    display: flex;
    flex-direction: column;
    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; /* ビューポートの高さに合わせる */
}



/* ===== 本文 ===== */


.main {
    min-height: 50%;
    position: relative;
    padding: 30px 0;
    box-sizing: border-box;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* ダークグレーの文字色 */
    flex: 1;
}

/* ===== ヘッダー一部 ===== */
.p-fv{
    width: 100%;
    height: 500px;
    background-image: url(../img/group-mech.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;
}




.c1title {
    font-size: 50px;
    margin-top: -12px;
}

.jom1{
    height: 50px;
    width: auto;
}

.wrapper1{
    margin: 10px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 10px;
    box-shadow: 2px 5px 7px rgba(0, 0, 0, 0.22);
}

.plot{
    margin-left: auto;
    margin-right: auto;
    width: 900px;
}

.plot a{
    text-decoration: none;
    color: #004080;
}

.plot-href{
    width: fit-content;
}

.plot-href span {
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.plot-href 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;
}

.plot-href:hover span::after {
    transform: scaleX(1);
}


.wrapper2{
    box-shadow: 2px 5px 7px rgba(0, 0, 0, 0.22);
    margin: 10px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 10px;
}

.csubt{
    font-size: larger;
}

.join-plot{
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.join-plot span{
    background: linear-gradient(transparent 70%, #ff99cc 0%);
}

.wrapper3{
    margin: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 10px;
    box-shadow: 2px 5px 7px rgba(0, 0, 0, 0.22);
}

.plot{
    width: 95%;
    margin: 0 auto;
}

.plot-content{
    width: 75%;
    margin: 10px auto;
}

.map-view{
    margin: 0 auto;
    justify-content: center;
    margin-bottom: 20px;
}

.map-view h4{
    text-align: center;
}

.map iframe{
    top: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.access-kiryu{
    padding: 0 10px;
    width: fit-content;
    background: #11a731;
    
    font-size: larger;
    border-radius: 5px;
}

.access-kiryu span {
    padding: 2px;
    color: #ffffff;
    text-decoration: none;
}

.access-plot{
    margin: 0 auto;
}

.access-content{
    width: 75%;
    margin: 50px auto;
}

.access-subtitle{
    width: fit-content;
}

.access-subtitle span{
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.access-subtitle 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;
}

.access-subtitle:hover span::after{
    transform: scaleX(1);
}

.access-subtitle p span{
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.access-subtitle p 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;
}

.access-subtitle:hover p span::after{
    transform: scaleX(1);
}


.red{
    color: red;
}

.access-title{
    width: 40%;
}

.access-title h3{
    font-size: larger;
    padding: 1rem 0;
    margin-bottom: 0.2rem;
    background-image: linear-gradient(90deg, #b2d5de 0 25%, #ddcfb3 25% 50%, #b3ddb4 50% 75%, #ddbab3 75%);
    background-repeat: no-repeat;
    background-size: 100% 0.3rem;
    background-position: bottom;
    color: #353535;
    font-weight: bold;
    font-size: 26px;
    text-align: center;
}

.announcement{
    margin: 30px auto;
}

/* ===== 小画面対応 =====*/
@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) {
    .access-kiryu{
        font-size:x-small
    }

    .join-plot{
        flex-direction: column;
        justify-content: center;
    }

    .join-plot-1{
        margin-bottom: 30px;
    }

    .footer_plot{
        grid-template-columns: 1fr;  /* 1列にする */
        gap: 20px;
    }
}