/* ==========================================================
   TOP（サービスLP）
   Figma: きとみ税理士法人
     SP  (375px)  : SP8/24      (node 838:4335) … ベーススタイル
     PC  (1440px) : 8.17修正版  (node 838:3436) … min-width: 1200px
   ========================================================== */

/* 横スクロールさせる比較表の共通ラッパー（SP/タブレット）
   画面端まではみ出してスクロールできるよう、ガター分を打ち消す */
.change__table-wrap,
.plans__table-wrap,
.reasons__table-wrap {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================
   FV
   ========================================================== */
.fv {
  position: relative;
  overflow: hidden;
  background: url("../../images/pages/top/bg-fv.webp") center bottom / cover no-repeat;
}

.fv__inner {
  position: relative;
  max-width: 1440px;
  min-height: 527px;
  margin-inline: auto;
  padding: 24px var(--gutter);
}

.fv__body {
  position: relative;
  z-index: 1;
}

.fv__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-zen);
  font-size: 28px;
  line-height: 50px;
  color: var(--color-brown);
}

.fv__title-line:first-child .fv__em {
  font-size: 32px;
}

.fv__em {
  font-size: 40px;
  color: var(--color-red);
}

.fv__sm {
  font-size: 1em;
}

.fv__lg {
  font-size: 40px;
}

.fv__lead {
  margin-top: 20px;
  font-weight: 500;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0.02em;
  color: var(--color-brown);
}

.fv__lead-em {
  color: var(--color-red);
}

.fv__badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.fv__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 56px;
  padding: 0 4px;
  font-size: 10.25px;
  line-height: 15px;
  text-align: center;
  color: var(--color-brown);
  background-color: var(--color-white);
  border: 2px solid var(--color-orange);
  border-radius: 8px;
}

.fv__badge-lg {
  font-size: 1.25em;
}

.fv__cta {
  display: block;
  width: min(100%, 330px);
  margin: 20px 0 0 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fv__cta:hover,
.fv__cta:focus-visible {
  transform: translateY(-2px);
  opacity: 0.9;
}

.fv__chara {
  position: absolute;
  top: 114px;
  left: calc(50% - 187.5px + 134px);
  width: 302px;
}

.fv__chara-img {
  width: 100%;
}

/* キャラクター名：SPは白の半透明ラベル */
.fv__chara-name {
  position: absolute;
  top: 181px;
  left: 128px;
  z-index: 1;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--color-brown);
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.fv__chara-sub {
  display: block;
  font-size: 7px;
  line-height: 9px;
}

@media (min-width: 768px) {
  .fv__inner {
    padding: 60px 40px;
  }

  .fv__badges {
    max-width: 480px;
  }

  .fv__chara {
    left: auto;
    right: 40px;
    width: 360px;
  }
}

@media (min-width: 1200px) {
  .fv {
    height: calc(800px - var(--header-height));
  }

  .fv__inner {
    height: 100%;
    padding: 84px 0 0 140px;
  }

  .fv__title {
    font-size: 45.3px;
    line-height: 95px;
  }

  .fv__em,
  .fv__title-line:first-child .fv__em,
  .fv__lg {
    font-size: 1.31em;
  }

  .fv__sm {
    font-size: 1.095em;
  }

  .fv__lead {
    margin-top: 19px;
    font-weight: 700;
    font-size: 18px;
    line-height: 36px;
  }

  .fv__badges {
    max-width: none;
    gap: 16px;
    margin-top: 28px;
  }

  .fv__badge {
    flex: 0 0 200px;
    height: 100px;
    font-size: 20px;
    line-height: 1.4;
    border-radius: var(--radius-md);
  }

  .fv__cta {
    width: 489px;
    margin: 30px 0 0;
  }

  .fv__chara {
    top: -7px;
    left: 772px;
    right: auto;
    width: 590px;
  }

  .fv__chara-name {
    top: 472px;
    left: 435px;
    padding: 0;
    font-size: 24px;
    line-height: 1.4;
    background: none;
  }

  .fv__chara-sub {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.5;
  }
}

/* ==========================================================
   共感（お悩み）
   ========================================================== */
.worries {
  padding-block: 48px;
  background-color: var(--color-bg-gray);
}

.worries__sub {
  margin-top: 16px;
  font-size: 14px;
  line-height: 29px;
  text-align: center;
}

.worries__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 742px;
  margin: 20px auto 0;
}

.worries__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 72px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 26px;
  background-color: var(--color-white);
  border-radius: 10px;
}

.worries__item::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 26px;
  background: url("../../images/pages/top/icon-check-red.svg") center / contain no-repeat;
}

.worries__answer {
  margin-top: 40px;
  font-family: var(--font-zen);
  font-size: 24px;
  line-height: 38px;
  letter-spacing: 0.05em;
  text-align: center;
}

.worries__answer-text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 29px;
  text-align: center;
}

@media (min-width: 1200px) {
  .worries {
    padding-block: 100px;
  }

  .worries__sub {
    margin-top: 10px;
    font-size: 16px;
  }

  .worries__list {
    margin-top: 50px;
  }

  .worries__item {
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 56px;
    padding: 0;
    font-size: 18px;
    line-height: 29px;
  }

  .worries__item::before {
    width: 24px;
    height: 24px;
  }

  .worries__answer {
    font-size: 40px;
    line-height: 72px;
  }

  .worries__answer-text {
    margin-top: 0;
    font-size: 20px;
    line-height: 36px;
  }
}

