.product {
  margin-bottom: 40px;
}

ul.pankuzu_lists.inline.container {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* 文字サイズと色を追加 */
ul.pankuzu_lists.inline.container li a {
  font-size: 14px;
}

.product_area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 40px;
}

.product_area_left {
  width: 100%;
  box-sizing: border-box;
  padding-left: 10.75%;
  padding-right: 10.75%;
  padding-bottom: 18px;
}

.size-about-button {
  position: relative;
  top: 10px;
  display: inline-block;
  font-size: 16px;
  margin-bottom: 10px;
}

.product_tabs {
  border-bottom: 1px solid #333;
}

.product_tab {
  display: inline-block;
  background-color: #f6f6f6;
  text-align: center;
  padding: 10px 0;
}

.product_tab.active {
  background-color: #333;
}

.product_tab a {
  display: block;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.product_tab.active a,
.product_tab.active a:hover {
  color: #fff;
  text-decoration: none;
}

.product_panel {
  display: none;
}

.product_panel.active {
  display: block;
}

.product_panel_image,
.product_panel_review {
  text-align: center;
}

.product_belong_lists {
  margin: 40px 0 20px;
  font-size: 12px;
}

.product_belong_list {
  padding: 0 2px;
}

.product_belong_list:first-child {
  padding: 0 2px 0 0;
}

.product_name {
  margin: 40px 0 0;
  font-size: 20px;
  font-weight: normal;
}

.product_model {
  margin: 0;
  font-size: 10px;
}

.product_img {
  margin: 10px 0;
}

.product_img_main img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product_img_thumb li {
  float: left;
  margin-top: 10px;
  cursor: pointer;
}

.product_img_thumb_img {
  width: auto;
  height: auto;
  max-width: 100%;
  border: 1px solid #ccc;
}

.thumb_active {
  border: 1px solid #333;
}

.together_product_lists {
  margin: 20px 0;
  font-size: 12px;
}

.together_product_list {
  text-align: center;
}

.product_price_area {
  margin-top: 10px;
}

.product_regular_price {
  margin: 0 0 5px;
  font-size: 12px;
}

.product_price {
  margin: 0;
  font-size: 20px;
}

.product_price_discount,
.product_discount_rate {
  color: #cf0400;
}

.product_discount_rate {
  font-size: 20px;
}

.product_price_establish {
  margin: 0;
  font-size: 10px;
}

.product_stock_str {
  margin-top: 20px;
  font-size: 12px;
}

.product_cart_area {
  padding: 0 20px 20px;
  font-size: 12px;
}

.product_cart_option .product_cart_select_box:first-child .product_cart_select_name {
  padding-top: 0;
}

.product_cart_table_box {
  margin-top: 20px;
  background-color: #fff;
  font-size: 12px;
}

.product_cart_table_box label {
  font-size: 12px;
}

.product_cart_select_box {
  margin: 20px 0 5px;
}

.product_cart_select_name {
  padding: 10px 0 15px;
}

.product_cart_select {
  border: 1px solid #333;
  height: 40px;
}

.text-titles-list__unit {
  margin: 5px 0;
}

.text-titles-list__unit dl {
  margin: 0;
}

.text-titles-list__name {
  padding: 10px 0 5px;
  font-weight: normal;
}

.text-titles-list__detail-text {
  border: 1px solid #333;
  height: 40px;
}

.product_cart_order {
  margin: 5px 0;
}

.product_cart_init_num {
  float: left;
  width: 20%;
  height: 30px;
  text-align: right;
}

.product_cart_unit {
  float: left;
  padding: 12px 0 0 20px;
}

.product_cart_init {
  display: none;
}

.sizeguide_table_box {
  border-top: 1px solid #ccc;
  padding-top: 40px;
  margin-top: 20px;
}

.sizeguide_table {
  margin: 20px 0;
}

.btn-addcart,
.btn-reviews {
  border: none;
  margin-top: 30px;
  padding: 18px 0;
  background-color: #333;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.1em;
}

.btn-addcart:hover,
.btn-addcart:focus,
.btn-addcart:active,
.btn-reviews:hover,
.btn-reviews:focus,
.btn-reviews:active {
  background-color: #666;
  color: #fff;
}

.btn-addcart i,
.btn-addcart-quick i,
.btn-reviews i {
  margin-right: 5px;
  vertical-align: -25%;
}

.btn-addcart-quick,
.btn-membersonly {
  margin-top: 20px;
  padding: 10px 0;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.btn-addcart-quick {
  border: none;
  background-color: #007fff;
  color: #fff;
}

.btn-addcart-quick:hover,
.btn-addcart-quick:focus,
.btn-addcart-quick:active {
  background-color: #4ca5ff;
  color: #fff;
}

.btn-soldout {
  border: none;
  margin-top: 20px;
  padding: 18px 12px;
  background-color: #cf0400;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.1em;
}

.btn-soldout.disabled,
.btn-soldout[disabled] {
  background-color: #cf0400;
  color: #fff;
}

.btn_pis_width,
.btn_revies_width {
  width: 300px;
}

.stock_error {
  margin: 0;
  text-align: center;
  color: #cf0400;
}

.product_related_lists {
  margin-top: 20px;
  font-size: 12px;
}

.product_related_lists_review {
  margin-top: 30px;
}

.product_related_list {
  padding: 2px 0;
}

.product_related_lists i {
  vertical-align: -40%;
}

.product_explain {
  line-height: 1.8;
  word-break: break-word;
}

.product_img_sub,
.product_reviews {
  line-height: 1.8;
  margin-top: 40px;
}

.product_img_sub li {
  text-align: center;
  padding-bottom: 10px;
}

.product_text_not {
  text-align: center;
}

.reviewlist_datas {
  overflow: hidden;
  zoom: 1;
  margin-bottom: 10px;
  line-height: 1.2;
}

.icon_star {
  float: left;
  width: 75px;
  overflow: hidden;
}

.icon_star img {
  max-width: inherit;
}

.review_poster li {
  float: left;
  margin-left: 10px;
  list-style: none;
}

.reviewlist:first-child {
  border-top: none;
}

.reviewlist {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #ccc;
  text-align: left;
}

.review_ttl,
.shopcomment_ttl {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.review_img {
  float: right;
  margin: 0 0 10px 10px;
}

.reviewlist_content {
  overflow: hidden;
  zoom: 1;
}

.shopcomment {
  margin: 10px 0;
  padding: 15px;
  background: #eee;
}

@media (min-width: 768px) {
  .product_explain,
  .product_img_sub,
  .product_reviews {
    padding: 10px 10.75%;
  }
}

@media (max-width: 980px) {
  .contents_detail {
    float: none;
    width: 100%;
    padding: 0;
  }
}

.product_detail_area {
  padding-top: 20px;
}

@media (max-width: 768px) {
  .product_img {
    margin-bottom: 0;
  }

  .product_cart_select-flex .product-info-box__title {
    position: relative;
    top: -5px; /* 数値は微調整可 */
  }

  .product_panels {
    margin-bottom: 10px;
    word-break: break-word;
  }

  .product_detail_area {
    padding: 0;
  }

  .product_social_lists {
    padding: 0 10px;
  }

  .product_tab a {
    font-size: 12px;
  }

  .product_explain,
  .product_img_sub {
    font-size: 12px;
    padding: 10px 10px 60px;
  }

  .product_explain {
    font-size: 15px;
  }

  .product_reviews {
    font-size: 12px;
    padding: 0 10px 20px;
  }

  .product_reviews_btn {
    padding-bottom: 60px;
  }

  .together_product {
    margin-top: 20px;
  }

  .together_product_lists {
    padding: 0 10px 30px;
  }

  .product_belong_lists {
    margin: 10px 0;
  }

  .btn_pis_width,
  .btn_revies_width {
    width: 100%;
  }

  .product_cart_area {
    margin: 0;
    padding: 0;
  }
}

/* クイックカートイン CSS */

.cart_in_modal,
.cart_in_error_modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20000;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .product-info-box__row:first-of-type .product-info-box__title {
    margin-top: 16px; /* 型番のラベルを下げる */
  }

  .product-info-box__row:first-of-type .product-info-box__body {
    margin-top: 16px; /* 型番の値も下げる */
  }

  .product-info-box__row:first-of-type {
    margin-bottom: 0; /* 販売価格との間を詰める */
  }
}

@media screen and (min-width: 960px) {
  .cart_in_modal,
  .cart_in_error_modal {
    align-items: center;
  }
}

.cart_in_modal__bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20000;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.cart_in_modal__outline {
  position: absolute;
  width: 90%;
  margin: 20px 5%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 960px) {
  .cart_in_modal__outline {
    width: 900px;
    margin: auto;
    padding: 20px 70px;
    position: relative;
  }
}

.cart_in_modal__heading {
  margin: 20px 0;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__heading {
    margin: 30px 0;
    font-size: 26px;
    line-height: 1.2;
  }
}

.cart_in_error_modal__heading {
  margin: 40px 0 20px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
}

@media screen and (min-width: 960px) {
  .cart_in_error_modal__heading {
    margin: 30px 0;
    line-height: 1.2;
  }
}

.cart_in_modal__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__detail {
    flex-direction: row;
  }
}

.cart_in_modal__name {
  flex: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__name {
    font-size: 18px;
  }
}

.cart_in_modal__image-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0;
  padding: 5px;
  flex-basis: 170px;
  background: rgba(0, 0, 0, 0.1);
  border: 5px solid transparent;
  box-sizing: border-box;
}

