@charset "UTF-8";
/* ==========================================================================
   Component（c-*）— 見出し・ボタン・パンくず・図版・スロット・引用・フォーム・出現
   ========================================================================== */

/* ── 節見出し（型A: 左揃え＋小さな英字ラベル／型B: --c で中央。3種目は使わない） ── */
.c-heading {
  margin-bottom: 36px;
}

.c-heading__en {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--b-sub-dark);
  margin-bottom: 8px;
}

/* 木口の印（材木の切り口の正方形）。このデモの見出しの「手」— 線でなく面の点 */
.c-heading__en::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--b-sub);
  margin-right: 10px;
}

.c-heading h2,
.c-heading h3 {
  font-size: clamp(26px, 3vw, 38px);   /* 2026-08-23 スケールアップ（30px固定は「小さくまとまって」いた） */
  color: var(--b-ink);
}

.c-heading__lead {
  margin-top: 14px;
  max-width: 44em;
}

.c-heading--c {
  text-align: center;
}

.c-heading--c .c-heading__lead {
  margin-inline: auto;
}

@media (max-width: 767px) {
  .c-heading h2,
  .c-heading h3 {
    font-size: 24px;
  }
}

/* ── ボタン ── */
.c-btn {
  display: inline-block;
  background: var(--b-main);
  color: var(--b-white);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 36px;
  border: 1px solid var(--b-main);
  border-radius: var(--b-radius-btn);
  transition: background-color 0.2s ease, translate 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.c-btn:hover {
  background: var(--b-main-dark);
  border-color: var(--b-main-dark);
  color: var(--b-white);
  box-shadow: var(--b-shadow);
}

.c-btn--ghost {
  background: transparent;
  color: var(--b-main-dark);
  border: 1px solid var(--b-main);
}

.c-btn--ghost:hover {
  background: var(--b-main-pale);
  color: var(--b-main-dark);
}

/* 濃い面の上ではボタンを反転 */
.l-sec--deep .c-btn {
  background: var(--b-white);
  color: var(--b-main-dark);
  border-color: var(--b-white);
}

.l-sec--deep .c-btn:hover {
  background: var(--b-cream);
  color: var(--b-main-dark);
}

/* 濃い面の上の文字（見出し・リード・注記は白系で組む） */
.l-sec--deep .c-heading h2,
.l-sec--deep .c-heading h3 {
  color: var(--b-white);
}

.l-sec--deep .c-heading__en {
  color: rgba(255, 255, 255, 0.78);
}

.l-sec--deep .c-heading__lead,
.l-sec--deep .u-muted {
  color: rgba(255, 255, 255, 0.78);
}

.l-sec--deep .c-cta__tel a {
  color: var(--b-white);
}

.l-sec--deep .c-cta__note {
  color: rgba(255, 255, 255, 0.75);
}

/* ── 金額の組み（前置き小・数字大・単位小）。数字はいちばん見られる情報 ── */
.c-price__pre {
  font-size: 13px;
  color: var(--b-muted);
  margin-right: 6px;
}

.c-price__num {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  color: var(--b-sub-dark);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.c-price__unit {
  font-size: 14px;
  margin-left: 2px;
  color: var(--b-muted);
}

.c-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.c-btns--c {
  justify-content: center;
}

/* ── メール第1・電話第2の導線 ── */
.c-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

.c-cta--c {
  justify-content: center;
}

.c-cta__tel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--b-main-dark);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.c-cta__note {
  display: block;
  font-size: 13px;
  color: var(--b-muted);
}

.l-sec--deep .c-cta__tel a,
.l-sec--deep .c-cta__note {
  color: var(--b-white);
}

/* ── パンくず ── */
.c-crumb {
  font-size: 13px;
  color: var(--b-muted);
  padding-top: 20px;
}

.c-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c-crumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--b-line);
}

.c-crumb a {
  color: var(--b-muted);
  text-decoration: none;
}

.c-crumb a:hover {
  color: var(--b-main-dark);
  text-decoration: underline;
}

/* ── 図版と画像スロット ── */
.c-figure {
  overflow: hidden;
  border-radius: var(--b-radius);
}

