@charset "UTF-8";
/* ==========================================================================
   KANAME CONSTRUCTION — Form Pages (Contact / Entry)  (style.css → sub.css の後)
   --------------------------------------------------------------------------
   01. Compact hero / Step indicator
   02. Layout / Form box / Group
   03. Fields (text / select / textarea / choice / check / file / agree)
   04. Error summary / Remain / Actions / Buttons
   05. Confirm / Done
   06. Aside
   07. Responsive
   ========================================================================== */

/* ---------- 01. Hero / Steps ---------- */
.phero--form { padding-bottom: clamp(28px, 3.6vw, 52px); }
.phero--form::before { height: 100%; }
.phero--form .phero__title { font-size: clamp(30px, 3.6vw, 56px); }
.fsteps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 4vw, 56px); border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; counter-reset: st; }
.fsteps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 24px; color: rgba(29, 44, 70, .45); font-weight: 700; font-size: 14px; transition: color .5s, background-color .5s; }
.fsteps li + li { border-left: 1px solid var(--line); }
.fsteps li b { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--f-en); font-stretch: 125%; font-weight: 800; font-size: 13px; transition: background-color .5s, color .5s, border-color .5s; }
.fsteps li small { margin-left: auto; font-family: var(--f-mono); font-weight: 400; font-size: 10px; text-transform: uppercase; }
.fsteps li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.fsteps li.is-current { color: var(--black); background: var(--blue-pale); }
.fsteps li.is-current b { background: var(--blue); border-color: var(--blue); color: var(--white); }
.fsteps li.is-current::after { transform: none; }
.fsteps li.is-done { color: var(--blue); }
.fsteps li.is-done b { background: var(--white); }
.fsteps li.is-done b::before { content: "✓"; }
.fsteps li.is-done b span { display: none; }

