@media screen and (max-width: 1024px) {
    h1 {
        font-size: 30px;
        line-height: 1.2;
    }
    
    h2 {
        margin-bottom: 10px;
        font-size: 22px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    p {
        font-size: 16px;
        line-height: 2;
    }

    header {
        height: 90px;
        padding: 18px 0 0 0;
    }

    header .header-containaer .logo {
        display: flex;
        justify-content: center;
    }
    header .header-containaer .logo a {
        text-decoration: none;
        color: #F2EFEB;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    header .header-containaer .logo img {
        margin-right: 2%;
        width: 60px;
        padding: 1px;
        vertical-align: text-bottom;
    }

    header .logo {
        position: absolute;
        text-align: center;
        width: 100%;
    }

    .global-nav {
        display: none;
        transition: opacity 0.5s ease; /* トランジション効果を追加 */
    }

    .sp-menu {
        position: absolute;
        width: 24px;
        height: 24px;
        right: 5%;
        top: calc(100%/3);
        z-index: 5;
    }

    .sp-menu img {
        width: 100%;
        position: absolute;
    }

    .sp-menu .menu-button {
        display: block;
    }

    #fullscreenMenu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        color: white;
        text-align: center;
        z-index: 1000;
    }
    #fullscreenMenu .close-button{
        width: 24px;
        height: 24px;
        position: absolute;
        top: 35px;
        right: 5%;
    }
    #fullscreenMenu nav ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: inline-block;
    }
    #fullscreenMenu nav ul li {
        margin: 20px 0;
    }
    #fullscreenMenu nav ul li a {
        color: white;
        text-decoration: none;
        font-size: 24px;
    }

    .button-wrapper {
        padding: 0;
        margin: 30px 0;
    }
    .button-wrapper .button {
        padding: 2.5% 10%;
    }
    /* トップページ */
    .animation .str-1 {
        top: 0;
    }
    .animation .str-1 img:nth-of-type(2){
        top: -10px;
    }

    .animation .str-2 {
        top: 57%;
        left: 2%;
        width: 80%;
        z-index: 2;
        color: #fff;
        border-bottom: none;
    }
    .animation .str-2  h2{
        font-size: 16px;
    }
    .animation .str-3 {
        top: 85%;
        right: 10px;
        width: 97%;
        color: #fff;
        z-index: 1;
        text-align: right;
    }
    .animation .str-3 p {
        font-size: 11px;
    }

    .program-flow .head span {
        font-size: 36px;
    }
    
    .program-detail {
        display: block;
    }

    .banner {
        display: none;
    }

    footer {
        padding: 50px 0;
    }

    footer .footer-container {
        display: block;
    }
    footer .logo {
        border-right: none;
        padding: 0;
        border-bottom: solid 3px #F2EFEB;
        margin-bottom: 20px;
    }
    footer .menu ul li {
        border-bottom: none;
        margin-left: 0;
        margin-right: 0;
    }
    footer .menu ul li a {
        text-decoration: underline;
    }

    /* トップページ */
    section {
        padding: 0 5px
    }
    section .content-wraper {
        padding: 0 0;
        width: auto;
    }
    .program-detail .img-container {
        text-align: center;
    }
    .program-detail .img-container img {
        max-width: 350px;
        min-width: 300px;
    }
    .program-detail .text-container {
        padding: 10px 0;

    }
    .main-wrapper{
        margin: 0 auto;
    }
    
    .about {
        padding-bottom: 60px;
    }
    .about h1 {
        letter-spacing: -1.7px;
    }
    .about .content-wraper {
        margin-top: 20px;
    }

    .regist {
        padding: 60px 0;
    }

    .step {
        display: block;
        margin: auto;
    }
    .step .image, .step .text{
        margin: auto;
        width: 100%;
    }
    .step .image {
        text-align: center;
    }
    .step img{
        max-width: 500px;
    }
    /*/////////////// front-page ///////////////*/
    .sp-view{
        display: inline-block;
    }
    .pc-view {
        display: none;
    }
    .target .head{
        margin: 60px 0;
    }
    .target .table {
        margin: auto;
        width: 100%;
        max-width: 750px;
        color: #003E88;
        margin-bottom: 200px;
        text-align: center;
        padding: 0 10px;
    }
    .target .table .table-r {
        display: block;
    }
    .target .table .table-h {
        width: 100%;
    }
    .target .table .table-d {
        justify-content: center;
        width: 100%;
        padding-left: 0;
    }
    .target .small-font {
        text-align: start;
    }
    .program-flow .head .font-blue{
        letter-spacing: -1.7pt;
    }
    .program-flow .all-program{
        flex-direction: column;
        justify-content: center;
        row-gap: 20px;
    }
    .program-wraper {
        padding: 40px 10px;
    }
    .program-outline {
        margin-top: 20px;
        margin-bottom: 40px;
        background-color: #fff;
        padding: 10px;
    }
    .arrow{
        margin: 0 auto;
        transform: rotate(90deg);
    }
    .card{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
    }
    .card .image {
        width: 100%;
        max-width: 400px;
    }
    .card .text {
        width: 100%;
        max-width: 600px;
    }
    .regist-flow{
        display: flex;
        flex-direction: column;
        justify-content: center;
        row-gap: 20px;
    }
    .regist-flow .phase{
        -ms-flex-align: center;
        margin: 0 auto;
    }
    .regist-flow .arrow{
        margin: 0 auto;
    }
    /*///// お知らせ一覧 /////*/
    .newsLists {
        flex-wrap: wrap;
        justify-content: space-evenly;
        row-gap: 1em;
    }
    .news-container{
        width: 20%;
    }
    .news-container{
        width: 90%;
        height: auto;
        display: block;
    }
    .news-link .news-body{
        font-size: small;
    }
    /*////////// お知らせ記事 //////////*/
    .button-wrapper .return-botton{
        color: #EBEFF2;
        font-size: larger;
    }
    /*////////// ご挨拶 //////////*/
    .greet {
        padding: 50px 10px;
    }
    .greet:nth-child(even) .greet-wraper .teacher_items {
        flex-direction : column;
    }
    .teacher_items , .sub_teacher_items{
        flex-direction: column;
    }
    .teacher_items figure {
        text-align: center;
    }
    .greet .teacher_name {
        text-align: center;
    }
    .sub_teacher_items .article{
        width: 100%;
        min-width: 250px;
        max-width: 480px;
        /* max-width: 330px; */
        margin: 15px auto;
        flex-direction: column;
        padding: 0;
    } 
}

