/* ========================================
   KAWASAKI JIDOUSHA - style.css
   制作：増田慶太郎
   スマホファースト（375px基準）
   PHASE 2 PCレスポンシブは後半に追記
======================================== */


/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: #111111;
  color: #e0e0e0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* picture要素はボックスを生成せず子のimgに委ねる */
picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ========================================
   COLOR VARIABLES
======================================== */
:root {
  --color-bg:        #111111;
  --color-bg-dark:   #0a0a0a;
  --color-bg-mid:    #1a1a1a;
  --color-bg-light:  #222222;
  --color-accent:    #CC0000;
  --color-accent-hv: #aa0000;
  --color-text:      #e0e0e0;
  --color-text-muted:#999999;
  --color-white:     #ffffff;
  --color-border:    #333333;
}


/* ========================================
   SECTION: FIRST VIEW
   背景画像 → ./images/fv-bg.jpg に差し替え
======================================== */
.fv {
  position: relative;
  width: 100%;
  height: 100svh;          /* svh: スマホのアドレスバー考慮 */
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* ヘッダーは transparent fixed なのでパディング不要
     align-items: center で真ん中に配置 */
}

/* 背景エリア */
.fv-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a; /* フォールバック */
}

/* スライドショー：各スライド
   ▼ 画像追加は js/main.js の FV_IMAGES 配列へ */
#fv-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a2a2a; /* 画像読み込み前のフォールバック */
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  /* ケンバーンズ効果（緩やかなズームイン） */
  animation: kenBurns 8s ease-out forwards;
}

.fv-slide.is-active {
  opacity: 1;
}

@keyframes kenBurns {
  0%   { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}

/* グリッドテクスチャ（早川自動車参考：超薄いグリッド線） */
.fv-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ダーク・オーバーレイ（テキスト読みやすさ優先） */
.fv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.40) 35%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

/* FVコンテンツ（テキストブロック） */
.fv-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}

/* 所在地（愛知県江南市）— 明朝体 */
.fv-location {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.40em;
  color: #ffffff;
  margin-bottom: 4px;
}

/* 店名（川﨑自動車）— 明朝体・メイン */
.fv-title {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: clamp(40px, 12vw, 72px);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.12em;
  line-height: 1.15;
  margin-bottom: 36px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.60);
}

/* タグライン（猫のために働いています）— 装飾クォーテーション付き */
.fv-tagline {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.20em;
  color: #ffffff;
  line-height: 1;
  quotes: '\201C' '\201D';
}

.fv-tagline::before {
  content: open-quote;
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.32em;
  margin-right: 0.04em;
  opacity: 0.80;
}

.fv-tagline::after {
  content: close-quote;
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.32em;
  margin-left: 0.04em;
  opacity: 0.80;
}

/* スクロールインジケーター */
.fv-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fv-scroll-label {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
}

.fv-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5),
    rgba(204, 0, 0, 0.8)
  );
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0.6; }
}

/* スライドショー プログレスバー */
.fv-progress {
  position: absolute;
  bottom: 28px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 4px;
  align-items: center;
}

.fv-progress-bar {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.30);
  position: relative;
  overflow: hidden;
}

.fv-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: #ffffff;
}

.fv-progress-bar.is-active::after {
  animation: barFill var(--slide-duration, 5s) linear forwards;
}

@keyframes barFill {
  from { width: 0; }
  to   { width: 100%; }
}


/* ========================================
   SECTION COMMON（全セクション共通）
======================================== */
.section {
  padding: 72px 0 80px;
  background-color: var(--color-bg);
}

.section-inner {
  padding: 0 24px;
}

/* セクションラベル（英語・赤） */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* セクション見出し */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}


/* ========================================
   SECTION: ABOUT
======================================== */
.about-body {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* 猫の写真エリア
   差し替え用: ./images/about-cat.jpg */
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #2a2a2a; /* 画像未設定時のプレースホルダー */
  overflow: hidden;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ========================================
   SECTION: SERVICE
======================================== */
.service {
  background-color: var(--color-bg-mid); /* ABOUTと色を少し変えてリズムを作る */
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 各サービスカード */
.service-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* イラストエリア
   差し替え: ./images/service-a/b/c.png */
.service-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  background-color: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-img-file {
  width: 60%;
  height: 70%;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
  /* PNG未設定時は非表示（親のグレー背景のみ表示） */
}

/* テキストエリア */
.service-body {
  padding: 20px 20px 24px;
}

.service-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

/* A / B / C アルファベット */
.service-alpha {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: 0;
}

/* サービス名 */
.service-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* サービス項目タグ */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.service-tags li {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
}

/* 相談テキスト */
.service-note {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.70);
}


/* ========================================
   SECTION: GALLERY
======================================== */
.gallery {
  padding-bottom: 0; /* グリッドが下端まで出る */
}

/* 2列グリッド（フルブリード：左右パディングなし） */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 0;
}

/* 各写真セル */
.gallery-item {
  aspect-ratio: 1 / 1;
  background-color: #2a2a2a; /* 画像未設定時のプレースホルダー */
  overflow: hidden;
}

/* 写真（差し替え: ./images/gallery-01〜06.jpg） */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}


/* ========================================
   SECTION: ACCESS
======================================== */
.access {
  background-color: var(--color-bg-mid);
}

