/* ========================================
   PRIDE★1 Garage - Stylesheet
   モバイルファースト / WordPress対応
   ======================================== */

/* ========================================
   1. CSS Variables / Design Tokens
   WordPress カスタマイザー対応
   ======================================== */
:root {
  /* ========================================
     WordPress カスタマイザー対応
     以下のカラー変数は functions.php で上書き可能
     デフォルト値をフォールバックとして設定
     ======================================== */

  /* Colors - WordPress上書き可能 */
  --color-primary: var(--wp-color-primary, #FFD700);        /* PRIDE★1 Garageロゴの黄 */
  --color-secondary: var(--wp-color-secondary, #000000);    /* 黒背景 */
  --color-accent: var(--wp-color-accent, #D4AF37);          /* ゴールド（ストライプ等） */
  --color-accent-blue: var(--wp-color-accent-blue, #04C4F5); /* シアンブルー（アクセントカラー） */

  --color-text-dark: var(--wp-color-text-dark, #111111);    /* 本文濃い */
  --color-text-body: var(--wp-color-text-body, #333333);    /* 本文通常 */
  --color-text-light: var(--wp-color-text-light, #666666);  /* 本文薄い */
  --color-white: #FFFFFF;                                    /* 固定値 */

  --color-bg-main: var(--wp-color-bg-main, #FFFFFF);
  --color-bg-light: var(--wp-color-bg-light, #F5F5F5);      /* 薄グレー */
  --color-bg-blue: var(--wp-color-bg-blue, #C8D8E4);        /* ブランド紹介背景の水色 */
  --color-bg-dark: #000000;                                  /* 固定値 */
  --color-bg-footer: var(--wp-color-bg-footer, #00BCD4);    /* フッターのシアン */

  --color-stripe: rgba(212, 175, 55, 0.15);                  /* ストライプ背景 */
  --color-overlay: rgba(0, 0, 0, 0.6);                       /* CTA背景オーバーレイ */

  /* Spacing - clamp()で流動化（固定値） */
  --space-xs: clamp(4px, 0.5vw, 8px);
  --space-sm: clamp(8px, 1vw, 16px);
  --space-md: clamp(16px, 2vw, 32px);
  --space-lg: clamp(24px, 3vw, 48px);
  --space-xl: clamp(32px, 4vw, 64px);
  --space-2xl: clamp(48px, 6vw, 96px);

  /* Typography（固定値） */
  --font-sans: Meiryo, "Hiragino Kaku Gothic Pro", Osaka, "MS PGothic", sans-serif;
  --font-display: "Arial Black", "Bebas Neue", Impact, sans-serif;
  --font-bold: "Noto Sans JP", sans-serif;
  --font-anton: "Anton", sans-serif;

  --font-size-sm: clamp(12px, 1.2vw, 14px);
  --font-size-base: clamp(14px, 1.4vw, 16px);
  --font-size-md: clamp(16px, 1.6vw, 18px);
  --font-size-lg: clamp(18px, 2vw, 22px);
  --font-size-xl: clamp(22px, 2.5vw, 28px);
  --font-size-2xl: clamp(28px, 3.5vw, 40px);
  --font-size-3xl: clamp(32px, 4vw, 56px);

  /* Layout（固定値） */
  --container-max: 1280px;
  --container-padding: clamp(16px, 4vw, 40px);

  /* Breakpoints (メディアクエリで使用) */
  /* sm: 600px, md: 960px, lg: 1280px */
}

/* ========================================
   スクロールフェードイン共通ユーティリティ
   ======================================== */
.js-fade-up {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.94) translateY(20px);
  transition:
    opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s),
    filter  1.8s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s),
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s);
  will-change: opacity, filter, transform;
}

.js-fade-up.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1) translateY(0);
}

.js-fade-up--delay {
  --fade-delay: 0.2s;
}

/* ========================================
   2. Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg-main);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

address {
  font-style: normal;
}

/* ========================================
   3. Utility Classes
   ======================================== */

/* スクリーンリーダー専用テキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: clamp(10px, 1.5vw, 14px) clamp(24px, 3vw, 40px);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  border: 2px solid var(--color-text-dark);
}

.btn--primary:hover {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  opacity: 1;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-dark);
  border: 2px solid var(--color-text-dark);
}

.btn--secondary:hover {
  background-color: var(--color-accent-blue);
  color: var(--color-white);
  border-color: var(--color-accent-blue);
  opacity: 1;
}

.btn--large {
  padding: clamp(14px, 2vw, 18px) clamp(32px, 4vw, 56px);
  font-size: var(--font-size-md);
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-header__title-wrapper .section-header__spin-icon {
  position: absolute;
  left: var(--container-padding);
}

.section-header__spin-icon {
  width: clamp(120px, 15vw, 180px);
  height: clamp(120px, 15vw, 180px);
  animation: spin 4s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.section-header__title {
  font-family: var(--font-bold);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--color-text-dark);
}

.section-header__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.section-header--light .section-header__title,
.section-header--light .section-header__subtitle {
  color: var(--color-white);
}

/* SNSアイコン（簡易実装） */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-text-dark);
  color: var(--color-white);
  margin: 0 4px;
  font-size: 16px;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* 各SNSのホバーカラー（属性セレクタで確実に適用） */
.social-icon[aria-label="Facebook"]:hover {
  background-color: #1877F2; /* Facebook公式カラー */
}

.social-icon[aria-label*="Twitter"]:hover,
.social-icon[aria-label="X (Twitter)"]:hover {
  background-color: #000000; /* X (Twitter)公式カラー */
}

.social-icon[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); /* Instagram公式グラデーション */
}

.social-icon[aria-label="TikTok"]:hover {
  background-color: #000000; /* TikTok公式カラー（黒） */
  border: 2px solid #00F2EA; /* TikTokシアンでボーダー */
  box-sizing: border-box;
}

/* Font Awesomeアイコンのサイズ調整 */
.social-icon i {
  font-size: 16px;
  line-height: 1;
}

/* ========================================
   4. Header
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(4, 196, 245, 0.9);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* WordPress管理バー表示時はその分ずらす */
.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.header__logo .logo img {
  height: clamp(32px, 4vw, 48px);
  width: auto;
  display: block;
}

.header__logo .logo__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--color-text-dark);
  letter-spacing: 0.05em;
}

/* ハンバーガーメニュー（スマホ） */
.header__menu-toggle {
  display: none;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

/* スマホ表示 */
@media (max-width: 959px) {
  .header__hamburger {
    display: flex;
  }

  /* ───── フルスクリーンオーバーレイ ───── */
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 100px 32px 40px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 999;
  }

  .header__menu-toggle:checked ~ .header__nav {
    opacity: 1;
    visibility: visible;
  }

  /* ───── ハンバーガー → X 変形 ───── */
  .header__menu-toggle:checked ~ .header__hamburger span {
    background-color: #fff;
  }
  .header__menu-toggle:checked ~ .header__hamburger span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }
  .header__menu-toggle:checked ~ .header__hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .header__menu-toggle:checked ~ .header__hamburger span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }

  /* ───── ナビゲーション本体 ───── */
  .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 340px;
  }

  .nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  /* メニューオープン時: 各アイテムがスタッガー表示 */
  .header__menu-toggle:checked ~ .header__nav .nav__item:nth-child(1) {
    opacity: 1; transform: translateY(0); transition-delay: 0.1s;
  }
  .header__menu-toggle:checked ~ .header__nav .nav__item:nth-child(2) {
    opacity: 1; transform: translateY(0); transition-delay: 0.2s;
  }
  .header__menu-toggle:checked ~ .header__nav .nav__item:nth-child(3) {
    opacity: 1; transform: translateY(0); transition-delay: 0.3s;
  }
  .header__menu-toggle:checked ~ .header__nav .nav__item:nth-child(4) {
    opacity: 1; transform: translateY(0); transition-delay: 0.4s;
  }
  .header__menu-toggle:checked ~ .header__nav .nav__item:nth-child(5) {
    opacity: 1; transform: translateY(0); transition-delay: 0.5s;
  }

  /* ───── メニューリンク ───── */
  .nav__link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    border-bottom: none;
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
  }

  .nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent));
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav__link:hover,
  .nav__link:active {
    color: var(--color-accent-blue);
    padding-left: 8px;
  }

  .nav__link:hover::before,
  .nav__link:active::before {
    width: 100%;
  }

  .header__social {
    display: none;
  }
}

