:root {
  --form-color-primary: #C00000;
  --form-color-accent: #c75656;
  --form-color-bg: #fdf5f5;
  --form-color-card: #fff;
  --form-color-text: #1b2530;
  --form-color-muted: #6b7280;
  --form-color-danger: #d32f2f;
  --form-color-success: #2e7d32;
  --form-color-border: #e5e7eb;
  --form-color-border-focus: #C00000;
  --form-color-table-stripe: #f8fafc;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.box6_1 {
  background-color: #fbe8e8;
  padding: 80px 0;
  font-family: 'Noto Sans JP', sans-serif;
}

.box6_1 .section__inner {
  width: 900px;
  margin: auto;
}

@media (max-width: 1023px) {
  .box6_1 {
    background-color: #fbe8e8;
    padding: 80px 20px;
  }

  .box6_1 .section__inner {
    width: 100%;
  }
}

.section__ttl {
  width: fit-content;
  margin: 0 auto;
  background-position: bottom 0px left 0px;
  background-repeat: repeat-x;
  background-size: 10px 10px;
}

.section__ttl_sub {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--form-color-primary);
  font-size: var(--font-sm);
  font-weight: 700;
  font-family: var(--font-noto);
}

.section__ttl h1 {
  font-size: var(--font-xl);
  font-weight: 700;
  text-align: center;
  font-family: var(--font-noto);
}

.form {
  background-color: var(--form-color-card);
  border-radius: 10px;
  padding: 30px;
}

@media (max-width: 1023px) {
  .form {
    padding: 15px;
    font-size: var(--font-xs);
  }
}

.form dt {
  margin-top: 20px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--form-color-text);
  margin-bottom: 8px;
}

@media (max-width: 1023px) {
  .form dt {
    margin: 25px 0 10px;
    font-size: var(--font-xs);
  }
}

.inputWrapper input[type="text"],
.inputWrapper input[type="email"],
.inputWrapper select {
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--form-color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.inputWrapper input[type="text"]:focus,
.inputWrapper input[type="email"]:focus,
.inputWrapper select:focus {
  outline: none;
  border-color: var(--form-color-border-focus);
  box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
}

@media (max-width: 1023px) {
  .inputWrapper input[type="text"],
  .inputWrapper input[type="email"],
  .inputWrapper select {
    padding: 10px 12px;
    font-size: var(--font-xs);
  }
}

.name,
.born {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1023px) {
  .name,
  .born {
    flex-direction: column;
    gap: 8px;
  }
}

.name div {
  width: 48%;
}

@media (max-width: 1023px) {
  .name div {
    width: 100%;
  }
}

.born div {
  width: 40%;
}

@media (max-width: 1023px) {
  .born div {
    width: 100%;
  }
}

.selectWrap {
  position: relative;
  width: 48%;
}

@media (max-width: 1023px) {
  .selectWrap {
    width: 100%;
  }
  
  .selectWrap select,
  .selectWrapper select,
  .select_short,
  .select_3 {
    padding: 10px 12px;
    font-size: var(--font-xs);
  }
}

.input_short[type="text"],
.select_short {
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--form-color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
}

.chou .input_short[type="text"] {
  width: 40%;
}

.radio_label {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  margin-right: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
}

.radio_label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio_label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.radio_label:has(input[type="radio"]:checked)::before {
  background-color: #fff;
  border-color: var(--form-color-primary);
}

.radio_label:has(input[type="radio"]:checked)::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background-color: var(--form-color-primary);
  border-radius: 50%;
  opacity: 1;
}

.radio_label:hover::before {
  border-color: var(--form-color-primary);
}

@media (max-width: 1023px) {
  .radio_label {
    margin-right: 10px;
  }
}

.inputWrapper input[type="checkbox"] {
  display: none;
}

.check_label {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 5px 30px;
  position: relative;
  width: auto;
}

.check_label::before {
  background: #fff;
  border: 1px solid #d9d9d9;
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  left: 5px;
  margin-top: -10px;
  position: absolute;
  top: 50%;
}

.check_label::after {
  border-right: 3px solid var(--form-color-primary);
  border-bottom: 3px solid var(--form-color-primary);
  content: "";
  display: block;
  width: 7px;
  height: 12px;
  left: 11px;
  margin-top: -7px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: rotate(45deg);
}

.check_label:has(input[type="checkbox"]:checked)::after {
  opacity: 1;
}

.mfp_err {
  color: var(--form-color-danger);
  font-size: var(--font-xs);
  margin-top: 4px;
  display: block;
}

.note {
  display: flex;
  font-size: var(--font-xs);
  margin-top: 8px;
  line-height: 1.5;
  color: var(--form-color-muted);
}

.pinktxt {
  color: var(--form-color-danger);
}

.form_submit_button {
  background: var(--form-color-primary);
  color: #fff;
  text-align: center;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  margin: 40px auto;
  position: relative;
  border: none;
  cursor: pointer;
  font-size: var(--font-sm);
  transition: all 0.2s;
  width: max-content;
  display: block;
}

.form_submit_button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  background: var(--form-color-accent);
}

