/* ===== 株式会社too サンプルサイト ===== */
:root {
  --sky: #a8e0fb;
  --sky-pale: #eef8fd;
  --teal: #4fb0c6;
  --blue: #2d63a3;
  --navy: #1d3f6e;
  --text: #23384f;
  --muted: #5d7388;
  --line: #d6e9f3;
  --white: #fff;
  --grad: linear-gradient(120deg, #4fb0c6 0%, #3a86bf 55%, #2d63a3 100%);
  --grad-soft: linear-gradient(180deg, #a8e0fb 0%, #cdeefc 60%, #eef8fd 100%);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(45, 99, 163, .10);
  --line-green: #06c755;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --cta-h: 56px;
  --chrome: 112px; /* スマホ：電話・SNS＋ヘッダーの高さ */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  padding-bottom: calc(var(--cta-h) + var(--safe-bottom)); /* スマホ下部固定バー分 */
}
/* ノッチ部分の下にスクロールした内容が透けないように */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-top);
  background: var(--white); z-index: 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.4; color: var(--navy); margin: 0; }
p, li, td, th, dd { overflow-wrap: anywhere; }

.container {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, var(--safe-left));
  padding-right: max(16px, var(--safe-right));
}

/* ---------- Top bar（電話・SNS） ---------- */
.ico { width: 18px; height: 18px; flex: none; }
.topbar { background: var(--sky-pale); border-bottom: 1px solid var(--line); padding-top: var(--safe-top); } /* ノッチに被らない */
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.topbar-tel {
  display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center;
  min-height: 44px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3;
}
.topbar-tel .ico { width: 16px; height: 16px; color: var(--blue); grid-row: 1 / span 2; }
.topbar-tel small { grid-column: 2; font-weight: 400; color: var(--muted); font-size: 11px; }
.sns { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.sns a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); }
.sns a:hover { background: rgba(79, 176, 198, .15); }
.sns-top .ico { width: 22px; height: 22px; }
.sns-footer { margin-top: 20px; gap: 10px; }
.sns-footer a { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.sns-footer a:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--safe-top); z-index: 50;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
/* ロゴ画像から「too」マーク部分だけを切り出して表示 */
.logo-mark {
  width: 64px; height: 44px; overflow: hidden; position: relative; flex: none;
  border-radius: 8px; background: var(--sky);
}
.logo-mark img {
  position: absolute; max-width: none;
  width: 225px; left: -80px; top: -77px;
}
.logo-text { font-weight: 700; color: var(--navy); font-size: 14px; letter-spacing: .02em; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.menu-btn {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

.global-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.global-nav.is-open { display: block; }
.global-nav ul { list-style: none; margin: 0; padding: 4px max(16px, var(--safe-right)) 16px max(16px, var(--safe-left)); }
.global-nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 4px; text-decoration: none; color: var(--text);
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.global-nav a[aria-current="page"] { color: var(--blue); }
.global-nav .nav-cta { margin-top: 12px; border: 0; justify-content: center; color: #fff; background: var(--grad); border-radius: 999px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-soft);
  padding: 20px 0 44px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::after { /* 涼しげな波 */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 100px;
  background: var(--white); border-radius: 50% 50% 0 0;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; }
/* スマホ：キャッチコピー → 写真 → 説明・ボタン の順 */
.hero-head { order: 1; margin-bottom: 14px; }
.slider { order: 2; }
.hero-body { order: 3; }
.hero-eyebrow { font-size: 12px; letter-spacing: .15em; color: var(--blue); font-weight: 600; }
.hero h1 {
  font-size: clamp(26px, 7.4vw, 44px);
  margin: 4px 0 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .03em;
}
.hero p { margin: 0 auto; max-width: 32em; color: var(--muted); }
.hero-body { margin-top: 8px; }
.hero .hero-note { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* スライドショー */
.slider { position: relative; width: 100%; max-width: 520px; margin: 0 auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.slider:active { cursor: grabbing; }
.slider-track {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(45, 99, 163, .18); background: var(--sky);
  height: min(45vh, 75vw); /* スマホでは画面の半分未満 */
  height: min(45svh, 75vw);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* 点のインジケーターは写真の下端に重ねる（押せる範囲は44px四方） */
.slider-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; z-index: 2; }
.slider-dot { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(29, 63, 110, .25), 0 1px 3px rgba(0, 0, 0, .25); transition: background .3s, transform .3s;
}
.slider-dot[aria-current="true"]::before { background: #fff; transform: scale(1.3); }
.slider-dot:focus-visible { outline: 2px solid #fff; outline-offset: -8px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 20px; padding: 0; list-style: none; }
.hero-badges li {
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy);
}

/* Page header (下層) */
.page-hero { background: var(--grad); color: #fff; padding: 28px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(22px, 6vw, 32px); letter-spacing: .08em; }
.page-hero p { margin: 2px 0 0; font-size: 12px; letter-spacing: .25em; opacity: .9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 8px 24px; border-radius: 999px; text-align: center; line-height: 1.4;
  font-weight: 700; text-decoration: none; font-size: 16px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--teal); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-tel { background: var(--blue); color: #fff; }
.btn-mail { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 360px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-alt { background: var(--sky-pale); }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title .en { display: block; font-size: 12px; letter-spacing: .3em; color: var(--teal); font-weight: 700; }
.section-title h2 { font-size: clamp(21px, 5.6vw, 28px); margin-top: 4px; }
.section-title h2::after {
  content: ""; display: block; width: 40px; height: 3px; margin: 12px auto 0;
  background: var(--grad); border-radius: 3px;
}
.lead { text-align: center; color: var(--muted); max-width: 36em; margin: -4px auto 24px; }

/* 3つの理由 */
.reasons { display: grid; gap: 12px; }
.reason {
  background: #fff; border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow);
  border-top: 4px solid transparent; border-image: var(--grad) 1; border-image-slice: 1 0 0 0;
}
.reason-num { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--teal); }
.reason h3 { font-size: 19px; margin: 2px 0 8px; }
.reason h3 strong { color: var(--blue); font-size: 1.15em; }
.reason p { margin: 0; color: var(--muted); }
.reason small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* サービス */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.services li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; font-weight: 700; color: var(--navy); font-size: 16px; line-height: 1.5;
}
.services .icon {
  width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
}
.services .icon .ico { width: 24px; height: 24px; }

/* 施工事例 */
.works { display: grid; gap: 20px; }
.work {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-pale); }
.work-media picture { display: block; width: 100%; height: 100%; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-body { flex: 1; padding: 16px 18px 20px; }
.work-body h3 { font-size: 18px; margin: 8px 0 6px; }
.work-body p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.tag {
  display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.6; color: #fff; background: var(--teal);
  padding: 1px 12px; border-radius: 999px;
}
.tag-vehicle { background: var(--blue); }

/* CTA */
.cta { background: var(--grad); color: #fff; text-align: center; padding: 44px 0; }
.cta h2 { color: #fff; font-size: clamp(21px, 5.6vw, 26px); }
.cta p { margin: 8px 0 20px; opacity: .95; }
.cta .btn-outline { border-color: #fff; }

.center { text-align: center; margin-top: 24px; }

/* 料金表 */
.price-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.price-block h3 { font-size: 17px; padding-left: 10px; border-left: 4px solid var(--teal); margin-bottom: 6px; }
.price-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.price-table th, .price-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; font-size: 16px; line-height: 1.5; }
.price-table th { font-weight: 600; }
.price-table td { text-align: right; white-space: nowrap; font-weight: 700; color: var(--blue); padding-left: 12px; width: 1%; }
.price-table th small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table .sub { padding-left: 1.2em; font-weight: 400; }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.price-highlight {
  background: var(--grad); color: #fff; border-radius: var(--radius); padding: 20px 16px; text-align: center; margin-bottom: 12px;
}
.price-highlight .label { font-size: 15px; opacity: .95; }
.price-highlight .yen { font-size: 36px; font-weight: 800; line-height: 1.3; }
.price-highlight .yen small { font-size: 14px; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky); color: var(--blue); font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.policy { display: grid; gap: 12px; }
.policy-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.policy-item h3 { font-size: 17px; margin-bottom: 4px; }
.policy-item p { margin: 0; color: var(--muted); }

/* 会社紹介 */
.greeting { display: grid; gap: 20px; align-items: center; }
.greeting-text p { margin: 0 0 1em; }
.greeting-sign { text-align: right; font-weight: 700; color: var(--navy); }
.greeting-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
/* 代表挨拶のロゴ：画像周囲のグレー余白を隠して水色カード部分だけ見せる */
.greeting-visual { aspect-ratio: 1083 / 654; position: relative; }
.greeting-visual img { width: 108.9%; max-width: none; margin: -19.6% 0 0 -4.43%; }
.company-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.company-table th, .company-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.company-table th { background: var(--sky-pale); color: var(--navy); font-size: 14px; }
.company-table td small { display: block; font-size: 13px; color: var(--muted); }
/* スマホでは項目名と内容を縦に並べる */
.company-table tr, .company-table th, .company-table td { display: block; }
.company-table th { padding-top: 8px; padding-bottom: 8px; }
.company-table tr { border-bottom: 1px solid var(--line); }
.company-table tr:last-child { border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: #fff; border-radius: var(--radius); padding: 14px 6px; text-align: center; box-shadow: var(--shadow); line-height: 1.4; }
.stat b { display: block; font-size: clamp(15px, 4.4vw, 20px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }
.area-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.area-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border-left: 4px solid var(--teal); }
.area-item h3 { font-size: 18px; margin-bottom: 2px; }
.area-item p { margin: 0; color: var(--muted); }
.area-note { max-width: 760px; margin: 16px auto 0; color: var(--muted); }

/* お問い合わせ */
.contact-cards { display: grid; gap: 12px; }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; text-align: center; }
.contact-card h2 { font-size: 19px; margin-bottom: 4px; }
.contact-card p { margin: 0 0 12px; color: var(--muted); }
.contact-card .value { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 12px; overflow-wrap: anywhere; text-decoration: none; }
.contact-card a.value:hover { color: var(--blue); text-decoration: underline; }
.contact-card .btn { width: 100%; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 58px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.steps b { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d9e9f5; padding: 36px 0 24px; font-size: 16px; line-height: 1.7; }
.site-footer a { color: #fff; }
.footer-name { font-size: 17px; font-weight: 700; color: #fff; }
.footer-nav { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.copyright { margin-top: 20px; font-size: 12px; opacity: .75; }

/* スマホ下部固定の問い合わせバー */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
.fixed-cta a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: calc(var(--cta-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  text-decoration: none; font-weight: 700; color: #fff; font-size: 16px;
}
.fixed-cta .tel { background: var(--blue); }
.fixed-cta .line { background: var(--line-green); }

/* ---------- スマホ（767px以下）：トップの最初の画面 ---------- */
@media (max-width: 767px) {
  .hero { padding: 12px 0 24px; }
  .hero::after { bottom: -84px; }
  /* キャッチコピー → スライド → 説明文とボタン を、下部の固定バーより上の1画面に収める */
  .hero-inner {
    min-height: calc(100vh - var(--chrome) - var(--cta-h) - 36px);
    min-height: calc(100svh - var(--chrome) - var(--cta-h) - var(--safe-top) - var(--safe-bottom) - 36px);
  }
  .hero-eyebrow { display: none; }
  .hero-head { margin-bottom: 10px; }
  .hero h1 { margin: 0; }
  .slider { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 150px; max-height: min(50vh, 80vw); max-height: min(50svh, 80vw); }
  .slider-track { flex: 1 1 auto; height: auto; min-height: 150px; }
  .hero-body { margin-top: 12px; }
  .hero p { font-size: 15px; line-height: 1.6; }
  .hero p br { display: none; }
  .hero-badges { display: none; } /* 同じ内容は直後の「選ばれる3つの理由」で紹介 */
  .hero .btn-row { flex-direction: row; max-width: 400px; gap: 8px; margin-top: 12px; }
  .hero .btn { flex: 1 1 auto; min-height: 48px; padding: 6px 12px; font-size: 15px; white-space: nowrap; }
  .hero .btn-outline { flex: 0 1 auto; }
}

/* ---------- 大きめのスマホ〜タブレット ---------- */
@media (min-width: 560px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn-row { flex-direction: row; flex-wrap: wrap; max-width: none; justify-content: center; }
}

/* ---------- Tablet / PC ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .fixed-cta { display: none; }
  .menu-btn, .header-cta { display: none; }
  .global-nav { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .global-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .global-nav a { border: 0; min-height: 44px; padding: 0 14px; font-size: 14px; }
  .global-nav .nav-cta { margin: 0 0 0 8px; padding: 0 20px; }
  .site-header .container { height: 72px; }
  .logo-text { font-size: 15px; }

  .topbar { font-size: 12px; }
  .topbar .container { min-height: 44px; }
  .topbar-tel { display: flex; min-height: 44px; font-size: 14px; }
  .topbar-tel small { margin-left: 6px; }
  .sns-top .ico { width: 20px; height: 20px; }

  .hero { padding: 72px 0 96px; text-align: left; }
  .hero::after { bottom: -60px; height: 120px; }
  .hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px;
    grid-template-areas: "head slider" "body slider"; align-items: center;
  }
  .hero-head { grid-area: head; align-self: end; margin-bottom: 0; }
  .hero-body { grid-area: body; align-self: start; margin-top: 0; }
  .slider { grid-area: slider; max-width: none; width: 100%; }
  .slider-track { height: auto; aspect-ratio: 5 / 4; }
  .hero .hero-note { margin-top: 12px; }
  .hero h1 { margin: 12px 0 16px; }
  .site-footer { font-size: 14px; }
  .hero p { margin: 0; }
  .hero-badges { justify-content: flex-start; margin: 24px 0 28px; }
  .hero .btn-row { justify-content: flex-start; }

  .page-hero { padding: 40px 0; }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 32px; }
  .lead { margin-bottom: 32px; }
  .cta { padding: 56px 0; }
  .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .reason { padding: 24px 20px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .price-grid .price-block { margin-bottom: 0; }
  .price-block { padding: 20px; }
  .policy { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .greeting { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-table tr { display: table-row; }
  .company-table th, .company-table td { display: table-cell; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .company-table th { width: 28%; white-space: nowrap; }
  .company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
  .footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
}

/* ---------- PC（1024px以上） ---------- */
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .hero-inner { column-gap: 64px; }
}

/* マウス操作のときだけホバーの動きを付ける */
@media (hover: hover) and (pointer: fine) {
  .work:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(45, 99, 163, .18); }
  .work:hover .work-media img { transform: scale(1.04); }
  .services li { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .services li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
  .contact-card, .reason { transition: transform .2s ease, box-shadow .2s ease; }
  .contact-card:hover, .reason:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(45, 99, 163, .16); }
  .global-nav a:not(.nav-cta):hover { color: var(--blue); }
  .btn-primary:hover, .btn-line:hover, .btn-tel:hover, .header-cta:hover, .global-nav .nav-cta:hover { filter: brightness(1.06); }
  .btn-outline:hover, .btn-mail:hover { background: var(--sky-pale); }
}
@media (prefers-reduced-motion: reduce) {
  .work, .work-media img, .btn, .services li, .contact-card, .reason { transition: none; }
  .work:hover, .work:hover .work-media img { transform: none; }
}

/* フッター・会社概要の電話／メールも指で押しやすく */
.site-footer a[data-href], .company-table a[data-href] { display: inline-flex; align-items: center; min-height: 44px; }

/* タブレット（768〜1023px）：トップの最初の画面の文字量を2列に合わせる */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-inner { column-gap: 32px; }
  .hero h1 { font-size: 32px; }
  .hero p br { display: none; }
  .hero .btn-row { flex-wrap: nowrap; gap: 8px; }
  .hero .btn { padding: 8px 16px; font-size: 15px; white-space: nowrap; }
}
