@charset "euc-jp";

.hide {
  display: none !important;
}

.col {
  padding: 0;
}

.product {
  &:has(.taglist) .suggest {
    margin-top: 0;
  }
}

.pc-only.product-image {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  grid-gap: 16px;
  margin-bottom: 32px;

  .preview {
    aspect-ratio: 1/1;
    flex: 0 0 472px;
    text-align: center;

    img {
      width: auto;
      height: 100%;
      -o-object-fit: scale-down;
      object-fit: scale-down;
    }
  }

  .thumbnail-list {
    ul {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      grid-gap: 8px;

      li {
        flex: 0 0 32px;
        aspect-ratio: 1/1;
        cursor: pointer;
      }
    }

    img {
      opacity: 0.5;

      &.is-active {
        opacity: 1;
      }
    }
  }
}

.mobile-only.product-image {
  .slick-slide {
    padding: 0 !important;

    img {
      margin-inline: auto;
    }
  }

  &.slick-slider {
    margin-bottom: -8px;
  }

  .slick-counter {
    margin: 1em 0;
    text-align: center;
    font-family: var(--font-mincho);
    line-height: 1.4;
  }

  .slick-prev,
  .slick-next {
    top: unset !important;
    bottom: 0 !important;
    width: auto;
    height: 22px;
  }

  .slick-prev {
    left: 33% !important;
  }

  .slick-next {
    right: 33% !important;
  }
}

.product article {
  h2 {
    margin: 1em 0 20px;
    text-box-trim: trim-both;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;

    @media screen and (min-width: 1000px) {
      margin: -0.25em 0 24px;
      font-size: 28px;
    }

    &.has-icon.new::before {
      content: url("https://www.tsuku-shin.jp/colorme/icon/new.svg");
      display: inline-block;
      padding-right: 0.25em;
      vertical-align: 3px;
    }

    &.has-icon.restock::before {
      content: url("https://www.tsuku-shin.jp/colorme/icon/restock.svg");
      display: inline-block;
      padding-right: 0.25em;
      vertical-align: 3px;
    }

    span {
      display: block;
      font-size: 18px;
      line-height: 1.42;

      @media screen and (max-width: 999px) {
        margin: calc(1em - 0.25em) 0;
      }

      @media screen and (min-width: 1000px) {
        font-weight: 600;
        line-height: 1.58;
      }
    }

    .icon_new {
      vertical-align: baseline;
    }
  }

  @media screen and (min-width: 1000px) {
    form {
      display: block;
      padding: 32px;
      background-color: var(--sub_key_color);
    }
  }
}

.purchase-info {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;

  .price > span {
    font-size: 18px;
  }

  .discount {
    color: #ff0000;
  }

  .regular {
    padding-bottom: 5px;
  }

  .price_establish {
    padding-bottom: 5px;
    color: var(--sub_key_color);
  }

  .stock-str {
    padding-top: 30px;
    font-size: 22px;
  }
}

.order-controls {
  margin-top: 40px;

  @media screen and (min-width: 1000px) {
    margin-top: 24px;
  }

  dl {
    margin: 0;

    @media screen and (min-width: 1000px) {
      width: 50%;
    }
  }

  dt {
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1;

    @media screen and (min-width: 1000px) {
      margin-bottom: 8px;
    }
  }

  .option-table {
    margin: 40px 0;

    table {
      width: 95%;
      margin: 0 auto;
      border-bottom: 1px solid var(--bordercolor_secondary);
      border-left: 1px solid var(--bordercolor_secondary);
    }

    th,
    td {
      padding: 11px 7px;
      border-top: 1px solid var(--bordercolor_secondary);
      border-right: 1px solid var(--bordercolor_secondary);
    }

    th {
      text-align: center;
    }

    td {
      vertical-align: top;
      text-align: center;
    }
  }

  :where(.option-list, .text-titles) {
    dt {
      padding-bottom: 10px;
      font-weight: normal;
    }

    dd {
      margin: 0;
    }
  }

  .option-list select {
    height: 50px;
    border: 2px solid var(--bordercolor_secondary);
  }

  .text-titles input {
    height: 50px;
    border: 2px solid var(--bordercolor_secondary);
  }
}

.order-controls .order-quantity {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  grid-gap: 20px;

  @media screen and (min-width: 1000px) {
    flex-direction: row;
    align-items: flex-end;
    grid-gap: 32px;
  }
}

