@charset "utf-8";

/* =========================================================
   TOP専用
   ========================================================= */

/* ---------------------------------------------------------
   ファーストビュー
   --------------------------------------------------------- */
.p-fv {
  /* 左520px+右616pxの設計幅1136pxに対する縮小率。1232px未満で全体が等比縮小する */
  --fv-scale: min(1px, calc((100vw - 48px) / 1136));
  position: relative;
  /* 波模様の合成相手をFVの中に閉じ込める */
  isolation: isolate;
  overflow: hidden;
  height: calc(690 * var(--fv-scale));
  padding: 0;
  background-image: linear-gradient(115.09deg, var(--c-primary) 1.3385%, var(--c-primary-accent) 103.03%);
  color: var(--c-bg);
}

/* CTA帯と同じ理由で、soft-light が効く環境でだけ出す */
.p-fv__wave { display: none; }
@supports (mix-blend-mode: soft-light) {
  .p-fv__wave {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: .2;
    mix-blend-mode: soft-light;
    pointer-events: none;
  }
}

.p-fv__wave img {
  position: absolute;
  left: -52.38%;
  top: -62.72%;
  width: 204.8%;
  height: 204.8%;
  max-width: none;
  /* 縦に伸びるのを防ぐ。詳細は .c-cta__wave img と同じ */
  object-fit: cover;
}

.p-fv__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1200px);
  height: 100%;
  margin: 0 auto;
  padding: calc(60 * var(--fv-scale)) 24px;
}

.p-fv__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(28 * var(--fv-scale));
  width: calc(520 * var(--fv-scale));
  flex-shrink: 0;
}

.p-fv__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.p-fv__eyebrow {
  margin: 0;
  color: var(--c-bg);
  font-size: calc(24 * var(--fv-scale));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .48px;
}

.p-fv__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--c-bg);
  font-family: var(--font-jp);
  font-size: calc(46.567 * var(--fv-scale));
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.p-fv__title span {
  display: block;
  padding: 4px 0 4px 12px;
}

.p-fv__title span:first-child { padding-right: 12px; }
.p-fv__title strong {
  color: inherit;
  font-size: calc(58.209 * var(--fv-scale));
  font-weight: 900;
}
.p-fv__title span:last-child { font-size: calc(62.09 * var(--fv-scale)); }

.p-fv__badges {
  display: flex;
  align-items: center;
  gap: calc(29.091 * var(--fv-scale));
  width: calc(479 * var(--fv-scale));
  height: calc(140 * var(--fv-scale));
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-fv__badge {
  position: relative;
  width: calc(140 * var(--fv-scale));
  height: calc(140 * var(--fv-scale));
  flex-shrink: 0;
}

.p-fv__badge-medal {
  position: absolute;
  z-index: 1;
  top: calc(.91 * var(--fv-scale));
  left: 50%;
  display: block;
  width: calc(132.727 * var(--fv-scale));
  height: calc(132.727 * var(--fv-scale));
  transform: translateX(-50%);
}

.p-fv__badge-ribbon {
  position: absolute;
  bottom: calc(2 * var(--fv-scale));
  display: block;
  width: calc(23.182 * var(--fv-scale));
  height: calc(52.727 * var(--fv-scale));
}
.p-fv__badge-ribbon__left {
  left: calc(24 * var(--fv-scale));
  transform: rotate(30deg);
}
.p-fv__badge-ribbon__right {
  right: calc(24 * var(--fv-scale));
  transform: rotate(-30deg);
}

.p-fv__badge-text {
  position: absolute;
  z-index: 2;
  top: calc(36 * var(--fv-scale));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(3 * var(--fv-scale));
  width: calc(100 * var(--fv-scale));
  color: #2a2e2f;
  text-align: center;
  transform: translateX(-50%);
}
.p-fv__badge-label {
  font-size: calc(13.22 * var(--fv-scale));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.p-fv__badge-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}
.p-fv__badge-number strong {
  font-size: calc(52 * var(--fv-scale));
  font-weight: 900;
  letter-spacing: -.04em;
}
.p-fv__badge-number span {
  margin-left: 2px;
  font-size: calc(14 * var(--fv-scale));
  font-weight: 700;
}

.p-fv__buttons {
  display: flex;
  align-items: center;
  gap: calc(10.372 * var(--fv-scale));
}

.p-fv__button {
  min-width: calc(221.7 * var(--fv-scale));
  padding: calc(12.965 * var(--fv-scale)) calc(38.894 * var(--fv-scale));
  gap: calc(7.779 * var(--fv-scale));
  font-size: max(14px, calc(19.45 * var(--fv-scale)));
}
/* box-shadow ごと上書きするとホバー時の影が消えるので、太さだけ渡す */
.p-fv__button.c-btn__onbg-secondary { --onbg-ring: 2.917px; }
.p-fv__button .c-icon {
  width: calc(31.116 * var(--fv-scale));
  height: calc(31.116 * var(--fv-scale));
}
.p-fv__button .c-btn__tip {
  top: -13px;
  padding: 6px 12px;
  font-size: 10px;
  line-height: 8px;
  letter-spacing: .04px;
}

.p-fv__button .c-btn__tip::after {
  bottom: -6px;
  border-width: 6px 6px 0;
}

.p-fv__visual {
  display: block;
  margin: 0;
}
.p-fv__visual img { display: block; width: 100%; height: auto; }
.p-fv__visual__pc { width: calc(616 * var(--fv-scale)); flex-shrink: 0; }

/* FVのアプリ画像の切り替え。重ねて不透明度だけを入れ替える */
.p-fv__slides {
  --fv-fade: .8s;
  position: relative;
  /* 受領した画像（1216x1141 の2倍解像度）の比率に合わせる。
     3枚とも同じ比率なので、切り替えで枠の高さが動かない */
  aspect-ratio: 1216 / 1141;
}
.p-fv__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fv-fade) ease;
}
.p-fv__slide.is__active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .p-fv__slide { transition: none; }
}