/* PC表示 */
@media (min-width: 960px) {
  .header__nav {
    flex: 1;
    margin: 0 var(--space-lg);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.5vw, 24px);
    flex-wrap: nowrap;
  }

  .nav__link {
    font-size: clamp(10px, 0.9vw, 13px);
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
  }

  .nav__link:hover {
    border-bottom-color: var(--color-accent-blue);
    opacity: 1;
  }
}

/* ========================================
   5. Hero Section
   ======================================== */
.hero {
  position: sticky;
  top: 70px; /* JSで上書きされる。ヘッダー高さ分ずらすことでスクロール時に動かない */
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  z-index: 1;
}

/* タブレット以上でフル高さ */
@media (min-width: 600px) {
  .hero {
    height: 70vh;
    min-height: 500px;
  }
}

/* PC以上でフル高さ */
@media (min-width: 960px) {
  .hero {
    height: 100vh;
    min-height: 600px;
  }
}

.hero__slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__slide picture,
.brand-intro__left-slide picture,
.brand-intro__slide picture,
.cta__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* ヒーローズームアニメーション */
@keyframes heroZoom {
  0% {
    transform: scale(1) translateZ(0);
  }
  100% {
    transform: scale(1.15) translateZ(0);
  }
}

.hero__image {
  width: 100%;
  height: 100%;
}

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

/* ヒーローオーバーレイ */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 18vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10;
  pointer-events: none;
}

.hero__content {
  text-align: center;
  color: var(--color-white);
  padding: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 600px) {
  .hero__content {
    padding: var(--space-lg);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: heroTitleReveal 2.2s ease-out 0.6s forwards;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  /* アニメーション初期状態 */
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.8s ease-out 1.2s forwards;
}

/* フェードイン + スライドアップアニメーション（ゆっくりふわっと） */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヒーロータイトル: ぼかしからくっきり現れる */
@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    letter-spacing: 0.3em;
  }
  60% {
    opacity: 0.8;
    filter: blur(2px);
    letter-spacing: 0.05em;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: normal;
  }
}

.hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--color-white);
  padding: var(--space-md) var(--container-padding);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: var(--font-size-sm);
}

.hero__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   5.5 LINE CTA Section
   ======================================== */
/* LINE CTA Premium Section */
.line-cta-premium {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #0a0a0a 0%, #111 60%, #0d1a10 100%);
  border-top: 1px solid rgba(6, 199, 85, 0.2);
  border-bottom: 1px solid rgba(6, 199, 85, 0.2);
  overflow: hidden;
}

/* 背景グロー */
.line-cta-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 20%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 199, 85, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* 背景大文字 */
.line-cta-premium__bg-text {
  position: absolute;
  top: 50%;
  left: 0;
  font-family: 'Bebas Neue', 'Anton', sans-serif;
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 400;
  color: rgba(6, 199, 85, 0.09);
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  animation: lineBgScroll 30s linear infinite;
}

.line-cta-premium__bg-text--2 {
  animation-delay: -16.5s;
}

@keyframes lineBgScroll {
  0%    { transform: translateY(-50%) translateX(110vw); }
  44%   { transform: translateY(-50%) translateX(-115%); }
  44.1% { transform: translateY(-50%) translateX(110vw); }
  100%  { transform: translateY(-50%) translateX(110vw); }
}

/* コンテナ */
.line-cta-premium__container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* 左: テキストエリア */
.line-cta-premium__left {
  flex: 1;
}

.line-cta-premium__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(6, 199, 85, 0.1);
  border: 1px solid rgba(6, 199, 85, 0.35);
  color: #06c755;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.line-cta-premium__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #06c755;
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.line-cta-premium__title {
  font-family: var(--font-bold);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.line-cta-premium__desc {
  font-size: clamp(13px, 1.4vw, 15px);
  color: rgba(255, 255, 255, 0.5);
  line-height: 2;
  margin-bottom: 36px;
}

/* 統計バー */
.line-cta-premium__stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
}

.line-cta-premium__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.line-cta-premium__stat-num {
  font-family: 'Bebas Neue', 'Anton', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  color: #06c755;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 4px;
}

.line-cta-premium__stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
}

.line-cta-premium__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* 右: LINEカード */
.line-cta-premium__right {
  flex-shrink: 0;
  width: clamp(280px, 30vw, 360px);
}

.line-cta-premium__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(6, 199, 85, 0.25);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(6, 199, 85, 0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}

.line-cta-premium__card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.line-cta-premium__line-icon {
  font-size: 42px;
  color: #ffffff;
  line-height: 1;
  background: #06c755;
  border-radius: 14px;
  padding: 10px 12px;
  flex-shrink: 0;
  animation: lineIconGlow 3s ease-in-out infinite;
}

@keyframes lineIconGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(6, 199, 85, 0.4); }
  50%       { box-shadow: 0 0 36px rgba(6, 199, 85, 0.8); }
}

.line-cta-premium__card-name {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

/* LINE ID */
.line-cta-premium__id {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
}

/* 友だち追加ボタン */
.line-cta-premium__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #06c755, #00b140);
  color: #ffffff;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
  white-space: nowrap;
  overflow: hidden;
}

.line-cta-premium__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.line-cta-premium__btn:hover::before { opacity: 1; }

.line-cta-premium__btn:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(6, 199, 85, 0.55);
}

.line-cta-premium__btn i { font-size: 18px; }

