/* style.css */

/* 全体の基本設定 */
body {
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #eee;
    line-height: 1.6;
  }

 /* --------------------------
   ヘッダー全体の基本スタイル
--------------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* モバイル用に折り返し対応 */
  padding: 0.8rem 1rem;
  background-color: #111;
  color: #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  font-size: 1rem;
}

/* --------------------------
   サイトタイトル（左側）
--------------------------- */
header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  white-space: nowrap;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------
   ナビゲーションメニュー
--------------------------- */
#nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

#nav-menu ul li a {
  color: #eee;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 6px;
}

#nav-menu ul li a:hover,
#nav-menu ul li a:focus,
#nav-menu ul li a.active {
  background-color: #1e90ff;
  color: white;
}

/* --------------------------
   カートボタン
--------------------------- */
#cart-toggle {
  background: linear-gradient(to right, #ff7e00, #ff3d00);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  font-size: 1rem;
  white-space: nowrap;
  max-width: 200px;
}

#cart-toggle:hover {
  background: linear-gradient(to right, #ff9900, #ff5722);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.5);
}

/* --------------------------
   モバイル向け
--------------------------- */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  #cart-toggle {
    align-self: flex-end;
    margin-top: 0.5rem;
    width: 100%;
  }

  #nav-menu ul {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
}

/* --------------------------
   PC向け（768px以上）
--------------------------- */
@media (min-width: 768px) {
  #menu-toggle {
    display: none;
  }

  #nav-menu {
    display: block !important;
    width: auto;
    margin-top: 0;
  }

  #nav-menu ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 1rem;
  }

  header {
    flex-direction: row;
    align-items: center;
  }
}

  /* セクション共通 */
  section {
    padding: 4rem 2rem;
    border-bottom: 1px solid #eee;
    max-width: 960px;
    margin: 0 auto;
  }
  
  section h2 {
    position: relative;
    font-size: 2rem;
    font-weight: 800;
    color: #e03e2f;
    margin-bottom: 1rem;
  }
  
  section h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 10px;
    height: 40px;
    background-color: #f68b1e;
    border-radius: 2px;
  }
  
  /* ヒーロー */
  #hero {
    background: linear-gradient(
        rgba(0, 0, 0, 0.6), 
        rgba(0, 0, 0, 0.6)
      ),
      url('https://source.unsplash.com/1600x600/?racecar') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  }
  
  #hero h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #e03e2f, #f68b1e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  #hero p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ddd;
  }
  
  /* フッター */
  footer {
    background-color: #111;
    color: #666;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  /* ボタン基本スタイル */
  .btn-primary {
  background: linear-gradient(to right, #ff7e00, #ff3d00);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(to right, #ff9900, #ff5722);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.5);
  outline: none;
}

#cart-toggle {
  /* ヘッダー内なら少しコンパクトに */
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}
  
  /* レスポンシブ対応 */
  @media screen and (max-width: 768px) {
    /* ヘッダー内 */
    #menu-toggle {
      display: block;
      position: absolute;
      top: 1rem;
      right: 1rem;
      z-index: 200;
    }
  
    nav {
      display: none;
      background-color: #111;
      position: absolute;
      top: 3.5rem;
      right: 0;
      width: 200px;
      border-radius: 4px;
    }
  
    nav.open {
      display: block;
    }
  
    nav ul {
      flex-direction: column;
      margin: 0;
      padding: 0.5rem 0;
    }
  
    nav ul li {
      list-style: none;
      border-bottom: 1px solid #333;
    }
  
    nav ul li a {
      display: block;
      padding: 0.75rem 1rem;
      color: #eee;
      text-decoration: none;
      position: relative;
      border-radius: 4px;
      transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
    }
  
    nav ul li a:hover,
    nav ul li a:focus {
      background: linear-gradient(90deg, #e03e2f, #f68b1e);
      color: #fff;
      box-shadow: 0 0 8px #f68b1e;
      text-shadow: 0 0 4px #e03e2f;
    }
  
    /* セクションのパディング縮小 */
    section {
      padding: 2rem 1rem;
    }
  
    /* ヒーローの文字サイズ・パディング調整 */
    #hero {
      padding: 3rem 1rem;
    }
  
    #hero h2 {
      font-size: 1.8rem;
    }
  
    #hero p {
      font-size: 1rem;
    }
  }
  /* 商品リストのレイアウト */
