/* 中川車検クリニック 設計の正本: .company/sales/proposals/2026-09-29-nakagawa-hp-build-plan.md */

:root {
  --navy: #1c2488;
  --logo-blue: #3078d8; /* 線・アイコンと、24px 以上の数字だけ（白地で 4.37:1）。本文サイズの文字には使わない */
  --red: #a81818;       /* 4か所だけ: 帯の上の線・帯の電話ボタン・固定ボタン・募集の電話ボタン */
  --text: #231815;
  --bg: #ffffff;
  --bg-sub: #eef2f8;
  --line: #cfd8e6;
  --fixed-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
::selection { background: var(--navy); color: #fff; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  padding-bottom: calc(var(--fixed-h) + env(safe-area-inset-bottom));
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

/* 日本語を文節の切れ目で折り返す（対応しないブラウザでは今までどおり） */
.section__title, .points__head, .menu__head, .lead { word-break: auto-phrase; text-wrap: balance; }
.menu__body p, .points__item p, .menu-text__item p, figcaption { word-break: auto-phrase; }
p, figcaption { text-wrap: pretty; overflow-wrap: anywhere; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--navy); }

:focus-visible { outline: 3px solid var(--logo-blue); outline-offset: 2px; }
.on-dark :focus-visible, .fixed-tel:focus-visible { outline-color: #fff; }
/* 画面の端に貼りついたボタンは、枠を内側に描かないと見えない */
.fixed-tel:focus-visible { outline-offset: -6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { background: var(--navy); color: #fff; }
.site-header__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 16px;
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 22px; width: auto; object-fit: contain; } /* 狭い画面で幅だけ縮んでも縦横比を保つ */
.head-tel {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid #fff; border-radius: 3px; color: #fff; text-decoration: none; font-weight: 700;
}
.head-tel__num, .head-tel__hours { display: none; }

/* ヒーロー */
.hero__en {
  font-family: "Oswald", sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: .08em; line-height: 1.4; opacity: .8;
}
.hero__title { margin-top: 6px; font-weight: 700; }
.hero__name { display: block; font-size: 16px; line-height: 1.5; }
.hero__city { display: block; font-size: 13px; font-weight: 500; opacity: .9; }
.hero__catch { display: block; margin-top: 8px; font-size: clamp(20px, 6.1vw, 25px); line-height: 1.35; letter-spacing: .02em; word-break: keep-all; }

/* 電話ボタン */
.tel-block { margin-top: 16px; }
.btn-tel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 56px; padding: 6px 20px;
  background: var(--red); color: #fff; text-decoration: none;
  border: 2px solid #fff; border-radius: 4px;
}
.btn-tel__label { font-size: 17px; font-weight: 700; line-height: 1.4; }
.btn-tel__num { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 18px; letter-spacing: .04em; line-height: 1.3; }
.tel-hours { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.hero .tel-hours { opacity: .9; }
.tel-block--light .btn-tel { border-color: var(--red); }

/* マウスのある端末だけ、押せる物に載せたときの変化をつける */
@media (hover: hover) {
  .btn-tel:hover, .fixed-tel:hover { filter: brightness(1.12); }
  a:hover { text-decoration-thickness: 2px; }
  .head-tel:hover .head-tel__num { text-decoration: underline; text-underline-offset: 4px; }
}

/* ブロック共通 */
.section { padding: 48px 0; }
.section--sub { background: var(--bg-sub); }
.section__title { color: var(--navy); font-size: 22px; line-height: 1.4; font-weight: 700; }

/* いいところ */
.lead { margin-top: 20px; font-weight: 700; color: var(--navy); }
.points { margin-top: 20px; border-top: 1px solid var(--line); }
.points__item {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.points__num { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--logo-blue); }
.points__head { font-size: 18px; line-height: 1.5; color: var(--navy); }

/* 対応車種 */
.cars__all { margin-top: 20px; font-weight: 700; }
.cars { margin-top: 12px; display: grid; gap: 18px; }
.cars__label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 1px solid var(--navy); color: var(--navy); background: #fff;
  padding: 5px 14px; border-radius: 2px; font-size: 15px; font-weight: 700; line-height: 1.5;
}
.cars__ask { margin-top: 24px; font-size: 15px; }
.text-tel { display: inline-flex; align-items: center; min-height: 44px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .03em; margin-right: 10px; }
/* 指で押す文字リンクは高さ44px を取る */
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.text-tel__hours { display: inline-block; font-size: 13px; }

/* メニュー */
.menu { margin-top: 24px; display: grid; gap: 20px; }
.menu__item { background: #fff; }
.menu__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy); }
.menu__body { padding: 16px 18px 20px; }
.menu__num { display: block; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .06em; color: var(--navy); line-height: 1.2; }
.menu__head { margin-top: 2px; font-size: 19px; line-height: 1.5; color: var(--navy); }
.menu__body p { margin-top: 6px; }
.menu-text { margin-top: 20px; display: grid; gap: 12px; }
.menu-text__item {
  display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline;
  background: #fff; border-top: 2px solid var(--navy); padding: 14px 18px;
}

/* 工場の様子 */
.gallery { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy); }
.gallery__item figcaption { margin-top: 6px; font-size: 14px; line-height: 1.5; }

