/* ===========================================================
   施工事例サイト — 共通スタイル
   SP特化（PCは崩れない程度に整える）
   =========================================================== */

:root {
  --paper: #f2f1ef;   /* 一覧の地。白に近いごく薄いグレー */
  --card: #ffffff;    /* 事例シートの地。純白 */
  --ink: #16171a;
  --sub: #63625f;
  --stone: #8d8a85;
  --line: rgba(22, 23, 26, 0.16);
  --line-soft: rgba(22, 23, 26, 0.11);
  --brand: #f87810;   /* プロフィール写真から実測したオレンジ */
  --line-green: #06c755;  /* LINEのブランドカラー */
  --top: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* hidden は display の指定に負けるので、ここで打ち消しておく。
   （これがないと、閉じているはずの要素が画面を覆ってタップを奪う） */
[hidden] { display: none !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  /* 行頭に「ー」「っ」「、」などが来ないようにする（日本語の禁則） */
  line-break: strict;
  overflow-wrap: normal;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ラベル（英字・小さい・字間広い） */
.lab {
  font: 700 9.5px/1 'Inter', sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
}

/* 和文の本文 */
.body-jp {
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--ink);
}

/* ───────────────────────── トップバー ───────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: calc(var(--top) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.topbar .mark {
  font: 500 15px/1 'Inter', sans-serif;
  letter-spacing: 0.2em;
  text-decoration: none;
}
/* 写真の上では、面で暗くせずに文字の影だけで読ませる */
.topbar.is-over {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 14px rgba(0, 0, 0, 0.4);
}
.topbar.is-solid {
  background: rgba(242, 241, 239, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
  color: var(--ink);
  text-shadow: none;
}

/* ═══════════ 事例シート（一覧の上に、下から出る） ═══════════ */

/* シートが開いているあいだ、後ろの一覧は動かさない（位置は覚えておく） */
body.is-locked {
  position: fixed;
  left: 0; right: 0;
  width: 100%;
  overflow: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(252, 251, 249, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: background 0.45s ease,
              -webkit-backdrop-filter 0.45s ease,
              backdrop-filter 0.45s ease;
}
body[data-sheet='open'] .backdrop {
  background: rgba(252, 251, 249, 0.52);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  height: 95dvh;
  display: flex;
  flex-direction: column;
  /* 写真の上に、つまみと×のための白い帯をとる */
  padding-top: 48px;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 40px rgba(22, 23, 26, 0.16);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  overflow: hidden;
}
body[data-sheet='open'] .sheet { transform: translateY(0); }

.grip {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.grip::before {
  content: '';
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(22, 23, 26, 0.18);
}

.sheet-close {
  position: absolute;
  top: 7px; right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sheet-close::before, .sheet-close::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}
.sheet-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.sheet-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* シートの頭＝現場写真 */
.sheet-photo {
  position: relative;
  margin: 0;
  background: #23231f;
}
.sheet-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 写真のすぐ下の名札 */
.peek {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.peek-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.09em;
  font-weight: 400;
  line-height: 1;
}
.peek-sub {
  font: 400 11px/1 'Inter', sans-serif;
  letter-spacing: 0.14em;
  color: var(--sub);
}
.peek-title {
  margin: 0;
  font-size: clamp(20px, 5.6vw, 27px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* 事例ページの施工者（誰の事例か） */
.byline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}
.byline-pic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.byline span {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--sub);
}

/* 見出しは文節で折る。読点ごとに折るのはやめて、行を埋めてから折り返す。
   対応していないブラウザでは、ふつうの折り返しになるだけで崩れない。 */
.peek-title, .case-card h3, .hero-copy h1, .chap-t, .sec-head h2 {
  word-break: auto-phrase;
}
/* 本文（写真＋名札＋7段が、まとめてスクロールする） */
.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0 96px;
}

.chap { padding: 44px 22px 40px; }
.chap-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.chap-no {
  font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: 0.16em;
  color: var(--stone);
}
.chap-t {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
/* 各段の写真は余白の中に収める。
   全幅で見せるのは、シートの頭の写真と 07 の見くらべだけ。 */
.chap-fig { margin: 0 0 18px; }
.chap-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chap-fig.tall img { aspect-ratio: 3 / 4; }
.chap + .chap { border-top: 1px solid var(--line-soft); }
.chap-quote {
  font-size: 18px;
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

/* 画像ギャラリー。地図アプリの写真の帯と同じ、横に流す形。 */
.gal {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -22px;
  padding: 0 22px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 22px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gal::-webkit-scrollbar { display: none; }
.gal img {
  flex: 0 0 auto;
  height: 208px;
  width: auto;
  max-width: none;
  object-fit: cover;
  scroll-snap-align: start;
}

/* 写真を1枚ずつ大きく見るところ */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 12, 11, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body[data-viewer='open'] .viewer { opacity: 1; }

.viewer-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 12px calc(72px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.viewer-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.viewer-close::before, .viewer-close::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 15px;
  height: 1.5px;
  background: currentColor;
}
.viewer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.viewer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-nav::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}
.viewer-nav.next::before { transform: translate(-65%, -50%) rotate(45deg); }
.viewer-nav.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }

.viewer-count {
  position: absolute;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font: 400 12px/1 'Inter', sans-serif;
  letter-spacing: 0.14em;
}

/* ギャラリーの写真は押せる */
.gal img { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }

/* 施工前 / 施工後 の対比 */
.ba {
  position: relative;
  margin: 0 -22px 14px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #23231f;
  touch-action: pan-y;
  cursor: ew-resize;
  --p: 50%;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-clip {
  position: absolute;
  inset: 0;
  width: var(--p);
  overflow: hidden;
}
.ba-clip img { width: 100vw; max-width: none; }
.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--p);
  width: 1px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: var(--p);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.ba-knob::before, .ba-knob::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.ba-knob::before { border-right: 6px solid var(--ink); }
.ba-knob::after { border-left: 6px solid var(--ink); }
.ba-tag {
  position: absolute;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 8, 0.6);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  pointer-events: none;
}
.ba-tag.l { left: 12px; }
.ba-tag.r { right: 12px; }

/* お問い合わせ */
.foot {
  margin-top: 18px;
  padding: 36px 22px 30px;
  border-top: 1px solid var(--line);
}
.foot .lab { margin-bottom: 12px; }
.foot p { margin: 0; }
/* 問い合わせに添える署名 */
.sig {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.sig-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.sig-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.sig-role {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--sub);
}

/* 事例ページの末尾は、性質ごとに分ける。
   Contact（問い合わせ）／すべて見る（移動）
   ※外部サービスへの入口は、事例ページには置かない（トップのみ） */
.foot-nav { margin-top: 0; padding: 26px 22px 30px; }

.foot-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 0;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════ 一覧（index.html） ═══════════════════════ */

.hero {
  position: relative;
  height: 38dvh;
  min-height: 250px;
  max-height: 380px;
  overflow: hidden;
  background: #23231f;
}
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
/* かぶせるのは、文字が乗っている下の一角だけ。写真の本体には触らない。 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(10, 10, 8, 0.64) 0%,
    rgba(10, 10, 8, 0.40) 10%,
    rgba(10, 10, 8, 0) 26%);
}
.hero-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  /* 下の下敷きと合わせて二重に。影は軽めでよい。 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
/* 施工者のプロフィール */
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-avatar svg { width: 28px; height: 28px; fill: rgba(255, 255, 255, 0.82); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { min-width: 0; }
.profile-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.profile-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.profile-area {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
}
/* 写真の上に置くピル */
.tag.light {
  padding: 4px 9px;
  font-size: 10.5px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.wrap { max-width: 760px; margin: 0 auto; }
.sec { padding: 56px 22px 0; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.sec-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sec-head .count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sub);
}
.sec-lead {
  margin: 18px 0 4px;
  font-size: 13.5px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--sub);
}

/* 一覧は網羅性を優先する。小さいサムネイル＋見出し＋短い1行。 */
.cases { display: grid; gap: 0; }
.case-card {
  display: grid;
  grid-template-columns: 92px 1fr 14px;
  gap: 16px;
  align-items: start;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease;
}
.case-card:hover { background: rgba(22, 23, 26, 0.025); }
.case-card img {
  width: 92px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.case-text { min-width: 0; }
.case-meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-bottom: 8px;
}
.case-meta i {
  width: 1px;
  height: 9px;
  margin: 0 8px;
  background: var(--line);
}
.case-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.case-card .lead {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--sub);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.case-card .go {
  align-self: center;
  font: 400 13px/1 'Inter', sans-serif;
  color: var(--stone);
}

.about { padding: 56px 22px 0; }
.about-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.about-avatar {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}
.about-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.about-role {
  margin: 5px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sub);
}
.about .body-jp { margin: 20px 0 0; }

/* ─────────────── できること（外部への入口） ─────────────── */
.svc-list { display: grid; gap: 12px; margin-top: 22px; }
.svc-card {
  display: flex;
  gap: 16px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.svc-card:hover { border-color: var(--line); transform: translateY(-1px); }

.svc-visual {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.svc-visual svg { width: 22px; height: 22px; fill: var(--ink); }
.svc-visual img { width: 100%; height: 100%; object-fit: cover; }

/* アイコンの色。オレンジはプロフィール写真から実測した #f87810。 */
.svc-visual.is-brand { background: var(--brand); }
.svc-visual.is-brand svg { fill: #fff; }
.svc-visual.is-instagram {
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
}
.svc-visual.is-instagram svg { fill: #fff; }

.svc-body { flex: 1; min-width: 0; }
.svc-eyebrow {
  font: 700 9px/1 'Inter', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 7px;
}
.svc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.svc-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--sub);
}
.svc-go {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* ─────────────── 締めのお問い合わせ ─────────────── */
.services { padding-top: 56px; }
.cta-block {
  margin-top: 52px;
  padding: 40px 22px;
  background: var(--card);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cta-block h2 {
  margin: 12px 0 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.cta-block .body-jp { margin: 14px 0 0; }
.cta-line-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 17px 20px;
  border-radius: 10px;
  background: var(--line-green);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  -webkit-tap-highlight-color: transparent;
}
.cta-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-align: center;
}

.site-foot {
  margin-top: 64px;
  padding: 36px 22px calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* ─────────────── 問い合わせ（画面の下に固定） ─────────────── */
/* 事例シートを開いているあいだだけ出す。
   一覧側はページ末尾の CTA ブロックが担うので、そちらでは出さない。 */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
body[data-sheet='open'] .cta-bar {
  transform: translateY(0);
  pointer-events: auto;
}

/* バーのぶんだけ、ページの下に余白を足す（一覧の最後のカードが隠れないように） */
body.has-cta .scroll { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

.cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  -webkit-tap-highlight-color: transparent;
}
.cta-line {
  flex: 1;
  background: #fff;
  color: var(--line-green);
  border: 1.5px solid var(--line-green);
  font-weight: 500;
}
.cta-tel {
  width: 82px;
  flex: 0 0 auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  gap: 6px;
}
.cta-tel svg { width: 17px; height: 17px; fill: currentColor; }
/* ?preview=1 のときの見本表示。押しても何も起きない。 */
.cta-bar .is-preview { cursor: default; }

/* ───────────────────────── PC ───────────────────────── */
@media (min-width: 768px) {
  .sheet {
    left: 50%;
    right: auto;
    width: 560px;
    transform: translateX(-50%) translateY(100%);
  }
  body[data-sheet='open'] .sheet { transform: translateX(-50%) translateY(0); }
  .hero-copy { left: 50%; transform: translateX(-50%); width: min(716px, 100% - 44px); right: auto; }
  .sec, .about { padding-left: 0; padding-right: 0; }
  .wrap { padding: 0 22px; }

  /* PCは1行が長くなりすぎるので、35字くらいで折る。
     単位は em（和文は 1em＝1文字）。ch は「0」の幅＝和文の約半分なので使わない。 */
  .sec-lead, .about .body-jp { max-width: 35em; }
  .case-card { grid-template-columns: 132px 1fr 14px; gap: 22px; padding: 20px 0; }
  .case-card img { width: 132px; }

  .cta-bar { justify-content: center; padding: 14px 22px; }
  .cta-line { flex: 0 0 auto; width: 280px; }
}