/* ==========================================================
   提示（他の記帳代行との違い）
   ========================================================== */
.difference {
  padding-block: 48px;
  background-color: var(--color-bg-cream);
  color: var(--color-brown);
}

.difference__catch {
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.05em;
}

.difference__title {
  font-size: 32px;
  line-height: 51px;
  letter-spacing: 0.05em;
  text-align: center;
}

.difference__cards {
  display: grid;
  gap: 24px;
  max-width: 328px;
  margin: 30px auto 0;
}

.diff-card {
  --card-color: var(--color-orange-line);
  --card-deep: var(--color-orange-deep);
  --card-tint: rgba(255, 164, 49, 0.2);
  --card-dot: var(--color-orange);
  --card-gradient: linear-gradient(180deg, #fe8e13 0%, #ee6801 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background-color: var(--color-white);
  border: 2.3px solid var(--card-color);
  border-radius: 13px;
}

/* SPは「質」カードが先 */
.diff-card--green {
  --card-color: var(--color-green);
  --card-deep: var(--color-green-deep);
  --card-tint: rgba(160, 185, 62, 0.2);
  --card-dot: var(--color-green);
  --card-gradient: linear-gradient(180deg, #a0b93e 0%, #578300 100%);
  order: -1;
}

.diff-card__head {
  display: flex;
  align-items: center;
  gap: 11.7px;
}

.diff-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  font-size: 47.5px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background: var(--card-gradient);
  border: 1.3px solid var(--color-white);
  border-radius: 50%;
}

.diff-card__title {
  width: 203px;
  font-size: 25.9px;
  line-height: 31px;
  letter-spacing: 0.08em;
  color: var(--card-deep);
}

.diff-card--green .diff-card__title {
  color: var(--color-green-text);
}

.diff-card__marker {
  background: linear-gradient(transparent 66%, var(--card-tint) 66%);
}

.diff-card__dots {
  width: 256px;
  height: 5px;
  background: radial-gradient(circle, var(--card-dot) 2.3px, transparent 2.6px) left center / 5px 5px space no-repeat;
}

.diff-card__label {
  align-self: stretch;
  padding: 1px 8px;
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-white);
  background-color: var(--card-deep);
  border-radius: 2px;
}

.diff-card__text {
  align-self: stretch;
  font-family: var(--font-zen);
  font-weight: 500;
  font-size: 13px;
  line-height: 23px;
  letter-spacing: 0.05em;
}

.diff-card--green .diff-card__text {
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--color-text);
}

.diff-card__em {
  color: var(--card-deep);
}

.difference__summary {
  margin-top: 23px;
  font-size: 24px;
  line-height: 38px;
  letter-spacing: 0.05em;
  text-align: center;
}

.difference .cta-banner {
  width: min(100%, 321px);
  margin-top: 15px;
}

@media (min-width: 768px) {
  .difference__cards {
    grid-template-columns: repeat(2, 328px);
    justify-content: center;
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .difference {
    padding-block: 100px;
  }

  .difference__catch {
    font-size: 34.75px;
    line-height: 63px;
  }

  .difference__title {
    font-size: 53.5px;
    line-height: 96px;
  }

  .difference__cards {
    grid-template-columns: repeat(2, 546px);
    gap: 31px;
    margin-top: 30px;
  }

  .diff-card {
    gap: 14px;
    min-height: 410px;
    padding: 42px 32px;
    border-width: 3.7px;
    border-radius: 21px;
  }

  .diff-card--green {
    order: 0;
  }

  .diff-card__head {
    gap: 19px;
  }

  .diff-card__icon {
    width: 126px;
    height: 126px;
    font-size: 77.4px;
    border-width: 2px;
  }

  .diff-card__title {
    width: 330px;
    font-size: 42.2px;
    line-height: 51px;
  }

  .diff-card__dots {
    width: 416px;
    height: 8px;
    background: radial-gradient(circle, var(--card-dot) 3.6px, transparent 4px) left center / 8px 8px space no-repeat;
  }

  .diff-card__label {
    align-self: auto;
    width: 437px;
    padding: 2px 7px;
    font-size: 22.3px;
    line-height: 40px;
    text-align: left;
    border-radius: 4.6px;
  }

  .diff-card__text {
    align-self: auto;
    width: 440px;
    font-weight: 700;
    font-size: 15.5px;
    line-height: 28px;
  }

  .difference__summary {
    font-size: 30px;
    line-height: 54px;
  }

  .difference .cta-banner {
    width: 556px;
  }
}

/* ==========================================================
   対応業務
   ========================================================== */
.services {
  padding-block: 48px;
  background: radial-gradient(circle at center, #fff9f3 0%, #fcefe3 100%);
}

.services__label {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 12px 20px;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-orange-deep);
  border-radius: 45px;
}

.services__title {
  margin-top: 10px;
  font-size: 28px;
  line-height: 45px;
  text-align: center;
  color: var(--color-text-dark);
}

.services__list {
  display: grid;
  gap: 28px;
  max-width: 335px;
  margin: 28px auto 0;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 48px 33px;
  overflow: hidden;
  background-color: var(--color-white);
  border-radius: 33px;
}

.service-card__num {
  position: absolute;
  top: -56px;
  left: -60px;
  display: flex;
  align-items: flex-end;
  width: 150px;
  height: 150px;
  padding: 0 0 36px 83px;
  font-family: var(--font-zen);
  font-size: 40px;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-orange);
  border-radius: 50%;
}

