#worries .section-title {
  color: #007197;
  font-size: 2.3125rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 17px;
}
@media screen and (max-width: 767px) {
  #worries .section-title {
    font-size: 1.25rem;
    line-height: 1.3;
    text-indent: 0.4em;
    margin-bottom: 6px;
  }
}
#worries .worries-note {
  font-size: 0.6875rem;
  text-align: center;
}
#worries .worries-ranking {
  display: flex;
  justify-content: space-between;
  margin: 60px auto 0;
  max-width: 900px;
}
@media screen and (max-width: 767px) {
  #worries .worries-ranking {
    display: block;
    margin-top: 34px;
    width: 84%;
  }
}
#worries .worries-ranking li {
  width: 286px;
}
@media screen and (max-width: 767px) {
  #worries .worries-ranking li {
    width: 100%;
  }
  #worries .worries-ranking li + li {
    margin-top: 41px;
  }
}
#worries .worries-ranking .num {
  color: #fff;
  font-weight: bold;
  line-height: 20px;
  letter-spacing: 0.14em;
  text-align: center;
  width: 100px;
  margin: 0 auto;
  background-color: #007197;
}
@media screen and (max-width: 767px) {
  #worries .worries-ranking .num {
    font-size: 0.75rem;
    line-height: 18px;
    width: 50px;
  }
}
#worries .worries-ranking .worries-title {
  color: #007197;
  font-size: 1.5625rem;
  letter-spacing: 0.14em;
  text-align: center;
  margin-top: 7px;
}
@media screen and (max-width: 767px) {
  #worries .worries-ranking .worries-title {
    font-size: 1.1875rem;
    letter-spacing: 0.04em;
  }
}
#worries .worries-ranking .worries-desc {
  font-size: 0.75rem;
  line-height: 19px;
  height: 57px;
  text-indent: -3em;
  margin-top: 10px;
  margin-left: 3em;
}
@media screen and (max-width: 767px) {
  #worries .worries-ranking .worries-desc {
    font-size: 0.8125rem;
    line-height: 1.74;
    height: auto;
    margin-top: 9px;
  }
}
#worries .worries-ranking .worries-desc span {
  color: #007197;
}
#worries .worries-ranking .worries-tmb {
  margin-top: 19px;
}
@media screen and (max-width: 767px) {
  #worries .worries-ranking .worries-tmb {
    margin-top: 13px;
  }
}
#worries .worries-ranking .worries-tmb img {
  max-width: 100%;
  border: 1px solid #c8c8c8;
}

#banners {
  padding: 130px 0 120px;
}
@media screen and (max-width: 767px) {
  #banners {
    padding: 80px 0 80px;
  }
}

#banners .section-title {
  color: #007197;
  font-size: 2.3125rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 32px;
}

@media screen and (max-width: 767px) {
  #banners .section-title {
    font-size: 1.25rem;
    margin-bottom: 21px;
  }
}

#banners .banner-subhead {
  color: #007197;
  font-size: 1.3125rem;
  margin-bottom: 30px;
}

#banners a + .banner-subhead {
  margin-top: 60px;
}

@media screen and (max-width: 767px) {
  #banners .banner-subhead {
    font-size: 1rem;
    width: 84%;
    margin: 0 auto;
    margin-bottom: 20px;
  }
}

#banners .banner {
  display: block;
}
@media screen and (max-width: 767px) {
  #banners .banner {
    max-width: 84%;
    margin: 0 auto;
  }
}
#banners .banner + .banner {
  margin-top: 40px;
}
@media screen and (max-width: 767px) {
  #banners .banner + .banner {
    margin-top: 30px;
  }
}
#banners .banner img {
  max-width: 100%;
}