.p-fv__visual__sp { display: none; }

.p-fv__powered {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8.068px;
  margin: 0;
  color: var(--c-bg);
  font-family: var(--font-en);
  font-size: 12.91px;
  font-weight: 700;
  line-height: 1.2;
}
.p-fv__powered img { display: block; width: 61.736px; height: auto; }

/* FVのみ767pxまでPCレイアウトを保つ（左右2カラムが等比縮小で成立するため） */
@media (max-width: 767px) {
  .p-fv {
    height: 648px;
    background-image: linear-gradient(97.56deg, var(--c-primary) 1.3385%, var(--c-primary-accent) 103.03%);
  }

  .p-fv__inner {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    width: 100%;
    /* 下部はPowered byロゴ（絶対配置）と重ならないよう余白を広めに取る */
    padding: 20px 13.86px 56px;
  }

  .p-fv__left {
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .p-fv__heading {
    gap: 6.93px;
    width: 300.304px;
  }

  .p-fv__eyebrow {
    width: 100%;
    font-size: 13.86px;
    line-height: 1.4;
    letter-spacing: .2772px;
    text-align: center;
  }

  .p-fv__title {
    align-items: stretch;
    width: 100%;
    font-size: 26.893px;
    text-align: center;
  }
  .p-fv__title span {
    width: 100%;
    padding: 2.31px 0 2.31px 6.93px;
  }
  .p-fv__title span:first-child { padding-right: 6.93px; }
  .p-fv__title strong { font-size: 33.616px; }
  .p-fv__title span:last-child { font-size: 35.857px; }

  .p-fv__visual__pc { display: none; }
  .p-fv__visual__sp {
    display: block;
    width: 356px;
    max-width: 100%;
  }

  .p-fv__badges {
    gap: 18.25px;
    width: 300px;
    height: 88px;
    margin-top: 16px;
  }

  .p-fv__badge {
    width: 87.833px;
    height: 87.833px;
  }
  .p-fv__badge-medal {
    top: .57px;
    width: 83.27px;
    height: 83.27px;
  }
  .p-fv__badge-ribbon {
    bottom: 1.25px;
    width: 14.544px;
    height: 33.08px;
  }
  .p-fv__badge-ribbon__left { left: 15px; }
  .p-fv__badge-ribbon__right { right: 15px; }
  .p-fv__badge-text {
    top: 22.5px;
    gap: 2px;
    width: 63px;
  }
  .p-fv__badge-label { font-size: 8.3px; }
  .p-fv__badge-number strong { font-size: 32.6px; }
  .p-fv__badge-number span { margin-left: 1px; font-size: 8.8px; }

  .p-fv__buttons { display: none; }

}

/* ---------------------------------------------------------
   導入企業リスト
   --------------------------------------------------------- */
.p-clients {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 20px 0;
  background: var(--c-bg);
}

.p-clients__viewport {
  width: 100%;
  overflow: hidden;
}

.p-clients__track {
  display: flex;
  width: max-content;
  animation: clients-scroll 36s linear infinite;
  will-change: transform;
}

.p-clients__list {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 90px;
  margin: 0;
  padding: 0 48px 0 0;
  list-style: none;
}

.p-clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 90px;
  flex-shrink: 0;
}

.p-clients__item img {
  display: block;
  max-width: 180px;
  max-height: 80px;
  width: auto;
  height: auto;
}