.service-card--green .service-card__num {
  background-color: var(--color-green);
}

.service-card__img {
  width: auto;
  height: 176px;
  margin-block: 11px;
  object-fit: contain;
}

.service-card__title {
  font-size: 27.5px;
  line-height: 40px;
  text-align: center;
  white-space: nowrap;
  color: var(--color-black);
}

.service-card__items {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 240px;
  margin-top: 19px;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--color-brown);
}

.service-card__items li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.service-card__items li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: url("../../images/pages/top/bullet.svg") center / contain no-repeat;
}

.service-card__more {
  width: 240px;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--color-orange-more);
}

@media (min-width: 768px) {
  .services__list {
    grid-template-columns: repeat(2, 337px);
    justify-content: center;
    max-width: none;
    gap: 35px 31px;
  }
}

@media (min-width: 1200px) {
  .services {
    padding-block: 100px;
  }

  .services__label {
    width: 754px;
    padding: 10px 30px 12px;
    font-size: 25px;
    line-height: 36px;
  }

  .services__title {
    margin-top: 33px;
    font-size: 49.5px;
    line-height: 69px;
  }

  .services__list {
    grid-template-columns: repeat(3, 337px);
    margin-top: 46px;
  }
}

/* ==========================================================
   丸投げ前後比較
   ========================================================== */
.change {
  padding-block: 48px;
  background-color: var(--color-white);
}

.change__title {
  align-items: flex-start;
  font-size: 32px;
  line-height: 46px;
  text-align: center;
  color: var(--color-text-dark);
}

.change__title::before,
.change__title::after {
  width: 22px;
  height: 30px;
  margin-top: 7px;
}

.change__title-sm {
  font-size: 26px;
}

.change__em {
  color: var(--color-red-alt);
}

.change__sub {
  margin-top: 10px;
  font-family: var(--font-zen);
  font-size: 16px;
  line-height: 23px;
  text-align: center;
}

.change__table-wrap {
  position: relative;
  margin-top: 26px;
  padding-top: 14px;
}

