@charset "UTF-8";
/* ============================================================
   /contact/ 無料相談・お問い合わせ（2026-10-17 作り直し 段3）
   このページの紙＝「ご相談の用紙」。白い用紙の下に濃い生成りの紙をずらして敷く。
   🔴 用件で出し分けるもの（説明・欄）は :has だけで切り替える（JS を足さない）。
      用件の一覧は lib/form.php の form_fields()['type']。増やしたら $types にも足す。
   ============================================================ */
/* スマホでは写真を小さくして、用紙を早く見せる（このページの用事は書くこと）。PC は共通のまま */
.c-subhero:has(+ :is(.p-ct, .p-ctt-next)) .c-subhero__arch {
  width: 42%;
}

@media (min-width: 900px) {
  .c-subhero:has(+ :is(.p-ct, .p-ctt-next)) .c-subhero__arch {
    width: 100%;
  }
}
.p-ct {
  isolation: isolate;
}

.p-ct__in {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 900px) {
  .p-ct__in {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: var(--sp-8);
    align-items: start;
  }
  .p-ct__side {
    position: sticky;
    top: 6.5rem;
  }
}
/* ── 左: 用件ごとの説明 ── */
.p-ct__notes {
  margin-top: var(--sp-2);
}

.p-ct-note {
  display: none;
  background: var(--white);
  border-radius: var(--r-m);
  padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: var(--sh-float);
}

.p-ct-note.is-current {
  display: block;
}

.p-ct-note p {
  font-size: var(--fs-base);
  line-height: 1.9;
}

.p-ct-note__tit {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.p-ct-note__plan {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule-strong);
  font-size: var(--fs-sm) !important;
}

/* 選び直したら、説明が入れ替わる。:has が無いブラウザは .is-current（来たときの用件）のまま */
@supports selector(:has(*)) {
  .p-ct .p-ct-note {
    display: none;
  }
  .p-ct:has(#f-type option[value=""]:checked) .p-ct-note--none {
    display: block;
  }
  .p-ct:has(#f-type option[value=consult]:checked) .p-ct-note--consult {
    display: block;
  }
  .p-ct:has(#f-type option[value=undecided]:checked) .p-ct-note--undecided {
    display: block;
  }
  .p-ct:has(#f-type option[value=diagnosis]:checked) .p-ct-note--diagnosis {
    display: block;
  }
  .p-ct:has(#f-type option[value=tenken]:checked) .p-ct-note--tenken {
    display: block;
  }
  .p-ct:has(#f-type option[value=new]:checked) .p-ct-note--new {
    display: block;
  }
  .p-ct:has(#f-type option[value=kaigyo]:checked) .p-ct-note--kaigyo {
    display: block;
  }
  .p-ct:has(#f-type option[value=renewal]:checked) .p-ct-note--renewal {
    display: block;
  }
  .p-ct:has(#f-type option[value=fix]:checked) .p-ct-note--fix {
    display: block;
  }
  .p-ct:has(#f-type option[value=order]:checked) .p-ct-note--order {
    display: block;
  }
  .p-ct:has(#f-type option[value=quote]:checked) .p-ct-note--quote {
    display: block;
  }
  .p-ct:has(#f-type option[value=survey]:checked) .p-ct-note--survey {
    display: block;
  }
  .p-ct:has(#f-type option[value=ask]:checked) .p-ct-note--ask {
    display: block;
  }
  .p-ct:has(#f-type option[value=partner]:checked) .p-ct-note--partner {
    display: block;
  }
  .p-ct:has(#f-type option[value=other]:checked) .p-ct-note--other {
    display: block;
  }
}
.p-ct__mail {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
}

.p-ct__mail a {
  overflow-wrap: anywhere;
}

.p-ct__small {
  margin-top: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--ink-sub);
}

/* ── 右: 白い用紙 ── */
.p-ct__sheet {
  position: relative;
}

.p-ct__sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-l);
  background: var(--paper-2);
  translate: var(--paper-shift) var(--paper-shift);
}

.p-ct__form {
  background: var(--white);
  border-radius: var(--r-l);
  padding: clamp(1.4rem, 4.5vw, 3rem);
  box-shadow: var(--sh-float);
}