@media screen and (max-width: 540px) {
    .step .text{
        padding: 0px;
    }
    .page-main{
        padding: 20px 40px;
    }
    .program-head h1{
        white-space: wrap;
    }
    header .header-containaer .logo a{
        margin-right: 16px;
    }
    /*/////////////// FAQ ///////////////*/

    .faqLists .faq-container{
        margin-top: 4.5%;
    }
    .faq-wrapper{
        margin: 0 auto;
        width: auto;
        max-width: 540px;
        min-width: 320px;
    }
    /*////////// お知らせ記事 //////////*/
    .newsLists{
        display: flex;
        flex-direction: column;
    }
    /*///// お問い合わせフォーム /////*/
    span.wpcf7-form-control-wrap{
        margin: initial;
        padding: initial;
    }
    .contactform-container table{
        width: 100%;
        table-layout: fixed;
        word-break: break-all;
    } tr{
        display: flex;
        flex-direction: column;
    } td{
        width: 100%;
    }
    .contactform-container input , .contactform-container textarea{
        display: block;
        width: 100%;
        max-width: 300px;
    }
    .contactform-container .required ,.contactform-container  .optional{
        margin: 8px 0;
    }
    .contactform-table td{
        border: none;
    }
    /*///// 404ページ /////*/
    .p404-text .sp-view{
        display: none;
    }
    /* プログラムページ */
    .program-section table th, td{
        width: 100% !important;
    }
    .program-section table th{
        background-color: rgba(0, 16, 46, 0.05);;
    }
    .program-section table{
        border: 1px solid rgba(0, 0, 0, 0.35);
    }
    .program-section table th, td {
        border: 1px solid rgba(0, 0, 0, 0.35);
    }
    .program-section .entry-bg,.program-section .geek-bg, .program-section .expart-bg{
        background-color: transparent;
    }
    .program-section table .lecturer{
        text-align: left;
    }
    }