@charset "UTF-8";
/* =========================================================
   TOPページ専用（Figma「TOP_清書版_20261020」node 894:238）
   共通の基本設定・ヘッダー・フッター・部品は css/common.css
   動きは js/top.js（パララックス・暗幕・せり上がり・発光）、オープニングは css/opening.css
   ========================================================= */

/* 写真下などの小見出し */
.subheading { font-weight: 900; font-size: 25px; line-height: 33px; }

/* 白枠の丸い矢印ボタン（カード・店舗紹介の下） */
.button-circle {
  display: inline-flex; justify-content: center; align-items: center;
  width: 96px; height: 39px; border: 1px solid #fff; border-radius: 50px;
  transition: background .25s;
}
.button-circle::after { content: ""; width: 28px; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 7' fill='none' stroke='%23fff'%3E%3Cpath d='M0 6.5h27L21 .5'/%3E%3C/svg%3E") no-repeat center / contain; transition: transform .25s; }
a:hover .button-circle { background: rgba(255,255,255,.15); }
a:hover .button-circle::after { transform: translateX(4px); }

/* =========================================================
   02 ヒーロー
   ========================================================= */
/* 枠はFigmaの構図（1440×744）の縦横比のまま、画面幅に合わせて伸縮 */
.hero__media { position: relative; overflow: hidden; aspect-ratio: 1440 / 744; }
/* 写真は枠より上に約3割長く、上にはみ出させて置く。
   スクロールに合わせて js/top.js が下へずらす（＝ページより遅れて動くパララックス） */
.hero__image {
  position: absolute; left: 0; top: -30.11%;
  width: 100%; height: 130.11%; max-width: none;
  object-fit: cover; object-position: 50% 100%;
  will-change: transform;
}
/* ZSシンボルは写真の上に重ねる（Figmaの位置：左150・上231・幅337 ／ 1440×744 を％にしたもの） */
.hero__symbol { position: absolute; left: 10.417%; top: 31.05%; width: 23.4%; height: auto; fill: #fff; }

.hero__copy { max-width: 682px; margin: 0 auto; padding-top: 80px; text-align: center; }
.hero__title { font-weight: 700; font-size: 50px; line-height: 43.8px; }
.hero__title-latin { font-family: var(--font-latin); font-weight: 800; }
.hero__subtitle { margin-top: 8px; font-family: var(--font-latin); font-weight: 700; font-size: 16px; line-height: 30px; letter-spacing: .05em; color: var(--accent); }
.hero__text { margin-top: 40px; font-size: 16px; line-height: 26px; letter-spacing: .01em; color: var(--text-sub); text-align: left; }

/* =========================================================
   05〜07 製品（AFTER PARTS / COMPLETE CAR / ENGINE OIL）
   ========================================================= */
.product__body { max-width: var(--content-width); margin: 48px auto 0; display: flex; flex-direction: column; gap: 32px; }
.product__image { width: 100%; aspect-ratio: 1200 / 528; object-fit: cover; }
/* AFTER PARTS は写真3枚を横並び */
.product__gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
.product__gallery img { width: 100%; aspect-ratio: 400 / 528; object-fit: cover; }
.product__text p { margin-top: 8px; font-size: 16px; line-height: 26px; letter-spacing: .01em; color: var(--text-sub); }
/* 次の Technology 帯の前だけ下に余白（ほかは次のセクションの上余白で空ける） */
.product--before-technology { padding-bottom: 120px; }

/* =========================================================
   08 Technology（背景動画＋網点）
   ========================================================= */
.technology { position: relative; height: 875px; max-height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; background: #000; }
/* 動画と網点は、帯いっぱいに敷く背景 */
.technology__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.technology::after { content: ""; position: absolute; inset: 0; background: url("../img/tech-pattern.png") center / cover; mix-blend-mode: multiply; opacity: .54; }
.technology__copy { position: relative; z-index: 1; font-family: var(--font-mincho); font-weight: 700; font-size: 30px; line-height: 1.5; letter-spacing: -.02em; color: #fff; text-align: center; }

/* =========================================================
   09 SERVICE ＋ PIT LOG
   ========================================================= */
.service { background: var(--surface-tint); padding-bottom: 120px; }
.service__lead { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

.service__cards { max-width: var(--content-width); margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.service-card {
  position: relative; overflow: hidden;
  aspect-ratio: 580 / 756; padding-bottom: 80px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 200px;
  color: #fff;
}
/* 写真はカードいっぱいに敷く背景。マウスを乗せると勢いよく拡大（リンクになっているカードだけ） */
.service-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
a.service-card:hover .service-card__image { transform: scale(1.14); transition-duration: .45s; transition-timing-function: cubic-bezier(.2,.9,.25,1); }
/* TUNING / MAINTENANCE：外側の枠で隠し、中の文字を下からせり上げる（js/top.js が .is-inview を付ける） */
.service-card__title { position: relative; overflow: hidden; padding: 4px 8px; font-family: var(--font-semi-condensed); font-weight: 800; font-size: clamp(40px, 4.7vw, 67px); line-height: 1; } /* 1440pxで67px。タブレットでもカードからはみ出さないよう、画面幅に合わせて縮める */
.service-card__title span { display: block; transform: translateY(110%); transition: transform 1s cubic-bezier(.16,.84,.24,1); }
.service-card__title.is-inview span { transform: none; }
.service-card:nth-child(2) .service-card__title span { transition-delay: .15s; } /* 2枚目は少し遅れて */
.service-card__catch { position: relative; font-weight: 700; font-size: clamp(18px, 2.1vw, 30px); line-height: 1; letter-spacing: -.02em; }

/* PIT LOG（白いカード） */
.pitlog { max-width: var(--content-width); margin: 80px auto 0; padding: 64px 100px; background: #fff; border-radius: 10px; }
.pitlog__featured { margin-top: 32px; display: flex; align-items: center; gap: 32px; }
.pitlog__image { position: relative; overflow: hidden; }
.pitlog__image img { width: 100%; aspect-ratio: 316 / 176; object-fit: cover; transition: transform .6s; }
.pitlog__image--large { flex: none; width: 551px; }
.pitlog__image--large img { aspect-ratio: 551 / 312; }
/* マウスを乗せたら写真を勢いよく拡大＋タイトルに下線（整備記録ページと同じ） */
a:hover .pitlog__image img { transform: scale(1.2); transition-duration: .3s; transition-timing-function: cubic-bezier(.2,.9,.25,1); }
a:hover .pitlog__title { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.pitlog__body { flex: 1; display: flex; flex-direction: column; }
.pitlog__title { margin-top: 8px; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em; }
.pitlog__title--large { margin-top: 12px; font-size: 20px; line-height: 27px; }
/* 抜粋は3行で「…」 */
.pitlog__excerpt {
  margin-top: 8px; font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--text-sub);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.pitlog__excerpt--large { font-size: 14px; line-height: 22px; }

.pitlog__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pitlog__item .tags { margin-top: 12px; }
.pitlog .post-date { margin-top: 12px; }

/* =========================================================
   10 SUBARUをより深く
   背景写真はセクションの入り口から終わりまで、ずっと画面に固定（2026-10-21 指示。仕組みは common.css の「固定背景」）
   ========================================================= */
.philosophy { background: var(--dark); color: #fff; }
/* 2枚目の写真は1枚目の上に重ねておき、切り替え時にふわっと表示（js/top.js が .is-second-image を付ける） */
.philosophy__second-image { opacity: 0; transition: opacity .8s ease; }
.philosophy.is-second-image .philosophy__second-image { opacity: 1; }
/* 文字を読みやすくする暗幕（スクロールに合わせて濃くなる → js/top.js） */
.philosophy__shade { opacity: .25; }

.philosophy__content { position: relative; padding: clamp(240px, 32vw, 466px) var(--gutter) 220px; display: flex; flex-direction: column; align-items: center; }
.philosophy__title { font-family: var(--font-latin); font-weight: 700; font-size: 50px; line-height: 60px; text-align: center; }
.philosophy__message { max-width: 720px; margin-top: 80px; font-size: 16px; line-height: 60px; letter-spacing: .01em; text-align: center; }
.philosophy__message p + p { margin-top: 60px; } /* 段落の間は1行ぶん空ける */

/* ブランドシンボルの紹介 */
.brand-symbol { max-width: 372px; margin-top: 200px; display: flex; flex-direction: column; align-items: center; color: var(--text-light); }
.brand-symbol__mark { width: 258px; height: auto; fill: #fff; overflow: visible; }
/* 画面に入ったら一瞬だけ青く光る（js/top.js が .is-flash を付ける） */
.brand-symbol__mark.is-flash { animation: symbol-flash 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes symbol-flash {
  0%   { fill: #fff;    filter: drop-shadow(0 0 0 rgba(46,110,255,0)); }
  12%  { fill: #4f86ff; filter: drop-shadow(0 0 18px rgba(46,110,255,.95)) drop-shadow(0 0 48px rgba(46,110,255,.7)); }
  30%  { fill: #2f6dff; filter: drop-shadow(0 0 12px rgba(46,110,255,.7)) drop-shadow(0 0 32px rgba(46,110,255,.4)); }
  100% { fill: #fff;    filter: drop-shadow(0 0 0 rgba(46,110,255,0)); }
}
.brand-symbol__title { margin-top: 80px; font-family: var(--font-mincho); font-weight: 900; font-size: 30px; line-height: 43px; letter-spacing: -.03em; text-align: center; }
.brand-symbol__text { margin-top: 12px; font-size: 13px; line-height: 30px; letter-spacing: .01em; }

/* ZEROMAX・オンラインショップの紹介 */
.shops { width: 100%; max-width: var(--content-width-narrow); margin-top: 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.shop { display: flex; flex-direction: column; align-items: flex-start; color: var(--text-light); }
.shop img { width: 100%; aspect-ratio: 480 / 236; object-fit: cover; }
.shop__label { margin-top: 16px; font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: .01em; }
.shop__name { margin-top: 4px; font-family: var(--font-latin); font-weight: 700; font-size: 22px; line-height: 30px; letter-spacing: .01em; }
.shop__text { margin-top: 12px; font-size: 13px; line-height: 18px; letter-spacing: .01em; }
.shop .button-circle { margin-top: 24px; }

/* =========================================================
   タブレット・小さめのPC（1100px以下）
   ========================================================= */
@media (max-width: 1100px) {
  .pitlog { padding: 48px 40px; }
  .pitlog__image--large { width: 50%; }
}

/* =========================================================
   スマホ（767px以下）
   ========================================================= */
@media (max-width: 767px) {
  .subheading { font-size: 20px; line-height: 27px; letter-spacing: .01em; }
  .product__text br { display: none; }

  /* ヒーロー */
  /* Figma SP版 hero_engineroom（983:1389）：375×452。写真はSP用の切り抜き（img/hero-sp.jpg）を使う */
  .hero__media { aspect-ratio: 375 / 452; }
  .hero__symbol { left: 6.933%; top: 35.84%; width: 34.13%; } /* 左26・上162・幅128 */
  .hero__copy { padding: 40px 20px 0; }
  .hero__title { font-size: 30px; line-height: 34px; }
  .hero__subtitle { font-size: 12px; line-height: 20px; }
  .hero__text { margin-top: 24px; font-size: 14px; line-height: 22px; }

  /* 製品 */
  .product__body { margin-top: 32px; gap: 16px; }
  .product__image { aspect-ratio: 335 / 223; }
  .product__gallery img { aspect-ratio: 3 / 4; }
  .product__text p { font-size: 14px; line-height: 22px; }
  .product--before-technology { padding-bottom: 64px; }

  /* Technology */
  .technology { height: 420px; }
  .technology__copy { padding: 0 20px; font-size: 18px; }

  /* SERVICE */
  .service { padding-bottom: 64px; }
  .service__lead { text-align: left; }
  .service__cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .service-card { aspect-ratio: 335 / 300; padding-bottom: 28px; gap: 60px; }
  .service-card__catch { line-height: 24px; }

  .pitlog { margin-top: 40px; padding: 24px 20px; }
  .pitlog__featured { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .pitlog__image--large { width: 100%; }
  .pitlog__title--large { font-size: 16px; line-height: 20px; }
  .pitlog__excerpt--large { font-size: 13px; line-height: 18px; }
  .pitlog__grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }

  /* SUBARUをより深く */
  /* 背景は2枚とも、画面幅いっぱいで全体を見せて上に寄せる（下は暗い背景色）。
     common.css の .fixed-background img（cover）より優先させる。上端はヘッダーに隠れないよう、ヘッダーの下から始める */
  .philosophy .fixed-background img { top: var(--header-height); height: calc(100% - var(--header-height)); object-fit: contain; object-position: top; background: var(--dark); }
  .philosophy__content { padding: 45vh 20px 96px; }
  .philosophy__title { font-size: 28px; line-height: 40px; }
  .philosophy__message { margin-top: 40px; font-size: 13px; line-height: 31px; }
  .philosophy__message br { display: none; } /* 行末の改行は外して自然に折り返す（段落の区切りは残る） */
  .philosophy__message p + p { margin-top: 31px; } /* 段落の間は1行ぶん */
  .brand-symbol { margin-top: 96px; }
  .brand-symbol__mark { width: 160px; }
  .brand-symbol__title { margin-top: 40px; font-size: 22px; line-height: 32px; }
  .brand-symbol__text { line-height: 24px; }
  .shops { grid-template-columns: 1fr; gap: 40px; margin-top: 96px; }
}

/* 「動きを減らす」設定の人には、せり上がり・光る動きを止める（パララックスは js/top.js が止める） */
@media (prefers-reduced-motion: reduce) {
  .service-card__title span { transform: none; transition: none; }
  .brand-symbol__mark.is-flash { animation: none; }
  .philosophy__second-image { transition: none; }
}