/* 会社情報 */
.company { margin-top: 24px; width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.company th, .company td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.company th { width: 9em; color: var(--navy); font-weight: 700; background: #f7f9fc; }

/* アクセス */
.access__addr { margin-top: 20px; font-weight: 700; }
.access__map { margin-top: 12px; height: 280px; background: var(--bg-sub); }
.access__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* 整備士募集 */
.recruit { display: grid; gap: 20px; }
.recruit__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; background: var(--navy); }
.recruit__body p { margin-top: 16px; }
.recruit__body .tel-block { margin-top: 20px; }
.recruit__body .tel-hours { margin-top: 6px; }

/* フッター */
.site-footer { background: var(--navy); color: #fff; padding: 36px 0 32px; font-size: 14px; }
.site-footer__logo { height: 20px; width: auto; }
.site-footer p { margin-top: 14px; }
.site-footer__copy { opacity: .85; }
.site-footer__copy small { font-size: 13px; }

/* スマホ下部の固定ボタン */
.fixed-tel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(var(--fixed-h) + env(safe-area-inset-bottom));
  padding: 4px 12px env(safe-area-inset-bottom);
  background: var(--red); color: #fff; text-decoration: none;
  transform: translateY(110%); transition: transform .2s ease;
}
.fixed-tel.is-visible { transform: none; }
.fixed-tel__label { font-size: 16px; font-weight: 700; line-height: 1.4; }
.fixed-tel__hours { font-size: 13px; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
  .fixed-tel { transition: none; }
}

/* スマホのメニューは写真を左に置いた行にする（全幅の写真を4枚積むと縦に長くなりすぎるため） */
@media (max-width: 767px) {
  .menu { gap: 12px; }
  .menu__item { display: grid; grid-template-columns: 40% 1fr; }
  .menu__photo { height: 100%; min-height: 150px; aspect-ratio: auto; }
  .menu__body { padding: 14px 14px 16px; }
  .menu__head { font-size: 17px; }
}

/* 会社情報の表は 600px 以下で縦積み */
@media (max-width: 600px) {
  .company, .company tbody, .company tr, .company th, .company td { display: block; width: 100%; }
  .company tr { border-bottom: 1px solid var(--line); }
  .company th, .company td { border: 0; }
  .company th { padding: 10px 14px 0; background: none; font-size: 13px; }
  .company td { padding: 2px 14px 10px; }
  .company { border: 1px solid var(--line); border-bottom: 0; }
}

/* タブレット */
@media (min-width: 768px) {
  .menu { grid-template-columns: repeat(2, 1fr); }
  .menu-text { grid-template-columns: repeat(2, 1fr); }
  /* 左右の余白は 24px で、ヘッダー・ヒーロー・各セクションの左端をそろえる */
  .wrap, .site-header__inner { padding-left: 24px; padding-right: 24px; }
  .hero .tel-block { max-width: 420px; }
  .recruit__body .tel-block { max-width: 420px; }
}

/* PC */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .fixed-tel { display: none; }

  html { scroll-padding-top: 88px; }
  .site-header { position: sticky; top: 0; z-index: 10; }
  .site-header__inner { height: 72px; padding: 0 24px; }
  .site-header__logo img { height: 30px; }
  .site-header__tel { display: flex; flex-direction: column; align-items: flex-end; }
  .head-tel { border: 0; padding: 0; min-height: 0; gap: 10px; }
  .head-tel__label { font-size: 14px; }
  .head-tel__num { display: inline; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 26px; letter-spacing: .04em; line-height: 1.2; }
  .head-tel__hours { display: block; font-size: 13px; line-height: 1.4; opacity: .9; }

  .hero { display: grid; grid-template-columns: 6fr 4fr; min-height: 560px; background: var(--navy); }
  .hero__en { font-size: 15px; }
  .hero__name { font-size: 18px; }
  .hero__city { font-size: 14px; }
  .hero__catch { font-size: 34px; }
  .btn-tel__num { font-size: 24px; }

  .wrap { padding: 0 24px; }
  .section { padding: 80px 0; }
  .section__title { font-size: 28px; }

  .points { display: grid; grid-template-columns: 1fr; }
  .recruit { grid-template-columns: 420px 1fr; gap: 48px; align-items: center; }
  .recruit__photo { aspect-ratio: 3 / 4; }
}
