/* =============================================
   アウトバーン森岡自動車 株式会社 - 共通スタイル
   （営業デモ用テンプレート／高級感テイスト）
   ---------------------------------------------
   ★他社流用時は :root の変数と写真を差し替えるだけで
     配色テーマを変更できます
   ============================================= */

:root {
  /* テーマカラー（高級感：漆黒×シャンパンゴールド） */
  --primary: #c6a35c;        /* メイン：ゴールド */
  --primary-deep: #a8843f;   /* 濃いゴールド */
  --gold-pale: #e8d9b8;      /* 淡いゴールド（暗背景の文字） */
  --dark: #14161a;           /* 漆黒（ヒーロー・フッター） */
  --dark-soft: #22252c;      /* やや明るい黒 */
  --primary-dark: #1c1f26;   /* 見出し色（黒鋼） */
  --primary-pale: #f5f2ea;   /* アイボリー（セクション背景） */
  --accent: #b08a3e;         /* CTA用ゴールド */
  --accent-dark: #94722f;
  --ink: #2a2d33;            /* 本文 */
  --ink-soft: #6b6f77;       /* サブテキスト */
  --bg: #ffffff;
  --line: #e3ddd0;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(20, 22, 26, 0.08);

  --font-head: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

/* 画面外に待機するモバイルメニューによる横スクロールを防止 */
html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 2;
  font-size: 15.5px;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-deep); text-decoration: none; }
a:hover { opacity: .85; }

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 22, 26, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(198, 163, 92, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.brand .brand-sub {
  font-size: 10.5px;
  color: var(--primary);
  letter-spacing: .28em;
}

.brand .brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: #f5f1e8;
  letter-spacing: .06em;
}

.brand .brand-name span { color: var(--primary); }

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.global-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
}

.global-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #d9d5cb;
  letter-spacing: .08em;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}

.global-nav a:hover,
.global-nav a.current {
  color: var(--primary);
  border-bottom-color: var(--primary);
  opacity: 1;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d4b26a, #a8843f);
  color: #17130a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  padding: 9px 20px;
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(168, 132, 63, .4);
  white-space: nowrap;
}

.header-tel:hover { filter: brightness(1.06); opacity: 1; }

.header-tel svg { flex-shrink: 0; }

.header-tel small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

/* ハンバーガー（モバイル） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  margin: 6px 0;
  transition: .25s;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1000px 560px at 80% -15%, rgba(198, 163, 92, .18), transparent 62%),
    radial-gradient(ellipse 700px 400px at 8% 110%, rgba(198, 163, 92, .10), transparent 60%),
    linear-gradient(160deg, #1c1f26 0%, #14161a 60%, #0e0f12 100%);
  color: #f2efe8;
  padding: 84px 0 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 150px;
}

.hero-badge {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--gold-pale);
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .3em;
  padding: 7px 26px 7px 30px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.55;
  letter-spacing: .08em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.hero h1 .em {
  color: var(--primary);
  text-shadow: 0 0 30px rgba(198, 163, 92, .35);
}

.hero .hero-lead {
  margin-top: 20px;
  font-size: clamp(13.5px, 1.8vw, 16px);
  letter-spacing: .12em;
  color: #cfccc3;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.hero-tags li {
  list-style: none;
  background: rgba(198, 163, 92, .1);
  border: 1px solid rgba(198, 163, 92, .55);
  color: var(--gold-pale);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .14em;
  border-radius: 2px;
  padding: 7px 20px;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 3px;
  padding: 15px 36px;
  font-size: 17px;
  letter-spacing: .06em;
  transition: transform .15s, filter .15s;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.06); opacity: 1; }

.btn-tel {
  background: linear-gradient(135deg, #d4b26a, #a8843f);
  color: #17130a;
  font-size: 21px;
  box-shadow: 0 6px 20px rgba(168, 132, 63, .35);
}

.btn-tel small { font-size: 11px; font-weight: 500; }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(232, 217, 184, .8);
  color: var(--gold-pale);
  font-size: 15px;
}

/* ヒーロー下部の道路イメージ（CSS描画） */
.hero-road {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  display: block;
}

/* ---------- セクション共通 ---------- */
section { padding: 84px 0; }

.section-alt { background: var(--primary-pale); }

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-head .en {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .38em;
  color: var(--primary-deep);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 33px);
  color: var(--primary-dark);
  line-height: 1.6;
  letter-spacing: .08em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--primary);
  margin: 20px auto 0;
}

.section-head .lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14.5px;
  letter-spacing: .06em;
}

/* ---------- カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* 4枚構成のカードは広い画面で4列に揃える */
@media (min-width: 1000px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-4 .card { padding: 28px 20px; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--primary);
}

.card.accent-top { border-top-color: var(--primary-deep); }

.card .card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #faf7f0;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18.5px;
  color: var(--primary-dark);
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

.card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .1em;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}

/* 番号つき強みカード */
.point-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--primary-deep);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 2px;
  padding: 3px 16px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: .22em;
}

