/* 手本 tonozuka.net music_school の style.css から、料金とお申し込み（.apply）・お問い合わせボタン（.cbtns）の部品だけを抜き出した物。赤だけポータルの色 #8b0000 */
.contact .apply_toast {
  max-width: 520px;
  margin: 10px auto 0;
}

.pill_group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 7px 16px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #4c5f75;
  background: #fff;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill.is-checked {
  color: #fff;
  border-color: #4c5f75;
  background: #4c5f75;
}

.pill:disabled {
  color: #bbb;
  border-color: #eee;
  background: #f3f3f3;
  text-decoration: line-through;
  cursor: not-allowed;
  transform: none;
}

.pill:focus-visible,
.price_select:focus-visible,
.apply_btn:focus-visible,
.free_btn:focus-visible,
.form_select:focus-visible,
.spbar_menu:focus-visible,
.spbar_contact:focus-visible,
.pill:focus-visible,
.apply_btn:focus-visible,
.form_select:focus-visible,
.spbar_menu:focus-visible,
.spbar_contact:focus-visible {
  outline: 3px solid #ef9d0d;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  .pill,
  .price_card,
  .apply_btn,
  .free_btn {
    transition: none;
  }
}

.apply *,
.apply *::before,
.apply *::after {
  box-sizing: border-box;
}

.apply_in {
  max-width: 1180px;
  margin: 0 auto;
}

.apply_lead {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.apply_lead b {
  color: #333;
}

.apply_lead a {
  color: #8b0000;
  text-decoration: underline;
}

.apply_form {
  display: grid;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d5d9df;
}

.apply_hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #6489b7;
}

.apply_btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 12px;
  align-items: start;
}

.apply_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 12px;
  border: 2px solid #8b0000;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.apply_btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(139, 0, 0, .25);
}

.apply_btn.is-primary {
  color: #fff;
  background: #8b0000;
}

.apply_msgnote {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #4c5f75;
  text-align: center;
}

.apply_toast {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  color: #4c5f75;
  background: #eef1f5;
}

.apply_sub {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: #777;
  text-align: center;
}

.apply_sub a {
  color: #8b0000;
  text-decoration: underline;
  white-space: nowrap;
}

