@charset "utf-8";

/* ご依頼・ご相談 — 離脱防止を優先したフォームデザイン */
.contact-page {
  --contact-border: #d9e1e8;
  --contact-border-strong: #b8c6d2;
  --contact-text: #253746;
  --contact-muted: #667681;
  --contact-soft: #f4f7fa;
  color: var(--asb-ink);
  background: #fff;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
.contact-page *, .contact-page *::before, .contact-page *::after { box-sizing: border-box; }
.contact-page [hidden] { display: none !important; }
.information-hero--contact::after {
  position: absolute;
  right: 12%;
  bottom: 24px;
  width: 116px;
  height: 82px;
  background-image: radial-gradient(rgba(47,117,200,.22) 1.2px, transparent 1.2px);
  background-size: 11px 11px;
  content: "";
  opacity: .38;
}

/* Form shell */
.contact-form-section { padding: 72px 0 96px; background: #fff; }
.contact-form-layout { display: grid; grid-template-columns: minmax(0, 740px); justify-content: center; gap: 34px; }
.contact-form-intro { padding: 0 2px; text-align: center; }
.contact-form-intro p { margin: 0; color: var(--contact-text); font-size: 16px; line-height: 1.9; letter-spacing: .025em; }
.contact-form-intro .contact-form-intro__headline { margin-bottom: 12px; color: var(--asb-navy); font-size: 24px; line-height: 1.55; letter-spacing: .04em; }
.contact-form-intro__headline strong { font-weight: 600; }

.contact-form { display: grid; gap: 28px; min-width: 0; background: transparent; }

/* Steps */
.contact-step { scroll-margin-top: 100px; margin: 0; padding: 0; border: 0; background: transparent; }

/* Collapsible explanation */
.contact-strategy-note { margin: 8px 0 0; }
.contact-strategy-note summary { display: inline-flex; gap: 7px; align-items: center; padding: 0; color: #667681; cursor: pointer; font-size: 10.5px; font-weight: 400; line-height: 1.6; letter-spacing: .02em; list-style: none; }
.contact-strategy-note summary::-webkit-details-marker { display: none; }
.contact-strategy-note summary i { position: relative; width: 12px; height: 12px; }
.contact-strategy-note summary i::before, .contact-strategy-note summary i::after { position: absolute; top: 50%; left: 50%; width: 7px; height: 1px; background: #667681; content: ""; transform: translate(-50%,-50%); }
.contact-strategy-note summary i::after { transform: translate(-50%,-50%) rotate(90deg); transition: opacity .2s ease; }
.contact-strategy-note[open] summary i::after { opacity: 0; }
.contact-strategy-note > p { margin: 5px 0 0; color: #667681; font-size: 10.5px; line-height: 1.75; letter-spacing: .02em; }

/* Fields */
.contact-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; }
.contact-fields--two-columns, .contact-budget-timing-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.contact-budget-timing-row { margin-bottom: 26px; }
.contact-field { min-width: 0; }
.contact-field--full { margin-bottom: 26px; }
.contact-field--url { width: calc(50% - 11px); }
.contact-field--type { width: calc(50% - 11px); margin-bottom: 0; }
.contact-field--type select { border-color: #c8d8e5; background-color: #f3f8fc; color: var(--asb-navy); font-weight: 500; }
.contact-field label, .contact-field__label { display: flex; gap: 8px; align-items: center; margin: 0 0 5px; color: var(--contact-text); font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: .025em; }
.contact-field__meta { color: #72808a; font-size: 10px; font-weight: 400; letter-spacing: .02em; }
.is-required { display: inline-flex; align-items: center; min-height: 19px; padding: 3px 7px; border: 0; border-radius: 2px; font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .05em; white-space: nowrap; }
.is-required { min-height: 0; padding: 0; background: transparent; color: transparent; font-size: 0; }
.is-required::before { color: #c64444; content: "*"; font-size: 14px; font-weight: 600; line-height: 1; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; border: 1px solid var(--contact-border-strong); border-radius: 3px; background-color: #fff; color: #1f303d; font: 400 16px/1.6 "Zen Kaku Gothic New", sans-serif; letter-spacing: .015em; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.contact-field input { height: 54px; padding: 0 15px; }
.contact-field select { height: 44px; padding: 0 52px 0 25px; border-radius: 999px; background-image: linear-gradient(45deg, transparent 50%, #536b7e 50%), linear-gradient(135deg, #536b7e 50%, transparent 50%), radial-gradient(circle at center, #e3ebf1 0 13px, transparent 13.5px); background-position: calc(100% - 27px) 19px, calc(100% - 22px) 19px, calc(100% - 13.5px) center; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px, 27px 27px; appearance: none; }
.contact-field textarea { min-height: 230px; padding: 16px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #98a4ac; opacity: 1; }
.contact-field input:hover, .contact-field select:hover, .contact-field textarea:hover { border-color: #8fa5b7; }
.contact-field--type select:hover, .contact-field #budget:hover, .contact-field #found:hover { border-color: #8aaac4; background-color: #edf5fa; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: var(--asb-blue); box-shadow: 0 0 0 3px rgba(47,117,200,.13); background-color: #fff; }
.contact-field input:user-invalid, .contact-field select:user-invalid, .contact-field textarea:user-invalid { border-color: #bb5555; }
.contact-hint { display: block; margin-top: 8px; color: #6d7c87; font-size: 10.5px; line-height: 1.75; letter-spacing: .015em; }
.contact-hint--inline { display: inline; margin: 0; }
.contact-field--message { margin-bottom: 18px; }

/* Services */
.contact-service-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr); gap: 6px; }
.contact-service-column { display: grid; align-content: start; gap: 6px; }
.contact-service-grid label { display: flex; gap: 8px; align-items: center; min-height: 42px; margin: 0; padding: 8px 10px; border: 0; border-radius: 3px; background: #f3f6f8; color: #435563; cursor: pointer; font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: .01em; transition: background-color .18s ease, box-shadow .18s ease; }
.contact-service-column:first-child label:nth-child(2) { white-space: nowrap; }
.contact-service-grid label:hover { background: #eaf1f6; }
.contact-service-grid label:has(input:checked) { background: #e4effa; box-shadow: none; color: var(--asb-navy); }
.contact-service-grid input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--asb-blue); }

/* Inline errors */
.contact-error { margin: 8px 0 0; color: #b0441f; font-size: 11.5px; line-height: 1.7; letter-spacing: .02em; }
.contact-field input[aria-invalid="true"], .contact-field select[aria-invalid="true"], .contact-field textarea[aria-invalid="true"] { border-color: #bb5555; }

/* Honeypot（スパム対策・画面外配置） */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.contact-submit { padding: 12px 0 0; text-align: center; }
.contact-consent-note { margin: 0 0 20px; color: var(--contact-text); font-size: 12.5px; line-height: 1.7; letter-spacing: .02em; }
.contact-consent-note a { margin: 0 3px; color: var(--asb-blue-deep); text-underline-offset: 3px; }
.contact-submit button { position: relative; display: inline-flex; justify-content: center; align-items: center; width: min(420px,100%); min-height: 58px; padding: 15px 68px 15px 34px; border: 0; border-radius: 999px; background: var(--asb-navy); color: #fff; cursor: pointer; font: 600 14px/1.5 "Zen Kaku Gothic New", sans-serif; letter-spacing: .055em; transition: background-color .22s ease, transform .22s ease; }
.contact-submit button:hover { background: var(--asb-blue-deep); transform: translateY(-1px); }
.contact-submit button:focus-visible { outline: 3px solid rgba(47,117,200,.28); outline-offset: 3px; }
.contact-submit button i { position: absolute; top: 50%; right: 25px; width: 31px; height: 1px; background: rgba(255,255,255,.78); transform: translateY(-50%); transition: width .22s ease; }
.contact-submit button i::before { position: absolute; top: -3px; left: -8px; width: 7px; height: 7px; border-radius: 50%; background: var(--asb-yellow); content: ""; }
.contact-submit button i::after { position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-top: 1px solid #fff; border-right: 1px solid #fff; content: ""; transform: rotate(45deg); }
.contact-submit button:hover i { width: 36px; }
.contact-submit__note { margin: 13px 0 0; color: #73818b; font-size: 10.5px; line-height: 1.8; letter-spacing: .02em; }
.contact-form-message { margin: 22px 0 0; padding: 14px 16px; border: 1px solid #cbddeb; background: #f4f8fc; color: #415a6e; font-size: 11px; line-height: 1.8; text-align: left; }

/* FAQ bridge */
.contact-faq { padding: 58px 0 64px; border-top: 1px solid #dce4ea; background: #fff; }
.contact-faq__inner { display: grid; grid-template-columns: minmax(0, 740px); justify-content: center; gap: 26px; }
.contact-faq__heading > p { margin: 0 0 10px; color: var(--asb-blue); font: 400 10px/1 "Oswald", sans-serif; letter-spacing: .2em; }
.contact-faq h2 { margin: 0; color: var(--asb-navy); font-size: 22px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; }
.contact-faq h2 br { display: none; }
.contact-faq__list { display: grid; gap: 10px; }
.contact-faq-item { border: 0; border-radius: 4px; background: #f6f8fa; }
.contact-faq-item summary { display: grid; grid-template-columns: 24px minmax(0,1fr) 20px; gap: 12px; align-items: center; min-height: 56px; padding: 14px 16px; color: var(--asb-navy); cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: .025em; list-style: none; }
.contact-faq-item summary::-webkit-details-marker { display: none; }
.contact-faq-item__mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--asb-navy); color: #fff; font: 500 11px/1 "Oswald", sans-serif; }
.contact-faq-item summary i { position: relative; width: 18px; height: 18px; }
.contact-faq-item summary i::before, .contact-faq-item summary i::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 1px; background: #5c7183; content: ""; transform: translate(-50%,-50%); }
.contact-faq-item summary i::after { transform: translate(-50%,-50%) rotate(90deg); transition: opacity .2s ease; }
.contact-faq-item[open] summary i::after { opacity: 0; }
.contact-faq-item__answer { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 12px; align-items: start; padding: 2px 16px 16px; }
.contact-faq-item__answer > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--asb-blue); border-radius: 50%; color: var(--asb-blue); font: 500 11px/1 "Oswald", sans-serif; }
.contact-faq-item__answer p { margin: 0; padding-top: 0; color: #566874; font-size: 12px; line-height: 1.9; letter-spacing: .02em; }
.contact-faq__inner > a { display: inline-flex; gap: 26px; justify-content: space-between; align-items: center; justify-self: end; min-width: 250px; padding: 14px 4px; border-bottom: 1px solid var(--asb-blue); color: var(--asb-navy); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.contact-faq__inner > a span { color: var(--asb-blue); font-size: 18px; }

/* Thanks page */
.contact-thanks { padding: 96px 0 120px; background: #fff; }
.contact-thanks__inner { display: grid; justify-items: center; max-width: 640px; text-align: center; }
.contact-thanks__eyebrow { margin: 0 0 14px; color: var(--asb-blue); font: 400 11px/1 "Oswald", sans-serif; letter-spacing: .22em; }
.contact-thanks h2 { margin: 0 0 22px; color: var(--asb-navy); font-size: 26px; font-weight: 600; line-height: 1.55; letter-spacing: .045em; }
.contact-thanks p:not(.contact-thanks__eyebrow) { margin: 0 0 12px; color: #566874; font-size: 13.5px; line-height: 2; letter-spacing: .025em; }
.contact-thanks__message > span { display: block; }
.contact-thanks__mobile-break, .contact-thanks__narrow-break { display: none; }
.contact-thanks__links { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 26px; }
.contact-thanks__links a { display: inline-flex; align-items: center; color: var(--asb-navy); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.contact-thanks__home { position: relative; min-height: 52px; padding: 0 66px 0 24px; border: 1px solid var(--asb-navy); border-radius: 999px; background: var(--asb-navy); color: #fff !important; font-size: 13px !important; font-weight: 600 !important; transition: background-color .25s ease, transform .25s ease; }
.contact-thanks__home::before { position: absolute; top: 50%; right: 20px; width: 24px; height: 1px; background: rgba(255,255,255,.7); content: ""; }
.contact-thanks__home::after { position: absolute; top: 50%; right: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--asb-yellow); content: ""; transform: translateY(-50%); transition: transform .25s ease; }
.contact-thanks__home:hover { background: #0f2539; transform: translateY(-1px); }
.contact-thanks__home:hover::after { transform: translate(10px,-50%); }
.contact-thanks__works { gap: 22px; padding: 13px 4px; border-bottom: 1px solid var(--asb-blue); }
.contact-thanks__works span { color: var(--asb-blue); font-size: 18px; }

@media (max-width: 820px) {
  .contact-form-section { padding: 58px 0 76px; }
  .contact-form-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .contact-form-intro .contact-form-intro__headline { font-size: 21px; }
  .contact-faq__inner { gap: 22px; }
}

@media (max-width: 560px) {
  .information-hero--contact::after { right: 8px; bottom: 18px; width: 90px; height: 64px; }
  .contact-form-section { padding: 48px 0 62px; }
  .contact-form-intro { text-align: left; }
  .contact-form-intro p { font-size: 16px; line-height: 1.85; }
  .contact-form-intro p br { display: none; }
  .contact-form-intro .contact-form-intro__headline { margin-bottom: 10px; font-size: 19px; line-height: 1.65; }
  .contact-fields, .contact-fields--two-columns, .contact-budget-timing-row { grid-template-columns: 1fr; }
  .contact-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-service-column { display: contents; }
  .contact-service-grid label:has(input[value="web"]) { order: 1; }
  .contact-service-grid label:has(input[value="ai"]) { order: 2; }
  .contact-service-grid label:has(input[value="graphic"]) { grid-column: 1 / -1; order: 3; }
  .contact-service-grid label:has(input[value="movie"]) { order: 4; }
  .contact-service-grid label:has(input[value="advertising"]) { order: 5; }
  .contact-service-grid label:has(input[value="strategy"]) { grid-column: 1 / -1; order: 6; }
  .contact-service-grid label:has(input[value="education"]) { grid-column: 1 / -1; order: 7; }
  .contact-service-grid label:has(input[value="undecided"]) { order: 8; }
  .contact-service-grid label { height: 48px; min-height: 48px; padding: 3px 8px; line-height: 1.35; }
  .contact-field--type { width: 100%; }
  .contact-field--url { width: 100%; }
  .contact-field input { height: 52px; }
  .contact-field--message textarea { min-height: 360px; }
  .contact-submit { padding-top: 8px; }
  .contact-consent-note { margin-bottom: 10px; }
  .contact-submit button { min-height: 55px; padding-right: 58px; padding-left: 22px; font-size: 12.5px; }
  .contact-faq { padding: 48px 0 52px; }
  .contact-faq__inner { gap: 18px; }
  .contact-faq h2 { font-size: 20px; }
  .contact-faq-item summary { grid-template-columns: 22px minmax(0,1fr) 18px; padding: 13px 13px; font-size: 12.5px; }
  .contact-faq-item__answer { grid-template-columns: 22px minmax(0,1fr); padding: 2px 13px 14px; }
  .contact-faq__inner > a { width: 100%; max-width: 310px; min-width: 0; }
  .contact-thanks { padding: 64px 0 84px; }
  .contact-thanks__inner { padding-right: 18px; padding-left: 18px; }
  .contact-thanks h2 { font-size: 21px; }
  .contact-thanks p:not(.contact-thanks__eyebrow) { font-size: 13px; line-height: 1.9; }
  .contact-thanks__message > span { white-space: nowrap; }
  .contact-thanks__mobile-break { display: block; }
  .contact-thanks__links { flex-direction: column; gap: 12px; align-items: center; margin-top: 24px; }
  .contact-thanks__home { justify-content: center; width: min(100%,280px); }
}

@media (max-width: 360px) {
  .contact-thanks__narrow-break { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *, .contact-page *::before, .contact-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
