/* Asia/Tokyo, 2025-09-16 21:15(UTC+09:00) | css/application.css */
.hero-box h1 {
  color: #004728;
}
#enterresidentinfo {
  margin-top: 0.4rem;
}
#holderPhoneP1,
#holderPhoneP2,
#holderPhoneP3 {
  width: auto;
  max-width: 110px;
}
.phone-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
.phone-compact input {
  width: 6.5ch;
  min-width: 5ch;
}
.zip-msg {
  margin-top: 0.5rem;
}
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #d93025;
  background: #fff6f6;
  box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.12);
}
#applicationForm .btn-submit--alert {
  /* CHANGE: 4) scope alert submit button */
  background: #c9302c !important;
  color: #ffe680 !important;
}
.grid-3.stack-vertical {
  display: block;
}
.grid-3.stack-vertical > div + div {
  margin-top: 1rem;
}
#planPremiumYen,
#planPayCycle,
#planPayMethod {
  width: min(100%, 260px);
}
.pay-arrow {
  font-size: 2rem;
  line-height: 1;
  margin-top: 1rem;
  margin-bottom: 0rem;
  margin-left: 10rem;
  color: #960000;
}
.startdate-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.startdate-compact select {
  width: auto;
  min-width: 6ch;
}
.startdate-compact select:disabled {
  opacity: 0.5;
}
.birth-inline {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
.birth-inline .ymd-sep {
  line-height: 1;
}
#propAddressFull,
#holderAddressFull {
  border: 0;
  background: transparent;
  padding-left: 0;
  outline: 0;
  font-weight: 600;
}
.form-row--inline label {
  display: inline-block;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.form-row--inline input[readonly] {
  display: inline-block;
  vertical-align: middle;
  width: auto;
}
.form-row--inline .zip-grid {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.6rem;
  flex-wrap: wrap;
}
.form-row--inline .zip-grid > #propZip3,
.form-row--inline .zip-grid > #propZip4,
.form-row--inline .zip-grid > span[aria-hidden="true"] {
  flex: 0 0 auto;
  white-space: nowrap;
}
.form-row--inline .zip-grid > #propAddressFull {
  display: block;
  flex: 1 1 100%;
  min-width: 100%;
  width: 100%;
  margin-top: 0.4rem;
}
#addressinfo .form-row .zip-grid {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.6rem;
  flex-wrap: wrap;
}
#addressinfo .form-row .zip-grid > #holderAddressZip3,
#addressinfo .form-row .zip-grid > #holderAddressZip4,
#addressinfo .form-row .zip-grid > span[aria-hidden="true"] {
  flex: 0 0 auto;
  white-space: nowrap;
}
#addressinfo .form-row .zip-grid > #holderAddressFull {
  display: block;
  flex: 1 1 100%;
  min-width: 100%;
  width: 100%;
  margin-top: 0.4rem;
}
#propZip3,
#propZip4,
#holderAddressZip3,
#holderAddressZip4 {
  text-align: center;
}

/* ラベルのドット下線＋アイコン撤廃 */
.help-anchor {
  position: relative;
}
label[for="planPremiumYen"].helpable {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: help;
}
label[for="planPremiumYen"].helpable::after {
  content: none;
}
label[for="planPremiumYen"].helpable:focus-visible {
  outline: var(--focus-ring, 3px solid rgba(0, 117, 201, 0.6));
  outline-offset: 2px;
}

/* ツールチップ */
.help-tooltip {
  position: absolute;
  z-index: 2300;
  left: 0;
  top: calc(100% + 0.4rem);
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: 0.8rem 1rem;
  width: min(92vw, 440px);
  font-size: 1.6rem;
  color: #333;
}
.help-tooltip__text {
  margin: 0;
}
.help-tooltip__img {
  display: block;
  margin-top: 0.8rem;
  max-width: 100%;
  height: auto;
}
.help-tooltip[hidden] {
  display: none !important;
}

/* ここまで：ビジュアル支援 */
#residenceStatus,
#holderSex,
#addrRelation,
#residentRelation {
  width: auto;
}
#propAreaSqm {
  width: auto;
}
.text-blue {
  color: #0075c9;
}

/* PC時：郵便番号の幅を6chに統一 */
@media (min-width: 769px) {
  .birth-inline {
    gap: 0.3rem;
  }
  .birth-inline input,
  .birth-inline select {
    flex: 0 0 auto;
    text-align: center;
  }
  .birth-inline select {
    text-align-last: center;
  }
  #holderBirthEra {
    width: 11ch;
  }
  #holderBirthYear {
    width: 11ch;
  }
  #holderBirthMonth,
  #holderBirthDay {
    width: 11ch;
  }
  .birth-inline input {
    font-variant-numeric: tabular-nums;
  }
  #holderSex {
    width: 11ch;
  }
  #addrRelation,
  #residentRelation {
    width: fit-content;
    min-width: 0;
  }
  #propZip3,
  #propZip4,
  #holderAddressZip3,
  #holderAddressZip4 {
    width: 6ch;
  }
}

@media (max-width: 769px) {
  .birth-inline {
    gap: 0.1rem;
  }
  .zip-grid {
    flex-wrap: nowrap;
  }
  #propZip3,
  #propZip4,
  #holderAddressZip3,
  #holderAddressZip4 {
    width: 7ch;
  }
  .zip-grid span[aria-hidden="true"] {
    margin: 0 0.3rem;
  }
  #propAddressFull,
  #holderAddressFull {
    flex: 1 1 100%;
    min-width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

.addr-candidates {
  position: fixed;
  z-index: 2200;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: 0.6rem;
  max-height: 60vh;
  overflow: auto;
  min-width: 260px;
}
.addr-candidates button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 1.6rem;
  line-height: 1.35;
}
.addr-candidates button:hover,
.addr-candidates button:focus {
  background: #f2f7ff;
  outline: none;
}
.zip-info {
  margin-top: 0.4rem;
  color: #cc0000;
  font-size: 1.6rem;
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
.submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: opacity 0.2s ease;
}
.submit-overlay.is-show {
  display: flex;
}
.submit-overlay__inner {
  display: grid;
  gap: 0.8rem;
  align-items: center;
  justify-items: center;
  padding: 1.6rem 2rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.submit-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid #e0e0e0;
  border-top-color: #117713;
  animation: spin 1s linear infinite;
}
.submit-text {
  font-weight: 700;
  color: #117713;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#startdate-error,
#phone-error,
#birth-error {
  margin-top: 0.4rem;
}
.zip-grid + .field-prompt,
.phone-compact + .field-prompt {
  margin-top: 0.4rem;
}
#propAddressFull,
#holderAddressFull {
  width: 100%;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 2.4em;
}
#addressinfo .form-row + .form-row {
  margin-top: 0.4rem;
}

#holderPhoneP1,
#holderPhoneP2,
#holderPhoneP3,
#startYear,
#startMonth,
#startDay {
  text-align: center;
  text-align-last: center;
}
.form-row {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.grid-2 label,
.form-row label {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
input,
select,
textarea {
  margin-top: 0;
  margin-bottom: 0;
}
#applicationForm p.note {
  text-align: center;
}
@media (min-width: 769px) {
  #residenceStatus,
  #propAreaSqm {
    width: 22ch;
  }
}