#recommend {
  margin-bottom: 120px;
}
@media screen and (max-width: 767px) {
  #recommend {
    margin-bottom: 79px;
  }
}
#recommend img {
  max-width: 100%;
}
#recommend .recommend-content {
  padding: 80px 50px;
  background-color: #d7ecff;
}
@media screen and (max-width: 767px) {
  #recommend .recommend-content {
    max-width: 84%;
    margin: 0 auto;
    padding: 35px 25px 40px;
  }
}
#recommend .recommend-heading {
  color: #007197;
  font-size: 2.3rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: underline;
  text-indent: -0.5em;
  margin-bottom: 58px;
}
@media screen and (max-width: 767px) {
  #recommend .recommend-heading {
    font-size: 1.15625rem;
    line-height: 1.7;
    margin-bottom: 26px;
  }
}
#recommend .recommend-list {
  color: #007197;
  font-size: 1.3125rem;
  line-height: 52px;
  letter-spacing: 0.035em;
  max-width: 770px;
  margin: 44px auto -5px;
}
@media screen and (max-width: 767px) {
  #recommend .recommend-list {
    font-size: 0.7125rem;
    line-height: 1.2;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 0;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  #recommend .recommend-list li + li {
    margin-top: 17px;
  }
}
@media screen and (min-widht: 768px) {
  #recommend .recommend-list li:nth-child(1) {
    font-size: 1.396875rem;
  }
}
#recommend .recommend-list span {
  font-size: 1.53625rem;
  font-weight: bold;
}
@media screen and (max-width: 767px) {
  #recommend .recommend-list span {
    display: block;
    font-size: 1rem;
  }
}
@media screen and (max-width: 767px) {
  #recommend .recommend-banner {
    margin-top: 30px;
  }
}
#recommend .recommend-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8125rem;
  font-weight: bold;
  font-feature-settings: "palt";
  letter-spacing: 0.005em;
  max-width: 770px;
  height: 72px;
  margin: 58px auto 0;
  border-radius: 10px;
  background: #251714;
}
@media screen and (max-width: 767px) {
  #recommend .recommend-button {
    flex-direction: column;
    justify-content: center;
    font-size: 0.90625rem;
    line-height: 1.2;
    text-align: center;
    height: 77px;
    margin-top: 21px;
  }
}
#recommend .recommend-button img {
  width: 110px;
  margin-left: 35px;
}
@media screen and (max-width: 767px) {
  #recommend .recommend-button img {
    width: 62px;
    margin-top: 3px;
    margin-left: 0;
  }
}

/* 新規追加セクション */
/* TOPページプラン */
.top-plans {
  .top-plans__container {
    padding-block: 30px;
    padding-inline: 20px;
    background-color: #fffddd;

    @media (min-width: 768px) {
      padding-block: 40px;
      padding-inline: 40px;
    }
  }

  .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    color: #247197;

    @media (min-width: 768px) {
      font-size: 1.25rem;
    }

    span {
      display: inline-block;
    }
  }

  .section-sub-title {
    margin-top: 2em;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.6;
    text-align: center;
    color: #247197;
  }

  .section-content {
    width: 84%;
    margin-inline: auto;
  }
}

/* 初めての方へページ */
.welcome-plans {
  .section-content {
    width: 84%;
    margin-inline: auto;
  }
}

