@charset "utf-8";

/* ## PC/SP切り替え */
@media (min-width: 769px) {
  .u-sp {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .u-pc {
    display: none !important;
  }
  .u-sp {
    display: block;
  }
}

/* ## 記事の間隔ルール */
.u-content-rule :is(h2, .h3, .h4) {
  line-height: 1.3;
}
.u-content-rule h2 {
  font-size: 2.4rem;
  margin-bottom: 32px;
}
.u-content-rule h3 {
  margin-bottom: 16px;
}
.u-content-rule h4 {
  margin-bottom: 16px;
}
.u-content-rule p + p:has(:is(img:not(.emoji), picture)),
.u-content-rule p:has(:is(img:not(.emoji), picture)) + p {
  margin-top: 5em;
}
.u-content-rule
  p:has(:is(img:not(.emoji), picture))
  + p:has(:is(img:not(.emoji), picture)) {
  margin-top: 1em;
}
@media (max-width: 768px) {
  .u-content-rule p + p:has(:is(img:not(.emoji), picture)),
  .u-content-rule p:has(:is(img:not(.emoji), picture)) + p {
    margin-top: 3em;
  }
}

/* ## 言語 */
.u-en-1 {
  font-family: var(--en-1);
  font-weight: 400;
}
.u-ja-1 {
  font-family: var(--ja-1);
}
.u-ja-2 {
  font-family: var(--ja-2);
  font-weight: 700;
}

/* ## imgのトリミング */
.u-img-cover :is(img, picture) {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.u-img-contain :is(img, picture) {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* ## クリックエリアを拡大 */
.u-expand-click {
  position: relative;
}
.u-expand-click::before {
  content: "";
  position: absolute;
  inset: -12px;
}

/* ## フォーム */
.u-unit::after {
  position: absolute;
  right: -24px;
  top: 0;
  bottom: 0;
  margin: auto;
  height: fit-content;
}
.u-unit--people::after {
  content: "人";
}

/* ## 背景画像 */
.u-bg-cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.u-bg-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 横幅 */
.u-width-auto {
  width: auto;
}
.u-width-1500 {
  width: 1500px;
}
.u-width-800 {
  width: 800px;
}

/* 下線 */
.u-underline {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: opacity 0.4s;
}
.u-underline:hover {
  opacity: 0.6;
}

/* スライダー表示 */
.u-slider {
  opacity: 0;
  transition: opacity 0.3s linear;
}
.u-slider.slick-initialized {
  opacity: 1;
}

/* ホバー */
.u-hover-opacity {
  transition: opacity 0.4s;
}
.u-hover-opacity:hover {
  opacity: 0.6;
}

/* ## テキスト slide */
.u-slide-text__wrap {
  position: relative;
  overflow: hidden;
}
.u-slide-text__inner {
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.u-slide-text__inner:last-child {
  position: absolute;
}
.u-slide-text:hover .u-slide-text__inner {
  transform: translateY(-100%);
}
.u-slide-text:hover .u-slide-text__arrow {
  animation: anime-arrow 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
@media (max-width: 768px) {
  .u-slide-text:hover .u-slide-text__inner {
    transform: unset;
  }
  .u-slide-text:hover .u-slide-text__arrow {
    animation: unset;
  }
}

/* ホバー */
.u-hover-img__img {
  overflow: hidden;
}
.u-hover-img img {
  transition: transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.u-hover-img__txt {
  transition: opacity 0.4s;
}
.u-hover-img:hover img {
  transform: scale(1.06);
}
.u-hover-img:hover .u-hover-img__txt {
  opacity: 0.6;
}

/* ## u-list-bullet */
.u-list-bullet li {
  position: relative;
  margin-left: 1em;
}
.u-list-bullet li::before {
  position: absolute;
  content: "・";
  left: -1em;
}

/* ## u-list-number */
.u-list-number {
  counter-reset: number;
}
.u-list-number li {
  position: relative;
  margin-left: 1.5em;
  counter-increment: number;
}
.u-list-number li::before {
  position: absolute;
  content: counter(number) ".";
  left: -1.5em;
}

/* ## u-note */
.u-note {
  position: relative;
  margin-left: 1em;
}
.u-note::before {
  position: absolute;
  content: "※";
  left: -1em;
}

.u-color-red {
  color: var(--red);
}
