/* =========================================================
   ベース設定 & カラー変数
   ========================================================= */

:root {
  --mc-main: #93308a;        /* コーポレートパープル */
  --mc-black: #000000;
  --mc-main-light: #f2f2f2;  /* 薄いグレー */
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: hiragino-kaku-gothic-pron, -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", "Segoe UI", "Yu Gothic", "YuGothic",
               "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #222;
  background-color: #f7f7f7;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--mc-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   ヘッダー（PC + SP ナビ）
   ========================================================= */

.site-header {
  background-color: var(--mc-black);
  border-bottom: 1px solid #111;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  min-height: 60px;
}

/* ロゴ */
.site-logo a {
  display: inline-flex;
  align-items: center;
}

.site-logo-img {
  height: 36px;
  width: auto;
}

/* ナビ全体 */
.global-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ハンバーガー（SPのみ表示） */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.nav-toggle-icon span {
  height: 2px;
  border-radius: 999px;
  background-color: #fff;
}

.nav-toggle-text {
  letter-spacing: 0.08em;
}

/* PC ナビ */

.global-nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;        /* サブメニューを親の真下に出すため */
}

.nav-item > a,
.nav-item > .nav-parent-link {
  display: inline-block;
  padding: 6px 0;
  color: #fff;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
}

.nav-item > a:hover,
.nav-item > .nav-parent-link:hover {
  border-bottom-color: var(--mc-main);
  text-decoration: none;
}

/* サブメニュー（PC） */

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background-color: var(--mc-main);
  color: #fff;
  display: none;
  z-index: 100;
}

.nav-item.has-sub:hover > .sub-menu {
  display: block;
}

.sub-menu li a {
  display: block;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
}

.sub-menu li a:hover {
  background-color: rgba(0,0,0,0.15);
  text-decoration: none;
}

/* PC ではチェックボックスと矢印ラベルは隠す（□ を消す） */
.nav-sub-toggle {
  display: none;
}

.nav-sub-arrow {
  display: none;
}

/* =========================================================
   スマホ用ナビ（ハンバーガー＋アコーディオン）
   ========================================================= */

