/* ===================================================
   airstobu メインスタイルシート
   =================================================== */

:root {
  --navy: #1C2B45;
  --navy-ink: #131E30;
  --cream: #FBF6EA;
  --cream-2: #F3ECDB;
  --orange: #F2914B;
  --orange-dark: #C96B2C;
  --red: #D8432F;

  --font-heading: 'Zen Kaku Gothic New', sans-serif;
  --font-label: 'Space Grotesk', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --container-w: 1140px;
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-ink);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; z-index: 999; background: var(--navy);
  color: var(--cream); padding: 12px 20px; width: auto; height: auto; clip: auto;
}

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--narrow .container,
.section--narrow { max-width: 780px; }
.section--narrow.container { padding: 72px 24px; }

@media (max-width: 640px) {
  .section { padding: 48px 0; }
}

.section-eyebrow {
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 10px;
}
.section-eyebrow--light { color: var(--orange); }
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-bottom: 40px;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head-row .section-title { margin-bottom: 0; }
.link-more {
  font-family: var(--font-label);
  font-weight: 700;
  color: var(--orange-dark);
  border-bottom: 2px dashed var(--orange-dark);
  padding-bottom: 2px;
  white-space: nowrap;
}
.empty-note { color: #6b7280; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--orange); color: var(--navy-ink); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }
.btn--accent { background: var(--red); color: var(--cream); }
.btn--accent:hover { background: #b8371f; transform: translateY(-2px); }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 2px dashed var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { max-height: 44px; }
.site-logo__stamp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--orange-dark);
  color: var(--orange-dark);
  font-size: 18px;
  transform: rotate(-12deg);
  flex-shrink: 0;
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__jp { font-family: var(--font-heading); font-weight: 900; font-size: 18px; color: var(--navy); }
.site-logo__en { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.12em; color: var(--orange-dark); }

.site-nav__list { display: flex; gap: 28px; }
.site-nav__list a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
}
.site-nav__list a:hover { color: var(--orange-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

.site-nav-mobile { display: none; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .site-nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--cream-2);
    border-top: 2px dashed var(--navy);
  }
  .site-nav-mobile.is-open { display: flex; }
  .site-nav-mobile__list { display: flex; flex-direction: column; }
  .site-nav-mobile__list a {
    display: block;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 1px dashed rgba(28,43,69,0.2);
  }
}

