@use "sass:map";

$font-family-ja: "Noto Sans JP", sans-serif;
$font-family-en: "Montserrat", sans-serif;
$font-size-base: 1em; // 16px = 1em
$line-height-base: 1.7;
$font-weight-base: 400;
$color-base: #111;
$background-base: #fafafa;
$color-key1: #f5810e;
$color-key2: #fabe00;
$color-error: #c00;
$color-youtube-red: #f00;
$color-gradation: linear-gradient(180deg, #f8b819 0%, #f0d320 100%);
$width-inner: 1140px;
$breakpoints: (
  sp: "screen and (max-width: 767px)",
  pc: "screen and (min-width: 768px)",
);

// インタラクション用（ホバー/クリック/タップ・アクセシビリティ）
$duration-hover: 0.25s;
$duration-active: 0.15s;

// focus-visible のアウトライン色（背景とのコントラスト比を考慮・WCAG 3:1 以上）
$focus-visible-on-light: #111; // 明るい背景（白・クリーム・黄）用
$focus-visible-on-dark: #fff; // 暗い背景用

@mixin mq($breakpoint: pc) {
  @media #{map.get($breakpoints, $breakpoint)} {
    @content;
  }
}

// 重なり順の定義
$layer: (
  // ローディング
  loading: 300,
  // モーダル
  modal: 100,
  // ドロワー
  drawer: 40,
  // フローティング
  floating: 30,
  // ヘッダー
  header: 20,
  // フッター
  footer: 10,
  default: 1
);

body {
  font-family: $font-family-ja;
  color: $color-base;
  background-color: $background-base;
  font-size: $font-size-base;
  line-height: $line-height-base;
  font-weight: $font-weight-base;

  // メニューが開いている時、背景を固定する
  &.is-menu-open {
    height: 100vh;
    position: fixed;
    top: var(--scroll-y, 0);
    left: 0;
    width: 100vw;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(0);
}

.hidden-sp {
  @include mq(sp) {
    display: none;
  }
}

.hidden-pc {
  @include mq(pc) {
    display: none;
  }
}

.inline-block {
  font-weight: inherit;
  display: inline-block;
}

.section-padding {
  padding-block: 60px;

  @include mq(pc) {
    padding-block: 100px;
  }
}

.inner {
  padding-inline: 15px;

  @include mq(pc) {
    max-width: calc($width-inner + 30px * 2);
    margin-inline: auto;
    padding-inline: 30px;
  }
}

.heading {
  text-align: center;
  font-family: $font-family-en;
}

.heading__en {
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 3.8px;

  @include mq(pc) {
    font-size: 3.125rem;
    letter-spacing: 5px;
  }
}

.heading__ja {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 1.12px;
  margin-top: 14px;

  @include mq(pc) {
    font-size: 1rem;
    letter-spacing: 1.28px;
  }
}

.button {
  font-weight: 700;
  letter-spacing: 0.48px;
  padding: calc(10px - 2px) calc(30px - 2px);
  display: inline-block;
  border-radius: 60px;
  border: 2px solid currentcolor;
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
  color: $color-base;
  min-width: 150px;
  text-align: center;
  transition:
    background-color $duration-hover,
    color $duration-hover,
    transform $duration-active,
    opacity $duration-active;

  // PC: ホバー（スマホではホバー無効）
  @include mq(pc) {
    &:hover {
      background-color: #fabe00;
    }
  }

  // クリック（PC）・タップ（SP）: 押下フィードバック
  &:active {
    transform: scale(0.97);
    transition-duration: $duration-active;
  }

  // キーボードフォーカス（アクセシビリティ・明るい背景用）
  &:focus-visible {
    outline: 2px solid $focus-visible-on-light;
    outline-offset: 2px;
  }

  &--type2 {
    background-color: #111;
    color: #fff;

    @include mq(pc) {
      &:hover {
        background-color: #fff;
        color: #111;
      }
    }

    &:focus-visible {
      outline-color: $focus-visible-on-dark;
    }
  }
}

// header--------------------------------

// .header {
// }

.header__inner {
  display: flex;
  justify-content: space-between;
  padding-block: 22px;

  @include mq(pc) {
    padding-bottom: 21px;
  }
}

.header__logo {
  @include mq(pc) {
    padding-top: 6px;
  }

  a {
    img {
      width: 100px;
      display: block;

      &:focus-visible {
        outline: 2px solid $focus-visible-on-light;
        outline-offset: 2px;
      }

      @include mq(pc) {
        width: 135px;
      }
    }
  }
}

.header__nav {
  width: 85.3vw;
  height: 100%;
  position: fixed;
  overflow-y: auto;
  top: 0;
  right: 0;
  background: #f7ba1a;
  z-index: map.get($layer, drawer);
  padding: 94px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  visibility: hidden;

  &.is-checked {
    transform: translateX(0);
    visibility: visible;
  }

  @include mq(pc) {
    background: transparent;
    width: auto;
    height: auto;
    position: static;
    padding: 0;
    transform: translateX(0);
    visibility: visible;
  }
}

#js-focus-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(0);
  white-space: nowrap;
  border: 0;
}