/* ご相談例 */
.top-plans__list {
  margin-top: 40px;
  display: grid;
  gap: 40px;

  @media (min-width: 768px) {
    margin-top: 18px;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
}

/* 相談アイテム */
/* 相談タイトル */
.top-plans__item-title {
  display: block;
  inline-size: 100%;
  padding-block: 7px;
  background-color: #247197;
  font-weight: bold;
  font-size: 0.875rem;
  line-height: 2.25;
  color: #fff;
  text-align: center;
}

/* 相談テキスト */
.top-plans__item-texts {
  margin-top: 14px;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 2;
  color: #247197;

  span {
    display: inline-block;
  }
}

/* プランスライダー */
/* トップページ */
.top-plans__swiper {
  margin-top: 43px;
  padding-block: 45px 60px;

  .plans-swiper {
    margin-top: 21px;
  }
}

/* 初めての方へページ */
.page-welcome__swiper {
  margin-top: 43px;
  padding-block: 45px 60px;

  .plans-swiper {
    margin-top: 21px;
  }
}

.swiper__outer {
  position: relative;

  @media (min-width: 768px) {
    /* pc時非表示 */
    display: none;
  }
}

/* スマホ時非表示 */
.plans__grid {
  display: none;

  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.swiper {
  width: 100%;
}

.plans-swiper__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 2;
  text-align: center;
  color: #247197;

  @media (min-width: 768px) {
    font-size: 1.25rem;
  }
}

/* プランスライドコンポーネント */
.plans-slide {
  background-color: rgba(226, 221, 152, 0.61); /* デフォルト設定 */
  padding-block: 20px;
  padding-inline: 20px;
  height: fit-content;
  min-height: 343px;

  @media (min-width: 768px) {
    display: grid;
  }
}

.plans-slide[data-item="item1"] {
  background-color: rgba(226, 221, 152, 0.61);
}

.plans-slide[data-item="item2"] {
  background-color: rgba(169, 196, 117, 0.56);
}

.plans-slide[data-item="item3"] {
  background-color: rgba(216, 215, 198, 0.79);
}

/* アイテムタイトル */
.plans-slide__title {
  height: 67px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-align: center;
  color: #000;
}

/* アイテム説明 */
.plans-slide__description {
  /* margin-top: 1.5em; */
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  line-height: 1.58;
  text-align: center;
  color: #000;
}

/* 金額コンテナ */
.plans-slide__price-contents {
}

/* 通常時は隠れているコンテンツ */
.plans-slide__toggle-contents {
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #000;

  p + p {
    margin-top: 1em;
  }

  p:nth-of-type(2) {
    line-height: 2;
  }
}

/* 価格 */
.plans-slide__price-text {
  margin-top: 1em;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  line-height: 2;
  text-align: center;
  color: #000;
}

.plans-slide__price-plan {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
  text-align: center;
  color: #000;
}

/* 年間顧問契約プランのみ価格注釈 */
.plans-slide__price-note {
  margin-top: 0.5em;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.8;
  text-align: center;
  color: #000;

  span {
    display: inline-block;
  }
}

.plans-slide__price-plan.plans-slide__price-plan--mt30 {
  margin-top: 3em;
}

/* 価格数字 */
.plans-slide__price {
  font-size: 1.75rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  color: #000;

  /* 税込, 月 */
  span {
    font-size: 1rem;
    font-weight: normal;
  }
}

.plans-slide__note {
  margin-top: 0;
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 2.85;
  text-align: center;
  color: #000;
}

/* お申し込みはこちらボタン */
.plans-slide__toggle-cta-btn-wrap {
  margin-top: 1em;
  width: min(100%, 230px);
  margin-inline: auto;
}

.plans-slide__toggle-cta-btn {
  position: relative;
  display: block;
  border-radius: 10px;
  background: #000;
  padding: 10px;
  font-weight: bold;
  font-size: 1.125rem;
  letter-spacing: -0.07em;
  line-height: 1.1666666667;
  color: #fff;
  text-align: center;
}

/* 矢印アイコン */
.plans-slide__toggle-cta-btn img {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translate(0, -50%);
}

/* トグルボタン */
.plans-slide__toggle-btn-wrap {
  margin-top: auto;
  padding-top: 1em;
  width: min(100%, 100px);
  margin-inline: auto;
}

.plans-slide__toggle-btn {
  inline-size: 100%;
  text-align: center;
  background-color: #000;
  padding: 7px 10px;
  font-weight: bold;
  font-size: 0.875rem;
  letter-spacing: -0.07em;
  line-height: 1;
  color: #fff;
}

/* CTAボタンコンテナ */
.top-plans__cta-btns {
  margin-top: 43px;
  width: min(100%, 443px);
  margin-inline: auto;
  display: grid;
  gap: 10px;

  @media (min-width: 768px) {
    gap: 20px;
  }
}

/* CTAボタン */
.top-plans__cta-btn {
  inline-size: 100%;
  border-radius: 28.5px;
  background-color: #000;
  border: 1px solid #707070;
  padding: 11px;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.28;
  color: #fff;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;

  @media (min-width: 768px) {
    font-size: 0.9375rem;
  }
}

/* CTAボタン(背景青ver) */
.top-plans__cta-btn--bg-blue {
  border: transparent;
  background-color: #247197;
}
.swiper-button-next,
.swiper-button-prev {
  svg {
    display: none;
  }
}
.swiper-button-prev,
.swiper-button-next {
  width: 27px;
  height: 27px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

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

.swiper-button-prev {
  left: -13px !important;
  background-image: url("../images/common/arrow_prev.svg");
}

.swiper-button-next {
  right: -13px !important;
  background-image: url("../images/common/arrow_next.svg");
}

/* トグル機能のスタイル */
/* 初期状態で非表示 */
.plans-slide__toggle-contents,
.plans-slide__toggle-cta-btn-wrap,
.plans-slide__toggle-premium {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 開いた状態で表示 */
.plans-slide.is-open .plans-slide__toggle-contents,
.plans-slide.is-open .plans-slide__toggle-cta-btn-wrap,
.plans-slide.is-open .plans-slide__toggle-premium {
  display: block;
  opacity: 1;
}

/* ボタンのテキスト変更 */
.plans-slide.is-open .plans-slide__toggle-btn {
  position: relative;
}

/* アニメーション用 */
.plans-slide__toggle-contents,
.plans-slide__toggle-cta-btn-wrap,
.plans-slide__toggle-premium {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 1s ease, opacity 0.1s ease, margin 0.1s ease;
  display: block !important;
}

/* 閉じる時の高速アニメーション用 */
.plans-slide.is-closing .plans-slide__toggle-contents,
.plans-slide.is-closing .plans-slide__toggle-cta-btn-wrap,
.plans-slide.is-closing .plans-slide__toggle-premium {
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

/* 非表示時はmarginを0にする */
.plans-slide__toggle-premium {
  margin-top: 0 !important;
}

.plans-slide.is-open .plans-slide__toggle-contents {
  max-height: 500px;
  opacity: 1;
  margin-top: 1em;
}

.plans-slide.is-open .plans-slide__toggle-cta-btn-wrap {
  max-height: 100px;
  opacity: 1;
  margin-top: 1em;
}

.plans-slide.is-open .plans-slide__toggle-premium {
  max-height: 200px;
  opacity: 1;
}

.plans-slide.is-open .plans-slide__toggle-premium + .plans-slide__price-note {
  margin-top: 1em !important;
}

.plans-slide__price-contents + .plans-slide__toggle-cta-btn-wrap {
  margin-top: 1em !important;
}

/* プレミアムプランのマージントップを開いた時のみ適用 */
.plans-slide.is-open .plans-slide__price-plan.plans-slide__toggle-premium {
  margin-top: 3em !important;
}