.completion .form_submit_button {
  background: transparent;
}

.completion .form_submit_button:hover {
  opacity: 1;
  transform: none;
  background: transparent;
}

#form_submit {
  text-align: center;
}

.form_note {
  font-family: var(--font-noto);
  text-align: center;
  margin-bottom: 20px;
}

.terms_area {
  margin: 30px auto 0;
  border-radius: 10px;
  padding: 30px;
  background-color: #f5f5f5;
}

@media (max-width: 1023px) {
  .terms_area {
    padding: 15px;
  }
}

.alert_txt,
.terms_area_ttl {
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
}

.p-terms_list {
  border-bottom: 1px solid #0000001a;
}

.p-terms_item {
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid #d8d8d8;
  padding: 20px;
  font-weight: 700;
  position: relative;
}

.p-terms_item a {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--form-color-primary);
  padding-right: 60px;
}

.type_label {
  font-size: 1rem;
  color: #fff;
  background-color: var(--form-color-primary);
  border-radius: 5px;
  padding: 2px 4px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.denji {
  padding-top: 30px;
}

@media (max-width: 1023px) {
  .denji {
    font-size: var(--font-xs);
  }
}

.denji ul li {
  margin-top: 15px;
  display: flex;
}

.list-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.list-2col .inputWrapper {
  width: 100%;
  min-width: 0;
}

.list-2col .p-terms_item {
  min-width: 0;
}

.list-2col .p-terms_item a {
  font-size: 14px;
  word-break: break-word;
}

.list-2col .check_label {
  font-size: 13px;
  word-break: break-word;
  display: flex;
  align-items: flex-start;
}

.list-2col .check_label span {
  word-break: break-word;
}

@media (max-width: 1023px) {
  .list-2col {
    grid-template-columns: 1fr;
  }
}

.chou {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selectWrapper {
  position: relative;
}

.selectWrapper select,
.selectWrap select {
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--form-color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.selectWrapper select:focus,
.selectWrap select:focus {
  outline: none;
  border-color: var(--form-color-border-focus);
  box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
}

.todoufuken {
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--form-color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
}

.select_3 {
  width: 100%;
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid var(--form-color-border);
  border-radius: var(--radius-md);
}

#syugo {
  display: none;
}

#showOff_ps_others {
  display: none;
}

#youryou {
  display: none;
}

#switch1,
#switch2 {
  display: block;
}

.others {
  margin-top: 16px;
  border-radius: var(--radius-md);
}

.others_ttl {
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--form-color-text);
}

.search_result {
  margin-top: 16px;
}

#search_result3 {
  font-size: var(--font-xs);
  color: var(--form-color-muted);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid var(--color-main);
}

dt.required {
  display: flex;
  align-items: center;
}

dt.required > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

dt.required > span::after {
  content: "*";
  color: var(--form-color-danger);
  font-weight: bold;
}

.form-help-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.form-help-group--pc {
  display: flex;
}

.form-help-group--sp {
  display: none;
  justify-content: flex-end;
  margin-top: 8px;
}

.form-help-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--form-color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.form-help-link {
  color: var(--form-color-primary);
  text-decoration: underline;
  font-size: var(--font-xs);
}

.form-help-link:hover {
  text-decoration: none;
}

@media (max-width: 1023px) {
  .form-help-group--pc {
    display: none;
  }

  .form-help-group--sp {
    display: flex;
  }
}

.born__wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.born__wrapper .selectWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.born__wrapper .selectWrap label {
  font-size: 14px;
  color: var(--form-color-text);
  white-space: nowrap;
  order: 2;
  display: block;
}

.born__wrapper .select_3 {
  min-width: 80px;
  width: auto;
  order: 1;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form select,
.form .select_3,
.form .select_short,
.form .todoufuken,
.form .selectWrap select,
.form .selectWrapper select {
  padding-right: 30px !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

@media (max-width: 768px) {
  .born__wrapper {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .born__wrapper .selectWrap {
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
  }

  .born__wrapper .select_3 {
    flex: 1;
    min-width: auto;
  }
}

.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.form-modal-overlay.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.form-modal-open {
  overflow: hidden;
}

.form-modal {
  background: #ffffff !important;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #e5e7eb;
}

.form-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 0;
  position: relative;
}

.form-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
}

.form-modal__title-highlight {
  color: var(--form-color-primary);
}

.form-modal__close {
  background: var(--form-color-primary);
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
}

.form-modal__close:hover {
  background: var(--form-color-accent);
}

.form-modal__content {
  padding: 0 32px 32px;
}

.form-modal__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.form-modal__method {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-modal__method-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-modal__method-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.form-modal__method-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--form-color-primary);
  line-height: 1.4;
}

.form-modal__method-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.form-modal__highlight {
  color: var(--form-color-primary);
  font-weight: 600;
}

.form-modal__method-note {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
}

.form-modal__method-note h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.form-modal__method-note p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.form-modal__method-buttons {
  display: flex;
  gap: 8px;
  flex-direction: row;
}