.header__lists {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
  @include mq(pc) {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}

// .header__list {
// }

.header__link {
  text-align: right;
  font-weight: 700;
  letter-spacing: 0.48px;
  transition: color $duration-hover;

  @include mq(pc) {
    &:hover {
      color: #f5810e;
    }
  }

  &:active {
    opacity: 0.8;
  }

  &:focus-visible {
    outline: 2px solid $focus-visible-on-light;
    outline-offset: 2px;
  }
}

.header__button {
  text-align: right;
  margin-top: -7px;

  @include mq(pc) {
    margin-top: 0;
  }
}

.header__open {
  margin-top: 3px;

  @include mq(pc) {
    display: none;
  }
}

.drawer-icon {
  width: 36px;
  height: 21px;
  position: relative;
  z-index: map.get($layer, drawer);
  cursor: pointer;
  transition:
    opacity $duration-hover,
    transform $duration-active;

  @include mq(pc) {
    &:hover {
      opacity: 0.8;
    }
  }

  &:active {
    transform: scale(0.95);
  }

  &:focus-visible {
    outline: 2px solid $focus-visible-on-light;
    outline-offset: 2px;
  }

  &.is-checked {
    .drawer-icon__bar {
      &:nth-of-type(1) {
        top: 10px;
        transform: rotate(30deg);
      }

      &:nth-of-type(2) {
        display: none;
      }

      &:nth-of-type(3) {
        top: 10px;
        transform: rotate(-30deg);
      }
    }
  }
}

.drawer-icon__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 6px;
  background: #111;
  transition:
    transform 0.3s ease-out,
    top 0.3s ease-out;

  // &:nth-of-type(1) {
  // }

  &:nth-of-type(2) {
    top: 9px;
  }

  &:nth-of-type(3) {
    top: 18px;
  }
}

// mv--------------------------------

.mv {
  border-radius: 20px;
  max-width: calc(100% - 15px * 2);
  margin-inline: auto;
  background: $color-gradation;

  @include mq(pc) {
    border-radius: 30px;
    max-width: calc(100% - 30px * 2);
  }
}

.mv__inner {
  padding: 50px 20px 255px;
  position: relative;

  @include mq(pc) {
    padding: 110px 30px 109px;
    max-width: calc(1040px + 30px * 2);
    margin-left: auto;
    margin-right: auto;
  }
}

// .mv__content {
// }

// .mv__lead {
// }

.mv__lead1,
.mv__lead2 {
  font-feature-settings: "palt" on;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.2px;
  border-radius: 5px;
  background: #fff;
  padding: 10px;
  display: block;
  width: fit-content;
  margin-inline: auto;

  @include mq(pc) {
    margin-inline: 0;
    font-size: 2.375rem;
    letter-spacing: 3.8px;
    padding: 12px 16px;
  }
}

// .mv__lead1 {
// }

.mv__lead2 {
  margin-top: 8px;

  @include mq(pc) {
    margin-top: 14px;
  }
}

.mv__description {
  text-align: center;
  letter-spacing: 0.48px;
  font-weight: 700;
  margin-top: 26px;

  @include mq(pc) {
    text-align: left;
    font-size: 1.125rem;
    letter-spacing: 0.54px;
    margin-top: 20px;
  }
}

.mv__button {
  margin-top: 22px;
  text-align: center;

  @include mq(pc) {
    text-align: left;
    margin-top: 30px;
  }
}

.mv__image {
  position: absolute;
  right: 0;
  bottom: -108px;
  width: 100%;
  text-align: center;

  @include mq(pc) {
    width: calc(600px / 1040px * 100%);
    text-align: right;
    bottom: -88px;
    right: 30px;
  }

  img {
    width: 345px;

    @include mq(pc) {
      width: 600px;
    }
  }
}

// case--------------------------------

.case {
  margin-top: 108px;
  padding-block: 60px;

  @include mq(pc) {
    margin-top: 88px;
    padding-top: 70px;
    padding-bottom: 50px;
  }
}

.case__inner {
  padding-inline: 40px;

  @include mq(pc) {
    max-width: calc(920px + 40px * 2);
    margin-inline: auto;
  }
}

.case__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.8px;
  text-align: center;

  @include mq(pc) {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
}

