/* ================================================================= Overiding global style */
.g-Section__inner.l-Section__inner:has(.dmfinder-frontPage),
.g-Section__inner.l-Section__inner:has(.questionnaire),
.g-Section__inner.l-Section__inner:has(.dmfinder-result) {
  width: calc(100% - 80px);
  max-width: calc(1920px - 80px);
  padding: 0;

  @media screen and (max-width: 1023px) {
    width: 100%;
    max-width: unset;
  }
}
.g-Column__cols:has(.dmfinder).l-Column__cols.g-Column__cols-lg-1.g-Column__cols-md-1.g-Column__cols-sm-1 {
  padding-top: 0;
  padding-bottom: 0;
}

.g-BrFooter {
  border-top: none;
}

.g-Breadcrumbs__list.l-Breadcrumbs__list {
  display: none;
}


.dmfinder .dmfinder-content .visually-hidden { /* .visually-hidden（グローバル側JS処理で付与） 対策 */
  position: revert;
  width: revert;
  height: revert;
  /* padding: revert; */
  margin: revert;
  overflow: revert;
  clip: revert;
  white-space: revert;
  border: __remove-attr__; /* .visually-hidden（グローバル側JS処理で付与） の border値 を無効化する目的 */
}

/* ================================================================= DM Finder */
/* 画像プリロード */
img.preload {
  position: absolute;
  left: -999vw;
  opacity: 0;
  pointer-events: none;
}

*:has(> .phraseFragment) {  
}
.phraseFragment {
  display: inline-block;
  white-space: nowrap;
}

.dmfinder {
  &, & * {
    box-sizing: border-box;
  }

  display: flex;

  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 0 20px;

  background: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg--desktop.webp) no-repeat;
  background-color: #F7F7F5;;
  background-size: cover;
  background-position: center center;
  container-type: inline-size;
  color: var(--SENSAI-Black, #2F2D2D);

  width: 100%;
  min-height: 512px;

  height: calc(100svh - 100px - 20px); /* ヘッダー高さ100px + margin-bottom20px */
  @media screen and (max-width: 1024px) {
    margin-bottom: 0;
    height: calc(100svh - 80px); 
  }

  text-align: center;
  font-family: "adobe-garamond-pro", serif;

  &::after {
    content: "";
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    background: rgba(255, 255, 255, 0.5);

    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    width: 100%; height: 100%;
  }

  @media screen and (max-width: 1023px) {
    width: 100%;
    padding: 20px;
    /* min-height: 700px; */
    background-image: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg--tablet.webp);
  }
  @media screen and (max-width: 767px) {
    min-height: 480px;
    background-image: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg--mobile.webp);
  }

  p {
    margin: 0;
    padding: 0;
  }

  a, a:hover {
    text-decoration: none;
  }

  a:focus {
    outline: 2px solid var(--Gold, #816E2D);
    outline-offset: 1px;
  }

}

.dmfinder-content {
  position: relative;
  z-index: 1;
  display: none;

  &:focus,
  &:focus-visible {
    outline: none;
    border: none;
  }

  &[data-current] {
    display: none;
  }
  &[data-current="true"] {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
  }
}

/* ================================================================= 扉ページ */
.dmfinder-frontPage {
  position: relative;

  @media screen and (max-width: 1023px) {
    margin-bottom: 0;
  }
  @media screen and (max-width: 767px) {
    width: 100%;
    padding: 0;
  }

  &::after {
    content: "";
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);

    background-color: #fff;

    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    width: 100%; height: 100%;
  }

  &.visible {
    &::after {
      animation: fadeInFrontpage 1.4s linear forwards, softenBg .7s 1.6s cubic-bezier(.39,.01,.38,1) forwards;
    }

    .headline-dmfinder {
      animation: fadeInContent .8s 1.7s cubic-bezier(.39,.01,.38,1) forwards;
    }
  }

  > * {
    z-index: 1;
  }

  .frontPage-dmfinder {
    width: 100%;
  }
}

@keyframes fadeInFrontpage {
  from {
    background-color: #fff;
  }
  to {
    background-color: transparent;
  }
}