.form-modal__method-button {
  background: #fff;
  color: var(--form-color-primary);
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: default;
  width: -webkit-fill-available;
}

@media (max-width: 767px) {
  .form-modal {
    max-height: 70vh;
    width: 85%;
  }

  .form-modal__header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }

  .form-modal__title {
    font-size: 16px;
    line-height: 1.3;
  }

  .form-modal__close {
    width: 32px;
    height: 32px;
    font-size: 18px;
    padding: 6px;
  }

  .form-modal__content {
    padding: 20px;
  }

  .form-modal__methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-modal__method {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
  }

  .form-modal__method-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .form-modal__method-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-modal__method-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
  }

  .form-modal__method-text {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
  }

  .form-modal__method-note {
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-top: 8px;
  }

  .form-modal__method-note h5 {
    font-size: 12px;
    margin: 0 0 6px 0;
    color: var(--form-color-primary);
  }

  .form-modal__method-note p {
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 8px 0;
  }

  .form-modal__method-button {
    background-color: var(--form-color-bg);
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 4px;
  }
}

.completion {
  background-color: var(--form-color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.completion .head {
  text-align: center;
  padding: 30px 20px 20px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.completion .head .logo {
  max-width: 200px;
  margin: auto;
  height: auto;
}

.completion section {
  flex: 1;
  padding: 60px 20px;
}

.completion .section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.completion .section__ttl {
  text-align: center;
  margin-bottom: 50px;
}

.completion .section__ttl h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--form-color-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.completion .complet_content {
  background: white;
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  align-items: center;
}

.completion .complet_content img {
  max-width: 120px;
  height: auto;
  margin-bottom: 30px;
}

.completion .thanks_ttl {
  font-size: 24px;
  font-weight: 700;
  color: var(--form-color-primary);
  margin-bottom: 30px;
}

.completion .thanks_txt {
  font-size: 15px;
  line-height: 1.8;
  color: var(--form-color-text);
  text-align: left;
  margin: 0 auto;
  max-width: 600px;
}

.completion .thanks_txt .small {
  font-size: 13px;
  color: #666;
  margin-top: 20px;
}

.completion .thanks_txt bold {
  font-weight: 700;
  color: var(--form-color-primary);
}

.completion .form_submit_button a {
  display: inline-block;
  background: var(--form-color-primary);
  color: #fff;
  text-align: center;
  padding: 12px 50px 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.completion .form_submit_button a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  background: var(--form-color-accent);
  color: #fff;
}

@media (max-width: 768px) {
  .completion .head {
    padding: 20px;
  }

  .completion .head .logo {
    max-width: 150px;
  }

  .completion section {
    padding: 40px 16px;
  }

  .completion .section__ttl h1 {
    font-size: 24px;
  }

  .completion .complet_content {
    padding: 30px 20px;
  }

  .completion .complet_content img {
    max-width: 100px;
  }

  .completion .thanks_ttl {
    font-size: 20px;
  }

  .completion .thanks_txt {
    font-size: 14px;
  }

  .completion .form_submit_button a {
    font-size: var(--font-xs);
    padding: 12px 45px 12px 25px;
  }
}

@media (max-width: 1023px) {
  .place span,
  .check_label span {
    word-break: break-all;
    white-space: normal;
  }

  .list-2col {
    grid-template-columns: 1fr;
  }

  .list-2col .inputWrapper {
    width: 100%;
  }

  .input_short {
    width: 80px;
  }

  .select_short {
    width: 100px;
  }

  .select_3 {
    width: 80px;
    font-size: var(--font-xs);
  }

  .form {
    font-size: var(--font-xs);
  }

  .form dt {
    font-size: var(--font-xs);
  }

  .form input[type="text"],
  .form input[type="email"],
  .form select {
    font-size: var(--font-xs);
  }

  .form_submit_button {
    font-size: var(--font-xs);
  }

  .terms_area {
    font-size: var(--font-xs);
  }

  .terms_area_ttl {
    font-size: var(--font-sm);
  }

  .alert_txt {
    font-size: var(--font-xs);
  }

  .check_label {
    font-size: var(--font-xs);
  }

  .denji {
    font-size: var(--font-xs);
  }

  .note {
    font-size: var(--font-xs);
  }

  .mfp_err {
    font-size: var(--font-xs);
  }

  .radio_label {
    font-size: var(--font-xs);
    margin-right: 10px;
  }

  .born__wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .born__wrapper .selectWrap {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .born__wrapper .select_3 {
    flex: 1;
    min-width: auto;
  }

  .others_ttl {
    font-size: var(--font-xs);
  }

  #search_result3 {
    font-size: var(--font-xs);
  }

  .form-help-link {
    font-size: var(--font-xs);
  }

  .section__ttl h1 {
    font-size: var(--font-xl);
  }

  .section__ttl_sub {
    font-size: 1.1rem;
  }

  .type_label {
    font-size: 10px;
    padding: 2px 5px;
  }

  .place label {
    font-size: var(--font-xs);
  }

  .form dd {
    font-size: var(--font-xs);
  }

  .form_note {
    font-size: var(--font-xs);
  }
}
