@charset "UTF-8";

/*
 * お問い合わせページ専用。見出し帯・パンくず・ボタンなど新デザイン共通の部品は home-base.css。
 * 共通の .home-page p / ol などの余白リセットより優先させるため、必要に応じて .contact-section を付けている。
 */

.contact-section { padding-block: clamp(64px, 7.5vw, 112px); scroll-margin-top: calc(var(--home-header-compact) - clamp(32px, 4.5vw, 72px)); }
.contact-policy-section { padding-top: 0; }
.contact-policy-section > .home-container { padding-top: clamp(64px, 7.5vw, 112px); border-top: 1px solid var(--home-rule); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-heading { position: sticky; top: calc(var(--home-header-compact) + 32px); }
.contact-heading h2 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; line-height: 1.45; }
.contact-section .contact-heading p:not(.home-eyebrow) { margin-top: 16px; color: var(--home-muted); font-size: clamp(14px, 1.15vw, 16px); line-height: 1.9; }

/* 送信結果 */
.contact-section .contact-message { margin-bottom: 28px; padding: 16px 20px; border-left: 3px solid; font-weight: 700; line-height: 1.8; }
.contact-message-error { border-color: var(--home-red); background: #fbf0f0; color: #a61014; }
.contact-message-success { border-color: #2f7d4f; background: #eff6f1; color: #1f5b38; }

/* 入力欄 */
.contact-form { display: grid; gap: clamp(24px, 2.4vw, 32px); }
.contact-field label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.contact-badge { padding: 1px 8px; background: var(--home-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.7; }
.contact-badge-any { background: #6b6b6b; }
.contact-field input, .contact-field select, .contact-field textarea { display: block; width: 100%; margin-top: 10px; padding: 14px 16px; border: 1px solid var(--home-rule); border-radius: 0; background-color: #fff; color: var(--home-ink); font: inherit; font-size: 16px; line-height: 1.6; -webkit-appearance: none; appearance: none; transition: border-color .2s ease; }
.contact-field select { padding-right: 48px; background-image: url("../img/home/icons/arrow-down-light.svg"); background-position: right 16px center; background-repeat: no-repeat; background-size: 18px auto; cursor: pointer; }
.contact-field textarea { min-height: 220px; resize: vertical; }
.contact-field ::placeholder { color: #9a9a9a; }
.contact-field input:hover, .contact-field select:hover, .contact-field textarea:hover { border-color: #8a8a8a; }
.contact-field input:focus-visible, .contact-field select:focus-visible, .contact-field textarea:focus-visible { border-color: var(--home-red); outline: 2px solid var(--home-red); outline-offset: -1px; }

/* 同意と送信 */
.contact-consent { padding: 20px 24px; background: #f8f7f6; }
.contact-consent label { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.6; cursor: pointer; }
.contact-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--home-red); cursor: pointer; }
.contact-consent input:focus-visible { outline: 2px solid var(--home-red); outline-offset: 3px; }
.contact-consent a { color: var(--home-red); text-decoration: underline; text-underline-offset: 3px; }
.contact-section .contact-consent p { margin-top: 8px; color: var(--home-muted); font-size: 13px; }
.contact-submit .home-button { min-width: 280px; border: 0; font-family: inherit; cursor: pointer; }
.contact-submit .home-button:disabled { background: #bdbdbd; cursor: not-allowed; }
.contact-submit .home-button:disabled .home-arrow { transform: none; }

/* reCAPTCHA v3（キー設定時のみ）。右下のマークは隠し、代わりにGoogleが求める表記を送信ボタンの下に置く */
.grecaptcha-badge { visibility: hidden; }
.contact-section .contact-recaptcha-error { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--home-red); background: #fbf0f0; color: #a61014; font-size: 14px; font-weight: 700; line-height: 1.7; }
.contact-section .contact-recaptcha-note { margin-top: 16px; color: var(--home-muted); font-size: 12px; line-height: 1.8; }
.contact-recaptcha-note a { text-decoration: underline; text-underline-offset: 2px; }

/* プライバシーポリシー */
.contact-policy { font-size: clamp(14px, 1.08vw, 16px); line-height: 2; color: #333; }
.contact-section .contact-policy > * + * { margin-top: 1em; }
.contact-section .contact-policy h3 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--home-rule); color: var(--home-ink); font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; line-height: 1.6; }
.contact-section .contact-policy ol { margin: 0; padding-left: 1.6em; }
.contact-section .contact-policy ol ol { margin-top: .5em; }
.contact-policy li { list-style: decimal; }
.contact-policy li::marker { color: var(--home-red); }
.contact-policy li + li { margin-top: .5em; }

@media (max-width: 900px) {
    .contact-section { padding-block: 56px; }
    .contact-policy-section { padding-top: 0; }
    .contact-policy-section > .home-container { padding-top: 56px; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-heading { position: static; }
    .contact-heading h2 { font-size: 26px; }
    .contact-submit .home-button { width: 100%; min-width: 0; }
    .contact-consent { padding: 18px 16px; }
    .contact-consent label { gap: 10px; }
}