.case__items {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 15px;

  @include mq(pc) {
    margin-top: 54px;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 40px;
  }
}

.case__item {
  text-align: center;
}

// news--------------------------------

.news {
  padding-block: 60px;
  @include mq(pc) {
    padding-block: 50px;
  }
}

// .news__inner {

// }

.news__card {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 30px 0 #f4f4f4;
  padding: 40px 12px;

  @include mq(pc) {
    border-radius: 30px;
    padding: 40px calc(105px / 1140px * 100%) 34px;
  }
}

.news__title {
  font-family: $font-family-en;
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 3.8px;
  text-align: center;

  @include mq(pc) {
    font-size: 3.125rem;
    letter-spacing: 5px;
    text-align: left;
  }
}

.news__lists {
  margin-top: 28px;

  @include mq(pc) {
    margin-top: 30px;
  }

  > * + * {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 1px;
      top: 0;
      left: 0;
      background: #e3e3e3;
    }
  }
}

.news__list {
  &:nth-child(n + 2) {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 1px;
      top: 0;
      left: 0;
      background: #e3e3e3;
    }
  }
}

.news__link {
  text-align: right;
  margin-top: 22px;

  @include mq(pc) {
    margin-top: 20px;
  }

  a {
    font-weight: 700;
    line-height: 100%;
    display: inline-block;
    border-bottom: 2px solid currentcolor;
    padding-bottom: calc(10px - 2px);
    vertical-align: top;
    transition: color $duration-hover;

    @include mq(pc) {
      &:hover {
        color: #fabe00;
      }
    }

    &:active {
      opacity: 0.8;
    }

    &:focus-visible {
      outline: 2px solid $focus-visible-on-light;
      outline-offset: 2px;
    }
  }
}

.news-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-block: 10px;
  transition: background-color $duration-hover;

  @include mq(pc) {
    flex-direction: row;
    padding-block: 12px;
    gap: 0;

    &:hover {
      background-color: #fff9e5;
    }
  }

  &:active {
    background-color: #fff3cc;
  }

  &:focus-visible {
    outline: 2px solid $focus-visible-on-light;
    outline-offset: 2px;
  }
}

.news-link__meta {
  display: flex;
  align-items: center;
  gap: 12px;

  @include mq(pc) {
    width: 247px;
    flex-shrink: 0;
    gap: 14px;
  }
}

.news-link__date {
  color: #333;
  white-space: nowrap;

  @include mq(pc) {
    width: 119px;
  }
}

.news-link__label {
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 2px;
  background: #e4780c;
  min-width: 63px;
  text-align: center;

  &.is-news {
    background: #e4780c;
  }

  &.is-column {
    background: #ecb815;
  }

  &.is-event {
    background: #389b47;
  }
}

// .news-link__title {
// }

// about--------------------------------

.about {
  padding-top: 60px;
  padding-bottom: 60px;
  overflow: hidden;

  @include mq(pc) {
    padding-top: 50px;
    padding-bottom: 100px;
  }
}

// .about__inner {
// }

.about__title {
  text-align: center;

  img {
    width: 180px;

    @include mq(pc) {
      width: 230px;
    }
  }
}

.about__content {
  margin-top: 150px;
  padding-top: 288px;
  padding-bottom: 105px;
  position: relative;
  text-align: center;

  @include mq(pc) {
    margin-top: 175px;
    padding-top: 284px;
    padding-bottom: 100px;
  }

  &::before {
    content: "";
    width: 1100px;
    height: 1100px;
    border-radius: 50%;
    background: $color-gradation;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;

    @include mq(pc) {
      width: 800px;
      height: 800px;
    }
  }
}

.about__image {
  position: absolute;
  text-align: center;
  top: -110px;
  left: 0;
  width: 100%;

  @include mq(pc) {
    top: -126px;
  }

  img {
    width: 320px;

    @include mq(pc) {
      width: 330px;
    }
  }
}

.about__text {
  font-weight: 700;
  line-height: 2.3;
}

.about__pop {
  margin-top: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.28px;

  @include mq(pc) {
    margin-top: 42px;
  }
}

.about__button {
  margin-top: 12px;

  @include mq(pc) {
    margin-top: 16px;
  }
}

// movie--------------------------------

