/*
Theme Name: Garage Repair
Theme URI: https://www.garage-repair.shop/
Author: Garage Repair
Author URI: https://www.garage-repair.shop/
Description: Garage Repair（北広島・札幌近郊の中古車販売とレンタカー）の公式テーマ。home_v2.htmlのデザインをベースにした、軽量で見やすいオリジナルテーマです。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: All Rights Reserved
License URI:
Text Domain: garage-repair
Tags: business, automotive, two-columns, custom-menu, featured-images
*/


/* ==============================================
   RESET
============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
    'Yu Gothic Medium', 'Yu Gothic', 'Meiryo', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ==============================================
   CUSTOM PROPERTIES
============================================== */
:root {
  --red:       #B41F23;
  --red-dark:  #8F191C;
  --black:     #111111;
  --text:      #222222;
  --mid:       #666666;
  --muted:     #9a9a9a;
  --light:     #F4F4F4;
  --white:     #FFFFFF;
  --border:    #E0E0E0;

  --header-h:  58px;
  --cta-h:     60px;
  --max-w:     1080px;
  --narrow-w:  680px;
}

/* ==============================================
   LAYOUT UTILITIES
============================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow {
  max-width: var(--narrow-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ==============================================
   SECTION BASE
============================================== */
.section {
  padding-block: 64px;
}
.section--gray  { background: var(--light); }
.section--dark  { background: var(--black); color: var(--white); }

/* Section header */
.sec-head {
  text-align: center;
  margin-bottom: 48px;
}
.sec-title {
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.sec-title--white { color: var(--white); }
.sec-rule {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  margin: 12px auto 0;
}
.sec-desc {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.85;
}
.sec-desc--white { color: rgba(255,255,255,0.55); }

/* ==============================================
   BUTTONS
============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 52px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-black:hover { background: #2c2c2c; border-color: #2c2c2c; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-arrow { margin-left: auto; opacity: 0.6; font-style: normal; }

/* ==============================================
   SITE HEADER
============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--black);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.site-logo { flex-shrink: 0; }
.site-logo__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}
.site-logo__name span { color: var(--red); }
.site-logo__tagline {
  display: block;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
  margin-top: 3px;
}

/* Global nav (hidden on mobile) */
.site-nav { display: none; flex: 1; overflow-x: auto; }
.site-nav__list { display: flex; }
.site-nav__link {
  display: block;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.18s;
}
.site-nav__link:hover { color: var(--white); }

/* Header tel button */
.header-tel {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.18s;
}
.header-tel:hover { background: var(--red-dark); }
.header-tel svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

/* ==============================================
   HERO / FIRSTVIEW
============================================== */
.hero {
  background: var(--black);
}
.hero__image {
  display: block;
  width: 100%;
  height: auto;
}
.hero__cta-bar {
  background: #0e0e0e;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--max-w);
  margin-inline: auto;
}
@media (min-width: 600px) {
  .hero__cta-bar { padding: 24px 20px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .hero__cta .btn { flex: 1; min-width: 160px; }
}

/* ==============================================
   HERO CTA BUTTON OVERRIDES
============================================== */
.hero__cta .btn {
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  min-height: 62px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  gap: 10px;
  justify-content: flex-start;
  transition: background 0.18s, color 0.18s,
              border-color 0.18s, box-shadow 0.18s, transform 0.1s;
}
.hero__cta .btn:active { transform: scale(0.98); }

/* アイコン */
.hero__cta .btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ラベル */
.hero__cta .btn-label { flex: 1; text-align: left; }

/* 右矢印 */
.hero__cta .btn-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

/* 在庫車を見る：深めの赤 */
.hero__cta .btn-red {
  background: #c9151b;
  color: #fff;
  border-color: #c9151b;
}
.hero__cta .btn-red:hover {
  background: #a81015;
  border-color: #a81015;
  box-shadow: 0 4px 18px rgba(201,21,27,0.45);
}

/* レンタカーを見る：ダークグレー */
.hero__cta .btn-black {
  background: #363636;
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.hero__cta .btn-black:hover {
  background: #484848;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

/* 電話で相談する：白背景 × 黒文字（最大コントラスト） */
.hero__cta .btn-ghost {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.hero__cta .btn-ghost:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
/* 電話アイコンのみ赤でアクセント */
.hero__cta .btn-ghost .btn-icon {
  stroke: #c9151b;
}

/* ==============================================
   SERVICES / 2本柱
============================================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Image area */
.svc-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #202020;
  background-image: url('images/ChatGPT%20Image%202026%E5%B9%B45%E6%9C%884%E6%97%A5%2010_53_58.png');
  background-size: cover;
  background-position: center;
  position: relative;
}
.svc-card--rental .svc-card__img {
  background-image: url('images/ChatGPT%20Image%202026%E5%B9%B45%E6%9C%884%E6%97%A5%2011_15_00.png');
}

/* Label badge on image */
.svc-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 16px;
}
.svc-card--rental .svc-card__badge { background: var(--black); }

/* Card body */
.svc-card__body   { padding: 28px 24px 24px; }
.svc-card__title  {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.svc-card__text   {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.svc-card__note   {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
  line-height: 1.65;
}
.svc-card__btn    { display: flex; width: 100%; }

/* ==============================================
   STRENGTHS
============================================== */
.strengths__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .strengths__grid { grid-template-columns: repeat(4, 1fr); }
}

.str-item {
  background: var(--white);
  padding: 32px 20px;
}

.str-item__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.str-item__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.str-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  line-height: 1.5;
}
.str-item__text {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.8;
}

/* ==============================================
   INVENTORY LINKS
============================================== */
.inv__body {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.9;
  text-align: center;
  margin-bottom: 36px;
}

.inv__btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 600px) {
  .inv__btns              { flex-direction: row; flex-wrap: wrap; }
  .inv__btns .btn         { flex: 1; }
}

/* ==============================================
   CONTACT
============================================== */
.contact__tel {
  text-align: center;
  margin-bottom: 40px;
}
.contact__tel-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.contact__tel-num {
  font-size: clamp(2rem, 7vw, 2.875rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}
.contact__tel-num a { color: inherit; }
.contact__tel-hours {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.38);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.contact__btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 600px) {
  .contact__btns          { flex-direction: row; justify-content: center; }
  .contact__btns .btn     { min-width: 190px; }
}

/* ==============================================
   ACCESS
============================================== */
.access__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .access__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.access__table {
  width: 100%;
  border-collapse: collapse;
}
.access__table tr               { border-bottom: 1px solid var(--border); }
.access__table tr:first-child   { border-top: 1px solid var(--border); }
.access__table th {
  width: 88px;
  padding: 14px 0;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  vertical-align: top;
}
.access__table td {
  padding: 14px 0 14px 10px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
}
.access__tel {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}
.access__map {
  aspect-ratio: 4 / 3;
  background: #d4d4d4;
  overflow: hidden;
}
.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.access__note {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: rgba(180,31,35,0.04);
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.7;
}
.access__note strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 3px;
}

/* ==============================================
   BLOG
============================================== */
.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .blog__grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); }

