/* ===== ヘッダー全体 ===== */
header {
    background-color: #ffffff; /* 明るめのグレー背景 */
    font-family: "Helvetica Neue", Arial, sans-serif;
}



/* ===== 上段エリア ===== */
header .upper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
}

/* ロゴ＋タイトルのグループ */
header .upleft {
    display: flex;
    height: 75px;
    align-items: center;
    position: relative;
    padding-left: 20px;
}

header .upright {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ===== ナビゲーション ===== */
header nav.flex {
    background-color: #1c88dccd; /* 明るい水色背景 */
}

header .menu-pulldown-screen nav.flex {
    background-color: #009bffeb; /* 暗い水色背景 */
}

header .menu-pulldown-screen.open nav.flex {
    background-color: #009bffeb; /* 暗い水色背景 */
}

.title-div {
    width: 65%;
    margin-left: 10px;
}

.title {
    font-size: 1.2rem;
    color: #12ff59; /* 濃い青文字 */
    margin: 0;
    line-height: 1.2;
}


header .rogo,header .rogomenu {
    height: 60px;
    margin-right: 15px;
}

/* SNSアイコン */
header .Xrogo,
header .Inlogo {
    height: 30px;
}

header .upright div {
    padding-right: 20px;
}

header nav.flex ul {
    flex: 0;
    display: inline-flex; /* 横並び */
    list-style: none;
    width: 100%;
    height: 75px;
    margin: 0; /* 横余白消し */
    padding: 0; /* 横余白消し */
    font-weight: bold;
    z-index: 2000;
}

header nav.flex li {
    height: 75px;
    text-align: center; /* 中央揃え */
    align-items: center;
    align-content: center;
    position: relative; /* 子要素の絶対配置の基準 */
}

header nav.flex li > a {
    padding: auto;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}


header nav.flex li.rogo {
    width: 35%; /* ロゴ用に幅を固定 */
    height: 75px;
    text-align: center; /* 中央揃え */
    position: relative; /* 子要素の絶対配置の基準 */
}


header nav.flex li.SNSrogo {
    height: 75px;
    text-align: center; /* 中央揃え */
    position: relative; /* 子要素の絶対配置の基準 */
    margin-left: auto; /* 右寄せ */
}

header nav.flex li.menu-box-pulldown {
    width: 70px; /* ロゴ用に幅を固定 */
    height: 75px;
    position: relative; /* 子要素の絶対配置の基準 */
    justify-content: flex-end;
}


header nav.flex a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}

header nav.flex li:not([class]) ,.menu-list{
    right: auto;
    width: 12%; 
}

.menu-list{
    margin-left: auto; /* 右寄せ */
}

header nav.flex li:not([class]):hover,
header nav.flex li:not([class]):focus {
    background-color: #59a6e2cd;
    /* classのないliが色が変わる */
}

header .menu-pulldown-screen.open nav.flex li:not([class]),.menu-list:hover,
header .menu-pulldown-screen.open nav.flex li:not([class]),.menu-list:focus {
    background-color: #63d5ffc2;
    /* classのないliが色が変わる */
}

.p-fv_copy{
    height: 70px;
    width: auto;
    position: relative;
    justify-content: center;
    display: flex;
    z-index: 10;
    color: #ffffff;
    font-size: 70px;
    font-weight: bold;
    line-height: 1;
    margin: 160px auto;
}

/* -----fadein------ */
.fadein > div {
    opacity: 0;
    transform: translateY(30px);
}

/* フェードイン状態 */
.fadein > div.visible {
    opacity: 1;
    transform: translateY(0);
transition: opacity 0.5s 1s ease-in-out, transform 0.5s 1s ease-in-out;   /*0.5秒遅延でフェードイン */
}

/* -----fadein------ */

.jom2-re {
    height: 70px;
    margin-right: 5px;
}

#rogo-box {
    position: fixed;
    top: 20px;
    left: 20px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    z-index: 3000;
    transform: translateX(-130px); /* 隠す */
    transition: transform 0.3s ease;
}

/* 表示されたとき */
#rogo-box.show {
    transform: translateX(20px);
}

/* メニューアイコン ,detailのみ不具合で適応差違あり，詳しくはdetail.css*/
#menu-box {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 5px 0px;
    background-color: #63d5ffc2;
    border: solid 3px #63d5ff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    z-index: 3000;
    transform: translateX(80px); /* 隠す */
    transition: transform 0.3s ease;
}

#menu-box .bar {
    width: 70%;
    height: 6px;
    background: #ffffff;
    border-radius: 2px;
}

/* 表示されたとき */
#menu-box.show {
    transform: translateX(0);
}

#menu-box:hover,
#menu-box:focus {
    background-color: #63d5ff72;
    /* classのないliが色が変わる */
}


    /* Close buttun */