/* モバイル: 縦並び・中央寄せ */
@media (max-width: 767px) {
  .line-cta-premium__container {
    flex-direction: column;
    text-align: center;
    padding: 60px var(--container-padding);
    gap: 40px;
  }

  .line-cta-premium__stats {
    max-width: 100%;
  }

  .line-cta-premium__right {
    width: 100%;
  }

  .line-cta-premium__line-icon {
    font-size: 38px;
  }
}

/* ========================================
   6. News Section
   ======================================== */
.news {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

/* 背景動画 */
.news__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.news__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* オーバーレイ */
.news__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 0;
}

.news__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.news__list {
  max-width: 900px;
  margin: 0 auto var(--space-xl);
}

/* ニュース項目 - シンプルリスト型 */
.news-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.news-item:hover {
  padding-left: var(--space-sm);
  background-color: rgba(255, 255, 255, 0.05);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__date {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.news-item__badge {
  display: inline-block;
  padding: clamp(3px, 0.5vw, 5px) clamp(10px, 1.5vw, 14px);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid currentColor;
}

.news-item__badge--info {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

.news-item__badge--new {
  background-color: transparent;
  color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.news-item__badge--event {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.news-item__title {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.news-item__title a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item__title a:hover {
  color: var(--color-accent-blue);
  opacity: 1;
}

.news__more {
  text-align: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news__more .btn {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  padding: clamp(10px, 1.5vw, 14px) clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

/* スマホ対応 */
@media (max-width: 599px) {
  /* スマホでは背景を絶対配置に変更（固定背景のパフォーマンス問題回避） */
  .news__bg {
    position: absolute;
  }

  .news-item {
    grid-template-columns: auto 1fr;
    gap: var(--space-xs) var(--space-sm);
    padding: var(--space-sm) 0;
  }

  .news-item__date {
    grid-column: 1 / -1;
    font-size: 11px;
    margin-bottom: 2px;
  }

  .news-item__badge {
    grid-column: 1;
  }

  .news-item__title {
    grid-column: 2;
    font-size: 14px;
  }

  .news-item:hover {
    padding-left: 0;
  }
}

/* タブレット以上 */
@media (min-width: 600px) {
  .news-item {
    grid-template-columns: 100px auto 1fr;
    padding: var(--space-lg) 0;
  }
}

/* ========================================
   6.5 Services Section
   ======================================== */
.services {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-light);
}

.services__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* サービスカード */
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  transition: width 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

/* カード別の色分け */
.service-card--bike::before {
  background: var(--color-accent);
}

.service-card--bicycle::before {
  background: var(--color-accent-blue);
}

.service-card--custom::before {
  background: var(--color-text-body);
}

.service-card--parts::before {
  background: var(--color-text-body);
}

.service-card__icon {
  font-size: clamp(48px, 6vw, 64px);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.service-card__description {
  font-size: var(--font-size-md);
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.service-card__list li {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 900;
}

.service-card--bike .service-card__list li::before {
  color: var(--color-accent);
}

.service-card--bicycle .service-card__list li::before {
  color: var(--color-accent-blue);
}

.service-card--custom .service-card__list li::before,
.service-card--parts .service-card__list li::before {
  color: var(--color-text-body);
}

/* タブレット以上（2カラム） */
@media (min-width: 600px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* デスクトップ（4カラム） */
@media (min-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

/* ========================================
   7. Brand Intro Section (斜め背景 + ダイヤグリッド)
   ======================================== */
.brand-intro {
  position: relative;
  z-index: 2;
  height: 50vh;
  min-height: 300px;
  display: flex;
  overflow: hidden;
  background: #000;
}

@media (min-width: 600px) {
  .brand-intro {
    height: 70vh;
    min-height: 500px;
  }
}

@media (min-width: 960px) {
  .brand-intro {
    height: 100vh;
    min-height: 600px;
  }
}

/* 左パネル */
.brand-intro__left {
  position: relative;
  width: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 2.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 中央上部ロゴ */
.brand-intro__logo-float {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(260px, 42vw, 600px);
  z-index: 100;
  pointer-events: none;
}

.brand-intro__logo-float img {
  width: 100%;
  height: auto;
  display: block;
}

/* カーテンが開いた状態 */
.brand-intro.curtain-open .brand-intro__left {
  transform: scaleX(1);
}

.brand-intro.curtain-open .brand-intro__right {
  transform: scaleX(1);
}

/* ロゴ・ナビはカーテンが開いた後にリンク個別アニメーション */
.brand-intro__left-inner {
  opacity: 1;
}

/* 左パネル スライド */
.brand-intro__left-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.brand-intro__left-slide--active {
  opacity: 1;
}

.brand-intro__left-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 暗めのオーバーレイ（テキスト読みやすく） */
.brand-intro__left-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.brand-intro__left-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 右パネル */
.brand-intro__right {
  position: relative;
  width: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 2.4s cubic-bezier(0.77, 0, 0.175, 1) 0.15s;
}

.brand-intro__right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* スライド */
.brand-intro__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.brand-intro__slide--active {
  opacity: 1;
}

.brand-intro__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

/* STM（2枚目）はさらに下に */
.brand-intro__slide:nth-child(2) img {
  object-position: center 95%;
}

/* R-Speed（4枚目）は人物の顔が見える位置 */
.brand-intro__slide:nth-child(4) img {
  object-position: center 25%;
}


/* ========================================
   モバイル: brand-intro 縦積みレイアウト
   ======================================== */
@media (max-width: 599px) {
  /* 親コンテナ */
  .brand-intro {
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  /* 上下パネル共通 */
  .brand-intro__left,
  .brand-intro__right {
    width: 100% !important;
    height: 38vh !important;
    min-height: 200px !important;
    max-height: none !important;
  }
  /* 左パネル: 左からスライドイン */
  .brand-intro__left {
    transform: translateX(-100%) !important;
    transform-origin: center !important;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  /* 右パネル: 右からスライドイン */
  .brand-intro__right {
    transform: translateX(100%) !important;
    transform-origin: center !important;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s !important;
  }
  /* curtain-open でスライド完了 */
  .brand-intro.curtain-open .brand-intro__left,
  .brand-intro.curtain-open .brand-intro__right {
    transform: translateX(0) !important;
  }
  /* 浮遊ロゴ: モバイル非表示 */
  .brand-intro__logo-float {
    display: none !important;
  }
  /* ナビコンテナ: パネル中央 */
  .brand-intro__left-inner {
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    gap: 10px !important;
  }
  /* ブランドリンクコンテナ: パネル中央 */
  .brand-intro__right-brands {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 88% !important;
    padding: 0 !important;
    z-index: 20 !important;
  }

  /* --- ナビリンク: フワッと下から登場 --- */
  .brand-intro__nav-link {
    opacity: 0 !important;
    transform: translateY(14px) !important;
    transition: opacity 0.9s ease-out, transform 0.9s ease-out !important;
    animation: none !important;
  }
  .brand-intro.curtain-open .brand-intro__nav-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
  }
  .brand-intro__nav-link:nth-child(1) { transition-delay: 1.2s !important; }
  .brand-intro__nav-link:nth-child(2) { transition-delay: 1.4s !important; }
  .brand-intro__nav-link:nth-child(3) { transition-delay: 1.6s !important; }
  .brand-intro__nav-link:nth-child(4) { transition-delay: 1.8s !important; }
  .brand-intro__nav-link:nth-child(5) { transition-delay: 2.0s !important; }
  .brand-intro__nav-link:nth-child(6) { transition-delay: 2.2s !important; }

  /* --- ブランドリンク: フワッと右から登場 --- */
  .brand-intro__brand-link {
    opacity: 0 !important;
    transform: translateX(18px) !important;
    transition: opacity 0.9s ease-out, transform 0.9s ease-out !important;
    animation: none !important;
  }
  .brand-intro.curtain-open .brand-intro__brand-link {
    opacity: 1 !important;
    transform: translateX(0) !important;
    animation: none !important;
  }
  .brand-intro__brand-link:nth-child(1) { transition-delay: 1.5s !important; }
  .brand-intro__brand-link:nth-child(2) { transition-delay: 1.75s !important; }
  .brand-intro__brand-link:nth-child(3) { transition-delay: 2.0s !important; }
  .brand-intro__brand-link:nth-child(4) { transition-delay: 2.25s !important; }
}

/* 背景カラーレイヤー */
.parallax-bg-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #C8D8E4;
  pointer-events: none;
  z-index: 1;
}

/* 背景画像レイヤー */
.parallax-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/backgrounds/DSC05500-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}

/* WebPサポートブラウザ用の背景画像最適化 */
@supports (background-image: url('test.webp')) {
  .parallax-bg-image {
    background-image: url('../images/backgrounds/DSC05500-1.webp');
  }
}

/* AVIFサポートブラウザ用の背景画像最適化（最優先） */
@supports (background-image: url('test.avif')) {
  .parallax-bg-image {
    background-image: url('../images/backgrounds/DSC05500-1.avif');
  }
}

/* 左側ナビゲーション */
.brand-intro__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.brand-intro__nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  position: relative;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  opacity: 0;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transition: color 0.25s ease;
}

.brand-intro__nav-link:hover {
  color: #ffd700;
}

/* 左パネル：左から滑らかにフワッと登場 */
@keyframes navLinkIn {
  0% {
    opacity: 0;
    transform: translateX(-36px) skewX(12deg) scale(0.88);
  }
  100% {
    opacity: 0.92;
    transform: translateX(0) skewX(0) scale(1);
  }
}

.brand-intro.curtain-open .brand-intro__nav-link:nth-child(1) {
  animation: navLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 2.6s forwards;
}
.brand-intro.curtain-open .brand-intro__nav-link:nth-child(2) {
  animation: navLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 2.85s forwards;
}
.brand-intro.curtain-open .brand-intro__nav-link:nth-child(3) {
  animation: navLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 3.1s forwards;
}
.brand-intro.curtain-open .brand-intro__nav-link:nth-child(4) {
  animation: navLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 3.35s forwards;
}
.brand-intro.curtain-open .brand-intro__nav-link:nth-child(5) {
  animation: navLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 3.6s forwards;
}
.brand-intro.curtain-open .brand-intro__nav-link:nth-child(6) {
  animation: navLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 3.85s forwards;
}

/* モバイル: ナビ表示スタイル */
@media (max-width: 599px) {
  .brand-intro__nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px;
    width: 100%;
  }
  .brand-intro__nav-link {
    font-size: 12px;
    letter-spacing: 0.05em;
    white-space: normal;
    text-align: center;
    padding: 9px 6px;
    border: 1px solid rgba(4, 196, 245, 0.7);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  }
  .brand-intro__nav-link:active {
    background: rgba(4, 196, 245, 0.25);
    color: #04C4F5;
  }
}


/* 右パネル ブランドリンク オーバーレイ */
.brand-intro__right-brands {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0 24px;
  background: none;
}

.brand-intro__brand-link {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  position: relative;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  opacity: 0;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transition: color 0.25s ease;
}

.brand-intro__brand-link:hover {
  color: #ffd700;
}

/* 右パネル：右から滑らかにフワッと登場 */
@keyframes brandLinkIn {
  0% {
    opacity: 0;
    transform: translateX(36px) skewX(-12deg) scale(0.88);
  }
  100% {
    opacity: 0.92;
    transform: translateX(0) skewX(0) scale(1);
  }
}

.brand-intro.curtain-open .brand-intro__brand-link:nth-child(1) {
  animation: brandLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 2.6s forwards;
}
.brand-intro.curtain-open .brand-intro__brand-link:nth-child(2) {
  animation: brandLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 2.85s forwards;
}
.brand-intro.curtain-open .brand-intro__brand-link:nth-child(3) {
  animation: brandLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 3.1s forwards;
}
.brand-intro.curtain-open .brand-intro__brand-link:nth-child(4) {
  animation: brandLinkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 3.35s forwards;
}

/* モバイル: ブランドリンク表示スタイル */
@media (max-width: 599px) {
  .brand-intro__right-brands {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px;
    width: 100%;
    align-items: stretch;
  }
  .brand-intro__brand-link {
    font-size: 12px;
    letter-spacing: 0.05em;
    white-space: normal;
    text-align: center;
    padding: 9px 6px;
    border: 1px solid rgba(4, 196, 245, 0.7);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    width: auto;
  }
  .brand-intro__brand-link:active {
    background: rgba(4, 196, 245, 0.25);
    color: #04C4F5;
  }
}

/* ダイヤモンドグリッド */
.diamond-grid {
  display: none; /* スマホでは非表示 */
}

.brand-intro__diamond-grid {
  position: relative; /* 中央配置の基準 */
  width: 100%;
  display: none; /* モバイルでは非表示 */
  justify-content: center;
  align-items: center;
}

/* タブレット以上でダイヤモンド表示 */
@media (min-width: 600px) {
  .brand-intro__diamond-grid {
    display: flex;
  }
}

.diamond-grid__item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.1s linear;
  /* スクロールアニメーション初期状態 */
  opacity: 0 !important;
  transition: opacity 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* スクロールアニメーション後 */
.diamond-grid__item.animated {
  opacity: 1 !important;
}

/* 四方から集まるアニメーション（初期位置） */
/* 左上：左から */
.diamond-grid__item:nth-child(1) {
  transform: translateX(-300px) translateY(-100px) scale(0.6) !important;
  transition-delay: 0s;
}

/* 右上：右から */
.diamond-grid__item:nth-child(2) {
  transform: translateX(300px) translateY(-100px) scale(0.6) !important;
  transition-delay: 0.15s;
}

/* 左下：左から */
.diamond-grid__item:nth-child(3) {
  transform: translateX(-300px) translateY(100px) scale(0.6) !important;
  transition-delay: 0.3s;
}

/* 右下：右から */
.diamond-grid__item:nth-child(4) {
  transform: translateX(300px) translateY(100px) scale(0.6) !important;
  transition-delay: 0.45s;
}

/* アニメーション後の状態 */
.diamond-grid__item.animated:nth-child(1),
.diamond-grid__item.animated:nth-child(2),
.diamond-grid__item.animated:nth-child(3),
.diamond-grid__item.animated:nth-child(4) {
  transform: translateX(0) translateY(0) scale(1) !important;
}

.diamond {
  width: 100%;
  height: 100%;
  transform: rotate(45deg) translateZ(0);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 10px 25px rgba(0, 0, 0, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.15),
    inset 0 -2px 5px rgba(0, 0, 0, 0.1),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  perspective: 1000px;
}

.diamond:hover {
  transform: rotate(45deg) translateZ(20px) scale(1.05);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 -2px 5px rgba(0, 0, 0, 0.15),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.diamond img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: rotate(-45deg) scale(1.2);
  transform-origin: center center;
}

/* PC版でのみダイヤモンドロゴスタイルを適用 */
@media (min-width: 960px) {
  .diamond.diamond--logo {
    background:
      linear-gradient(135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 255, 255, 1) 25%,
        rgba(255, 255, 255, 1) 75%,
        rgba(212, 175, 55, 0.2) 100%
      );
    box-shadow:
      0 50px 120px rgba(0, 0, 0, 0.5),
      0 35px 70px rgba(0, 0, 0, 0.4),
      0 20px 40px rgba(0, 0, 0, 0.35),
      0 10px 20px rgba(0, 0, 0, 0.3),
      inset 0 -5px 15px rgba(0, 0, 0, 0.12),
      inset 0 5px 15px rgba(255, 255, 255, 1),
      inset 0 0 0 3px rgba(255, 215, 0, 0.3),
      0 0 30px rgba(255, 215, 0, 0.4),
      0 0 60px rgba(255, 215, 0, 0.2);
    border: 3px solid rgba(255, 215, 0, 0.5);

    /* 初期状態：非表示で下の位置、アニメーションなし */
    opacity: 0 !important;
    transform: rotate(45deg) translateZ(100px) scale(0.8) translateY(50px) !important;
    transition: opacity 1.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* アニメーション後の状態：フワッと浮き上がって、その後浮遊アニメーション開始 */
  .diamond.diamond--logo.animated {
    opacity: 1 !important;
    transform: rotate(45deg) translateZ(100px) scale(1.3) translateY(0) !important;
    animation: logoFloat 3s ease-in-out infinite 1.8s;
  }

  .diamond.diamond--logo::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background:
      radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.9) 0%,
        transparent 50%
      ),
      linear-gradient(135deg,
        rgba(255, 215, 0, 0.3) 0%,
        transparent 40%,
        transparent 60%,
        rgba(212, 175, 55, 0.2) 100%
      );
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
  }

  .diamond.diamond--logo::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle,
      rgba(255, 255, 255, 0.8) 0%,
      transparent 70%
    );
    border-radius: 50%;
    filter: blur(10px);
    z-index: 3;
  }

  .diamond.diamond--logo img {
    transform: rotate(-45deg) scale(1.05) !important;
    width: 80% !important;
    height: auto !important;
    object-fit: contain !important;
    position: relative;
    z-index: 4;
    filter:
      drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
      drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5))
      drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4))
      drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3))
      drop-shadow(0 0 30px rgba(255, 215, 0, 0.4))
      drop-shadow(0 0 50px rgba(255, 215, 0, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: rotate(45deg) translateZ(100px) scale(1.3) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateZ(100px) scale(1.3) translateY(-10px);
  }
}

