/* =============================================================
   お問い合わせフォーム – Contact Page
   ============================================================= */

:root{
  --danger: #E2574C;
}

/* ---------------- Page intro ---------------- */

.page-intro{
  padding: 110px 0 40px;
  background: linear-gradient(180deg, #F7FAFD 0%, #EFF4F9 100%);
  text-align: center;
}

.page-intro .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-intro .eyebrow{
  display: block;
}

.page-title{
  font-family: var(--font-jp-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin: 0 0 18px;
}

.page-lead{
  text-align: left;
  font-size: 15.5px;
  color: var(--slate);
  margin: 0;
}

.page-exp {
  text-align: left;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
  margin: 1.5em 0;
  padding-left: 1em;
  position: relative;
}

.page-exp::before {
  content: "※";
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}

.page-info {
  text-align: left;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.3;
  border-top: 1px solid #CCCCCC;
  margin: 0;
  padding: 1.75em 0.5em 0;
}

.info-title {
  text-align: center;
  font-weight: 700;
  margin: 0 0 0.5em;
}

.info-txt {
  margin: 0;
}

.info-txt span {
  font-size: 12px;
}

/* ---------------- Layout ---------------- */

.wrap-narrow{
  max-width: 760px;
}

.form-section{
  padding-top: 72px;
}

.demo-flag{
  background: #FFF6ED;
  border: 1px solid #F4D9B8;
  color: #935A21;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 10px;
  margin: 0 0 32px;
  text-align: center;
}

/* ---------------- Form card ---------------- */

.form-card{
  background: var(--paper);
  border: 1px solid rgba(10,37,64,.08);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 24px 60px rgba(10,37,64,.06);
}

.form-row{
  margin-bottom: 30px;
}

.form-row-half{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-row-half .form-col{
  display: flex;
  flex-direction: column;
}

.form-row label,
.form-col label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}

.required{
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: var(--danger);
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea{
  width: 100%;
  font-family: var(--font-jp-body);
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  background: var(--mist);
  border: 1px solid rgba(10,37,64,.12);
  border-radius: 10px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus{
  outline: none;
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(0,91,171,.12);
}

textarea{
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

/* ---------------- Radio group ---------------- */

.radio-group{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-option{
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid rgba(10,37,64,.10);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  margin: 0;
}

.radio-option:has(input:checked){
  border-color: var(--blue);
  background: #EAF3FB;
}

.radio-option input[type="radio"]{
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.radio-option-other{
  flex: 1 1 100%;
  padding: 7px 14px 7px 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.radio-option-other input[type="radio"]{
  width: 16px;
  height: 16px;
}

input[type="text"].other-text{
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 8px 14px;
  font-size: 13.5px;
  line-height: 1.3;
  border-radius: 999px;
}

input[type="text"].other-text:disabled{
  background: rgba(10,37,64,.04);
  color: var(--slate);
  cursor: not-allowed;
}

/* ---------------- Submit ---------------- */

.form-submit{
  text-align: center;
  margin-top: 32px;
}

.form-submit .btn{
  width: 100%;
  max-width: 360px;
}

.demo-note{
  margin: 24px auto 0;
  max-width: 480px;
  text-align: center;
  font-size: 13.5px;
  color: var(--blue);
  background: #EAF3FB;
  border: 1px solid #CFE3F3;
  border-radius: 10px;
  padding: 14px 18px;
}

/* ---------------- Confirmation / completion pages ---------------- */

.confirm-card{
  padding: 40px 48px;
}

.confirm-list{
  margin: 0;
}

.confirm-row{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(10,37,64,.08);
}
.confirm-row:first-child{ padding-top: 0; }

.confirm-row dt{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.confirm-row dd{
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.9;
  word-break: break-all;
}

.err{
  color: var(--danger);
  font-weight: 500;
}

.confirm-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.confirm-actions .btn{
  width: auto;
  min-width: 200px;
}

.complete-card{
  text-align: center;
}

.complete-message{
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  margin: 0 0 8px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 640px){
  .page-intro{ padding: 105px 0 30px; }
  .form-card{ padding: 30px 22px; }
  .form-row-half{ grid-template-columns: 1fr; gap: 20px; }
  .confirm-row{ grid-template-columns: 1fr; gap: 6px; }
  .confirm-actions .btn{ width: 100%; }
}