.p-clients__note {
  margin: 0;
  padding: 0 16px;
  color: var(--c-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 991px) {
  .p-clients { gap: 12px; }
  .p-clients__track { animation-duration: 30s; }
  .p-clients__list {
    gap: 28px;
    height: 47px;
    padding-right: 28px;
  }
  .p-clients__item {
    width: 90px;
    height: 47px;
  }
  .p-clients__item img {
    max-width: 90px;
    max-height: 44px;
  }
  .p-clients__note {
    padding: 0 12px;
    color: #696e6f;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-clients__viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .p-clients__viewport::-webkit-scrollbar { display: none; }
  .p-clients__track { animation: none; }
}

/* ---------------------------------------------------------
   課題提起
   --------------------------------------------------------- */
.p-trouble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 80px 24px;
  background: #f0f2f2;
}

.p-trouble__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.p-trouble__lead {
  margin: 0;
  color: var(--c-secondary);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.p-trouble__title {
  margin: 0;
  padding-top: 4px;
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 40px;
  font-weight: 700;
  line-height: 44.8px;
  text-align: center;
}

.p-trouble__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.p-trouble__cases {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  width: min(980px, calc(100vw - 48px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-trouble__case {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 316px;
  padding: 20px 20px 24px;
  border-radius: 24px;
  background: var(--c-bg);
}

.p-trouble__case-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  border-radius: 999px;
  background: var(--c-secondary);
  color: #fff;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.p-trouble__case-title {
  width: 100%;
  margin: 0;
  color: var(--c-secondary);
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
  text-align: center;
}

.p-trouble__arrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 132.5px;
  height: 118.5px;
}
.p-trouble__arrow img {
  display: block;
  width: 49.5px;
  height: 24px;
  /* Lottie は 30fps / 全35フレームで、2〜16で下降、16〜30で復帰、30〜35は静止。
     1.167秒に同じ配分で割り当てている。移動量40はシェブロン高さ54に対する比なので、
     表示24pxでは17.8px。 */
  animation: trouble-arrow 1.167s cubic-bezier(.333, 0, .667, 1) infinite;
}
/* 濃さは元の矢印（上 0.6 / 下 1.0）に合わせる */
.p-trouble__arrow img:nth-child(1) { opacity: .6; animation-delay: 0s; }
.p-trouble__arrow img:nth-child(2) { opacity: 1; animation-delay: .033s; }

@keyframes trouble-arrow {
  0%, 5.7% { transform: translateY(0); }
  45.7% { transform: translateY(var(--arrow-travel, 17.8px)); }
  85.7%, 100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .p-trouble__arrow img { animation: none; }
}

.p-trouble__points {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(980px, calc(100vw - 48px));
}

.p-trouble__point {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 21px 28px;
  border: 8px solid var(--c-bg);
  border-radius: 16px;
  background: var(--c-bg);
}

.p-trouble__point-figure {
  width: 439.27px;
  height: 202px;
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}
.p-trouble__point-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-trouble__point__reverse .p-trouble__point-figure { order: 2; }

.p-trouble__point-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.p-trouble__point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  border-radius: 999px;
  background: var(--c-secondary);
  color: var(--c-bg);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.p-trouble__point-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.p-trouble__point-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-weight: 700;
  letter-spacing: 1.28px;
}

.p-trouble__point-brand {
  margin: 0;
  color: var(--c-text);
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}
.p-trouble__point-brand span { font-family: var(--font-en); }

.p-trouble__point-heading h3 {
  width: 100%;
  margin: 0;
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.p-trouble__point-description {
  margin: 0;
  color: var(--c-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}
.p-trouble__point-description strong {
  color: #2a2e2f;
  font-weight: 700;
  background-image: linear-gradient(90deg, rgba(255, 170, 61, .6), rgba(255, 99, 128, .6));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .7em;
}

@media (max-width: 991px) {
  .p-trouble {
    gap: 24px;
    padding: 32px 24px;
  }
  .p-trouble__header { width: 100%; }
  .p-trouble__lead {
    font-size: 16px;
    line-height: 28px;
  }
  .p-trouble__title {
    width: 100%;
    font-size: 24px;
    line-height: 1.2;
  }
  .p-trouble__body {
    gap: 20px;
    width: 100%;
  }
  .p-trouble__cases {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .p-trouble__case {
    width: 316px;
    max-width: 100%;
  }
  .p-trouble__case-title {
    font-size: 16px;
    line-height: 33px;
    white-space: nowrap;
  }
  .p-trouble__case-break { display: none; }
  .p-trouble__arrow {
    gap: 4px;
    width: 66.25px;
    height: 59.25px;
  }
  .p-trouble__arrow img {
    width: 24.75px;
    height: 12px;
    /* 表示が半分なので移動量も半分にする */
    --arrow-travel: 8.9px;
  }
  .p-trouble__points {
    width: 100%;
  }
  .p-trouble__point {
    flex-direction: column;
    gap: 16px;
    padding: 21px 28px;
  }
  .p-trouble__point-figure,
  .p-trouble__point__reverse .p-trouble__point-figure {
    order: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 274 / 126;
  }
  .p-trouble__point-body { order: 1; }
}

/* ---------------------------------------------------------
   対象ツール
   --------------------------------------------------------- */
.p-package {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  overflow: hidden;
  padding: 80px 0;
  background: #f0f2f2;
}

.p-package__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.p-package__header h2 {
  width: 240px;
  margin: 0;
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.p-package__header p {
  margin: 0;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
}

.p-package__carousel {
  --package-card-width: min(320px, calc(100vw - 56px));
  position: relative;
  width: min(100%, 1512px);
}

.p-package__swiper { width: 100%; overflow: hidden; }
.p-package__swiper .swiper-wrapper { align-items: stretch; }
.p-package__slide {
  width: var(--package-card-width);
  height: auto;
}

.p-package__app {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: var(--package-card-width);
  height: 100%;
  min-height: 447px;
  padding-bottom: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--c-bg);
}

.p-package__app-visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 225;
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.p-package__app-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-package__app-visual__online {
  background-image: linear-gradient(-50.77deg, #ff66a3 1.2862%, #fff 100%);
}
.p-package__app-visual__booco {
  background-image: linear-gradient(-50.77deg, #00afaa 1.2862%, #cafffd 100%);
}
.p-package__app-visual__shadoco {
  background-image: linear-gradient(-50.77deg, #3d6ec7 1.2862%, #e6e9fd 100%);
}
.p-package__app-visual__talking {
  background-image: linear-gradient(-50.77deg, #ffd100 1.2862%, #fff 100%);
}
.p-package__app-visual__levelcheck {
  background-image: linear-gradient(-50.77deg, #b8ff00 1.2862%, #fff 100%);
}
.p-package__app-visual__seminar {
  background-image: linear-gradient(-50.77deg, #5ccfe5 1.2862%, #fff 100%);
}

.p-package__new {
  position: absolute;
  top: 13px;
  left: -29px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  padding: 0 10px;
  background: var(--c-primary-accent);
  color: var(--c-bg);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .64px;
  transform: rotate(-45deg);
}

.p-package__app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 8px 16px;
}

.p-package__app-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 45px;
}
.p-package__app-heading h3 {
  margin: 0;
  color: #2a2e2f;
  font-family: var(--font-en);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.p-package__slide:nth-child(2) .p-package__app-heading h3,
.p-package__slide:nth-child(3) .p-package__app-heading h3 { font-size: 28px; }

.p-package__app-logo {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.p-package__option {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(42, 46, 47, .8);
  color: var(--c-bg);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.p-package__app-description {
  flex: 1;
  margin: 0;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.p-package__app-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.p-package__app-link:hover { color: var(--c-text); opacity: .8; }
.p-package__app-link img { display: block; width: 32px; height: 32px; }

.p-package__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 13.636px;
  border: 0;
  border-radius: 13.636px;
  background: #2a2e2f;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, .25));
  cursor: pointer;
  transform: translateY(-50%);
}
.p-package__nav img { display: block; width: 32.727px; height: 32.727px; }
.p-package__nav__prev {
  left: max(16px, calc(50% - 456px));
}
.p-package__nav__prev img { transform: rotate(180deg); }
.p-package__nav__next {
  right: max(16px, calc(50% - 456px));
}
.p-package__nav.swiper-button-disabled { opacity: .35; cursor: default; }
.p-package__nav:focus-visible {
  outline: 3px solid var(--c-accent2);
  outline-offset: 3px;
}

.p-package__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.p-package__detail h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.p-package__detail h3 img { display: block; width: 48px; height: 48px; }

.p-package__study {
  display: block;
  width: min(980px, calc(100vw - 48px));
  padding: 48px;
  border: 0;
  border-radius: 24px;
  background: var(--c-bg);
  cursor: zoom-in;
  transition: box-shadow .2s ease;
}
.p-package__study:hover { box-shadow: 0 8px 16px rgba(42, 46, 47, .16); }
.p-package__study:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 4px; }
.p-package__study img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1513px) {
  .p-package__carousel::before,
  .p-package__carousel::after {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    content: "";
  }
  .p-package__carousel::before {
    left: 0;
    background: linear-gradient(90deg, #f0f2f2 0%, rgba(240, 242, 242, 0) 100%);
  }
  .p-package__carousel::after {
    right: 0;
    background: linear-gradient(270deg, #f0f2f2 0%, rgba(240, 242, 242, 0) 100%);
  }
}

@media (max-width: 991px) {
  .p-package {
    gap: 32px;
    padding: 32px 0;
  }
  .p-package__header {
    width: 100%;
    padding: 0 16px;
  }
  .p-package__header h2 {
    font-size: 24px;
    line-height: 1.2;
  }
  .p-package__header p {
    width: 100%;
    font-size: 14px;
    text-align: left;
    white-space: normal;
  }
  .p-package__nav__prev { left: 5px; }
  .p-package__nav__next { right: 5px; }
  .p-package__detail {
    width: 100%;
    padding: 0 16px;
  }
  .p-package__detail h3 {
    gap: 8px;
    font-size: 18px;
  }
  .p-package__detail h3 img { width: 30px; height: 30px; }
  .p-package__study {
    width: 100%;
    padding: 16px;
  }
}

@media (max-width: 359px) {
  .p-package__carousel {
    --package-card-width: calc(100vw - 40px);
  }
  .p-package__app-body { padding-right: 12px; padding-left: 12px; }
  .p-package__app-heading h3 { font-size: 19px; }
  .p-package__slide:nth-child(1) .p-package__app-heading h3 { font-size: 17px; }
  .p-package__slide:nth-child(2) .p-package__app-heading h3,
  .p-package__slide:nth-child(3) .p-package__app-heading h3 { font-size: 24px; }
  .p-package__slide:nth-child(4) .p-package__app-heading h3 { font-size: 16px; }
  .p-package__app-logo { width: 38px; height: 38px; }
  .p-package__option { font-size: 10px; }
  .p-package__app-description { font-size: 13px; }
  .p-package__nav {
    width: 52px;
    height: 52px;
    padding: 11px;
  }
  .p-package__nav img { width: 30px; height: 30px; }
  .p-package__nav__prev { left: 4px; }
  .p-package__nav__next { right: 4px; }
}

/* ---------------------------------------------------------
   料金プラン
   --------------------------------------------------------- */
.p-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
}

.p-plan p,
.p-plan h2,
.p-plan h3,
.p-plan h4,
.p-plan dl,
.p-plan dd,
.p-plan ul {
  margin: 0;
}

.p-plan__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.p-plan__header h2 {
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
}

.p-plan__header p {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.p-plan__cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(980px, calc(100vw - 48px));
}

.p-plan__plus {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.p-plan__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 454px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 16px;
  background: var(--c-bg);
}

.p-plan__card.is__standard {
  border-color: var(--c-primary-accent);
  color: var(--c-primary-accent);
}

.p-plan__card.is__option {
  border-color: var(--c-secondary);
  color: var(--c-secondary);
}

.p-plan__card-type {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 10px;
  color: var(--c-bg);
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.is__standard .p-plan__card-type { background: var(--c-primary-accent); }
.is__option .p-plan__card-type { background: var(--c-secondary); }

.p-plan__card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 16px;
}

.p-plan__card-name {
  width: 100%;
  color: currentcolor;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.p-plan__card-note {
  width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  background: #ffeeea;
  color: var(--c-primary-accent);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.is__option .p-plan__card-note {
  background: #eaf8fa;
  color: var(--c-secondary);
}

.p-plan__card-price {
  width: 100%;
  padding: 0 16px;
  color: var(--c-text);
  font-size: 0;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.p-plan__card-price > span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.p-plan__card-price strong {
  color: currentcolor;
  font-family: var(--font-en);
  font-size: 76px;
  line-height: 1;
}

.is__standard .p-plan__card-price strong { color: var(--c-primary-accent); }
.is__option .p-plan__card-price strong { color: var(--c-secondary); }

.p-plan__card-price small {
  color: #2a2e2f;
  font-size: 16px;
  line-height: 2.2;
}

.p-plan__card-monthly {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid currentcolor;
  border-radius: 4px;
  color: currentcolor;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.p-plan__card-monthly small { font-size: 12px; }

.p-plan__features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 87px;
  padding: 12px 8px 16px;
  border-top: 1px solid #dcdcdc;
  list-style: none;
}

.p-plan__features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 76px;
  color: currentcolor;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.p-plan__features img {
  display: block;
  width: 36px;
  height: 36px;
}

.p-plan__pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(980px, calc(100vw - 48px));
}

.p-plan__pricing > h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
}

.p-plan__pricing > h3 img {
  display: block;
  width: 48px;
  height: 48px;
}

.p-plan__pricing-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.p-plan__premises {
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 240px;
  height: 254px;
  flex-shrink: 0;
}

.p-plan__premises > div {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -1px;
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
  background: var(--c-bg);
}

.p-plan__premises > div:first-child {
  margin-top: 0;
  border-radius: 12px 12px 0 0;
}

.p-plan__premises > div:last-child { border-radius: 0 0 12px 12px; }

.p-plan__premises dt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffeeea;
  color: #2a2e2f;
  font-size: 0;
}

.p-plan__premises dt img { width: 36px; height: 36px; }

.p-plan__premises dd {
  color: #2a2e2f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.p-plan__premises dd::before {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
}

.p-plan__premises > div:first-child dd::before { content: "初期費用"; }
.p-plan__premises > div:last-child dd::before { content: "契約期間"; }

.p-plan__premises dd strong {
  color: var(--c-primary-accent);
  font-size: 20px;
}

.p-plan__premises dd span { font-size: 12px; }

.p-plan__premises dd small {
  display: block;
  color: #696e6f;
  font-size: 12px;
  font-weight: 400;
}

.p-plan__table-wrap { width: 724px; }

.p-plan__price-table {
  width: 100%;
  /* collapse だと border-radius が枠線に効かず、角丸にした背景の
     外側に四角い線が残ってしまう。separate にして角丸を効かせ、
     隣り合うセルで線が二重にならないよう下と右だけを持たせる。 */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #2a2e2f;
}

.p-plan__price-table th,
.p-plan__price-table td {
  height: 61px;
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
  /* 上辺と左辺は隣のセルが描くので持たない。外周ぶんだけ下で戻す */
  border-top-width: 0;
  border-left-width: 0;
  text-align: center;
  vertical-align: middle;
}
.p-plan__price-table thead th { border-top-width: 1px; }
.p-plan__price-table tr > *:first-child { border-left-width: 1px; }

.p-plan__price-table thead th {
  height: 70px;
  font-size: 19px;
  line-height: 1.4;
}

.p-plan__price-table thead th:first-child {
  width: 24%;
  border-radius: 12px 0 0;
  background: #f0f2f2;
}

.p-plan__price-table thead th:nth-child(2) {
  width: 38%;
  background: #ffeeea;
  color: var(--c-primary-accent);
}

.p-plan__price-table thead th:nth-child(3) {
  width: 38%;
  border-radius: 0 12px 0 0;
  background: #eaf8fa;
  color: var(--c-secondary);
}

/* 下の角も見出し行と同じ12pxに揃える。
   本体の最終行の左端セルと右端セルが表の下端になる */
.p-plan__price-table tbody tr:last-child > *:first-child { border-radius: 0 0 0 12px; }
.p-plan__price-table tbody tr:last-child > *:last-child { border-radius: 0 0 12px 0; }

.p-plan__price-table thead th span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 2px 20px;
  border-radius: 50px;
  background: currentcolor;
  font-size: 12px;
  line-height: 1.6;
}

.p-plan__price-table thead th:nth-child(2) span { color: #ffeeea; background: var(--c-primary-accent); }
.p-plan__price-table thead th:nth-child(3) span { color: #eaf8fa; background: var(--c-secondary); }

.p-plan__price-table tbody th {
  font-size: 16px;
  line-height: 1.4;
}

.p-plan__people {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.p-plan__people img { width: 34px; max-height: 21px; }

.p-plan__price-table tbody th small,
.p-plan__price-table td small {
  display: block;
  color: #696e6f;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.p-plan__price-table td { font-size: 0; white-space: nowrap; }
.p-plan__price-table td strong { font-size: 20px; line-height: 1.6; }
.p-plan__price-table td > span { font-size: 12px; line-height: 1.6; }
.p-plan__price-table td small { font-size: 14px; line-height: 1.6; }

.p-plan__comparison {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(980px, calc(100vw - 48px));
  padding: 32px;
  border-radius: 16px;
  background: #faf8f3;
}

.p-plan__comparison > h3 {
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.p-plan__comparison-graph {
  display: block;
  width: 500px;
  height: auto;
}

.p-plan__comparison-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 840px;
}

.p-plan__comparison-tables > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.p-plan__comparison-tables h4 {
  min-height: 52px;
  color: #000;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.p-plan__comparison-tables table {
  width: 100%;
  border-collapse: collapse;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.6;
}

.p-plan__comparison-tables th,
.p-plan__comparison-tables td {
  padding: 8px 16px;
  border: 1px solid #dcdcdc;
}

.p-plan__comparison-tables th { width: 68%; text-align: right; }
.p-plan__comparison-tables td { text-align: right; white-space: nowrap; }
.p-plan__comparison-tables small { display: block; font-size: 10px; }
.p-plan__comparison-tables .p-plan__total th,
.p-plan__comparison-tables .p-plan__total td { color: #2a2e2f; font-weight: 700; }
.p-plan__comparison-tables > div > p { font-size: 10px; }

@media (max-width: 991px) {
  .p-plan {
    gap: 24px;
    padding: 32px 16px;
  }
  .p-plan__header {
    align-items: flex-start;
    width: 100%;
    padding: 0 16px;
  }
  .p-plan__header h2 {
    align-self: center;
    font-size: 24px;
    line-height: 1.2;
  }
  .p-plan__header p {
    font-size: 14px;
    text-align: left;
  }
  .p-plan__cards {
    flex-direction: column;
    width: 100%;
  }
  .p-plan__card { width: 300px; }
  .p-plan__card-type {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 16px;
  }
  .p-plan__card-name { font-size: 20px; }
  .p-plan__card-price { padding: 0; }
  .p-plan__card-price strong { font-size: 40px; }
  .p-plan__card-price small { font-size: 16px; }
  .p-plan__features {
    flex-wrap: wrap;
    min-height: 0;
  }
  .p-plan__plus { width: 48px; height: 48px; }
  .p-plan__pricing { width: 100%; }
  .p-plan__pricing > h3 {
    gap: 10px;
    font-size: 16px;
  }
  .p-plan__pricing > h3 img { width: 24px; height: 24px; }
  .p-plan__pricing-body {
    flex-direction: column;
    align-items: center;
  }
  .p-plan__premises {
    width: 240px;
    height: 166px;
  }
  .p-plan__premises > div { justify-content: center; }
  .p-plan__premises dt {
    width: 60px;
    height: 60px;
  }
  .p-plan__premises dt img { width: 30px; height: 30px; }
  .p-plan__table-wrap {
    display: flex;
    /* 既定は左寄せ。表(600px)は多くの端末幅に収まらないため。
       中央寄せは下のメディアクエリで、収まる幅になってから効かせる。
       margin:auto や safe center だと、はみ出したときの扱いが
       エンジンによって変わり、1列目が画面外に隠れることがある。 */
    justify-content: flex-start;
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .p-plan__table-wrap::-webkit-scrollbar { display: none; }
  .p-plan__price-table {
    /* 中央寄せは親の justify-content に任せる。
       margin:auto だとスクロールコンテナ内で左側が隠れてしまう */
    flex: 0 0 auto;
    width: 600px;
    margin: 0;
  }
  .p-plan__price-table th,
  .p-plan__price-table td {
    height: 55px;
    padding: 7px 16px;
  }
  .p-plan__price-table thead th {
    height: 59px;
    font-size: 16px;
  }
  .p-plan__price-table thead th:first-child { width: 144px; }
  .p-plan__price-table thead th:nth-child(2),
  .p-plan__price-table thead th:nth-child(3) { width: 228px; }
  .p-plan__price-table thead th span {
    padding: 1px 16px;
    font-size: 10px;
  }
  .p-plan__price-table tbody th { font-size: 14px; }
  .p-plan__people { gap: 7px; }
  .p-plan__people img { width: 28px; max-height: 18px; }
  .p-plan__price-table tbody th small,
  .p-plan__price-table td small { font-size: 10px; }
  .p-plan__price-table td { white-space: nowrap; }
  .p-plan__price-table td strong {
    display: inline;
    font-size: 16px;
  }
  .p-plan__price-table td > span {
    display: inline;
    font-size: 10px;
  }
  .p-plan__price-table td small { font-size: 10px; }
  .p-plan__comparison {
    gap: 24px;
    width: 100%;
    padding: 24px 16px;
  }
  .p-plan__comparison > h3 {
    font-size: 20px;
  }
  .p-plan__comparison-graph { width: 100%; }
  .p-plan__comparison-tables {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }
  .p-plan__comparison-tables h4 {
    min-height: 0;
    font-size: 14px;
  }
  .p-plan__comparison-tables table { font-size: 12px; }
  .p-plan__comparison-tables th,
  .p-plan__comparison-tables td { padding: 8px; }
}

/* ---------------------------------------------------------
   導入までの流れ
   --------------------------------------------------------- */
.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 0;
  background: #f0f2f2;
}

.p-step__header h2 {
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
}

.p-step__list {
  display: flex;
  flex-wrap: wrap;
  /* 説明文が2行のカードと3行のカードが混ざるので、
     stretch で行内の高さを揃える（矢印だけ align-self で中央に戻す） */
  align-items: stretch;
  justify-content: center;
  column-gap: 0;
  row-gap: 36px;
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* カード5枚+矢印4つの実寸は1290pxで、そのままだと1200pxに収まらない。
   デザインどおり隣同士を12px重ねて詰めている。 */
.p-step__list > *:not(:last-child) { margin-right: -12px; }

.p-step__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 220px;
  padding: 20px 8px;
  border-radius: 14.08px;
  background: var(--c-bg);
}

.p-step__no {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  margin: 0;
  color: var(--c-secondary);
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.p-step__no span:first-child { font-size: 24.64px; }
.p-step__no span:last-child { font-size: 64px; }

.p-step__image { display: block; width: 141px; height: 141px; }

.p-step__text {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  text-align: center;
}

.p-step__title {
  margin: 0;
  color: var(--c-secondary);
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 3.84px;
}

.p-step__detail {
  margin: 0;
  color: var(--c-text);
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
/* 改行位置がデザイン指定なので、行ごとにブロックにして折り返させない */
.p-step__detail span { display: block; }

/* カードを12px重ねている都合で、DOM順が後のカードが矢印を覆ってしまう。
   矢印は常に手前に出す */
.p-step__arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: center;
  flex-shrink: 0;
}
.p-step__arrow img {
  display: block;
  width: 47.52px;
  height: 47.52px;
  /* 矢印の向きに沿って軽く前後させる。リズムは trouble の矢印と揃えている */
  animation: step-arrow 1.167s cubic-bezier(.333, 0, .667, 1) infinite;
}
/* 左から順に遅らせて、流れているように見せる */
.p-step__arrow:nth-child(2) img { animation-delay: 0s; }
.p-step__arrow:nth-child(4) img { animation-delay: .08s; }
.p-step__arrow:nth-child(6) img { animation-delay: .16s; }
.p-step__arrow:nth-child(8) img { animation-delay: .24s; }

@keyframes step-arrow {
  0%, 5.7% { transform: translateX(0); }
  45.7% { transform: translateX(8px); }
  85.7%, 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .p-step__arrow img { animation: none; }
}

@media (max-width: 991px) {
  .p-step { gap: 32px; padding: 32px 16px; }
  .p-step__header h2 { font-size: 24px; line-height: 1.2; text-align: center; }

  .p-step__list {
    flex-direction: column;
    /* 縦積みでは align-items が横方向の指定になる。
       PC用の stretch のままだと固定幅のカードが左に寄る */
    align-items: center;
    row-gap: 0;
    padding: 0 16px;
  }
  .p-step__list > *:not(:last-child) { margin-right: 0; }

  .p-step__item {
    width: 300px;
    max-width: 100%;
    min-height: 0;
    gap: 7.2px;
    padding: 13.636px 5.455px;
    border-radius: 9.6px;
  }

  .p-step__no { width: 60px; }
  .p-step__no span:first-child { font-size: 16.8px; }
  .p-step__no span:last-child { font-size: 43.636px; }

  .p-step__image { width: 96.136px; height: 96.136px; }
  .p-step__text { gap: 7.5px; }
  .p-step__title { font-size: 16.364px; letter-spacing: 2.6182px; }

  /* 縦積みでは矢印を下向きにする。回転は img ではなく親に掛ける。
     img には translateX のアニメーションが乗っており、同じ要素だと
     transform を奪い合うため。親を回すことで translateX が
     そのまま下方向の動きになる。 */
  .p-step__arrow { transform: rotate(90deg); }
}

/* ---------------------------------------------------------
   よくある質問
   --------------------------------------------------------- */
.p-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
  background: var(--c-bg);
}

.p-faq__title {
  margin: 0;
  color: #2a2e2f;
  font-family: var(--font-jp);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
}

.p-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 980px;
}

.p-faq__item {
  padding: 24px 16px;
  border-bottom: 2px solid var(--c-secondary);
}

.p-faq__q {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 20px;
  color: var(--c-secondary);
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  /* Figma は 1行29px（24px x 1.208）で組まれている。
     line-height:normal だと Noto Sans JP のメトリクスで35pxになり
     1項目あたり8px高くなるため、実測値に合わせて固定している。 */
  line-height: 1.2;
  cursor: pointer;
  /* summary 既定の三角マーカーを消す */
  list-style: none;
}
.p-faq__q::-webkit-details-marker { display: none; }
.p-faq__q:hover { opacity: .8; }
.p-faq__q:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 4px; }

.p-faq__qtext { flex: 1 0 0; min-width: 0; }

.p-faq__icon { flex-shrink: 0; width: 24px; height: 24px; }
/* 縦棒を横棒に重ねて + を − に見せる */
.p-faq__icon__bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease;
}
.p-faq__item[open] .p-faq__icon__bar { transform: rotate(90deg); }

.p-faq__a {
  margin: 32px 0 0;
  color: var(--c-secondary);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .p-faq { gap: 24px; padding: 32px 16px; }
  .p-faq__title { font-size: 24px; line-height: 1.2; text-align: center; }
  .p-faq__q { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-faq__icon__bar { transition: none; }
}

/* ---------------------------------------------------------
   ヘッダーからのアンカーリンクの着地位置
   ヘッダーが position:fixed なので、その高さぶん手前で止める
   --------------------------------------------------------- */
.p-trouble__points,
.p-plan { scroll-margin-top: 100px; }

@media (max-width: 1300px) {
  .p-trouble__points,
  .p-plan { scroll-margin-top: 79px; }
}
@media (max-width: 991px) {
  .p-trouble__points,
  .p-plan { scroll-margin-top: 70px; }
}

/* ---------------------------------------------------------
   教材一覧表の拡大表示
   --------------------------------------------------------- */
/* 画像が縦長（1768x1447）なので画面高に合わせると拡大率が稼げない。
   横幅いっぱいに出して、はみ出す縦方向はスクロールさせる。 */
.p-package__modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-out;
}
.p-package__modal[open] {
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
}
.p-package__modal::backdrop { background: rgba(42, 46, 47, .8); }

/* 拡大表示中は背後をスクロールさせない */
body.is__modal-open { overflow: hidden; }

/* 画像が画面に収まるときは中央に置き、収まらないときは上から流す */
.p-package__modal-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 72px 24px 24px;
}

.p-package__modal-image {
  display: block;
  width: 100%;
  /* 元画像より大きくしても粗くなるだけなので実寸で止める */
  max-width: 1768px;
  height: auto;
  border-radius: 16px;
  background: var(--c-bg);
  cursor: default;
}

.p-package__modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
  cursor: pointer;
}
.p-package__modal-close svg { width: 24px; height: 24px; }
.p-package__modal-close:hover { opacity: .8; }
.p-package__modal-close:focus-visible { outline: 2px solid var(--c-bg); outline-offset: 2px; }

@media (max-width: 991px) {
  .p-package__modal-inner { padding: 64px 12px 12px; }
  .p-package__modal-close { top: 12px; right: 12px; }
}
/* 料金表が画面に収まる幅になったら中央寄せにする。
 601px は表の幅600px + 1。ラッパーは左右に-16pxはみ出させて
 画面幅いっぱいになっているので、判定はビューポート幅でよい。
 .p-plan__price-table の width を変えるときはこの値も合わせる。 */
@media (min-width: 601px) and (max-width: 991px) {
.p-plan__table-wrap { justify-content: center; }
}

/* ---------------------------------------------------------
   スクロールで現れる演出（挙動は TopReveal.astro）
   --------------------------------------------------------- */
/* 隠すのは js-reveal が付いてから。JSが動かない環境や
   prefers-reduced-motion のときはクラスが付かず、最初から見えている */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js-reveal [data-reveal].is__revealed {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   教材一覧のテキスト版
   図は画像なので、同じ内容をテキストでも置いている
   --------------------------------------------------------- */
.p-package__courses {
  width: min(980px, calc(100vw - 48px));
  margin-top: 16px;
}
.p-package__courses > summary {
  width: fit-content;
  margin: 0 auto;
  color: var(--c-secondary);
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  cursor: pointer;
}
.p-package__courses > summary:hover { opacity: .8; }
.p-package__courses > summary:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 4px; }

.p-package__courses-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 16px;
  padding: 24px;
  border-radius: 16px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.8;
}
.p-package__courses-body h4 {
  margin: 0 0 4px;
  color: #2a2e2f;
  font-size: 14px;
  font-weight: 700;
}
.p-package__courses-body ul { margin: 0; padding-left: 1.2em; }
.p-package__courses-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
}

@media (max-width: 991px) {
  .p-package__courses { width: 100%; }
  .p-package__courses-body { gap: 20px; padding: 16px; }
}