@keyframes logoFloatWrapper {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.15) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.22) translateY(-30px);
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.15) translateY(0);
  }
}

/* より強力な指定 */
@media (min-width: 960px) {
  .brand-intro__content-wrapper.animated.floating {
    animation: logoFloatWrapper 4s ease-in-out infinite !important;
    animation-fill-mode: both !important;
  }
}

@keyframes logoGlow {
  0% {
    filter:
      drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
      drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5))
      drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4))
      drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3))
      drop-shadow(0 0 30px rgba(255, 215, 0, 0.4))
      drop-shadow(0 0 50px rgba(255, 215, 0, 0.3));
  }
  100% {
    filter:
      drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
      drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5))
      drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4))
      drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3))
      drop-shadow(0 0 40px rgba(255, 215, 0, 0.6))
      drop-shadow(0 0 60px rgba(255, 215, 0, 0.4));
  }
}

/* ブランド紹介コンテンツ（モバイル：通常表示） */
.brand-intro__content-wrapper {
  /* モバイルでは通常の配置 */
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  will-change: transform;
  transition: transform 0.1s linear;
}

.brand-intro__content {
  text-align: center;
  padding: var(--space-lg);
}

.brand-intro__logo {
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  /* アニメーション初期状態（スマホ・タブレット用） */
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.brand-intro__logo.animated {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.brand-intro__logo img {
  max-width: 350px;
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.brand-intro__text {
  margin-bottom: var(--space-lg);
  line-height: 1.8;
  font-size: clamp(14px, 3.5vw, 16px);
  color: var(--color-text-dark);
  font-weight: 400;
  /* アニメーション初期状態（スマホ・タブレット用） */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.brand-intro__text.animated {
  opacity: 1;
  transform: translateY(0);
}

.brand-intro__text p {
  margin-bottom: var(--space-md);
  font-size: clamp(14px, 3.5vw, 16px);
}

.brand-intro .btn--primary {
  /* アニメーション初期状態（スマホ・タブレット用） */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

.brand-intro .btn--primary.animated {
  opacity: 1;
  transform: translateY(0);
}

/* タブレット - ダイヤモンドグリッドは非表示を維持 */
@media (min-width: 600px) and (max-width: 959px) {
  .diamond-grid {
    display: none !important;
  }

  .brand-intro__diamond-grid {
    display: block; /* コンテナは表示してテキストを表示 */
    position: static;
  }

  .brand-intro__content-wrapper {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    aspect-ratio: auto;
    overflow: visible;
  }

  .brand-intro__content {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    padding: var(--space-lg);
  }
}

/* PC */
@media (min-width: 960px) {
  .brand-intro {
    min-height: 57vh;
  }

  /* PC版ではモバイルアニメーションをリセット */
  .brand-intro__logo,
  .brand-intro__text,
  .brand-intro .btn--primary {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-intro__diamond-grid {
    display: block; /* PC以上で表示 */
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  .diamond-grid {
    display: grid !important; /* PC以上で表示 */
    grid-template-columns: repeat(2, 1fr); /* 2×2グリッド */
    max-width: 100%;
    width: 100%;
    gap: clamp(60px, 8vw, 120px); /* 中央スペース確保のため大きなgap */
    padding: 0;
    perspective: 2000px;
    transform-style: preserve-3d;
  }

  .brand-intro__container {
    max-width: 100%;
    width: 100%;
    padding: 0 var(--space-md);
  }

  /* 中央に配置されるダイヤモンド形コンテンツ（外側） */
  .brand-intro__content-wrapper {
    position: absolute !important;
    top: 50%;
    left: 50%;
    /* 画像ダイヤモンドと同じサイズ（グリッドの1セル分） */
    width: calc((100vw - 2 * var(--space-md) - clamp(60px, 8vw, 120px)) / 2);
    max-width: clamp(380px, 45vw, 600px);
    aspect-ratio: 1;
    z-index: 10;
    overflow: hidden;
    background: linear-gradient(135deg,
      rgba(255, 215, 0, 0.05) 0%,
      rgba(255, 255, 255, 0.97) 20%,
      rgba(255, 255, 255, 0.97) 80%,
      rgba(212, 175, 55, 0.08) 100%
    );
    backdrop-filter: blur(16px);
    box-shadow:
      0 40px 100px rgba(0, 0, 0, 0.4),
      0 25px 60px rgba(0, 0, 0, 0.3),
      0 15px 35px rgba(0, 0, 0, 0.25),
      0 8px 20px rgba(0, 0, 0, 0.2),
      0 0 40px rgba(255, 215, 0, 0.3),
      inset 0 2px 5px rgba(255, 255, 255, 0.5);
  }

  /* 中央のロゴ（浮遊アニメーション用） */
  .brand-intro__logo-float {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(260px, 42vw, 600px);
    z-index: 100 !important;
    pointer-events: none;
  }

  /* モバイルでロゴを確実に表示 */
  @media (max-width: 599px) {
    .brand-intro__logo-float {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      z-index: 100 !important;
    }
  }

  /* ロゴ背後の放射状グロー効果（全デバイス） */
  .brand-intro__logo-float::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 180%;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 215, 0, 0.5) 20%,
      rgba(255, 215, 0, 0.3) 40%,
      rgba(255, 255, 255, 0.2) 60%,
      transparent 80%
    );
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: glowPulseBackground 3s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
  }

  /* 背景グローのパルスアニメーション */
  @keyframes glowPulseBackground {
    0%, 100% {
      opacity: 0.7;
      transform: translate(-50%, -50%) scale(1);
      filter: blur(50px);
    }
    50% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.4);
      filter: blur(70px);
    }
  }

  /* モバイル用のシンプルな浮遊アニメーション */
  @keyframes mobileLogoFloat {
    0%, 100% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-30px) scale(1.05);
    }
  }

  /* モバイル版：ロゴ + 光彩効果 + フワッと浮き上がるアニメーション */
  @media (max-width: 599px) {
    .brand-intro__logo-float img {
      width: 80vw !important;
      max-width: 350px !important;
      height: auto;
      display: block !important;
      opacity: 1 !important;
      visibility: visible !important;
      filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6))
              drop-shadow(0 0 30px rgba(255, 215, 0, 0.5))
              drop-shadow(0 0 60px rgba(255, 215, 0, 0.7))
              drop-shadow(0 0 90px rgba(255, 255, 255, 0.4))
              brightness(1.1)
              contrast(1.05);
      animation: mobileLogoFloat 3s ease-in-out infinite !important;
      animation-name: mobileLogoFloat !important;
      animation-duration: 3s !important;
      animation-timing-function: ease-in-out !important;
      animation-iteration-count: infinite !important;
      will-change: transform;
    }
  }

  /* タブレット以上：ダイヤモンドと光彩効果 */
  @media (min-width: 600px) {
    .brand-intro__logo-float img {
      width: 100%;
      filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7))
              drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5))
              drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4))
              drop-shadow(0 0 30px rgba(255, 255, 255, 0.95))
              drop-shadow(0 0 60px rgba(255, 245, 200, 0.7))
              drop-shadow(0 0 90px rgba(255, 235, 150, 0.5))
              drop-shadow(0 0 140px rgba(255, 250, 220, 0.45))
              drop-shadow(0 0 200px rgba(255, 255, 255, 0.5))
              drop-shadow(0 0 300px rgba(255, 255, 255, 0.3))
              brightness(1.2)
              contrast(1.15);
      animation: logoGlowPulse 4s ease-in-out infinite;
    }
  }

  /* PC以上：適度なサイズと光彩効果 */
  @media (min-width: 960px) {
    .brand-intro__logo-float img {
      width: 100%;
      filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.7))
              drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5))
              drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4))
              drop-shadow(0 0 40px rgba(255, 255, 255, 1))
              drop-shadow(0 0 80px rgba(255, 245, 200, 0.75))
              drop-shadow(0 0 120px rgba(255, 235, 150, 0.6))
              drop-shadow(0 0 180px rgba(255, 250, 220, 0.5))
              drop-shadow(0 0 260px rgba(255, 255, 255, 0.6))
              drop-shadow(0 0 380px rgba(255, 255, 255, 0.4))
              brightness(1.2)
              contrast(1.15);
      animation: logoGlowPulse 4s ease-in-out infinite;
    }
  }

  /* ロゴの光のフレアエフェクト（全デバイス） */
  .brand-intro__logo-float::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background:
      radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.25) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: lightFlare 5s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
  }

  /* 光のフレアアニメーション */
  @keyframes lightFlare {
    0%, 100% {
      opacity: 0.5;
      transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
      opacity: 0.9;
      transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
    }
  }

  /* ロゴの輝きパルスアニメーション */
  @keyframes logoGlowPulse {
    0%, 100% {
      filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.7))
              drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5))
              drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4))
              drop-shadow(0 0 80px rgba(255, 215, 0, 0.9))
              drop-shadow(0 0 150px rgba(255, 215, 0, 0.7))
              drop-shadow(0 0 250px rgba(255, 255, 255, 0.6))
              drop-shadow(0 0 350px rgba(255, 255, 255, 0.4))
              brightness(1.15)
              contrast(1.1);
    }
    50% {
      filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.7))
              drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5))
              drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4))
              drop-shadow(0 0 120px rgba(255, 215, 0, 1))
              drop-shadow(0 0 200px rgba(255, 215, 0, 0.9))
              drop-shadow(0 0 320px rgba(255, 255, 255, 0.8))
              drop-shadow(0 0 450px rgba(255, 255, 255, 0.6))
              brightness(1.35)
              contrast(1.2);
    }
  }

  /* 中央コンテンツ（内側：回転を戻す） */
  .brand-intro__content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 141.42%; /* √2 for 45deg rotation */
    height: 141.42%;
    transform: translate(-50%, -50%) rotate(-45deg) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    overflow: visible;
  }

  .brand-intro__logo {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .brand-intro__logo img {
    max-width: 70%;
    width: 70%;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  }

  .brand-intro__text {
    display: none;
  }

  .brand-intro__text p {
    display: none;
  }

  .btn--primary {
    display: none;
  }
}