.order-controls .order-quantity dd {
  margin: 0;

  .inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: 40px;
    background-color: #fff;
    border: 1px solid var(--bordercolor_secondary);

    @media screen and (max-width: 999px) {
      &::after {
        content: "";
        display: block;
        clear: both;
      }
    }

    @media screen and (min-width: 1000px) {
      height: 36px;
    }
  }

  &.disabled,
  &.disabled input {
    -webkit-text-fill-color: #b7b7b7;
    color: #b7b7b7;
    opacity: 1;
  }

  input {
    width: 50%;
    height: 100%;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
    font-family: var(--font-mincho);
    font-size: 24px;

    @media screen and (min-width: 1000px) {
      width: 135px;
    }

    &[disabled] {
      background: none;
    }
  }
}

.order-controls .order-quantity .controler {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: inherit;
  font-weight: 700;

  @media screen and (max-width: 999px) {
    width: 25%;
    text-align: center;
  }

  @media screen and (min-width: 1000px) {
    width: 64px;

    &::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      display: block;
      width: 1px;
      height: 1rem;
      margin: auto;
      background-color: #b7b7b7;
    }

    &:first-child::after {
      right: 0;
    }

    &:last-child::after {
      left: 0;
    }
  }

  &:focus {
    color: var(--color-neutral-900);
    text-decoration: none;
  }
}

.order-buttons {
  width: 100%;

  li > * {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 0;
    text-align: center;
    font-family: var(--font-mincho);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }

  :where(.add-cart, .easy-order, .sold-out) {
    padding: 20px 0 22px 0;

    span {
      vertical-align: middle;
    }
  }

  :where(.easy-order, .sold-out) i {
    margin-right: 10px;
  }

  .sold-out:where(.disabled, [disabled]) {
    background-color: var(--bordercolor_secondary);
    border: none;
    color: rgb(255, 255, 255);
    opacity: 1;
  }

  .stock_error {
    text-align: center;
    color: var(--key_color);

    @media screen and (max-width: 999px) {
      font-weight: bold;
    }
  }
}

.order-buttons .add-cart {
  background: var(--cart_btn_color);
  border: none;
  color: #fff;

  &:hover {
    background: var(--cart_btn_color_hover);
    color: #fff;
    opacity: 0.8;
    -moz-opacity: 0.8;
  }

  img {
    margin-left: 0.14em;
    height: 1em;
  }

  @media screen and (max-width: 999px) {
    &.fixed {
      position: fixed;
      left: 0;
      bottom: 0;
      display: none;
      width: 100%;
      z-index: 700;
    }
  }
}

.product-description {
  margin: 2.5rem 0 0;
  font-size: 1rem;
  line-height: 1.75;

  @media screen and (min-width: 1000px) {
    margin: 32px 0 0;
    line-height: 1.875;
  }

  > *:first-child {
    margin-top: 0;
  }

  h3 {
    display: block;
    margin: 1.81em 0 0.81em;
    font-family: var(--font-mincho);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;

    &::before {
      content: "ąŁ";
      color: var(--key_color);
    }

    @media screen and (min-width: 1000px) {
      margin: 1.22em 0 1em;
    }
  }

  p {
    margin: 1em 0;
    text-box-trim: trim-both;
    line-height: 1.75;

    @media screen and (min-width: 1000px) {
      line-height: 1.875;
    }

    > img {
      margin-bottom: 0;
    }
  }

  img {
    display: block;
    width: 100%;
    height: auto;
    margin: 1rem auto;
  }

  .is-inline > * {
    display: inline-block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;

    @media screen and (max-width: 999px) {
      margin: 0;
    }
  }

  iframe[src^="https://www.youtube.com"]
  {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .hidden {
    display: none;
  }
}

.support-links {
  margin: 40px 0;
  font-size: 13px;
  line-height: 2.15;
  list-style: none;

  li > a {
    display: inline-block;

    @media screen and (max-width: 999px) {
      white-space: nowrap;
    }

    &::before {
      content: "";
      position: relative;
      right: 8px;
      bottom: 1px;
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-left: 8px;
      border-top: solid 1px var(--bordercolor_primary);
      border-right: solid 1px var(--bordercolor_primary);
      transform: rotate(45deg);
    }
  }

  .return-policy {
    display: inline-block;
  }
}

.share-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 16px;
  margin: 40px 0;
  text-align: center;
  font-size: 0;
}

.taglist {
  position: relative;
  font-size: 0;

  @media screen and (min-width: 1000px) {
    margin-top: 80px;
  }

  .inner {
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid var(--bordercolor_secondary);
  }

  h3 {
    margin: 0 auto 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
  }

  a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin: 0 5px 8px 0;
    padding: 0 8px;
    border: 1px solid var(--bordercolor_primary);
    font-size: 14px;
    line-height: 1;
  }

  @media screen and (max-width: 999px) {
    p {
      margin: 0 0 10px;
    }
  }
}