.movie {
  padding-top: 60px;
  padding-bottom: 60px;
  background: url("../img/bg_section01.avif") repeat top left / 529px auto;

  @include mq(pc) {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

.movie__inner {
  padding-left: 15px;
  padding-right: 15px;
}

// .movie__title {

// }

// .movie__title-en {
// }

// .movie__title-ja {

// }

.movie__iframe {
  margin-top: 32px;
  text-align: center;

  @include mq(pc) {
    margin-top: 56px;
  }

  iframe {
    width: 345px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 345 / 194;
    vertical-align: top;
    border: none;

    @include mq(pc) {
      width: 640px;
      aspect-ratio: 640 / 360;
    }
  }

  .movie__thumbnail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 345px;
    max-width: 100%;
    aspect-ratio: 345 / 194;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;

    @include mq(pc) {
      width: 640px;
      aspect-ratio: 640 / 360;
    }

    &:focus-visible {
      outline: 2px solid $focus-visible-on-light;
      outline-offset: 4px;
    }
  }

  .movie__thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .movie__thumbnail-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 44px;
    border-radius: 12px;
    background: $color-youtube-red;
    display: flex;
    align-items: center;
    justify-content: center;

    &::before {
      content: "";
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 8px 0 8px 14px;
      border-color: transparent transparent transparent #fff;
      margin-left: 2px;
    }
  }
}

// how-to-use--------------------------------

.how-to-use {
  background: #fff;
}

// .how-to-use__inner {
// }

// .how-to-use__title {
// }

.how-to-use__boxes {
  margin-top: 104px;
  display: flex;
  flex-direction: column;
  gap: 112px;

  @include mq(pc) {
    margin-top: 89px;
    gap: 75px;
  }
}

.how-to-use__box {
  border-radius: 30px;
  background: #fffbf0;
  padding: 54px 40px 48px;

  @include mq(pc) {
    border-radius: 40px;
    padding: 44px 10px 56px;
  }

  &:nth-of-type(2) .how-to-use__box-title-image {
    @include mq(pc) {
      right: auto;
      left: 35px;
    }
  }

  &:nth-of-type(2) .how-to-use__box-title {
    @include mq(pc) {
      padding-left: 131px;
    }
  }
}

.how-to-use__box-content {
  position: relative;
  max-width: 553px;
  margin-inline: auto;
}

.how-to-use__box-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 1.8px;

  @include mq(pc) {
    font-size: 1.375rem;
    letter-spacing: 2.2px;
    text-align: start;
  }
}

.how-to-use__box-title-image {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: calc(100% + 16px);
  width: 85px;

  @include mq(pc) {
    right: 2px;
    transform: translateX(0);
    bottom: 0;
  }
}

.how-to-use__steps {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  @include mq(pc) {
    margin-top: 40px;
    max-width: 948px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: row;
    gap: 24px;
  }
}

.how-to-use__step {
  @include mq(pc) {
    // width: calc(33.3% - 24px * 2 / 3);
    flex: 1;
  }
}

.step-box {
  padding-top: 45px;
  position: relative;
}

.step-box__head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #111;
  background: #f5810e;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  &.is-type2 {
    background-color: #fabe00;
  }
}

.step-box__head-text {
  font-family: $font-family-en;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 1.3px;
}

.step-box__head-number {
  font-family: $font-family-en;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 3.4px;
  color: #fff;
  margin-top: 3px;
}

.step-box__body {
  border-radius: 30px;
  border: 3px solid #111;
  background: #fff;
  padding: calc(50px - 3px) 10px calc(26px - 3px);
  text-align: center;
}

.step-box__image {
  img {
    width: 160px;

    @include mq(pc) {
      width: 200px;
    }
  }
}

.step-box__text {
  font-weight: 700;
  letter-spacing: 0.48px;
  margin-top: 10px;
}

// merit--------------------------------

// .merit {
// }

// .merit__inner {
// }

// .merit__title {
// }

.merit__boxes {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;

  @include mq(pc) {
    margin-top: 60px;
    gap: 40px;
  }
}

// .merit__box {
// }

.merit-box {
  border-radius: 20px;
  background: #fff;
  padding: 10px 20px 24px;

  @include mq(pc) {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 50px;
  }

  &.is-reverse {
    @include mq(pc) {
      flex-direction: row;
    }
  }
}

