﻿   #popup {
      display: none;
      position: fixed;
      z-index: 9999;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.7);
      justify-content: center;
      align-items: center;
    }

    #popup img {
      max-width: 90%;
      max-height: 90%;
      border: 5px solid #fff;
      box-shadow: 0 0 10px #000;
    }

    #popup-close {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 30px;
      color: white;
      cursor: pointer;
    }

    .popup-btn {
      padding: 12px 24px;
      background-color: #0078D7;
      color: white;
      font-size: 16px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }

    .popup-btn:hover {
      background-color: #005bbb;
    }

.size-chart-table {
    display: none;
    margin-top: 15px;
    border-collapse: collapse;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
  }

  .size-chart-table th,
  .size-chart-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
  }

  .size-chart-table th {
    background-color: #0078d4;
    color: white;
  }

  .size-chart-table tr:nth-child(even) td {
    background-color: #e6f4ff;
  }

  .toggle-button {
    background-color: #0078d4;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .toggle-button:hover {
    background-color: #005ea2;
  } 
.toggle-buttons {
    margin: 20px 0;
    text-align: center;
  }
  .toggle-buttons button {
    padding: 8px 16px;
    margin: 0 8px;
    font-size: 14px;
    cursor: pointer;
  }
  .hidden-table {
    display: none;
  }
  .spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-size: 14px;
  }
  .spec-table th,
  .spec-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
  }
  .spec-table th {
    background-color: #000;
  }
  @media (max-width: 768px) {
    .spec-table {
      font-size: 12px;
    }
    .spec-table th,
    .spec-table td {
      padding: 6px;
    }
  }
/* 基本スタイル */
body {
    line-height: 1.6;
    padding-top: 80px; /* 固定ナビゲーションバー分のスペースを確保 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
}

/* ナビゲーションバー */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #2c3e50, #34495e);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-brand i {
    margin-right: 8px;
}

/* デスクトップ用メニュー */
.desktop-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.desktop-menu .nav-link {
    flex-shrink: 0;
    color: #ddd;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    margin: 0 5px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 4px 4px 6px #1f2a34, -4px -4px 6px #3a4c5a;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-menu .nav-link i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.desktop-menu .nav-link:hover, 
.desktop-menu .nav-link:focus,
.desktop-menu .nav-link.active {
    background: linear-gradient(145deg, #1abc9c, #16a085);
    color: #ddd !important;
    transform: translateY(-3px);
    box-shadow: 6px 6px 8px #1f2a34, -6px -6px 8px #3a4c5a;
}

/* オフキャンバスメニュー（モバイル用） */
.offcanvas.text-bg-dark {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.offcanvas-header {
    background-color: #ffffff;
    color: #000000;
}

.offcanvas-header .offcanvas-title {
    font-size: 1.6rem;
}

.offcanvas-body {
    background-color: #ffffff;
    color: #000000;
    font-size: 1.4rem;
}

.offcanvas-body .nav-link {
    color: #000000 !important;
    padding: 15px 20px;
    font-size: 1.4rem;
    transition: background-color 0.3s;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 商品セクション */
.main-content {
    background-color: #fff;
    padding: 40px 20px;
    margin-top: -50px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-image {
    flex: 1 1 45%;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* 商品情報のスタイル */
.product-info {
    flex: 1 1 50%;
    padding: -10px;
}

.product-info h2 {
    font-size: 29px;
    color: #333;
    margin-top: 0;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.product-info h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: #f8d90f;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.product-info h3 {
    font-size: 20px;
    color: #333;
    margin-top: 0;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.product-info h3::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: #f8d90f;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.product-info p {
    font-size: 19px;
    line-height: 1.8;
    color: #555;
}

.sale-price {
    color: #d32f2f;
    font-weight: bold;
    font-size: 18px;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.add-to-cart {
    background-color: #4A90E2;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #357ABD;
}

/* 関連商品 */
.related-products {
    padding: 40px 0;
    text-align: center;
}

.related-products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.related-product-item {
    flex: 1 1 calc(25% - 20px);
    margin: 10px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-product-item:hover {
    transform: translateY(-5px);
}

.related-product-item img {
    max-width: 100%;
    height: auto;
}

.related-product-item p {
    font-size: 17px;
    color: #333;
    padding: 10px;
    margin: 0;
}

/* フッター */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #f8d90f;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
}

/* モバイル向け調整 */
@media (max-width: 768px) {
    .product-details {
        flex-direction: column;
        align-items: center;
    }

    .product-image,
    .product-info {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px;
    }

    .product-info h2 {
        font-size: 24px;
        text-align: center;
    }

    .product-info p {
        font-size: 18px;
    }

    .add-to-cart {
        font-size: 16px;
        padding: 10px 20px;
    }

    .related-product-item {
        flex: 1 1 calc(50% - 20px);
    }
}



/* さらに小さい画面向け */
@media (max-width: 480px) {
    .product-info h2 {
        font-size: 20px;
    }

    .product-info p {
        font-size: 14px;
    }
 .product-info p1 {
        font-size: 14px;
	  color: #0024FF;
    }
    .add-to-cart {
        font-size: 14px;
        padding: 8px 12px;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .related-products-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .related-product-item {
        flex: 1 1 calc(50% - 20px);
    }
    .related-product-item img {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .related-product-item {
        flex: 1 1 100%;
    }
    .related-product-item img {
        width: 90%;
    }
}

 table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        th, td {
            padding: 10px;
            text-align: center;
            font-size: 16px;
            border-bottom: 1px solid #ccc;
        }
        th {
            background-color: #333;
            color: #fff;
            font-weight: 700;
        }

.add-to-cart {
  font-size: 0.875em; /* 文字を小さくする */
  padding: 6px 12px; /* ボタンサイズを適切に調整 */
}

@media (max-width: 768px) {
  #itemno {
    max-width: 100%; /* 親要素の幅に収める */
    width: 100%; /* 横幅を広げすぎないよう調整 */
  }
}



@media screen and (max-width: 480px) {
   .product-info p {
        font-size: 20px; /* スマホ画面ではさらに大きめ */
        line-height: 1.6; /* 行間を適度に調整 */
    }
}
