@charset "UTF-8";

/* ==========================================================================
   Foundation
   ========================================================================== */
:root {
  --textMain: #303030;
  --textSub: #666666;
  /* グラデーション */
  --pinkGradStart: #fff;
  --pinkGradEnd: #f8e4ef;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Han Sans JP", "源ノ角ゴシック JP", "Source Han Sans", "源ノ角ゴシック", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--textMain);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   p-lipSelection
   ========================================================================== */
.p-lipSelection {
  padding: 60px clamp(20px, 4.16vw, 60px) 0;
}

.p-lipSelection__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.p-lipSelection__header {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.p-lipSelection__titleWrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.p-lipSelection__enTitle {
  flex-shrink: 0;
}

.p-lipSelection__enTitle img {
  width: 110px;
  height: auto;
}

.p-lipSelection__jaTitle {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.65;
  color: #9da5a8;
  letter-spacing: 0.06em;
}

/* 比較グリッド */
.p-lipSelection__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: stretch;
}

/* 7件に戻す場合 */
.p-lipSelection__grid.is-seven {
  grid-template-columns: repeat(7, 1fr);
}

/* ==========================================================================
   p-lipSelectionCard
   ========================================================================== */
.p-lipSelection__grid > a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* .p-lipSelection__grid > a:hover,
.p-lipSelection__grid > a:hover img {
  opacity: 0.7 !important;
} */

.p-lipSelectionCard {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 商品画像＋商品名 */
.p-lipSelectionCard__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.p-lipSelectionCard__productImg {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 8px;
}

.p-lipSelectionCard__productImg img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* 商品名 */
.p-lipSelectionCard__name {
  width: 100%;
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
  min-height: 2.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--textMain);
}

/* 唇スウォッチ画像 */
.p-lipSelectionCard__lipImg {
  width: 100%;
  aspect-ratio: 180 / 120;
  overflow: hidden;
  margin-bottom: 8px;
}

.p-lipSelectionCard__lipImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テクスチャ画像＋色番 */
.p-lipSelectionCard__swatch {
  margin-bottom: 12px;
}

/* テクスチャ画像 */
.p-lipSelectionCard__textureImg {
  width: 100%;
  aspect-ratio: 180 / 120;
  overflow: hidden;
  margin-bottom: 8px;
}

.p-lipSelectionCard__textureImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-lipSelectionCard__color {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--textSub);
  min-height: 2.8em;
}

.p-lipSelectionCard__colorNum,
.p-lipSelectionCard__colorName {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 400;
}

/* グラデーション背景 */
.p-lipSelectionCard__specs {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--pinkGradStart) 0%, var(--pinkGradEnd) 100%);
}

.p-lipSelectionCard__specRow {
  background-color: transparent;
  padding: 16px 8px;
  display: flex;
  align-items: center;
  min-height: 38px;
  position: relative;
}

.p-lipSelectionCard__specRow + .p-lipSelectionCard__specRow {
  border-top: 8px solid #ffffff;
  padding-top: 16px;
}

.p-lipSelectionCard__specLabel {
  font-size: 13px;
  color: var(--textSub);
  width: 48px;
  flex-shrink: 0;
}

.p-lipSelectionCard__specStars {
  flex: 1;
  display: flex;
  align-items: center;
}

.p-lipSelectionCard__specStars img {
  height: 12px;
  width: auto;
  object-fit: contain;
}

/* 質感行 */
.p-lipSelectionCard__specRow--texture {
  flex: 1;
  align-items: flex-start;
  padding-top: 16px;
  padding-bottom: 16px;
}

.p-lipSelectionCard__specText {
  flex: 1;
  font-size: 12px;
  line-height: 1.55;
  color: var(--textMain);
}

.p-lipSelectionCard__note {
  font-size: 8px;
  vertical-align: super;
}

.p-lipSelectionCard__noteSub {
  display: inline-block;
  font-size: 11px;
  color: var(--textSub);
  line-height: 1.35;
  margin-top: 2px;
  font-weight: 400;
}

/* 6件表示時 */
@media (min-width: 1201px) {
  .p-lipSelection__inner:has(.p-lipSelection__grid:not(.is-seven)) {
    max-width: 1080px;
  }

  .p-lipSelection__grid:not(.is-seven) {
    grid-template-columns: repeat(6, minmax(0, 190px));
    justify-content: center;
  }

  .p-lipSelection__grid:not(.is-seven) .p-lipSelectionCard__lipImg,
  .p-lipSelection__grid:not(.is-seven) .p-lipSelectionCard__textureImg {
    max-height: 120px;
  }
}

/* ==========================================================================
   TB（1200px以下）
   ========================================================================== */
@media (max-width: 1200px) {
  .p-lipSelection {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 60px 0 0;
  }

  .p-lipSelection__inner {
    width: 100%;
    max-width: 100%;
  }

  .p-lipSelection__header {
    padding: 0 20px;
  }

  .p-lipSelection__scrollWrap {
    position: relative;
    width: 100%;
  }

  .p-lipSelection__scrollHint {
    position: absolute;
    top: 170px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #EDAFCD;
    box-shadow: 0 2px 10px rgba(176, 124, 144, 0.25);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
  }

  .p-lipSelection.is-inview .p-lipSelection__scrollHint {
    animation: scrollHintFade 4.8s ease-in-out 0.8s forwards;
  }

  .p-lipSelection__scrollHint::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 46%;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #ffffff;
    border-right: 1.5px solid #ffffff;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .p-lipSelection__scrollArea {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
  }

  .p-lipSelection__scrollArea::-webkit-scrollbar {
    display: none;
  }

  .p-lipSelection__grid {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    width: max-content;
    margin: 0;
  }

  .p-lipSelection__grid > a {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .p-lipSelectionCard {
    width: 176px;
    flex-shrink: 0;
  }
}