.change-table {
  position: relative;
  width: 612px;
  margin: -4px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

.change-table__blank {
  width: 96px;
}

.change-table__head {
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0.05em;
  vertical-align: bottom;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.change-table__head--before {
  width: 210px;
  height: 46px;
  padding: 14px 16px 12px;
  background-color: var(--color-gray-300);
  background-clip: padding-box;
  border-top: 12px solid transparent;
}

.change-table__head--after {
  position: relative;
  width: 290px;
  height: 58px;
  padding: 12px 20px 10px;
  font-size: 22px;
  line-height: 36px;
  color: var(--color-white);
  background-color: var(--color-orange-deep);
}

.change-table__head-sm {
  font-size: 20px;
}

.change-table__chara {
  position: absolute;
  top: -14px;
  right: 0;
  width: 68px;
  pointer-events: none;
}

.change-table tbody th,
.change-table tbody td {
  height: 116px;
}

.change-table__label {
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.05em;
  background-color: var(--color-tint-green);
}

.change-table__label-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 0;
}

.change-table__label-inner img {
  flex-shrink: 0;
  width: 40px;
}

.change-table__label-text {
  text-align: center;
}

.change-table__note {
  font-size: 9px;
}

.change-table tbody tr:first-child .change-table__label {
  border-top-left-radius: var(--radius-md);
}

.change-table tbody tr:last-child .change-table__label {
  border-bottom-left-radius: var(--radius-md);
}

.change-table__before {
  padding: 20px 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.05em;
  text-align: center;
  background-color: var(--color-bg-light);
}

.change-table__after {
  position: relative;
  padding: 20px 20px 20px 52px;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0.05em;
  background-color: var(--color-tint-orange);
}

.change-table__after::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  background: url("../../images/pages/top/icon-check-circle.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.change-table__em {
  color: var(--color-red);
}

/* 前後比較の→矢印（前後の列の境目） */
.change__arrow {
  position: absolute;
  top: 290px;
  left: calc(var(--gutter) + 96px + 4px + 210px - 20px);
  z-index: 1;
  width: 40px;
}

.change .cta-banner {
  width: min(100%, 321px);
  margin-top: 40px;
}

@media (min-width: 1200px) {
  .change {
    padding-block: 80px;
  }

  .change__title {
    align-items: center;
    font-size: 50px;
    line-height: 72px;
  }

  .change__title-sm {
    font-size: inherit;
  }

  .change__title::before,
  .change__title::after {
    width: 32px;
    height: 43px;
    margin-top: 0;
  }

  .change__sub {
    margin-top: 20px;
    font-size: 24px;
    line-height: 35px;
  }

  .change__table-wrap {
    overflow: visible;
    margin-top: -17px;
    padding-top: 57px;
  }

  .change-table {
    width: 1108px;
    margin: -4px auto;
  }

  .change-table__blank {
    width: 240px;
  }

  .change-table__head {
    font-size: 20px;
    line-height: 30px;
  }

  .change-table__head--before {
    width: 376px;
    height: 64px;
    padding: 18px 20px 16px;
    border-top-width: 10px;
  }

  .change-table__head--after {
    width: 476px;
    height: 74px;
    padding: 14px 20px 15px;
    font-size: 30px;
    line-height: 45px;
  }

  .change-table__head-sm {
    font-size: 24px;
  }

  .change-table__chara {
    top: auto;
    right: -4px;
    bottom: -60px;
    width: 128px;
  }

  .change-table tbody th,
  .change-table tbody td {
    height: 102px;
  }

  .change-table__label {
    font-size: 16px;
    line-height: 24px;
  }

  .change-table__label-inner {
    flex-direction: row;
    padding: 0 32px;
  }

  .change-table__label-inner img {
    width: 60px;
  }

  .change-table__label-text {
    flex: 1;
  }

  .change-table__note {
    font-size: 11px;
  }

  .change-table__before {
    padding: 20px;
    font-size: 16px;
    line-height: 24px;
  }

  .change-table__after {
    padding: 20px 20px 20px 84px;
  }

  .change-table__after::before {
    left: 40px;
    width: 28px;
    height: 28px;
  }

  .change-table__em {
    font-size: 22px;
  }

  .change__arrow {
    top: calc(57px + 74px + 4px + 102px * 2 + 4px - 30px - 4px);
    left: calc(50% - 550px + 594px);
    width: 60px;
  }

  .change .cta-banner {
    width: 556px;
  }
}

/* ==========================================================
   料金プラン
   ========================================================== */
.plans {
  padding-block: 48px;
  background-color: var(--color-bg-light);
}

.plans__title-sm,
.reasons__title-sm {
  font-size: 28px;
}

.plans__table-wrap {
  margin-top: 16px;
  padding-top: 32px;
}

.plan-table {
  width: 840px;
  margin: -4px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

.plan-table__blank {
  width: 100px;
}

.plan-table__head {
  position: relative;
  width: 240px;
  height: 83px;
  padding: 16px 10px;
  font-weight: 900;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0.05em;
  vertical-align: bottom;
  color: #f6f3ea;
  background-color: var(--color-orange);
  background-clip: padding-box;
  border-top: 8px solid transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.plan-table__head--main {
  height: 91px;
  padding-top: 24px;
  background-color: var(--color-orange-deep);
  border-top: 0;
}

.plan-table__head-sub {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text);
}

/* おすすめ！吹き出し */
.plan-table__badge {
  position: absolute;
  top: -32px;
  left: 50%;
  width: 181px;
  height: 45px;
  font-weight: 700;
  font-size: 20px;
  line-height: 41px;
  color: var(--color-white);
  background-color: var(--color-red);
  border: 2px solid var(--color-white);
  border-radius: 10px;
  transform: translateX(-50%);
}

.plan-table__badge::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 14px;
  height: 14px;
  background-color: var(--color-red);
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: translateX(-50%) rotate(45deg);
}

.plan-table tbody th,
.plan-table tbody td {
  height: 60px;
  padding: 10px;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.05em;
  text-align: center;
}

.plan-table tbody th {
  padding-inline: 0;
  background-color: var(--color-tint-green);
}

.plan-table tbody tr:first-child th {
  border-top-left-radius: var(--radius-md);
}

.plan-table tbody tr:last-child th {
  border-bottom-left-radius: var(--radius-md);
}

.plan-table tbody td {
  background-color: var(--color-white);
}

.plan-table tbody tr:nth-child(odd) td {
  background-color: var(--color-tint-orange);
}

.plan-table .icon-check {
  vertical-align: middle;
}

.plan-table__cell-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.plan-table__tag {
  display: inline-block;
  padding: 0 10px 2px;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.05em;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-pill);
}

@media (min-width: 1200px) {
  .plans {
    padding-block: 80px;
  }

  .plans__title-sm,
  .reasons__title-sm {
    font-size: inherit;
  }

  .plans__table-wrap {
    overflow: visible;
    margin-top: 48px;
  }

  .plan-table {
    width: 908px;
    margin: -4px auto;
  }

  .plan-table__blank {
    width: 160px;
  }

  .plan-table__head {
    height: 92px;
    padding: 18px 10px;
    font-size: 20px;
    line-height: 30px;
    border-top-width: 9px;
  }

  .plan-table__head--main {
    width: 248px;
    height: 101px;
    padding-top: 24px;
    font-size: 22px;
    line-height: 33px;
    border-top: 0;
  }

  .plan-table__head-sub {
    font-size: 13px;
    line-height: 20px;
  }

  .plan-table tbody th,
  .plan-table tbody td {
    height: 68px;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 24px;
  }
}

/* ==========================================================
   比較表の列枠（Figmaの「枠」レイヤー）
   行間の隙間(4px)もまたいで左右の線が途切れないよう、疑似要素で描画
   ========================================================== */
.change-table tbody td,
.plan-table tbody td,
.reason-table tbody td {
  --frame-color: var(--color-gray-300);
  --frame-width: 4px;
  position: relative;
}

.change-table tbody td::after,
.plan-table tbody td::after,
.reason-table tbody td::after {
  content: "";
  position: absolute;
  inset: -4px 0 0;
  border: 0 solid var(--frame-color);
  border-inline-width: var(--frame-width);
  pointer-events: none;
}

.change-table tbody tr:first-child td::after,
.plan-table tbody tr:first-child td::after,
.reason-table tbody tr:first-child td::after {
  border-top-width: var(--frame-width);
}

.change-table tbody tr:last-child td::after,
.plan-table tbody tr:last-child td::after,
.reason-table tbody tr:last-child td::after {
  border-bottom-width: var(--frame-width);
}

