@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;
}

textarea {
  padding: 2px;
  border: 1px solid #ccc;
  resize: vertical;
  font-size: 14px;
}



/* ここから */

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[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}
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: -90px;
    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;
}
/* ボタン単体のアニメーションは削除 or 無効化 */
a.btn_182 {
    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_182:hover {
    box-shadow: none;
    color: #3b3b3b;
}
.arrow{
    width: 25px;
    height: 25px;
    margin-top: 3px;
}
.radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    align-items: center;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
@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;
}

}


.terms-box {
  border: 1px solid #ccc;
  background: #f9f9f9;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 20px 0;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* タイトルや見出し */
.terms-box h2{
    margin-bottom: 1.5em;
    font-size: 1.5em;
}

.terms-box h3 {
  font-weight: bold;
  color: #222;
  margin-top: 2.6em;
  margin-bottom: 0.4em;
  line-height: 1.3;
  font-size: 1.1rem;
}

/* 段落 */
.terms-box p {
  margin: 0.4em 0;
  font-size: .9em;
}

/* リスト全体の余白とインデント調整 */
.terms-box ul,
.terms-box ol {
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  padding-left: 1.5em;
}
.terms-box ol{
    height: auto;
    display: flex;
    flex-direction: column;
}

/* リストアイテムの行間・間隔を詰める */
.terms-box li {
  margin-bottom: 0.3em;
  line-height: 1.4;
}

/* 強調 */
.terms-box strong,
.terms-box b {
  font-weight: bold;
}

/* 横幅の小さいデバイス（スマホ）対応 */
@media (max-width: 768px) {
  .terms-box {
    max-height: 200px;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 12px;
  }

  .terms-box h3 {
    font-size: 1rem;
  }
}

.space_above{
    margin-top: 40px!important;
}