.c-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* 予定地（写真が届くまで。本番では出ない — inc/demo.php） */
.c-imgslot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(47, 93, 80, 0.05) 14px 28px),
    var(--b-cream);
  border: 1px dashed var(--b-line);
  border-radius: var(--b-radius);
  color: var(--b-muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  width: 100%;
}

.c-imgslot b {
  color: var(--b-main-dark);
  font-size: 13px;
}

.c-imgslot code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
}

/* ── 引用（お客様の声）。鉤括弧は明朝で組む — 引用記号の飾りは持たない ── */
.c-quote {
  background: var(--b-white);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  padding: 28px;
  box-shadow: var(--b-shadow);
}

.c-quote__body {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 2;
}

.c-quote__body::before {
  content: "「";
  margin-left: -0.5em;
}

.c-quote__body::after {
  content: "」";
}

.c-quote__who {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--b-muted);
}

.c-quote__work {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--b-main-dark);
}

/* ── 注記の面（赤は使わない） ── */
.c-note {
  background: var(--b-main-pale);
  border-radius: var(--b-radius);
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.8;
}

/* ── 表（費用の目安・会社概要で共用） ── */
.c-table th,
.c-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--b-line);
  vertical-align: top;
  font-weight: 400;
}

.c-table th {
  white-space: nowrap;
  color: var(--b-main-dark);
  font-weight: 700;
}

.c-table--price td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.c-table tbody tr {
  transition: background-color 0.2s ease;
}

.c-table--price tbody tr:hover {
  background: var(--b-cream);
}

/* ── フォーム ── */
.c-form__row {
  margin-bottom: 22px;
}

.c-form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
}

.c-form__req,
.c-form__opt {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.c-form__req {
  background: var(--b-main);
  color: var(--b-white);
}

.c-form__opt {
  background: var(--b-cream);
  color: var(--b-muted);
}

.c-form__input,
.c-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-btn);
  background: var(--b-white);
}

.c-form__input:focus,
.c-form__textarea:focus {
  border-color: var(--b-main);
  outline: 2px solid var(--b-main-pale);
}

.c-form__textarea {
  min-height: 170px;
  resize: vertical;
}

.c-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.c-form__radios label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ── アイコン（家形と受話器だけ） ── */
.c-icon {
  flex: none;
}

/* ── 出現（fade＋rise）。隠すのは .js があるときだけ＝JSが死んでも全部見える ── */
.js [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

.js [data-delay="1"] { transition-delay: 0.1s; }
.js [data-delay="2"] { transition-delay: 0.2s; }
.js [data-delay="3"] { transition-delay: 0.3s; }

/* ── 写真の拭き上げ（全ページ共通の「入場」— 2026-08-23 下層にも動きを通した）──
   杉色の面（p-ph の ::before）が先に見え、写真が下から現れて寄りがすっと引く。
   ⚠️ クリップは figure 側に掛ける（img は面取りの clip-path を持っているため、重ねられない） */
.js [data-reveal] .c-figure {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js [data-reveal] .c-figure img {
  scale: 1.08;
  transition: scale 1.3s ease;
}

.js [data-reveal].is-in .c-figure {
  clip-path: inset(0);
}

.js [data-reveal].is-in .c-figure img {
  scale: 1;
}

/* 遅延カードは写真の入場も同じだけ待つ（親の transition-delay は子に伝わらない） */
.js [data-delay="1"] .c-figure,
.js [data-delay="1"] .c-figure img { transition-delay: 0.1s; }
.js [data-delay="2"] .c-figure,
.js [data-delay="2"] .c-figure img { transition-delay: 0.2s; }

/* ── 飾り番号のポップ（ばねで弾んで現れる。番号は全ページ共通の「手」） ── */
.js [data-reveal] :is(.p-qa__num, .p-svcnum, .p-work__num, .p-nums__num, .p-stack__num) {
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.5s ease 0.12s, scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s;
  display: inline-block;
}

.js [data-reveal].is-in :is(.p-qa__num, .p-svcnum, .p-work__num, .p-nums__num, .p-stack__num) {
  opacity: 1;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .js [data-reveal] .c-figure,
  .js [data-reveal] .c-figure img,
  .js [data-reveal] :is(.p-qa__num, .p-svcnum, .p-work__num, .p-nums__num, .p-stack__num) {
    clip-path: none;
    scale: 1;
    opacity: 1;
    transition: none;
  }
}