/* ワイドPC */
@media (min-width: 1280px) {
  .brand-intro {
    min-height: 59vh;
  }

  .brand-intro__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
  }

  .diamond-grid {
    max-width: 100%;
    gap: clamp(80px, 10vw, 150px);
  }

  .brand-intro__content-wrapper {
    max-width: clamp(450px, 48vw, 700px);
  }

  .brand-intro__content {
    padding: 0;
  }

  .brand-intro__logo img {
    max-width: 72%;
    width: 72%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
  }
}

/* 超ワイドPC */
@media (min-width: 1920px) {
  .brand-intro {
    min-height: 60vh;
  }

  .brand-intro__container {
    max-width: 1800px;
  }

  .diamond-grid {
    max-width: 100%;
    gap: clamp(100px, 12vw, 180px);
  }

  .brand-intro__content-wrapper {
    max-width: clamp(500px, 50vw, 800px);
  }

  .brand-intro__content {
    padding: 0;
  }

  .brand-intro__logo img {
    max-width: 75%;
    width: 75%;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
  }
}

/* ========================================
   8. Topics Section
   ======================================== */
.topics {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-main);
  overflow: hidden;
}

/* スクロール連動 背景スピンロゴ */
.blog-bg-spin {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  /* translate / scale は JS で制御。transform(rotation)と干渉しない */
}