@keyframes scrollHintFade {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  15% {
    opacity: 1;
    transform: translateX(0);
  }
  35% {
    opacity: 1;
    transform: translateX(4px);
  }
  55% {
    opacity: 1;
    transform: translateX(0);
  }
  75% {
    opacity: 1;
    transform: translateX(4px);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
    visibility: hidden;
  }
}

/* ==========================================================================
   SP（767px以下）
   ========================================================================== */
@media (max-width: 767px) {
  .p-lipSelection {
    padding: 40px 0 0;
  }

  .p-lipSelection__header {
    margin-bottom: 32px;
  }

  .p-lipSelection__titleWrap {
    gap: 16px;
  }

  .p-lipSelection__enTitle img {
    width: clamp(64px, 18vw, 72px);
  }

  .p-lipSelection__jaTitle {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.6;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .p-lipSelection__scrollArea {
    padding: 0 16px 12px;
    scroll-padding-left: 16px;
  }

  .p-lipSelectionCard {
    width: 160px;
  }

  .p-lipSelectionCard__productImg {
    height: 160px;
  }

  .p-lipSelectionCard__name,
  .p-lipSelectionCard__color {
    font-size: 12px;
  }

  .p-lipSelectionCard__specLabel{
    font-size: 12px;
  }

  .p-lipSelectionCard__noteSub{
    font-size: 10px;
  }

  .p-lipSelectionCard__specRow + .p-lipSelectionCard__specRow {
    padding: 12px 8px;
    border-top: 5px solid #ffffff;
  }

}

/* 既存CSS無効化 */
.block-item-title {
  padding: 0 !important;
}

.block-item-title::before {
  background: none !important;
}

.block-item-title--inner {
  border-bottom: none !important;
  justify-content: center !important;
  padding-bottom: 0 !important;
}

/* ==========================================================================
   アニメーション
   ========================================================================== */

/* スクロール連動 */
.p-lipSelection__header {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(20px);
  transition:
    opacity 2.0s ease-out,
    filter 2.0s ease-out,
    transform 2.0s ease-out;
}

.p-lipSelection.is-inview .p-lipSelection__header {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.p-lipSelection__grid > a {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(24px);
  transition:
    opacity 1.8s ease-out,
    filter 1.8s ease-out,
    transform 1.8s ease-out;
}

.p-lipSelection.is-inview .p-lipSelection__grid > a {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.p-lipSelection.is-inview .p-lipSelection__grid > a:nth-child(1) { transition-delay: 0.3s; }
.p-lipSelection.is-inview .p-lipSelection__grid > a:nth-child(2) { transition-delay: 0.48s; }
.p-lipSelection.is-inview .p-lipSelection__grid > a:nth-child(3) { transition-delay: 0.66s; }
.p-lipSelection.is-inview .p-lipSelection__grid > a:nth-child(4) { transition-delay: 0.84s; }
.p-lipSelection.is-inview .p-lipSelection__grid > a:nth-child(5) { transition-delay: 1.02s; }
.p-lipSelection.is-inview .p-lipSelection__grid > a:nth-child(6) { transition-delay: 1.2s; }
.p-lipSelection.is-inview .p-lipSelection__grid > a:nth-child(7) { transition-delay: 1.38s; }

/* ホバーアニメーション */
.p-lipSelectionCard__productImg img,
.p-lipSelectionCard__lipImg img,
.p-lipSelectionCard__textureImg img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-lipSelectionCard__name {
  transition: color 0.3s ease;
}

.p-lipSelectionCard__specs {
  position: relative;
  z-index: 0;
}

.p-lipSelectionCard__specs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff6fa 0%, #f3cfe2 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

@media (min-width: 1201px) and (hover: hover) and (pointer: fine) {
  .p-lipSelection__grid > a:hover,
  .p-lipSelection__grid > a:hover img {
    opacity: 1 !important;
  }

  .p-lipSelection__grid > a:hover .p-lipSelectionCard__productImg img {
    transform: translateY(-6px);
  }

  .p-lipSelection__grid > a:hover .p-lipSelectionCard__lipImg img,
  .p-lipSelection__grid > a:hover .p-lipSelectionCard__textureImg img {
    transform: scale(1.06);
  }

  .p-lipSelection__grid > a:hover .p-lipSelectionCard__name {
    color: #EDAFCD;
  }

  .p-lipSelection__grid > a:hover .p-lipSelectionCard__specs::before {
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .p-lipSelection.is-inview .p-lipSelection__grid > a.is-active .p-lipSelectionCard__productImg img {
    transform: translateY(-6px);
  }

  .p-lipSelection__grid > a:active .p-lipSelectionCard__name {
    color: #EDAFCD;
  }

  .p-lipSelection__grid > a:active .p-lipSelectionCard__specs::before {
    opacity: 1;
  }
  
  .p-lipSelection__grid > a,
  .p-lipSelection__grid > a:hover,
  .p-lipSelection__grid > a:active,
  .p-lipSelection__grid > a:focus,
  .p-lipSelection__grid > a:hover img,
  .p-lipSelection__grid > a:active img,
  .p-lipSelection__grid > a:focus img {
    opacity: 1 !important;
  }
}