.change-table tbody .change-table__after,
.plan-table tbody td:nth-child(3),
.reason-table tbody .reason-table__main {
  --frame-color: var(--color-orange-deep);
}

.plan-table tbody td:nth-child(2),
.plan-table tbody td:nth-child(4) {
  --frame-color: var(--color-orange);
}

@media (min-width: 1200px) {
  .change-table tbody td,
  .plan-table tbody td,
  .reason-table tbody td {
    --frame-width: 5px;
  }
}

/* ==========================================================
   専門家の価値
   ========================================================== */
.expert {
  position: relative;
  z-index: 1;
  padding-block: 48px;
  background-color: var(--color-bg-gray);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}

.expert__title {
  font-family: var(--font-jp);
  font-size: 32px;
  line-height: 1.6;
  letter-spacing: 0;
}

.expert__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 60px auto 0;
  padding: 60px 24px 28px;
  background-color: var(--color-white);
  border: 4px solid var(--color-green);
  border-radius: 28px;
}

.expert__label {
  position: absolute;
  top: -34px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 6px 48px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-white);
  background: var(--gradient-green);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
}

.expert__label-lg {
  font-size: 20px;
}

.expert__summary {
  width: 100%;
  max-width: 641px;
  padding: 20px;
  font-size: 18px;
  line-height: 29px;
  text-align: center;
  background-color: var(--color-tint-orange);
  border-radius: var(--radius-md);
}

/* 右下のキャラクター（SPはセクション下端からはみ出す） */
.expert__chara {
  position: absolute;
  right: -11px;
  bottom: -115px;
  width: 120px;
  height: auto;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .expert {
    padding-block: 80px;
    overflow: hidden;
  }

  .expert__title {
    font-size: 50px;
    line-height: 80px;
  }

  .expert__box {
    gap: 40px;
    padding: 80px;
    border-width: 5px;
    border-radius: var(--radius-xl);
  }

  .expert__label {
    top: -35px;
    width: 672px;
    max-width: none;
    padding: 8px 80px;
    font-size: 24px;
    line-height: 43px;
  }

  .expert__label-lg {
    font-size: 28px;
  }

  .expert .check-list {
    width: 490px;
  }

  .expert__summary {
    padding: 24px 80px;
    font-size: 28px;
    line-height: 45px;
  }

  .expert__chara {
    right: -125px;
    bottom: -24px;
    width: 380px;
  }
}

/* ==========================================================
   選ばれる理由
   ========================================================== */
.reasons {
  position: relative;
  padding-block: 48px;
  overflow: hidden;
}

/* SPのみの装飾ブロブ */
.reasons__blob {
  position: absolute;
  pointer-events: none;
}

.reasons__blob--red {
  top: 20px;
  left: calc(50% - 187.5px + 333px);
  width: 61px;
}

.reasons__blob--green {
  top: 695px;
  left: calc(50% - 187.5px - 52px);
  width: 104px;
}

.reasons__title {
  font-size: 32px;
  line-height: 45px;
  letter-spacing: 0;
}

.reasons__table-wrap {
  position: relative;
  margin-top: 40px;
}

.reason-table {
  width: 750px;
  margin: -4px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

.reason-table__blank {
  width: 100px;
}

.reason-table__head {
  width: 180px;
  height: 58px;
  padding: 18px 20px 16px;
  font-family: var(--font-zen);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.05em;
  vertical-align: bottom;
  background-color: var(--color-gray-300);
  background-clip: padding-box;
  border-top: 12px solid transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.reason-table__head--main {
  width: 270px;
  height: 70px;
  font-size: 22px;
  line-height: 33px;
  color: var(--color-white);
  background-color: var(--color-orange-deep);
  border-top: 0;
}

.reason-table tbody th,
.reason-table tbody td {
  height: 70px;
  padding: 20px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.05em;
  text-align: center;
  background-color: rgba(250, 250, 250, 0.98);
}

.reason-table tbody th {
  padding: 20px 10px;
  font-size: 14px;
  line-height: 21px;
  background-color: var(--color-tint-green);
}

.reason-table tbody tr:first-child th {
  border-top-left-radius: var(--radius-md);
}

.reason-table tbody tr:last-child th {
  border-bottom-left-radius: var(--radius-md);
}

.reason-table tbody .reason-table__main {
  padding-left: 36px;
  font-size: 20px;
  line-height: 30px;
  text-align: left;
  color: var(--color-red);
  background-color: var(--color-tint-orange);
}

.reason-table__main .icon-check {
  margin-right: 10px;
  vertical-align: -7px;
}

.reasons .cta-banner {
  width: min(100%, 321px);
  margin-top: 40px;
}

@media (min-width: 1200px) {
  .reasons {
    padding-block: 80px;
  }

  .reasons__blob {
    display: none;
  }

  .reasons__title {
    font-size: 50px;
    line-height: 80px;
  }

  .reasons__table-wrap {
    overflow: visible;
    margin-top: 60px;
  }

  .reason-table {
    width: 810px;
    margin: -4px auto;
  }

  .reason-table__blank {
    width: 160px;
  }

  .reason-table tbody th {
    padding: 20px;
    font-size: 16px;
    line-height: 24px;
  }

  .reason-table tbody .reason-table__row--tall th,
  .reason-table tbody .reason-table__row--tall td {
    height: 88px;
  }

  .reasons .cta-banner {
    width: 556px;
    margin-top: 60px;
  }
}

/* ==========================================================
   導入の流れ
   ========================================================== */
.flow {
  padding-block: 48px;
  background: url("../../images/pages/top/bg-flow.webp") center / cover no-repeat;
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}

.flow__bubble {
  position: relative;
  width: 280px;
  margin-inline: auto;
  padding: 8px 20px;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-white);
  background: var(--gradient-orange);
  border-radius: var(--radius-pill);
}

.flow__bubble::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  border-top: 12px solid #d9772f;
  border-inline: 12px solid transparent;
  transform: translateX(-50%);
}

