/* ===== リセット ===== */
html, body {
    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;
    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; /* ビューポートの高さに合わせる */
}


/* ===== 本文 ===== */


#screen {
    flex: 1; /* ここが本文エリア */
    display: flex;
    flex-direction: column;
}

/* ===== ヘッダー一部 ===== */
.p-fv{
    width: 100%;
    height: 500px;
    background-image: url(../img/yusei1_sumrobo.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;
}



.inquiry-main {
    max-width: 1600px;
    margin: 20px auto;
    padding: 20px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.wtitle{
    height: 57px;
    width: auto;
    display: flex;    
    padding-top: 10px;
    margin-left: 10px;
    margin-bottom: 15px;

}

.ctitle {
    font-size: 31px;
    margin-top: 3px;
}

.inquiry-intro {
    max-width: 1600px;
    margin: 0px 20px auto;
}

.maillist{
    padding: 10px;
}

.maillist img {
    height: 150px;
    object-fit: cover; /* 画像のアスペクト比を維持 */
    border-radius: 8px; /* 角を丸く */
}

.inquiry-main1 {
    height: 300px;
    justify-content: space-around; /* 均等配置 */
    display: flex;
    margin-top: 15px;
}


.mtitle{
    font-size: 1.5rem;
    color: #004080; /* 濃いブルーの文字色 */
    margin-bottom: 10px;
    font-size: 27px;
    margin-top: 3px;
}

.inquiry-text-title {
    position: relative;
    display: block;   
    cursor: pointer;
    font-weight: bold;
    background-color: #9eedffa0;
    padding: 10px; 
}


.inquiry-text-title:hover,
.inquiry-text-title:focus {
    background-color: #9eedff;
}


.inquiry-text-title span {
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.inquiry-text-title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #333;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.inquiry-text-title:hover span::after {
    transform: scaleX(1) ease-in-out;
}

.copy-target-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #a7f2f8;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.copy-target-button:hover,
.copy-target-button:focus {
    background-color: #a7f2f8e0;
}


/* ===== 小画面対応 =====*/
@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) {

    .footer_plot{
        grid-template-columns: 1fr;  /* 1列にする */
        gap: 20px;
    }
}