.cart_in_modal__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.cart_in_modal__text-link {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  padding-left: 20px;
  color: #2169f3;
  cursor: pointer;
  line-height: 1.15;
}

.cart_in_modal__text-link::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #2169f3;
  border-right: 2px solid #2169f3;
  transform: rotate(225deg);
}

.cart_in_modal__button-wrap {
  width: 100%;
  margin: 30px auto;
  font-size: 17px;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__button-wrap {
    width: 350px;
  }
}

.cart_in_modal__button {
  display: inline-block;
  width: 100%;
  height: 58px;
  padding: 15px;
  font-size: 17px;
  font-weight: bold;
  line-height: 23px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  border: 0;
  border-radius: 4px;
  background: #2169f3;
  box-shadow: 0 2px 0 #1a54c2;
  outline: none;
  appearance: none;
}

.cart_in_modal__button:hover,
.cart_in_modal__button:focus {
  color: #e9f0fe;
  background-color: #1e5fdb;
  box-shadow: none;
  transform: translate3d(0, 2px, 0);
}

.cart_in_modal__close-icon {
  position: absolute;
  top: 30px;
  right: 20px;
  cursor: pointer;
}

.cart_in_modal__close-icon::before,
.cart_in_modal__close-icon::after {
  content: "";
  position: absolute;
  width: 35px;
  height: 6px;
  background: #eee;
  border-radius: 4px;
}

