/* ==========================================================
   共通設定
========================================================== */

/* ボックスモデル */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}

/* 基本スタイル */
body {
  min-width: 320px;
  color: #333;
  background: #fff;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

/* メディア・フォーム */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ==========================================================
   HERO
========================================================== */

/* HERO全体 */
.hero {
  position: relative;
  width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  background: #ffecdd;
  container-type: inline-size;
}

/* 背景・ビジュアル */
.hero__background,
.hero__visual {
  display: block;
  width: 100%;
}

.hero__background img,
.hero__visual img {
  width: 100%;
}

.hero__background img {
  height: auto;
}

.hero__visual {
  position: absolute;
  inset: 0;
}

.hero__visual img {
  height: auto;
}

/* コンテンツ基準領域 */
.hero__content {
  position: absolute;
  inset: 0;
}

/* タイトル */
.hero__title-main,
.hero__title-sub {
  position: absolute;
}

.hero__title-main {
  top: 5.86%;
  left: 50.60%;
  width: 41.50%;
}

.hero__title-sub {
  top: 17.60%;
  left: 57.96%;
  width: 30.06%;
}

/* キャッチコピー */
.hero__catch {
  position: absolute;
  top: 29.36%;
  left: 49.81%;
  width: 45.64%;
  margin: 0;
}

.hero__catch img {
  width: 100%;
}

/* リード文 */
.hero__lead {
  position: absolute;
  top: 37.78%;
  left: 58.80%;
  width: 27.77%;
  margin: 0;
  color: #655392;
  font-size: 2.03125cqw;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

/* ==========================================================
   PRODUCTS
========================================================== */

/* 商品紹介全体 */
.products {
  position: relative;
  width: 1280px;
  margin: 0 auto;
  padding-bottom: 44px;
  overflow: hidden;
  background: #ffecdd;
  container-type: inline-size;
}

/* 商品説明 */
.products__title {
  margin: 0;
  color: #655392;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.products__break--sp {
  display: none;
}

/* 商品画像スライダー */
.products__slider {
  width: 100%;
  margin-top: 23px;
  overflow: hidden;
}

.products__track {
  display: flex;
  width: max-content;
  animation: products-slide 20s linear infinite;
  will-change: transform;
}

.products__group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  flex: none;
}

.products__group img {
  flex: none;
  height: auto;
}

.products__group img:nth-child(1) {
  width: 290.5413px;
}

.products__group img:nth-child(2) {
  width: 227.2px;
}

.products__group img:nth-child(3) {
  width: 268.1px;
}

.products__group img:nth-child(4) {
  width: 296.5px;
}

.products__group img:nth-child(5) {
  width: 254.2px;
}

.products__group img:nth-child(6) {
  width: 277.6px;
}

@keyframes products-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .products__track {
    animation: none;
  }
}

/* ==========================================================
   CHARACTER
========================================================== */

/* 共通背景・コンテナ */
.character-area {
  width: 1280px;
  margin: 0 auto;
  padding: 90px 0 100px;
  overflow: hidden;
  background: #fff;
  background-image: url("../images/common/argyle-bg.webp");
  background-repeat: repeat;
  background-size: 1280px 128px;
  container-type: inline-size;
}

.character-area__inner {
  width: 940px;
  margin: 0 auto;
  padding: 58px 0 120px;
  border-radius: 64px;
  background: #fff;
  container-type: inline-size;
}

.character {
  color: #655392;
  text-align: center;
}