.merit-box__content {
  @include mq(pc) {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 50px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

  .is-reverse & {
    @include mq(pc) {
      flex-direction: row;
    }
  }
}

.merit-box__image {
  text-align: center;

  @include mq(pc) {
    width: calc(350 / 920 * 100%);
  }

  img {
    width: 200px;

    @include mq(pc) {
      width: 350px;
    }
  }
}

.merit-box__body {
  margin-top: 18px;

  @include mq(pc) {
    margin-top: 0;
    width: calc(520 / 920 * 100%);
  }
}

.merit-box__head {
  display: flex;
  align-items: center;
  gap: 14px;

  @include mq(pc) {
    gap: 28px;
  }
}

.merit-box__number {
  color: #fabe00;
  font-family: $font-family-en;
  font-size: 4.375rem;
  font-weight: 600;
  line-height: 100%;

  @include mq(pc) {
    font-size: 6.875rem;
  }
}

.merit-box__title {
  font-family: $font-family-en;
  font-weight: 700;
  letter-spacing: 1.6px;

  @include mq(pc) {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
}

.merit-box__text {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 200%;

  @include mq(pc) {
    margin-top: 16px;
    font-size: 0.9375rem;
  }
}

// compare--------------------------------

.compare {
  background: #fff;
}

// .compare__inner {
// }

.compare__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 100%;
  text-align: center;

  @include mq(pc) {
    font-size: 1.5rem;
  }
}

.compare__content {
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 31px;

  // Firefox のみ: 標準のスクロールバー用（Chrome 等では効かせず ::-webkit-scrollbar を使う）
  @supports (-moz-appearance: none) {
    scrollbar-width: thin;
    scrollbar-color: #fabe00 #d9d9d9;
    scrollbar-gutter: stable;
  }

  @include mq(pc) {
    margin-top: 58px;
    padding-bottom: 0;
  }
}

.compare__content::-webkit-scrollbar {
  height: 6px;
}

.compare__content::-webkit-scrollbar-track {
  background: #d9d9d9;
  border-radius: 20px;
}

.compare__content::-webkit-scrollbar-thumb {
  background: #fabe00;
  border-radius: 20px;
}

.compare__table {
  width: 620px;
  table-layout: fixed;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;

  @include mq(pc) {
    width: 1000px;
  }

  th,
  td {
    text-align: center;
    font-weight: 700;
    height: 60px;
    vertical-align: middle;

    @include mq(pc) {
      height: 100px;
    }

    &:nth-child(1) {
      width: 130px;

      @include mq(pc) {
        width: 250px;
      }
    }

    &:nth-child(2) {
      width: 90px;
      background: #fff9e5;
      font-size: 1rem;
      letter-spacing: 0.48px;

      @include mq(pc) {
        width: 250px;
        font-size: 1.5625rem;
        letter-spacing: 0.75px;
      }

      img {
        width: 70px;

        @include mq(pc) {
          width: 123px;
        }
      }
    }
  }

  th {
    letter-spacing: 0.48px;

    @include mq(pc) {
      font-size: 1.25rem;
      letter-spacing: 0.6px;
    }
  }

  td {
    font-size: 0.875rem;
    letter-spacing: 0.42px;

    @include mq(pc) {
      font-size: 1rem;
      letter-spacing: 0.48px;
    }
  }

  thead {
    th {
      letter-spacing: 1.6px;

      @include mq(pc) {
        letter-spacing: 2px;
      }
    }
  }

  tbody {
    tr {
      border-top: 2px solid #000;

      @include mq(pc) {
        border-top-width: 3px;
      }
    }

    th,
    td {
      height: calc(60px - 1.5px);

      @include mq(pc) {
        height: 100px;
      }
    }
  }
}

.compare__attention {
  margin-top: 11px;
  color: #686868;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 100%;
  text-align: center;

  @include mq(pc) {
    display: none;
  }
}

// faq--------------------------------

// .faq {
// }

.faq__inner {
  @include mq(pc) {
    padding-inline: 30px;
    max-width: calc(800px + 30px * 2);
  }
}

// .faq__title {
// }

.faq__items {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 42px;

  @include mq(pc) {
    margin-top: 74px;
  }
}

.faq__item {
  border-radius: 10px;
  border: 3px solid #111;
  background: #fff;

  &[open] {
    .faq__question {
      &::after {
        transform: rotate(180deg);
      }
    }
  }
}

summary {
  &::-webkit-details-marker {
    display: none;
  }
}

.faq__question {
  padding: 29px 37px 17px 12px;
  position: relative;
  display: block;
  width: 100%;

  @include mq(pc) {
    padding: 29px 77px 18px 17px;
  }

  &::before {
    content: "Q";
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    font-family: $font-family-en;
    border: 3px solid #111;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 100%;
    padding: 7px 15px 13px 14px;
    border-radius: 22px;
    background: #f5810e;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;

    @include mq(pc) {
      left: 17px;
    }
  }

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 9.26px;
    height: 6.834px;
    background: url("../img/icon_select_arrow01.avif") no-repeat center center /
      contain;
    margin-top: 3px;
    @include mq(pc) {
      right: 18px;
      margin-top: 0;
    }
  }
}

.faq__item:nth-of-type(3) .faq__question {
  @include mq(pc) {
    padding-right: 87px;
  }
}

.faq__question-text {
  display: block;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.12px;

  @include mq(pc) {
    font-size: 1rem;
    line-height: 27px; /* 168.75% */
    letter-spacing: 1.28px;
  }
}

