/*
  TAMAX STORE ― 商品詳細ページ追加CSS v3
  きなりテーマ版 / ※「商品詳細」のCSS欄に貼る
*/

:root {
  --lx-bg: #f5f1ea; --lx-bg-dark: #ede9e0;
  --lx-ink: #261f1d; --lx-ink-mid: #6b5f55;
  --lx-ink-pale: #a08060; --lx-border: #d8d0c4;
  --lx-orange: #d78113; --lx-white: #ffffff;
}

/*
  TAMAX STORE ― 商品詳細ページ追加CSS
  Organic HTMLベースの見た目調整用
*/

.footstamp,
.product_form,
#box_together,
#box_recommend {
  max-width: 1200px;
  margin: 0 auto;
}

.footstamp {
  padding: 28px 16px 14px;
}

.footstamp p {
  margin: 0 0 8px;
  font-family: 'TAMAX-Display', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(38,31,29,0.42);
}

.footstamp span {
  margin: 0 8px;
}

.footstamp a {
  color: rgba(38,31,29,0.68);
  text-decoration: none;
}

.footstamp a:hover {
  color: var(--lx-orange);
}

.product_form {
  display: block;
  padding: 0 16px 80px;
}

.product_detail_area {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 40px;
  align-items: start;
}

.product_images {
  position: sticky;
  top: 78px;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.zoom-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--lx-border);
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}

.zoom-small-image #wrap > a {
  display: block !important;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lx-bg);
}

.zoom-small-image #wrap > a img {
  display: block !important;
  width: 100%;
  height: auto;
}

.zoom-desc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cloud-zoom-gallery {
  display: block;
  width: calc(20% - 8px);
  min-width: 70px;
  border: 1px solid var(--lx-border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(38,31,29,0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cloud-zoom-gallery:hover {
  border-color: rgba(215,129,19,0.7);
  transform: translateY(-2px);
}

.zoom-tiny-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.add_cart {
  background: rgba(38,31,29,0.02);
  border: 1px solid var(--lx-border);
  border-radius: 14px;
  padding: 26px 28px;
}

.product_detail_area > .add_cart:first-child {
  grid-column: 2;
  grid-row: 1;
}

.product_detail_area > .add_cart:last-child {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}

.product_name {
  margin: 0 0 18px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.28;
  color: var(--lx-ink);
}

.product_description {
  margin-bottom: 22px;
  color: rgba(38,31,29,0.74);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.9;
}

.product_description p:first-child {
  margin-top: 0;
}

.add_cart_table {
  width: 100%;
  border-collapse: collapse;
}

.add_cart_table tr {
  border-bottom: 1px solid var(--lx-border);
}

.add_cart_table th,
.add_cart_table td {
  padding: 14px 0;
  text-align: left;
  vertical-align: top;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--lx-ink);
}

.add_cart_table th {
  width: 132px;
  color: rgba(38,31,29,0.54);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.add_cart_table td s {
  color: rgba(38,31,29,0.4);
}

.price {
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(21px, 2.8vw, 32px);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--lx-ink);
}

.add_cart_table select,
.add_cart_table input[type="text"],
.option_box select,
.option_box input[type="text"],
.option_box textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--lx-white) !important;
  color: var(--lx-ink) !important;
  border: 1px solid rgba(38,31,29,0.08) !important;
  border-radius: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  outline: none;
}

.add_cart_table select:focus,
.add_cart_table input[type="text"]:focus,
.option_box select:focus,
.option_box input[type="text"]:focus,
.option_box textarea:focus {
  border-color: rgba(215,129,19,0.75) !important;
  box-shadow: 0 0 0 3px rgba(215,129,19,0.08);
}

.pur_block {
  vertical-align: middle;
  padding: 0 !important;
}

.pur_block input[type="text"] {
  width: 82px;
  min-width: 82px;
  text-align: center;
}

.pur_block p {
  margin: 0 0 0 10px;
  color: rgba(38,31,29,0.74);
}

.add_cart_table td > table {
  width: auto;
  border-collapse: collapse;
}

.add_cart_table td > table tr {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: none;
}

.add_cart_table td > table .pur_block:nth-child(2) > div {
  width: 28px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.add_cart_table td > table .pur_block:nth-child(2) a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  border-radius: 6px;
  background: rgba(38,31,29,0.02);
}

.add_cart_table td > table .pur_block:nth-child(2) img {
  display: block;
  width: 12px;
  height: 8px;
  object-fit: contain;
}

.option_price {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.option_price li {
  margin: 0;
}

.option_price a {
  display: inline-block;
  color: var(--lx-orange);
  text-decoration: none;
  font-size: 13px;
}

.option_price a:hover {
  text-decoration: underline;
}

.option_box {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 24px 28px;
  background: rgba(38,31,29,0.02);
  border: 1px solid var(--lx-border);
  border-radius: 14px;
}

.option_box table {
  width: 100%;
  border-collapse: collapse;
}

.option_box th,
.option_box td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--lx-border);
  color: var(--lx-ink);
  text-align: left;
}

