@charset "UTF-8";
/* CSS Document */

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    font-family: "Zen Maru Gothic", sans-serif, "メイリオ", "Meiryo";
    font-size: 1rem;
}

* {
    box-sizing: border-box;
    /*余白や線を幅や高さに含める*/
}

a {
    display: block;
}

/* SPメニューを隠す */
.sp-logo,
.sp-nav {
    display: none;
}

/* スマホ改行 */
.pc-br {
    display: block;
    /* PCを改行して */
}

.br-sp {
    display: none;
}


/* 余白チェック */
/* * {
    outline: 2px solid rgb(114, 114, 203);
} */

img {
    max-width: 100%;
    display: block;
}


/* nav menu */
header {
    height: 130px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #fff;
}

h1 {
    margin-right: 8%;
}

h1 a:hover {
    opacity: 0.7;
}

.menu-item a:hover {
    color: #f6bab2;
}

.nav {
    display: flex;
    height: 100%;
    margin-left: 1%;
    align-items: center;
    justify-content: space-around;
}

.nav-logo,
.menu-wrap {
    display: flex;
    align-items: center;
}

.menu-title {
    margin-left: 1%;
    margin-right: 1%;
    width: 230px;
}

.menu-wrap {
    display: flex;
    text-align: center;
    align-items: center;
}

.menu-item {
    width: 220px;
}

.menu-item img {
    margin: 0 auto;
    padding: 1% 0 1%;
    width: auto;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;

}

.menu-item p {
    padding-top: 3%;
    margin-bottom: 3%;
    font-size: 1.1rem;
    font-weight: 500;
}


/* ボタンデザイン */

.nav-btn {
    margin-left: 5%;
    width: 240px;
}

.btn {
    margin: 2% 0 2%;
}

.btn_01 {
    width: 240px;
    padding: 16px 0 18px 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    text-align: center;
    display: block;
    margin: 0 auto;
    color: #fff;
    background: #4ea3d8;
    line-height: 1;
    border-radius: 50px;
    transition: all .2s;
    border: 2px solid #4ea3d8;
}

.btn_01:hover {
    background-color: #fff;
    border-color: #f6bab2;
    color: #f6bab2;
}


.btn_02 {
    width: 240px;
    padding: 14px 0 12px 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    text-align: center;
    display: block;
    margin: 0 auto;
    color: #4ea3d8;
    background: #fff;
    line-height: 1;
    border-radius: 50px;
    transition: all .2s;
    border: 2px solid #4ea3d8;
}

.btn_02:hover {
    background-color: #f6bab2;
    border-color: #f6bab2;
    color: #fff;
}


.material-symbols-outlined {
    display: inline-flex;
    vertical-align: text-top;
}

/* sp ハンバーガーメニュー */
.sp-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* 初期状態では画面の外に隠れている */
    width: 300px;
    height: 100%;
    background-color: #cbebf5;
    color: #333;
    transition: right 0.3s ease;
    /* スライドインのアニメーション */
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
    overflow: auto;
}

/* メニューが開いているとき */
.sp-nav.open {
    right: 0;
}

/* ボタンのスタイル */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 20;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* メニューリストのスタイル */
.sp-nav ul {
    font-weight: 500;
    padding: 0;
    margin-top: 80px;
}

.sp-nav li {
    padding: 20px 0;
    border-bottom: 1px solid #444;
}

.sp-nav li a {
    color: #333;
    text-decoration: none;
    display: block;
}

/* 各教科別リンク */
.sp-menu-link summary {
    font-weight: 500;
    cursor: pointer;
    color: #333;
    display: block;
    list-style: none;
}

.menu-link-title summary::-webkit-details-marker {
    display: none;
}


.sp-menu-link summary::after {
    content: '＋';
    margin-left: 2%;
    display: inline-block;
    transition: transform 0.2s;
}

.sp-menu-link[open] summary::after {
    content: 'ー';
    transform: rotate(360deg)
}

ul .sp-link {
    margin-top: 15px;
}

.sp-link li {
    padding: 10px;
    border-bottom: 1px dotted #999;
}

.sp-link a {
    font-size: 0.9rem;
    padding-left: 2%;
}

/* main */

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ea3d8;
    margin-bottom: 2%;
}

.common-h2 {
    margin-top: 2%;
}

.top {
    margin-top: 130px;
    background-color: #fff;
}


