@charset "utf-8";
@media screen and (min-width:1500px){
    .tab-container {
        display: flex;
        justify-content: center;
        padding: 0px;
        flex-wrap: wrap;
        width: 1500px;
        margin: 0 auto;
    }

    .tab {
        padding: 10px 0px;
        width: 160px;
        background-color: #ddd;
        font-weight: bold;
        border-radius: 5px;
        text-decoration: none;
        color: black;
        border: 1px solid #ccc;
        text-align: center;
        transition: background-color 0.5s;
    }

    /* ホバー時のくすんだ色（アクティブではないタブに対して） */
    .tab[data-tab="1"]:hover:not(.active-tab) { background-color: #87cefa; }     /* くすんだ青 */
    .tab[data-tab="2"]:hover:not(.active-tab) { background-color: #c8a2c8; }     /* くすんだ紫 */
    .tab[data-tab="3"]:hover:not(.active-tab) { background-color: #f8c8dc; }     /* くすんだピンク */
    .tab[data-tab="4"]:hover:not(.active-tab) { background-color: #f08080; }     /* くすんだ赤 */
    .tab[data-tab="5"]:hover:not(.active-tab) { background-color: #ffcc99; }     /* くすんだオレンジ */
    .tab[data-tab="6"]:hover:not(.active-tab) { background-color: #ffffcc; }     /* くすんだ黄色 */
    .tab[data-tab="7"]:hover:not(.active-tab) { background-color: #cdecb0; }     /* くすんだ黄緑 */
    .tab[data-tab="8"]:hover:not(.active-tab) { background-color: #90ee90; }     /* くすんだ緑 */
    .tab[data-tab="9"]:hover:not(.active-tab) { background-color: #61f8f8; }     /* くすんだ緑 */

    /* 選択中のタブの色 */
    .tab.active-tab[data-tab="1"] { background-color: #0050ac; color: white; }
    .tab.active-tab[data-tab="2"] { background-color: #9002b4; color: white; }
    .tab.active-tab[data-tab="3"] { background-color: #8d0046; color: white; }
    .tab.active-tab[data-tab="4"] { background-color: #9c0000; color: white; }
    .tab.active-tab[data-tab="5"] { background-color: #c44b00; color: white; }
    .tab.active-tab[data-tab="6"] { background-color: #ac7500; color: white; }
    .tab.active-tab[data-tab="7"] { background-color: #0ea400; color: white; }
    .tab.active-tab[data-tab="8"] { background-color: #00761e; color: white; }
    .tab.active-tab[data-tab="9"] { background-color: #02788a; color: white; }

    .tab-content {
        display: none;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        margin-top: 20px;
        padding-top: 30px;
    }

    .tab-content.active {
        display: block;
        width: 1500px;
        margin: 0 auto;
        opacity: 1;
    }

}


@media screen and (max-width:1499px){
    .tab-container {
        display: flex;
        justify-content: center;
        padding: 0px;
        flex-wrap: wrap;
        width: 1200px;
        margin: 0 auto;
    }

    .tab {
        padding: 10px 0px;
        width: 130px;
        background-color: #ddd;
        font-weight: bold;
        border-radius: 5px;
        text-decoration: none;
        color: black;
        border: 1px solid #ccc;
        text-align: center;
        transition: background-color 0.5s;
    }

    /* ホバー時のくすんだ色（アクティブではないタブに対して） */
    .tab[data-tab="1"]:hover:not(.active-tab) { background-color: #87cefa; }     /* くすんだ青 */
    .tab[data-tab="2"]:hover:not(.active-tab) { background-color: #c8a2c8; }     /* くすんだ紫 */
    .tab[data-tab="3"]:hover:not(.active-tab) { background-color: #f8c8dc; }     /* くすんだピンク */
    .tab[data-tab="4"]:hover:not(.active-tab) { background-color: #f08080; }     /* くすんだ赤 */
    .tab[data-tab="5"]:hover:not(.active-tab) { background-color: #ffcc99; }     /* くすんだオレンジ */
    .tab[data-tab="6"]:hover:not(.active-tab) { background-color: #ffffcc; }     /* くすんだ黄色 */
    .tab[data-tab="7"]:hover:not(.active-tab) { background-color: #cdecb0; }     /* くすんだ黄緑 */
    .tab[data-tab="8"]:hover:not(.active-tab) { background-color: #90ee90; }     /* くすんだ緑 */
    .tab[data-tab="9"]:hover:not(.active-tab) { background-color: #61f8f8; }     /* くすんだ緑 */

    /* 選択中のタブの色 */
    .tab.active-tab[data-tab="1"] { background-color: #0050ac; color: white; }
    .tab.active-tab[data-tab="2"] { background-color: #9002b4; color: white; }
    .tab.active-tab[data-tab="3"] { background-color: #8d0046; color: white; }
    .tab.active-tab[data-tab="4"] { background-color: #9c0000; color: white; }
    .tab.active-tab[data-tab="5"] { background-color: #c44b00; color: white; }
    .tab.active-tab[data-tab="6"] { background-color: #ac7500; color: white; }
    .tab.active-tab[data-tab="7"] { background-color: #0ea400; color: white; }
    .tab.active-tab[data-tab="8"] { background-color: #00761e; color: white; }
    .tab.active-tab[data-tab="9"] { background-color: #02788a; color: white; }

    .tab-content {
        display: none;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        margin-top: 20px;
        padding-top: 30px;
    }

    .tab-content.active {
        display: block;
        width: 1200px;
        margin: 0 auto;
        opacity: 1;
    }

}

@media screen and (max-width:1299px){
    .tab-container {
        display: flex;
        justify-content: center;
        padding: 0px;
        flex-wrap: wrap;
        width: 900px;
        margin: 0 auto;
    }

    .tab {
        padding: 10px 0px;
        width: 90px;
        background-color: #ddd;
        font-weight: bold;
        border-radius: 5px;
        text-decoration: none;
        color: black;
        border: 1px solid #ccc;
        text-align: center;
        transition: background-color 0.5s;
    }

    /* ホバー時のくすんだ色（アクティブではないタブに対して） */
    .tab[data-tab="1"]:hover:not(.active-tab) { background-color: #87cefa; }     /* くすんだ青 */
    .tab[data-tab="2"]:hover:not(.active-tab) { background-color: #c8a2c8; }     /* くすんだ紫 */
    .tab[data-tab="3"]:hover:not(.active-tab) { background-color: #f8c8dc; }     /* くすんだピンク */
    .tab[data-tab="4"]:hover:not(.active-tab) { background-color: #f08080; }     /* くすんだ赤 */
    .tab[data-tab="5"]:hover:not(.active-tab) { background-color: #ffcc99; }     /* くすんだオレンジ */
    .tab[data-tab="6"]:hover:not(.active-tab) { background-color: #ffffcc; }     /* くすんだ黄色 */
    .tab[data-tab="7"]:hover:not(.active-tab) { background-color: #cdecb0; }     /* くすんだ黄緑 */
    .tab[data-tab="8"]:hover:not(.active-tab) { background-color: #90ee90; }     /* くすんだ緑 */
    .tab[data-tab="9"]:hover:not(.active-tab) { background-color: #61f8f8; }     /* くすんだ緑 */

    /* 選択中のタブの色 */
    .tab.active-tab[data-tab="1"] { background-color: #0050ac; color: white; }
    .tab.active-tab[data-tab="2"] { background-color: #9002b4; color: white; }
    .tab.active-tab[data-tab="3"] { background-color: #8d0046; color: white; }
    .tab.active-tab[data-tab="4"] { background-color: #9c0000; color: white; }
    .tab.active-tab[data-tab="5"] { background-color: #c44b00; color: white; }
    .tab.active-tab[data-tab="6"] { background-color: #ac7500; color: white; }
    .tab.active-tab[data-tab="7"] { background-color: #0ea400; color: white; }
    .tab.active-tab[data-tab="8"] { background-color: #00761e; color: white; }
    .tab.active-tab[data-tab="9"] { background-color: #02788a; color: white; }

    .tab-content {
        display: none;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        margin-top: 20px;
        padding-top: 30px;
    }

    .tab-content.active {
        display: block;
        width: 900px;
        margin: 0 auto;
        opacity: 1;
    }

}

@media screen and (max-width:959px){
    .tab-container {
        display: flex;
        justify-content: center;
        padding: 0px;
        flex-wrap: wrap;
        width: 500px;
        margin: 0 auto;
    }

    .tab {
        padding: 10px 0px;
        width: 160px;
        background-color: #ddd;
        font-weight: bold;
        border-radius: 5px;
        text-decoration: none;
        color: black;
        border: 1px solid #ccc;
        text-align: center;
        transition: background-color 0.5s;
    }

    /* ホバー時のくすんだ色（アクティブではないタブに対して） */
    .tab[data-tab="1"]:hover:not(.active-tab) { background-color: #87cefa; }     /* くすんだ青 */
    .tab[data-tab="2"]:hover:not(.active-tab) { background-color: #c8a2c8; }     /* くすんだ紫 */
    .tab[data-tab="3"]:hover:not(.active-tab) { background-color: #f8c8dc; }     /* くすんだピンク */
    .tab[data-tab="4"]:hover:not(.active-tab) { background-color: #f08080; }     /* くすんだ赤 */
    .tab[data-tab="5"]:hover:not(.active-tab) { background-color: #ffcc99; }     /* くすんだオレンジ */
    .tab[data-tab="6"]:hover:not(.active-tab) { background-color: #ffffcc; }     /* くすんだ黄色 */
    .tab[data-tab="7"]:hover:not(.active-tab) { background-color: #cdecb0; }     /* くすんだ黄緑 */
    .tab[data-tab="8"]:hover:not(.active-tab) { background-color: #90ee90; }     /* くすんだ緑 */
    .tab[data-tab="9"]:hover:not(.active-tab) { background-color: #61f8f8; }     /* くすんだ緑 */

    /* 選択中のタブの色 */
    .tab.active-tab[data-tab="1"] { background-color: #0050ac; color: white; }
    .tab.active-tab[data-tab="2"] { background-color: #9002b4; color: white; }
    .tab.active-tab[data-tab="3"] { background-color: #8d0046; color: white; }
    .tab.active-tab[data-tab="4"] { background-color: #9c0000; color: white; }
    .tab.active-tab[data-tab="5"] { background-color: #c44b00; color: white; }
    .tab.active-tab[data-tab="6"] { background-color: #ac7500; color: white; }
    .tab.active-tab[data-tab="7"] { background-color: #0ea400; color: white; }
    .tab.active-tab[data-tab="8"] { background-color: #00761e; color: white; }
    .tab.active-tab[data-tab="9"] { background-color: #02788a; color: white; }

    .tab-content {
        display: none;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        margin-top: 20px;
        padding-top: 20px;
    }

    .tab-content.active {
        display: block;
        width: 500px;
        margin: 0 auto;
        opacity: 1;
    }

}
@media screen and (max-width:559px){
    .tab-container {
        display: flex;
        justify-content: center;
        padding: 0px;
        flex-wrap: wrap;
        width: 280px;
        margin: 0 auto;
    }

    .tab {
        padding: 10px 0px;
        width: 90px;
        background-color: #ddd;
        font-weight: bold;
        border-radius: 5px;
        text-decoration: none;
        color: black;
        border: 1px solid #ccc;
        text-align: center;
        transition: background-color 0.5s;
    }

    /* ホバー時のくすんだ色（アクティブではないタブに対して） */
    .tab[data-tab="1"]:hover:not(.active-tab) { background-color: #87cefa; }     /* くすんだ青 */
    .tab[data-tab="2"]:hover:not(.active-tab) { background-color: #c8a2c8; }     /* くすんだ紫 */
    .tab[data-tab="3"]:hover:not(.active-tab) { background-color: #f8c8dc; }     /* くすんだピンク */
    .tab[data-tab="4"]:hover:not(.active-tab) { background-color: #f08080; }     /* くすんだ赤 */
    .tab[data-tab="5"]:hover:not(.active-tab) { background-color: #ffcc99; }     /* くすんだオレンジ */
    .tab[data-tab="6"]:hover:not(.active-tab) { background-color: #ffffcc; }     /* くすんだ黄色 */
    .tab[data-tab="7"]:hover:not(.active-tab) { background-color: #cdecb0; }     /* くすんだ黄緑 */
    .tab[data-tab="8"]:hover:not(.active-tab) { background-color: #90ee90; }     /* くすんだ緑 */
    .tab[data-tab="9"]:hover:not(.active-tab) { background-color: #61f8f8; }     /* くすんだ緑 */

    /* 選択中のタブの色 */
    .tab.active-tab[data-tab="1"] { background-color: #0050ac; color: white; }
    .tab.active-tab[data-tab="2"] { background-color: #9002b4; color: white; }
    .tab.active-tab[data-tab="3"] { background-color: #8d0046; color: white; }
    .tab.active-tab[data-tab="4"] { background-color: #9c0000; color: white; }
    .tab.active-tab[data-tab="5"] { background-color: #c44b00; color: white; }
    .tab.active-tab[data-tab="6"] { background-color: #ac7500; color: white; }
    .tab.active-tab[data-tab="7"] { background-color: #0ea400; color: white; }
    .tab.active-tab[data-tab="8"] { background-color: #00761e; color: white; }
    .tab.active-tab[data-tab="9"] { background-color: #02788a; color: white; }

    .tab-content {
        display: none;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        margin-top: 20px;
        padding-top: 20px;
    }

    .tab-content.active {
        display: block;
        width: 280px;
        margin: 0 auto;
        opacity: 1;
    }

}