#menu-box-width-1222px {
    display: none;
}

.batsu {
    display: block;
    position: relative;
    width: 50px;
    height: 50px;
    padding: 10px 10px;
    border: solid 3px #ffffff;
    border-radius: 8px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    overflow-y: auto;
}

.batsu::before, .batsu::after { /* 共通設定 */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px; /* 棒の幅（太さ） */
    height: 30px; /* 棒の高さ */
    background: #ffffff;
    border-radius: 2px;
}

.batsu::before {
    transform: translate(-50%,-50%) rotate(45deg);
}

.batsu::after {
    transform: translate(-50%,-50%) rotate(-45deg);
}

.batsu:hover,
.batsu:focus {
    background-color: #63d5ffc2;
    /* classのないliが色が変わる */
}

#menu-box-close-h {
    display: none;
}

.menu-box-close-li {
    margin-right: 20px;
}

/* Close buttun end */

/* ===========================
上からスライドするメニューパネル
   =========================== */
.menu-pulldown-screen {
    position: fixed;
    top: 0;          /* 初期は画面外に隠す */
    left: 0;
    width: 100%;
    height: 75px;
    color: #fff;
    z-index: 3000;
    opacity: 0.5;
    transform: translateY(-75px); /* 初期は画面外 */
    transition:
        opacity 0.2s ease ,  /* delayあり */
        transform 0.2s ease 0.1s;
}

/* 開いた時 */
.menu-pulldown-screen.open {
    opacity: 1;
    transform: translateY(0);      /* 即表示位置へ */
    transition:
        opacity 0.2s ease 0.1s,
        transform 0.2s ease ;       /* delayあり */
}

.menu-pulldown-screen .menu-list ,
.menu-pulldown-screen.open .menu-list {
    height: 75px;
    width: 30%;
    text-align: center; /* 中央揃え */
    align-items: center;
    align-content: center;
    position: relative; /* 子要素の絶対配置の基準 */
}

#menu-box-pulldown {
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 5px 0px;
    border: solid 3px #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    overflow-y: auto;
}

#menu-box-pulldown .bar {
    width: 70%;
    height: 6px;
    background: #ffffff;
    border-radius: 2px;
}

#menu-box-pulldown:hover,
#menu-box-pulldown:focus {
    background-color: #63d5ffc2;
    /* classのないliが色が変わる */
}

.menu-void {
    width: 100%;
    height: 100%-75px;
    background: rgba(255, 255, 255, 0.434);
}


.link-plot1, .link-plot2, .link-plot3{
    margin: 0 auto ;
    width: fit-content;
}

.link-plot1 a{
    width: fit-content;
    text-decoration: none;
    color: #004080;
}

.link-plot1 span{
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.link-plot1 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;
}

.link-plot1:hover span::after{
    transform: scaleX(1);
}

.link-plot2 a{
    width: fit-content;
    text-decoration: none;
    color: #004080;
}

.link-plot2 span{
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.link-plot2 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;
}

.link-plot2:hover span::after{
    transform: scaleX(1);
}

.link-plot3 a{
    width: fit-content;
    text-decoration: none;
    color: #004080;
}

.link-plot3 span{
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.link-plot3 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;
}

.link-plot3:hover span::after{
    transform: scaleX(1);
}

/* ===== フッター ===== */

footer {
    width: 100%;
    background-color: #dff9ff;
}

.footer-logo{
    width: 10%;
    min-width: 150px;
    height: auto;
    margin: 0 auto;
}

.footer-logo-image{
    width: 100%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}

.footer-share{
    width: 25%;
    height: 30px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: 50px;
}

.footer-share-image{
    height: 30px;
    margin-bottom: 15px;
}

footer .footer_content {
    width: 60%;
    margin: 0   auto;
    padding-top: 10px;
    display: flex;
    justify-content: space-around;
}

footer .footer_content a {
    color: #004080;
    text-decoration: none;
    font-size: 1.2rem;
}

footer .footer_content a:hover {
    text-decoration: underline;
}

.footer_plot {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 25px;
    font-family: "Didact Gothic", sans-serif;
    gap: 10px;
}

footer .footer_copyright {
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 0;
    color: #666666; /* 中くらいのグレー文字 */
}

.footer_copyright a{
    color: #666666;
}


/* ===== 小画面対応 =====*/
@media (min-width: 1223px) {
    .menu-pulldown-1222px{
        display: none;
    }
}

@media (min-width: 1011px) {
    .menu-pulldown-screen-1010px{
        display: none;
    }
}

@media (min-width: 769px) {
    .menu-pulldown-768px{
        display: none;
    }

    .menu-pulldown-screen-768px{
        display: none;
    }
}

@media (min-width: 501px) {
    .menu-pulldown-500px{
        display: none;
    }

}