/* ::共通部分説明動画::  */
/* common */
.common-area {
    background-color: #ffe56d;
    width: 100%;
    text-align: center;
    padding-top: 3%;
    padding-bottom: 5%;
}

.common {
    background-color: #fff;
    width: 90%;
    margin: 0 auto;
    padding-top: 2%;
    padding-bottom: 5%;
    border-radius: 20px;
    box-shadow: 10px 10px 15px #af9731;
    /* background-image: url(../img/teacher.webp);
    background-repeat: no-repeat;
    background-position: right 50pt bottom 50pt;
    background-size: 45%; */
}

.common p {
    margin: 2% 0 1%;
    font-size: 1.1rem;
}

.common img {
    display: inline-block;
    padding: 3% o 3%;
}

.icon-1 {
    width: 10%;
}

.icon {
    width: 8%;
}

.border-y {
    margin: 1% 0 3%;
}

.list-wrap {
    text-align: center;
    margin: 0 auto;
    display: grid;
    width: 80%;
    grid-template-columns: repeat(2, 1fr);
    /* 2列に分割 */
    counter-reset: num 0;
}

.common-table-left td,
.common-table-right td {
    height: 50px;
    vertical-align: middle;
    text-align: left;
    border: solid 2px #ffe56d;
    width: 50%;
    font-weight: 500;
}

.common-table-right {
    margin-left: -2px;
}

.number a {
    padding-left: 3%;
    display: block;
    font-size: 1.1rem;
}

.number a::before {
    counter-increment: num 1;
    content: counter(num)". ";
    padding-right: 2%;
}

/* ::デジタル教科書説明動画:: */
/* digi */
.digi-area {
    background-color: #74b5e4;
    text-align: center;
    padding-top: 3%;
    padding-bottom: 5%;
}

.digi {
    background-color: #fff;
    width: 90%;
    margin: 0 auto;
    padding-top: 2%;
    padding-bottom: 5%;
    text-align: center;
    border-radius: 20px;
    box-shadow: 10px 10px 15px #1d98ce;
}

.digi-mov {
    width: 90%;
    margin: 0 auto;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-column-start: auto;
}

.digi-mov iframe {
    height: 225px;
}

.digi-mov p {
    font-size: 1.4rem;
    font-weight: 400;
    text-align: left;
    padding-left: 4rem;
    color: #4d4d4d;
}

.digi-mov p::before {
    content: "";
    display: inline-block;
    background-image: url(../img/icon-play02.webp);
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 1%;
}

.digi img {
    display: inline-block;
    margin-bottom: 2%;
}

.digi-logo {
    width: 420px;
    padding-top: 2%;
}

/* モーダルウィンドウ */
#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#modalContent {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 5% auto 15%;
    background: #fff;
    padding: 20px;
}

#closeModal {
    position: absolute;
    top: -50px;
    right: -30px;
    font-size: 2.5rem;
    font-weight: bolder;
    border: 1px solid;
    color: #fff;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 450px;
}

/* タブ別動画一覧 */
.tab_area {
    width: 90%;
    margin: 0 auto;
}

/* SP用非表示 */
.tab-sp {
    display: none;
}

/* タブ全体を囲むコンテナの設定 */

h4 {
    font-size: 2rem;
    font-weight: 500;
    color: #4ea3d8;
    margin-bottom: 2%;
}

.tab-switch {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    justify-content: center;
    /* タブの中央寄せ */
    gap: 0 5px;
    /* タブ間の余白 */
}

/* 各タブボタンの設定 */
.tab-switch>label {
    flex: 1 1 auto;
    /* タブが均等に幅をとるが、幅を超えると折り返す */
    order: -1;
    /* 上部に表示する */
    position: relative;
    padding: 0.7em 1em;
    /* 上下左右の内側余白 */
    background-color: #f2f3f4;
    color: #999;
    text-align: center;
    cursor: pointer;
    transition: 0.3s all;
}

/* タブボタンのホバーおよび選択状態のスタイル */
.tab-switch>label:hover,
.tab-switch label:has(:checked) {
    background-color: #4ea3d8;
    color: #fff;
}

/* ラジオボタン自体は非表示 */
.tab-switch input {
    display: none;
}

/* タブコンテンツのスタイル */
.tab-switch>div {
    display: none;
    /* 初期状態では非表示 */
    width: 100%;
    padding: 1.5em 1em;
    /* 内側余白 */
    border: 2px solid #4ea3d8;
}

/* 選択されたタブのコンテンツを表示 */
.tab-switch label:has(:checked)+div {
    display: block;
    /* 選択されたタブに対応するコンテンツを表示 */
}