.apply_copy {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: #4c5f75;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}

.apply_preview {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
}

.apply_preview summary {
  display: inline-block;
  color: #4c5f75;
  text-decoration: underline;
  cursor: pointer;
}

.apply_preview pre {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f5f6f7;
}

.apply {
  background: #f5f6f7;
  padding: 12vw 5.33vw 10vw;
}

.apply_head {
  margin-bottom: 6vw;
  text-align: center;
}

.apply .title {
  color: #4c5f75;
  line-height: 1.3;
  margin-bottom: 5vw;
  font-size: 4rem;
}

.apply_sub_copy {
  margin-top: 0;
  font-size: 11px;
}

.apply_sub a.apply_copy {
  color: #4c5f75;
}

.apply_btn.is-line {
  border-color: #06c755;
  color: #06c755;
}

.apply_btn.is-line:hover {
  box-shadow: 0 10px 22px rgba(6, 199, 85, .25);
}

.apply_btn[id$="Messenger"] {
  border-color: #0084ff;
  color: #0084ff;
}

.apply_btn[id$="Messenger"]:hover {
  box-shadow: 0 10px 22px rgba(0, 132, 255, .25);
}

.apply_mailcol>.apply_sub:not(.apply_sub_copy) {
  margin-top: 6px;
}

@media print,
screen and (min-width: 768px) {
  .apply {
    padding: 18px 50px 44px;
  }

  .apply_head {
    margin-bottom: 12px;
  }

  .apply_form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
  }

  .apply_col {
    display: flex;
    flex-direction: column;
  }

  .apply_btn {
    font-size: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .apply_msgnote,
  .apply_mailcol>.apply_sub:not(.apply_sub_copy) {
    margin-top: 4px;
  }

  .apply_btns {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply .title {
    margin: 0 0 50px;
    font-size: 3.6rem;
  }

  .apply_col>.form_field:has(textarea) {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .apply_col>.form_field:has(textarea) textarea {
    flex: 1;
  }
}

@media print,
screen and (max-width: 1000px) and (min-width: 768px) {
  .apply_form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.apply_btns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apply_btns .apply_btn {
  padding-left: 4px;
  padding-right: 4px;
}

.price_cards {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.price_card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name name" "detail detail" "note note" "fee pick" "cal cal";
  grid-template-rows: auto auto 1fr auto auto;
  align-items: start;
  row-gap: 2px;
  padding: 14px 16px;
  border: 1px solid #d5d9df;
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.price_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 95, 117, .12);
}

.price_select {
  -webkit-appearance: none;
  appearance: none;
  grid-area: name;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  cursor: pointer;
}

.price_select::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 16px;
}

.price_name {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #4c5f75;
}

.price_detail {
  grid-area: detail;
  font-size: 13px;
  color: #666;
}

.price_note {
  grid-area: note;
  margin: 4px 0 2px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.price_fee {
  grid-area: fee;
  align-self: end;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.price_card.is-free::before {
  content: "まずはここから";
  position: absolute;
  top: -11px;
  left: 12px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  color: #fff;
  background: #8b0000;
}

.price_card.is-free.is-selected {
  border-color: #8b0000;
  box-shadow: inset 0 0 0 1px #8b0000;
  background: #fdf6f6;
}

.price_card.is-free.is-selected .price_pick {
  border-color: #8b0000;
  background: #8b0000;
}

.price_card.is-free .price_fee {
  color: #8b0000;
}

.price_pick {
  grid-area: pick;
  align-self: end;
  padding: 2px 12px;
  border: 1px solid #c9ced6;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  color: #4c5f75;
  background: #fff;
}

.price_card.is-selected .price_pick {
  color: #fff;
}

.price_cal {
  position: relative;
  z-index: 1;
  grid-area: cal;
  justify-self: start;
  margin-top: 6px;
  font-size: 12px;
  color: #8b0000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price_card.is-free {
  border-color: #f0c4c4;
  background: #fff;
}

.price_fee small {
  font-size: 11px;
  font-weight: 400;
}

@media screen and (max-width: 767px) {

  .price_card,
  .price_select::after {
    border-radius: 16px;
  }
}

@media print,
screen and (min-width: 768px) {
  .price_cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media print,
screen and (max-width: 1000px) and (min-width: 768px) {
  .price_cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form_field {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.form_label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #4c5f75;
}

.form_label small {
  font-size: 12px;
  font-weight: 400;
}

.form_select,
.form_input,
.form_textarea,
.form_date {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #c9ced6;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: #333;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form_select {
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234c5f75' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  cursor: pointer;
}

.form_textarea {
  min-height: 66px;
  resize: vertical;
}

.form_date::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: left;
}

.form_select:focus,
.form_input:focus,
.form_textarea:focus,
.form_date:focus {
  outline: none;
  border-color: #6489b7;
  box-shadow: 0 0 0 4px rgba(100, 137, 183, .2);
}

.form_dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.form_dates label {
  display: block;
  min-width: 0;
}

.form_dates label span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #666;
}

.form_pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 12px;
}

@media print,
screen and (min-width: 768px) {
  .form_dates label {
    display: grid;
    grid-template-columns: 4.8em minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .form_dates label span {
    margin-bottom: 0;
  }

  .form_pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

#applyTopics .pill {
  padding: 6px 12px;
  font-size: 13px;
}

.camp_box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 2px solid #8b0000;
  border-radius: 10px;
  background: #fff;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

.camp_box.is-dark {
  margin: 22px 0 0;
  border-color: #fff;
}

.camp_tag {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #fff;
  background: #8b0000;
}

.camp_main {
  font-size: 17px;
}

.camp_main s {
  font-size: 14px;
  color: #888;
}

.camp_main b {
  font-size: 24px;
  font-weight: 700;
  color: #8b0000;
}

.camp_sub {
  flex-basis: 100%;
  font-size: 13px;
  color: #4c5f75;
}

.camp_note {
  color: #8b0000;
}

.camp_box[hidden],
.camp_note[hidden] {
  display: none;
}

@media print,
screen and (min-width: 768px) {
  .camp_sub {
    flex-basis: auto;
  }
}

.campinfo .camp_box {
  margin-bottom: 16px;
}

*:has(> .apply_btns) {
  container-type: inline-size;
}

section:not(:has(.is-line, .is-msgr, .is-mail, .apply_btn, .pnav_pop)) {
  overflow-x: visible;
  overflow-y: clip;
}

.efct-seqbox~.apply_preview,
.efct-seqbox~.apply_sub {
  opacity: 0;
  transform: translateY(50px);
  transition: transform .8s linear .64s, opacity .8s linear .64s;
}

.efct-seqbox.is-active~.apply_preview,
.efct-seqbox.is-active~.apply_sub {
  opacity: 1;
  transform: none;
}

.cbtns {
  container-type: inline-size;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.cbtns_in {
  display: grid;
  gap: 12px;
}

.cbtn {
  margin: 0;
}

.cbtn a {
  display: block;
  padding: 4vw 0;
  border: 2px solid;
  border-radius: 2vw;
  background: #fff;
  font-size: 4vw;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: opacity .2s;
}

.cbtn a:hover {
  opacity: .7;
}

.cbtn.is-line a {
  color: #06c755;
  border-color: #06c755;
}

.cbtn.is-msgr a {
  color: #0084ff;
  border-color: #0084ff;
}

.cbtn.is-mail a {
  color: #fff;
  background: #8b0000;
  border-color: #8b0000;
}

.cbtn_sub {
  margin: 0;
  font-size: 3.2vw;
  line-height: 1.9;
  text-align: center;
}

.cbtn_sub .apply_copy {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--cbtn-sub, #4c5f75);
  text-decoration: underline;
  cursor: pointer;
}

.cbtn_sub .apply_copy:hover {
  text-decoration: none;
}

.cbtn_note {
  display: block;
  font-size: .82em;
  line-height: 1.6;
}

.cbtn_toast {
  max-width: 520px;
  margin: 10px auto 0;
}

@media print,
screen and (min-width: 768px) {
  .cbtns {
    min-width: 300px;
  }

  .cbtn a {
    padding: 18px 0;
    border-radius: 10px;
    font-size: 24px;
  }

  .cbtn_sub {
    margin-top: 4px;
    font-size: 16px;
  }
}

.cbtns_in {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cbtn_sub {
  grid-column: 3;
}

.cbtn a {
  font-size: min(24px, 2.3cqi);
}

@media print,
screen and (min-width: 768px) {
  .cbtn a {
    padding: 10px 0;
    font-size: 17px;
  }
}
/* 共通申し込み欄と問い合わせボタン。PCは横並び、スマホは縦並び。 */
.portal-contact-buttons {display:flex;gap:16px;flex-wrap:wrap;margin:24px 0;}
.portal-contact-buttons>a {flex:1 1 180px;text-align:center;}
.portal-contact-buttons .is-line {background:#06c755;color:#fff;}
.portal-contact-buttons .is-msgr {background:#0084ff;color:#fff;}
.portal-application label {display:block;margin:14px 0;}
.portal-application label:has(input[type=checkbox]) {display:inline-block;margin:8px 16px 8px 0;}
.portal-application fieldset {border:0;padding:0;margin:20px 0;}
.portal-application input,.portal-application select,.portal-application textarea {max-width:100%;}
.portal-application pre {white-space:pre-wrap;overflow-wrap:anywhere;}
@media(max-width:767px){.portal-contact-buttons{flex-direction:column}.portal-contact-buttons>a{flex:auto;width:100%}}