@media (max-width: 1222px) {
    /* ===== ヘッダー全体 ===== */

    .title-div {
        width: 250px;
        margin-left: 10px;
    }
    header nav.flex li.rogo {
    width: 65%; /* ロゴ用に幅を固定 */
    height: 75px;
    text-align: center; /* 中央揃え */
    position: relative; /* 子要素の絶対配置の基準 */
    }

    .br-another {
        display: none;
    }

    header nav.flex li:not([class]) {
        display: none;
    }

    header .menu-pulldown-1222px nav.flex {
        background-color: #1c89dcb5; /* 暗い水色背景 */
    }

    header .menu-pulldown-1222px.open nav.flex {
        background-color: #1c89dcb5; /* 暗い水色背景 */
    }

    

    /* メニューアイコン ,detailのみ不具合で適応差違あり，詳しくはdetail.css*/

    #menu-box-width-1222px {
        right: 20px;
        width: 50px;
        height: 50px;
        padding: 5px 0px;
        border: solid 3px #ffffff;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        cursor: pointer;
        overflow-y: auto;
    }

    #menu-box-width-1222px.open {
        display: none;
    }

    #menu-box-width-1222px .bar {
        width: 70%;
        height: 6px;
        background: #ffffff;
        border-radius: 2px;
    }

    #menu-box-width-1222px:hover,
    #menu-box-width-1222px:focus {
        background-color: #63d5ffc2;
    }

    #menu-box-close-h {
        display: none;
    }

    #menu-box-close-h.open {
        display: block;
    }

    
    .menu-box-close-h {
        margin-right: 20px;
    }


    /* ===========================
    上からスライドするメニューパネル
    =========================== */
    .menu-pulldown-1222px {
        position: absolute;
        top: 75px;                 /* 表示位置に常に置く */
        left: 0;
        width: 100%;
        height: 75px;
        color: #fff;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-150px); /* 初期は画面外 */
        transition:
            opacity 0.3s ease ,  /* delayあり */
            transform 0.3s ease 0.15s;
    }

    /* 開いた時 */
    .menu-pulldown-1222px.open {
        opacity: 1;
        transform: translateY(0);      /* 即表示位置へ */
        transition:
            opacity 0.3s ease 0.15s,
            transform 0.3s ease ;       /* delayあり */
    }


    .menu-pulldown-screen nav.flex ul {
        justify-content: right;
    }

    .menu-pulldown-screen .menu-list {
        height: 75px;
        width: 133px;
        text-align: center; /* 中央揃え */
        align-items: center;
        align-content: center;
        position: relative; /* 子要素の絶対配置の基準 */
    }

    .menu-pulldown-1222px nav.flex ul ,
    .menu-pulldown-1222px.open nav.flex ul {
        justify-content: right;
    }

    .menu-pulldown-1222px .menu-list ,
    .menu-pulldown-1222px.open .menu-list {
        height: 75px;
        width: 22%;
        text-align: center; /* 中央揃え */
        align-items: center;
        align-content: center;
        position: relative; /* 子要素の絶対配置の基準 */
    }

    .menu-list:hover,
    .menu-list:focus {
        background-color: #63d5ffc2;
        /* menu-listが色が変わる */
    }

    .menu-void {
        width: 100%;
        height: 100%-75px;
        background: rgba(255, 255, 255, 0.434);
    }
    
}

@media (max-width: 1010px) {
    .menu-pulldown-screen{
        display: none;
    }


    header .menu-pulldown-screen-1010px nav.flex {
        background-color: #009bffeb; /* 暗い水色背景 */
    }

    header .menu-pulldown-screen-1010px.open nav.flex {
        background-color: #009bffeb; /* 暗い水色背景 */
    }

    .menu-pulldown-screen-1010px {
        position: fixed;
        top: 0;          /* 初期は画面外に隠す */
        left: 0;
        width: 100%;
        height: 150px;
        color: #fff;
        z-index: 3000;
        opacity: 0.5;
        transform: translateY(-150px); /* 初期は画面外 */
        transition:
            opacity 0.2s ease ,  /* delayあり */
            transform 0.2s ease 0.1s;
    }

    /* 開いた時 */
    .menu-pulldown-screen-1010px.open {
        opacity: 1;
        transform: translateY(0);      /* 即表示位置へ */
        transition:
            opacity 0.2s ease 0.1s,
            transform 0.2s ease ;       /* delayあり */
    }

    .menu-pulldown-screen-1010px .menu-list ,
    .menu-pulldown-screen-1010px.open .menu-list {
        height: 75px;
        width: 30%;
        text-align: center; /* 中央揃え */
        align-items: center;
        align-content: center;
        position: relative; /* 子要素の絶対配置の基準 */
    }
}

