/*main.cssより移動*/
/* header{
    margin-bottom: 30px;
} */
/*
header p {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.075em;
    margin-top: -0.5em;
    color: #004b96;
} */

/* Header */

/* #header {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    padding: 1em 0 0.5em 0;
    position: relative;
} */

/* .seavlogo {
    width: 90px;
    margin-bottom: -4px;
} */

#header>* {
    -moz-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-bottom: 0;
}

/* #header .logo {
    border-bottom: 0;
    color: inherit;
    font-family: "Roboto Slab", serif;
    font-size: 1.5em;
    margin: 0;
}

#header .icons {
    text-align: right;
}

.tvbox {
    float: right;
    margin: 0px;
}

.tvlogo {
    width: 112px;
    float: right;
    margin-top: 7px;
} */

/* @media screen and (max-width: 1680px) {

    #header {
        padding-top: 1.5em;
    } */

/*     .seavlogo {
        width: 120px;
        margin-bottom: -4px;
    }

    #header .logo {
        font-size: 1.4em;
        margin: 0;
        white-space: nowrap;
    }
}

@media screen and (max-width: 736px) {

    #header {
        padding-top: 1.2em;
        padding-left: 3em;
    }

    .seavlogo {
        width: 80px;
        margin-bottom: -4px;
    }

    #header .logo {
        font-size: 1.25em;
        margin: 0;
    }

    #header .icons {
        height: 5em;
        line-height: 5em;
        position: absolute;
        right: -0.5em;
        top: 0;
    }
}*/

@media screen and (max-width: 480px) {

    #header {
        padding: 0;
    }
/*
    .seavlogo {
        width: 45px;
        margin-bottom: -3px;
    }

    #header .logo {
        font-size: 0.9em;
        margin: 0;
    }

    #header .icons {
        height: 5em;
        line-height: 5em;
        position: absolute;
        right: -0.5em;
        top: 0;
    }

    .tvbox {
        width: 0px;
        float: right;
        margin: 0;
        padding: 0;
    }

    .tvlogo {
        display: none;
    } */
}
/* /*+ h1とTempoVisorロゴ*/
/*見出し１・２(TVロゴ下)フォントサイズ
#header h1,
.pa-left20 {
    font-size: 30px;
}

/**ロゴを右端、縦の中央
#header {
    text-align: right;
    margin-top: 7px;
}

/** 見出し１を左端に
#header h1 {
    text-align: left;
}

#header div a {
    display: inline;
    padding: 0;
    margin: 0;
    /*クリック範囲を画像のみに１
}

/** TVロゴサイズ
#header div img {
    width: 112px;
    height: 28px;
    line-height: 28px;
    display: inline-block;
    /*クリック範囲を画像のみに２
} */

/* #header{
    margin-bottom: 0;
}

#header h1 {
    width: 100%;
    display: flex;
    align-items: center;/*TVロゴ縦中央
} */

/** TVロゴサイズ（クリック範囲指定）*/
/* #header .tvbox img {
    display: inline-block;
    width: 20%;
} */


/*ここから村上が記載----------------------------------------*/
/* --- コンテンツが潜り込まないようにbodyに余白を入れる --- */
body {
    /* ヘッダーの高さに合わせて調整してください */
    /* header_top(約60px) + header_bottom(約50px) ＝ 110px前後 */
    padding-top: 110px;
}

/*////////////////////////////////////////
header 上部青色部分
////////////////////////////////////////*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 800; /* 他の要素より上に表示 */
}
.header_top{
    display: block;
    text-align: right;
    background-color: #000080;
    padding: 20px 30px;
}
/*テンポバイザー文字*/
header h1{
    display: inline-block;
    color: #fff;
    line-height: 1.2;
}
header h1 a{
    border-bottom: #000080 1px solid;
}
/*テンポバイザー文字　ホバー設定*/
header h1 a:hover {
    color: #fff;
    border-bottom: #e4006e 1px solid;
}
/*ユーザーガイド文字*/
header span{
    font-size: medium;
    margin: 0 0 0 10px;
}