.blog-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #c8c8c8;
  background-size: cover;
  background-position: center;
}
.blog-card:nth-child(1) .blog-card__thumb { background-image: url('images/blog-01.jpg'); }
.blog-card:nth-child(2) .blog-card__thumb { background-image: url('images/blog-02.jpg'); }
.blog-card:nth-child(3) .blog-card__thumb { background-image: url('images/blog-03.jpg'); }

.blog-card__body  { padding: 16px; }
.blog-card__date  {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.blog-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__cta { text-align: center; }

/* ==============================================
   FOOTER
============================================== */
.site-footer {
  background: var(--black);
  padding-block: 56px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.footer-logo__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1;
}
.footer-logo__name span       { color: var(--red); }
.footer-logo__tagline {
  display: block;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.footer__info {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.38);
  line-height: 2;
}

.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
  padding-block: 4px;
  transition: color 0.18s;
}
.footer__nav a:hover { color: var(--white); }

.site-footer__copy {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ==============================================
   FIXED CTA BAR (mobile only)
============================================== */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--cta-h);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--black);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.06), 0 -4px 20px rgba(0,0,0,0.28);
}

.cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,0.6);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 6px 4px;
  transition: background 0.18s;
}
.cta-btn:last-child     { border-right: none; }
.cta-btn--tel           { background: var(--red); color: var(--white); }
.cta-btn:not(.cta-btn--tel):hover { background: rgba(255,255,255,0.05); }
.cta-btn--tel:hover     { background: var(--red-dark); }

.cta-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Body padding for fixed bar */
body { padding-bottom: var(--cta-h); }

@media (min-width: 768px) {
  .fixed-cta  { display: none; }
  body        { padding-bottom: 0; }
}


/* ==============================================
   WORDPRESS-SPECIFIC ADDITIONS
============================================== */

/* WordPress alignment classes */
.alignleft   { float: left;  margin: 0 1.5em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

/* WordPress caption */
.wp-caption {
  max-width: 100%;
  text-align: center;
}
.wp-caption-text {
  font-size: 0.875rem;
  color: var(--mid);
  margin-top: 6px;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Single post / page wrapper */
.single-post-content,
.page-content {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 64px;
  padding-inline: 20px;
}

.post-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--black);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.post-meta__cat {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

.post-thumb {
  margin-bottom: 24px;
}
.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-content {
  font-size: 1rem;
  line-height: 1.95;
}
.post-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}
.post-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.post-content p { margin-bottom: 18px; }
.post-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--red-dark); }
.post-content ul,
.post-content ol {
  margin: 16px 0 18px 24px;
  padding-left: 12px;
}
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: var(--light);
  border-left: 4px solid var(--mid);
  font-size: 0.95rem;
  color: var(--mid);
}
.post-content img { margin: 20px 0; border-radius: 4px; }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Comments (basic) */
.comments-area { max-width: 720px; margin-inline: auto; padding: 32px 20px; }

/* Generic page header */
.page-header-bar {
  background: var(--black);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}
.page-header-bar h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.page-header-bar h1::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
  margin: 12px auto 0;
}
