/* Asia/Tokyo, 2025-10-14 20:12(UTC+09:00) css/request.css */
.request-section {
  padding: 0 0 2rem;
}
.form-fieldset {
  border: 1px solid var(--formL-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 0.5rem;
  background: #fff;
  font-size: 1.8rem;
}
.form-fieldset[disabled] {
  opacity: 0.45;
}
.form-fieldset > legend {
  font-weight: 700;
  color: #0057a4;
  padding: 0 0.4rem;
  font-size: 2rem;
  margin: 0;
}
.note {
  color: #383838;
  margin: 0.4rem 0 0;
  font-size: var(--fs-small);
}
.note--lead {
  margin: -1.5rem 0rem 1.5rem;
  align-items: left;
}
.note-inline {
  color: #0a8f59;
}
.form-row:has(#purpose) .note-inline {
  font-weight: 400;
  margin-top: 0.2rem;
  margin-bottom: 0;
}
label {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: var(--fs-small);
}

/* Extra spacing above the '住所の続き' label */
label[for="addressRest"] {
  margin-top: 0.6rem;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--form-border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
input[type="number"].field-wide {
  width: var(--field-wide);
  max-width: 100%;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  gap: 0.8rem;
  align-items: center;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.zip-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto 80px auto 100px;
  gap: 0.6rem;
  align-items: center;
  justify-content: start;
}
#zip-msg {
  margin-top: 0.5rem;
}
.field-prompt,
.form-error {
  color: #c60000;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-top: 0.4rem;
}
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);
}
:root {
  --field-wide: 320px;
}
.field-wide {
  width: var(--field-wide);
  max-width: 100%;
}
input[type="number"].field-wide {
  width: var(--field-wide);
  max-width: 100%;
}
.build-grid select {
  width: auto;
  min-width: 8ch;
}
@media (min-width: 769px) {
  .build-grid {
    column-gap: 0.2rem;
  }
}
.kouzou-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.kouzou-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kouzou-arrow {
  font-size: var(--fs-small);
  opacity: 0.9;
  line-height: 1;
}
.kouzou-extra {
  display: grid;
  grid-auto-flow: row;
  gap: 0.4rem;
}
.kouzou-note {
  color: #444;
}
.tokuyaku-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 768px) {
  .tokuyaku-list {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}
@media (max-width: 768px) {
  .tokuyaku-list {
    grid-template-columns: 1fr;
  }
}
.tokuyaku-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.tokuyaku-item input[type="checkbox"] {
  margin-top: 0.5rem;
}
.tokuyaku-name {
  display: block;
  font-weight: 700;
  margin-right: 0.25rem;
}
.tokuyaku-desc {
  display: block;
  color: #444;
  font-size: var(--fs-small);
  margin-top: 0.2rem;
}
.matrix-wrapper {
  margin: 1rem 0;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: var(--fs-small);
  position: relative;
}
.matrix-table th,
.matrix-table td {
  border: 1px solid #bcd8ef;
  padding: 0.6rem 0.8rem;
  text-align: center;
}
.matrix-table thead th {
  background: #e8f5ff;
  font-weight: 700;
}
.matrix-table tbody th {
  text-align: left;
  background: #f9fcff;
}
.matrix-table .qq-click.balloon-hint {
  text-decoration: underline dotted;
  cursor: help;
}
.baloon {
  position: absolute;
  transform: translate(6px, -6px);
  padding: 1.2rem 2.6rem 1.2rem 1.2rem;
  background: #fffef7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #333;
  max-width: min(92vw, 420px);
  z-index: 2000;
  text-align: left;
  overflow: visible;
}
.baloon--info {
  background: #fffef7;
}
.baloon--hosho {
  background: #fffef7;
}
.baloon--qq {
  font-size: var(--fs-small);
}
.matrix-table tbody th.balloon-hint {
  text-decoration: underline dotted;
  cursor: help;
}
.baloon-list {
  margin: 0.2rem 0 0.2rem 1.2em;
  padding: 0;
  list-style: disc;
}
@media (max-width: 600px) {
  .baloon {
    max-width: 50vw;
    max-height: 150svh;
    overflow: auto;
    text-align: left;
  }
  .baloon--qq {
    max-width: 80vw;
    min-width: 80px;
    max-height: 70svh;
    overflow: auto;
    text-align: left;
  }
}
.form-actions {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #12b36e, #0e8e59);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(8, 120, 73, 0.25), 0 2px 6px rgba(8, 120, 73, 0.18);
  transition: transform 0.06s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-submit--xl {
  padding: 1.3rem 2.6rem;
  font-size: 1.8rem;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(8, 120, 73, 0.28), 0 3px 8px rgba(8, 120, 73, 0.2);
}
.btn-submit:active {
  transform: translateY(0);
  opacity: 0.9;
}
.btn-submit--alert {
  background: #c9302c !important;
  color: #ffe680 !important;
}
.btn-submit--needs-test {
  background: #c9302c !important;
  color: #ffeb3b !important;
  border-color: #b71c1c !important;
  opacity: 0.75;
  cursor: not-allowed;
}
.btn-submit--needs-test:hover,
.btn-submit--needs-test:active {
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.75 !important;
}
.legal-title {
  margin-top: 1.6rem;
}
#legal-caution-title {
  margin-bottom: 1.2rem;
}
.note--center {
  text-align: center;
}
.note.legal-note.note--center {
  margin: 1.6rem 0;
}
.testmail-note {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: #333;
}
.testmail-note--next .next-strong {
  color: #0a8f59;
  font-weight: 700;
}
.testmail-actions {
  margin-top: 0.6rem;
}
.btn-testmail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  margin: 0.2rem 0rem 0rem;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  background: var(--accent-green, #0075c9);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.06s ease, opacity 0.2s ease, background 0.15s ease;
}
.btn-testmail:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.btn-testmail:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-testmail--success {
  background: #12b36e;
}
.testmail-result {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.spam-red {
  color: #c60000;
  font-weight: 700;
}
.submit-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.submit-overlay.is-show {
  opacity: 1;
}
.submit-overlay__inner {
  text-align: center;
}
.submit-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--brand, #117713);
  animation: rqs-spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}
.submit-text {
  font-size: 1.7rem;
  color: #333;
  font-weight: 700;
  letter-spacing: 0.04em;
}
@keyframes rqs-spin {
  to { transform: rotate(360deg); }
}
.form-row > * {
  min-width: 0;
}
#coverageAmount {
  width: min(var(--field-wide), 100%);
  max-width: 100%;
}
.field-wide {
  width: 100%;
  max-width: var(--field-wide);
}
input[type="number"].field-wide {
  width: 100%;
  max-width: var(--field-wide);
}
.zip-grid {
  width: 100%;
  grid-template-columns: min-content minmax(6ch, 1fr) min-content minmax(7ch, 1fr);
  gap: 0.6rem;
  align-items: center;
}
.zip-grid > * {
  min-width: 0;
}
.zip-grid input[type="text"] {
  width: 100%;
}
@media (max-width: 360px) {
  .zip-grid {
    grid-template-columns: min-content minmax(5.5ch, 1fr) min-content minmax(6.5ch, 1fr);
    gap: 0.4rem;
  }
}
.kouzou-row {
  align-items: stretch;
}
.kouzou-main {
  width: 100%;
}
.kouzou-main select.field-wide {
  flex: 1 1 var(--field-wide);
  min-width: 0;
  max-width: 100%;
}
#planRental1,
#planRental2,
#planRental3,
#planHouse1,
#planHouse2 {
  text-align: center;
  text-align-last: center;
}
#planRental1 option,
#planRental2 option,
#planRental3 option,
#planHouse1 option,
#planHouse2 option {
  text-align: center;
}
@-moz-document url-prefix() {
  #planRental1,
  #planRental2,
  #planRental3,
  #planHouse1,
  #planHouse2 {
    text-align: center;
    text-align-last: center;
  }
}
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  select,
  textarea {
    padding: 0.5rem 0.6rem;
  }
}
@media (min-width: 769px) {
  .zip-grid {
    grid-template-columns: min-content max-content min-content max-content;
    justify-content: start;
  }
  .zip-grid input[type="text"] {
    width: auto;
    inline-size: auto;
  }
  #zip3 { max-width: 6ch; font-variant-numeric: tabular-nums; }
  #zip4 { max-width: 8ch; font-variant-numeric: tabular-nums; }
}
.caution {
  text-align: center;
  font-size: 1.5rem;
}
.matrix-table :is(.qq-click, tbody th.balloon-hint) {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: .18em;
  cursor: help;
}
@supports not (text-decoration-style: dotted) {
  .matrix-table :is(.qq-click, tbody th.balloon-hint) {
    text-decoration: none;
    position: relative;
  }
  .matrix-table :is(.qq-click, tbody th.balloon-hint)::before {
    content: "";
    position: absolute;
    left: .1em;
    right: .1em;
    bottom: .2em;
    height: 2px;
    background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
    background-size: .6em 2px;
    background-repeat: repeat-x;
    pointer-events: none;
  }
}
@media (hover: none) and (pointer: coarse) {
  .matrix-table :is(.qq-click, tbody th.balloon-hint) {
    position: relative;
    padding-right: 2em;
  }
  .matrix-table :is(.qq-click, tbody th.balloon-hint)::after {
    content: "i";
    position: absolute;
    top: 50%;
    right: .6em;
    transform: translateY(-50%);
    width: 1.4em; height: 1.4em;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    opacity: .82;
  }
  .matrix-table :is(.qq-click, tbody th.balloon-hint):active::after {
    transform: translateY(-50%) scale(.94);
    opacity: .7;
  }
}
.lock-after-email {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
#requestForm[data-locked-after-email='1'] #sendBtn {
  opacity: 0.6;
  cursor: not-allowed;
}
.testmail-next-msg__lead {
  color: var(--brand, #117713);
  font-weight: 700;
}