@media (max-width: 768px) {

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 0 10px;
    padding-right: 60px; /* ハンバーガーぶんの余白確保 */
  }

  .global-nav {
    width: 100%;
    justify-content: flex-start;
  }

  /* ハンバーガーを右上固定 */
  .nav-toggle-label {
    display: inline-flex;
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 200;
  }

  /* メニュー本体は一旦非表示 */
  .global-nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
    gap: 0;
  }

  /* チェックONで全メニュー表示 */
  .nav-toggle:checked ~ .global-nav .global-nav-list {
    display: flex;
  }

  /* 子メニューを持つ項目：親リンクを紫バーにする */
  .nav-item.has-sub > .nav-parent-link {
    display: block;
    width: 100%;
    padding: 10px 40px 10px 12px;
    background-color: var(--mc-main);
    color: #fff;
    position: relative;
    font-size: 0.9rem;
  }

  /* 子メニューを持たない項目（特殊ねじ・お問い合わせ）はそのまま紫バー */
  .nav-item:not(.has-sub) > a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background-color: var(--mc-main);
    color: #fff;
    border-bottom: 1px solid var(--mc-black);
    font-size: 0.9rem;
  }

  .nav-item:not(.has-sub) > a:hover {
    text-decoration: none;
    background-color: #a84898;
  }

  /* ▼ 矢印ボタン（label.nav-sub-arrow） */
  .nav-sub-arrow {
    display: block;
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    width: 28px;
    cursor: pointer;
  }

  .nav-sub-arrow::after {
    content: "▼";
    display: block;
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
    line-height: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* チェックボックスは視覚的に非表示（□を出さない） */
  .nav-sub-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  /* 子メニュー（SP）初期は閉じる */
  .nav-item.has-sub > .sub-menu {
    position: static;
    display: none;
    padding: 0;
    background-color: #f2f2f2;
  }

  /* チェックONで該当の子メニューだけ開く */
  .nav-sub-toggle:checked + .nav-sub-arrow + .sub-menu {
    display: block;
  }

  /* 開閉時の矢印の向き変更 */
  .nav-sub-toggle:checked + .nav-sub-arrow::after {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .sub-menu li a {
    padding: 6px 18px;
    font-size: 0.9rem;
    color: #333;
    background-color: #f2f2f2;
  }

  .sub-menu li a:hover {
    background-color: #e6e6e6;
    text-decoration: none;
  }
}

/* =========================================================
   パンくず
   ========================================================= */

.breadcrumb-wrap {
  background-color: #f0f0f0;
  font-size: 0.8rem;
}

.breadcrumb {
  padding: 8px 0;
}

.breadcrumb ol {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li::after {
  content: ">";
  margin-left: 4px;
  color: #999;
}

.breadcrumb li:last-child::after {
  content: "";
}

/* =========================================================
   製品ページ：共通レイアウト
   ========================================================= */

.page-product .product-main {
  padding: 24px 0 40px;
}

.product-section {
  margin-top: 40px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  border-left: 4px solid var(--mc-main);
  padding-left: 8px;
}

/* =========================================================
   製品ヒーロー（画像 + 基本情報）
   ========================================================= */

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 20px;
  padding: 24px 20px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.product-hero-media {
  text-align: center;
  margin: 0;
  padding: 0;
}

.product-main-image {
  width: 300px;      /* 固定したい幅 */
  height: 300px;     /* 固定したい高さ */
  object-fit: contain; /* 画像が潰れないように調整 */
  margin: 0 auto;      /* 中央寄せ */
}

.product-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.95rem;
}

.product-category {
  font-size: 0.85rem;
  color: var(--mc-main);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.product-title {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

/* 概要リスト */

.product-summary-list {
  margin: 0 0 20px;
  padding: 12px;
  border-radius: 6px;
  background-color: var(--mc-main-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
}

.product-summary-list div {
  display: flex;
  gap: 8px;
}

.product-summary-list dt {
  min-width: 70px;
  font-weight: 600;
  font-size: 0.85rem;
}

.product-summary-list dd {
  margin: 0;
  font-size: 0.9rem;
}

/* SP 調整（ヒーロー） */
@media (max-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px 12px !important;
  }

  .product-hero-media {
    margin: 0 auto !important;
    text-align: center !important;
  }
}

/* =========================================================
   CTAボタン（2列 → SPで1列）
   ========================================================= */

/*
  <div class="product-cta">
    <a href="...">サイズの読み方</a>
    <a href="...">車種別適合表</a>
    <a href="...">ホイールロックについて</a>
    <a href="...">楽天で購入</a> ← 無い商品は出力しない
  </div>
*/

.product-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 260px));
  gap: 16px 24px;
  justify-content: center;
  margin-top: 32px;
}

.product-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  min-height: 48px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: var(--mc-main);
  color: #fff;
  border: 2px solid var(--mc-main);
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(147,48,138,0.18);
  transition: 0.25s ease;
  text-align: center;
}

/* 三角 ▶ アイコン */
.product-cta a::after {
  content: "▶";
  margin-left: 12px;
  font-size: 1rem;
  transform: translateY(1px);
}

/* Hover */
.product-cta a:hover {
  background-color: #fff;
  color: var(--mc-main);
  border-color: var(--mc-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(147,48,138,0.26);
}

/* SP では1列＆ボタン幅そろえ */
@media (max-width: 768px) {
  .product-cta {
    grid-template-columns: 1fr !important;
    justify-content: center;
  }

  .product-cta a {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* =========================================================
   仕様テーブル
   ========================================================= */

.product-specs-table-wrap {
  overflow-x: auto;
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  min-width: 320px;
}

.product-specs-table th,
.product-specs-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.product-specs-table th {
  background-color: var(--mc-main-light);
  white-space: nowrap;
  width: 30%;
}

/* =========================================================
   注意事項ボックス（もし使う場合用）
   ========================================================= */

.product-notice-box {
  background-color: #fff9e6;
  border-radius: 8px;
  border: 1px solid #f4dea5;
  padding: 16px 16px 12px;
}

.product-notice-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.9rem;
}

.product-notice-list li + li {
  margin-top: 4px;
}

.product-notice-link {
  margin: 0;
  font-size: 0.9rem;
}

.product-notice-link a {
  font-weight: 600;
}

/* =========================================================
   関連カード・戻るリンク
   ========================================================= */

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e3e3e3;
}

.product-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.product-card-text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #555;
}