.character__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ジュウリョクピエロ号 */
.character__block--horse {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character__image--horse {
  width: 477.4196px;
  aspect-ratio: 1;
}

.character__heading {
  margin: 0;
}

.character__heading img {
  width: 100%;
  height: auto;
}

.character__heading--horse {
  width: 539.0256px;
  margin-top: 32px;
}

.character__text {
  margin: 0;
  color: #000000;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  text-align: center;
}

.character__text--horse {
  margin-top: 26px;
  font-size: 24px;
  line-height: 36px;
}

.character__text sup {
  font-size: 0.6em;
  vertical-align: super;
}

/* クラシックとは？ */
.character__block--classic {
  margin-top: 20px;
}

.character__heading--classic {
  width: 457.2969px;
  margin: 0 auto;
}

.character__text--classic {
  margin-top: 35px;
  font-size: 20px;
  line-height: 33px;
}

.character__break--sp {
  display: none;
}

/* ねころび */
.character__block--nekorobi {
  margin-top: 100px;
}

.character__image--nekorobi {
  width: 447.953px;
  aspect-ratio: 896 / 906;
  margin: 0 auto;
}

.character__heading--nekorobi {
  width: 538.7675px;
  margin: 48px auto 0;
}

.character__text--nekorobi {
  width: 595px;
  margin: 40px auto 0;
  font-size: 24px;
  line-height: 42px;
}

/* SPレイアウト */
@media (max-width: 768px) {
  /* PC固定幅の解除 */
  .hero,
  .products {
    width: 100%;
  }

  /* コンテンツ基準領域 */
  .hero__content {
    position: absolute;
    inset: 0;
  }

  /* タイトル */
  .hero__title-main,
  .hero__title-sub {
    position: absolute;
    width: auto;
  }

  .hero__title-main {
    top: 2.89%;
    left: 16.00%;
    width: 68.00%;
  }

  .hero__title-sub {
    top: 10.48%;
    left: 25.37%;
    width: 49.25%;
  }

  /* キャッチコピー */
  .hero__catch {
    top: 16.88%;
    left: 12.61%;
    width: 74.79%;
  }

  /* リード文 */
  .hero__lead {
    top: 21.40%;
    left: 24.49%;
    width: 51.03%;
    font-size: 3.7333cqw;
    line-height: 1.357;
  }

  /* 商品説明 */
  .products__title {
    font-size: 3.5555cqw;
  }

  .products {
    padding-bottom: 5.7778vw;
  }

  .products__break--sp {
    display: inline;
  }

  /* 商品画像スライダー */
  .products__slider {
    margin-top: 3.5555cqw;
  }

  .products__group {
    gap: 3.5555cqw;
    padding-right: 3.5555cqw;
  }

  .products__group img:nth-child(1) {
    width: 36.4867cqw;
  }

  .products__group img:nth-child(2) {
    width: 28.528cqw;
  }

  .products__group img:nth-child(3) {
    width: 33.6613cqw;
  }

  .products__group img:nth-child(4) {
    width: 37.2267cqw;
  }

  .products__group img:nth-child(5) {
    width: 31.8587cqw;
  }

  .products__group img:nth-child(6) {
    width: 34.8cqw;
  }

  /* 共通背景・コンテナ */
  .character-area {
    width: 100%;
    padding: 7.1111cqw 0 5.6cqw;
    background-size: 100cqw 10cqw;
  }

  .character-area__inner {
    width: 80.8889cqw;
    padding: 2.967cqw 0 9cqw;
    border-radius: 6.9231cqw;
  }

  /* ジュウリョクピエロ号 */
  .character__image--horse {
    width: 55.6275cqw;
  }

  .character__heading--horse {
    width: 62.805cqw;
    margin-top: 6.5934cqw;
  }

  .character__text--horse {
    margin-top: 3.956cqw;
    font-size: 3.2967cqw;
    line-height: 4.945cqw;
  }

  /* クラシックとは？ */
  .character__block--classic {
    margin-top: 4.615cqw;
  }

  .character__heading--classic {
    width: 53.282cqw;
  }

  .character__text--classic {
    margin-top: 4.615cqw;
    font-size: 2.857cqw;
    line-height: 4.615cqw;
  }

  .character__break--sp {
    display: inline;
  }

  /* ねころび */
  .character__block--nekorobi {
    margin-top: 7.253cqw;
  }

  .character__image--nekorobi {
    width: 52.195cqw;
  }

  .character__heading--nekorobi {
    width: 62.78cqw;
    margin-top: 2.637cqw;
  }

  .character__text--nekorobi {
    width: 83.6cqw;
    margin-top: 6.923cqw;
    font-size: 3.2967cqw;
    line-height: 4.945cqw;
    text-align: left;
  }
}

/* ==========================================================
   FOOTER
========================================================== */

.footer {
  width: 1280px;
  height: 196px;
  margin: 0 auto;
  padding-top: 26px;
  color: #fff;
  background: #5846a0;
  container-type: inline-size;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 23px;
  text-align: center;
}

.footer__logo {
  width: 266px;
  height: auto;
  margin: 0 auto;
}

.footer__rights,
.footer__copyright {
  margin: 0;
}

.footer__rights {
  margin-top: 15px;
}

.footer__copyright {
  margin-top: 23px;
}

@media (max-width: 768px) {
  .footer {
    width: 100%;
    height: 17.4222cqw;
    padding-top: 2.5225cqw;
    font-size: 1.5111cqw;
    line-height: 2.3111cqw;
  }

  .footer__logo {
    width: 20.8889cqw;
  }

  .footer__rights {
    margin-top: 0.8285cqw;
  }

  .footer__copyright {
    margin-top: 0;
  }
}

/* ==========================================================
   PURCHASE
========================================================== */

/* 共通レイアウト */
.purchase {
  margin-top: 95px;
  color: #000;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  text-align: center;
}

.purchase__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.purchase__package {
  width: 262.5px;
  height: auto;
  margin: 0 auto;
}

.purchase__intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
}

.purchase__intro .purchase__package {
  margin: 0;
}

.purchase__release-info {
  width: 414.5709px;
  height: auto;
}

.purchase__features {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin-top: 70px;
}

.purchase__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.purchase__feature-title {
  width: 325px;
  height: auto;
}

.purchase__feature-image {
  width: 369.5px;
  height: auto;
  margin-top: 19px;
}

.purchase__lead {
  margin: 55px auto 0;
  font-size: 24px;
  line-height: 42px;
  text-align: center;
}

.purchase__break--pc {
  display: inline;
}

/* 商品スライダー */
.purchase__slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  margin-top: 55px;
}

