@charset "utf-8";

.nagp_entry_form {
  background-size: auto auto;
  background-color: #FFD900;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 7px, rgba(255, 201, 0, 1) 7px, rgba(255, 201, 0, 1) 9px);
  background-repeat: repeat;
  background-size: cover;
  padding: 5%;
  position: relative;
}


.nagp_entry_form section {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5%;
  background: #FFF;
}


.nagp_entry_form>h1 {
  text-align: center;
  color: #FFF;
  margin-bottom: 3.5%;
  font-size: 1.7rem;
  letter-spacing: 2px;
  position: relative;
  font-weight: 500;
}

.nagp_entry_form>h1 span {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #FFF;
  width: min(200/750*100vw, 200px);
  background: #00a2df;
  padding: 5px;
  margin: 5% auto 1%;
}

.nagp_entry_form01>h1 span {
  width: 250px;
}

.nagp_entry_form05>h1 span {
  width: 250px;
}

.nagp_entry_form>h1::after {
  content: "";
  width: 1px;
  height: 30px;
  background: #FFF;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1000px) {
  .nagp_entry_form section {
    width: 100%;
    max-width: inherit;
    margin: 0 auto;
    padding: 3% 5%;
    background: #FFF;
  }
}

@media (max-width: 750px) {
  .nagp_entry_form {
    padding: 5% 5% 6% 5%;
  }

  .nagp_entry_form>h1 {
    margin-bottom: 6%;
    font-size: 1.4rem;
  }

  .nagp_entry_form>h1 span {
    font-size: 0.9rem;
    background: #00a2df;
    padding: 4px;
    margin: 5% auto 1%;
  }

  .nagp_entry_form01>h1 span {
    width: 200px;
  }

  .nagp_entry_form05>h1 span {
    width: 200px;
  }
}

/* フォーム全体のスタイル */
/* section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #FFF;
} */

/* 各入力項目のスタイル */
.form-column {
  display: grid;
  /* グリッドレイアウトを使用 */
  grid-template-columns: 1fr 3fr;
  /* 左側にラベル、右側に入力欄 */
  gap: 20px;
  /* カラム間のスペース */
  align-items: center;
  /* 垂直方向の中央揃え */
  margin-bottom: 20px;
  /* 各項目の間にスペース */
}

@media (max-width: 750px) {
  .form-column {
    display: block;
    /* スマホではブロックレイアウトに変更 */
  }
}

/* ラベルのスタイル */
.form-column label {
  font-weight: bold;
  color: #333;
  text-align: right;
  /* ラベルを右揃え */
  padding-right: 10px;
  /* ラベルと入力欄の間にスペース */
}

/* テキストボックス、メール入力、テキストエリアのスタイル */
form input[type="text"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border: 2px solid #1096D8;
  /* 枠をアクセントカラーに */
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus,
form select:focus {
  border-color: #0d7bb5;
  /* フォーカス時の枠色 */
  outline: none;
}

/* プルダウンのスタイル */
form select {
  appearance: none;
  /* デフォルトの矢印を非表示 */
  width: 100%;
  padding: 10px;
  border: 2px solid #1096D8;
  /* 枠をアクセントカラーに */
  border-radius: 4px;
  font-size: 16px;
  background-color: #FFF;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%231096D8" d="M7 10l5 5 5-5z"/></svg>');
  /* カスタム矢印アイコン */
  background-repeat: no-repeat;
  background-position: right 10px center;
  /* 矢印の位置 */
  background-size: 2em;
  /* 矢印のサイズ */
}

form select:focus {
  border-color: #0d7bb5;
  /* フォーカス時の枠色 */
  outline: none;
}

/* ラジオボタンのスタイル */
form .radio-group {
  display: flex;
  /* 横並びにする */
  gap: 20px;
  /* ボタン間のスペース */
  align-items: center;
  margin: 0;
}

/* ボタンのスタイル */
button {
  grid-column: 2;
  padding: 10px;
  background-color: #1096D8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (max-width: 750px) {
  button {
    width: 100%;
    /* スマホではボタンを全幅に */
  }
}

button:hover {
  background-color: #0d7bb5;
}

/* フォームのタイトル */
main h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #1096D8;
}

/*--------------------------------------------------------------------------*/
[v-cloak] {
  display: none;
}

.form-column {}

.field {
  margin-bottom: 0;
  display: grid;
  gap: 5px 20px;
  grid-template-columns: 1fr 1fr;
}

.field--school {
  /* grid-template-columns: 1fr 2fr; */
}

.field:has(>input:nth-of-type(1):last-of-type) input:not(.w-auto) {
  grid-column: 1/3;
}

.error {
  width: 100%;
  color: red;
  display: block;
  font-weight: bold;
}

.description {
  font-size: 0.9em;
  color: #666;
}

.description,
.error {
  grid-column: 1/3;
}

.field:has(.error) input,
.field:has(.error) select {
  border-color: red;
}

.form-column .radio-group {
  flex-wrap: wrap;
  gap: 5px 20px;
}

.school-list {
  display: block;
  grid-column: 1/3;
}

.school-list p {
  margin-top: 0.5em
}

.school-list ul {
  list-style: none;
  margin-top: 0.5em;
  border: 1px solid #d1d1d1;
  padding: 0.5em;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5em;
}

.school-list .selected {
  background: rgba(255, 0, 0, 0.2);
}

.required {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: black;
  color: white;
  height: 1rem;
  line-height: 1;
  font-size: 0.6em;
  padding: 0 0.5em;
  margin-left: 0.5em;
}

#form div:has(button) {
  margin-top: 60px;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.button-group .button {
  grid-column: auto;
}

.message {
  text-align: center;
}

.message+* {
  margin-top: 40px;
}

.message h2+* {
  margin-top: 40px;
}