.blog-bg-spin img {
  width: clamp(120px, 15vw, 180px);
  height: auto;
  display: block;
  animation: spin 12s linear infinite;
}

.topics__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.topics__grid {
  display: grid;
  gap: var(--space-xl);
}

/* ローディング */
.topics__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 80px 0;
}

.topics__loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary, #c0392b);
  animation: topicsLoadingDot 1.2s ease-in-out infinite;
}

.topics__loading-dot:nth-child(2) { animation-delay: 0.2s; }
.topics__loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes topicsLoadingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* エラー */
.topics__error {
  text-align: center;
  padding: 60px 0;
  color: rgba(0, 0, 0, 0.4);
  font-size: 14px;
}

/* ページネーション */
.topics__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: var(--space-xl);
}

.topics__pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid #222;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.topics__pagination-btn:hover:not(:disabled) {
  background: #222;
  color: #fff;
}

.topics__pagination-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.topics__pagination-info {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.1em;
  min-width: 48px;
  text-align: center;
}

/* トピックカード */
.topic-card {
  position: relative;
  display: grid;
  gap: var(--space-md);
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: var(--space-lg);
}

/* 斜めストライプ背景 */
.topic-card__stripe {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--color-stripe),
    var(--color-stripe) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 0;
  pointer-events: none;
}