.option_box input[type="radio"],
.option_box input[type="checkbox"],
.add_cart_table input[type="radio"],
.add_cart_table input[type="checkbox"] {
  transform: scale(1.15);
  accent-color: var(--lx-orange);
}

.button_area {
  margin-top: 6px;
}

.btn,
.button_area input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 16px 20px;
  background: var(--lx-orange) !important;
  border: none !important;
  border-radius: 10px;
  color: var(--lx-ink) !important;
  text-decoration: none;
  font-family: 'TAMAX-Display', 'Noto Sans JP', sans-serif;
  font-size: 24px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
.button_area input[type="submit"]:hover {
  background: #c27210 !important;
  transform: translateY(-2px);
}

.btn_quick {
  margin-top: 12px;
}

.btn_quick .btn {
  background: transparent !important;
  border: 1px solid rgba(38,31,29,0.08) !important;
  color: var(--lx-ink) !important;
  font-size: 20px;
}

.btn-contact {
  min-height: 48px;
  font-size: 18px;
  letter-spacing: 0.08em;
  background: rgba(38,31,29,0.04) !important;
  border: 1px solid rgba(38,31,29,0.08) !important;
}

.sold_out {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 10px;
  background: var(--lx-bg-dark);
  color: var(--lx-ink-mid);
  font-family: 'TAMAX-Display', 'Noto Sans JP', sans-serif;
  font-size: 28px;
  letter-spacing: 0.14em;
}

#sk_link_other {
  margin: 18px 0 0;
}

#sk_link_other a,
.other_link a {
  color: rgba(38,31,29,0.68);
  text-decoration: none;
}

#sk_link_other a:hover,
.other_link a:hover {
  color: var(--lx-orange);
}

.product_link_area {
  display: none;
}

.other_link,
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.other_link li {
  display: flex;
}

.review-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(38,31,29,0.08);
  background: rgba(38,31,29,0.02);
  color: var(--lx-ink) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.review-link:hover {
  transform: translateY(-1px);
  border-color: rgba(215,129,19,0.45);
  background: rgba(215,129,19,0.06);
  color: var(--lx-ink) !important;
}

.review-link-primary {
  min-height: 58px;
  padding: 14px 26px;
  background: linear-gradient(135deg, rgba(215,129,19,0.2), rgba(215,129,19,0.1));
  border-color: rgba(215,129,19,0.8);
  box-shadow: 0 14px 30px rgba(215,129,19,0.14);
  font-size: 18px;
}

.review-link-primary:hover {
  background: linear-gradient(135deg, rgba(215,129,19,0.28), rgba(215,129,19,0.14));
  border-color: rgba(215,129,19,0.9);
}

.review-link-jump {
  min-width: 220px;
}

.review_box {
  background: rgba(38,31,29,0.02);
  border: 1px solid var(--lx-border);
  border-radius: 16px;
  padding-bottom: 28px;
  scroll-margin-top: 96px;
}

.review_box .header_block {
  margin-bottom: 18px;
}

.review_box_sub {
  margin: 4px 0 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: rgba(38,31,29,0.56);
}

.review_box_head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.review_list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review_item {
  padding: 18px 18px 16px;
  background: rgba(38,31,29,0.02);
  border: 1px solid rgba(38,31,29,0.08);
  border-radius: 14px;
}

.review_item_head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.review_item_head strong {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--lx-ink);
}

.review_meta {
  font-size: 12px;
  color: rgba(38,31,29,0.5);
}

.review_comment,
.review_response p,
.review_empty {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: var(--lx-ink-mid);
}

.review_response {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lx-border);
}

.review_response strong {
  display: block;
  margin-bottom: 6px;
  color: var(--lx-orange);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.review_more {
  margin: 18px 0 0;
}

.review_more a {
  color: var(--lx-orange);
  text-decoration: none;
  font-weight: 700;
}

.review_more a:hover {
  text-decoration: underline;
}

.clear,
.clearfix:after {
  clear: both;
}

.clearfix:after {
  content: "";
  display: block;
}

.box {
  margin-top: 48px;
  padding: 28px 16px 0;
}

.header_block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.header_block .icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lx-border);
  border-radius: 10px;
  background: rgba(38,31,29,0.02);
}

.header_block .icon img {
  max-width: 24px;
  max-height: 24px;
}

.header_block h3 {
  margin: 0;
  font-family: 'TAMAX-Display', 'Noto Sans JP', sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--lx-ink);
}

.item_box {
  float: left;
  width: calc(20% - 14px);
  margin: 0 17px 24px 0;
  padding: 14px;
  background: rgba(38,31,29,0.02);
  border: 1px solid var(--lx-border);
  border-radius: 12px;
  box-sizing: border-box;
}