/* 店舗情報リスト */
.access-info {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.access-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.access-row:first-child {
  border-top: 1px solid var(--color-border);
}

.access-dt {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  min-width: 60px;
  padding-top: 2px;
}

.access-dd {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1.7;
}

.access-tel {
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
}

/* Googleマップ */
.access-map {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  filter: grayscale(30%) brightness(0.85);
}


/* ========================================
   SECTION: CONTACT
======================================== */
.contact {
  background-color: var(--color-bg);
  text-align: center;
}

.contact .section-head {
  text-align: left; /* ラベルは左揃えを維持 */
}

.contact-text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  text-align: left;
}

/* LINEボタン */
.contact-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background-color: #06C755;
  color: #ffffff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.2s;
}

.contact-line-btn:hover {
  background-color: #05b04c;
}

.contact-line-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ボタングループ */
.contact-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 電話ボタン */
.contact-tel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.contact-tel-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.contact-tel-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ========================================
   FOOTER
======================================== */
.site-footer {
  background-color: var(--color-bg-dark);
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}


/* ========================================
   HEADER
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 20px;
}

/* アイコングループ */
.site-header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 各アイコンリンク */
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  width: 36px;
  height: 36px;
  transition: color 0.2s;
}

.header-icon:hover {
  color: var(--color-accent);
}

/* SVGアイコン（インライン） */
.header-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ▼ 画像ファイルに差し替えたときのサイズ */
.header-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}


/* ========================================
   PHASE 2: PC レスポンシブ（768px以上）
======================================== */

/* ----------------------------------------
   共通：コンテンツ幅制限 + センタリング
---------------------------------------- */
@media (min-width: 768px) {

  .section {
    padding: 96px 0 104px;
  }

  .section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 48px;
  }

  .section-label {
    font-size: 11px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-head {
    margin-bottom: 56px;
    padding-bottom: 28px;
  }
}


/* ----------------------------------------
   HEADER（PC）
---------------------------------------- */
@media (min-width: 768px) {

  .site-header-inner {
    padding: 18px 40px;
  }

  .site-header-icons {
    gap: 28px;
  }

  .header-icon {
    width: 40px;
    height: 40px;
  }

  .header-icon svg {
    width: 22px;
    height: 22px;
  }
}


/* ----------------------------------------
   FV（PC）
---------------------------------------- */
@media (min-width: 768px) {

  .fv {
    padding-top: 80px;
  }

  .fv-location {
    font-size: 18px;
    letter-spacing: 0.50em;
    margin-bottom: 6px;
  }

  .fv-title {
    /* clamp はそのまま機能するので微調整のみ */
    letter-spacing: 0.14em;
    margin-bottom: 44px;
  }

  .fv-tagline {
    font-size: 19px;
    letter-spacing: 0.25em;
  }

  .fv-progress {
    bottom: 36px;
    right: 40px;
  }

  .fv-progress-bar {
    width: 28px;
  }
}


/* ----------------------------------------
   ABOUT（PC）：2カラム（テキスト + 写真）
---------------------------------------- */
@media (min-width: 768px) {

  .about .section-inner {
    /* グリッドではなく inner 全体を 2カラムに */
  }

  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .about-body {
    margin-bottom: 0;
    gap: 24px;
  }

  .about-text {
    font-size: 16px;
    line-height: 2.1;
  }

  .about-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 5fr 4fr;
    gap: 80px;
  }
}


/* ----------------------------------------
   SERVICE（PC）：3カラム
---------------------------------------- */
@media (min-width: 768px) {

  .service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .service-item {
    flex-direction: column;
  }

  .service-img {
    aspect-ratio: 4 / 3;
  }

  .service-body {
    padding: 24px 24px 28px;
  }

  .service-alpha {
    font-size: 32px;
  }

  .service-name {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .service-img {
    aspect-ratio: 16 / 9;
  }
}


/* ----------------------------------------
   GALLERY（PC）：3カラム
---------------------------------------- */
@media (min-width: 768px) {

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ----------------------------------------
   ACCESS（PC）：情報 + マップ 横並び
---------------------------------------- */
@media (min-width: 768px) {

  .access-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .access-info {
    margin-bottom: 0;
  }

  .access-dt {
    font-size: 12px;
    min-width: 72px;
  }

  .access-dd {
    font-size: 15px;
  }

  .access-map {
    margin-top: 0;
  }

  .access-map iframe {
    height: 360px;
  }
}

@media (min-width: 1024px) {
  .access-layout {
    grid-template-columns: 2fr 3fr;
    gap: 72px;
  }

  .access-map iframe {
    height: 420px;
  }
}


/* ----------------------------------------
   CONTACT（PC）：中央寄せ・幅制限
---------------------------------------- */
@media (min-width: 768px) {

  .contact-inner-wrap {
    max-width: 560px;
    margin: 0 auto;
  }

  .contact-text {
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
  }

  .contact-btns {
    gap: 14px;
  }

  .contact-line-btn,
  .contact-tel-btn {
    font-size: 16px;
    padding: 18px 32px;
  }
}


/* ----------------------------------------
   FOOTER（PC）
---------------------------------------- */
@media (min-width: 768px) {

  .site-footer {
    padding: 32px 48px;
  }

  .footer-copy {
    font-size: 11px;
    letter-spacing: 0.25em;
  }
}
