@charset "UTF-8";

@font-face {
    font-family: 'CustomFont'; /* フォントの名前 */
    src: url('../../fonts/ZenMaruGothic-Bold.ttf') format('truetype'); /* フォントファイルへのパス */
    font-weight: 900; /* より細いフォントの太さ */
    font-style: normal; /* フォントのスタイル */
  }
@font-face {
    font-family: 'CustomFont2'; /* フォントの名前 */
    src: url('../../fonts/baloo-regular.ttf') format('truetype'); /* フォントファイルへのパス */
    font-weight: 900; /* より細いフォントの太さ */
    font-style: normal; /* フォントのスタイル */
  }

body {
    font-family: 'CustomFont', sans-serif;
}




/* ここから */

main{
    padding: 20px;
}

.section_cover {
    width: 100%;
    max-width: 800px;
    margin: 250px auto 150px;
    padding: 15px;
    border-radius: 40px;
    background-image: url(../../img/23349316.jpg);
    background-size: cover;
    position: relative;
    z-index: 10; /* フォームが上に来る */
    overflow: visible;
}

.form_section {
    width: 100%;
    border-radius: 40px;
    background-color: white;
    padding: 50px;
    color: rgb(46, 46, 46);
    position: relative;
    z-index: 20; /* キャラより手前 */
}
.form_section p{
    font-size: 18px;
    color: #3b3b3b;
}

.form_section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 50px;
}

form label {
    display: block;
    margin-bottom: 15px;
    color: #555;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'CustomFont', sans-serif;
    box-sizing: border-box;
    resize: vertical;
}

/* select box 特有の見た目の調整 */
form select {
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
/* textarea 調整 */
form textarea {
    min-height: 120px;
}

/* モバイル対応追加 */
@media (max-width: 600px) {
    form label {
        font-size: 14px;
    }

    form input,
    form select,
    form textarea {
        font-size: 14px;
        padding: 8px;
    }
}

button[type="submit"] {
    display: block;
    margin: 0 auto;   
    padding: 0.9em 2.5em;
    background-color: #f0f0f0;
    border-radius: 30px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out, padding 0.4s ease-in-out;
    overflow: hidden;
}

button[type="submit"]:hover {
    background-color: #27acd9;
    color: #fff;
    padding-left: 3.5em;
    padding-right: 3.5em;
}

.waving-character {
    position: absolute;
    top: -100px;
    right: 60px;
    width: 180px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}
.waving-character2 {
    position: absolute;
    top: -120px;
    right: 60px;
    width: 180px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}

.waving-character img {
    width: 100%;
    display: block;
}
.waving-character2 img {
    width: 100%;
    display: block;
}

/* ひょっこり出てくる状態 */
.waving-character.show {
    transform: translateY(0);
    opacity: 1;
}
/* ひょっこり出てくる状態 */
.waving-character2.show {
    transform: translateY(0);
    opacity: 1;
}



.more_button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: transform 0.3s ease-in-out;
    margin-top: 40px;
}

/* ホバー時、全体を下げる */
.more_button:hover {
    transform: translate(5px, 5px);
}

/* ボタン単体のアニメーションは削除 or 無効化 */
a.btn_18 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    position: relative;
    width: 270px;
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 10px;
    color: #3b3b3b;
    font-size: 16px;
    border: 3px solid #3b3b3b;
    box-shadow: 5px 5px #3b3b3b;
    transition: 0.3s ease-in-out;
    background-color: white;
}

/* ボタンのホバー時は box-shadow のみ変更（位置は変えない） */
a.btn_18:hover {
    box-shadow: none;
    color: #3b3b3b;
}
.arrow{
    width: 25px;
    height: 25px;
    margin-top: 3px;
}



@media (max-width: 1000px) {


.waving-character2 {
    position: absolute;
    top: -90px;
    right: 30px;
    width: 150px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}
}


@media (max-width: 600px) {
    .section_cover {
    width: 100%;
    max-width: 800px;
    margin: 180px auto 100px;
    padding: 15px;
    border-radius: 40px;
    background-image: url(../../img/23349316.jpg);
    background-size: cover;
    position: relative;
    z-index: 10; /* フォームが上に来る */
    overflow: visible;
}


.form_section h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 50px;
}

.form_section {
    width: 100%;
    border-radius: 40px;
    background-color: white;
    padding: 40px 20px;
    color: rgb(46, 46, 46);
    position: relative;
    z-index: 20; /* キャラより手前 */
}

.waving-character {
    position: absolute;
    top: -55px;
    right: 30px;
    width: 110px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}

.waving-character2 {
    position: absolute;
    top: -65px;
    right: 30px;
    width: 110px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}


}