/* =====================================
   ヒーローセクション
===================================== */
#hero-section {
    height: 100%;
    min-height: 85vh;
    width: 100vw;
}

#hero-section .inner {
    padding: 0;
}

#hero-section .mv-img {
    height: 100%;
    width: 95%;
    margin: 0 auto 50px;
}

#hero-section .mv-img img {
    height: auto;
    width: 100%;
    display: block;
}

/* =====================================
   レスポンシブ（768px以下）
===================================== */
@media (max-width: 768px) {
    #hero-section {
        min-height: 50vh;
    }

    #hero-section .mv-img {
        width: 100%;
        margin: 0 auto 40px;
    }
}

/* =====================================
   レスポンシブ（480px以下）
===================================== */
@media (max-width: 480px) {
    #hero-section {
        min-height: 30vh;
    }

    #hero-section .mv-img {
        width: 100%;
        margin: 0 auto 30px;
    }
}


#Philosophy .inner {
    padding-top: 100px;
    padding-bottom: 400px;
    text-align: center;
    position: relative;
}

.container-img._c-img01 {
    position: absolute;
    bottom: 5%;
    right : 5%;
    width: 400px;
}
.container-img img {
    width: 100%;
    height: auto;
}
.container-img._c-img03 {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 200px;
    z-index: -1;
}
._c-img04 {
    position: absolute;
    bottom: 0;
    right : 0;
    width: 200px;
}
._c-img05 {
    position: absolute;
    bottom: 5%;
    right : 0;
    width: 300px;
}
._c-img06 {
    position: relative;
    min-width: 400px;
    width: 50%;
    margin: 50px auto;
}


@media (min-width: 1281px) {

    ._c-img04 {
        width: 250px;
    }
    ._c-img05 {
     width: 400px;   
    }
}
.philosophy-list {
    width: 90%;
    margin: 50px auto;
    list-style: none;
    padding-left: 1.8em;
}

.philosophy-list li {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    position: relative;
    margin-bottom: 0.6em;
    font-size: 1.5em;
    text-align: left;
}

.philosophy-list li::before {
    content: "";
    position: absolute;
    left: -1.5em;
    top: 0.45em;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7' fill='white' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.title-wrapper {
    position: relative;
}
#Policy .title-wrapper h2{
    z-index: 10;
    position: relative;
    width: fit-content;
}
#Policy .title-wrapper {
    width: fit-content;
    margin: 0 auto;
}
#Policy .title-wrapper .container-img {
    width: 400px;
    position: absolute;
    top: 0;
    left: -300px;
    z-index: -1;
}
#Policy dl {
    font-size: 1.5em;
    width: 100%;
    margin : 50px auto;
}
#Policy dt {
    color : #4E7F86;
}

#Vision .title-wrapper {
    text-align: center;
    padding-bottom: 100px;
}

#Vision .title-wrapper h2{
    margin-bottom: 0; 
}
#Vision .title-wrapper p {
    font-size: 1.5em;
    font-weight: bold;
}
/* =====================================
   ビジョンアイテム（円形配置）
===================================== */
.vision-items {
    width: 100%;
    margin: 50px auto;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* テキストボックス（中央） */
.vision-txt {
    background-color: #F4C851;
    font-weight: bold;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
    padding: 1em 20px;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    line-height: 1.6;
}

/* 画像アイテム */
.vision-img {
    position: absolute;
    width: 200px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}

.vision-img p {
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 0;
    width: 100%;
}

.vision-img img {
    width: 100%;
    height: auto;
    max-width: 200px;
}

/* 円形配置（6つの要素を360度に配置） */
/* 上 */
._v-i01 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 右上 */
._v-i02 {
    top: 75px;
    right: 50px;
}

/* 右下 */
._v-i03 {
    bottom: 75px;
    right: 50px;
}

/* 下 */
._v-i04 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 左下 */
._v-i05 {
    bottom: 75px;
    left: 50px;
}

/* 左上 */
._v-i06 {
    top: 75px;
    left: 50px;
}

#about-us dl {
    border : 1px solid #4E7F86;
    margin: 50px auto;
}
#about-us dt {
    border-right : 1px solid #4E7F86;
    border-bottom: 1px solid #4E7F86;
}
#about-us dd {
    border-bottom: 1px solid #4E7F86;
    border-radius: 0;
}
#about-us dt:last-of-type,
#about-us dd:last-of-type {
    border-bottom: 0;
}