.product-card-link {
  font-size: 0.9rem;
}

.product-back-link {
  margin-top: 20px;
  font-size: 0.9rem;
}

.product-back-link a {
  display: inline-block;
}

/* =========================================================
   フッター（黒背景＋ブランドカラーアクセント）
   ========================================================= */

.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 40px 0 24px;
  font-size: 0.85rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   上段：まず会社情報を1列表示（その下にリンクブロック）
   --------------------------------------------------------- */

.footer-top {
  margin-bottom: 28px;   /* 全体の下余白だけ確保 */
}

/* 会社情報ブロック（常に1カラム） */
.footer-company {
  margin-bottom: 24px;   /* この下にリンクブロックが来る */
  padding-bottom: 16px;  /* 線との間に少し余白を追加 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* 会社名にアクセントライン */
.footer-company-name {
  position: relative;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.footer-company-name::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.6em;
  background-color: var(--mc-main);
}

/* 住所・連絡先など */
.footer-company-address,
.footer-company-tel,
.footer-company-fax,
.footer-company-mail,
.footer-note {
  margin: 0 0 6px;
  line-height: 1.7;
}

/* TEL / FAX / E-MAIL 共通ベース（▶用の余白） */
.footer-company-tel,
.footer-company-fax,
.footer-company-mail {
  position: relative;
  padding-left: 14px;          /* ▶ のぶん左に余白 */
}

/* PCではTEL・FAXを横並びにする */
.footer-company-tel,
.footer-company-fax {
  display: inline-block;
}

.footer-company-tel {
  margin-right: 1.5em;         /* TEL と FAX の間のスペース（PC用） */
}

/* ▶ アイコン（PCのデフォルト位置） */
.footer-company-tel::before,
.footer-company-fax::before,
.footer-company-mail::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0.55em;                 /* PCで見た目が合う高さ */
  font-size: 0.6rem;
  color: var(--mc-main);
}

/* E-MAIL 内リンク装飾 */
.footer-company-mail a {
  text-decoration: underline;
}

/* E-MAIL 内のテキストとリンクをインライン扱い */
.footer-company-mail span,
.footer-company-mail a {
  display: inline;
  margin-left: 0;
}

/* ---------------------------------------------------------
   リンクブロック：
   PC では3カラム、SPでは1カラム
   --------------------------------------------------------- */
.footer-links {
  margin-top: 16px;   /* 線とリンクテキストの間に余白を追加 */
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;

  /* ★PC：3列グリッドに変更 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 6px;

}

/* 各リンク行（▶付き） */
.footer-links li {
  position: relative;
  padding-left: 14px;
}

.footer-links li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); 
  font-size: 0.6rem;
  color: var(--mc-main);
}

.footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-links a:hover {
  transform: translateX(2px);
}

/* ---------------------------------------------------------
   下段：ロゴ＋コピーライト
   --------------------------------------------------------- */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  margin-bottom: 32px;
  text-align: center;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   スマホ調整（リンクは1列表示）
   --------------------------------------------------------- */
@media (max-width: 768px) {

  /* 会社名のライン位置調整 */
  .footer-company-name::before {
    left: 0;                /* スマホでは左端からスタート */
  }

  .footer-company-name {
    padding-left: 10px;
  }



  /* TEL・FAX を縦並びに（余白は最小限） */
  .footer-company-tel,
  .footer-company-fax {
    display: block;
    margin: 0;            /* ← 上下左右すべて margin をゼロに */
    line-height: 1.4;     /* ← 行間を詰める（必要なら 1.3 に） */
  }

  /* E-MAIL 行：通常の段落表示（途中で自動改行） */
  .footer-company-mail {
    display: block;
    padding-left: 14px;
    position: relative;
  }

  /* ▶ アイコンは中央寄せのまま */
  .footer-company-mail::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0.2em;          /* ← 行頭寄りに固定 */
    transform: none;     /* ← 中央揃え解除 */
    font-size: 0.6rem;
    color: var(--mc-main);
  }


  /* カスタマーサポート／メディア関係／メールアドレスはインライン */
  .footer-company-mail a,
  .footer-company-mail span {
    display: inline;
  }

  /* SP ではリンクを1列に戻す */
  .footer-links ul {
    grid-template-columns: 1fr;
  }

  .footer-logo img {
    height: 30px;
  }
}