.flow__title {
  margin-top: 8px;
  font-family: var(--font-zen);
  font-size: 32px;
  line-height: 40px;
  text-align: center;
}

.flow__num {
  font-size: 1.25em;
  color: var(--color-orange-deep);
}

/* SPのみ：指差しキャラクター */
.flow__chara {
  width: 168px;
  margin: 0 auto -107px;
  position: relative;
  z-index: 1;
}

.flow__steps {
  --step-gap: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--step-gap);
  max-width: 790px;
  margin: 0 auto;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 10px 24px 32px;
  background-color: var(--color-white);
  border: 4px solid var(--color-orange-deep);
  border-radius: var(--radius-lg);
}

/* ステップ間の▼：カード間の余白の上下中央に配置
   （枠線4px分と、SVG内の三角形の上下余白差 9px/6px の1.5pxを補正） */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(100% + 4px + (var(--step-gap) - 32px) / 2 - 1.5px);
  left: 50%;
  width: 32px;
  height: 32px;
  background: url("../../images/pages/top/step-arrow.svg") center / contain no-repeat;
  transform: translateX(-50%);
}

.step__icon {
  flex-shrink: 0;
  width: 120px;
}

.step__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.step__num {
  width: fit-content;
  padding: 2px 40px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  line-height: 25px;
  color: var(--color-white);
  background-color: var(--color-orange-deep);
  border-radius: var(--radius-lg);
}

.step__title {
  font-size: 20px;
  line-height: 26px;
  text-align: center;
}

.step__text {
  align-self: stretch;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
}

@media (min-width: 1200px) {
  .flow {
    padding-block: 80px;
  }

  .flow__bubble {
    width: 426px;
    padding: 6px 32px;
    font-size: 30px;
    line-height: 48px;
  }

  .flow__bubble::after {
    bottom: -14px;
    border-top-width: 16px;
    border-inline-width: 17px;
  }

  .flow__title {
    font-size: 50px;
    line-height: 68px;
  }

  .flow__num {
    font-size: 1.36em;
  }

  .flow__chara {
    display: none;
  }

  .flow__steps {
    --step-gap: 52px;
    margin-top: 60px;
  }

  .step {
    flex-direction: row;
    gap: 20px;
    height: 180px;
    padding: 0 60px 0 0;
  }

  .step__icon {
    margin-inline: 40px;
  }

  .step__body {
    align-items: flex-start;
  }

  .step__num {
    font-size: 24px;
    line-height: 30px;
  }

  .step__title {
    font-size: 26px;
    line-height: 34px;
    text-align: left;
  }

  .step__text {
    font-weight: 700;
  }
}

/* ==========================================================
   お客様の声
   ========================================================== */
.voice {
  position: relative;
  padding-block: 48px;
  overflow: hidden;
  background-color: var(--color-white);
}

.voice::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: var(--gradient-orange);
}

.voice__slider {
  position: relative;
  margin: 40px calc(var(--gutter) * -1) 0;
}

/* SP：スクロールスナップのスライダー */
.voice__list {
  display: flex;
  gap: 20px;
  padding-inline: calc(50% - 150px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.voice__list::-webkit-scrollbar {
  display: none;
}

.voice-card {
  flex: 0 0 300px;
  overflow: hidden;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  scroll-snap-align: center;
}

.voice-card__img {
  width: 100%;
  aspect-ratio: 300 / 215;
  object-fit: cover;
}

.voice-card__body {
  padding: 20px 28px 28px;
}

.voice-card__text {
  padding-bottom: 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 27px;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-orange);
}

.voice-card__text--red {
  color: var(--color-red);
}

.voice-card__meta {
  margin-top: 16px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.05em;
}

.voice__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.voice__arrow {
  width: 44px;
  height: 44px;
  margin: -16px;
  background: url("../../images/pages/top/icon-chevron-left.svg") center / 7px 12px no-repeat;
}

.voice__arrow--next {
  background-image: url("../../images/pages/top/icon-chevron-right.svg");
}

.voice__dots {
  display: flex;
  gap: 16px;
}

.voice__dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-bg-gray);
  border-radius: 50%;
}

.voice__dot[aria-current="true"] {
  background-color: var(--color-red);
}

@media (min-width: 1200px) {
  .voice {
    padding-block: 80px;
  }

  .voice::before {
    bottom: 20px;
    left: calc(50% - 755px);
    width: 1441px;
    height: 354px;
    border-radius: 0 80px 80px 0;
  }

  .voice__slider {
    margin: 60px 0 0;
  }

  .voice__list {
    display: grid;
    grid-template-columns: repeat(3, 368px);
    justify-content: center;
    gap: 28px;
    padding-inline: 0;
    overflow: visible;
  }

  .voice-card__img {
    aspect-ratio: 368 / 240;
  }

  .voice-card__body {
    padding: 24px 32px 28px;
  }

  .voice-card__text {
    height: 116px;
    padding-bottom: 20px;
    font-size: 20px;
    line-height: 32px;
  }

  .voice-card__meta {
    margin-top: 20px;
    font-size: 14px;
    line-height: 22px;
  }

  .voice__controls {
    display: none;
  }
}