.item_box.box_last {
  margin-right: 0;
}

.item_image {
  margin-bottom: 12px;
}

.item_image a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.item_image img.item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.item_name,
.item_price {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

.item_name a {
  color: var(--lx-ink);
  text-decoration: none;
  line-height: 1.6;
}

.item_name a:hover {
  color: var(--lx-orange);
}

.item_price {
  margin-top: 8px;
  color: rgba(38,31,29,0.68);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .footstamp {
    padding-left: 6px;
    padding-right: 6px;
  }

  .product_form {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .product_detail_area {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .add_cart,
  .option_box {
    padding-left: 14px;
    padding-right: 14px;
  }

  .product_images,
  .product_detail_area > .add_cart:first-child,
  .product_detail_area > .add_cart:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .product_images {
    position: static;
    order: 1;
  }

  .product_detail_area > .add_cart:first-child {
    order: 2;
  }

  .zoom-small-image .cloud-zoom,
  .zoom-small-image .mousetrap {
    pointer-events: none !important;
  }

  .cloud-zoom-lens,
  .cloud-zoom-big,
  .cloud-zoom-title,
  .mousetrap {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .item_box {
    width: calc(33.333% - 12px);
    margin-right: 18px;
  }

  .item_box:nth-child(3n) {
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .footstamp {
    padding: 18px 6px 10px;
  }

  .footstamp p,
  .footstamp a,
  .footstamp span {
    font-size: 13px;
    line-height: 1.7;
  }

  .product_form {
    padding: 0 0 56px;
  }

  .product_detail_area {
    gap: 14px;
  }

  .add_cart,
  .option_box {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .product_name {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.32;
  }

  .product_description {
    font-size: 16px;
    line-height: 1.8;
  }

  .add_cart_table,
  .add_cart_table tbody,
  .add_cart_table tr,
  .add_cart_table th,
  .add_cart_table td {
    display: block;
    width: 100%;
  }

  .add_cart_table tr {
    padding: 12px 0;
  }

  .add_cart_table th,
  .add_cart_table td {
    padding: 0;
  }

  .add_cart_table th {
    margin-bottom: 12px;
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .add_cart_table td {
    font-size: 17px;
    line-height: 1.7;
  }

  .price {
    font-size: clamp(32px, 9vw, 44px);
    letter-spacing: 0.03em;
  }

  .add_cart_table select,
  .add_cart_table input[type="text"],
  .option_box select,
  .option_box input[type="text"],
  .option_box textarea {
    min-height: 58px;
    padding: 14px 16px;
    font-size: 17px;
    border-radius: 12px;
  }

  .pur_block input[type="text"] {
    width: 110px;
    min-height: 58px;
    font-size: 18px;
  }

  .add_cart_table td > table tr {
    gap: 10px;
  }

  .add_cart_table td > table .pur_block:nth-child(2) > div {
    width: 34px !important;
    gap: 6px;
  }

  .add_cart_table td > table .pur_block:nth-child(2) a {
    width: 34px;
    height: 24px;
  }

  .add_cart_table td > table .pur_block:nth-child(2) img {
    width: 14px;
    height: 9px;
  }

  .pur_block p {
    font-size: 16px;
  }

  .option_price a {
    font-size: 16px;
    line-height: 1.7;
  }

  .btn,
  .button_area input[type="submit"] {
    min-height: 64px;
    font-size: 24px;
    letter-spacing: 0.12em;
  }

  .btn_quick .btn {
    font-size: 20px;
  }

  .cloud-zoom-gallery {
    width: calc(25% - 8px);
  }

  #box_together,
  #box_recommend {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
  }

  #box_together .header_block,
  #box_recommend .header_block {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 100%;
    background: linear-gradient(180deg, rgba(245,241,234,0.98) 0%, rgba(245,241,234,0.92) 100%);
    white-space: normal;
  }

  #box_together .item_box,
  #box_recommend .item_box {
    float: none;
    display: inline-flex;
    vertical-align: top;
    flex-direction: column;
    width: 152px;
    margin: 0 10px 0 0;
    white-space: normal;
  }

  #box_together .item_box.box_last,
  #box_recommend .item_box.box_last {
    margin-right: 10px;
  }

  #box_together br.clear,
  #box_recommend br[style*="clear"] {
    display: none;
  }
}

@media (max-width: 1280px) {
  #main {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .footstamp,
  .product_form {
    width: 100% !important;
    max-width: none !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    box-sizing: border-box !important;
  }

  .product_detail_area {
    width: 100% !important;
    max-width: none !important;
  }

  .add_cart,
  .option_box,
  .zoom-section {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ===== ウッティー ===== */
.tamax-wutty-cart,
.tamax-wutty-review {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  opacity: 0.75;
}
.tamax-wutty-cart img,
.tamax-wutty-review img { display: block; }
.tamax-wutty-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  color: var(--lx-ink-pale);
  margin: 0;
  text-align: center;
}
