@charset "UTF-8";
html {
  font-size: 16px;
}

body {
  font-family: "Roboto", sans-serif;
}

a[href^="tel:"] {
  pointer-events: none;
}
@media screen and (max-width: 768px) {
  a[href^="tel:"] {
    pointer-events: auto;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul,
ol {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul,
ol {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

a {
  text-decoration: none;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
  width: 100%;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Blur images when they have no alt attribute */
img:not([alt]) {
  filter: blur(10px);
}

/* フォームリセット */
input,
button,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input[type=checkbox],
input[type=radio] {
  display: none;
}

input[type=submit],
input[type=button],
label,
button,
select {
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

@media screen and (max-width: 768px) {
  .md-none {
    display: none;
  }
}

.md-show {
  display: none;
}
@media screen and (max-width: 768px) {
  .md-show {
    display: block;
  }
}

body {
  background-color: #ebe6db;
  font-family: "Roboto", sans-serif;
}

.container {
  max-width: 37.5rem;
  margin: 60px auto;
}

.title {
  font-size: 3.75rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
}

.text {
  font-size: 0.875rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
  transition: color 0.3s ease;
  padding-inline: 1.25rem;
  overflow: hidden;
  position: relative;
  transform: translateY(5%); /* 初期状態で少し下に配置 */
  transition: background-color 0.3s ease; /* 背景色のトランジション */
}

.product-link:hover {
  background-color: #000;
}

.product-link:hover .product-num {
  color: #fff;
}

.textWrap {
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.link__text--def {
  color: #000;
  position: relative;
  z-index: 1;
}

.link__text--hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  color: #fff;
  z-index: 2;
  transform: translateY(100%);
  display: block;
}

.product-num {
  font-size: 0.875rem;
  font-weight: normal;
  color: #000;
  text-align: center;
}

.transition__mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  display: none; /* 初期状態では非表示 */
}

.transition__el {
  flex: 1; /* 均等に高さを分ける */
  width: 100%;
  position: relative;
  -webkit-clip-path: inset(100% 0 0 0);
          clip-path: inset(100% 0 0 0); /* 最初は完全に隠れている */
}

.transition__in {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ebe6db;
}

.transition__el:nth-child(odd) .transition__in {
  background-color: #9d9993; /* 黒っぽいベージュ */
}

/* アクティブクラスが付いたときにクリップパスをアニメーション */
.transition__mask.active .transition__el {
  -webkit-animation: clipUp 1s ease-in-out forwards;
          animation: clipUp 1s ease-in-out forwards;
}

@-webkit-keyframes clipUp {
  0% {
    -webkit-clip-path: inset(100% 0 0 0);
            clip-path: inset(100% 0 0 0); /* 下から隠れている状態 */
  }
  100% {
    -webkit-clip-path: inset(0 0 0 0);
            clip-path: inset(0 0 0 0); /* 完全に表示される状態 */
  }
}

@keyframes clipUp {
  0% {
    -webkit-clip-path: inset(100% 0 0 0);
            clip-path: inset(100% 0 0 0); /* 下から隠れている状態 */
  }
  100% {
    -webkit-clip-path: inset(0 0 0 0);
            clip-path: inset(0 0 0 0); /* 完全に表示される状態 */
  }
}
.transition__mask--dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #9d9993;
  -webkit-clip-path: inset(100% 0 0 0);
          clip-path: inset(100% 0 0 0);
  transition: -webkit-clip-path 0.8s ease-in-out;
  transition: clip-path 0.8s ease-in-out;
  transition: clip-path 0.8s ease-in-out, -webkit-clip-path 0.8s ease-in-out;
  z-index: 1000;
  pointer-events: none;
}

.transition__mask--dark.active {
  -webkit-clip-path: inset(0 0 0 0);
          clip-path: inset(0 0 0 0); /* アクティブ化されたら全体が表示される */
}

.product-img {
  width: 18.75rem;
  margin: 0 auto;
}