/* ---------- 02. Layout ---------- */
.fsec { padding: 0 0 var(--section-space); }
.fsec__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px clamp(28px, 4vw, 64px); align-items: start; }
.fbox { padding: clamp(24px, 3.4vw, 56px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 20px 50px -30px rgba(18, 105, 207, .25); scroll-margin-top: 24px; }
.form__lead { font-size: 14px; line-height: 2; opacity: .8; }
.form__lead .req { margin: 0 4px; }
.fgroup { margin-top: clamp(32px, 4vw, 52px); }
.fgroup:first-of-type { margin-top: 28px; }
.fgroup__ttl { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); font-family: var(--f-serif); font-weight: 600; font-size: 19px; }
.fgroup__ttl span { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--red); }
.fgroup__ttl small { margin-left: auto; font-family: var(--f-sans); font-weight: 400; font-size: 12px; opacity: .6; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.frow--3 { grid-template-columns: 1.2fr 1fr 1fr; }
[data-when][hidden] { display: none !important; }

/* ---------- 03. Fields ---------- */
.field { position: relative; padding: 20px 0 0; border: 0; margin: 0; min-width: 0; }
fieldset.field { padding-top: 20px; }
.field__label, .field legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.req, .opt { display: inline-block; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 700; line-height: 1.8; letter-spacing: .04em; }
.req { background: var(--red); color: var(--white); }
.opt { background: rgba(29, 44, 70, .08); color: rgba(29, 44, 70, .7); }
.u-link { color: var(--blue); border-bottom: 1px solid currentColor; }
.field__hint { margin-top: 6px; font-size: 12px; line-height: 1.7; opacity: .6; }
.field__err { min-height: 0; margin-top: 6px; color: #c41d3b; font-size: 12.5px; font-weight: 500; line-height: 1.6; }
.field__err:empty { display: none; }
.field__err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0 6px 1px 0; border-radius: 50%; background: #c41d3b; color: var(--white); font-size: 10px; font-weight: 700; vertical-align: middle; }

.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 13px 16px; border: 1px solid rgba(29, 44, 70, .22); border-radius: 10px; background: #f7fafd; color: var(--black);
  font: inherit; font-size: 16px; line-height: 1.6; letter-spacing: .02em; transition: border-color .3s, background-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(29, 44, 70, .38); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(29, 44, 70, .4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(18, 105, 207, .14); }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: #c41d3b; background: #fff6f7; }
.field.is-error .input:focus, .field.is-error .select:focus, .field.is-error .textarea:focus { box-shadow: 0 0 0 4px rgba(196, 29, 59, .14); }
.field.is-ok .input, .field.is-ok .select, .field.is-ok .textarea { border-color: rgba(18, 105, 207, .45);
  background: #f7fafd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%231269cf' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.field.is-ok .input:focus { background-color: var(--white); }
.select { padding-right: 44px; cursor: pointer;
  background: #f7fafd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231d2c46' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat !important; }
.textarea { min-height: 200px; resize: vertical; }
.counter { margin-top: 6px; text-align: right; font-family: var(--f-mono); font-size: 11px; opacity: .6; }
.counter.is-over { color: #c41d3b; opacity: 1; }

/* choice cards (radio) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choices--2 { grid-template-columns: repeat(2, 1fr); }
.choices--list { grid-template-columns: 1fr; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 64px; padding: 14px 16px; border: 1px solid rgba(29, 44, 70, .2); border-radius: 12px; background: var(--white); font-size: 14px; font-weight: 700; line-height: 1.5;
  transition: border-color .3s, background-color .3s, color .3s, box-shadow .3s; }
.choice__box svg { flex-shrink: 0; width: 30px; height: 30px; color: var(--blue); transition: color .3s, transform .5s var(--ease); }
.choice__box small { display: block; font-weight: 400; font-size: 11.5px; opacity: .65; }
.choice__box::after { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-left: auto; border: 1.5px solid rgba(29, 44, 70, .3); border-radius: 50%; transition: border .3s, background-color .3s; }
.choice:hover .choice__box { border-color: var(--blue); }
.choice input:focus-visible + .choice__box { box-shadow: 0 0 0 4px rgba(18, 105, 207, .2); }
.choice input:checked + .choice__box { border-color: var(--blue); background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgba(18, 105, 207, .6); }
.choice input:checked + .choice__box svg { color: var(--white); transform: rotate(-8deg); }
.choice input:checked + .choice__box::after { border: 6px solid var(--white); background: var(--blue); }
.field.is-error .choice__box { border-color: #e7a3ae; }
.choice__date { font-family: var(--f-en); font-stretch: 112%; font-weight: 800; font-size: 18px; min-width: 7.2em; }

/* checks (checkbox) */
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; display: inline-flex; }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 1px solid rgba(29, 44, 70, .2); border-radius: 999px; font-size: 13px; transition: border-color .3s, background-color .3s, color .3s; }
.check span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid rgba(29, 44, 70, .35); border-radius: 4px; transition: .3s; }
.check:hover span { border-color: var(--blue); }
.check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(18, 105, 207, .2); }
.check input:checked + span { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); font-weight: 700; }
.check input:checked + span::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* file */
.file { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 18px; border: 1.5px dashed rgba(18, 105, 207, .4); border-radius: 12px; background: #f7fafd; text-align: center; transition: border-color .3s, background-color .3s; }
.file:hover, .file:focus-within { border-color: var(--blue); background: var(--blue-pale); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file svg { width: 30px; height: 30px; color: var(--blue); }
.file b { font-size: 14px; }
.file small { font-size: 11.5px; opacity: .6; }
.files { margin-top: 8px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--blue-pale); font-size: 13px; }
.files li + li { margin-top: 6px; }
.files svg { width: 18px; height: 18px; color: var(--blue); }
.files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files small { margin-left: auto; font-family: var(--f-mono); font-size: 11px; opacity: .6; }
.file-clear { margin-top: 6px; font-size: 12px; color: var(--blue); border-bottom: 1px solid currentColor; }

/* agree */
.agree { margin-top: clamp(32px, 4vw, 48px); padding: 22px 24px; border-radius: 12px; background: var(--blue-pale); }
.agree__txt { font-size: 13px; line-height: 1.9; }
.agree__txt a { color: var(--blue); border-bottom: 1px solid currentColor; }
.agree .check { margin-top: 12px; }
.agree .check span { padding: 12px 20px 12px 14px; background: var(--white); font-size: 14px; font-weight: 700; }

/* ---------- 04. Summary / Remain / Actions ---------- */
.fsum { margin-top: 24px; padding: 18px 22px; border: 1px solid #f0b5bf; border-left: 4px solid #c41d3b; border-radius: 10px; background: #fff6f7; color: #8d1329; font-size: 13.5px; }
.fsum p { font-weight: 700; }
.fsum ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.fsum a { border-bottom: 1px solid currentColor; }
.fsum[hidden] { display: none; }
.form__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; margin-top: clamp(32px, 4vw, 48px); }
.fbtn { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 300px; min-height: 66px; padding: 10px 12px 10px 30px; border-radius: 12px; background: var(--red); color: var(--white);
  font-weight: 700; font-size: 15px; letter-spacing: .06em; box-shadow: 0 14px 28px -12px rgba(196, 29, 59, .7); transition: background-color .35s, translate .4s var(--ease), box-shadow .35s; }
.fbtn__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--red); transition: transform .6s var(--ease); }
.fbtn__ic svg { width: 18px; height: 18px; }
.fbtn:hover { background: #b81d38; translate: 0 -3px; box-shadow: 0 20px 34px -14px rgba(196, 29, 59, .8); }
.fbtn:hover .fbtn__ic { transform: rotate(-45deg); }
.fbtn--ghost { min-width: 200px; background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1px rgba(29, 44, 70, .25); padding-left: 12px; justify-content: flex-start; gap: 16px; }
.fbtn--ghost .fbtn__ic { background: var(--blue-pale); color: var(--black); }
.fbtn--ghost .fbtn__ic svg { transform: rotate(180deg); }
.fbtn--ghost:hover { background: var(--blue-pale); box-shadow: inset 0 0 0 1px var(--blue); }
.fbtn--ghost:hover .fbtn__ic { transform: translateX(-4px); }
.fbtn.is-loading { pointer-events: none; opacity: .85; }
.fbtn.is-loading .fbtn__ic svg { display: none; }
.fbtn.is-loading .fbtn__ic::before { content: ""; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__remain { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 24px auto 0; padding: 8px 18px; border-radius: 999px; background: var(--navy); color: var(--white);
  font-size: 12.5px; box-shadow: 0 10px 24px -8px rgba(8, 28, 57, .5); transition: background-color .4s; pointer-events: none; }
.form__remain b { font-family: var(--f-en); font-stretch: 125%; font-weight: 800; font-size: 18px; line-height: 1; }
.form__remain .ok { display: none; }
.form__remain.is-done { background: #1f8a4c; }
.form__remain.is-done .ng { display: none; }
.form__remain.is-done .ok { display: inline; }
.form__note { margin-top: 14px; text-align: center; font-size: 12px; opacity: .6; }

/* ---------- 05. Confirm / Done ---------- */
.confirm__ttl, .done__ttl { font-family: var(--f-serif); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; outline: none; }
.confirm__lead { margin-top: 10px; font-size: 13.5px; opacity: .75; }
.confirm { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.confirm div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.confirm dt { font-size: 13px; font-weight: 700; opacity: .7; }
.confirm dd { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.confirm__empty { opacity: .4; }
.send-err { margin-top: 18px; padding: 14px 18px; border-radius: 10px; background: #fff6f7; color: #8d1329; font-size: 13px; }
.send-err[hidden] { display: none; }

.done { text-align: center; padding: clamp(12px, 2vw, 24px) 0; }
.done__mark { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; background: var(--blue-pale); color: var(--blue); }
.done__mark svg { width: 48px; height: 48px; }
.done__mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__txt { max-width: 34em; margin: 18px auto 0; font-size: 14px; line-height: 2.1; }
.done__no { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 16px 28px; border: 1px dashed var(--blue); border-radius: 12px; background: var(--blue-pale); }
.done__no span { font-size: 12px; opacity: .7; }
.done__no b { font-family: var(--f-mono); font-weight: 500; font-size: 20px; letter-spacing: .06em; color: var(--blue); }
.done__demo { margin-top: 18px; font-size: 11.5px; color: #8d1329; }
.done__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 32px; }
.done__links .textlink { margin-top: 0; }

/* ---------- 06. Aside ---------- */
.faside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.acard { padding: 24px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.acard__eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--blue); }
.acard__eyebrow svg { width: 18px; height: 18px; }
.acard--tel { background: var(--grad); color: var(--white); border: 0; }
.acard--tel .acard__eyebrow { color: var(--red-l); }
.acard__tel { display: block; margin-top: 10px; font-family: var(--f-en); font-stretch: 112%; font-weight: 800; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; }
.acard__sub { margin-top: 6px; font-size: 12px; line-height: 1.8; opacity: .85; }
.acard__ttl { margin-top: 10px; font-family: var(--f-serif); font-weight: 600; font-size: 18px; line-height: 1.5; }
.acard__list { margin-top: 12px; }
.acard__list li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.acard__list li::before { content: "—"; font-family: var(--f-mono); color: var(--red); }
.acard .mapframe { margin-top: 14px; aspect-ratio: 4 / 3; }
.acard address { margin-top: 12px; font-size: 13px; line-height: 1.8; }
.acard .textlink { margin-top: 14px; font-size: 13px; }

/* ---------- 07. Responsive ---------- */
@media (max-width: 1180px) {
  .fsec__grid { grid-template-columns: 1fr; }
  .faside { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .faside { grid-template-columns: 1fr 1fr; }
  .faside .acard--map { grid-column: 1 / -1; }
  .choices { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .phero--form .phero__title { font-size: 6.6vw; }
  .fsteps li { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: 12px; }
  .fsteps li small { display: none; }
  .fsteps li b { width: 32px; height: 32px; }
  .fbox { padding: 22px 16px; border-radius: 14px; }
  .frow, .frow--3 { grid-template-columns: 1fr; }
  .choices, .choices--2 { grid-template-columns: 1fr; }
  .choice__box { min-height: 56px; }
  .confirm div { grid-template-columns: 1fr; gap: 4px; }
  .fbtn { width: 100%; min-width: 0; }
  .form__actions { flex-direction: column-reverse; }
  .faside { grid-template-columns: 1fr; }
  .agree { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .done__mark path { stroke-dashoffset: 0; animation: none; }
}