.topic-card__stripe--right {
  right: auto;
  left: 0;
}

/* シアンブルーのストライプ（バリエーション） */
.topic-card__stripe--blue {
  background: repeating-linear-gradient(
    45deg,
    rgba(4, 196, 245, 0.15),
    rgba(4, 196, 245, 0.15) 10px,
    transparent 10px,
    transparent 20px
  );
}

.topic-card__image {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
}

.topic-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card__content {
  position: relative;
  z-index: 1;
}

.topic-card__date {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.topic-card__title {
  font-family: var(--font-bold);
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.topic-card__excerpt {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* タブレット以上 */
@media (min-width: 600px) {
  .topic-card {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }

  .topic-card__image {
    aspect-ratio: 1;
  }

  .topic-card--reverse {
    grid-template-columns: 1fr 200px;
  }

  .topic-card--reverse .topic-card__image {
    order: 2;
  }

  .topic-card--reverse .topic-card__content {
    order: 1;
  }
}

/* PC */
@media (min-width: 960px) {
  .topic-card {
    grid-template-columns: 280px 1fr;
  }

  .topic-card--reverse {
    grid-template-columns: 1fr 280px;
  }
}

/* ========================================
   9. Product Brand Section
   ======================================== */
.product-brand {
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-dark);
}

.product-brand__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ブランドグリッド */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

.brand-grid__item {
  aspect-ratio: 5 / 3;
}

.brand-card {
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.brand-card img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* タブレット */
@media (min-width: 600px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PC小 */
@media (min-width: 960px) {
  .brand-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* PC大 */
@media (min-width: 1280px) {
  .brand-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ========================================
   9.5 Brand Section (New Horizontal Scroll)
   ======================================== */
.brand-section {
  position: relative;
  z-index: 2;
  min-height: 350px;
  padding: 80px 20px 60px;
  background-color: var(--color-white);
  overflow: hidden;
}

/* 背景の大きなテキスト */
.brand-bg-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 15vw, 240px);
  font-weight: 900;
  color: var(--bg-text);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  animation: slideBackground 20s ease-in-out infinite;
  will-change: transform;
}

:root {
  --bg-text: #e8e8e8;
}

@keyframes slideBackground {
  0% {
    transform: translate(-50%, -50%) translateX(-5%);
  }
  50% {
    transform: translate(-50%, -50%) translateX(5%);
  }
  100% {
    transform: translate(-50%, -50%) translateX(-5%);
  }
}

/* コンテナ */
.brand-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

/* タイトルエリア */
.brand-title-box {
  text-align: left;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.brand-title-box.animated {
  opacity: 1;
  transform: translateX(0);
}

.brand-eyebrow {
  font-family: 'Bebas Neue', 'Anton', sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--color-text-light);
  letter-spacing: 0.28em;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.brand-title-box.animated .brand-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.brand-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out 0.2s, transform 1s ease-out 0.2s;
}

.brand-title-box.animated .brand-subtitle {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 599px) {
  .brand-section {
    padding: 8px 20px 8px;
    min-height: auto;
  }

  .brand-container {
    gap: 8px;
  }

  .brand-logo-text {
    display: none;
  }

  .brand-subtitle {
    margin-top: 8px;
    margin-bottom: 0;
  }

  .brand-logos-scroll-container {
    padding: 8px 0;
  }
}

.brand-logo-text {
  font-family: 'Zen Antique', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.brand-logo-text .yamaoka {
  position: relative;
  display: inline-block;
}

.brand-logo-text .yamaoka::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-primary);
  z-index: -1;
}

/* ブランドロゴスクロールエリア（1列） */
.brand-logos-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.brand-logos-scroll-container.animated {
  opacity: 1;
  transform: translateY(0);
}

.brand-logos-scroll-row {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.brand-logos-scroll-wrapper {
  display: flex;
  gap: 30px;
  animation: scrollLogos 45s linear infinite;
  will-change: transform;
}

/* 無限スクロールアニメーション（4セット構造） */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    /* JavaScriptで動的に設定される */
    transform: translateX(var(--scroll-distance, -25%));
  }
}

.brand-logos-scroll-wrapper:hover {
  animation-play-state: paused;
}

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  width: 220px;
}

.brand-logo-item:hover {
  transform: scale(1.1);
}

.brand-logo-item img {
  width: 180px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.brand-logo-item:hover img {
  filter: brightness(1.2);
}

/* タブレット */
@media (min-width: 768px) {
  .brand-section {
    padding: 90px 40px 70px;
  }

  .brand-container {
    grid-template-columns: 220px 1fr;
    gap: 50px;
  }

  .brand-logo-item {
    width: 230px;
  }

  .brand-logo-item img {
    width: 200px;
    height: 100px;
  }

  .brand-logos-scroll-wrapper {
    gap: 35px;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .brand-section {
    padding: 100px 40px 80px;
  }

  .brand-container {
    grid-template-columns: 250px 1fr;
    gap: 60px;
  }

  .brand-logo-item {
    width: 220px;
  }

  .brand-logo-item img {
    width: 220px;
    height: 110px;
  }

  .brand-logos-scroll-wrapper {
    gap: 40px;
  }
}

/* 大画面デスクトップ */
@media (min-width: 1280px) {
  .brand-section {
    padding: 110px 60px 90px;
  }

  .brand-container {
    grid-template-columns: 260px 1fr;
    gap: 70px;
  }

  .brand-logo-item {
    width: 240px;
  }

  .brand-logo-item img {
    width: 240px;
    height: 120px;
  }

  .brand-logos-scroll-wrapper {
    gap: 45px;
  }
}

/* アニメーション削減モード */
@media (prefers-reduced-motion: reduce) {
  .brand-section *,
  .brand-section *::before,
  .brand-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   10. CTA Section
   ======================================== */
.cta {
  position: relative;
  z-index: 2;
  min-height: clamp(400px, 50vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  will-change: transform;
}

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

.cta__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
  z-index: 1;
}

.cta__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-xl) var(--container-padding);
  text-align: center;
  color: var(--color-white);
}

.cta__title {
  font-family: var(--font-bold);
  font-size: clamp(16px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.4;
  white-space: nowrap;
}

.cta__text {
  font-size: var(--font-size-md);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* ========================================
   11. Footer
   ======================================== */
.footer {
  background-color: #fff;
  color: var(--color-text-body);
}

/* ブランドバー */
.footer__top {
  background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 0;
}

.footer__top-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__top-brand {
  font-family: 'Bebas Neue', 'Anton', sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--color-text-dark);
  letter-spacing: 0.12em;
}

.footer__top-tagline {
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  padding-left: 20px;
  letter-spacing: 0.05em;
}

/* メインコンテンツ */
.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--container-padding) 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* 見出し */
.footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-text-dark);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-text-dark);
  transition: width 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.footer__heading.line-animated::after {
  width: 80px;
}