/* =====================================
   スケジュールセクション
===================================== */


/* 放課後と土曜日のコンテナ */
.weekday,
.holiday {
    width: 100%;
    margin : 50px auto 150px;
    position: relative;
    max-width: 900px;
}

/* h3のスタイル */
#schedule h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid;
}

.weekday h3 {
    color: #0066FF;
    border-bottom-color: #0066FF;
}

.holiday h3 {
    color: #FF9500;
    border-bottom-color: #FF9500;
}


/* スケジュールアイテムのカスタマイズ */
.weekday .schedule-items ._text {
    background-color: #E8F4FF;
}

.holiday .schedule-items ._text {
    background-color: #FFE8CC;
}

.weekday .schedule-items ._time {
    color: #0066FF;
}

.holiday .schedule-items ._time {
    color: #FF9500;
}

/* =====================================
   スケジュールアイテム
===================================== */
.schedule-items {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 500px;
}

.schedule-items .item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 0;
}

.schedule-items ._time {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 70px;
    flex-shrink: 0;
}

.schedule-items ._text {
    color: #333;
    padding: 12px 20px;
    border-radius: 20px;
    flex: 1;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* =====================================
   レスポンシブ（768px以下）
===================================== */
@media (max-width: 768px) {
    #schedule .inner {
        padding: 60px 0;
    }

    #schedule h2 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    #schedule.container > .inner {
        flex-direction: column;
        gap: 40px;
    }

    .weekday,
    .holiday {
        min-width: 100%;
    }

    #schedule h3 {
        font-size: 1.3em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .schedule-items .item {
        gap: 15px;
        margin-bottom: 12px;
    }

    .schedule-items ._time {
        font-size: 1rem;
        min-width: 60px;
    }

    .schedule-items ._text {
        padding: 10px 15px;
        border-radius: 15px;
        font-size: 0.95rem;
    }
}

/* =====================================
   レスポンシブ（480px以下）
===================================== */
@media (max-width: 480px) {
    #schedule .inner {
        padding: 60px 0;
    }

    #schedule h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    #schedule.container > .inner {
        gap: 30px;
    }

    #schedule h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .schedule-items .item {
        gap: 12px;
        margin-bottom: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-items ._time {
        font-size: 0.9rem;
        min-width: auto;
    }

    .schedule-items ._text {
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.9rem;
        width: 100%;
    }
}

#Access dl {
    width: 100%;
    max-width: 700px;
    margin : 50px auto 20px;
}
.ggmap {
    width: 100%;
    max-width: 700px;
    border : 0;
    margin : 0 auto 50px;
}
.ggmap iframe {
    height: 500px;
    width: 100%;
}
#Contact .title-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
#Contact .title-wrapper h2 {
    margin-bottom: 0;
}
._c-img07 {
    margin-left : -200px;
    width: 200px;
}
#Contact p:not(._title):not(._note)  {
    color: #4E7F86;
    width: 100%;
    max-width: 700px;
    margin : 50px auto;
    font-size: 1.3em;
}

/* =====================================
   お問い合わせフォーム
===================================== */
.contact-form {
    border-radius: 15px;
    background-color: #113A2F;
    color: #fff;
    padding: 40px 25px;
    width: 100%;
    margin: 50px auto;
}

.contact-form ._title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: center;
}

/* フォーム全体 */
.contact-form form {
    width: 100%;
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* input と textarea */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #F4D88A;
    border-radius: 8px;
    background-color: #113A2F;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

/* フォーカス状態 */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #F4D88A;
    box-shadow: 0 0 8px rgba(244, 216, 138, 0.5);
    background-color: #1d4a3a;
    color: #fff;
}

/* アクティブ状態 */
.contact-form input:active,
.contact-form textarea:active {
    border-color: #F4D88A;
}

/* オートフィル時の背景色 */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #113A2F inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* textarea のサイズ */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ボタンコンテナ */
.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* ボタン共通スタイル */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

/* 送信ボタン */
.btn-submit {
    background-color: #F4D88A;
    color: #113A2F;
}

.btn-submit:hover {
    background-color: #f0d06f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 216, 138, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(244, 216, 138, 0.2);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(244, 216, 138, 0.6);
}

/* リセットボタン */
.btn-reset {
    background-color: transparent;
    color: #F4D88A;
    border: 2px solid #F4D88A;
}