@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) {
    .menu-pulldown-1222px{
        display: none;
    }

    
    .menu-pulldown-screen-1010px{
        display: none;
    }

    .br-another {
        display: block;
    }

    /* ===========================
    上からスライドするメニューパネル
    =========================== */

    .menu-pulldown-768px {
        position: absolute;
        top: 75px;                 /* 表示位置に常に置く */
        left: 0;
        width: 100%;
        height: 75px;
        color: #fff;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-300px); /* 初期は画面外 */
        transition:
            opacity 0.3s ease ,  /* delayあり */
            transform 0.3s ease 0.15s;
    }

    /* 開いた時 */
    .menu-pulldown-768px.open {
        opacity: 1;
        transform: translateY(0);      /* 即表示位置へ */
        transition:
            opacity 0.3s ease 0.15s,
            transform 0.3s ease ;       /* delayあり */
    }

    .menu-pulldown-768px nav.flex ul ,
    .menu-pulldown-768px.open nav.flex ul {
        justify-content: right;
    }

    .menu-pulldown-768px .menu-list ,
    .menu-pulldown-768px.open .menu-list {
        height: 75px;
        width: 50%;
        text-align: center; /* 中央揃え */
        align-items: center;
        align-content: center;
        position: relative; /* 子要素の絶対配置の基準 */
    }
    
    .menu-pulldown-screen{
        display: none;
    }


    header .menu-pulldown-screen-768px nav.flex {
        background-color: #009bffeb; /* 暗い水色背景 */
    }

    header .menu-pulldown-screen-768px.open nav.flex {
        background-color: #009bffeb; /* 暗い水色背景 */
    }

    .menu-pulldown-screen-768px {
        position: fixed;
        top: 0;          /* 初期は画面外に隠す */
        left: 0;
        width: 100%;
        height: 225px;
        color: #fff;
        z-index: 3000;
        opacity: 0.5;
        transform: translateY(-225px); /* 初期は画面外 */
        transition:
            opacity 0.2s ease ,  /* delayあり */
            transform 0.2s ease 0.1s;
    }

    /* 開いた時 */
    .menu-pulldown-screen-768px.open {
        opacity: 1;
        transform: translateY(0);      /* 即表示位置へ */
        transition:
            opacity 0.2s ease 0.1s,
            transform 0.2s ease ;       /* delayあり */
    }

    .menu-pulldown-screen-768px .menu-list ,
    .menu-pulldown-screen-768px.open .menu-list {
        height: 75px;
        width: 50%;
        text-align: center; /* 中央揃え */
        align-items: center;
        align-content: center;
        position: relative; /* 子要素の絶対配置の基準 */
    }

    .footer_plot{
        grid-template-columns: 1fr;  /* 1列にする */
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .menu-pulldown-768px{
        display: none;
    }

    .br-another {
        display: block;
    }

    .upleft .title-div {
        width: 150px;
        margin-left: 10px;
    }

    .l-container .p-fv nav.flex ul li.SNSrogo{
        display: none;
    }

    header .menu-pulldown-500px .upright{
        justify-content: center;
    }

    header .menu-pulldown-500px .upright .xrogo-500 {
        margin-right: 10px;
    }

    .menu-box-width-1222px {
        margin-left: auto;
    }

    header nav.flex li.rogo {
        width: 80%;
        height: 75px;
        text-align: center;
        position: relative;
    }

    /* ===========================
    上からスライドするメニューパネル
    =========================== */

    .menu-pulldown-500px {
        position: absolute;
        top: 75px;                 /* 表示位置に常に置く */
        left: 0;
        width: 100%;
        height: 225px;
        color: #fff;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-375px); /* 初期は画面外 */
        transition:
            opacity 0.3s ease ,  /* delayあり */
            transform 0.3s ease 0.15s;
    }

    /* 開いた時 */
    .menu-pulldown-500px.open {
        opacity: 1;
        transform: translateY(0);      /* 即表示位置へ */
        transition:
            opacity 0.3s ease 0.15s,
            transform 0.3s ease ;       /* delayあり */
    }

    .menu-pulldown-500px nav.flex ul ,
    .menu-pulldown-500px.open nav.flex ul {
        justify-content: right;
    }

    .menu-pulldown-500px .menu-list ,
    .menu-pulldown-500px.open .menu-list,
    .menu-pulldown-500px .SNSrogo ,
    .menu-pulldown-500px.open .SNSrogo {
        height: 75px;
        width: 50%;
        text-align: center; /* 中央揃え */
        align-items: center;
        align-content: center;
        position: relative; /* 子要素の絶対配置の基準 */
    }
}

@media (max-width: 390px) {
    header .l-container .rogo,header .l-container .rogomenu {
        height: 50px;
    }

    header nav.flex a {
        display: block;
        color: #ffffff;
        text-decoration: none;
        font-size: 0.85rem;
    }
}