/* ==========================================================
   よくある質問
   ========================================================== */
.faq {
  position: relative;
  padding-block: 48px;
  overflow: hidden;
}

.faq__blob {
  position: absolute;
  pointer-events: none;
}

.faq__blob--red1,
.faq__blob--red2 {
  display: none;
}

.faq__blob--green {
  top: 428px;
  left: calc(50% - 187.5px + 250px);
  width: 177px;
}

.faq__blob--orange {
  top: 791px;
  left: calc(50% - 187.5px - 94px);
  width: 187px;
}

.faq .section-title {
  font-size: 28px;
  line-height: 50px;
  letter-spacing: 0.05em;
}

.faq__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
  margin: 40px auto 0;
}

.faq-item {
  padding: 0 16px;
  background-color: var(--color-tint-orange);
  border-radius: var(--radius-md);
}

.faq-item__q {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 32px 12px 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}

.faq-item__q::before {
  content: "Q";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding-bottom: 1px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-red);
  border-radius: 50%;
}

/* 開閉アイコン（開: ー / 閉: ＋） */
.faq-item__q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--color-text), var(--color-text)) center / 16px 1px no-repeat,
    linear-gradient(var(--color-text), var(--color-text)) center / 1px 16px no-repeat;
  transform: translateY(-50%);
}

.faq-item__q[aria-expanded="true"]::after {
  background: linear-gradient(var(--color-text), var(--color-text)) center / 16px 1px no-repeat;
}

.faq-item__a {
  display: flex;
  gap: 12px;
  padding: 0 20px 12px 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
}

.faq-item__a[hidden] {
  display: none;
}

.faq-item__a::before {
  content: "Ａ";
  flex-shrink: 0;
  width: 22px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  color: var(--color-red);
}

@media (min-width: 1200px) {
  .faq {
    padding-block: 80px;
  }

  .faq .section-title {
    font-size: 50px;
    line-height: 90px;
  }

  .faq__list {
    gap: 40px;
    margin-top: 60px;
  }

  .faq__blob--red1,
  .faq__blob--red2 {
    display: block;
  }

  .faq__blob--green,
  .faq__blob--orange {
    width: 208px;
  }

  .faq__blob--red1 {
    top: 229px;
    left: calc(50% - 720px + 67px);
  }

  .faq__blob--green {
    top: 656px;
    left: calc(50% - 720px + 1277px);
  }

  .faq__blob--orange {
    top: 964px;
    left: calc(50% - 720px - 104px);
  }

  .faq__blob--red2 {
    top: 1429px;
    left: calc(50% - 720px + 1235px);
  }

  .faq-item {
    padding: 0 40px;
    border-radius: var(--radius-xl);
  }

  .faq-item__q {
    align-items: center;
    gap: 20px;
    padding: 28px 44px 28px 0;
    font-size: 18px;
    line-height: 32px;
  }

  .faq-item__q::before {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .faq-item__a {
    gap: 20px;
    padding: 0 40px 28px 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
  }

  .faq-item__a::before {
    width: 30px;
    font-size: 18px;
    line-height: 25px;
  }
}

/* ==========================================================
   クロージングCTA
   ========================================================== */
.closing {
  position: relative;
  padding-block: 48px;
  overflow: hidden;
  background: var(--color-orange-deep) url("../../images/pages/top/bg-cta-pattern.webp") center / cover no-repeat;
}

.closing .container {
  position: static;
}

.closing__box {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1160px;
  margin-inline: auto;
  padding: 40px 20px 214px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
}

.closing__title {
  font-size: 28px;
  line-height: 47px;
  letter-spacing: 0.05em;
}

.closing__em {
  font-size: 36px;
  color: var(--color-red);
}

.closing__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -20px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: 0.02em;
  border-left: 1px solid var(--color-orange);
}

