* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* 別ページからの遷移してきた場合はスクロール不要 */
html.no-smooth-scroll {
  scroll-behavior: auto;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #3d4545;
  font-size: clamp(10.24px, 3.2vw, 20.48px);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

main {
  background-color: #f7f8f8;
}

header {
  height: 48px;
  display: flex;
  align-items: center;
  padding-left: 28px;
}

footer {
  padding: 12px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: end;
  background-color: #f7f8f8;
  gap: 36px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 12px;
}

footer .links-wapper {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 22px;
}

footer a {
  color: #616f6f;
}

footer p {
  align-self: center;
}

footer small {
  font-size: 11px;
}

a {
  color: #2f6cdc;
  font-weight: 500;
  line-height: 180%;
  text-decoration: none;
}

h1 {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(15.36px, 4.8vw, 30.72px);
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0.9px;
}

h2 {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(13.664px, 4.27vw, 27.328px);
  font-weight: 700;
}

p {
  letter-spacing: 0.5px;
}

section.faq {
  padding: clamp(13.664px, 4.27vw, 27.328px) clamp(6.816px, 2.13vw, 13.632px);

  display: flex;
  flex-direction: column;
  gap: clamp(6.816px, 2.13vw, 13.632px);
}

section.others {
  padding: 0 clamp(6.816px, 2.13vw, 13.632px);

  display: flex;
  flex-direction: column;
  gap: clamp(6.816px, 2.13vw, 13.632px);
}

section.faq h1 {
  padding: clamp(6.816px, 2.13vw, 13.632px);
}

.menu-container {
  position: fixed;
  top: calc(48px + clamp(11.936px, 3.73vw, 23.872px));
  right: clamp(10.24px, 3.2vw, 20.48px);
  z-index: 1000;
  transition: top 0.3s ease;
}

/* ヘッダーの高さ分スクロールしたらメニューの位置を調整する */
.menu-container.is-scrolled {
  top: clamp(11.936px, 3.73vw, 23.872px);
}

.menu-toggle {
  position: absolute;
  top: 100%;
  right: 0;
  padding: clamp(6.816px, 2.13vw, 13.632px);
  background-color: #e9ecec;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  z-index: 1001;
}

.menu-icon {
  display: block;
  width: clamp(20.48px, 6.4vw, 40.96px);
  height: clamp(20.48px, 6.4vw, 40.96px);

  /* ハンバーガーメニューのSVG */
  background-image: url("../assets/ico_menu.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.menu-toggle.is-active .menu-icon {
  background-image: url("../assets/ico_menu_close.svg");
}

.menu {
  font-family: "M PLUS Rounded 1c", sans-serif;
  position: absolute;
  padding: clamp(10.24px, 3.2vw, 20.48px) clamp(6.816px, 2.13vw, 13.632px);
  top: clamp(-3.424px, -1.07vw, -6.848px);
  right: clamp(-3.424px, -1.07vw, -6.848px);
  width: clamp(187.744px, 58.67vw, 375.488px);
  border-radius: clamp(17.056px, 5.33vw, 34.112px);
  background: #fff;
  box-shadow: 0 1px 0.75px 0.25px rgba(12, 14, 14, 0.07),
    0 1px 4px 1.25px rgba(12, 14, 14, 0.12);
  display: none;
  transition: top 0.3s ease;
}

.menu.is-active {
  display: block;
}

.menu .menu-item {
  padding: clamp(10.24px, 3.2vw, 20.48px) clamp(3.424px, 1.07vw, 6.848px)
    clamp(10.24px, 3.2vw, 20.48px) clamp(10.24px, 3.2vw, 20.48px);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.menu-item img {
  width: 20px;
}

.menu p {
  color: #889797;
  font-size: clamp(13.664px, 4.27vw, 27.328px);
  font-weight: 700;
  line-height: normal;
  letter-spacing: 3.2px;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li a {
  display: block;
  color: #3d4545;
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 14, 14, 0.08);
}

.menu li a:hover {
  background: linear-gradient(
      0deg,
      rgba(12, 14, 14, 0.04) 0%,
      rgba(12, 14, 14, 0.04) 100%
    ),
    #fff;
}

.menu li a.last {
  border-bottom: none;
}

.question-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.q-title {
  padding: clamp(10.24px, 3.2vw, 20.48px) clamp(6.816px, 2.13vw, 13.632px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(13.664px, 4.27vw, 27.328px);
  cursor: pointer;
  transition: background-color 0.3s ease; /* アコーディオンの開閉時動作を滑らかに */
  letter-spacing: 0.5px;
}

.q-title.is-active {
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.8);
}

.q-title::after {
  content: "";
  flex-shrink: 0; /* 文字が長い時に縮小したくない */

  width: clamp(17.056px, 5.33vw, 34.112px);
  height: clamp(17.056px, 5.33vw, 34.112px);

  background-image: url(../assets/ico_accordion_close_gray.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.q-title.is-active::after {
  background-image: url(../assets/ico_accordion_open_gray.svg);
}

.q-answer {
  display: flex;
  padding: 0 clamp(10.24px, 3.2vw, 20.48px);
  border-bottom: 1px solid rgba(12, 14, 14, 0.08);
  flex-direction: column;
  gap: clamp(10.24px, 3.2vw, 20.48px);
  overflow: hidden;
  height: 0;
  transition: padding-top 0.3s ease, height 0.3s ease,
    background-color 0.3s ease; /* アコーディオンの開閉時動作を滑らかに */
  line-height: 180%;
  color: #616f6f;
}

.q-answer.is-active {
  height: auto;
  background-color: rgba(255, 255, 255, 0.8);
  padding: clamp(3.424px, 1.07vw, 6.848px) clamp(10.24px, 3.2vw, 20.48px)
    clamp(13.664px, 4.27vw, 27.328px) clamp(10.24px, 3.2vw, 20.48px);
}

.q-answer ul,
.q-answer ol,
.q-answer div {
  display: flex;
  flex-direction: column;
  gap: clamp(10.24px, 3.2vw, 20.48px);
}

.q-answer ul li::before {
  content: "・";
  font-weight: 700;
}

.q-answer ul li {
  display: flex;
}

.q-answer li strong {
  font-weight: 700;
}

.q-answer ol li {
  margin-left: clamp(13.664px, 4.27vw, 27.328px);
  padding-left: clamp(3.424px, 1.07vw, 6.848px);
}

.q-answer a {
  font-weight: 400;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.others h2 {
  display: flex;
  align-items: center;
  gap: clamp(10.24px, 3.2vw, 20.48px);
  margin: clamp(13.664px, 4.27vw, 27.328px) 0 clamp(6.816px, 2.13vw, 13.632px) 0;
  padding: clamp(10.24px, 3.2vw, 20.48px) clamp(13.664px, 4.27vw, 27.328px)
    clamp(10.24px, 3.2vw, 20.48px) clamp(10.24px, 3.2vw, 20.48px);
  background-color: white;
  border-radius: clamp(10.24px, 3.2vw, 20.48px);
}

.others h2::before {
  content: "";
  width: clamp(4.256px, 1.33vw, 8.512px);
  height: clamp(13.664px, 4.27vw, 27.328px);
  flex-shrink: 0;
  border-radius: clamp(3.424px, 1.07vw, 6.848px);
  background: #ffb163;
}

/* タブレットスタイル */
@media screen and (min-width: 726px) {
  body {
    font-size: 14px;
  }

  header {
    height: 100px;
    padding-left: 40px;
  }

  header img {
    height: 28px;
  }

  footer {
    padding: 16px 40px 48px;
    gap: 112px;
    font-size: 14px;
    border-top: 1px solid #e9ecec;
  }

  footer .links-wapper {
    flex-direction: row;
    align-items: end;
    gap: 24px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  section.faq {
    padding: 16px 8px;
    gap: 8px;
  }

  section.others {
    padding: 0 8px 128px;
    gap: 8px;
  }

  section.faq h1 {
    padding: 8px;
  }

  .menu-container {
    top: calc(100px + 8px);
    right: 20px;
  }

  .menu-container.is-scrolled {
    top: 20px;
  }

  .menu-toggle {
    padding: 10px;
  }

  .menu-icon {
    width: 32px;
    height: 32px;
  }

  .menu {
    padding: 8px 8px 12px;
    top: -4px;
    right: -4px;
    width: 272px;
    border-radius: 20px;
  }

  .menu .menu-item {
    padding: 12px 4px 12px 12px;
  }

  .menu p {
    font-size: 16px;
  }

  .q-title {
    padding: 12px 8px;
    gap: 16px;
  }

  .q-title::after {
    width: 20px;
    height: 20px;
  }

  .q-answer {
    padding: 0 12px;
    gap: 12px;
  }

  .q-answer.is-active {
    padding: 4px 12px 16px 12px;
  }

  .q-answer ul,
  .q-answer ol,
  .q-answer div {
    gap: 12px;
  }

  .q-answer ol li {
    margin-left: 16px;
    padding-left: 4px;
  }

  .others h2 {
    gap: 12px;
    margin: 16px 0 8px 0;
    padding: 12px 16px 12px 12px;
    border-radius: 12px;
  }

  .others h2::before {
    width: 5px;
    height: 18px;
    border-radius: 4px;
  }
}

/* PCスタイル */
@media screen and (min-width: 1080px) {
  main {
    display: flex;
    padding: 0 28px;
  }

  footer .links-wapper {
    flex-direction: row;
    align-items: end;
    gap: 32px;
  }

  .menu-container {
    width: 272px;

    position: static;
    top: initial;
    right: initial;
    z-index: initial;
  }

  .menu {
    display: block;
    position: fixed;
    left: 28px;
    top: calc(100px + 32px);
    overflow-y: auto;
    background-color: white;
  }

  .menu.is-scrolled {
    top: 32px;
  }

  .main-container {
    flex: 1;
    padding: 16px 16px 0;
  }

  .menu-toggle {
    display: none;
  }

  .menu {
    display: block;
  }
}
