@charset "utf-8";

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

section[id],
.section__title[id] {
  scroll-margin-top: 96px;
}

body {
  font-size: 16px;
  line-height: 1.86;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  max-width: 100%;
  width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  position: relative;
  z-index: 0;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: #434343;
}

.cta-button {
  color: #fff;
  font-size: 17px;
  background-color: #000;
  padding: 33px;
  display: inline-block;
  border-radius: 5px;
  font-weight: bold;
  margin: 60px auto 0;
  text-align: center;
  position: relative;
  width: 364px;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.25s ease;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.cta-button:hover::after {
  transform: translate(4px, -50%) rotate(-45deg);
}

header {
  position: fixed;
  top: 0;
  padding: 20px 40px;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #000;
  transition: transform 0.3s ease-in-out;
}

header nav {
  position: static;
  top: auto;
  z-index: auto;
}

header a {
  display: inline;
}

header .logo {
  display: block;
  width: 200px;
  height: auto;
}

header nav ul {
  z-index: 10;
  display: flex;
  gap: 35px;
}

header nav ul li a {
  color: #fff;
}

.hamburger-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1100;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.hamburger-menu span + span {
  margin-top: 8px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

html.fv-horizontal-scroll-locked,
body.fv-horizontal-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

header.hidden {
  transform: translateY(-100%);
}

.fv {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  margin-bottom: 100svh;
  --fv-character-width: clamp(108px, 14.4vw, 216px);
  --fv-character-left: clamp(8px, 1.6vw, 20px);
  --fv-character-bottom: clamp(0px, 2vh, 20px);
}

.fv h1 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 85px;
  line-height: 1.2;
  font-weight: 400;
  font-synthesis: none;
}

.fv__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.fv__video > div {
  width: 100%;
  height: 100%;
}

.fv__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fv__video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.fv__character {
  position: absolute;
  bottom: 1vw;
  z-index: 4;
  width: var(--fv-character-width);
  pointer-events: none;
  transform: translateX(var(--fv-character-scroll-x, 0px));
}

.fv__character img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: fv-character-slide-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s
    backwards;
}

.container {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 300px;
  background-color: #dad5a4;
}

.scrollbar-text {
  display: inline-block;
  position: absolute;
  bottom: 0;
  padding: 10px 10px 110px;
  color: #fff;
  font-size: 14px;
  font-family: serif;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  right: 0;
}

.scrollbar {
  position: absolute;
  right: 0;
  bottom: 1px;
}

.scrollbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -16px;
  width: 1px;
  height: 100px;
  background: #fff;
  animation: liner 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes liner {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  30% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  70% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

@media screen and (max-width: 1200px) {
  .fv {
    --fv-character-width: clamp(90px, 12vw, 168px);
    --fv-character-left: clamp(0px, 1vw, 12px);
    --fv-character-bottom: 8px;
  }
}

@keyframes fv-character-slide-in {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fv__text {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: white;
  font-size: 16px;
  text-align: center;
  width: 90%;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 0 60px;
  margin: 0 auto;
  transition: color 0.45s ease;
}

.fv.is-text-only:not(.is-text-floating) {
  background-color: #fff;
}

.fv__text::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.8s ease;
}

.fv.is-text-floating .fv__text::before {
  opacity: 1;
}

.fv.is-text-only .fv__video,
.fv.is-text-only .fv__video::before {
  opacity: 0;
  visibility: hidden;
}

.fv.is-text-floating .fv__character,
.fv.is-text-only .fv__character {
  position: fixed;
}

.fv.is-text-only:not(.is-text-floating) .fv__text {
  color: #000;
}

.fv.is-text-only:not(.is-text-floating) .fv__character {
  opacity: var(--fv-character-opacity, 1);
  transform: translateX(var(--fv-character-scroll-x, 0px));
}

.fv.is-text-floating .fv__text {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100svh;
  padding-top: 120px;
  padding-bottom: 60px;
  z-index: 3;
}

.fv__text-item,
.fv__text-lead {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.fv__text-item:nth-of-type(1) {
  font-size: 27px;
}

.fv__text-lead {
  font-size: 20px;
}

.fv__text-item small {
  font-size: 12px;
}

.fv__text-item h1 {
  display: inline-block;
  overflow: hidden;
}

.fv__text-item h1 span {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}

.fv__text-line {
  color: #fff;
  transition: color 0.3s ease;
}

.fv__text-item h1 .fv__text-line {
  display: block;
}

.fv__text-line.is-outside-video {
  color: #000;
}

.fv__text-item h1 span.is-visible {
  animation: none;
}

.section__title.is-visible {
  visibility: visible;
  animation: section-title-rise-up 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.local {
  display: inline-block;
  font-size: 36px;
  padding: 10px 15px;
  margin-bottom: 20px;
}

.local img {
  display: block;
  width: min(460px, 90vw);
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.local.is-outside-video img {
  filter: brightness(0);
}

@keyframes text-rise-up {
  from {
    opacity: 0;
    transform: translateY(120px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-title-rise-up {
  from {
    transform: translateY(60px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes case-curtain-open {
  from {
    transform: translateX(0);
  }

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

.section__title--inner {
  overflow: hidden;
}

.section__title {
  overflow: hidden;
  visibility: hidden;
  transform: translateY(60px);
  font-weight: bold;
  text-align: center;
  line-height: 1.35;
  margin-top: 200px;
  font-size: 30px;
}

.section__title--bold {
  font-weight: bold;
  font-size: 60px;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 60px;
}

.section__title--highlight {
  color: #e2302a;
}

section {
  width: 72%;
  margin: 0 auto;
}

.case__section {
  position: relative;
  z-index: 1;
  width: 100%;
}

.case__section .section__title {
  margin-top: 30px;
}

.case__caption {
  text-align: center;
}

.case__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid #a3a3a3;
  border-left: 1px solid #a3a3a3;
  background-color: #fff;
}

.case__study--item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid #a3a3a3;
  border-bottom: 1px solid #a3a3a3;
  padding: 24px;
}

.case__study--item img {
  border: #d4d4d4 1px solid;
}

.case__study--item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #e2302a;
  transform: translateX(0);
  /* 一時停止: 0 で赤いカーテン演出を非表示。再開時は 1 に戻す */
  /* opacity: 0; */
  pointer-events: none;
}

.case__study--item.is-curtain-open::after {
  animation: case-curtain-open 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.case__study--item-name {
  font-weight: bold;
}

.trouble__image {
  margin-top: 50px;
}

.trouble__image-sp {
  display: none;
}

.trouble__content {
  --trouble-bg-scale: 1;
  position: relative;
  z-index: 0;
  isolation: isolate;
  background-color: transparent;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  padding: 140px 0;
  margin-top: 150px;
  margin-bottom: 100px; /* Added spacing below the section to prevent overlap */
  width: 100%;
}

.trouble__content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #e2302a;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  transform-origin: center top;
  transform: scaleY(var(--trouble-bg-scale));
  will-change: transform;
  pointer-events: none;
}

.trouble__message {
  font-size: 32px;
  font-weight: bold;
  color: #e2302a;
  text-align: center;
}

.trouble__challenge {
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  text-align: center;
}

.trouble__challenge {
  margin-top: 20px;
}

.trouble__challenge--box {
  margin: 20px 0;
}

.trouble__inner {
  background-color: #ffffff;
  width: 72%;
  margin: 0 auto;
  padding: 57px;
  transform: translateY(5%);
  border-radius: 15px;
}

.trouble__text--highlight {
  font-size: 30px;
  color: #e2302a;
}

.trouble__area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.trouble__policy {
  text-align: center;
  font-size: 20px;
}

.trouble__image--area {
  width: 370px;
  margin-top: 30px;
}

.trouble__coverage,
.trouble__region,
.trouble__text--highlight,
.trouble__policy {
  font-weight: bold;
  text-align: center;
}

.trouble__coverage {
  font-size: 30px;
}

.trouble__region {
  font-size: 19px;
  text-align: justify;
}

.offer__container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  border-top: 1px solid #a3a3a3;
  border-left: 1px solid #a3a3a3;
  border-right: 1px solid #a3a3a3;
}

.offer__item {
  flex: 0 0 50%;
  box-sizing: border-box;
  margin-bottom: 20px;
  margin: 0;
  border-right: none;
  border-bottom: 1px solid #a3a3a3;
  padding: 11px 0 46px;
}

.offer__item:nth-child(odd) {
  border-right: 1px solid #a3a3a3;
}

.offer__item img {
  width: 322px;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.offer__title {
  text-align: center;
  font-size: 24px;
  color: #e2302a;
}

.offer__description {
  width: 61%;
  margin: 0 auto;
  margin-top: 5px;
}

.merit__section {
  width: 100%;
}

/* PC用とSP用の表示切り替え */
.merit__contents-pc {
  display: block; /* デフォルトで表示 */
}

.merit__contents-sp {
  display: none; /* デフォルトで非表示 */
}

.merit__contents {
  position: sticky; /* スクロール時に固定 */
  top: 0; /* ビューポートの上部に固定 */
  height: 100vh; /* 各 .merit__contents がビューポート全体を埋める */
  margin-top: 82px;
  border-radius: 30px;
  z-index: 1;
}

.merit__contents--inner {
  width: 72%;
  display: flex;
  gap: 37px;
  margin: 0 auto;
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
  height: 100%; /* 必要に応じて高さを指定 */
  position: relative;
}

.merit__contents img {
  width: 50%;
}

.merit__title {
  top: 25%;
  z-index: 1;
  font-weight: bold;
  font-size: 50px;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1rem + 2vw, 1.5rem + 2vw, 100%);
  white-space: nowrap;
  word-break: keep-all;
}

.merit__title--split-bg {
  padding: 8px 28px !important;
}

.merit__title--split-bg span {
  display: inline;
  padding: 0;
}

.merit__contents:nth-of-type(odd) .merit__title--split-bg span {
  color: #e2302a;
  background-color: #fff;
}

.merit__contents:nth-of-type(even) .merit__title--split-bg span {
  color: #fff;
  background-color: #e2302a;
}

.merit__contents:nth-of-type(1),
.merit__contents:nth-of-type(3) {
  background-color: #e2302a;
}

.merit__contents:nth-of-type(1) .merit__title,
.merit__contents:nth-of-type(3) .merit__title {
  transform: none;
  text-align: left;
  color: #e2302a;
  background-color: #fff;
  display: block;
  width: fit-content;
  margin-right: auto;
  padding: 8px 28px;
}

.merit__contents:nth-of-type(1) p,
.merit__contents:nth-of-type(3) p {
  color: #fff;
}

.merit__contents:nth-of-type(2),
.merit__contents:nth-of-type(4) {
  background-color: #fff;
}

.merit__contents:nth-of-type(2) .merit__title,
.merit__contents:nth-of-type(4) .merit__title {
  transform: none;
  text-align: right;
  color: #fff;
  background-color: #e2302a;
  display: block;
  width: fit-content;
  margin-left: auto;
  padding: 8px 28px;
}

.merit__contents:nth-of-type(2) p,
.merit__contents:nth-of-type(4) p {
  color: #000; /* 2番目と4番目のタイトルの色を変更 */
}

.merit__text {
  margin-top: 20px;
}

.cost__section {
  width: 100%;
  background-color: #f0f0f0;
  margin-top: 200px;
  text-align: center; /* 子要素を中央揃えにする */
}

.cost__inner {
  width: 72%;
  margin: 0 auto;
  padding: 90px 0;
}

.cost__inner h2 {
  margin: 0;
}

.cost__description {
  text-align: center;
}

.cost__container {
  display: flex;
  justify-content: space-between; /* 子要素間のスペースを均等に分配 */
  align-items: flex-start; /* 必要に応じて縦方向の整列を調整 */
  gap: 40px; /* 子要素間の隙間を設定 */
  margin-top: 125px;
}

.cost__item {
  background-color: #fff;
  width: 30%;
  border-radius: 30px;
}

.cost__label {
  --cost-label-delay: 0s;
  background-color: #e2302a;
  color: white;
  font-size: 20px;
  padding: 15px 10px;
  border-radius: 5px;
  width: 80%;
  position: relative;
  top: -30px;
  margin: 0 auto;
  text-align: center;
  line-height: normal;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease var(--cost-label-delay),
    transform 0.6s ease var(--cost-label-delay);
}

.cost__label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cost__label::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #e2302a;
}

.cost__label--inner {
  width: 82%;
  margin: 0 auto;
  padding-bottom: 49px;
}

.cost__price {
  font-size: 21px;
  font-weight: 600;
}

.cost__detail {
  justify-content: space-between;
  font-size: 20px;
}

.cost__detail-label {
  font-size: 16px;
}

.cost__detail:not(:last-child) {
  border-bottom: 1px solid #dddddd; /* 線の色と太さを指定 */
  padding: 22px 0; /* 線とコンテンツの間に余白を追加 */
}

.cost__detail:last-child {
  padding-top: 20px; /* 必要に応じて値を調整 */
}

.cost__amount {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 40px;
  color: #e2302a;
  margin: 0 5px;
}

.cost__price {
  text-align: center; /* テキストを中央揃え */
  margin: 0 auto; /* 要素全体を中央揃え */
}

.cost__section small {
  display: block;
  text-align: center;
  margin-top: 70px;
}

.cost__detail-value {
  font-weight: bold;
  font-size: 18px;
}

.cost__note {
  margin-top: 20px;
  font-size: 14px;
  color: #000;
}

.web-advertisement-container {
  display: flex;
  gap: 55px;
  margin-top: 40px;
}

.web-advertisement__title {
  background-color: #e2302a;
  display: inline;
  padding: 11px 21px;
  font-size: 25px;
  font-weight: bold;
  color: #fff;
}

.web-advertisement__description {
  margin-top: 20px;
}

.web-advertisement-section .cta-button {
  display: flex; /* フレックスボックスを使用 */
  justify-content: center; /* 水平方向に中央揃え */
  margin: 40px auto; /* 上下左右の余白を設定 */
}

.info__section {
  width: 72%;
  margin: 0 auto;
  padding-bottom: 100px;
}

.info__container {
  display: flex;
  gap: 84px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.info__img {
  width: 50%;
}

.info__logo {
  width: 330px;
}

.info__description {
  margin-top: 15px;
}

.info__list-title {
  margin-top: 42px;
  font-size: 20px;
  font-weight: bold;
}

.info__list {
  margin-bottom: 20px;
}

.flow__list {
  list-style: none;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  margin: 60px auto; /* 全体を中央に寄せる */
}

.flow-item {
  --flow-item-gap: 120px;
  --flow-line-height: 80px;
  display: flex;
  align-items: center; /* アイコンとテキストを縦中央に */
  margin-bottom: var(--flow-item-gap); /* 項目ごとの間隔 */
  position: relative; /* 赤い線の基準点 */
}

/* 左側のアイコンエリア */
.flow-item__icon {
  width: 150px; /* アイコンの横幅を固定して揃える */
  height: 120px; /* アイコンの高さを固定して揃える */
  text-align: center;
  flex-shrink: 0; /* 画面が狭まってもアイコンを潰さない */
  display: flex; /* 中央揃えのためにフレックスボックスを使用 */
  align-items: center; /* 縨方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
}

.flow-item__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* 肝心の「赤い線」 */
.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(100% + (var(--flow-item-gap) - var(--flow-line-height)) / 2);
  left: 75px; /* アイコンの中央（widthの半分）に合わせる */
  width: 4px; /* 線の太さ */
  height: var(--flow-line-height);
  background-color: #d32f2f;
  transform: translateX(-50%) scaleY(var(--flow-line-progress, 0));
  transform-origin: center top;
}

/* 右側のテキストエリア */
.flow-item__content {
  padding-left: 30px;
  font-size: 24px;
  font-weight: bold;
}

.flow-item__title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

/* 赤い線のアニメーションを追加 */
.flow-item {
  position: relative;
}

.flow-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: red;
  transition: width 0.8s ease;
}

.flow-item.active::before {
  width: 100%;
}

.br-sp {
  display: none; /* Default: hidden */
}

@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  section[id],
  .section__title[id] {
    scroll-margin-top: 60px;
  }

  header {
    padding: 14px 16px;
  }

  header .logo {
    width: min(40vh, 270px);
  }

  .hamburger-menu {
    display: block;
  }

  header nav.nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
    z-index: 1050;
  }

  header nav.nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .fv {
    height: 100dvh;
    min-height: 100svh;
    margin-bottom: 100dvh;
  }

  .fv__video,
  .fv__video > div {
    width: 100%;
    height: 100%;
  }

  .fv__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .fv__text-item h1 {
    font-size: 45px;
  }

  .fv__character {
    left: max(8px, env(safe-area-inset-left));
    right: auto;
    width: 22vw;
    bottom: clamp(2px, 1vh, 8px);
    opacity: 0.88;
  }

  .fv__character img {
    max-height: min(22vh, 160px);
  }

  .fv__text-item p {
    font-size: 22px;
  }
  .fv__text-lead {
    font-size: 12px;
  }

  .fv.is-text-floating .fv__text {
    padding-top: 84px;
  }

  .local {
    font-size: 24px;
  }

  .scrollbar-text {
    font-size: 8px;
    padding-bottom: 70px;
  }

  .scrollbar::after {
    left: -14px;
    width: 0.1px;
    height: 60px;
  }

  header nav.nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 24px;
  }

  header nav.nav-menu ul li a {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }

  main {
    width: 100%;
    margin: 0 auto;
  }

  .section__title {
    font-size: 20px;
    margin-top: 80px;
  }

  .section__title--bold {
    margin-top: 150px;
    font-size: 40px;
  }

  .flow__section {
    width: 90%;
  }

  .flow__list {
    margin: 40px auto 0;
  }

  .flow-item {
    --flow-item-gap: 70px;
    --flow-line-height: 60px;
    flex-direction: column;
    gap: 10px;
  }

  .flow-item__icon {
    width: 100px;
    height: 100px;
    margin-top: 20px;
  }

  .flow-item__content {
    padding-left: 0;
    font-size: 15px;
    text-align: center;
    margin-bottom: 30px;
  }

  .flow-item:not(:last-child)::after {
    top: calc(100% + (var(--flow-item-gap) - var(--flow-line-height)) / 2);
    left: 50%;
    height: var(--flow-line-height);
  }

  .case__inner {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .case__study--item {
    padding: 25px;
    border-right: none;
  }

  .trouble__section {
    width: 90%;
  }

  .trouble__content {
    border-top-left-radius: 300px;
    border-top-right-radius: 300px;
    margin-top: 80px;
    padding-top: 60px;
    margin-bottom: 0;
  }

  .trouble__heading {
    width: 89%;
    margin: 0 auto;
  }

  .trouble__message,
  .trouble__text--highlight {
    font-size: calc(1vw + 1em);
  }

  .trouble__inner {
    width: 90%;
    padding: 50px 0;
    transform: translateY(5%);
  }

  .trouble__challenge {
    font-size: clamp(25px, 1vw + 1em, 50px);
  }

  .trouble__challenge--box {
    padding: 0 10px;
  }

  .trouble__details {
    width: 85%;
    margin: 0 auto;
  }

  .trouble__text--highlight {
    line-height: normal;
    line-break: strict;
  }

  .trouble__policy {
    font-size: 15px;
    padding-top: 30px;
  }

  .trouble__area {
    flex-direction: column;
  }

  .trouble__image--area {
    margin-top: 30px;
  }

  .trouble__area--info {
    margin-left: auto;
    line-height: normal;
  }

  .trouble__coverage {
    font-size: 15px;
  }

  .trouble__region {
    font-size: 13px;
  }

  .offer__container {
    flex-direction: column;
    border-left: none;
    border-right: none;
  }

  .offer__item:nth-child(odd) {
    border-right: none;
  }

  .offer__section {
    width: 100%;
  }

  .offer__description {
    width: 89%;
  }

  .merit__contents {
    position: static; /* スクロール時の固定を解除 */
    height: auto; /* 高さを自動調整 */
    margin-top: 20px; /* 上部の余白を調整 */
    padding: 20px 0;
    border-radius: 0; /* 角丸を解除 */
  }

  .merit__contents--inner {
    display: flex;
    flex-direction: column; /* 縨並びにする */
    width: 90%; /* 幅を調整 */
    gap: 15px; /* 内部要素間の余白を追加 */
    padding: 20px 0;
  }

  .merit__contents img {
    width: 100%;
  }

  .merit__contents:nth-of-type(1) .merit__title,
  .merit__contents:nth-of-type(2) .merit__title,
  .merit__contents:nth-of-type(3) .merit__title,
  .merit__contents:nth-of-type(4) .merit__title {
    transform: translateX(0); /* 位置調整をリセット */
  }

  .merit__contents {
    position: static; /* スクロール時の固定を解除 */
    height: auto; /* 高さを自動調整 */
    margin-top: 20px; /* 上部の余白を調整 */
  }

  .merit__contents--inner {
    flex-direction: column; /* 縨並びに変更 */
    gap: 20px; /* 要素間の余白を調整 */
  }

  .merit__contents img {
    width: 100%; /* 画像を幅いっぱいに表示 */
  }

  .merit__contents-pc {
    display: none; /* SPでは非表示 */
  }

  .merit__contents-sp .merit__contents--inner {
    position: relative;
  }

  .merit__contents-sp .merit__contents img {
    position: relative;
    z-index: 1;
  }

  .merit__title {
    font-size: 30px;
  }

  .merit__contents-sp .merit__title {
    position: absolute;
    top: 12%;
    z-index: 2;
    max-width: none;
    white-space: nowrap;
    word-break: keep-all;
    pointer-events: none;
    transform: none;
  }

  .merit__contents-sp .merit__contents:nth-of-type(odd) .merit__title {
    right: 0;
    left: auto;
    text-align: right;
    top: 0;
  }

  .merit__contents-sp .merit__contents:nth-of-type(even) .merit__title {
    left: 0;
    right: auto;
    text-align: left;
    top: 0;
  }

  .merit__contents-sp {
    display: block; /* SPでは表示 */
  }

  .merit__contents-sp {
    display: block; /* SPでは表示 */
  }

  .merit__contents:nth-of-type(1) .merit__title,
  .merit__contents:nth-of-type(3) .merit__title {
    padding: 0 18px;
  }

  .merit__title--split-bg {
    background: none !important;
    padding: 0 !important;
  }

  .merit__title--split-bg span {
    padding: 0 18px;
  }

  .cost__section {
    margin-top: 80px;
  }

  .cost__inner {
    width: 90%;
  }

  .cost__container {
    flex-direction: column;
    gap: 80px;
    width: 100%;
    margin-top: 70px;
  }

  .cost__description {
    margin-top: 20px;
  }

  .cost__item {
    width: 100%;
  }

  .web-advertisement-section {
    width: 90%;
    margin: 0 auto;
  }

  .web-advertisement__title {
    padding: 10px;
  }

  .info__section {
    width: 90%;
  }

  .info__container {
    flex-direction: column;
    gap: 20px;
  }

  .cta-button {
    font-size: 16px;
    padding: 20px 40px;
    width: 100%;
  }

  .trouble__image {
    display: none;
  }

  .trouble__image-sp {
    margin-top: 20px;
    display: block;
  }

  .web-advertisement-container {
    flex-direction: column;
    gap: 30px;
  }

  .info__section {
    width: 90%;
  }

  .info__container {
    flex-direction: column;
    gap: 20px;
  }

  .info__img {
    width: 100%;
  }

  .info__list-title {
    margin-top: 20px;
  }
}

@media screen and (max-width: 768px) {
  .br-sp {
    display: inline; /* Visible on mobile */
  }

  .br-sp.br-sp-gap {
    display: block;
    margin-top: 0.28em;
  }
}