@keyframes softenBg {
  from {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    background-color: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.headline-dmfinder {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  position: relative;
  padding: 0;
  width: 100%;
  min-width: 336px;
  max-width: 480px;
  margin-left: 50%;
  transform: translateX(-50%);
  opacity: 0;

  @media screen and (max-width: 1023px) {
    gap: 20px;
    margin: 0 auto;
    padding: 20px;
    max-width: unset;
    min-width: 0;
    width: calc(70% + 20px * 2);
    transform: none;
    min-width: 538px;
  }
  @media screen and (max-width: 767px) {
    width: 100%;
    min-width: 0;
    max-width: 460px;
  }
} 

.introduction-frontpage-dmfinder {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 40px;
  background-color: #fff;

  @media screen and (max-width: 1023px) {
    padding: 30px;
  }
  @media screen and (max-width: 767px) {
    padding: 20px;
  }
}
.nodeTitle-dmfinder {
  margin: 0;
  /* color: var(--Base-Black, #18181C); */
  text-align: center;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;

  @media screen and (max-width: 1023px) {
    font-size: 42px;
  }
  @media screen and (max-width: 767px) {
    font-size: 37px;
  }
}
.leadtext {
  /* color: var(--color-black, #000); */
  text-align: left;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
}

.rectButton-routeGuide-dmfinder {
  display: flex;
  height: 50px;
  padding: 15px 16px 12px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-decoration: none;

  border: 1px solid var(--Gold, #816E2D);
  background: var(--Gold, #816E2D);

  color: var(--Base-White, #FFF);
  text-align: center;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;

  &.text-case-as-source {
    text-transform: none;
  }

  &:hover{
    &::after {
      content: "";
      border: solid #fff;
      border-width: 0 1.5px 1.5px 0;
      width: 1px;
      height: 1px;
      display: inline-block;
      padding: 3px;
      margin: 7px;
      margin-top: calc(.25em);
      transform: rotate(-45deg);
    }
  }

  @media screen and (max-width: 1023px) {
    font-size: 14px;
  }
}

a.noticeEmph {
  /* color: var(--color-black, #000); */
  color: var(--SENSAI-Black, #2F2D2D);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  display: block;
  position: relative;

  .noticeEmph-content {
    position: relative;
    display: inline-block;

    &::before {
      position: absolute;
      display: block;
      content: '';
      width: 100%;
      height: 0;
      bottom: -.25em;
      border-bottom: 1px solid var(--color-black, #000);
    }
  }

  &::after {
    content: "";
    border: solid transparent;
    border-width: 0 1.5px 1.5px 0 !important;
    width: 1px;
    height: 1px;
    display: inline-block;
    padding: 3px;
    margin: 0 0 0 7px;
    transform: rotate(-45deg);
  }
  &::before {
    content:'';
    position: absolute;
    width: 1.5em;
    height: 0;
    right: -.25em;
    bottom: -.25em;
    border-bottom: 1px solid transparent;
  }


  &:hover{

    &::before,
    &::after {
      border-color: var(--color-black, #000);
    }
  }

  @media screen and (max-width: 1023px) {
    font-size: 14px;
  }
}
.headline-dmfinder .noticeEmph {
  &::before,
  &::after {
    content: none;
  }
}


/* ================================================================= 設問フォーム */

.dmfinder-content,
.dmfinder-bg,
.questionnaire-frame,
.questionnaire {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  max-width: 800px;
}

.dmfinder-bg,
.questionnaire-frame,
.questionnaire {
  background-color: #fff;
}

.dmfinder-content {
  @media screen and (max-width: 1023px) {
    width: calc(70% + 20px * 2);
    min-width: 538px;
  }
  @media screen and (max-width: 767px) {
    width: 100%;
    min-width: 0;
    max-width: 460px;
  }
}

.dmfinder-bg {
  @media screen and (max-width: 1023px) {
    display: flex;
    flex-direction: column;
    align-items: space-between;
  }
}

.questionnaire-container {
  display: none;
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;

  &[data-current="true"] {
    display: flex;
    animation: fadeInDMFinder 0.5s ease-in forwards;
  }
  &:not([data-current="true"]) {
    animation: fadeOutDMfinder 0.5s ease-in forwards;
  }
}

@keyframes fadeInDMFinder {
  from {
    display: flex;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOutDMfinder {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    display: none;
  }
}


.questionnaire-container:not(:has(:checked)) {
  .questionnaire-option {
    &::after,
    * {
      opacity: 1;
    }
  }
}

.questionnaire-heading {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;

  padding: 40px;

  @media screen and (max-width: 1023px) {
    padding: 30px 20px;
    gap: 20px;
  }

  .questionnaire-heading-title {
    /* color: var(--Base-Black, #18181C); */
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .02em;

    @media screen and (max-width: 1023px) {
      font-size: 37px;
    }
  }
  .questionnaire-heading-description {
    /* color: var(--SENSAI-Black, #2F2D2D); */
    text-align: center;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    height: 2.6em;

    @media screen and (max-width: 1023px) {
      font-size: 20px;
    }
  }
}

.questionnaire-option-bundler {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  /* min-height: 240px; */
  min-height: 25svh;
}

.questionnaire-option-row {
  flex: 1;

  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  justify-content: center;
  padding: 0;


  &:last-of-type {
    border-bottom: .5px solid var(--line, #C6C7C7);
  }

  @media screen and (max-width: 767px) {
    flex-direction: column;

    .questionnaire-option {
      border-width: .5px 0 0;
    }

    &.questionnaire-option-row--keep-horizontal {
      flex-direction: row;

      .questionnaire-option {
        border-width: .5px 0 0 .5px;
      }
    }
  }
}

/* individual - Q3-Bは成り行き縦幅ではなく均等縦幅 */
#Q03-B{
  .questionnaire-option {
    @media screen and (max-width: 767px) {
      /* height: 8.2svh; */
      /* height: 100% */
      min-height: 10svh;

      width: 50%;
    }
  }

  @media screen and (max-width: 379px) {
    .questionnaire-option-row.questionnaire-option-row--keep-horizontal {
      display: block;

      .questionnaire-option {
        width: 100%;
        border-left: none;

        &:not(label) {
          display: none;
        }
      }
    }
  }
} 

.questionnaire-option {
  flex: 1;

  display: flex;
  align-items: stretch;
  cursor: pointer;

  padding: 5px;

  &:not(:has(input)) {
    pointer-events: none;
  }

  .questionnaire-option-bg {
    display: flex;
    align-items: center;
    column-gap: 20px;

    width: 100%;
    background: #fff;
    padding: 5px 15px;

    &::before {
      content: '';
      flex-shrink: 0;
      width: 10px;
      height: 10px;
      border-radius: 100%;
      border: 1px solid var(--Gold, #816E2D);
    }
  }

  border: solid var(--line, #C6C7C7);
  border-width: .5px 0 0 .5px;

  &:first-child {
    border-left: none;
  }

  &:has(:focus) {
    box-shadow:0 0 0 1px var(--Gold, #816E2D) inset;
  }

  &:has(:checked) {
    .questionnaire-option-bg {
      background: #FAF7ED;

      &::before {
        background: var(--Gold, #816E2D);
      }
    }
  }


  .questionnaire-option-text {
    text-align: left;
    /* color: var(--SENSAI-Black, #2F2D2D); */
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;

    @media screen and (max-width: 1023px) {
      font-size: 16px;
    }
  }

  .questionnaire-option-control {
    display: block;
    appearance: none;
    width: 0;
    height: 0;
  }
}

.questionnaire-footer-nav {
  display: flex;
  align-items: center;
  justify-content: spece-between;

  padding: 20px 40px;

  @media screen and (max-width: 1023px) {
    padding: 10px;
  }

  > .questionnaire-footer-nav-grid {
    flex: 1;
    display: flex;
    justify-content: center;

    &:first-child {
      justify-content: flex-start;
    }

    &:last-child {
      justify-content: flex-end;
    }
  }

  .dmfinder-back-button {
    margin: auto auto auto 0;
  }

  .questionnaire-progress {
    margin: auto;
  }

  .questionnaire-next-button {
    margin: auto 0 auto auto;
  }
}

.questionnaire-next-button {
  display: flex;

  width: 102px;
  height: 57px;
  padding: 15px 20px 12px;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin: 30px auto;

  border: 1px solid var(--Gold, #816E2D);
  background: var(--Gold, #816E2D);

  color: var(--Base-White, #FFF);
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;

  &.text-case-as-source {
    text-transform: none;
  }

  &:hover::after {
    border-width: 0 1.6875px 1.5px  0;
    padding: 3px 3.375px;
  }

  &.questionnaire-next-button--extended-width {
    width: 146px;

    @media screen and (max-width: 767px) {
      width: 132px;
    }
  }

  &.questionnaire-next-button--condensed-text {
    font-size: 14px;
    padding: 15px 12px 12px;
    width: 120px;;
  }

  @media screen and (max-width: 1023px) {
    font-size: 16px;
  }

  &.unhovered:hover {
    &::after {
      content: none;
    }
  }
  &.inactive {
    pointer-events: none;

    background-color: #fff;
    border-color: var(--disable, #CCD0D6);
    color: var(--disable, #CCD0D6);
  }
}

.questionnaire-progress {
  margin: 30px auto 0;

  display: flex;
  width: 80px;
  height: 4px;
  flex-shrink: 0;
  border: 0.5px solid #816E2D;
  background: #FFF;

  .questionnaire-progress-gauge {
    content: "";
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
    height: 100%;
    background: #816E2D;
    transition: width 0.7s cubic-bezier(.06,.82,.5,.99);
    &::after {
      content: "";
      display: block;
      width: 20px;
      height: 100%;
      background: linear-gradient(90deg, #816E2D 0%, #FFF 100%);
    }
  }
}

.dmfinder-back-button {
  margin: 0 auto;

  display: flex;
  align-items: center;

  padding-left: 10px;

  color: var(--SENSAI-Black, #2F2D2D);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;

  &::before {
    content: "";
    display: block;
    width: 5px;
    height: 10px;
    margin-right: 10px;
    background: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/chevron-leftward.svg) no-repeat center center;
    background-size: contain;
  }

  &:hover {
    text-decoration: underline;
  }

  .dmfinder-back-button-content {
    text-align: left;
  }

  &.dmfinder-back-button--condensed-text {
    font-size: 14px;
  }
}
* a.dmfinder-back-button:hover {
  text-decoration: underline;
}

* + .dmfinder-back-button {
  text-decoration: underline;
  margin-top: 10px;
}

.questionnaire-footer-nav-grid .dmfinder-back-button {
  text-transform: uppercase;
}

.dmfinder-content:has(#Q01-01[data-current="true"]) {
  .dmfinder-back-button[data-firstQuestion] {
    display: flex;
  }
  .dmfinder-back-button:not([data-firstQuestion]) {
    display: none;
  }
}

.dmfinder-content:has(#Q01-01:not([data-current="true"])) {
  /* padding-bottom: 34px; */

.questionnaire-option-bundler {
  min-height: 29.2svh;

  @media screen and (max-width: 767px) {
    min-height: 30svh;
  }
}


  .dmfinder-back-button[data-firstQuestion] {
    display: none;
  }
  .dmfinder-back-button:not([data-firstQuestion]) {
    display: flex;
  }
}


/* ================================================================= 完了画面 */
.completion-screen {
  display: none;

  .dmfinder-bg {
    align-self: stretch;
    flex-grow: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 524px;
    padding: 60px 0;

    @media screen and (max-width: 1023px) {
      height: calc(100svh - 113px - 40px);
      padding: 40px 0;
    }
  }

  &[data-current="true"] {
    display: flex;
    animation: fadeInContent 0.5s ease-in;
  }

  .icon-completion {
    display: block;
    width: 21px;
    height: auto;

    animation: tearDrop 1.8s infinite ease-in-out;
  }
}

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

@keyframes tearDrop {
  0% {
    opacity: 0;
    transform: translateY(-300%);
  }
  30% {
    opacity: 1;
  }
  35% {
    transform: translateY(28%) scale(1.05, .95);
  }
  40% {
    transform: translateY(35%) scale(1.1, .9);
  }
  60% {
    transform: translateY(-20%) scale(.9, 1.1);
  }
  93% {
    opacity: 1;
    transform: translateY(8%)scale(1.1, .9);
  }
  97% {
    transform: translateY(-2%) scale(.9, 1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(0%) scale(1, 1);
  }
}


/* ================================================================= 結果画面 */
/* レイアウト調整 - .dimfinder-result-content--related が幅いっぱいとなるため画面外枠群の余白・上限幅を撤去 */
@media screen and (min-width: 1024px) {
  .g-Area:has(.dmfinder-result) {
    .g-Section__inner.l-Section__inner {
      padding: 0;
      width: 100%;
      max-width: unset;
    }
    .g-Column__cols.l-Column__cols.g-Column__cols-lg-1.g-Column__cols-md-1.g-Column__cols-sm-1 {
      padding: 0;
      width: 100%;
    }

    .dmfinder-result {
      padding: 0;
    }
  }

  .dmfinder-result .dmfinder-result-content {
    & > *:not(.dimfinder-result-content--related) {
      margin-left: auto;
      margin-right: auto;
      padding-left: 60px;
      padding-right: 60px;
      width: calc(100% - 80px);
      max-width: calc(1920px - 80px);

      &:first-child {
        padding-top: 30px;
      }
    }
    & > *:is(.dimfinder-result-content-section--normalSpaced, .dimfinder-result-content-section--wideSpaced) {
      width: calc(100% - 80px - 120px);
      max-width: calc(1920px - 80px -120px);
    }
  }
}


.dmfinder-result {
  &, & * {
    box-sizing: border-box;
  }

  &.beforeRendered {
    display: none;
  }
  &:not('.beforeRendered') {
    display: flex;
    animation: contentFadeIn .5s ease-in forwards;
  }
}

/* safari: .dmfinder-result 内に入れ子記述するとスタイルが適用されない */
.dmfinder-result h1,
.dmfinder-result h1,
.dmfinder-result h2,
.dmfinder-result h3,
.dmfinder-result p,
.dmfinder-result ul,
.dmfinder-result ol {
  margin: 0;
  padding: 0;
}

.dmfinder-result a {
  text-decoration: none;

  &:focus {
    outline: 2px solid var(--Gold, #816E2D);
    outline-offset: 1px;
  }
}

.dmfinder-result .emphisizedKeyphrase {
  font-style: italic;
}

/* /safari: .dmfinder-result 内に入れ子記述するとスタイルが適用されない */

.dmfinder-result {
  font-family: "adobe-garamond-pro", serif;
  animation: fadeInContent .5s ease-in forwards;

  padding: 40px;
  display: flex;
  flex-direction: column;

  @media screen and (max-width: 1023px) {
    padding: 0;
  }

  .dmfinder-result-content-productInfo {
    display: none;
    opacity: 0;

    &[data-current="true"] {
      display: block;

      &.visible {
        animation: fadeInContent .5s ease-in forwards;
      }
    }

    &#beforeTransition {
      height: 100vh;
    }
  }

  .mobileOnly {
    display: none;
  }
  @media screen and (max-width: 1023px) {
    .mobileOnly {
      display: block;
    }
  }

  .dmfinder-result-content-pageTitle {
    padding: 0 20px;

    /* color: var(--Base-Black, #18181C); */
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 1; /* 48px */
    letter-spacing: -0.02em;

    @media screen and (max-width: 1023px) {
      font-size: 37px;
    }
  }
  .dmfinder-result-content-pageDesc {
    padding: 0 20px;
    position: relative;
    z-index: 1;

    /* color: var(--Base-Black, #18181C); */
    text-align: center;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: -.5em;

    @media screen and (max-width: 1023px) {
      font-size: 20px;
    }
  }

  .dmfinder-result-content-pageDesc {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    line-height: 1.1;

    @media screen and (max-width: 1023px) {
      width: calc(100% - 20px * 2);
    }
  }

.dmfinder-result-content-pageDesc + .dmfinder-result-content-showcase {
  margin-top: 20px;
}

  .dmfinder-result-content-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    width: 100%;

    @media screen and (max-width: 1023px) {
      padding: 0 20px;
      gap: 20px;
      width: 100%;
      padding: 0;
      flex-direction: column;
    }
  }

  .dmfinder-result-content-showcase-series {
    display: none;
    @media screen and (max-width: 1023px) {
      display: flex;
    }
    gap: 20px;

    padding: 40px 20px 20px;

    width: calc(100% - 20px * 2);
    background: var(--Bg_Cart, #F7F7F5);

    .dmfinder-result-content-showcase-series-item {
      container-type: inline-size;
      list-style: none;
      flex: 1;

      display: flex;
      flex-direction: column;

      .dmfinder-result-content-showcase-series-item-content {
        flex-grow: 1;

        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        padding: 0;

        text-align: center;
        color: var(--Gold, #816E2D);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: normal;

        .dmfinder-result-content-showcase-series-item-title {
          color: var(--Gold, #816E2D);
          text-align: center;
          font-size: 16px;
          /* font-size: calc(16 / (138 + 20) * 100cqw); */
          font-style: normal;
          font-weight: 400;
          line-height: 1;
        }

        .dmfinder-result-content-showcase-series-item-product-title {
          flex-grow: 1; /* 高さを揃える。親にもflexとgrow, その親にもflexが必要なので設定した */
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 5px;
        }

        .dmfinder-result-content-showcase-series-item-product-image {
          display: block;
          width: 100%;
          height: auto;
        }
        .dmfinder-result-content-showcase-series-item-product-category {
          /* color: var(--Text, #2F2D2D); */
          text-align: center;
          font-family: "Avenir-LT-Light","FZShuSong-Z01",serif;
          font-size: 11px;
          /* font-size: calc(11 / (138 + 20) * 100cqw); */
          font-style: normal;
          font-weight: 300;
          text-transform: uppercase;
        }
        .dmfinder-result-content-showcase-series-item-product-name {
          /* color: var(--Text, #2F2D2D); */
          text-align: center;
          font-family: "Avenir-LT-Light","FZShuSong-Z01",serif;
          font-size: 13px;
          /* font-size: calc(13 / (138 + 20) * 100cqw); */
          font-style: normal;
          font-weight: 300;
          line-height: 1.3;
          text-transform: uppercase;
        }

        &.text-case-as-source,
        .text-case-as-source {
          text-transform: none;
        }
      }
    }
  }


  .dmfinder-result-content-showcase-steps {
    display: flex;
    padding: 20px 20px 20px;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    background: var(--Bg_Cart, #F7F7F5);

    @media screen and (max-width: 1023px) {
      flex-direction: column;
      gap: 40px;
      padding: 0 20px 20px 20px;
      margin-top: 40px;

    }
  }

  .dmfinder-result-content-showcase-steps-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media screen and (max-width: 1023px) {
      width: 100%;
      align-items: center;
    }
  }

  .dmfinder-result-content-showcase-steps-item-title {
    position: relative;;
    color: var(--Gold, #816E2D);
    text-align: center;
    font-size: 34px;
    font-style: normal;
    font-weight: 400;
    line-height: 1; /* 34px */

    @media screen and (max-width: 1023px) {
      padding-top: 40px;
      font-size: 24px;
    }
  }

  /* .dmfinder-result-content-showcase-steps-item:nth-child(n+2) {
    .dmfinder-result-content-showcase-steps-item-title::before {
      @media screen and (max-width: 1023px) {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        width: .5px;
        height: 40px;
        background-color: var(--Gold, #816E2D);
      }
    }
  } */

  .dmfinder-result-content-showcase-steps-item-product {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background-color: #fff;

    @media screen and (max-width: 1023px) {
      padding: 20px;
      width: calc(100%);
      align-items: center;
    }
  }
  .dmfinder-result-content-showcase-steps-item-product-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    /* color: var(--Text, #2F2D2D); */
    text-align: center;
    font-family: "Avenir-LT-Light","FZShuSong-Z01",serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.1;
    text-transform: uppercase;

    &.text-case-as-source,
    .text-case-as-source {
      text-transform: none;
    }
  }
  .dmfinder-result-content-showcase-steps-item-product-category {
    font-size: 16px;
    &:empty {
      min-height: 1em;
    }

    @media screen and (max-width: 1023px) {
      font-size: 12px;
    }
  }

  .dmfinder-result-content-showcase-steps-item-product-summary {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 20px;
  }

  .dmfinder-result-content-showcase-steps-item-product-name {
    font-size: 24px;

    @media screen and (max-width: 1023px) {
      font-size: 18px;
    }
  }
  .dmfinder-result-content-showcase-steps-item-product-description {
    /* color: var(--SENSAI-Black, #2F2D2D); */
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    max-width: 30em;
    flex-grow: 1;
  }
  .dmfinder-result-content-showcase-steps-item-product-image {
    display: flex;
    width: 100%;
    height: auto;
    max-width: 480px;

    @media screen and (min-width: 1024px) and (max-height: 1096px) {
      height: calc(100vmin - 480px - 60px);
      min-height: 80px;
      max-height: 480px;
      width: auto;
    }

    @media screen and (max-width: 1023px) {
      width: 100%;
      max-width: 480px;
      height: auto;
    }
  }

  .dmfinder-rect-button {
    align-self: center;
    justify-self: center;

    display: flex;
    width: 280px;
    min-height: 50px;
    padding: 3px 16px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--Gold, #816E2D);
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;
    color: var(--Gold, #816E2D);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .15em;
    text-transform: uppercase;

    &.text-case-as-source {
      text-transform: none;
    }

    &:hover{
      &::after {
        content: "";
        border: solid var(--Gold, #816E2D);
        border-width: 0 1.5px 1.5px 0 !important;
        width: 1px;
        height: 1px;
        display: inline-block;
        padding: 3px;
        margin: 7px;
        margin-top: calc(.25em);
        transform: rotate(-45deg);
      }
    }

    @media screen and (max-width: 1023px) {
      margin-top: 10px;
      width: 150px;
      height: 50px;
      padding-top: 3px;
      font-size: 12px;
    }
  }
  .dmfinder-rect-button--sensaiBlack {
    border: 1px solid var(--SENSAI-Black, #2F2D2D);
    color: var(--SENSAI-Black, #2F2D2D);
    outline-color: var(--SENSAI-Black, #2F2D2D);

    &:hover {
      &::after {
        border-color: var(--SENSAI-Black, #2F2D2D);
      }
    }
  }
  .dmfinder-rect-button--goldOnDarkBackground {
    border: 1px solid var(--Gold-on-dark-background-OLD, #9F8839);
    color: var(--Gold-on-dark-background-OLD, #9F8839);
    outline-color: var(--Gold-on-dark-background-OLD, #9F8839);

    &:hover {
      &::after {
        border-color: var(--Gold-on-dark-background-OLD, #9F8839);
      }
    }
  }

  .dimfinder-result-content-section {
    padding: 10px 20px;
  }

  .dmfinder-result-content-showcase + .dimfinder-result-content-spaced-section {
      margin-top: 10px;
  }

  .dimfinder-result-content-section--normalSpaced {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    gap: 20px;

    @media screen and (max-width: 1023px) {
      padding: 14.5px 20px;
      gap: 10px;
    }
  }

  .dimfinder-result-content-section--wideSpaced {
    border-top: 0.5px solid var(--line, #C6C7C7);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;

    @media screen and (max-width: 1023px) {
      padding: 40px 20px;
      gap: 10px;
    }
  }

  .dmfinder-rect-button--wide {
    width: unset;
    width: 550px;

    &.dmfinder-rect-button--wide--extended-width {
      width: 560px;
    }
  }

  .dimfinder-result-content--related {
    display: flex;

    width: 100%;
    align-self: center;
    justify-self: center;

    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;


    @media screen and (max-width: 1023px) {
      max-width: none;

      background-size: cover;
    }

    &[data-content="saho"] {
      padding: 67px 80px;;
      background-image: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg-saho--desktop.webp);
      background-color: #C8C6C4;

      @media screen and (max-width: 1023px) {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 0 20px 30px;
        background-image: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg-saho--mobile.webp);

        &::before {
          content: '';
          position: relative;
          width: 100%;
          height: auto;
          min-height: 320px;
        }
      }

      .dmfinder-result-content--related-mainInfo {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        justify-content: flex-start;
        margin-left: 55.5%;
        max-width: 320px;

        @media screen and (max-width: 1023px) {
          width: 100%;
          align-items: center;
          justify-content: center;
          text-align: center;
          margin: 0;
        }

        .dmfinder-result-content--related-mainInfo-title {
          align-self: flex-start;
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          gap: 10px;

          /* color: var(--SENSAI-Black, #2F2D2D); */
          font-weight: 400;
          line-height: 1;
          letter-spacing: .02em;

          @media screen and (max-width: 1023px) {
            align-self: center;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 5px;
          }

          .dmfinder-result-content--related-mainInfo-title-main {
            font-size: 34px;
            font-style: italic;
          }
          .dmfinder-result-content--related-mainInfo-title-sub {
            font-size: 25.5px;
          }
        }

        .dmfinder-result-content--related-mainInfo-leadtext {
          margin-top: 15px;
          /* color: var(--SENSAI-Black, #2F2D2D); */
          font-size: 16px;
          font-style: normal;
          line-height: 1.3; /* 18.2px */

          @media screen and (max-width: 1023px) {
            margin-top: 10px;
            text-align: center;
          }
        }

        .dmfinder-rect-button {
          align-self: flex-start;
          margin-top: 20px;

          @media screen and (max-width: 1023px) {
            align-self: center;
            margin-top: 15px;
          }
        }
      }
    }

    &[data-content="store"] {
      display: flex;
      flex-direction: column;
      gap: 0;
      align-items: center;
      justify-content: center;

      position: relative;
      background-image: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg-store--desktop.webp);
      background-color: #000;

      overflow: hidden;

      padding: 0 80px;

      @media screen and (max-width: 1023px) {
        padding: 30px 0;
        background-image: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg-store--mobile.webp);
        width: 100%;
      }

      .dmfinder-result-content--related-mainInfo {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: center;
        justify-content: center;

        padding: 30px;
        position: relative;
        width: 54.32%;
        max-width: 880px;

        @media screen and (max-width: 1023px) {
          width: calc(100% - 20px * 2);
          padding: 0 20px;
        }

        &::before,
        &::after {
          display: block;
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 100%;
          height: 100%;
          opacity: .7;
          background: #000;

          filter: blur(112.53471374511719px);
          z-index: 0;
        }
        &::after {
          width: 100%;
          height: 100%;
          border-radius: 100%;
        }

        * {
          position: relative;
          z-index: 1;
        }
      }

      .dmfinder-result-content--related-mainInfo-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        text-align: center;
        color: #fff;
        text-align: center;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: 0.02em;

        &::before {
          content: "";
          display: block;
          width: 28px;
          height: 32px;
          margin: 0 auto 10px;
          background: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/icon-map.svg) no-repeat center center;
          background-size: contain;
        }
      }

      .dmfinder-result-content--related-mainInfo-leadtext {
        color: #fff;
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;

        margin-top: 10px;
        line-height: 1.3;
      }

      .dmfinder-rect-button {
        margin-top: 15px;
      }
    }

  }
}


/* ================================================================= 言語ごと */
html[lang^=ru] {
  main.dmfinder,
  main.dmfinder-result {
    font-family: 'EBGaramond-Regular', serif;
  }
}

html[lang^=zh] {
  .dmfinder-result-content-showcase-series-item-product-category,
  .dmfinder-result-content-showcase-series-item-product-name,
  .dmfinder-result-content-showcase-steps-item-product-title {
    font-family: "Avenir-LT-Light","FZShuSong-Z01",serif;
  }
  .dmfinder-result {
    font-family: "EBGaramond-Regular", "FZShuSong-Z01", serif;
  }
}

.dimfinder-result-content--related {
  &.dimfinder-result-content--related--no{
    position: relative;
    &[data-content="saho"] {
      @media screen and (min-width: 1024px) {
        background-image: url(/content/dam/sites/kanebo/www-sensai-cosmetics-com/common/img/dm_finder/bg-saho--desktop_no.webp);
      }
    }
    .dimfinder-result-content--related-icon{
      position: absolute;
      top: 6px;
      right: 6px;
      width: 32%;
    }
  }
}