.btn-reset:hover {
    background-color: rgba(244, 216, 138, 0.1);
    border-color: #f0d06f;
    color: #f0d06f;
}

.btn-reset:active {
    background-color: rgba(244, 216, 138, 0.2);
}

.btn-reset:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(244, 216, 138, 0.6);
}
._note {
    margin-top : 1em;
    font-size: 0.7rem;
    font-weight: normal;
    text-align: center;
    color : #F4D88A;
}
/* =====================================
   レスポンシブ（768px以下）
===================================== */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
        margin: 40px auto;
    }

    .contact-form ._title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        margin-bottom: 6px;
        font-size: 0.95rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .contact-form textarea {
        min-height: 100px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .form-buttons {
        gap: 12px;
        margin-top: 25px;
    }
}

/* =====================================
   レスポンシブ（480px以下）
===================================== */
@media (max-width: 480px) {
    .contact-form {
        padding: 25px 15px;
        margin: 30px auto;
        border-radius: 10px;
    }

    .contact-form ._title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        margin-bottom: 5px;
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px 10px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .contact-form textarea {
        min-height: 90px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .form-buttons {
        gap: 10px;
        margin-top: 20px;
    }
}


/* =====================================
   レスポンシブ（768px以下）
===================================== */
@media (max-width: 768px) {

    .philosophy-list li {
        font-size: 1.5rem;
    }
    .container-img._c-img01 {

        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
    }
    #Policy .title-wrapper .container-img {
        top : auto;
        bottom : -120px;
    }
    .vision-img img {
        max-width: 180px;
    }
    ._c-img07 {
        margin-left: -120px!important;
        width: 120px!important;
    }
}
@media (max-width: 600px) {
    #Vision .title-wrapper {
        padding-bottom : 30px;
    }
    .vision-items {
        height: auto;
        min-height: 400px;
        /* display: block; */
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: space-between;
    }

    /* テキストボックス */
    .vision-txt {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* 画像アイテムを縦並びに */
    .vision-img {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
    }

    .vision-img p {
        margin-bottom: 0;
        margin-top: 0;
        width: auto;
        min-width: 80px;
        text-align: left;
        font-size: 1.5em;
    }
    .vision-img:nth-of-type(odd) {
        flex-direction: row-reverse;
    }
    .vision-img img {
        /* max-width: 80px; */
        flex-shrink: 0;
    }

    /* 位置指定をリセット */
    ._v-i01,
    ._v-i02,
    ._v-i03,
    ._v-i04,
    ._v-i05,
    ._v-i06 {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        justify-content: space-between
    }
    #about-us dt {
        border-right : 0!important;
        margin-top : 0;
    }
    ._c-img04 {
        bottom: auto;
        right: auto;
        position: relative;
        margin: 20px auto 0;
    }
    ._c-img05 {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 50px auto;
    }
    ._c-img06 {

    min-width: auto;
    width: 90%;
    max-width: 400px;
    }
}

@media (max-width: 500px) {
    #Contact .title-wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    ._c-img07 {
        margin-left : 0!important;
    }
}

/* =====================================
   ロケーションアイテム
===================================== */
.location-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.location-items li {
    margin: 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.location-items p {
    margin: 0;
    margin-bottom: 12px;
    line-height: 1.6;
}

.location-items p:last-child {
    margin-bottom: 0;
}

.location-items ._name {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.location-items ._addr {
    font-size: 0.95rem;
    color: #666;
}

.location-items ._tel {
    font-size: 0.9rem;
    color: #666;
}

/* =====================================
   レスポンシブ（768px以下）
===================================== */
@media (max-width: 768px) {
    .location-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .location-items li {
        padding: 15px;
    }

    .location-items p {
        margin-bottom: 10px;
    }

    .location-items ._name {
        font-size: 0.95rem;
    }

    .location-items ._addr {
        font-size: 0.9rem;
    }

    .location-items ._tel {
        font-size: 0.85rem;
    }
}

/* =====================================
   レスポンシブ（480px以下）
===================================== */
@media (max-width: 480px) {
    .location-items {
        gap: 20px;
    }

    .location-items li {
        padding: 12px;
    }

    .location-items p {
        margin-bottom: 8px;
    }

    .location-items ._name {
        font-size: 0.9rem;
    }

    .location-items ._addr {
        font-size: 0.85rem;
    }

    .location-items ._tel {
        font-size: 0.8rem;
    }
}