.faq__answer {
  position: relative;
}

.faq__item[open] .faq__answer,
.faq__item.is-opened .faq__answer {
  padding: 24px 14px 26px 12px;

  @include mq(pc) {
    padding: 8px 33px 26px 20px;
  }

  &::before {
    content: "A";
    position: absolute;
    top: 14px;
    left: 12px;
    font-family: $font-family-en;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 100%;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    border: 3px solid #111;
    background: #fabe00;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    @include mq(pc) {
      top: -1px;
      left: 18px;
    }
  }
}

.faq__answer-text {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.12px;
  flex-grow: 1;
  padding-left: 52px;

  @include mq(pc) {
    font-size: 1rem;
    letter-spacing: 1.28px;
  }
}

// gallery--------------------------------

// .gallery {
// }

.gallery__inner {
  @include mq(pc) {
    padding-inline: 30px;
    max-width: calc(800px + 30px * 2);
  }
}

// .gallery__title {
// }

.gallery__slider {
  margin-top: 30px;

  @include mq(pc) {
    margin-top: 60px;
  }
}

.gallery__swiper {
  padding-bottom: 26px !important;
  padding-inline: 5px !important;
  margin-inline: -5px !important;
  position: relative !important;

  @include mq(pc) {
    padding-inline: 80px !important;
    margin-inline: 0 !important;
  }
}

// .gallery__slide {
// }

.gallery__pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  bottom: 0 !important;

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: #bcbcbc;
    opacity: 1;

    &.swiper-pagination-bullet-active {
      background: #fabe00;
    }
  }
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
  content: "" !important;
}

.swiper-button-prev,
.swiper-button-next {
  color: transparent !important;
}

.gallery__prev,
.gallery__next {
  width: 40px;
  height: 40px;
  margin-top: -37px !important;
  position: absolute;
  content: "";
  top: 50% !important;
  transition: opacity $duration-hover;

  @include mq(pc) {
    width: 50px !important;
    height: 50px !important;
    margin-top: -60px !important;

    &:hover {
      opacity: 0.75;
    }
  }

  &:active {
    opacity: 0.6;
  }

  &:focus-visible {
    outline: 2px solid $focus-visible-on-light;
    outline-offset: 2px;
  }

  &::after {
    display: none;
  }
}

.gallery__prev {
  left: 1px !important;
  background: url("../img/icon_prev01.avif") no-repeat center center / contain;

  @include mq(pc) {
    left: 10px !important;
  }
}

.gallery__next {
  right: 0 !important;
  background: url("../img/icon_next01.avif") no-repeat center center / contain;

  @include mq(pc) {
    right: 10px !important;
  }
}

.gallery-card {
  border-radius: 20px;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 0 9px 30px 0 #f4f4f4;
  padding: calc(15px - 3px) calc(15px - 3px) calc(12px - 3px);

  @include mq(pc) {
    border-radius: 30px;
    padding: calc(20px - 3px) calc(20px - 3px) calc(18px - 3px);
  }
}

.gallery-card__image {
  text-align: center;

  img {
    border-radius: 10px;

    @include mq(pc) {
      border-radius: 20px;
    }
  }
}

.gallery-card__text {
  margin-top: 11px;
  text-align: center;
  font-size: 0.875rem;

  @include mq(pc) {
    margin-top: 18px;
    font-size: 1rem;
  }
}

// contact--------------------------------

.contact {
  padding-block: 60px;
  background: url("../img/bg_section01.avif") repeat top left / 529px auto;

  @include mq(pc) {
    padding-block: 99px;
  }
}

// .contact__inner {
// }

.contact__box {
  border-radius: 30px;
  background: #fff;
  padding: 60px 20px;

  @include mq(pc) {
    padding-left: 30px;
    padding-right: 30px;
  }
}

// .contact__title {
// }

.contact__errors {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 5px;
  border: 2px solid $color-error;
  background: #fff;
  color: $color-base;

  @include mq(pc) {
    margin-bottom: 24px;
    padding: 24px;
  }
}

.contact__errors-title {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: $color-error;

  @include mq(pc) {
    font-size: 1.125rem;
    margin-bottom: 16px;
  }
}

.contact__errors-list {
  margin: 0;
  padding-left: 20px;

  li {
    margin-top: 8px;
    line-height: 1.6;

    &:first-child {
      margin-top: 0;
    }
  }

  a {
    color: $color-error;
    text-decoration: underline;
    text-underline-offset: 2px;

    &:hover,
    &:focus {
      text-decoration: none;
    }
  }
}

.contact__form {
  margin-top: 30px;

  @include mq(pc) {
    margin-top: 50px;
    max-width: 612px;
    margin-left: auto;
    margin-right: auto;
  }
}

