/* ============================================
   株式会社カーケア中原 改善版HP 共通スタイル
   テーマカラーは元サイトに合わせた緑（#47b39d）
   ============================================ */
:root {
  --accent: #47b39d;
  --accent-dark: #359a85;
  --navy: #3b4552;
  --text: #333;
  --bg-light: #f4f8f7;
  --border: #e5e5e5;
  --orange: #ff6c00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: #fff; /* ダークモード環境でも白背景で表示する */
  line-height: 1.9;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }

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

/* ---------- ヘッダー上の帯（電話・営業案内） ---------- */
.top-bar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.top-bar a { color: #fff; text-decoration: none; font-weight: bold; }

/* ---------- ヘッダー ---------- */
header.site-header {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.logo { text-decoration: none; line-height: 1.3; }
.logo .logo-main {
  font-size: 22px;
  font-weight: bold;
  color: var(--navy);
  letter-spacing: .04em;
}
.logo .logo-main span { color: var(--accent); }
.logo .logo-sub { font-size: 11px; color: #777; }

/* ナビ（PC） */
nav.global-nav ul { list-style: none; display: flex; gap: 4px; }
nav.global-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
nav.global-nav a:hover, nav.global-nav a.current { background: var(--accent); color: #fff; }
.nav-tel { display: none; }

/* ハンバーガー（スマホ） */
#nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-size: 28px; color: var(--navy); padding: 4px 10px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: url("https://carcare-nakahara.jp/ccnakahara/wp-content/uploads/2024/12/dbc4aa4acbffa249faefa83e88c132bd.jpg") center/cover no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20, 40, 35, .45);
}
.hero-inner { position: relative; color: #fff; padding: 60px 20px; }
.hero h1 {
  font-size: 34px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: 14px;
}
.hero p.hero-sub {
  font-size: 17px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: transform .15s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn-tel { background: #fff; color: var(--navy); }
.btn-tel .small { font-size: 12px; display: block; color: #777; font-weight: normal; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-line { background: #06c755; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent-dark); }

/* ---------- セクション共通 ---------- */
section { padding: 70px 0; }
section.alt { background: var(--bg-light); }
.sec-title { text-align: center; margin-bottom: 46px; }
.sec-title h2 { font-size: 30px; color: var(--navy); letter-spacing: .06em; }
.sec-title .en { color: var(--accent); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: bold; }
.sec-title .bar { width: 48px; height: 4px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }

/* ---------- 事業カード ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.09);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.service-card .thumb { height: 190px; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card .num { color: var(--accent); font-weight: bold; font-size: 13px; letter-spacing: .15em; }
.service-card h3 { font-size: 20px; color: var(--navy); margin: 4px 0 10px; }
.service-card p { font-size: 14.5px; flex: 1; }
.service-card .more {
  margin-top: 18px;
  align-self: flex-start;
  color: var(--accent-dark);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- お知らせ ---------- */
.news-list { list-style: none; max-width: 780px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list a {
  display: flex;
  gap: 18px;
  padding: 16px 8px;
  text-decoration: none;
  color: var(--text);
  align-items: baseline;
  flex-wrap: wrap;
}
.news-list a:hover { background: var(--bg-light); }
.news-list .date { color: #888; font-size: 13px; white-space: nowrap; }
.news-list .cat {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.news-list .cat.tips { background: var(--orange); }
.news-more { text-align: center; margin-top: 30px; }

/* ---------- 会社概要 ---------- */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.company-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.company-table th, .company-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.company-table th { width: 32%; color: var(--navy); background: var(--bg-light); font-weight: bold; }
.map-embed { border-radius: 12px; overflow: hidden; box-shadow: 0 3px 14px rgba(0,0,0,.1); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- お問い合わせ帯 ---------- */
.contact-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.contact-band h2 { font-size: 26px; margin-bottom: 8px; }
.contact-band p { margin-bottom: 24px; font-size: 15px; }
.contact-band .tel-big {
  font-size: 38px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  letter-spacing: .04em;
  display: inline-block;
}
.contact-band .tel-note { font-size: 13px; opacity: .9; }
.contact-band .band-btns { margin-top: 20px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- フッター ---------- */
footer.site-footer { background: var(--navy); color: #cfd6de; font-size: 14px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-inner h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 8px; }
.footer-inner a { color: #cfd6de; text-decoration: none; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-logo { font-size: 19px; font-weight: bold; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.copyright { text-align: center; padding: 16px; border-top: 1px solid #4c5866; font-size: 12px; }

/* ---------- 下層ページ共通 ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy), #2c3540);
  color: #fff;
  padding: 54px 20px;
  text-align: center;
}
.page-header h1 { font-size: 30px; letter-spacing: .06em; }
.page-header .breadcrumb { font-size: 13px; opacity: .85; margin-top: 8px; }
.page-header .breadcrumb a { color: #fff; }

.content-section { padding: 56px 0; }
.content-section h2 {
  font-size: 24px;
  color: var(--navy);
  border-left: 6px solid var(--accent);
  padding-left: 14px;
  margin: 44px 0 20px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { font-size: 19px; color: var(--accent-dark); margin: 30px 0 12px; }
.content-section p { margin-bottom: 16px; }
.content-section ul, .content-section ol { margin: 0 0 16px 24px; }
.content-section li { margin-bottom: 6px; }

.lead-img { border-radius: 12px; overflow: hidden; margin-bottom: 28px; box-shadow: 0 3px 14px rgba(0,0,0,.1); }

/* 流れ（ステップ） */
.steps { counter-reset: step; list-style: none; margin: 0 0 20px !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 66px;
  background: var(--bg-light);
  border-radius: 10px;
  margin-bottom: 14px !important;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.steps li strong { color: var(--navy); }

/* おすすめ4枠 */
.recommend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.recommend-grid .item {
  background: var(--bg-light);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-weight: bold;
  color: var(--navy);
  font-size: 14px;
}

/* 料金・注意のカード */
.info-card {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.info-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
.price-table th, .price-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: center; }
.price-table th { background: var(--accent); color: #fff; }
.price-table tr:nth-child(even) { background: var(--bg-light); }

/* 注意ボックス */
.note-box {
  border: 2px solid var(--orange);
  background: #fff8f2;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14.5px;
}
.note-box strong { color: var(--orange); }

/* お問い合わせフォーム */
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-form label { display: block; font-weight: bold; color: var(--navy); margin: 22px 0 6px; }
.contact-form label .req {
  background: #e05252; color: #fff; font-size: 11px;
  padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.contact-form textarea { min-height: 180px; }
.contact-form .submit-area { text-align: center; margin-top: 34px; }
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 16px 60px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}
.contact-form button:hover { background: var(--accent-dark); }
.form-note { font-size: 13px; color: #777; margin-top: 24px; }

/* 固定の電話ボタン（スマホ用） */
.fixed-tel {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 13px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  box-shadow: 0 -2px 10px rgba(0,0,0,.2);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 25px; }
  .sec-title h2 { font-size: 24px; }

  /* ナビをドロワーに */
  .nav-toggle-label { display: block; }
  nav.global-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
  }
  #nav-toggle:checked ~ nav.global-nav { display: block; }
  nav.global-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  nav.global-nav a { border-radius: 0; padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-tel { display: block; }

  .fixed-tel { display: block; }
  body { padding-bottom: 52px; }
  .contact-band .tel-big { font-size: 30px; }
}
