/* ============================================================
   OSMSPORTS INC. — 共通スタイルシート
   common.css
   
   使い方：各製品ページの <head> に以下を追加
   <link rel="stylesheet" href="../common.css">
   
   全ページ共通のデザインベース。
   ページ固有スタイルは各HTMLの <style> に追記してください。
============================================================ */


/* ── 1. 基本リセット & 共通変数 ── */
:root {
  --color-primary:  #0d1b2a;   /* NAISHベース濃紺（ほぼ全ページ共通） */
  --color-accent:   #d90429;   /* NAISHブランドレッド */
  --color-bg-light: #f8f9fa;   /* 薄いグレー背景 */
  --color-text:     #2b2d42;   /* メイン文字色 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
}
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--color-text);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ── 2. ヘッダーナビゲーション ── */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}
.header-logo {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.header-logo span {
  color: var(--color-accent);
}
.header-nav ul {
  display: flex;
  gap: 30px;
}
.header-nav a {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.header-nav a:hover {
  color: var(--color-accent);
}


/* ── 3. ハンバーガーメニュー（スマホ用） ── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  position: relative;
  width: 30px;
  height: 24px;
}
.menu-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  left: 0;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }

.menu-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }


/* ── 4. ヒーロースライドショー（共通構造） ── */
.ex-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--color-primary);
}
.ex-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.ex-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: ex-fade-slideshow 20s infinite ease-in-out;
}
@keyframes ex-fade-slideshow {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}

.ex-hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  padding: 60px 5%;
  text-align: left;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
}
.ex-hero-content h1 {
  font-size: 4.5rem;
  letter-spacing: 0.05em;
  font-weight: 900;
  margin-bottom: 5px;
  line-height: 1.1;
}
.ex-hero-content h1 span {
  color: var(--color-accent);
}
.ex-hero-content p {
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  font-weight: 300;
  margin: 0;
}


/* ── 5. レイアウトコンテナ ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 24px;
  position: relative;
  padding-left: 15px;
}
#features .section-title,
#technology .section-title {
  margin-bottom: 16px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 100%;
  background-color: var(--color-accent);
}


/* ── 6. Features セクション ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.features-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.features-text p {
  margin-bottom: 20px;
  color: #4a4a4a;
}

/* パフォーマンスチャート */
.performance-chart {
  margin-top: 35px;
  background: var(--color-bg-light);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}
.chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.chart-row:last-child { margin-bottom: 0; }
.chart-label {
  width: 160px;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-primary);
}
.chart-bar {
  flex: 1;
  height: 10px;
  background: #e5e5e5;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.chart-bar span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  border-radius: 5px;
}

/* バッジ（KEY FEATURE） */
.badge-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.badge {
  background-color: var(--color-bg-light);
  border-left: 5px solid var(--color-accent);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.badge strong {
  display: block;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}


/* ── 7. Technology セクション ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.tech-card {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eaeaea;
}
.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.tech-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tech-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
  letter-spacing: 0.02em;
}
.tech-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
}


/* ── 8. Lineup & Prices セクション ── */
.price-container-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
.price-block-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid var(--color-accent);
}
.price-table-wrapper {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}
.spec-table {
  display: inline-table;
  border-collapse: collapse;
  text-align: center;
}
.spec-table th {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
}
.spec-table td {
  padding: 10px 18px;
  border-bottom: 1px solid #eaeaea;
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: center;
}
.spec-table tfoot td {
  white-space: normal;
}
.spec-table tr:nth-child(even) {
  background-color: var(--color-bg-light);
}
.price-cell {
  font-weight: 700;
  color: var(--color-primary);
}
.table-note {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.7;
  margin-top: 10px;
  padding-left: 2px;
}

/* カタログ画像ゾーン */
.catalog-image-zone {
  margin-top: 60px;
  text-align: left;
}
.catalog-expand-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.catalog-gallery-item {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.catalog-gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.catalog-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* オプション情報ボックス */
.included-info {
  background: var(--color-bg-light);
  padding: 25px;
  border-radius: 8px;
  border: 1px dashed #ccc;
}
.included-info h5 {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.included-info li {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 6px;
}
.included-info .note {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: bold;
  line-height: 1.4;
}


/* ── 9. Gallery & Lightbox ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: var(--color-bg-light);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 17, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  border: 1px solid #ffffff;
  padding: 8px 18px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-content {
  width: 95vw;
  height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


/* ── 10. フッター ── */
.site-footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 60px 20px 30px;
  position: relative;
  z-index: 5;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}
.footer-info h5 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}
.footer-info p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.7;
}
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}
.back-home-wrapper {
  margin-bottom: 20px;
}
.footer-back-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-back-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-right: 4px;
}
.footer-back-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
.footer-back-link:hover .arrow {
  transform: translateX(-4px);
}


/* ── 11. レスポンシブ（タブレット） ── */
/* TECHNOLOGY / GALLERY の 5% 横 padding をコンテナ幅未満で揃える */
@media (max-width: 1199px) {
  #technology, #gallery {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .price-container-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  /* TECHNOLOGY / GALLERY の 5% 横 padding を他セクションと揃える */
  #technology, #gallery {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}


/* ── 12. レスポンシブ（スマホ） ── */
@media (max-width: 768px) {
  /* ヘッダーをfixedに切り替え */
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background-color: #0d1b2a !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
    z-index: 100 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  body {
    padding-top: 60px !important;
  }

  /* アンカーリンクがヘッダーに隠れないようにオフセット */
  section[id], div[id] {
    scroll-margin-top: 70px;
  }

  /* ハンバーガー表示 */
  .menu-toggle {
    display: block !important;
  }

  /* ドロワーメニュー */
  .header-nav {
    position: fixed !important;
    top: 0 !important;
    right: -55% !important;
    width: 55% !important;
    min-width: 280px !important;
    height: 100vh !important;
    background-color: #0d1b2a !important;
    padding: 80px 0 40px !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 90 !important;
    display: block !important;
    overflow-y: auto !important;
  }
  .header-nav.active {
    right: 0 !important;
  }
  .header-nav ul {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }
  .header-nav ul li {
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }
  .header-nav a {
    font-size: 1.1rem !important;
    display: block !important;
    padding: 14px 24px !important;
  }

  /* ヒーロー */
  .ex-hero {
    height: 65vh;
    min-height: auto;
  }
  .ex-hero-content {
    padding: 30px 20px;
  }
  .ex-hero-content h1 {
    font-size: 2.8rem;
  }
  .ex-hero-content p {
    font-size: 1rem;
  }

  /* コンテナ */
  .container {
    padding: 30px 20px;
  }

  /* チャート */
  .chart-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .chart-label {
    width: 100%;
  }
  .chart-bar {
    width: 100%;
  }

  /* テック */
  #technology, #gallery {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tech-card {
    padding: 25px 20px;
  }

  /* ギャラリー */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* フッター */
  .footer-content {
    flex-direction: column;
    gap: 25px;
    padding-bottom: 30px;
  }
}


/* ── 13. PHOTO GALLERY ── */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pg-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}
.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pg-item:hover img {
  transform: scale(1.05);
}
.pg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pg-item:hover .pg-overlay {
  opacity: 1;
}
.pg-overlay span {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.85);
  padding: 7px 16px;
  border-radius: 3px;
}

/* ライトボックス */
.pg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.pg-lightbox.is-open {
  display: flex;
}
.pg-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.pg-lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.pg-lightbox-close:hover {
  opacity: 1;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .pg-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
