/* contact.css — CONTACT・利用規約・説明事項・ご依頼フォームの専用部分。base.css / ui.css の次に読む */

/* ---------- 説明事項の見出し（英字なし） ---------- */
.ja-h1 { margin: 0; font-family: var(--f-ja); font-weight: 700; font-size: 28px; line-height: 1.5; letter-spacing: .04em; color: var(--brown); }
@media (max-width: 767px) { .ja-h1 { font-size: 22px; } }

/* ---------- 規約・説明事項の章 ---------- */
.c-chapters { gap: 30px; max-width: 800px; }
.c-chap .h2, .c-chap .h3 { margin-bottom: 10px; }
.c-chap .h2 { padding-bottom: 8px; border-bottom: 2px dotted var(--sky); }

/* ---------- CONTACT: 受付状況 ---------- */
.c-status { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.c-status .st { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c-status .months { max-width: 100%; }
.c-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 13px; color: var(--ink-soft); }
.c-lg { display: inline-flex; align-items: center; gap: 6px; }
.c-legend dt { font-family: var(--f-en); font-weight: 600; font-size: 15px; color: var(--brown); }
.c-legend dd { margin: 0; }

/* ---------- CONTACT: 料金のめやす ---------- */
.c-acc .tbl td { font-family: var(--f-en); font-weight: 600; color: var(--brown); white-space: nowrap; }
.c-acc .tbl th[scope="row"] { color: var(--ink); white-space: normal; }
.c-acc .note { margin: 10px 0 0; }
.c-actions { margin-top: 18px; }

/* ---------- CONTACT: 開閉式の 5 項目（見た目は ui.css の .acc） ---------- */
.c-accs-in { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.c-acc { background: var(--white); }
.c-acc[hidden] { display: none; }
.c-acc .acc-b { padding-top: 4px; }
.c-acc .acc-t .mo-i { flex: none; }
.c-acc .tbl { max-width: 640px; }
.c-acc .c-actions { margin-top: 14px; }
.c-acc .list { margin: 0; }
.c-vt-body { display: flex; flex-direction: column; gap: 12px; }
.c-vt-body .txt { margin: 0; }
.c-vt-body strong { color: var(--brown); }
.c-acc .acc-b > .txt { margin: 0 0 12px; }

/* ---------- CONTACT: ご依頼の流れ ---------- */
.c-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.c-step { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: 20px; background: var(--white); border: 1.5px solid var(--line-soft); box-shadow: var(--sh-card); }
.c-no { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: var(--brown); font-family: var(--f-en); font-weight: 600; font-size: 18px; }
.c-step-b .h3 { margin-bottom: 6px; }
.c-step-b .txt { margin: 0 0 6px; font-size: 14px; line-height: 1.8; }
.c-who b { color: var(--brown); }
@media (max-width: 1023px) { .c-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .c-flow { grid-template-columns: 1fr; gap: 12px; }
  .c-step { flex-direction: row; align-items: flex-start; gap: 14px; }
}

/* ---------- CONTACT: ご依頼フォームのカード ---------- */
.c-form-card {
  position: relative; max-width: 720px; margin: 0 auto; padding: 40px 28px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border-radius: 24px; background: linear-gradient(180deg, var(--white), var(--sky-mist));
  border: 2px dotted var(--sky-soft); box-shadow: var(--sh-card);
}
.c-form-card .mo { z-index: 0; }
.c-form-card > :not(.mo) { position: relative; z-index: 1; }
.c-fc-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--brown); }
.c-fc-mail { margin: 0; font-family: var(--f-en); font-weight: 600; font-size: 26px; line-height: 1.4; letter-spacing: .02em; word-break: break-all; }
.c-fc-mail a { color: var(--brown); }
.c-fc-small { margin: 0; font-size: 12px; line-height: 1.8; color: var(--ink-soft); }
.c-fc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.c-fc-terms { margin: 0; }
@media (max-width: 767px) {
  .c-form-card { padding: 36px 18px 28px; border-radius: 20px; }
  .c-fc-mail { font-size: 19px; }
  .c-fc-btns { flex-direction: column; align-self: stretch; }
  .c-fc-btns .btn { width: 100%; justify-content: center; }
}

/* ---------- ご依頼フォーム ---------- */
.r-wrap { max-width: 760px; }
.r-steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; font-weight: 700; }
.r-steps li { flex: 1; padding: 8px 6px; text-align: center; border-radius: 999px; background: var(--gray); color: var(--ink-soft); }
.r-steps li.is-on { background: var(--sky); color: var(--brown); }
.r-pre { margin-bottom: 22px; }
.r-pre .h3 { margin-bottom: 10px; }
.r-pre .actions { gap: 8px 22px; }

.fld { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.fld-l { display: block; padding: 0; margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.req, .opt-tag { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; }
.req { background: var(--egg); color: var(--brown); }
.opt-tag { background: var(--gray); color: var(--ink-soft); }
.hint { margin: 0 0 8px; font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
.hint a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 3px; }
.inp {
  display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6;
}
textarea.inp { resize: vertical; min-height: 7em; }
.inp:hover { border-color: var(--sky-deep); }
.inp[aria-invalid="true"], .opts:has(input[aria-invalid="true"]) .opt { border-color: #c0392b; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--sky-mist); border: 1.5px solid var(--line-soft); font-size: 14px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brown); }
.opt:has(input:checked) { background: var(--sky-soft); border-color: var(--sky); }
.opt:has(input:focus-visible) { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.err { margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.6; color: #c0392b; }
.err[hidden] { display: none; }
.r-fail { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: #fdf0ee; }
.r-fail a { color: #c0392b; text-decoration: underline; word-break: break-all; }
.r-act { margin-top: 28px; }
.r-act .btn[disabled] { opacity: .55; cursor: default; transform: none; }
/* 蜜の項目: 画面外に置く（display:none にしない） */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.r-kv { grid-template-columns: 11em 1fr; gap: 10px 16px; }
.r-kv dt { font-size: 13px; }
.r-kv dd { overflow-wrap: anywhere; }
.r-done { text-align: center; padding: 34px 20px; }
.r-done .h2 { justify-content: center; }
.r-done .actions { justify-content: center; margin-top: 16px; }
@media (max-width: 767px) {
  .r-kv { grid-template-columns: 1fr; gap: 2px; }
  .r-kv dd { margin-bottom: 10px; }
  .opt { width: 100%; border-radius: 18px; }
  .r-act .btn { width: 100%; }
}

/* 注意事項の点（リセットで消えるため） */
#c-notes { list-style: disc; }
#c-notes li::marker { color: var(--sky-deep); }
.c-status .month { min-width: 96px; }
