/* スマホサイズ（767px以下）、タブレットサイズ（768px～1150px）、PCサイズ（1151px以上）にて構成 */

/* 幅1151px以上 */
@media (min-width: 1151px) {

    body {
        width: 100%;
        font-family: 'Kiwi Maru';
        color: #000000;
        font-size: 24px;
        margin: 0;
        padding: 0;
    }

    h2 {
        font-size: 36px;
        font-weight: medium;
        text-shadow: 1px 1px 0 #000000;
    }

    h3 {
        font-size: 32px;
    }

    h4 {
        font-size: 28px;
    }

    header {
        width: 100%;
        min-width: 1151px;
        height: 100px;
        background-image: url(../image/Rectangle\ 25.jpg);
        background-size: 100% 100px;
        background-repeat: no-repeat;
        position: fixed;
        top: 0;
    }

    .header_container {
        width: 960px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }

    .header_logo {
        width: 100px;
        height: 100px;
    }

    .menu-toggle {
        display: none;
        /* ハンバーガーアイコンを非表示にする */
    }

    nav ul {
        list-style-type: none;
        margin-bottom: 15px;
        padding: 0;
        display: flex;
    }

    nav ul li {
        margin-left: 30px;
    }

    nav ul li a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: #00a7aa;
    }

    .top_view {
        min-width: 1151px;
        width: 100%;
        height: 800px;
        background-image: url(../image/Rectangle\ 1.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .top_view h1 {
        font-family: 'Lemon';
        font-size: 70px;
        color: #FFFFFF;
        -webkit-text-stroke: 2px #000000;
        padding-top: 150px;
        text-align: center;
    }

    .index_main {
        width: 100%;
        height: auto;
        background-image: url(../image/Rectangle\ 26.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .main_container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .class_description {
        width: 1150px;
        height: auto;
        border-radius: 200px;
        background-color: #F3F2D3;
        margin-top: 250px;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 250px;
        padding-bottom: 20px;
    }

    .class_description section {
        width: 960px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #curriculum {
        width: 960px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 80px;
        margin-top: -80px;
        margin-bottom: 250px;
    }

    #curriculum table {
        border-collapse: collapse;
    }

    #curriculum table th,
    td {
        border: 1px solid #000000;
    }

    #curriculum table th {
        background-color: #82C7E5;
    }

    tr:nth-child(even) {
        background-color: #CBF4F6;
    }

    tr:nth-child(odd) {
        background-color: #EDFEFF;
    }

    th:nth-child(odd),
    td:nth-child(odd) {
        text-align: center;
        width: 60px;
    }

    #curriculum table tfoot {
        text-align: center;
    }

    #school_environment {
        width: 1150px;
        height: auto;
        border-radius: 200px;
        background-color: #F3F2D3;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 250px;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    #school_environment_contents {
        width: 960px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 100px;
        margin-top: -100px;
    }

    .students a,
    .teachers a {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
        text-align: center;
    }

    .teachers {
        margin-top: 50px;
    }

    .students a:hover,
    .teachers a:hover {
        color: #aa009c;
    }

    .hiring {
        color: #aa0000;
        margin-top: 80px;
        text-align: center;
    }

    .school_details {
        margin-top: 150px;
    }

    .school_details figure {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .school_details figure img {
        margin-right: 20px;
    }

    .school_details figure figcaption p {
        font-size: 28px;
    }

    .first {
        margin-top: -10px;
    }

    #contact {
        width: 960px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 80px;
        margin-top: -80px;
    }

    #contact h2 {
        margin-bottom: -40px;
    }

    #contact p {
        font-size: 28px;
        font-weight: lighter;
    }

    #bolder_text label p {
        font-size: 32px;
        font-weight: bolder;
    }

    label p input {
        font-size: 24px;
        width: 500px;
        height: 40px;
    }

    #text {
        width: 960px;
        height: 300px;
    }

    #privacy_policy p {
        font-size: 32px;
        font-weight: bolder;
    }

    #privacy_policy_text {
        margin-top: -30px;
        border: 1px solid #000000;
        height: 250px;
        overflow: auto;
    }

    #privacy_policy_text p {
        font-size: 24px;
        font-weight: lighter;
    }

    .error-message {
        color: red;
    }

    #submit {
        font-size: 32px;
        width: 100px;
        height: 50px;
        display: block;
        margin: 80px auto;
    }

    .index_main #scroll_top {
        width: 960px;
        text-align: right;
        margin-left: auto;
        margin-right: auto;
    }

    #scroll_top a {
        color: #0000ff;
        text-decoration: none;
    }

    #scroll_top a p {
        font-size: 28px;
        font-weight: bold;
    }

    footer {
        width: 100%;
        height: 240px;
        background-image: url(../image/Rectangle\ 27.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 28px;
        margin-top: -20px;
    }

    /* indexpageここまで */

    /* environmentpageここから */
    .environment_main {
        padding-top: 100px;
        width: 100%;
        height: auto;
        background-image: url(../image/Rectangle\ 26.jpg);
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .environment_main h1 {
        font-family: 'Lemon';
        font-size: 70px;
        -webkit-text-stroke: 2px #000000;
        color: #041DFE;
        text-align: center;
        padding-top: 80px;
    }

    #student_demeanor {
        padding-top: 80px;
    }

    .student_demeanor {
        width: 1150px;
        height: auto;
        border-radius: 200px;
        background-color: #AAE9FF;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 250px;
        padding-bottom: 50px;
    }

    .demeanor_contents {
        width: 960px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 80px;
    }

    .demeanor_contents h2 {
        margin-bottom: -20px;
    }

    .demeanor_contents figure {
        display: flex;
        margin-left: 0;
        margin-right: 0;
    }

    .demeanor_contents figure img {
        width: 300px;
        height: 300px;
        margin-top: auto;
        margin-bottom: auto;
    }

    .demeanor_contents figure img:nth-child(odd) {
        margin-right: 60px;
    }

    .demeanor_contents figure img:nth-child(even) {
        margin-left: 60px;
    }

    .demeanor_contents figure figcaption ul li {
        margin-bottom: 10px;
    }

    #teacher_demeanor {
        padding-top: 0;
    }

    .teacher_demeanor {
        width: 1150px;
        height: auto;
        border-radius: 200px;
        background-color: #EDB0E7;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        padding-bottom: 50px;
    }

    #teacher_demeanor div figure {
        margin-bottom: 70px;
    }

    .environment_main #scroll_top {
        width: 960px;
        text-align: right;
        margin-left: auto;
        margin-right: auto;
        margin-top: 250px;
    }

    /* contactpage */
    .contact_message {
        min-width: 1151px;
        width: 100%;
        margin-top: 100px;
        /* padding-bottom: 240px; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contactpage html,
    .contactpage body {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .contactpage body {
        min-height: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .contactpage footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 240px;
    }
}


/* 幅768px～1150pxの場合 */
@media (max-width: 1150px) and (min-width: 768px) {
    body {
        width: 100%;
        font-family: 'Kiwi Maru';
        color: #000000;
        font-size: 20px;
        margin: 0;
        padding: 0;
    }

    h2 {
        font-size: 32px;
        font-weight: medium;
        text-shadow: 1px 1px 0 #000000;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 24px;
    }

    header {
        height: 100px;
        max-width: 1150px;
        min-width: 768px;
        width: 100%;
        background-image: url(../image/Rectangle\ 25.jpg);
        background-size: 100% 100px;
        background-repeat: no-repeat;
        position: fixed;
        top: 0;
    }

    .header_container {
        /* 768pxにすべて収まるように、668pxに設定 */
        width: 668px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }

    .header_logo {
        width: 100px;
        height: 100px;
    }

    .menu-toggle {
        display: none;
        /* ハンバーガーアイコンを非表示にする */
    }

    nav ul {
        list-style-type: none;
        margin-bottom: 15px;
        padding: 0;
        display: flex;
    }

    nav ul li {
        margin-left: 30px;
    }

    nav ul li a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: #00a7aa;
    }

    .top_view {
        height: 500px;
        max-width: 1150px;
        min-width: 768px;
        width: 100%;
        background-image: url(../image/Rectangle\ 1.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        margin-bottom: 100px;
    }

    .top_view h1 {
        font-family: 'Lemon';
        font-size: 66px;
        color: #FFFFFF;
        -webkit-text-stroke: 2px #000000;
        padding-top: 150px;
        text-align: center;
    }

    .index_main {
        width: 100%;
        height: auto;
        background-image: url(../image/Rectangle\ 26.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .main_container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .class_description {
        width: 768px;
        height: auto;
        border-radius: 200px;
        background-color: #F3F2D3;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 100px;
    }

    .class_description section {
        width: 668px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #curriculum {
        width: 668px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 80px;
        margin-top: -80px;
        margin-bottom: 100px;
    }

    #curriculum table {
        border-collapse: collapse;
    }

    #curriculum table th,
    td {
        border: 1px solid #000000;
    }

    #curriculum table th {
        background-color: #82C7E5;
    }

    tr:nth-child(even) {
        background-color: #CBF4F6;
    }

    tr:nth-child(odd) {
        background-color: #EDFEFF;
    }

    th:nth-child(odd),
    td:nth-child(odd) {
        text-align: center;
        width: 60px;
    }

    #curriculum table tfoot {
        text-align: center;
    }

    #school_environment {
        width: 768px;
        height: auto;
        border-radius: 150px;
        background-color: #F3F2D3;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 100px;
        padding-top: 40px;
        padding-bottom: 30px;
    }

    #school_environment_contents {
        width: 668px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 70px;
        margin-top: -70px;
    }

    .students a,
    .teachers a {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .teachers {
        margin-top: 50px;
    }

    .students a figure,
    .teachers a figure {
        width: calc(33.33% - 20px);
        margin: 0 10px;
    }

    .students a figure img,
    .teachers a figure img {
        width: 90%;
    }

    .students a:hover,
    .teachers a:hover {
        color: #aa009c;
    }

    .hiring {
        color: #aa0000;
        margin-top: 80px;
        text-align: center;
    }

    .hiring p {
        font-size: 18px;
        margin-top: -10px;
    }

    .school_details {
        margin-top: 100px;
    }

    .school_details figure {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .school_details figure img {
        width: 40%;
        margin-right: 20px;
    }

    .school_details figure figcaption p {
        font-size: 22px;
    }

    .first {
        margin-top: -10px;
    }

    #contact {
        width: 668px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 70px;
        margin-top: -70px;
    }

    #contact h2 {
        margin-bottom: -40px;
    }

    #contact p {
        font-size: 24px;
        font-weight: lighter;
        padding-top: 10px;
    }

    #bolder_text label p {
        font-size: 28px;
        font-weight: bolder;
    }

    label p input {
        font-size: 20px;
        width: 500px;
        height: 36px;
    }

    #text {
        width: 668px;
        height: 500px;
    }

    #privacy_policy p {
        font-size: 28px;
        font-weight: bolder;
    }

    #privacy_policy_text {
        margin-top: -30px;
        border: 1px solid #000000;
        height: 250px;
        overflow: auto;
    }

    #privacy_policy_text p {
        font-size: 20px;
        font-weight: lighter;
    }

    .error-message {
        color: red;
    }

    #submit {
        font-size: 28px;
        width: 80px;
        height: 46px;
        display: block;
        margin: 80px auto;
    }

    .index_main #scroll_top {
        width: 668px;
        text-align: right;
        margin-left: auto;
        margin-right: auto;
        margin-top: 100px;
    }

    #scroll_top a {
        color: #0000ff;
        text-decoration: none;
    }

    #scroll_top a p {
        font-size: 24px;
        font-weight: bold;
    }

    footer {
        width: 100%;
        height: 240px;
        background-image: url(../image/Rectangle\ 27.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 24px;
        margin-top: -20px;
    }

    /* indexpageここまで */

    /* environmentpageここから */
    .environment_main {
        padding-top: 100px;
        max-width: 1150px;
        min-width: 768px;
        width: 100%;
        height: auto;
        background-image: url(../image/Rectangle\ 26.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .environment_main h1 {
        font-family: 'Lemon';
        font-size: 70px;
        -webkit-text-stroke: 2px #000000;
        color: #041DFE;
        text-align: center;
        padding-top: 80px;
        margin-bottom: 100px;
    }

    #student_demeanor {
        padding-top: 50px;
    }

    .student_demeanor {
        width: 768px;
        height: auto;
        border-radius: 150px;
        background-color: #AAE9FF;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        padding-bottom: 50px;
        margin-bottom: 120px;
    }

    .demeanor_contents {
        width: 668px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 40px;
    }

    .demeanor_contents h2 {
        margin-bottom: -50px;
    }

    .demeanor_contents figure {
        display: flex;
        margin-left: 0;
        margin-right: 0;
    }

    .demeanor_contents figure img {
        width: 250px;
        height: 250px;
        margin-top: auto;
        margin-bottom: auto;
    }

    .demeanor_contents figure img:nth-child(odd) {
        margin-right: 30px;
    }

    .demeanor_contents figure img:nth-child(even) {
        margin-left: 30px;
    }

    .demeanor_contents figure figcaption ul li {
        margin-bottom: 10px;
    }

    #teacher_demeanor {
        padding-top: 30px;
    }

    .teacher_demeanor {
        width: 768px;
        height: auto;
        border-radius: 150px;
        background-color: #EDB0E7;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        padding-bottom: 50px;
    }

    .environment_main #scroll_top {
        width: 668px;
        text-align: right;
        margin-left: auto;
        margin-right: auto;
        margin-top: 250px;
    }

    /* contactpage */
    .contact_message {
        min-width: 768px;
        max-width: 1150px;
        width: 100%;
        margin-top: 100px;
        /* padding-bottom: 240px; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contactpage html,
    .contactpage body {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .contactpage body {
        min-height: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .contactpage footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 240px;
    }
}

/* 幅767px以下 */
@media (max-width:767px) {
    body {
        width: 100%;
        font-family: 'Kiwi Maru';
        color: #000000;
        font-size: 16px;
        margin: 0;
        padding: 0;
    }

    img {
        max-width: 100%;
    }

    h2 {
        font-size: 28px;
        font-weight: medium;
        text-shadow: 1px 1px 0 #000000;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }

    header {
        height: 80px;
        max-width: 767px;
        width: 100%;
        background-image: url(../image/Rectangle\ 25.jpg);
        background-size: 100% 80px;
        background-repeat: no-repeat;
        position: fixed;
        top: 0;
        z-index: 1000;
    }

    .header_container {
        display: flex;
        justify-content: space-between;
    }

    .header_logo {
        width: 80px;
        height: 80px;
    }

    .menu-toggle {
        display: block;
        font-size: 40px;
        cursor: pointer;
        color: #20a4e1;
    }

    nav ul {
        display: none;
        /* 最初は非表示 */
        flex-direction: column;
        position: absolute;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        max-width: 767px;
        width: 100%;
        list-style-type: none;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        color: inherit;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: #00a7aa;
    }

    .top_view {
        height: 300px;
        max-width: 767px;
        width: 100%;
        background-image: url(../image/Rectangle\ 1.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        margin-bottom: 50px;
    }

    .top_view h1 {
        font-family: 'Lemon';
        font-size: 50px;
        color: #FFFFFF;
        -webkit-text-stroke: 2px #000000;
        padding-top: 80px;
        text-align: center;
    }

    .index_main {
        width: 100%;
        height: auto;
        background-image: url(../image/Rectangle\ 26.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .main_container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 767px;
        width: 100%;
        margin: 0 auto;
    }

    .class_description {
        max-width: 375px;
        width: 100%;
        height: auto;
        border-radius: 150px;
        background-color: #F3F2D3;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        padding-top: 10px;
        padding-bottom: 30px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

    .class_description section {
        max-width: 330px;
        width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #curriculum {
        max-width: 100%;
        width: 350px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 80px;
        margin-top: -80px;
        margin-bottom: 60px;
    }

    #curriculum table {
        border-collapse: collapse;
    }

    #curriculum table th,
    td {
        border: 1px solid #000000;
    }

    #curriculum table th {
        background-color: #82C7E5;
    }

    tr:nth-child(even) {
        background-color: #CBF4F6;
    }

    tr:nth-child(odd) {
        background-color: #EDFEFF;
    }

    th:nth-child(odd),
    td:nth-child(odd) {
        text-align: center;
        width: 60px;
    }

    #curriculum table tfoot {
        text-align: center;
    }

    #school_environment {
        max-width: 100%;
        width: 375px;
        height: auto;
        border-radius: 80px;
        background-color: #F3F2D3;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    #school_environment_contents {
        width: 350px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 70px;
        margin-top: -70px;
    }

    #school_environment_contents h2 {
        margin-bottom: 0;
        margin-left: 20px;
    }

    .students a,
    .teachers a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
        text-align: center;
    }

    .students a figure,
    .teachers a figure {
        width: 50%;
        box-sizing: border-box;
        float: left;
        padding: 10px;
        margin: auto 0;
    }

    .students a:hover,
    .teachers a:hover {
        color: #aa009c;
    }

    .hiring {
        color: #aa0000;
        padding-top: 10px;
        text-align: center;
        clear: left;
    }

    .hiring p {
        font-size: 14px;
        margin-top: -10px;
    }

    .school_details {
        margin-top: 50px;
    }

    .school_details figure figcaption p {
        font-size: 18px;
    }

    #contact {
        max-width: 100%;
        width: 350px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 70px;
        margin-top: -70px;
    }

    #contact h2 {
        margin-bottom: -20px;
    }

    #bolder_text label p {
        font-size: 20px;
        font-weight: bolder;
    }

    label p input {
        font-size: 18px;
        width: 350px;
        height: 26px;
    }

    #text {
        width: 350px;
        height: 300px;
    }

    #privacy_policy p {
        font-size: 20px;
        font-weight: bolder;
    }

    #privacy_policy_text {
        margin-top: -20px;
        border: 1px solid #000000;
        height: 100px;
        overflow: auto;
    }

    #privacy_policy_text p {
        font-size: 16px;
        font-weight: lighter;
    }

    .error-message {
        color: red;
    }

    #submit {
        font-size: 22px;
        display: block;
        margin: 40px auto;
    }

    .index_main #scroll_top {
        max-width: 100%;
        width: 350px;
        text-align: right;
        margin-left: auto;
        margin-right: auto;
    }

    #scroll_top a {
        color: #0000ff;
        text-decoration: none;
    }

    #scroll_top a p {
        font-size: 20px;
        font-weight: bold;
    }

    footer {
        max-width: 100%;
        width: 100%;
        height: 100px;
        background-image: url(../image/Rectangle\ 27.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 20px;
        margin-top: -20px;
    }

    /* indexpageここまで */

    /* environmentpageここから */
    .environment_main {
        padding-top: 80px;
        max-width: 767px;
        width: 100%;
        height: auto;
        background-image: url(../image/Rectangle\ 26.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .environment_main h3 {
        font-size: 18px;
        width: 50%;
    }

    .environment_main h1 {
        font-family: 'Lemon';
        font-size: 50px;
        -webkit-text-stroke: 2px #000000;
        color: #041DFE;
        text-align: center;
        padding-top: 50px;
        max-width: 100%;
    }

    #student_demeanor {
        padding-top: 50px;
    }

    .student_demeanor {
        max-width: 100%;
        width: 375px;
        height: auto;
        border-radius: 80px;
        background-color: #AAE9FF;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        padding-bottom: 30px;
        margin-bottom: 10px;
    }

    .demeanor_contents {
        max-width: 100%;
        width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .demeanor_contents h2 {
        margin-left: 30px;
    }

    .demeanor_contents figure {
        position: relative;
    }

    .demeanor_contents figure .first_student_img {
        position: absolute;
        top: -50px;
        right: 10px;
        width: 33%;
        padding: 10px;
        margin-top: 20px;
    }

    .demeanor_contents figure .student_img {
        position: absolute;
        top: -33px;
        right: 10px;
        width: 33%;
        padding: 10px;
        margin-top: 20px;
    }

    .demeanor_contents figure .first_teacher_img {
        position: absolute;
        top: -10px;
        right: 10px;
        width: 33%;
        padding: 10px;
        margin-top: 20px;
    }

    .demeanor_contents figure .teacher_img {
        position: absolute;
        top: -20px;
        right: 10px;
        width: 33%;
        padding: 10px;
        margin-top: 20px;
    }

    .demeanor_contents figure figcaption ul {
        margin-left: -20px;
    }

    #teacher_demeanor {
        padding-top: 50px;
    }

    .teacher_demeanor {
        max-width: 100%;
        width: 375px;
        height: auto;
        border-radius: 80px;
        background-color: #EDB0E7;
        box-shadow: 20px 20px 4px rgba(0, 0, 0, 0.2);
        padding-bottom: 20px;
        padding-top: 10px;
    }

    .environment_main #scroll_top {
        max-width: 100%;
        width: 350px;
        text-align: right;
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px;
    }

    /* contactpage */
    .contactpage {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .contact_message {
        max-width: 767px;
        width: 100%;
        margin-top: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contactpage html,
    .contactpage body {
        margin: 0;
        padding: 0;
    }

    /* .contactpage body {
        min-height: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    } */

    .contactpage footer {
        /* position: absolute;
        bottom: 0;
        width: 100%;
        height: 100px; */
        margin-top: auto;
        /* 上部に余白を持たせて、下部に配置 */
        width: 100%;
        height: 100px;
    }
}