#breadcrumb {
  @media screen and (min-width: 1000px) {
    margin-bottom: 20px;
  }

  span > img {
    display: none !important;
  }

  span > span {
    visibility: hidden;
    font-size: 0;
  }

  &.translate {
    span[glot-model^="name-pid_"] {
      font-size: 0;
      visibility: hidden;
    }

    span > span {
      visibility: visible;
      font-size: 0.75rem;
    }
  }
}

.product .related-products {
  margin-top: 5rem;
  font-family: var(--font-mincho);

  @media screen and (max-width: 999px) {
    padding-right: 24px;
    padding-left: 24px;
  }

  h2 {
    display: flex;
    align-items: center;
    height: 32px;
    margin: 0;
    padding: 0 20px;
    background: #606060;
    color: #fff;
    font-size: 18px;
    line-height: 1;
  }

  ul {
    list-style: none;
    padding: 1rem 0 4rem;
    font-size: 1.125rem;
    line-height: 1.35;
  }

  li {
    + li {
      border-top: 1px solid #dbdbdb;
    }

    > a {
      display: block;
      padding: 1.5rem 2rem 1.5rem 0;

      @media screen and (min-width: 1000px) {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
      }

      @media screen and (max-width: 999px) {
        span {
          display: block;
          margin-top: 0.25em;
        }
      }
    }
  }
}

@media screen and (max-width: 999px) {
  .product .related-products {
    a {
      position: relative;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        display: block;
        width: 2rem;
        height: 2rem;
        margin: auto;
        background-image: url("https://www.tsuku-shin.jp/colorme/icon/arrow_circle.svg");
        background-size: contain;
        background-repeat: no-repeat;
      }

      > span {
        display: block;
        margin-left: auto;
        padding-right: 1rem;
      }
    }

    + .taglist {
      margin-top: 0;
    }
  }
}

@media screen and (max-width: 999px) {
  @-webkit-keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @-webkit-keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  @-webkit-keyframes slideRight {
    0% {
      transform: translateX(0);
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    100% {
      transform: translateX(100%);
    }
  }

  @keyframes slideRight {
    0% {
      transform: translateX(0);
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    100% {
      transform: translateX(100%);
    }
  }

  @-webkit-keyframes slideLeft {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    100% {
      transform: translateX(0);
    }
  }

  @keyframes slideLeft {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    100% {
      transform: translateX(0);
    }
  }

  @-webkit-keyframes slideOut {
    0% {
      transform: translateX(0);
    }

    80% {
      opacity: 1;
    }

    100% {
      transform: translateX(-80vw);
      opacity: 0;
    }
  }

  @keyframes slideOut {
    0% {
      transform: translateX(0);
    }

    80% {
      opacity: 1;
    }

    100% {
      transform: translateX(-80vw);
      opacity: 0;
    }
  }

  .product .delivery-balance {
    position: relative;
    display: none;
    width: 100%;
    text-align: center;
    z-index: 700;

    p {
      font-size: 13px;
      line-height: 1;

      > span {
        display: block;
        margin-top: 6px;
        font-size: 10px;
      }
    }

    mark {
      background: none;
      color: #ee4b13;
    }

    label {
      margin: 0;
    }

    &.fixed {
      position: fixed;
      left: 0;
      bottom: 60px;
      display: block;
    }

    &.closed .content {
      -webkit-animation-play-state: paused;
      animation-play-state: paused;
    }

    .content {
      position: relative;
      padding: 10px 0 9px;
      background: #edeae4;
      z-index: 800;
    }
  }

  #delivery-balance_toggle {
    display: none;
  }

  #delivery-balance_button::before {
    content: "";
    position: absolute;
    right: 0;
    width: 48px;
    height: 48px;
    padding: 15px 10px;
    background-image: url("https://www.tsuku-shin.jp/colorme/icon/delivery-truck.svg");
    background-color: #edeae4;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(0);
    z-index: 850;
  }

  #delivery-balance_toggle ~ .content {
    -webkit-animation: 500ms normal 0s forwards 1 slideRight;
    animation: 500ms normal 0s forwards 1 slideRight;
    pointer-events: none;
  }

  #delivery-balance_toggle:checked {
    + #delivery-balance_button::before {
      background-image: url("https://www.tsuku-shin.jp/colorme/icon/close_black.svg");
      background-color: transparent;
    }

    ~ .content {
      transform: translateX(0);
      opacity: 1;
      -webkit-animation: 500ms normal 0s forwards 1 slideLeft;
      animation: 500ms normal 0s forwards 1 slideLeft;
      pointer-events: all;

      p {
        -webkit-animation: 2s normal 0s forwards 1 fadeIn;
        animation: 2s normal 0s forwards 1 fadeIn;
      }
    }
  }
}