.purchase__slide-frame {
  display: grid;
  place-items: center;
  width: 317px;
  height: 327px;
}

.purchase__slide {
  width: auto;
  max-width: 338px;
  max-height: 327px;
  height: auto;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.purchase__slide.is-changing {
  opacity: 0;
}

.purchase__slide.is-preparing {
  transition: none;
}

.purchase__slide.is-changing.is-next {
  transform: translateX(-15px);
}

.purchase__slide.is-changing.is-prev {
  transform: translateX(15px);
}

.purchase__slide.is-entering {
  opacity: 0;
}

.purchase__slide.is-entering.is-next {
  transform: translateX(15px);
}

.purchase__slide.is-entering.is-prev {
  transform: translateX(-15px);
}

.purchase__slider-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #ffc58f;
  cursor: pointer;
  font-size: 18px;
}

.purchase__slider-button:hover,
.purchase__slider-button:focus-visible {
  background: #f4ad70;
}

/* 購入・店舗案内 */
.purchase__shop-button,
.purchase__store-button {
  display: block;
  width: 500px;
  margin-right: auto;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.purchase__shop-button {
  margin-top: 50px;
  padding: 18px 20px;
  background: #5a48aa;
  text-decoration: none;
}

.purchase__store-button {
  margin-top: 48px;
  padding: 24px 20px;
  color: #000;
  background: #ddb0ba;
  cursor: pointer;
}

.purchase__stores {
  display: grid;
  place-items: center;
  max-height: 130px;
  min-height: 130px;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.5;
  transition: max-height 0.3s ease, min-height 0.3s ease;
}

.purchase__stores p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .purchase__slide {
    transition: none;
  }
}

/* PCレイアウト調整 */
@media (min-width: 769px) {
  /* CHARACTERとの区切り線 */
  .purchase::before {
    display: block;
    width: 80%;
    height: 3px;
    margin: 0 auto 76px;
    background: #e9e3f0;
    content: "";
  }

  .purchase__features {
    gap: 48px;
    margin-top: 54px;
  }

  .purchase__intro {
    transform: translateX(32px);
  }

  .purchase__feature-title {
    width: 325px;
  }

  .purchase__feature-image {
    width: 369.5px;
    margin-top: 19px;
  }

  .purchase__lead {
    margin-top: 30px;
    font-size: 22px;
    line-height: 38.5px;
  }

  .purchase__slider {
    margin-top: 35px;
  }

  .purchase__slide-frame {
    width: 338px;
  }

  .purchase__shop-button,
  .purchase__store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 114px;
    padding: 0 20px;
    font-size: 34px;
    font-weight: 400;
    line-height: 39px;
  }

  .purchase__stores {
    max-height: 0;
    min-height: 0;
    font-size: 34px;
    font-weight: 900;
    color: #000000;
  }
}

/* SPレイアウト */
@media (max-width: 768px) {
  .purchase {
    margin-top: 8cqw;
  }

  /* CHARACTERとの区切り線 */
  .purchase::before {
    display: block;
    width: 80%;
    height: 2px;
    margin: 0 auto 8cqw;
    background: #e9e3f0;
    content: "";
  }

  .purchase__package {
    width: 50cqw;
  }

  .purchase__intro {
    flex-direction: column;
    gap: 4.3956cqw;
  }

  .purchase__release-info {
    width: 58.53cqw;
  }

  .purchase__features {
    width: 82cqw;
    gap: 5cqw;
    margin-top: 7.912cqw;
    margin-right: auto;
    margin-left: auto;
  }

  .purchase__feature-title {
    width: 38.1cqw;
  }

  .purchase__feature-image {
    width: 36cqw;
    margin-top: 1.5cqw;
  }

  .purchase__feature-image--phone {
    width: 35.824cqw;
  }

  .purchase__feature-image--notebook {
    width: 36.264cqw;
  }

  .purchase__lead {
    width: 76cqw;
    margin-top: 4cqw;
    font-size: 3.2967cqw;
    line-height: 4.945cqw;
    text-align: left;
  }

  .purchase__break--pc {
    display: none;
  }

  .purchase__slider {
    gap: 5cqw;
    margin-top: 4cqw;
  }

  .purchase__slide-frame {
    width: 48cqw;
    height: 37cqw;
  }

  .purchase__slide {
    max-width: 48cqw;
    max-height: 37cqw;
  }

  .purchase__slider-button {
    width: 8cqw;
    height: 8cqw;
    font-size: 2.8cqw;
  }

  .purchase__shop-button,
  .purchase__store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76cqw;
    min-height: 17cqw;
    padding: 0 2.6667cqw;
    font-size: 5.3333cqw;
    line-height: 1.15;
  }

  .purchase__shop-button {
    margin-top: 6cqw;
  }

  .purchase__store-button {
    margin-top: 6cqw;
  }

  .purchase__stores {
    max-height: 0;
    min-height: 0;
    font-size: 4.5333cqw;
    font-weight: 900;
    color: #000000;
  }
}