.contact__fields {
  display: flex;
  flex-direction: column;
  gap: 30px;

  @include mq(pc) {
    .contact__field:nth-of-type(3) {
      display: flex;
      gap: 32px;
    }

    .contact__field:nth-of-type(3) .form-field {
      display: contents;
    }
  }
}

// .contact__field {
// }

.contact__privacy {
  margin-top: 29px;
  text-align: center;
}

.contact__button {
  margin-top: 29px;
  text-align: center;

  @include mq(pc) {
    margin-top: 38px;
  }
}

.form-field {
  @include mq(pc) {
    display: flex;
    gap: 32px;
  }

  &[aria-invalid="true"],
  &.is-error {
    .form-field__label,
    .form-field__head .form-field__label {
      color: $color-error;
    }
  }
}

.form-field__head {
  display: flex;
  align-items: center;
  gap: 10px;

  @include mq(pc) {
    width: calc(212px - 32px);
    flex-shrink: 0;
    justify-content: flex-end;
  }
}

.form-field__label {
  font-weight: 700;
  line-height: calc(23 / 16); // 23px
}

.form-field__tag {
  display: inline-block;
  border-radius: 2px;
  background: #ee8013;
  padding: 6px 8px 5px;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 1.98px;

  &.is-option {
    background-color: #43b549;
  }
}

.form-field__item {
  margin-top: 15px;
  flex-grow: 1;

  @include mq(pc) {
    margin-top: 0;
  }
}

.form-field__error {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: $color-error;
  line-height: 1.5;

  &:empty {
    display: none;
  }

  @include mq(pc) {
    font-size: 1rem;
    margin-top: 10px;
  }
}

.form-text {
  width: 100%;
  border-radius: 5px;
  border: 3px solid #111;
  background: #fff;
  padding: calc(15px - 3px) calc(16px - 3px) calc(14px - 3px);
  transition: border-color 0.3s;

  &:hover,
  &:focus {
    border-color: $color-key2;
    outline: none;
  }

  &[aria-invalid="true"],
  &.is-error {
    border-color: $color-error;
  }
}

.from-radio {
  line-height: calc(23 / 16);

  @include mq(pc) {
    &:hover {
      .from-radio__text {
        &::before {
          border-color: #fabe00;
        }
      }
    }
  }
}

.from-radio__input {
  width: 1px;
  height: 1px;
  position: absolute;
  clip-path: inset(0);
  overflow: hidden;

  &:checked {
    + .from-radio__text {
      &::after {
        opacity: 1;
      }
    }
  }

  // &:focus {
  //   + .from-radio__text {
  //     &::before {
  //       border-color: #fabe00;
  //     }
  //   }
  // }
}

.from-radio__text {
  font-weight: 700;
  padding-left: 28px;
  position: relative;

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
  }

  &::before {
    width: 24px;
    height: 24px;
    border: 3px solid #111;
    left: 0;
    transition: border-color 0.3s;
  }

  &::after {
    width: 10px;
    height: 10px;
    background: #f5810e;
    left: 7px;
    opacity: 0;
  }
}

.form-select {
  appearance: none;
  width: 100%;
  border-radius: 5px;
  border: 3px solid #111;
  font-weight: 700;
  padding: calc(15px - 3px) calc(46px - 3px) calc(14px - 3px) calc(16px - 3px);
  background: url("../img/icon_select_arrow01.avif") no-repeat center right
    14px / 13.217px 10.182px;
  transition: border-color 0.3s;

  &:hover,
  &:focus {
    border-color: #fabe00;
    outline: none;
  }
}

.form-textarea {
  border-radius: 5px;
  border: 3px solid #111;
  background: #fff;
  width: 100%;
  height: 180px;
  padding: calc(16px - 3px);
  transition: border-color 0.3s;

  &:hover,
  &:focus {
    border-color: $color-key2;
    outline: none;
  }

  &[aria-invalid="true"],
  &.is-error {
    border-color: $color-error;
  }
}

.form-field__radios {
  display: flex;
  flex-direction: column;
  gap: 17px;

  @include mq(pc) {
    flex-direction: row;
    gap: 30px;
  }
}

.form-field__radio {
  // custom radio layout is currently not used
}

// .form-field__radio-text {
//   font-weight: 700;
//   padding-left: 28px;
//   position: relative;

//   &::before,
//   &::after {
//     content: "";
//     position: absolute;
//     top: 50%;
//     transform: translateY(-50%);
//     border-radius: 50%;
//   }

//   &::before {
//     width: 24px;
//     height: 24px;
//     border: 3px solid #111;
//     left: 0;
//   }