/* タブの中の表の装飾 */
.list-table-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2列に分割 */
    width: 96%;
    margin: 0 auto;
    padding-top: 3%;
    counter-reset: number 0;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
}

table a:hover {
    color: #74b5e4;
}


.list-table-left td,
.list-table-right td {
    height: 45px;
    vertical-align: middle;
    text-align: left;
    border: solid 1px #4ea3d8;
    width: 50%;
    font-size: 1.1rem;
    font-weight: 500;
}

.list-table-right {
    margin-left: -1px;
}

.numbered a {
    padding-left: 3%;
    display: block;
    font-size: 1rem;
}

.numbered a::before {
    counter-increment: number 1;
    content: counter(number)". ";
    padding-right: 2%;
}

/* 小学生英語Pのみ */
.eigo-tab-span {
    display: block;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    margin: 3% auto;
    padding: 2%;
    width: 45%;
    border: solid 1px #4ea3d8;
}

.eigo-tab-span a:hover {
    color: #74b5e4;
}


/* footer */
footer {
    background-color: #f6bab2;
    height: auto;
    position: relative;
}

.logo-w {
    padding-top: 1%;
    padding-left: 2%;
}

.footer-area-wrap {
    max-width: 1980px;
    margin: 0 auto;
    padding-bottom: 2%;
    display: flex;
    justify-content: center;
}

.digi-index h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #4d4d4d;
    text-align: center;
    margin-bottom: 1%;
}

.border {
    margin-top: 2%;
    margin-bottom: 2%;
}

.border img {
    margin: 0 auto;
}


/* .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex-wrap: wrap;
    width: auto;
    margin: 0 0 0 2%;
} */

/* .container p {
    flex: 1;
    width: auto;
    color: #4d4d4d;
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 1%;
    padding-bottom: 2%;
    margin: 2% 0 2%;
} */

/* .container p:hover {
    color: #4ea3d8;
} */

.digi-index-wrap {
    background-color: #fff;
    width: 70%;
    margin: 2% 0 2%;
    padding-top: 3%;
    padding-bottom: 2%;
    border-radius: 15px;
}

.digi-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #fff;
    margin: 0 auto;
    width: auto;
}

.digi-menu {
    flex: 1;
    width: 125px;
    padding-top: 1%;
    margin-top: 1%;
    text-align: center;
    border-right: dashed 2px #74b5e4;
    /* 右側に罫線を追加 */

}

.digi-menu:last-child {
    border-right: none;
}

.image {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    padding-top: 3%;
    padding-bottom: 4%;
}

.digi-menu a:hover {
    opacity: 0.7;
}

.digi-menu p {
    font-size: 1rem;
    font-weight: 500;
    padding-top: 5%;
    padding-bottom: 1%;
    color: #254678;
}

address {
    position: absolute;
    /* 絶対配置 */
    bottom: 1%;
    left: 50%;
    /* 左から50% */
    transform: translateX(-50%);
    /* 水平方向に要素の幅の半分だけ左へ移動 */
    color: #fff;
    font-size: 1rem;
}

address p {
    color: #fff;
    padding-bottom: 1%;
}

/* アイコンの位置指定 */

.digi-index-wrap {
    position: relative;
    overflow: visible;
}

.footer-icon {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
}

/* :::1300px以下 PC タブレット::: */