.p-ct__alert {
  margin-bottom: var(--sp-3);
}

.p-ct__check {
  display: flex;
  align-items: center;
  gap: 0.7em;
  min-height: 3rem;
  padding: 0.4em 0.2em;
  font-weight: 700;
  cursor: pointer;
}

.p-ct__check input {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  accent-color: var(--accent);
}

.p-ct__check-mail {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-sub);
  text-align: center;
}

.p-ct__check-mail strong {
  color: var(--ink);
}

.p-ct__send {
  min-width: min(20rem, 100%);
}

.p-ct__form .c-btns {
  margin-top: var(--sp-3);
}

/* 用件で出す欄（相談の形・点検の試し送信・プラン）。:has が無いブラウザは全部出す（partner の欄と同じ考え方） */
@supports selector(:has(*)) {
  .p-ct__form .c-form__row--only {
    display: none;
  }
  .p-ct__form:has(#f-type option[value=""]:checked) .c-form__row--for-none {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=consult]:checked) .c-form__row--for-consult {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=undecided]:checked) .c-form__row--for-undecided {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=diagnosis]:checked) .c-form__row--for-diagnosis {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=tenken]:checked) .c-form__row--for-tenken {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=new]:checked) .c-form__row--for-new {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=kaigyo]:checked) .c-form__row--for-kaigyo {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=renewal]:checked) .c-form__row--for-renewal {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=fix]:checked) .c-form__row--for-fix {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=order]:checked) .c-form__row--for-order {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=quote]:checked) .c-form__row--for-quote {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=survey]:checked) .c-form__row--for-survey {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=ask]:checked) .c-form__row--for-ask {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=partner]:checked) .c-form__row--for-partner {
    display: block;
  }
  .p-ct__form:has(#f-type option[value=other]:checked) .c-form__row--for-other {
    display: block;
  }
}
/* 🔴 2026-10-17 最終確認（店主の目）: 点検・無料診断・引き継ぎの下調べを選んだら、アドレスの札を「必須」に替える */
.c-form__req--cond {
  display: none;
}

@supports selector(:has(*)) {
  .p-ct__form:has(#f-type option[value=diagnosis]:checked) .c-form__row--reqfor-diagnosis .c-form__opt {
    display: none;
  }
  .p-ct__form:has(#f-type option[value=diagnosis]:checked) .c-form__row--reqfor-diagnosis .c-form__req--cond {
    display: inline-flex;
  }
  .p-ct__form:has(#f-type option[value=tenken]:checked) .c-form__row--reqfor-tenken .c-form__opt {
    display: none;
  }
  .p-ct__form:has(#f-type option[value=tenken]:checked) .c-form__row--reqfor-tenken .c-form__req--cond {
    display: inline-flex;
  }
  .p-ct__form:has(#f-type option[value=survey]:checked) .c-form__row--reqfor-survey .c-form__opt {
    display: none;
  }
  .p-ct__form:has(#f-type option[value=survey]:checked) .c-form__row--reqfor-survey .c-form__req--cond {
    display: inline-flex;
  }
}
/* 選び直して出てきた説明・欄は、ふわっと入る（display が切り替わるたびに animation が走る） */
@keyframes p-ct-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}
[data-motion=on] .p-ct-note,
[data-motion=on] .p-ct__form .c-form__row--only {
  animation: p-ct-in 0.45s var(--ease-out);
}

/* ============================================================
   /contact/thanks/ 送信のあと
   ============================================================ */
.p-ctt-next {
  isolation: isolate;
}

.p-ctt-next__card {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  justify-items: start;
  background: var(--white);
  border-radius: var(--r-l);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  box-shadow: var(--sh-float);
}

.p-ctt-next__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-l);
  background: var(--paper-2);
  translate: var(--paper-shift) var(--paper-shift);
}

.p-ctt-next__small {
  font-size: var(--fs-sm);
  color: var(--ink-sub);
}

.p-ctt-next__card .c-btn--lg {
  min-width: min(22rem, 100%);
}

.p-ctt-flow__in {
  display: grid;
  gap: var(--sp-5);
}

.p-ctt-flow__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  counter-reset: ct;
}