/* 店舗情報 */
.footer__col-sub {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.footer__address {
  margin-bottom: 20px;
  line-height: 2;
  font-size: 0.83rem;
  color: var(--color-text-body);
}

.footer__address p {
  margin-bottom: 10px;
}

.footer__icon {
  color: var(--color-text-dark);
  margin-right: 7px;
  font-size: 0.8rem;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--color-text-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer__phone:hover {
  background: var(--color-primary);
  color: #111;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.footer__contact-sub {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.footer__contact-sub i {
  color: var(--color-text-dark);
  margin-right: 6px;
  width: 14px;
}

/* ナビゲーション */
.footer__nav {
  display: grid;
  gap: 0;
  list-style: none;
}

.footer__nav li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.footer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--color-text-body);
  padding: 12px 0;
  transition: all 0.25s ease;
}

.footer__nav a::after {
  content: '→';
  color: var(--color-text-dark);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  font-size: 0.75rem;
}

.footer__nav a:hover {
  color: var(--color-text-dark);
  opacity: 1;
  padding-left: 6px;
}

.footer__nav a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Instagram */
.footer__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  max-width: 200px;
}

.footer__gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  display: block;
}

.footer__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.footer__gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 26px;
  color: #fff;
}

.footer__gallery-item:hover img {
  transform: scale(1.08);
}

.footer__gallery-item:hover .footer__gallery-overlay {
  opacity: 1;
}

.footer__insta-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--color-text-light);
  transition: color 0.25s ease;
  letter-spacing: 0.04em;
}

.footer__insta-link:hover {
  color: var(--color-text-dark);
  opacity: 1;
}

/* ボトムバー */
.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
}

.footer__bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.footer__bottom .social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-text-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: all 0.25s ease;
}

.footer__bottom .social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer__copyright {
  font-size: 0.72rem;
  color: var(--color-text-light);
  margin: 0;
}

/* タブレット以上 */
@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

/* PC */
@media (min-width: 960px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 60px;
  }
}

/* ========================================
   12. Accessibility & Print
   ======================================== */

/* フォーカス表示 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 印刷時 */
@media print {
  .header__hamburger,
  .header__social,
  .footer__social {
    display: none;
  }

  .hero {
    height: auto;
  }

  a {
    text-decoration: underline;
  }
}

/* プリファレンス: モーション削減 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   13. Dropdown Menu (車両販売メニュー)
   ======================================== */

.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 12px 20px;
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav__dropdown-link:hover {
  background: var(--color-bg-blue);
  border-left-color: var(--color-primary);
  padding-left: 24px;
}

/* モバイル対応 */
@media (max-width: 959px) {
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 2px solid rgba(4, 196, 245, 0.3);
  }

  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown:focus-within .nav__dropdown {
    max-height: 400px;
  }

  .nav__dropdown-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 10px 0;
    border-left: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
  }

  .nav__dropdown-link:hover,
  .nav__dropdown-link:active {
    color: var(--color-accent-blue);
    background: none;
    padding-left: 8px;
  }
}

/* ========================================
   記事モーダル
   ======================================== */
.article-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
}

.article-modal--open {
  display: block;
}

/* オーバーレイ */
.article-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  animation: modalOverlayIn 0.3s ease forwards;
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* パネル */
.article-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw);
  max-height: 88vh;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPanelIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalPanelIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 24px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* 閉じるボタン */
.article-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: #111;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.article-modal__close:hover {
  background: #c0392b;
}

/* スクロール領域 */
.article-modal__inner {
  overflow-y: auto;
  padding: 52px 48px 40px;
  flex: 1;
}

.article-modal__date {
  display: block;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.article-modal__title {
  font-family: var(--font-bold);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #111;
}

/* 記事本文 */
.article-modal__body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.article-modal__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.article-modal__body p {
  margin-bottom: 1.2em;
}

.article-modal__body br + br {
  display: none;
}

/* フッター */
.article-modal__footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.article-modal__link {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.article-modal__link:hover {
  color: #111;
}

/* モバイル */
@media (max-width: 599px) {
  .article-modal__inner {
    padding: 48px 24px 32px;
  }
}