.cart_in_modal__close-icon::before {
  transform: rotate(-45deg);
}

.cart_in_modal__close-icon::after {
  transform: rotate(45deg);
}

.spinner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  border: 5px solid #eee;
  border-top-color: #fd7f23;
  border-radius: 50%;
  box-sizing: border-box;
  animation: spinner 0.5s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (min-width: 960px) {
  .sp-br {
    display: none;
  }
}

#size_about {
  padding-top: 100px;
}

#favorite-button {
  margin-top: 10px;
}

.favorite-button {
  position: relative;
  margin-top: 16px;
  margin-left: 1px;
  width: 100%;
  padding: 0;
  background-color: #fff;
  z-index: 1;
  border: none;
}

.favorite-button2 {
  position: absolute;
  margin-top: 16px;
  margin-left: 1px;
  width: 100%;
  padding: 0;
  background-color: #fff;
  z-index: 0;
  border: none;
}

.favbuttonimg {
  width: 100%;
}

.favorite-button.fav-items {
  opacity: 0;
}

#favorite-button {
  position: relative;
  width: 100%;
}

.project-info-box {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .project-info-box {
    flex-direction: column;
  }

  #size_about {
    padding-top: 80px;
  }
}

.product_cart_select-flex {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 4px;
}

.input-prepend.input-append {
  position: relative;
  width: 60%;
}

.input-prepend.input-append input {
  width: 100%;
  height: 30px;
  padding: 7px 25px;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  border-radius: 2px;
}

.input-num-button {
  position: absolute;
  top: 50%;
  width: 15px;
  transform: translateY(-50%);
  z-index: 100;
}

.input-num-button--left {
  left: 5px;
}

.input-num-button--right {
  right: 5px;
}

.product-info-box__row {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 30px;
}

.product-info-box__title {
  width: 40%;
  margin-bottom: 0;
}

.product-info-box__body {
  width: 60%;
  margin-bottom: 0;
}

.price {
  font-weight: bold;
}

.product-option-caution__text {
  margin-top: 20px;
}

.product-option-caution__text + .product_cart_option .product_cart_select_box {
  margin-top: 0;
}

#custom-options-container input,
#custom-options-container select {
  padding: 9px 15px !important;
}

.pagerlist ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.pagerlist li {
  padding: 5px;
}

.aspect-square-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.iframe-picker-wrap {
  width: 100%;
  height: 500px;
}

.iframe-picker-wrap iframe {
  width: 100%;
  height: 100%;
}

.btn-addcart[disabled] {
  background-color: #c5c5c5;
  color: #fff;
  cursor: not-allowed;
}

.btn-addcart[disabled]:hover {
  color: #fff;
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 アスペクト比 */
  overflow: hidden;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* PCサイズで最大幅を制限・中央寄せ */
@media screen and (min-width: 768px) {
  .youtube-container {
    max-width: 960px;  /* 任意：動画をどのくらい大きく見せたいか */
    margin: 0 auto;
  }
  
  
  
  
/* 横並び用ラッパー */
/* ラッパー */
.link-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 20px;
}

/* PC以上で横並び */
@media screen and (min-width: 768px) {
  .link-button-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2em;
  }
}

/* ボタン単位 */
.link-button {
  width: 240px;
}

/* 画像＋テキストを1つのリンクで囲む */
.link-button-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

/* 画像 */
.link-button-inner img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0px; /* 画像とテキストの間隔 */
}

/* テキスト */
.link-text {
  font-size: 0.85rem;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}