/*//////////////////////////////////////////
header nav部分（背景ピンク）
//////////////////////////////////////////*/
/*main css 打消し*/
header ul li{
    padding: 0;
}
header ul{
    margin: 0;
}
/*背景色*/
.header_bottom{
    background-color: #e4006e;
}
/*nav部分　横並び*/
header nav ul{
    display: flex;
    width: auto;
    font-weight: 600;
    justify-content:center;
    padding: 0;
    margin: 0 auto;
}
header nav ul li{
    /*width: 300px;*/
    width : calc(100% / 3);
    text-align: center;
    padding: 0;
    border-left: #6c7175 0.5px solid;
}
header nav ul li span,
header .header_top{
    color: #fff;
}
header nav ul li a{
    display: block;
    width: 100%;
    height: auto;
    color: #fff;
    border-bottom: 1.5px solid transparent;/*ホバー時に要素の高さ合わせる*/
    border-bottom: none;
    padding: 15px 0;
    box-sizing: border-box;
    text-align: center;
}
header nav ul li a span{
    position: relative;
    display: inline-block;
    line-height: 1.2;
}
/*ホバー時*/
header nav ul li a:hover{
    color: #fff;
    background-color: #fe77b8;
}
/* ホバー時に動く線を作る */
header nav ul li a span::after {
    content: "";
    position: absolute;
    bottom: 0;      /* ★ここで下からの位置を自由に指定 */
    left: 0;        /* 線の長さを調整したい場合 */
    width: 100%;       /* 線の長さを調整したい場合 */
    height: 1.5px;
    background-color: #fff;
    display: none;    /* 通常時は消す */
}
header nav ul li a:hover span::after{
    display: block;   /* ホバー時だけ出す */
    text-align: center;
}
header .h_nav_list{
    background-color: #e4006e;
}
header .tab-btn {
    background-color: inherit;
    cursor: pointer;
    font: inherit;
}

/*//////////////////////////////////////////
header nav 下層 切り替えコンテンツ部分
//////////////////////////////////////////*/

/* 切り替えコンテンツの初期状態///////////// */
header .tab-content {
    display: none;
    background-color: #E5EFFD;
    /* アニメーションの準備 */
    opacity: 0;
    transform: translateY(-10px); /* 少し上に浮かせておく */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* 下層表示された時の状態 //////////////////*/
/* display:noneとアニメーションを共存させるための工夫 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*表示中（active）*/
header .tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0); /* 定位置に降りてくる */
    animation: fadeInDown 0.4s ease forwards; /* 0.4秒かけてふわっと出す */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10; /* 他の要素より上に表示 */
}
/* 表示中（active）の tab-btn　リスト項目 */
header .header_bottom nav ul li a.tab-btn.active-btn {
    width: auto;
    background: #fff; /* ← ▼ 切り替えコンテンツ表示中のtab-btn色 */
    color: #e4006e;/* ← ▼ 切り替えコンテンツ表示中のtab-btn色 */
}
/* 文字だけでなく、中のspanも強制的に色を変える（念のため） */
header .header_bottom nav ul li a.tab-btn.active-btn span {
    color: #e4006e !important;
}
header nav ul li.active-li {
    background-color: #fff; /* ← ▼ 切り替えコンテンツ表示中の色 */
    color: #e4006e; /* ← ▼ 切り替えコンテンツ表示中の色 */
}
/* 切り替えコンテンツ　背景：薄水色部分　の横並び設定*/
header .tab_c_flex{
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 3px;
}
/*レスポンシブ時のみ改行　通常時改行なし*/
.sp_only_br{
    display: none;
}


@media screen and (min-width: 1530px) {
    header{
        padding-left: 350px;/*サイドバー表示のため余白*/
    }
}
@media screen and (min-width: 1409px) and (max-width: 1530px){
    .header_top{
        padding: 20px 80px;/*サイドバーのハンバーガーメニュー表示のため余白*/
    }
}
@media screen and (max-width: 935px) {
    body {
    /* ヘッダー固定のため　高さに合わせて調整 */
    /* header_top(px) + header_bottom(px) ＝  */
    padding-top: 150px;
    }
    #banner{
        padding: 3em 0 4em 0;
    }
    /*テンポバイザー　文字*/
    header h1 {
        display: block; /* 横幅いっぱいを使い、改行を許容する */
        text-align: right; /* 右寄せを維持（header_topの設定に合わせる） */
    }
    header h1 strong {
        display: block; /* ここで強制的に改行させる */
    }
    /*ユーザーガイド　文字*/
    header span {
        display: block;  /* 下の行として表示 */
        font-size: 0.6em; /* ユーザーガイドの文字を少し小さくしてバランス調整 */
        margin: 5px 0 0 0; /* 左マージンを消し、上の余白を微調整 */
    }
    /*背景ピンク部分　文字サイズ*/
    header .header_bottom span{
        font-size: 0.9em;
    }
}
@media screen and (max-width: 530px) {
    /*幅530以下のみ改行させる*/
    .sp_only_br{
        display: block;
    }
    /*header固定のため　上部余白調整*/
    body {
    /* ヘッダーの高さに合わせて調整してください */
    /* header_top(px) + header_bottom(px) ＝  */
    padding-top: 130px;
}
}