//   &::after {
//     width: 10px;
//     height: 10px;
//     background: #f5810e;
//     left: 7px;
//     opacity: 0;
//   }
// }

.form-checkbox {
  &:hover {
    .form-checkbox__text {
      &::before {
        border-color: #fabe00;
      }
    }
  }
}

.form-checkbox__input {
  width: 1px;
  height: 1px;
  position: absolute;
  clip-path: inset(0);
  overflow: hidden;

  &:checked {
    + .form-checkbox__text {
      &::after {
        opacity: 1;
      }
    }
  }

  &:focus {
    + .form-checkbox__text {
      &::before {
        border-color: $color-key2;
      }
    }
  }

  &[aria-invalid="true"] {
    + .form-checkbox__text::before {
      border-color: $color-error;
    }
  }
}

.form-checkbox__text {
  position: relative;
  padding-left: 30px;
  font-size: 0.875rem;
  font-weight: 700;

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  &::before {
    width: 20px;
    height: 20px;
    border-radius: 1px;
    border: 1px solid #111;
    transition: border-color 0.3s;

    @include mq(pc) {
      margin-top: 2px;
    }
  }

  &::after {
    width: 23px;
    height: 17.53px;
    left: -1px;
    margin-top: -1.2px;
    background: url("../img/icon_check01.avif") no-repeat center center /
      contain;
    opacity: 0;

    @include mq(pc) {
      margin-top: 0.8px;
    }
  }

  a {
    text-decoration-line: underline;
    font-weight: 700;
    transition: color $duration-hover;

    @include mq(pc) {
      &:hover {
        color: #f5810e;
      }
    }

    &:active {
      opacity: 0.8;
    }

    &:focus-visible {
      outline: 2px solid $color-key1;
      outline-offset: 2px;
    }
  }
}

// cta--------------------------------

.cta {
  background: $color-gradation;
  text-align: center;
  padding-block: 50px;

  @include mq(pc) {
    padding-block: 60px;
  }
}

// .cta__inner {
// }

.cta__text {
  font-weight: 700;
  line-height: 200%;
  letter-spacing: 0.48px;

  @include mq(pc) {
    font-size: 1.125rem;
    letter-spacing: 0.54px;
  }
}

.cta__button {
  margin-top: 16px;
}

// footer--------------------------------

.footer {
  background: #111;
  padding-top: 8px;
  padding-bottom: 12px;
  text-align: center;
}

// .footer__inner {
// }

.footer__copyright {
  color: #f5f5f5;
  font-size: 0.75rem;
  line-height: 100%;
  letter-spacing: 0.96px;
}

.pagetop {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: min(calc(50 / 375 * 100%), 50px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform $duration-active;

  @include mq(pc) {
    right: 16px;
    bottom: 30px;
    width: 76px;

    &:hover {
      transform: scale(1.05);
    }
  }

  &:active {
    transform: scale(0.95);
  }

  &:focus-visible {
    outline: 2px solid $focus-visible-on-light;
    outline-offset: 2px;
  }

  &.is-show {
    opacity: 1;
    visibility: visible;
  }
}

// modal--------------------------------

:root:has(dialog[open]) {
  overflow: hidden;
}

.about-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 15px * 2);
  max-height: calc(100% - 20px * 2);
  overflow: auto;
  padding: 16px 15px 64px;
  border-radius: 20px;
  background: #fff;
  border: none;
  z-index: map.get($layer, modal);

  @include mq(pc) {
    width: 1140px;
    padding: 49px 70px 75px;
  }

  &::backdrop {
    opacity: 0.2;
    background: #000;
  }
}

.about-modal__head {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
}

.about-modal__close-icon {
  cursor: pointer;
  transition:
    opacity $duration-hover,
    transform $duration-active;

  @include mq(pc) {
    &:hover {
      opacity: 0.75;
    }
  }

  &:active {
    transform: scale(0.95);
  }

  &:focus-visible {
    outline: 2px solid $focus-visible-on-light;
    outline-offset: 2px;
  }

  img {
    width: 37px;
  }
}

.about-modal__body {
  margin-top: 12px;

  @include mq(pc) {
    margin-top: 43px;
  }

  p {
    font-size: 0.875rem;

    @include mq(pc) {
      font-size: 1rem;
    }

    &:nth-child(n + 2) {
      margin-top: 20px;
    }
  }
}

.about-modal__close-button {
  margin-top: 30px;
  text-align: center;
}

// animation--------------------------------

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s,
    transform 1s;

  &.is-in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-down {
  opacity: 0;
  transform: translateY(-24px);
  transition:
    opacity 1s,
    transform 1s;

  &.is-in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transition: opacity 1s;

  &.is-in-view {
    opacity: 1;
  }
}