/* ---------- ヒーロー ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-label);
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.hero__heading {
  font-size: clamp(30px, 4.6vw, 50px);
  color: var(--navy);
  margin-bottom: 20px;
}
.hero__lead { font-size: 16px; color: #33415c; max-width: 46ch; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__trailer-illust { width: 100%; max-width: 380px; }
.hero__stamp-circle {
  position: absolute;
  top: -6px; right: 6px;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px dashed var(--red);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: rotate(14deg);
  background: var(--cream);
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 280px; margin: 0 auto; }
}

/* ---------- マーキー ---------- */
.marquee {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 26s linear infinite;
}
.marquee__item {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 0 24px;
}
.marquee__dot { color: var(--orange); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- 3つのスタンプ ---------- */
.stamps-section { text-align: center; }
.stamps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
.stamp-card {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 32px 24px 28px;
  position: relative;
}
.stamp-badge {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 2px dashed var(--navy);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 18px;
}
.stamp-badge--1 { transform: rotate(-8deg); border-color: var(--orange-dark); color: var(--orange-dark); }
.stamp-badge--2 { transform: rotate(5deg); border-color: var(--red); color: var(--red); }
.stamp-badge--3 { transform: rotate(-4deg); border-color: var(--navy); }
.stamp-card h3 { font-family: var(--font-label); letter-spacing: 0.06em; margin-bottom: 10px; color: var(--navy); }
.stamp-card p { color: #3d4a63; font-size: 14.5px; margin: 0; }

/* ---------- 3つの価値観 ---------- */
.values-section { background: var(--navy); color: var(--cream); }
.values-section .section-title,
.values-section .section-eyebrow { color: var(--cream); }
.values-section .section-eyebrow { color: var(--orange); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-card {
  border-top: 2px dashed var(--orange);
  padding-top: 20px;
}
.value-card__en {
  font-family: var(--font-label);
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: #cdd6e8; font-size: 14.5px; margin: 0; }

@media (max-width: 780px) {
  .stamps-grid, .values-grid { grid-template-columns: 1fr; }
}

/* ---------- カード共通 ---------- */
.post-card__thumb-placeholder {
  background: var(--cream-2);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--orange-dark);
}
.post-card__thumb-placeholder--lg { aspect-ratio: 16/9; font-size: 48px; }

.post-grid, .vehicle-grid, .diary-grid { display: grid; gap: 28px; }
.vehicle-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
.vehicle-grid--archive { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .vehicle-grid, .post-grid, .vehicle-grid--archive { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .vehicle-grid, .post-grid, .vehicle-grid--archive, .diary-grid { grid-template-columns: 1fr !important; }
}

.vehicle-card, .post-card {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vehicle-card:hover, .post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(19,30,48,0.14);
}
.vehicle-card__thumb, .post-card__thumb { position: relative; }
.vehicle-card__thumb img, .post-card__thumb img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.vehicle-card__body, .post-card__body { padding: 18px 20px 22px; }
.vehicle-card__title, .post-card__title {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--navy);
}
.vehicle-card__excerpt, .post-card__excerpt { font-size: 13.5px; color: #4a5771; margin: 0; }

/* バッジ */
.badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.badge--lg { position: static; transform: rotate(-3deg); font-size: 13px; padding: 8px 18px; }
.badge-hunting { background: var(--orange); color: var(--navy-ink); }
.badge-restoring { background: var(--red); color: #fff; }
.badge-adopting { background: var(--navy); color: var(--cream); }
.badge-delivered { background: #6b7280; color: #fff; }
.badge-default { background: var(--cream-2); color: var(--navy); border: 1px solid var(--navy); }

/* ---------- フィルターバー ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar__item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.filter-bar__item.is-active, .filter-bar__item:hover {
  background: var(--navy);
  color: var(--cream);
}

/* ---------- アーカイブヒーロー ---------- */
.archive-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 0 44px;
  text-align: center;
}
.archive-hero__title { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 12px; }
.archive-hero__desc { color: #cdd6e8; max-width: 560px; margin: 0 auto; }

/* ---------- ポラロイド（日記） ---------- */
.diary-grid--archive { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .diary-grid--archive { grid-template-columns: repeat(2, 1fr); } }
.polaroid {
  display: block;
  background: #fff;
  padding: 10px 10px 26px;
  box-shadow: 0 6px 16px rgba(19,30,48,0.16);
  transform: rotate(var(--rotate, 0deg));
  transition: transform .15s ease;
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid__photo { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__caption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy-ink);
  margin: 12px 4px 2px;
}
.polaroid__date {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--orange-dark);
  margin: 0 4px;
}
.polaroid-frame { background: #fff; padding: 10px 10px 20px; box-shadow: 0 6px 16px rgba(19,30,48,0.14); }

/* ---------- CTAセクション ---------- */
.cta-section { background: var(--red); color: var(--cream); text-align: center; }
.cta-section__inner { padding: 64px 24px; }
.cta-section__title { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 28px; }
@media (max-width: 640px) { .only-pc { display: none; } }

/* ---------- パスポート（車両詳細） ---------- */
.passport {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  border: 2px solid var(--navy);
}
.passport__stitch {
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(28,43,69,0.35);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.passport__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.passport__eyebrow {
  font-family: var(--font-label);
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--orange-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.passport__title { font-size: clamp(24px, 3.4vw, 32px); color: var(--navy); }
.passport__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag-pill {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 5px 12px;
}
.passport__photo { position: relative; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; }
.passport__photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.passport__stamp {
  position: absolute;
  bottom: 16px; right: 16px;
  border: 3px solid var(--red);
  color: var(--red);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transform: rotate(-10deg);
  background: rgba(251,246,234,0.9);
}

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px dashed rgba(28,43,69,0.3);
  font-size: 14.5px;
}
.spec-table th {
  width: 160px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}
.spec-table td { color: #3d4a63; }

.passport__body { margin-bottom: 28px; }
.passport__cta { text-align: center; }

@media (max-width: 640px) {
  .passport { padding: 24px 18px; }
  .spec-table th { width: 110px; font-size: 13px; }
}

/* ---------- 通常ページ・投稿 ---------- */
.page-header { margin-bottom: 28px; }
.page-eyebrow { font-family: var(--font-label); color: var(--orange-dark); font-weight: 700; font-size: 12.5px; margin-bottom: 8px; }
.page-title { font-size: clamp(24px, 3.6vw, 34px); color: var(--navy); }
.page-thumb { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; }
.entry-content { font-size: 15.5px; }
.entry-content h2, .entry-content h3 { color: var(--navy); margin: 1.6em 0 0.6em; }
.entry-content img { border-radius: var(--radius-md); margin: 1em 0; }
.back-link { margin-top: 32px; }
.back-link a { border-bottom: 2px dashed var(--orange-dark); color: var(--orange-dark); font-weight: 700; }

/* ---------- ページネーション ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 999px; border: 2px solid var(--navy);
  font-family: var(--font-label); font-weight: 700; font-size: 13px;
  color: var(--navy);
}
.pagination .page-numbers.current { background: var(--navy); color: var(--cream); }

/* ---------- コメント ---------- */
.comments-area { margin-top: 48px; border-top: 2px dashed rgba(28,43,69,0.3); padding-top: 32px; }
.comments-title { font-size: 19px; color: var(--navy); margin-bottom: 20px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: var(--cream); margin-top: 0; position: relative; }
.site-footer__stitch { height: 4px; background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 24px); }
.site-footer__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer__title { font-family: var(--font-heading); font-weight: 900; font-size: 18px; margin: 10px 0 8px; }
.site-footer__desc { color: #b9c3da; font-size: 13.5px; max-width: 34ch; }
.site-footer__nav-list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav-list a { font-size: 14px; color: #dbe2f0; }
.site-footer__nav-list a:hover { color: var(--orange); }
.footer-widget-title { font-size: 14px; margin-bottom: 8px; color: var(--orange); }
.site-footer__bottom {
  text-align: center;
  font-size: 12px;
  color: #8ea0c4;
  padding: 16px 24px 28px;
}
@media (max-width: 780px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