@media (max-width:1300px) {

    /* レスポンシブ改行 */
    .ps-br {
        display: none;
        /* PCの改行を隠して */
    }

    .sp-br {
        display: block;
        /* SPを改行する */
    }

    /* nav */
    h1 img {
        width: 150px;
    }

    .menu-title {
        margin-left: 1%;
        margin-right: 1%;
    }

    .menu-title img {
        width: 180px;
    }

    .menu-item {
        width: 180px;
    }

    .menu-item img {
        width: 100%;
    }

    .menu-item p {
        font-size: 1rem;
    }

    .digi-title p {
        font-size: 0.9rem;
    }

    .nav-btn a {
        width: 100%;
    }

    /* ボタン */
    .nav-btn {
        margin-left: 1%;
    }

    .btn01 {
        padding: 14px 0 16px;
    }

    .btn01,
    .btn02 {
        width: 240px;
        font-size: 0.7rem;
    }

    /* main */
    h2 {
        font-size: 2.3rem;
    }

    /*  共通部分説明動画 */
    /* common */

    .common {
        border-radius: 20px;
    }

    .movie_icon {
        width: 70%;
    }

    .digi-logo {
        width: 400px;
    }

    .number a {
        font-size: 0.9rem;
    }

    /* 動画タブ切り替え部分 */
    .list-table-wrap {
        width: 96%;
    }

    .numbered a {
        font-size: 0.9rem;
        padding-left: 2%;
    }

    /* 小学生英語Pのみ */
    .eigo-tab-span {
        display: block;
        font-weight: 500;
        font-size: 1.1rem;
        text-align: center;
        margin: 3% auto;
        padding: 2%;
        width: 96%;
        border: solid 1px #4ea3d8;
    }


    /* footer */
    footer {
        height: auto;
    }

    /* .footer-area-wrap {
        width: auto;
        flex-direction: column;
    } */

    .common-index-wrap {
        width: 80%;
    }

    .common-index {
        width: auto;
    }

    .digi-index-wrap {
        width: 70%;
        height: auto;
        padding: 0 auto;
        border-radius: 10px;
    }

    .common-index h3,
    .digi-index h3 {
        font-size: 1.2rem;
    }

    .digi-menu {
        margin: 0 auto;
        width: 85px;
    }

    .digi-menu img {
        width: 50px;
        height: 50px;
    }

    .digi-menu p {
        font-size: 0.9rem;
    }

    .container {
        justify-content: center;
    }

    .container p {
        /* font-size: 0.7rem; */
        padding-bottom: 1%;
        margin: 1% 0 1%;
    }

    .container p {
        margin: 1% 0 1%;
    }

    .footer-icon {
        top: -15%
    }

}

/* スマホサイズ（768px未満）の設定 */
@media (max-width: 800px) {

    header {
        height: 60px;
        border-bottom: 1px solid #4ea3d8;
    }

    .nav {
        display: none;
        /* スマホサイズでは非表示 */
    }

    .sp-logo,
    .sp-nav {
        display: block;
    }

    .sp-logo img {
        width: 170px;
        align-items: center;
        margin-left: 2%;
    }

    h2 {
        font-size: 1.3rem;
    }

    .top {
        margin-top: 60px;
    }

    /* :::共通動画部分::: */

    .common p {
        font-size: 0.8rem;
        padding-bottom: 3%;
    }

    .border-y {
        display: none;
    }

    .list-wrap,
    .list-table-wrap {
        display: block;
    }

    .common-table-right {
        margin: -2px 0;
    }

    .icon-1 {
        width: 60px;
    }

    .nonumber {
        display: none;
    }

    /* :::教科別動画部分::: */

    /* :::SP表示::アコーディオン有効化::: */
    .tab-pc {
        display: none;
    }

    .tab-sp {
        display: block;
        margin-top: 20px;
    }

    .tab-sp summary {
        padding: 12px;
        font-weight: 500;
        text-align: left;
        background: #4ea3d8;
        cursor: pointer;
        display: block;
        color: #fff;
        border: 1px solid #fff;
    }

    .tab-sp summary::-webkit-details-marker {
        display: none;
    }

    .tab-sp details[open] summary {
        background: #ddd;
        color: #4d4d4d;
    }

    .tab-sp summary::before {
        content: none !important;
    }

    .tab-sp summary::after {
        content: "＋";
        color: #FFF;
        font-weight: 400;
        float: right;
        width: 1rem;
        text-align: center;
    }

    .tab-sp details[open] summary::after {
        content: "−";
        margin-top: -0.1rem;
        color: #4d4d4d;
    }

    .list-table-wrap {
        animation: fadeIn 0.5s ease;
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: translateY(-10px);
        }

        100% {
            opacity: 1;
            transform: none;
        }
    }

    .tab-sp p {
        padding: 10px;
        margin: 0;
        font-size: 0.8rem;
    }

    /* タブの中身 */
    .icon {
        width: 50px;
    }

    .digi-logo {
        width: 200px;
    }

    .list-table-right {
        margin: -1px 0;
    }

    .list-table-wrap {
        margin-bottom: 4%;
    }

    .list-table-wrap a {
        font-size: 14px;
    }

    /* モーダルウィンドウ */
    #modalContent {
        margin: 15% auto 15%;
    }

    /* footer */
    footer {
        height: 50px;
    }

    address {
        position: static;
        transform: none;
        margin: 0 auto;
        text-align: center;
        padding-top: 2%;
    }

    address p {
        font-size: small;
    }
}