/* ==============================================================
    [entry]　
   ============================================================== */
.page-entry__flow-box {
  background: var(--background-color);
  padding: 40px 80px;
  margin-top: 40px;
  margin-bottom: 80px;
  color: var(--text-color);
  border-radius: 40px;
}

.page-entry__flow-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: 40px;
}

.page-entry__flow-contents {
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 8px;
  counter-reset: step;
	list-style: none;
}

.page-entry__flow-contents li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-entry__flow-contents li:not(:last-child)::after {
  background: url("../img/entry_flow.svg") no-repeat 0 0;
  content: "";
  display: block;
  width: 22px;
  height: 43px;
  flex-shrink: 0;
}

.page-entry__flow-contents-box {
  background: #fff;
  display: block;
  width: 290px;
  min-height: 279px;
  padding: 24px 16px;
  border-radius: 10px;
  border: 1px solid var(--orange-base);
  text-align: center;
}

.page-entry__flow-contents-box::before {
  background: var(--background-color);
  counter-increment: step;
	content: counter(step, decimal-leading-zero);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--orange-base);
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border-radius: 50%;
}

.page-entry__flow-subtitle {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--orange-base);
  margin-bottom: 16px;
}

.page-entry__flow-detail {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);  
}

.page-entry__contents {
  padding-top: 80px;
  color: var(--text-color);
}
.page-entry__contents::before {
  height: 100%;
  top: 0;
}
.page-entry__contents.page_bg-name::after {
  top: 24px;
  left: 432px;
}
.page-entry__contents-box {
  background: #fff;
  color: var(--text-color);
  line-height: var(--line-height-relaxed);
  padding: 80px 240px;
  border-radius: 40px;
  box-shadow: 0 0 15px #edebe899;
}

.page-entry__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-entry__form-group {
  display: flex;
  gap: 40px;
}

.page-entry__form-label {
  display: flex;
  justify-content: space-between;
  width: 240px;
  height: 40px;
  padding: 5px 0;
  flex-shrink: 0;
}
.page-entry__form-field {
  flex-grow: 1;
}
.page-entry__form-field.js-mw-checkbox {
  text-align: center;
}

