@media only screen and (max-width: 767px) {

  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }

    header {
    position: relative; /* relativeにして、右上に絶対配置 */
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    background-color: #fff;

    img {
      padding: 0px 20px 0px 0px;
      margin-left: 5px;
      width: 100px;
    }

    .header-menu {
      width: 100%;
      background-color: #fff;
      margin-top: 10px;
      height: 54px;
      border-bottom: 1px solid #e2e2e2;

      nav {
        height: 100%;
        width: 100%;
      }
    }

    .header-menu-outer {
      height: 100%;
    }

    .header-menu-inner {
      margin: 0 auto;
      height: 100%;
      width: 100%;

      ul {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
      }

      li {
        position: relative;
        display: block;
        height: 100%;
        width: 100px;
      }

      li::before {
        content: "";
        position: absolute;
        top: 18px;
        left: 0px;
        height: 20px;
        width: 1px;
        background-color: #e2e2e2;
      }
    }

    .header-menu-item {
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      height: 100%;
      width: 100%;
      padding-top: 15px;
      text-decoration: none; /* リンクの下線を削除 */

      img {
        padding: 0px 10px 0px 0px;
        max-width: 30px;
        height: 50%;
      }

      span {
        display: block;
        font-size: 7px;
        line-height: 1;
        letter-spacing: .05em;
        font-weight: 700;
        color: #333;
        padding-top: 8px;
      }
    }
  }

  .header-menu {
      width: 100%;
      background-color: #fff;
      margin-top: 10px;
      height: 54px;
      border-bottom: 1px solid #e2e2e2;
  }

  .home-icon {
      position: absolute;
      top: 10px;
      right: 5px; /* 右上に配置 */
      text-align: center; /* テキストとアイコンを中央揃え */
      display: flex;
      flex-direction: column; /* 縦に並べる */
      align-items: center; /* 中央揃え */
      text-decoration: none; /* リンクの下線を削除 */
  }

  .home-icon img {
      margin-top: 10px; /* アイコンとHOMEの間に少し余白を追加 */
      width: 30px; /* アイコンのサイズ調整 */
      height: auto;
  }

  .home-icon span {
      font-size: 7px; /* HOMEテキストを小さく */
      color: #333; /* テキストの色 */
      margin-top: 5px; /* アイコンとHOMEの間に少し余白を追加 */
      padding: 0 15px 0 0;
      text-decoration: none; /* テキストの下線をなくす */
  }

    /*タブ*/
  .tab-3 {
      display: flex;
      flex-wrap: wrap;
      width: 100%;
  }

  .tab-3 > label {
      flex: 1 1;
      order: -1;
      min-width: 70px;
      padding: .7em 1em .5em;
      background-color: #fff;
      color: #999;
      font-weight: 600;
      font-size: .9em;
      text-align: center;
      cursor: pointer;
  }

  .tab-3 > label:hover {
      opacity: .8;
  }

  .tab-3 input {
      display: none;
  }

  .tab-3 > div {
      display: none;
      width: 100%;
      padding: 1.5em 1em;
      background-color: #fff;
      height: 150px;
      padding: 5px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .tab-3 label:has(:checked) {
      border-bottom: 4px solid #850000;
      color: #850000;
  }

  .tab-3 label:has(:checked) + div {
      display: block;
  }

  .logo {
    display: flex;
    overflow-x: auto;
    padding: 0px 0px 10px 0px;
    -webkit-overflow-scrolling: touch; /* モバイルでスムーズなスクロールを実現 */

    img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-bottom: 1px solid #eee;
    }
  }

  /* ショップ名スタイル */
  .shop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    height: 30px;
    font-size: 12px; /* モバイル向けにフォントサイズを調整 */
    font-weight: bold;
    color: #545454;
    background-color: #F8EBD5;
    border-radius: 12px;
  }

  /* 商品詳細ページのスタイル */
  .product-details {
    padding: 10px;
  }
  .product-image {
    justify-content: center;
    align-items: center;
    height: 350px;
    margin-bottom: 20px;
  }

  .product-image-PC {
    display: none;
  }

  .product-info {
    margin-bottom: 20px;

    h1 {
      font-size: 14px; /* モバイル向けにフォントサイズを調整 */
      margin: 10px 0 5px 0;
      font-weight: bold;
      color: #333;
    }
  }

  /* 評価のスタイル */
  .product-info p {
    margin: 5px 0;
    font-size: 12px; /* モバイル向けにフォントサイズを調整 */
    color: #555;
    padding: 10px;
  }

  /* 星のスタイル */
  .product-info p1 {
    color: #f39c12; /* 星の色を黄色に */
    font-weight: bold;
    padding: 10px 0px 10px 5px;
  }

  /* 価格のスタイル */
  .product-info p2 {
    color: #e74c3c; /* 価格の色を赤に */
    font-weight: bold;
    font-size: 20px; /* モバイル向けにフォントサイズを調整 */
    padding: 10px 0px 10px 5px;
  }

  /* 通常スタイル */
  .product-info p3 {
    font-size: 12px; /* モバイル向けにフォントサイズを調整 */
    color: #333333;
    padding: 10px 0px 10px 5px;
  }

  /* 強調スタイル */
  .product-info p4 {
    font-size: 16px; /* モバイル向けにフォントサイズを調整 */
    font-weight: bold;
    color: #333333;
    margin: 5px 0;
    padding: 10px 0px 10px 5px;
  }

  .background-color {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 100%;
    background-color: #FFE4E4;
    border-radius: 5px;
  }

  /* 商品説明の配置 */
  .flex {
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .buy-button {
    background-color: #AC0517;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  .buy-button:hover {
    background-color: #FF4500;
  }