.product-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
  }
  
  .product-card {
    background-color: #111;
    border: 2px solid #e03e2f;
    border-radius: 10px;
    padding: 1rem;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(224,62,47,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(246,139,30,0.8);
  }
  
  .product-card img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    height: 180px;
    margin-bottom: 1rem;
  }
  
  .product-card h3 {
    color: #e03e2f;
    font-weight: 800;
    margin-bottom: 0.5rem;
  }
  
  .product-card .price {
    color: #f68b1e;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  /* ボタンは既存の .btn-primary を使用 */
  
  /* レスポンシブ調整 */
  @media screen and (max-width: 768px) {
    .product-list {
      flex-direction: column;
      align-items: center;
    }
  
    .product-card {
      width: 90%;
      max-width: 320px;
    }
  }
  .btn-ripple {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.8em 2em;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #e03e2f, #f68b1e);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(224,62,47,0.6);
}

.btn-ripple:hover,
.btn-ripple:focus {
  box-shadow: 0 6px 20px rgba(246,139,30,0.9);
  transform: scale(1.05);
  outline: none;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-effect 600ms linear;
  pointer-events: none;
  z-index: 10;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.sponsor-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem 0;
  }
  
  .sponsor-logos img {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  
  .sponsor-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
  }
  .plans-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.plan-card {
  background-color: #111;
  border: 2px solid #e03e2f;
  border-radius: 10px;
  padding: 1rem;
  width: 300px;
  box-shadow: 0 4px 12px rgba(224,62,47,0.5);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(246,139,30,0.8);
}

.plan-card img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  height: 180px;
  margin-bottom: 1rem;
}

.plan-card h3 {
  color: #e03e2f;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-card .price {
  color: #f68b1e;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.plan-card ul {
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 1.2rem;
  color: #ddd;
}

.plan-card ul li {
  margin-bottom: 0.5rem;
}

.special-offers {
  margin-top: 3rem;
  background-color: #111;
  border: 2px solid #f68b1e;
  border-radius: 10px;
  padding: 1rem 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #f68b1e;
}

.special-offers h3 {
  font-weight: 900;
  margin-bottom: 1rem;
}

.special-offers ul {
  list-style: disc;
  padding-left: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.special-offers ul li {
  margin-bottom: 0.6rem;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .plans-container {
    flex-direction: column;
    align-items: center;
  }

  .plan-card {
    width: 90%;
    max-width: 320px;
  }
}
.plans-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
  }
  
  .plan-card {
    background-color: #111;
    border: 2px solid #f68b1e;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    width: 300px;
    box-shadow: 0 4px 12px rgba(246,139,30,0.4);
    color: #eee;
  }
  
  .plan-card h3 {
    color: #f68b1e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }
  
  .plan-card .price {
    color: #e03e2f;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .plan-card ul {
    padding-left: 1.2rem;
    margin: 0;
  }
  
  .special-offers {
    margin-top: 3rem;
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-left: 5px solid #e03e2f;
    border-radius: 10px;
  }
  
  .special-offers h3 {
    color: #f68b1e;
    margin-top: 1rem;
  }
  
  .special-offers ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
  }
  /* 元の .btn-primary は青系なので別に残しておきつつ */
/* 商品追加ボタンだけにオレンジグラデーションを指定 */
.add-to-cart {
  background: linear-gradient(45deg, #ff7e00, #ffae00);
  color: white;
  transition: background 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.5);
}

.add-to-cart:hover {
  background: linear-gradient(45deg, #ffae00, #ff7e00);
  box-shadow: 0 6px 12px rgba(255, 165, 0, 0.7);
}

.cart-button {
  background: linear-gradient(to right, #ff7e00, #ff3d00);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(255, 87, 34, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 87, 34, 0.6);
}
/* ---- 既存の全スタイルのあとに追加 ---- */

/* モバイル対応 */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  #cart-toggle {
    align-self: flex-end;
    margin-top: 0.5rem;
    width: 100%;
  }

  #nav-menu ul {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
}

/* ✅ ここに追加 */
@media (min-width: 768px) {
  #menu-toggle {
    display: none;
  }

  #nav-menu {
    display: block !important;
    width: auto;
    margin-top: 0;
  }

  #nav-menu ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 1rem;
  }

  header {
    flex-direction: row;
    align-items: center;
  }
}

