@charset "UTF-8";
/* ==========================================================
   いだ自動車（IDA car store） トップページ
   配色：#D7263D（レッド）#2E2E2E（インク）#F4F4F4（ライトグレー）
         #FFFFFF #FFC233（イエロー）
   フォント：見出し M PLUS Rounded 1c／本文 Noto Sans JP／数字 Barlow Condensed
   ========================================================== */

/* ----- 変数 ----- */
:root {
  --red: #D7263D;
  --ink: #2E2E2E;
  --gray-bg: #F4F4F4;
  --white: #FFFFFF;
  --yellow: #FFC233;
  --gray: #6E6E6E;
  --line: #E3E3E3;
  --dummy: #A8A8A8;
  --font-head: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-num: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --header-h: 72px;
  --shadow: 0 3px 14px rgba(0, 0, 0, .07);
}

/* ----- リセット・基本 ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.8;
  color: var(--ink);
  background: var(--gray-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 800px; }
.sp-only { display: none; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }
.dummy { color: var(--dummy); }
.red { color: var(--red); }
.card { background: var(--white); border-radius: 6px; box-shadow: var(--shadow); }
.chev { color: var(--red); font-size: 22px; line-height: 1; font-weight: 700; }

/* ----- ボタン ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.5em; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 800; line-height: 1.3;
  transition: opacity .2s, transform .2s; cursor: pointer;
}
.btn:hover { opacity: .88; }
.btn .arrow { font-size: 1.3em; line-height: 1; margin-left: .3em; }
.btn .arrow--red { color: var(--red); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--red { background: var(--red); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--sm { padding: .6em 1.1em; font-size: 14px; }
.btn--lg { padding: .9em 1.6em; font-size: 17px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn--lg .ico { width: 22px; height: 22px; }

/* ----- 見出し（左寄せ・赤い下線） ----- */
.sec-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 22px; line-height: 1.4; letter-spacing: .04em;
  padding-bottom: 8px; margin-bottom: 14px; position: relative;
}
.sec-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 24px; height: 3px; background: var(--red); border-radius: 2px;
}
.section { padding: 22px 0 6px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ==========================================================
   ヘッダー
   ========================================================== */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header__inner {
  max-width: 1280px; margin: 0 auto; height: var(--header-h);
  padding: 0 24px 0 36px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; flex-shrink: 0; }
.logo__ja { font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--red); letter-spacing: .02em; }
.logo__en { font-size: 12px; letter-spacing: .14em; color: var(--ink); margin-top: 4px; }
.gnav { margin-left: auto; }
.gnav__list { display: flex; gap: 22px; }
.gnav__list a { font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .2s; }
.gnav__list a:hover { color: var(--red); }
.gnav__sp { display: none; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__tel { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.header__tel .ico { width: 20px; height: 20px; color: var(--red); }
.header__tel-label { font-family: var(--font-num); font-weight: 700; font-size: 13px; }
.header__tel-num { font-family: var(--font-num); font-weight: 700; font-size: 27px; letter-spacing: .01em; line-height: 1; }
.header__reserve { white-space: nowrap; }
.hamburger { display: none; }

/* ==========================================================
   メインビジュアル
   ========================================================== */
.hero {
  position: relative;
  background: url("../images/hero.jpg") right 30% / cover no-repeat;
  min-height: 440px;
  display: flex; align-items: center;
}
.hero::before {
  /* 左側の文字を読みやすくする白いグラデーション */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 35%, rgba(255,255,255,0) 62%);
}
.hero__inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 40px 48px; }
.hero__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 46px; line-height: 1.3; letter-spacing: .01em;
}
.hero__lead { margin-top: 14px; font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.hero__sep { margin: 0 .6em; color: var(--gray); }
.hero__btns { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================
   サービス
   ========================================================== */
.service__link { display: block; padding: 8px 8px 0; height: 100%; transition: transform .2s; }
.service__link:hover { transform: translateY(-2px); }
.service__img { aspect-ratio: 2.4 / 1; overflow: hidden; border-radius: 3px; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__body { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 4px 8px 68px; }
.service__icon { position: absolute; left: 0; top: -24px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--white); }
.service__name { flex: 1; font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.3; }
.service:last-child .service__name { font-size: 14px; }
.service__name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ==========================================================
   来店しやすいお店づくり
   ========================================================== */
.shop { padding: 8px; }
.shop__img { aspect-ratio: 2 / 1; overflow: hidden; border-radius: 3px; }
.shop__img img { width: 100%; height: 100%; object-fit: cover; }
.shop__name { text-align: center; font-weight: 700; font-size: 15px; padding: 6px 0 2px; line-height: 1.6; }
.shop__accent { white-space: nowrap; color: var(--red); font-family: var(--font-head); font-weight: 800; font-size: 22px; vertical-align: -1px; }
.shop__num { font-family: var(--font-num); font-size: 28px; }

/* ==========================================================
   車検の流れ
   ========================================================== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.flow__item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 10px 12px;
}
.flow__item img { height: 40px; width: auto; }
.flow__item:not(:last-child)::after {
  content: "›"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  color: #F0A8B1; font-size: 34px; line-height: 1; font-weight: 700;
}
.flow__num {
  position: absolute; left: 50%; top: 8px; margin-left: -70px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; font-size: 17px; line-height: 1;
}
.flow__text { font-weight: 700; font-size: 15px; }

/* ==========================================================
   お客様の声／お知らせ・キャンペーン（2カラム）
   ========================================================== */
.two-col { display: grid; grid-template-columns: 3fr 1.85fr; gap: 16px; }
.voice__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.voice__item { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; padding: 14px; align-content: start; }
.voice__icon { width: 56px; height: 56px; border-radius: 50%; background: #E9E9E9; padding: 8px 10px 0; object-fit: contain; object-position: bottom; }
.voice__text { font-size: 12px; line-height: 1.7; }
.voice__name { grid-column: 1 / -1; font-size: 13px; color: var(--gray); }
.news__list { padding: 4px 14px; }
.news__list li:not(:last-child) { border-bottom: 1px solid var(--line); }
.news__list a { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 13px; }
.news__list time { flex-shrink: 0; font-family: var(--font-num); font-weight: 600; font-size: 15px; }
.news__title { flex: 1; color: var(--dummy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================
   採用バナー
   ========================================================== */
.recruit { padding: 18px 0 6px; }
.recruit__banner {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 4px;
  background: var(--red); min-height: 96px;
}
.recruit__body { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 16px 28px; color: var(--white); }
.recruit__title { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1.3; letter-spacing: .02em; }
.recruit__btn {
  display: inline-flex; gap: 6px; align-items: center; background: var(--white); color: var(--ink);
  padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.recruit__btn span { color: var(--red); font-weight: 700; }
.recruit__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   店舗案内／お問い合わせ
   ========================================================== */
.access { padding-top: 26px; padding-bottom: 28px; background: var(--white); margin-top: 16px; }
.access__box {
  display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto auto; align-items: center;
  background: var(--white); border-radius: 6px; box-shadow: var(--shadow); padding: 10px 14px 10px 0; overflow: hidden;
}
.access__photo { align-self: stretch; }
.access__photo img { width: 100%; height: 100%; object-fit: cover; }
.access__col { padding: 4px 18px; font-size: 13px; line-height: 1.7; white-space: nowrap; }
.access__col:not(.access__info) { border-left: 1px solid var(--line); }
.access__row { display: flex; align-items: center; gap: 6px; }
.access__row .ico { color: var(--red); }
.access__tel .small { font-size: 13px; }
.access__tel .num { font-family: var(--font-num); font-weight: 700; font-size: 22px; line-height: 1.3; }
.access__head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.access__head .ico { color: var(--red); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.hours dt { color: var(--gray); }
.hours dd { font-family: var(--font-num); font-weight: 600; font-size: 16px; }
.hours dd small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--gray); line-height: 1.4; }
.access__col small { font-size: 11px; color: var(--gray); }
.access__btn { padding-left: 14px; }
.access__btn .btn { white-space: nowrap; }

/* ==========================================================
   お問い合わせ・車検予約フォーム
   ========================================================== */
.contact { padding: 48px 0 56px; }
.contact .sec-title { text-align: center; }
.contact .sec-title::after { left: 50%; transform: translateX(-50%); }
.contact__lead { text-align: center; margin-bottom: 24px; }
.contact__lead a { color: var(--red); font-weight: 700; white-space: nowrap; }
.form { background: var(--white); border-radius: 8px; padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; margin-bottom: 18px; }
.form__row label { font-weight: 700; font-size: 15px; padding-top: 8px; }
.req { display: inline-block; margin-left: 8px; padding: 0 6px; font-size: 11px; background: var(--red); color: var(--white); border-radius: 3px; vertical-align: middle; line-height: 1.7; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid #CFCFCF; border-radius: 6px; background: #FCFCFC;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.form__submit { text-align: center; margin-top: 24px; }

/* ==========================================================
   フッター
   ========================================================== */
.footer { background: var(--ink); color: var(--white); padding: 26px 0 30px; font-size: 13px; }
.footer__inner { display: flex; align-items: center; gap: 36px; }
.logo--white .logo__ja { color: var(--white); font-size: 28px; }
.logo--white .logo__en { color: var(--white); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__nav a:hover { text-decoration: underline; }
.footer__info { margin-left: auto; text-align: right; }
.footer__gap { display: inline-block; width: 20px; }
.footer__copy small { font-size: 12px; }

/* スマホ固定ボタン（PCでは非表示） */
.fixed-cta { display: none; }

/* ==========================================================
   PC狭め（1100px以下）
   ========================================================== */
@media (max-width: 1100px) {
  .footer__inner { flex-wrap: wrap; }
  .access__box { grid-template-columns: 1fr 1fr; padding: 0; }
  .access__photo { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
  .access__col { padding: 16px 20px; border-left: none !important; white-space: normal; }
  .access__btn { grid-column: 1 / -1; padding: 0 20px 20px; }
  .access__btn .btn { width: 100%; }
}

/* ==========================================================
   タブレット・スマホ（960px以下）
   ========================================================== */
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .sp-only { display: inline; }
  .container { padding: 0 16px; }

  /* ヘッダー */
  .header__inner { padding: 0 0 0 16px; gap: 10px; }
  .logo__ja { font-size: 26px; }
  .logo__en { font-size: 10px; }
  .header__reserve { display: none; }
  .header__cta { margin-left: auto; }
  .header__tel-num { font-size: 24px; }
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px; flex-shrink: 0;
    width: 60px; height: var(--header-h); padding: 0 16px;
    background: none; border: none; border-left: 1px solid var(--line); cursor: pointer;
  }
  .hamburger span { display: block; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .is-menu-open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
  .is-menu-open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 12px 20px 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .is-menu-open .gnav { opacity: 1; visibility: visible; transform: none; }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list a { display: block; padding: 16px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .gnav__sp { display: grid; gap: 12px; margin-top: 24px; }
  .gnav__sp .btn { padding: 14px; font-size: 17px; }

  /* セクション共通 */
  .section { padding: 28px 0 4px; }
  .sec-title { font-size: 26px; margin-bottom: 18px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* メインビジュアル */
  .hero { min-height: 0; background-position: 70% center; }
  .hero::before { background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 55%, rgba(255,255,255,.15) 100%); }
  .hero__inner { padding: 28px 16px 32px; }
  .hero__title { font-size: 34px; line-height: 1.3; }
  .hero__lead { font-size: 15px; }
  .hero__sep { margin: 0 .4em; }
  .hero__btns { flex-direction: column; gap: 10px; max-width: 320px; }
  .hero__btns .btn { justify-content: center; }

  /* サービス */
  .service__body { padding: 6px 2px 8px 52px; min-height: 48px; }
  .service__icon { width: 46px; height: 46px; top: -20px; }
  .service__name, .service:last-child .service__name { font-size: 13px; }
  .service__name small { font-size: 11px; }
  .chev { font-size: 18px; }

  /* お店 */
  .shop__name { font-size: 13px; }
  .shop__accent { font-size: 18px; }
  .shop__num { font-size: 22px; }

  /* 車検の流れ（縦並び） */
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow__item { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 14px 18px; }
  .flow__num { position: static; margin: 0; flex-shrink: 0; }
  .flow__item img { width: 56px; height: auto; object-fit: contain; }
  .flow__item:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -26px; transform: translateX(-50%) rotate(90deg); font-size: 26px; }
  .flow__text { font-size: 16px; }

  /* 2カラム → 1カラム */
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .voice__list { grid-template-columns: 1fr; gap: 10px; }
  .voice__item { grid-template-columns: 48px 1fr; }
  .voice__icon { width: 48px; height: 48px; }
  .voice__text { font-size: 13px; }

  /* 採用 */
  .recruit__banner { grid-template-columns: 1fr; }
  .recruit__body { padding: 18px 20px; }
  .recruit__title { font-size: 26px; }
  .recruit__photo { aspect-ratio: 4 / 1; }

  /* 店舗案内 */
  .access__box { grid-template-columns: 1fr; }
  .access__col:not(:last-child) { border-bottom: 1px solid var(--line); }

  /* フォーム */
  .form { padding: 20px 16px; }
  .form__row { grid-template-columns: 1fr; gap: 6px; }
  .form__row label { padding-top: 0; }
  .form__submit .btn { width: 100%; }

  /* フッター（固定ボタンの分だけ下に余白） */
  .footer { padding-bottom: 96px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__info { margin-left: 0; text-align: left; }
  .footer__info p:first-child { display: flex; flex-direction: column; }
  .footer__gap { display: none; }

  /* 画面下部の固定ボタン */
  .fixed-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
  }
  .fixed-cta__btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 60px; font-family: var(--font-head); font-weight: 800; font-size: 18px;
  }
  .fixed-cta__btn .ico { width: 24px; height: 24px; }
  .fixed-cta__btn--tel { background: var(--red); color: var(--white); }
  .fixed-cta__btn--reserve { background: var(--yellow); color: var(--ink); }
}

/* 小さいスマホ */
@media (max-width: 400px) {
  .logo__ja { font-size: 23px; }
  .header__tel-num { font-size: 22px; }
  .header__tel-label { display: none; }
  .hero__title { font-size: 31px; }
}