.page-entry__form-group--agree {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.page-entry__form-group--agree .page-entry__form-checkbox {
  gap: 16px;
}
.page-entry__form-group--agree label{
  position: relative;
}
.page-entry__form-group--agree input[type="checkbox"] {
  border: 1px solid var(--text-color);
  width: 24px;
  height: 24px;
}
.page-entry__form-group--agree input[type="checkbox"]:checked::before{
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  display: inline-block;
  width: 22px;
  height: 12px;
  border-left: 4px solid #555754;
  border-bottom: 4px solid #555754;
  transform: rotate(-54deg);
}
.page-entry__form-group--agree a {
  border-bottom: 1px solid var(--text-color);
}

.page-entry__form-required {
  background: var(--orange-base);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 30px;
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  border-radius: 4px;
}

.page-entry__form-control {
  width: 100%;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid var(--text-color);
  border-radius: 5px;
}
.mwform-tel-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-entry__form-control--age { width: 120px; }
.page-entry__form-control--textarea { height: 120px; }

/* Select要素のスタイル */
.page-entry__form select,
.page-entry__form .page-entry__form-control[type="select"],
.page-entry__form select.page-entry__form-control {
  width: 100%;
  max-width: 100%;
  padding: 5px 40px 5px 12px;
  border: 1px solid var(--text-color);
  border-radius: 5px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 6l5 5 5-5 2 1-7 7-7-7 2-1z' fill='%235D5759'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.page-entry__form__inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-entry__form-suffix { color: #333; }

.page-entry__form-radios {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 24px 24px;
  padding-top: 8px;
}

.page-entry__form-radio{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

/* ネイティブinputは視覚非表示（でも可視フォーカスは転送） */
.page-entry__form-radio-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 外枠の丸 */
.page-entry__form-radio-control{
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--text-color);
  border-radius: 9999px;
  flex: 0 0 auto;
  background: #fff;
}

/* クリック時の“中の色付き円” */
.page-entry__form-radio-control::after{
  content: "";
  position: absolute;
  inset: 50%;
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background: var(--text-color);
  transform: translate(-50%,-50%) scale(0); /* 未選択：非表示 */
}

/* 選択状態で中の丸を表示 */
.page-entry__form-radio-input:checked + .page-entry__form-radio-control::after{
  transform: translate(-50%,-50%) scale(1);
}

/* 選択時は外枠の色も少し強めに */
.page-entry__form-radio-input:checked + .page-entry__form-radio-control{
  border-color: var(--radio-dot);
}

/* hover時の外枠色 */
.page-entry__form-radio:hover .page-entry__form-radio-control{
  border-color: var(--radio-hover);
}

/* キーボードフォーカス（inputに当たるのでcontrolへリングを出す） */
.page-entry__form-radio-input:focus-visible + .page-entry__form-radio-control{
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* 無効状態 */
.page-entry__form-radio-input:disabled + .page-entry__form-radio-control{
  border-color: #e5e7eb;
  background: #f8fafc;
}
.page-entry__form-radio-input:disabled ~ .page-entry__form-radio-label{
  color: #9ca3af;
  cursor: not-allowed;
}


.page-entry__form-checkbox { display: inline-flex; align-items: center; gap: 8px; }

.page-entry__form-label-help-note {
  font-size: var(--font-size-xs);
  padding-top: 16px;
}

.page-entry__form-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  text-align: center;
}

.page-entry__contents-link {
  margin: 64px 0 40px;
  text-align: center;
}
.page-entry__contents-link.page_bg-name {
  overflow: visible;
}
.page-entry__contents-link.page_bg-name::after {
  background-position: 100% 0;
  top: auto;
  bottom: 0;
  left: auto;
  right: 48px;
}

@media(max-width: 767px) {
  .page-entry__flow-box {
    padding: 40px 24px;
    border-radius: 24px;
  }
  .page-entry__flow-contents {
    flex-direction: column;
  }
  .page-entry__flow-contents li {
    flex-direction: column;
    gap: 8px;
  }
  .page-entry__flow-contents li:not(:last-child)::after {
    transform: rotate(90deg);
  }
  .page-entry__flow-contents-box {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  
  .page-entry__contents.page_bg-name::after {
    left: 30%;
  }
  .page-entry__contents-box {
    padding: 32px 32px;
    border-radius: 24px;
  }    
  .page-entry__form {
    gap: 40px;
  }
  .page-entry__form-group {
    flex-direction: column;
    gap: 8px;
  }
  .page-entry__form-label {
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 16px;
  }
  .page-entry__form-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-entry__form-checkbox {
    justify-content: center;
  }
  
  .page-entry__form-group--agree {
    margin-top: 16px;
  }
  
  .page-entry__contents-link.page_bg-name::after {
    bottom: 56px;
  }
}


/* ==============================================================
    [online-session-date]　
   ============================================================== */
.online-session-date {
  background: var(--background-color);
  border-radius: 24px;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.online-session-date__heading {
  font-size: var(--font-size-h3);
  font-weight: 700;
  margin: 0;
}

.online-session-date__list {
  font-size: var(--font-size-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.online-session-date__item.-disabled {
  text-decoration: line-through;
}
.online-session-date__item.-disabled:after {
  display: inline-block;
  text-decoration: none !important;
  content: "（定員に達しました）";
}

.online-session-date__text {
  font-size: var(--font-size-xs);
}



/* ==============================================================
    [thanks]　
   ============================================================== */
.thanks-main {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-main__container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
}

.thanks-main__body {
  display: flex;
  gap: 194px;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  padding: 80px 0;
  position: relative;
  width: 100%;
}

.thanks-main__main {
  background-color: var(--color-white);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  padding: 80px;
}

.thanks-main__icon {
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.thanks-main__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thanks-main__title {
  font-size: var(--font-size-md);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
  white-space: nowrap;
  margin: 0;
}

.thanks-main__description {
  font-size: var(--font-size-body);
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
  margin: 0;
}

.thanks-main__buttons {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
}


.thanks-main__decoration {
  position: absolute;
  top: 24.16px;
  right: 24px;
  width: 26.199px;
  height: 28px;
  overflow: hidden;
}

.thanks-main__decoration-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


@media (max-width: 960px) {
  .thanks-main {
    padding: 0;
  }
  .thanks-main__main {
    padding: 40px 24px;
    margin-inline: 24px;
    gap: 24px;
  }
  .thanks-main__icon {
    height: 100px;
    width: 100px;
  }
  .thanks-main__description {
    font-size: var(--font-size-9);
  }
  .thanks-main__title {
    font-size: var(--font-size-6);
  }
  .thanks-main__buttons {
    flex-direction: column;
    gap: 24px;
  }
}
