@charset "UTF-8";
/* =========================================================
   整備記録（ZEROMAX PIT LOG）一覧・詳細
   Figma：PC 一覧 910:346 ／ 詳細 916:722 ／ SP 一覧 1026:1653 ／ 詳細 1033:1821
   ページの枠・パンくず・青バーの見出し・タグ・日付・NEWマーク・PIT LOG帯・「もっと見る」・2カラムの枠・ページ送り・
   カテゴリ一覧・記事の見出しと本文は css/common.css
   ========================================================= */

/* ---------- 全体の並び（.page-body・スマホの絞り込み .mobile-filter は common.css） ---------- */
/* パンくず → PIT LOG帯 80 ／ 帯 → 本文 32 */
.pitlog-content { --page-body-gap: 32px; }

/* =========================================================
   一覧：記録カード（3列）
   ========================================================= */
.pitlog-list { display: flex; flex-direction: column; align-items: center; gap: 80px; }
.pitlog-list__grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 16px; }

.pitlog-card { display: flex; flex-direction: column; }
.pitlog-card__image { position: relative; overflow: hidden; }
.pitlog-card__image img { width: 100%; aspect-ratio: 284 / 176; object-fit: cover; transition: transform .6s; }
/* マウスを乗せたら写真を勢いよく拡大（TOPのSERVICEカードと同じ動き） */
.pitlog-card:hover .pitlog-card__image img { transform: scale(1.2); transition-duration: .3s; transition-timing-function: cubic-bezier(.2,.9,.25,1); }
.pitlog-card .tags { margin-top: 12px; }
.pitlog-card .post-date { margin-top: 12px; }
/* タイトルは2行・抜粋は3行で「…」 */
.pitlog-card__title {
  margin-top: 8px; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.pitlog-card:hover .pitlog-card__title { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.pitlog-card__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;
}

/* =========================================================
   ZERO/SPORTS製品関連（横型の1行×6）
   ========================================================= */
.pitlog-related { display: flex; flex-direction: column; gap: 24px; }
.pitlog-related__list { display: flex; flex-direction: column; gap: 16px; }
.pitlog-related .button-wide { margin-top: 24px; } /* 一覧 → ボタン 48（間隔24＋24） */

.pitlog-row { display: flex; align-items: flex-start; gap: 24px; }
.pitlog-row__image { flex: none; width: 183px; overflow: hidden; }
.pitlog-row__image img { width: 100%; aspect-ratio: 183 / 131; object-fit: cover; transition: transform .6s; }
.pitlog-row:hover .pitlog-row__image img { transform: scale(1.2); transition-duration: .3s; transition-timing-function: cubic-bezier(.2,.9,.25,1); }
.pitlog-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pitlog-row__title { width: 100%; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 1行で「…」 */
.pitlog-row:hover .pitlog-row__title { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.pitlog-row__excerpt {
  font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--text-sub);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.pitlog-row .post-date { color: var(--text-sub); }

/* =========================================================
   サイドバー
   ========================================================= */
/* 店舗情報 */
.shop-card { display: flex; flex-direction: column; }
.shop-card__image { width: 100%; aspect-ratio: 252 / 137; object-fit: cover; border-radius: 5px; }
.shop-card__logo { width: 244px; margin-top: 16px; }
.shop-card__name { margin-top: 12px; font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .01em; }
.shop-card__info { margin-top: 4px; font-size: 11px; line-height: 15px; letter-spacing: .01em; color: var(--text-sub); }
.shop-card__sns { margin-top: 16px; gap: 24px; }
.shop-card__sns a { transition: opacity .2s; }
.shop-card__sns a:hover { opacity: .6; }

/* キーワード検索（Figma部品 Form/Search）：入力欄の右端に虫めがねのボタンを重ねる */
.search-box { position: relative; height: 48px; border: 1px solid var(--border); background: #fff; transition: border-color .2s; }
.search-box:focus-within { border-color: var(--brand); }
.search-box input {
  width: 100%; height: 100%; padding: 0 48px 0 16px; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 14px; line-height: 22px; letter-spacing: .01em; color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box button {
  position: absolute; top: 0; right: 0; width: 48px; height: 100%; border: 0; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%230F3893' stroke-width='2.4'%3E%3Ccircle cx='7.5' cy='7.5' r='6.3'/%3E%3Cpath d='m12.2 12.2 4.6 4.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 18px;
}

/* =========================================================
   詳細：記事（見出し・本文は common.css）
   ========================================================= */
.tag--large { padding: 0 4px; border-radius: 3px; font-size: 13px; line-height: 25px; } /* 記事の見出し上は大きいタグ（Figma PitLog/Tag Size=L） */

/* ---------- 前後の記事 ---------- */
.article-footer { display: flex; flex-direction: column; gap: 48px; }
.post-nav {
  --post-nav-gap: 33px;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--post-nav-gap);
  padding-bottom: 48px; border-bottom: 1px solid var(--border-strong);
}
.post-nav__item { display: flex; flex-direction: column; gap: 16px; }
.post-nav__item--next { align-items: flex-end; }
.post-nav__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; line-height: 30px; letter-spacing: .01em; color: var(--brand); }
/* 「＜ 前の投稿」「次の投稿 ＞」の矢印 */
.post-nav__item--previous .post-nav__label::before,
.post-nav__item--next .post-nav__label::after { content: ""; width: 7px; height: 14px; background: no-repeat center / contain; }
.post-nav__item--previous .post-nav__label::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 14' fill='none' stroke='%230F3893' stroke-width='2'%3E%3Cpath d='M6 1 1 7l5 6'/%3E%3C/svg%3E"); }
.post-nav__item--next .post-nav__label::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 14' fill='none' stroke='%230F3893' stroke-width='2'%3E%3Cpath d='m1 1 5 6-5 6'/%3E%3C/svg%3E"); }
.post-nav__card { position: relative; display: flex; align-items: flex-start; gap: 16px; width: 100%; }
/* 前後の間の縦線（列の間隔のちょうど真ん中に引く） */
.post-nav__item--next .post-nav__card::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--post-nav-gap) / -2); width: 1px; background: var(--border-strong); }
.post-nav__card img { flex: none; width: 149px; aspect-ratio: 149 / 94; object-fit: cover; }
.post-nav__title {
  font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em; color: #333; /* Figma の指定色（本文の --text より少し薄い） */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.post-nav__item:hover .post-nav__title { color: var(--brand); }

/* PC・タブレット：次の投稿は写真を右に */
@media (min-width: 768px) {
  .post-nav__item--next .post-nav__card { flex-direction: row-reverse; }
}

/* =========================================================
   タブレット
   ========================================================= */
@media (max-width: 1100px) {
  .pitlog-list__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   スマホ（767px以下）
   ========================================================= */
@media (max-width: 767px) {
  /* パンくず → 帯 → 絞り込み → 本文 は 24 ずつ（common.css の .page-body） */
  .search-box { height: 52px; }
  .search-box input { padding: 0 40px 0 12px; font-size: 16px; } /* 16px未満だとiPhoneで押したときに画面が拡大される */
  .search-box button { width: 40px; }
  /* キーワード検索とカテゴリのプルダウンを横に並べる（幅は半分ずつ） */
  .mobile-filter { flex-direction: row; }
  .mobile-filter > * { flex: 1; min-width: 0; }
  .mobile-filter .select-box select { padding: 0 40px 0 12px; }
  .mobile-filter .select-box::after { right: 14px; }

  .shop-card__image { aspect-ratio: 335 / 182; }

  /* 一覧：1列 */
  .pitlog-list { gap: 40px; }
  .pitlog-list__grid { grid-template-columns: 1fr; gap: 32px; }
  /* ※確認用：Figmaのスマホ版は1ページ6件。PC（12件）と件数をそろえるかは要相談（仕様書 参照）。
     WordPress化のときは件数をそろえて、この行は消す */
  .pitlog-list__grid > li:nth-child(n+7) { display: none; }

  /* 製品関連 */
  .pitlog-related .button-wide { margin-top: 16px; } /* 一覧 → ボタン 40 */
  .pitlog-row { gap: 12px; }
  .pitlog-row__image { width: 120px; }
  .pitlog-row__image img { aspect-ratio: 120 / 86; }
  .pitlog-row__body { gap: 6px; }
  .pitlog-row__title { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } /* 2行で「…」 */

  /* 詳細 */
  .article-footer { gap: 40px; }
  .post-nav { padding-bottom: 40px; }
  .post-nav__label { font-size: 14px; line-height: 22px; }
  .post-nav__card { flex-direction: column; gap: 8px; }
  .post-nav__item--next .post-nav__card { align-items: flex-end; text-align: right; }
  .post-nav__card img { width: 100%; }
  .post-nav__title { font-size: 13px; line-height: 18px; }
}