.closing__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.closing__cta {
  display: block;
  width: min(100%, 298px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.closing__cta:hover,
.closing__cta:focus-visible {
  transform: translateY(-2px);
  opacity: 0.9;
}

.closing__chara {
  position: absolute;
  top: 643px;
  left: calc(50% - 187.5px - 96px);
  width: 543px;
  pointer-events: none;
}

.closing__chara img {
  width: 100%;
}

@media (min-width: 1200px) {
  .closing {
    padding-block: 80px;
  }

  .closing .container {
    position: relative;
  }

  .closing__box {
    position: relative;
    gap: 36px;
    padding: 62px 80px;
    border-radius: var(--radius-xl);
  }

  .closing__title {
    font-size: 42px;
    line-height: 72px;
  }

  .closing__em {
    font-size: 48px;
  }

  .closing__text {
    width: 700px;
    gap: 8px;
    margin-top: 0;
    padding-left: 40px;
    font-size: 16px;
    line-height: 29px;
    border-left-width: 4px;
  }

  .closing__actions {
    flex-direction: row;
    gap: 40px;
  }

  .closing__actions .tel-block {
    width: 270px;
    padding: 5px 40px 5px 0;
    white-space: nowrap;
    border-right: 1px solid var(--color-red);
  }

  .closing__cta {
    width: 465px;
  }

  .closing__chara {
    top: 98px;
    left: 880px;
    width: 350px;
  }
}

/* ==========================================================
   お問い合わせ
   ========================================================== */
.contact {
  padding: 48px var(--gutter);
  background-color: var(--color-bg-form);
}

.contact__box {
  max-width: 1180px;
  margin-inline: auto;
  padding: 40px 20px;
  background-color: var(--color-white);
}

.contact__title {
  font-size: 32px;
  line-height: 48px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-orange-deep);
}

.contact__lead {
  margin-top: 30px;
  font-weight: 400;
  font-size: 14px;
  line-height: 30px;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  color: var(--color-black);
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.02em;
}

.contact-form__tag {
  padding: 6px 10px;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: var(--color-white);
  background-color: var(--color-orange-deep);
  border-radius: var(--radius-sm);
}

.contact-form__tag--optional {
  color: var(--color-black);
  background-color: var(--color-gray-100);
}

.contact-form__input {
  width: 100%;
  height: 62px;
  padding: 15px;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.02em;
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
}

/* 未入力時はグレー背景（Figmaの空欄状態） */
.contact-form__input:placeholder-shown {
  background-color: var(--color-bg-gray);
  border-color: var(--color-bg-gray);
}

.contact-form__input::placeholder {
  color: var(--color-placeholder);
}

.contact-form__input:focus-visible {
  outline: 2px solid var(--color-orange-deep);
  outline-offset: 1px;
}

.contact-form__textarea {
  height: 300px;
  resize: vertical;
}

.contact-form__privacy {
  font-weight: 400;
  font-size: 14px;
  line-height: 30px;
  letter-spacing: 0.02em;
}

.contact-form__privacy a {
  color: var(--color-orange-deep);
  text-decoration: underline;
}

.contact-form__agree {
  display: flex;
  align-items: center;
  gap: 15px;
  width: fit-content;
  margin: -4px auto 0;
  padding: 15px 28px;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  background-color: #f3f6f9;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.contact-form__checkbox {
  appearance: none;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.contact-form__checkbox:checked {
  background: var(--color-orange-deep) url("../../images/common/checkbox-check.svg") center / 13px no-repeat;
  border-color: var(--color-orange-deep);
}

.contact-form__checkbox:focus-visible {
  outline: 2px solid var(--color-orange-deep);
  outline-offset: 2px;
}

.contact-form__submit {
  width: min(100%, 400px);
  height: 72px;
  margin: 36px auto 0;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.04em;
  color: var(--color-white);
  background-color: var(--color-orange-deep);
  border-radius: 100px;
  transition: opacity 0.2s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  opacity: 0.85;
}

@media (min-width: 1200px) {
  .contact {
    padding-block: 80px;
  }

  .contact__box {
    padding: 80px 110px;
  }

  .contact__title {
    font-size: 48px;
    line-height: 72px;
  }

  .contact__lead {
    font-size: 16px;
    text-align: center;
  }

  .contact-form {
    gap: 40px;
  }

  .contact-form__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .contact-form__row--top {
    align-items: flex-start;
  }

  .contact-form__row--top .contact-form__label {
    padding-top: 20px;
  }

  .contact-form__label {
    gap: 10px;
  }

  .contact-form__input {
    width: 700px;
    height: 70px;
    padding: 20px 25px;
  }

  .contact-form__textarea {
    height: 300px;
  }

  .contact-form__privacy {
    margin-top: -20px;
    font-size: 16px;
    text-align: center;
  }

  .contact-form__agree {
    margin-top: -20px;
    padding: 20px 60px;
  }

  .contact-form__submit {
    margin-top: 0;
  }
}

/* ===== お問い合わせ：エラー・確認画面・完了 ===== */
/* display:flex 指定が hidden 属性に勝たないようにする */
.contact [hidden] {
  display: none !important;
}

.contact-form__error {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  color: var(--color-red);
}

.contact-confirm,
.contact-thanks {
  margin-top: 40px;
  color: var(--color-black);
}

.contact-confirm__lead,
.contact-thanks__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 30px;
  letter-spacing: 0.02em;
}

.contact-confirm__lead:focus,
.contact-thanks__title:focus {
  outline: none;
}

.contact-confirm__list {
  margin-top: 24px;
  border-top: 1px solid var(--color-gray-300);
}

.contact-confirm__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-gray-300);
}

.contact-confirm__item dt {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: var(--color-orange-deep);
}

.contact-confirm__item dd {
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-confirm__turnstile {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.contact-confirm .contact-form__error {
  margin-top: 16px;
}

.contact-confirm__actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.contact-confirm__actions .contact-form__submit {
  margin: 0;
}

.contact-confirm__back {
  width: min(100%, 400px);
  height: 72px;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.04em;
  color: var(--color-orange-deep);
  background-color: var(--color-white);
  border: 2px solid var(--color-orange-deep);
  border-radius: 100px;
  transition: opacity 0.2s ease;
}

.contact-confirm__back:hover,
.contact-confirm__back:focus-visible {
  opacity: 0.75;
}

.contact-confirm button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.contact-thanks {
  text-align: center;
}

.contact-thanks__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: var(--color-orange-deep);
}

.contact-thanks__text {
  margin-top: 16px;
}

@media (min-width: 1200px) {
  .contact-confirm__item {
    flex-direction: row;
    gap: 24px;
    padding: 20px 0;
  }

  .contact-confirm__item dt {
    flex: 0 0 200px;
    font-size: 16px;
    line-height: 30px;
  }

  .contact-confirm__actions {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}