/* ---------- 設備ギャラリー ---------- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.facility-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.facility-item .ph {
  background: linear-gradient(180deg, #1c1f26, #2a2e37);
  padding: 26px 0;
  display: flex;
  justify-content: center;
}

.facility-item .ph img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(198, 163, 92, .5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.facility-item .cap {
  padding: 18px 18px 22px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.8;
}

/* ---------- 帯CTA ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 800px 400px at 85% -20%, rgba(198, 163, 92, .16), transparent 60%),
    linear-gradient(160deg, #1c1f26, #101216);
  color: #f2efe8;
  text-align: center;
  padding: 68px 0;
  border-top: 1px solid rgba(198, 163, 92, .3);
  border-bottom: 1px solid rgba(198, 163, 92, .3);
}

.cta-band h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(21px, 2.8vw, 27px);
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.cta-band p { font-size: 14px; color: #c9c5bb; letter-spacing: .05em; }

.cta-band .tel-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  color: var(--primary);
  margin-top: 20px;
  letter-spacing: .06em;
}

.cta-band .hours { font-size: 13px; color: #a9a599; margin-top: 6px; }

.cta-band .btn-tel { margin-top: 20px; }

/* ---------- テーブル（会社概要） ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

.info-table th {
  width: 180px;
  background: #191c22;
  color: var(--gold-pale);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--primary-dark);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .q-mark,
.faq-item .a-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}

.faq-item summary .q-mark { background: var(--dark-soft); color: var(--primary); }
.faq-item .a-mark { background: var(--primary); color: #17130a; }

.faq-item summary .toggle-icon {
  margin-left: auto;
  color: var(--primary-deep);
  font-weight: 400;
  font-size: 20px;
  transition: transform .2s;
}

.faq-item[open] summary .toggle-icon { transform: rotate(45deg); }

.faq-answer {
  display: flex;
  gap: 14px;
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- フォーム ---------- */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 38px;
}

.form-row { margin-bottom: 24px; }

.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .08em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-row label .req {
  background: var(--primary-deep);
  color: #fff;
  font-size: 10.5px;
  border-radius: 2px;
  padding: 2px 9px;
  margin-left: 10px;
  font-weight: 500;
  letter-spacing: .1em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 15px;
  font-size: 16px;
  font-family: var(--font-body);
  background: #fbfaf7;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-submit { text-align: center; margin-top: 32px; }

.form-submit .btn-tel { border: none; cursor: pointer; }

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
}

.demo-message {
  display: none;
  text-align: center;
  background: var(--primary-pale);
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 3px;
  padding: 16px;
  margin-top: 20px;
  font-weight: 700;
}

/* ---------- 地図 ---------- */
.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ---------- ページタイトル（下層） ---------- */
.page-title {
  background:
    radial-gradient(ellipse 800px 320px at 85% -30%, rgba(198, 163, 92, .18), transparent 60%),
    linear-gradient(160deg, #1c1f26, #111318);
  color: #f2efe8;
  text-align: center;
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(198, 163, 92, .3);
}

.page-title .en {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .42em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.page-title h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 36px);
  letter-spacing: .12em;
}

/* パンくず */
.breadcrumbs {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 14px 0;
}

.breadcrumbs a { color: var(--primary-deep); }

/* ---------- サービス詳細 ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-child { border-bottom: none; }

.service-block .sv-visual {
  background: linear-gradient(160deg, #1c1f26, #2a2e37);
  border-radius: var(--radius);
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
}

.service-block .sv-visual img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(198, 163, 92, .5);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}

.service-block h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: .08em;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.service-block .sv-en {
  font-family: var(--font-head);
  color: var(--primary-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3em;
  margin-bottom: 14px;
}

.service-block p { font-size: 14.5px; margin-bottom: 12px; }

.check-list { list-style: none; margin-top: 6px; }

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-deep);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--dark);
  color: #e8e5dd;
  padding: 58px 0 0;
  border-top: 1px solid rgba(198, 163, 92, .3);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-brand .f-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13.5px;
  color: #b3afa5;
  line-height: 2.1;
}

.footer-brand .f-tel {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  color: var(--primary);
  letter-spacing: .06em;
}

.footer-nav ul { list-style: none; }

.footer-nav li { margin-bottom: 10px; }

.footer-nav a {
  color: #d5d1c7;
  font-size: 13.5px;
  letter-spacing: .06em;
}

.footer-nav a::before {
  content: "─ ";
  color: var(--primary);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 12px;
  padding: 18px 0;
  color: #8d897f;
}

/* スマホ固定フッター電話ボタン */
.sp-fixed-tel { display: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .global-nav {
    position: fixed;
    top: 0;
    right: -290px;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    border-left: 1px solid rgba(198, 163, 92, .4);
    padding: 80px 28px 30px;
    transition: right .3s;
    z-index: 90;
  }

  .global-nav.open { right: 0; box-shadow: -6px 0 24px rgba(0,0,0,.5); }

  .global-nav ul { flex-direction: column; gap: 4px; }

  .global-nav a {
    display: block;
    color: #e8e5dd;
    padding: 13px 6px;
    border-bottom: 1px solid rgba(198, 163, 92, .22);
    font-size: 15px;
  }

  .global-nav a.current { color: var(--primary); }

  .nav-toggle { display: block; z-index: 110; position: relative; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .header-tel { display: none; }

  .service-block { grid-template-columns: 1fr; gap: 22px; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }

  section { padding: 60px 0; }

  .hero { padding-top: 58px; }
  .hero-inner { padding-bottom: 110px; }

  /* 社名が途中で改行されないようサイズと字間を調整 */
  .hero h1 { font-size: clamp(22px, 6.4vw, 34px); letter-spacing: .04em; }
  .hero .hero-lead { letter-spacing: .06em; }

  /* スマホ固定電話ボタン */
  .sp-fixed-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #d4b26a, #a8843f);
    color: #17130a;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    padding: 13px 0 15px;
    z-index: 80;
    box-shadow: 0 -4px 14px rgba(0,0,0,.3);
  }

  .sp-fixed-tel small { font-size: 11px; font-weight: 500; }

  body { padding-bottom: 60px; }
}
