@charset "utf-8";

/* =========================================================
   05. COMMON
========================================================= */
.form-anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

.sponly {
  display: none;
}

.pconly {
  display: inline;
}

/* =========================================================
   06. SERVICE REQUIREMENTS
   サービス要項 全体
========================================================= */
.youkou-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 14px 56px;
  box-sizing: border-box;
  position: relative;
}

.youkou-section.bg-bk {
  background: transparent;
}

/* =========================================================
   07. SERVICE LOGO AREA
   要項上部ロゴ
========================================================= */
.youkou-logo-area {
  position: relative;
  margin: 0;
  padding: 22px 20px 20px;
  text-align: center;
  background:
    radial-gradient(
      circle at top center,
      rgba(255, 225, 0, 0.18),
      transparent 42%
    ),
    linear-gradient(180deg, #1b1b1b 0%, #070707 100%);
  border: 5px solid var(--req-black);
  border-bottom: none;
  box-shadow:
    0 0 0 4px #d6a400,
    0 0 0 8px #1b1b1b;
  overflow: hidden;
}

.youkou-logo-area::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -35%;
  width: 24%;
  height: 160%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(14deg);
  animation: youkou-logo-shine 4.8s ease-in-out infinite;
  pointer-events: none;
}

.youkou-service-logo {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255, 225, 0, 0.18));
  transform-origin: center;
  animation:
    youkou-logo-float 3.6s ease-in-out infinite,
    youkou-logo-glow 2.8s ease-in-out infinite;
}

@keyframes youkou-logo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.01);
  }
}

@keyframes youkou-logo-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 225, 0, 0.15));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(255, 225, 0, 0.28));
  }
}

@keyframes youkou-logo-shine {
  0%,
  70%,
  100% {
    left: -35%;
    opacity: 0;
  }

  15% {
    opacity: 0.45;
  }

  35% {
    left: 115%;
    opacity: 0;
  }
}

/* =========================================================
   08. SERVICE REQUIREMENTS HEADING
========================================================= */
.youkou-heading {
  position: relative;
  margin: 0;
  padding: 24px 18px 22px;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 900;
  color: #111111;
  line-height: 1.3;
  letter-spacing: 0.08em;
  background: linear-gradient(
    180deg,
    #fff8a8 0%,
    #ffe100 36%,
    #d6a400 72%,
    #9a6500 100%
  );
  border: 5px solid var(--req-black);
  border-radius: 0;
  text-shadow: none;
  box-shadow:
    0 0 0 4px #d6a400,
    0 0 0 8px #1b1b1b;
}

.youkou-heading::after {
  content: none;
}