.p-ctt-flow__list li {
  counter-increment: ct;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.p-ctt-flow__list li::before {
  content: counter(ct);
  content: counter(ct)/"";
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.1rem;
}

.p-ctt-flow__note {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-sub);
}

.p-ctt-wait {
  display: grid;
  gap: 0.2rem;
  margin-top: var(--sp-5);
}

.p-ctt-wait a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 700;
}

.p-ctt-wait span {
  font-size: var(--fs-sm);
  color: var(--ink-sub);
}

@media (min-width: 900px) {
  .p-ctt-flow__in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--sp-8);
    align-items: start;
  }
}
/* ── ① 最初の画面の紙＝送ったあと（2026-10-17 デザイン点検2。写真の代わり） ── */
.p-ct-sent {
  margin: 0;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--sh-float);
  rotate: -1.4deg;
  padding: clamp(1.3rem, 3vw, 1.9rem);
}

.p-ct-sent__tit {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  letter-spacing: 0.1em;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--ink);
}

.p-ct-sent ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: af;
}

.p-ct-sent li {
  counter-increment: af;
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 0 0.8rem 2.8rem;
}

.p-ct-sent li + li {
  border-top: 1px dotted var(--rule-strong);
}

.p-ct-sent li::before {
  content: counter(af);
  content: counter(af)/"";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
}

.p-ct-sent b {
  font-weight: 700;
}

.p-ct-sent span {
  font-size: var(--fs-sm);
  color: var(--ink-sub);
}

/* ── ① 最初の画面: 来た用件と、短い札（2026-10-17 最終確認。3行の表をやめた） ── */
.p-ct-chosen {
  justify-self: start;
  max-width: 36rem;
  background: var(--white);
  border-radius: var(--r-m);
  padding: 0.7rem 1.1rem;
  box-shadow: 0 0 0 1.5px var(--accent);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.p-ct-chosen b {
  font-size: var(--fs-base);
  color: var(--accent-dark);
  margin-right: 0.6em;
}

.p-ct-chosen span {
  color: var(--ink);
  display: block;
} /* 3周目: 改行しない設定で最初の画面が右へはみ出した → 2行目に回す */
.p-ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-ct-chips li {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-dark);
  padding: 0.2em 0;
} /* 押せない札は枠を付けない（親切さの決まり） */
.p-ct-chips li::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--accent-soft);
  margin-right: 0.45em;
  vertical-align: 0.15em;
}

.p-ct-sent span {
  color: var(--ink);
}

/* thanks の最初の画面の紙＝受付の控え（2026-10-17 最終確認。封筒と鍵の写真をやめた） */
.p-ctt-slip .p-ct-sent__tit {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-ctt-slip__stamp {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  rotate: 12deg;
}

.p-ctt-slip li {
  counter-increment: none;
  padding-left: 0;
  grid-template-columns: 6.6em minmax(0, 1fr);
  gap: 0.8rem;
}

.p-ctt-slip li b {
  white-space: nowrap;
}

.p-ctt-slip li::before {
  content: none;
}

/* ═══ 2026-10-17 最終確認2周目 ═══ */
.p-ct__form .c-form__req, .p-ct__form .c-form__opt {
  white-space: nowrap;
  flex-shrink: 0;
} /* 「任／意」「必／須」と縦に割れていた */
.p-ct-chosen b {
  word-break: keep-all;
  overflow-wrap: anywhere;
} /* 「点検を／頼みたい」と割れないように（ただし画面より長ければ折る） */
@media (min-width: 900px) {
  .p-ct .c-subhero__paper, .c-subhero__paper:has(.p-ct-sent) {
    align-self: start;
    margin-top: var(--sp-6);
  }
}
/* 紙がヘッダーのすぐ下に張り付いていた */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .c-subhero__in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--sp-5);
  }
}
/* 2周目: iPad Pro 縦（900〜1099）で右の紙が約240pxと細く、語の途中で折れていた */
.p-ct-chosen {
  min-width: 0;
  max-width: 100%;
}

/* 3周目: 受付の控えで「info@nys-d.com／から、」と刻まれた → 値は語の塊で折る。iPad 横でも紙の幅を保つ */
.p-ctt-slip li span {
  word-break: auto-phrase;
}

.p-ctt-slip .u-nw {
  white-space: nowrap;
}
