/**
 * XENNO カスタムCSS
 * プレミアムバドミントンラケットブランド テーマ
 * 感覚を、武装せよ。
 */

/* ==========================================================================
   CSS変数定義
   ========================================================================== */

:root {
  /* ブランドカラー */
  --color-primary:      #000000;  /* ピュア・ブラック（メイン背景） */
  --color-secondary:    #0A0A0A;  /* ディープ・ブラック（セクション背景） */
  --color-accent:       #EF4444;  /* ブレイズレッド（メインアクセント） */
  --color-accent-sub:   #22C55E;  /* ネオングリーン（サブアクセント） */

  /* テキストカラー */
  --color-text:         #FFFFFF;  /* ホワイト */
  --color-text-secondary: #CCCCCC; /* ライトグレー */
  --color-text-muted:   #888888;  /* ミューテッドグレー */

  /* ボーダー */
  --color-border:       rgba(255,255,255,0.1);   /* 半透明ホワイト */
  --color-border-accent: rgba(239,68,68,0.3);    /* アクセント半透明 */

  /* 背景グラデーション */
  --bg-gradient-hero:   radial-gradient(ellipse at center, rgba(239,68,68,0.05) 0%, rgba(0,0,0,1) 70%);
  --bg-gradient-cta:    radial-gradient(ellipse at center, rgba(34,197,94,0.05) 0%, rgba(0,0,0,1) 70%);

  /* フォント */
  --font-main:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:          'SF Mono', 'Monaco', 'Consolas', monospace;

  /* レイアウト */
  --section-padding:    80px 0;
  --border-radius:      8px;
  --transition:         0.3s ease;
  --container-max:      1400px;
}

/* ==========================================================================
   基本スタイル
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* スクロールバーのスタイリング（WebKit） */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #DC2626;
}

/* ==========================================================================
   ヘッダー・ナビゲーション
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--color-border);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  padding: 16px 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text) !important;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-text);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.navbar-nav {
  gap: 40px;
}

.nav-link {
  color: var(--color-text-secondary) !important;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* モバイルメニュー */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   メインコンテンツエリア
   ========================================================================== */

.main-content {
  padding-top: 80px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-bg-secondary {
  background: var(--color-secondary);
}

.section-bg-gradient-hero {
  background: var(--bg-gradient-hero);
}

.section-bg-gradient-cta {
  background: var(--bg-gradient-cta);
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-gradient-hero);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-tagline {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 20px;
  opacity: 0.8;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 600;
  line-height: 0.9;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* CTAボタン */
.btn-xenno {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 0.5px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.btn-xenno::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(239, 68, 68, 0.1);
  transition: var(--transition);
}

.btn-xenno:hover {
  color: var(--color-accent);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
  text-decoration: none;
}

.btn-xenno:hover::before {
  left: 0;
}

.btn-xenno::after {
  content: '→';
  margin-left: 8px;
}

.btn-xenno-green {
  border-color: var(--color-accent-sub);
  color: var(--color-primary);
  background: var(--color-accent-sub);
}

.btn-xenno-green:hover {
  color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

/* フローティングエレメント */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ==========================================================================
   セクション見出し
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   製品カード
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--color-secondary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.product-image-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-body {
  padding: 32px 40px 40px;
}

.product-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.product-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.15);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(239,68,68,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  color: var(--color-text);
}

.product-tagline {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.product-description {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

.product-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.product-link:hover {
  color: var(--color-accent-sub);
}

.product-link::after {
  content: '→';
}

/* ==========================================================================
   ブランドストーリーセクション
   ========================================================================== */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.story-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  line-height: 1.2;
}

.story-text p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-highlight {
  color: var(--color-accent);
  font-weight: 500;
}

.story-visual {
  background: var(--color-primary);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  border: 0.5px solid var(--color-border);
}

.story-visual h3 {
  color: var(--color-accent-sub);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  display: block;
}

.stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   開発の背景・想いセクション（全幅パララックス）
   ========================================================================== */

.development-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: 120px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.development-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.development-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
}

.development-content p {
  color: #fff;
  line-height: 1.8;
  margin-bottom: 16px;
}

.development-title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.development-subtitle {
  color: #fff;
  font-weight: 900;
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 40px;
}

.development-emphasis {
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  margin: 24px 0;
}

@media (max-width: 767px) {
  .development-section {
    background-attachment: scroll;
    padding: 80px 0;
    min-height: 0;
  }
}

/* ==========================================================================
   XENNOのこだわりセクション
   ========================================================================== */

.philosophy-block {
  margin-bottom: 80px;
}

.philosophy-block:last-child {
  margin-bottom: 0;
}

.philosophy-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.philosophy-image {
  position: relative;
}

@media (max-width: 991px) {
  .philosophy-content {
    padding: 0 !important;
    margin-top: 30px;
  }

  .philosophy-block {
    margin-bottom: 60px;
  }

  .philosophy-image {
    height: 300px;
  }

  .image-placeholder {
    height: 300px !important;
  }
}

@media (max-width: 767px) {
  .philosophy-block {
    margin-bottom: 50px;
  }

  .philosophy-image {
    height: 250px;
  }

  .image-placeholder {
    height: 250px !important;
  }

  .philosophy-content {
    margin-top: 25px;
  }
}

/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer {
  background: var(--color-secondary);
  border-top: 0.5px solid var(--color-border);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-main {
  border-bottom: 1px solid var(--color-border);
}

.footer-logo img {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-tagline {
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

@media (max-width: 767px) {
  .footer-logo img {
    width: 140px;
  }

  .footer-tagline p {
    font-size: 14px;
  }
}

/* ==========================================================================
   ユーティリティクラス
   ========================================================================== */

.text-accent { color: var(--color-accent) !important; }
.text-accent-sub { color: var(--color-accent-sub) !important; }
.text-muted { color: var(--color-text-muted) !important; }

.bg-gradient-hero { background: var(--bg-gradient-hero) !important; }
.bg-gradient-cta { background: var(--bg-gradient-cta) !important; }

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

/* デスクトップ（1200px以上）*/
@media (min-width: 1200px) {
  .product-image-wrap {
    height: 300px;
  }
}

/* タブレット（768px〜1199px） */
@media (max-width: 1199.98px) and (min-width: 768px) {
  .product-image-wrap {
    height: 250px;
  }

  .product-body {
    padding: 24px 28px 32px;
  }
}

/* タブレット以下の共通調整（991px以下） */
@media (max-width: 991.98px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .navbar-nav {
    gap: 0;
    padding: 20px 0;
  }

  .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
  .navbar-brand img {
    width: 140px !important;
  }

  .navbar {
    padding: 0 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 48px;
  }

  .section {
    padding: 60px 0;
  }

  .product-image-wrap {
    height: 200px;
  }

  .product-body {
    padding: 20px 20px 28px;
  }

  .product-logo {
    height: 32px;
  }

  .story-visual {
    padding: 30px 20px;
  }

  .footer-content {
    padding: 0 20px;
  }
}

/* 極小画面（375px以下） */
@media (max-width: 375px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .product-image-wrap {
    height: 180px;
  }
}