/* =========================================================
   09. SERVICE REQUIREMENTS TABLE
========================================================= */
.youkou-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background:
    radial-gradient(
      circle at top center,
      rgba(255, 225, 0, 0.16),
      transparent 34%
    ),
    linear-gradient(180deg, #1b1b1b 0%, #070707 100%);
  border-left: 5px solid var(--req-black);
  border-right: 5px solid var(--req-black);
  border-bottom: 5px solid var(--req-black);
  border-radius: 0 0 18px 18px;
  box-shadow:
    0 0 0 4px var(--req-gold),
    0 0 0 8px var(--req-dark),
    0 14px 0 var(--req-black),
    0 24px 34px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* 各要項ボックス：隙間をほぼゼロ、角丸なし */
.youkou-table tr {
  display: block;
  margin: 0 20px;
  background: #ffffff;
  border-left: 4px solid var(--req-black-soft);
  border-right: 4px solid var(--req-black-soft);
  border-bottom: 4px solid var(--req-black-soft);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.youkou-table tr:first-child {
  margin-top: 22px;
  border-top: 4px solid var(--req-black-soft);
}

.youkou-table tr:last-child {
  margin-bottom: 22px;
}

.youkou-table th {
  display: block;
  width: auto;
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 1.8rem;
  font-weight: 900;
  color: #111111;
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: normal;
  background: linear-gradient(180deg, #fff8a8 0%, #ffe100 46%, #d6a400 100%);
  border-top: 4px solid #111111;
  text-shadow: none;
}

.youkou-table td {
  display: block;
  padding: 16px 18px 18px;
  font-size: 1.06rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.85;
  letter-spacing: 0.02em;
  background: #ffffff;
}

.youkou-table td .price {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: #c40000;
  text-shadow: none;
}

.youkou-table td .price-tax {
  display: inline-block;
  margin-left: 4px;
  font-size: 1rem;
  font-weight: 900;
  color: #111111;
}

.youkou-table td .note-block {
  margin-top: 14px;
  padding: 14px 16px 16px;
  background: #f3f0e4;
  border: 3px solid #111111;
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.youkou-table td .note-block:first-child {
  margin-top: 0;
}

.youkou-table td .note-title {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 900;
  color: #8a0000;
  line-height: 1.5;
}

.youkou-table td .note-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #333333;
  line-height: 1.8;
}

/* HTML側の既存インラインstyle補正 */
.youkou-table td .note-block[style] {
  margin-top: 0 !important;
  padding-top: 14px !important;
  border-top: 3px solid #111111 !important;
}

/* =========================================================
   10. FORM SECTION
========================================================= */
.form-section {
  max-width: 900px;
  margin: 0px auto;
  padding: 0 14px 56px;
  box-sizing: border-box;
}

.form-outer {
  position: relative;
  background: #ffe100;
  border: 5px solid var(--req-black);
  overflow: hidden;
  box-shadow:
    0 0 0 4px var(--req-gold),
    0 0 0 8px var(--req-dark),
    0 14px 0 var(--req-black),
    0 24px 34px rgba(0, 0, 0, 0.7);
}

.form-header {
  position: relative;
  padding: 24px 18px 22px;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 900;
  color: #111111;
  line-height: 1.35;
  letter-spacing: 0.08em;
  background: linear-gradient(
    180deg,
    #fff8a8 0%,
    #ffe100 36%,
    #d6a400 72%,
    #9a6500 100%
  );
  border-bottom: 5px solid var(--req-black);
  text-shadow: none;
}

.form-body {
  background:
    radial-gradient(
      circle at top center,
      rgba(255, 225, 0, 0.16),
      transparent 34%
    ),
    linear-gradient(180deg, #1b1b1b 0%, #070707 100%);
  padding: 40px 34px 46px;
}

/* =========================================================
   11. FORM STEP CARD
========================================================= */
.form-step {
  position: relative;
  margin-bottom: 34px;
  padding: 24px 22px 26px;
  background: #ffffff;
  border: 4px solid #dbac03;
  border-radius: 14px;
  box-shadow:
    0 0 0 3px #774f00,
    7px 7px 0 #070707;
}

.form-step:last-of-type {
  margin-bottom: 0;
}

.form-step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #111111;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.form-step-label .label-text {
  display: inline-block;
  line-height: 1.45;
  font-size: 1.4rem;
}

.form-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #111111;
  background: linear-gradient(180deg, #fff47a 0%, #ffe100 54%, #c89100 100%);
  border: 3px solid #111111;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow:
    0px 1px 0 #d6a400,
    0px 3px 0 #050505;
}

.form-step-note {
  display: block;
  margin: 0 0 14px 58px;
  font-size: 1rem;
  font-weight: 800;
  color: #9a0000;
  line-height: 1.6;
}

/* =========================================================
   12. INPUT / ERROR
========================================================= */
.form-input {
  width: 100%;
  padding: 18px 18px;
  font-size: 1.22rem;
  font-weight: 900;
  color: #111111;
  border: 4px solid var(--req-black-soft);
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 2px #fff3a0,
    4px 4px 0 #7a7a7a;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.form-input::placeholder {
  color: #5f4b00;
  font-size: 1rem;
  font-weight: 800;
  opacity: 1;
}

.form-input:focus {
  border-color: #d6a400;
  background: linear-gradient(180deg, #fff9bf 0%, #ffe978 42%, #f6cd1e 100%);
  box-shadow:
    inset 0 0 0 2px #fff7c6,
    0 0 0 4px rgba(255, 217, 0, 0.28),
    4px 4px 0 #555555;
  transform: translateY(-1px);
}

input.form-input,
input.form-input:focus,
input.form-input:active {
  color: #111111;
  -webkit-text-fill-color: #111111;
}

/* オートフィル時もメール欄と同デザイン維持 */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-text-fill-color: #111111;
  border: 4px solid var(--req-black-soft);
  border-radius: 10px;
  -webkit-box-shadow:
    inset 0 0 0 2px #fff3a0,
    0 0 0 1000px #ffe45c inset,
    4px 4px 0 #7a7a7a;
  box-shadow:
    inset 0 0 0 2px #fff3a0,
    0 0 0 1000px #ffe45c inset,
    4px 4px 0 #7a7a7a;
  transition: background-color 9999s ease-in-out 0s;
}

.form-error {
  margin-top: 12px;
  padding: 9px 12px;
  color: #ffffff;
  background: #c40000;
  border: 3px solid #111111;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.5;
}

/* =========================================================
   13. PAYMENT SELECT
========================================================= */
.payment-note {
  margin: 0 0 16px 58px;
  font-size: 1rem;
  font-weight: 800;
  color: #333333;
  line-height: 1.75;
}

.payment-options {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.payment-radio {
  display: none;
}

.payment-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 180px;
  min-height: 64px;
  padding: 16px 18px;
  font-size: 1.22rem;
  font-weight: 900;
  color: #111111;
  background: #eeeeee;
  border: 4px solid var(--req-black-soft);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  box-shadow: 5px 5px 0 #555555;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.payment-label:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 #555555;
}

.payment-radio:checked + .payment-label {
  color: #111111;
  background: linear-gradient(180deg, #fff47a 0%, #ffe100 52%, #d99a00 100%);
  border-color: #111111;
  box-shadow:
    0 0 0 3px #d6a400,
    6px 6px 0 #050505;
  font-weight: 900;
  font-size: 1.82rem;
}

.payment-radio:checked + .payment-label::before {
  content: "選択中";
  position: absolute;
  top: -17px;
  right: 12px;
  padding: 4px 12px;
  color: #ffffff;
  background: #c40000;
  border: 2px solid #111111;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.2;
}

/* =========================================================
   14. SUBMIT AREA / CTA
========================================================= */
.form-submit-area {
  text-align: center;
  margin-top: 48px;
  padding-top: 34px;
  border-top: 4px dashed #d6a400;
}

.form-submit-guide {
  margin-bottom: 26px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.9;
  text-shadow:
    2px 2px 0 #050505,
    0 0 10px rgba(255, 217, 0, 0.45);
}

.form-submit-guide .arrow-down {
  color: #ffe100;
  font-size: 1.35em;
}

.form-submit-btn {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 620px;
  min-height: 118px;
  padding: 26px 30px 24px;
  font-size: 2.8rem;
  font-weight: 900;
  color: #111111;
  background: linear-gradient(
    180deg,
    #fff8a8 0%,
    #ffe100 36%,
    #d6a400 72%,
    #9a6500 100%
  );
  border: 5px solid var(--req-black);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-shadow: none;
  box-shadow:
    0 0 0 5px var(--req-gold),
    0 0 0 10px var(--req-black),
    0 13px 0 var(--req-gold-dark),
    0 24px 28px rgba(0, 0, 0, 0.65);
  overflow: visible;

  /* 通常時の倍率 */
  --cta-hover-scale: 1;

  animation: eldora-cta-pop 1.8s ease-in-out infinite;
  transition:
    opacity 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.form-submit-btn::before {
  content: "今すぐ参加手続きへ";
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  white-space: nowrap;
  padding: 6px 22px;
  color: #ffffff;
  background: #c40000;
  border: 3px solid #111111;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 3px 3px 0 #050505;
  z-index: 40;
}

.form-submit-btn::after {
  content: "";
  position: absolute;
  inset: 10px 18px auto 18px;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.form-submit-btn:hover {
  /* hover時だけ少し大きく */
  --cta-hover-scale: 1.055;

  box-shadow:
    0 0 0 5px var(--req-gold),
    0 0 0 10px var(--req-black),
    0 17px 0 var(--req-gold-dark),
    0 30px 34px rgba(0, 0, 0, 0.72);

  /* 少し薄くする */
  opacity: 0.88;
  filter: brightness(1.04);
}

.form-submit-btn:active {
  animation: none;
  transform: scale(0.98) translateY(8px);
  box-shadow:
    0 0 0 5px var(--req-gold),
    0 0 0 10px var(--req-black),
    0 5px 0 var(--req-gold-dark),
    0 14px 20px rgba(0, 0, 0, 0.65);
  opacity: 0.95;
}

.form-submit-btn span {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: #6f0000;
  opacity: 1;
  text-shadow: none;
}

@keyframes eldora-cta-pop {
  0%,
  100% {
    transform: scale(calc(var(--cta-hover-scale) * 1));
  }

  50% {
    transform: scale(calc(var(--cta-hover-scale) * 1.025));
  }
}

/* =========================================================
   15. RESPONSIVE
========================================================= */
@media screen and (max-width: 768px) {
  .sponly {
    display: inline;
  }

  .pconly {
    display: none;
  }

  /* ---------- 要項 ---------- */
  .youkou-section {
    padding: 0 10px 46px;
  }

  .youkou-logo-area {
    padding: 16px 12px 14px;
    border-width: 4px;
    box-shadow:
      0 0 0 3px #d6a400,
      0 0 0 6px #1b1b1b;
  }

  .youkou-service-logo {
    max-width: 92%;
  }

  .youkou-heading {
    padding: 20px 12px 18px;
    font-size: 1.65rem;
    line-height: 1.3;
    letter-spacing: 0.05em;
    border-width: 4px;
    box-shadow:
      0 0 0 3px #d6a400,
      0 0 0 6px #1b1b1b;
  }

  .youkou-heading::before {
    font-size: 0.78rem;
  }

  .youkou-table {
    border-left-width: 4px;
    border-right-width: 4px;
    border-bottom-width: 4px;
    border-radius: 0 0 14px 14px;
    box-shadow:
      0 0 0 3px var(--req-gold),
      0 0 0 6px var(--req-dark),
      0 10px 0 var(--req-black),
      0 18px 24px rgba(0, 0, 0, 0.7);
  }

  .youkou-table,
  .youkou-table tbody,
  .youkou-table tr,
  .youkou-table th,
  .youkou-table td {
    display: block;
    width: auto;
  }

  .youkou-table tr {
    margin: 0 12px;
    border-left-width: 3px;
    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .youkou-table tr:first-child {
    margin-top: 14px;
    border-top: 3px solid var(--req-black-soft);
  }

  .youkou-table tr:last-child {
    margin-bottom: 14px;
  }

  .youkou-table th {
    padding: 12px 14px;
    font-size: 1.4rem;
    line-height: 1.45;
    border-bottom-width: 3px;
  }

  .youkou-table td {
    padding: 14px 14px 16px;
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .youkou-table td .price {
    font-size: 1.72rem;
  }

  .youkou-table td .price-tax {
    font-size: 0.92rem;
  }

  .youkou-table td .note-block {
    padding: 13px 12px 14px;
    border-width: 3px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  }

  .youkou-table td .note-title {
    font-size: 0.94rem;
  }

  .youkou-table td .note-text {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  /* ---------- フォーム ---------- */
  .form-section {
    padding: 0 10px 46px;
  }

  .form-outer {
    border-width: 4px;
    box-shadow:
      0 0 0 3px var(--req-gold),
      0 0 0 6px var(--req-dark),
      0 10px 0 var(--req-black),
      0 18px 24px rgba(0, 0, 0, 0.7);
  }

  .form-header {
    padding: 21px 12px 19px;
    font-size: 1.65rem;
    letter-spacing: 0.06em;
    border-bottom-width: 4px;
  }

  .form-header::before {
    font-size: 0.78rem;
  }

  .form-body {
    padding: 30px 16px 38px;
  }

  .form-step {
    margin-bottom: 30px;
    padding: 19px 15px 23px;
    border: 3px solid #dbac03;
    border-radius: 12px;
    box-shadow:
      0 0 0 2px #774f00,
      5px 5px 0 #070707;
  }

  .form-step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .form-step-label .label-text {
    display: inline-block;
    line-height: 1.45;
    padding-top: 0;
    margin-top: 0;
  }

  .form-step-num {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
    border-width: 3px;
    flex-shrink: 0;
    margin-top: 0;
    border: 2px solid #111111;
    box-shadow:
      0px 1px 0 #d6a400,
      0px 1px 0 #050505;
  }

  .form-step-note,
  .payment-note {
    margin-left: 0;
    font-size: 0.92rem;
  }

  .form-input {
    padding: 16px 14px;
    font-size: 1.05rem;
    border-width: 3px;
    border-radius: 9px;
    box-shadow:
      inset 0 0 0 2px #fff3a0,
      3px 3px 0 #7a7a7a;
  }

  .form-input:-webkit-autofill,
  .form-input:-webkit-autofill:hover,
  .form-input:-webkit-autofill:focus,
  .form-input:-webkit-autofill:active {
    border-width: 3px;
    border-radius: 9px;
    -webkit-box-shadow:
      inset 0 0 0 2px #fff3a0,
      0 0 0 1000px #ffe45c inset,
      3px 3px 0 #7a7a7a;
    box-shadow:
      inset 0 0 0 2px #fff3a0,
      0 0 0 1000px #ffe45c inset,
      3px 3px 0 #7a7a7a;
  }

  .payment-options {
    flex-direction: column;
    gap: 14px;
  }

  .payment-label {
    min-width: auto;
    min-height: 60px;
    font-size: 1.08rem;
    border-width: 3px;
  }

  .form-submit-area {
    margin-top: 42px;
    padding-top: 30px;
  }

  .form-submit-guide {
    font-size: 1.08rem;
  }

  .form-submit-btn {
    max-width: 100%;
    min-height: 106px;
    padding: 25px 16px 21px;
    font-size: 2.3rem;
    border-width: 4px;
    border-radius: 999px;
    box-shadow:
      0 0 0 4px #d6a400,
      0 0 0 8px #050505,
      0 10px 0 #4a3100,
      0 20px 24px rgba(0, 0, 0, 0.65);
  }

  .form-submit-btn::before {
    top: -20px;
    padding: 5px 16px;
    font-size: 1.2rem;
  }

  .form-submit-btn span {
    font-size: 1.65rem;
  }
}

/* =========================================================
   16. INPUT DESIGN FORCE OVERRIDE
   メールアドレス欄・ニックネーム欄のデザイン統一
   ※ブラウザのオートフィルで名前欄だけグレーになる対策
========================================================= */

/* 通常時：メール・名前どちらも同じ金色入力欄に固定 */
.form-section form input.form-input,
.form-section form input.form-input[type="text"],
.form-section form input.form-input[type="email"],
.form-section form input.form-input[name="mail_address"],
.form-section form input.form-input[name="name"] {
  width: 100%;
  padding: 18px 18px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: #fffcec !important;
  border: 4px solid var(--req-black-soft) !important;
  border-radius: 10px !important;
  outline: none;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 2px #cc9c00,
    0px 0px 0px 2px #7c5f00,
    4px 4px 0 #303030 !important;
  appearance: none;
  -webkit-appearance: none;
}

/* フォーカス時も同じ方向性で統一 */
.form-section form input.form-input:focus,
.form-section form input.form-input[type="text"]:focus,
.form-section form input.form-input[type="email"]:focus,
.form-section form input.form-input[name="mail_address"]:focus,
.form-section form input.form-input[name="name"]:focus {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: linear-gradient(
    180deg,
    #fff9bf 0%,
    #ffe978 42%,
    #f6cd1e 100%
  ) !important;
  border-color: #ee544f !important;
  box-shadow:
    inset 0 0 0 2px #88110d,
    0 0 0 2px rgba(255, 51, 0, 0.671),
    4px 4px 0 #555555 !important;
}

/* Chrome / Safari のオートフィル対策 */
.form-section form input.form-input:-webkit-autofill,
.form-section form input.form-input:-webkit-autofill:hover,
.form-section form input.form-input:-webkit-autofill:focus,
.form-section form input.form-input:-webkit-autofill:active,
.form-section form input.form-input[name="name"]:-webkit-autofill,
.form-section form input.form-input[name="name"]:-webkit-autofill:hover,
.form-section form input.form-input[name="name"]:-webkit-autofill:focus,
.form-section form input.form-input[name="name"]:-webkit-autofill:active {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;

  /*
      オートフィル背景は background だけでは消えないことがあるため、
      1000px inset の box-shadow で金色背景を強制上書き
    */
  -webkit-box-shadow:
    inset 0 0 0 2px #fff3a0,
    0 0 0 1000px #ffe45c inset,
    4px 4px 0 #7a7a7a !important;
  box-shadow:
    inset 0 0 0 2px #fff3a0,
    0 0 0 1000px #ffe45c inset,
    4px 4px 0 #7a7a7a !important;

  border: 4px solid var(--req-black-soft) !important;
  border-radius: 10px !important;
  caret-color: #111111;
  transition: background-color 9999s ease-in-out 0s;
}

/* Firefox系のオートフィル対策 */
.form-section form input.form-input:autofill,
.form-section form input.form-input[name="name"]:autofill {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: #ffe45c !important;
  border: 4px solid var(--req-black-soft) !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 0 0 2px #fff3a0,
    4px 4px 0 #7a7a7a !important;
}

/* SP時も同じ見た目を維持 */
@media screen and (max-width: 768px) {
  .form-section form input.form-input,
  .form-section form input.form-input[type="text"],
  .form-section form input.form-input[type="email"],
  .form-section form input.form-input[name="mail_address"],
  .form-section form input.form-input[name="name"] {
    padding: 16px 14px;
    font-size: 1.3rem;
    border-width: 3px !important;
    border-radius: 9px !important;
  }

  .form-section form input.form-input:-webkit-autofill,
  .form-section form input.form-input:-webkit-autofill:hover,
  .form-section form input.form-input:-webkit-autofill:focus,
  .form-section form input.form-input:-webkit-autofill:active {
    border-width: 3px !important;
    border-radius: 9px !important;
    -webkit-box-shadow:
      inset 0 0 0 2px #fff3a0,
      0 0 0 1000px #ffe45c inset,
      3px 3px 0 #7a7a7a !important;
    box-shadow:
      inset 0 0 0 2px #fff3a0,
      0 0 0 1000px #ffe45c inset,
      3px 3px 0 #7a7a7a !important;
  }
}

/* =========================================================
   16. INTEGRATED REQUIREMENT + FORM LAYOUT
   要項・フォーム一体化レイアウト
   ---------------------------------------------------------
   文言やテーブル行数が増減しても崩れにくいよう、
   外側の .youkou-section を共通パネルとして扱う
========================================================= */

/* 外側全体を1つの大きな申込パネルにする */
.youkou-section {
  max-width: 820px;
  margin: 4px auto;
  padding: 0 14px 56px;
  box-sizing: border-box;
  position: relative;
}

/* ロゴ・要項・フォームを包む共通感を出す */
.youkou-section.bg-bk {
  background: transparent;
}

/* ロゴ部分を一体化パネルの最上部にする */
.youkou-logo-area {
  margin: 0;
  border-bottom: none;
  box-shadow:
    0 0 0 4px #d6a400,
    0 0 0 8px #1b1b1b;
}

/* サービス要項見出しはロゴとテーブルの接続パーツにする */
.youkou-heading {
  margin: 0;
  border-radius: 0;
  border-top: 5px solid var(--req-black);
  border-bottom: 5px solid var(--req-black);
  box-shadow:
    0 0 0 4px #d6a400,
    0 0 0 8px #1b1b1b;
}

/* 要項テーブル下に余白を作らず、フォームへ接続 */
.youkou-table {
  border-radius: 0;
  border-bottom: none;
  box-shadow:
    0 0 0 4px #d6a400,
    0 0 0 8px #1b1b1b;
}

/* 要項内の各行は詰める。行数追加にも対応しやすい形 */
.youkou-table tr {
  margin: 0 20px;
  border-radius: 0;
  box-shadow: none;
}

.youkou-table tr:first-child {
  margin-top: 22px;
}

.youkou-table tr:last-child {
  margin-bottom: 22px;
}

/* フォーム全体を要項の続きとして接続 */
.youkou-section .form-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* フォーム外枠は独立カード感を消し、下部パネルとして接続 */
.youkou-section .form-outer {
  border-top: 5px solid var(--req-black);
  box-shadow:
    0 0 0 4px #d6a400,
    0 0 0 8px #1b1b1b,
    0 14px 0 #050505,
    0 24px 34px rgba(0, 0, 0, 0.7);
}

/* フォーム見出しも接続見出しとして扱う */
.youkou-section .form-header {
  border-radius: 0;
  border-top: none;
}

/* フォーム内側は少し余裕を持たせる */
.youkou-section .form-body {
  padding: 42px 34px 54px;
}

/* フォームの各カードは既存の強さを維持 */
.youkou-section .form-step {
  margin-bottom: 34px;
}

/* 最終カードとCTAの距離を少し締める */
.youkou-section .form-step:last-of-type {
  margin-bottom: 0;
}

/* =========================================================
   17. SUBMIT AREA CHARACTER
   申込ボタン右下の予想家イラスト
========================================================= */

.submit-with-character {
  position: relative;
  overflow: visible;
  padding-bottom: 36px;
}

/* ボタンとキャラが重なっても見やすいように少し中央寄せ */
.submit-with-character .form-submit-btn {
  position: relative;
  z-index: 2;
}

/* 予想家イラスト */
.form-character {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: clamp(120px, 18vw, 190px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 10px rgba(255, 225, 0, 0.22));
  transform-origin: bottom right;
  animation: form-character-standby 0.5s ease-in-out infinite;
}

/* 控えめに存在感を出す */
@keyframes form-character-standby {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-2px) rotate(0deg);
  }
}

/* =========================================================
   18. SUBMIT BUTTON ANIMATION
   常時拡大縮小 + hover時に少し大きく少し薄く
========================================================= */

.form-submit-btn {
  --cta-hover-scale: 1;
  animation: eldora-cta-pop 1.8s ease-in-out infinite;
  transition:
    opacity 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.form-submit-btn:hover {
  --cta-hover-scale: 1.055;
  box-shadow:
    0 0 0 5px var(--req-gold),
    0 0 0 10px var(--req-black),
    0 17px 0 var(--req-gold-dark),
    0 30px 34px rgba(0, 0, 0, 0.72);
  opacity: 0.88;
  filter: brightness(1.04);
}

.form-submit-btn:active {
  animation: none;
  transform: scale(0.98) translateY(8px);
  box-shadow:
    0 0 0 5px var(--req-gold),
    0 0 0 10px var(--req-black),
    0 5px 0 var(--req-gold-dark),
    0 14px 20px rgba(0, 0, 0, 0.65);
  opacity: 0.95;
}

@keyframes eldora-cta-pop {
  0%,
  100% {
    transform: scale(calc(var(--cta-hover-scale) * 1));
  }

  50% {
    transform: scale(calc(var(--cta-hover-scale) * 1.025));
  }
}

/* =========================================================
   19. RESPONSIVE ADJUSTMENT
========================================================= */

@media screen and (max-width: 768px) {
  .youkou-section {
    padding: 0 10px 46px;
  }

  .youkou-heading {
    border-radius: 0;
  }

  .youkou-table {
    border-radius: 0;
    border-bottom: none;
  }

  .youkou-table tr {
    margin: 0 12px;
  }

  .youkou-table tr:first-child {
    margin-top: 14px;
  }

  .youkou-table tr:last-child {
    margin-bottom: 14px;
  }

  .youkou-section .form-outer {
    box-shadow:
      0 0 0 3px #d6a400,
      0 0 0 6px #1b1b1b,
      0 10px 0 #050505,
      0 18px 24px rgba(0, 0, 0, 0.7);
  }

  .youkou-section .form-body {
    padding: 30px 16px 42px;
  }

  .submit-with-character {
    padding-bottom: 90px;
  }

  .form-character {
    right: -20px;
    bottom: 12px;
    width: clamp(110px, 24vw, 140px);
  }

  .submit-with-character .form-submit-btn {
    max-width: calc(100% - 34px);
    margin-right: 34px;
  }
}
