/* ============================================
   COREC BANK 紹介サイト 共通スタイル
   デザイン: Figma「COREC BANK LP」
   トークン名は Figma の Styles に対応
   ============================================ */

:root {
  /* Color */
  --text-primary: #333333;
  --text-body-sub: #5a606c;
  --text-subtle: #5b5b5b;
  --text-dim: #4f4f4f;
  --brand: #90c31f;
  --brand-accent: #7cb00b;
  --cv-gradient-start: #90c31f;
  --cv-gradient-end: #7cb00b;
  --f9k-brand: #171c8f;
  --base-white: #ffffff;
  --bg-subtle: #fbfbfb;
  --bg-section: #f5f5f5;
  --bg-mist: #f1f1f1;
  --border-light: #eeeeee;
  --decor-gray-1: #ebebeb;
  --campaign-badge-start: #ff0055;
  --campaign-badge-end: #f94cff;

  /* Font */
  --font-base: "Noto Sans JP", sans-serif;
  --font-sub: "Inter", sans-serif;

  /* Layout */
  --header-height: 70px;
  --content-width: 980px;
}

/* ---- Reset ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--base-white);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

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

img {
  max-width: 100%;
  /* width/height 属性は CLS 対策で残しつつ、縮小時に height 属性値が残って歪まないようにする */
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- 共通パーツ ---- */

.container {
  width: min(var(--content-width), 100% - 48px);
  margin-inline: auto;
}

/* CV ボタン（グラデーションの丸ボタン） */
.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to right,
    var(--cv-gradient-start),
    var(--cv-gradient-end)
  );
  color: var(--base-white);
  font-weight: 700;
  border-radius: 90px;
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.28);
  transition: opacity 0.2s;
}

.cv-button:hover {
  opacity: 0.9;
}

/* CV ボタンと「デモを予約」ボタンの横並びラッパー（SP では縦積み） */
.cta-with-demo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

/* 「デモを予約」ボタン（白地・枠線の小型ピル。口座開設ページのヒーローと共通） */
.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-bottom: 6px;
  padding: 17px 27px;
  background: var(--base-white);
  border: 1px solid var(--brand-accent);
  border-radius: 90px;
  color: var(--brand-accent);
  font-size: 14px;
  line-height: 1;
}

/* ---- ヘッダー ---- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--base-white);
}

.site-header__logo img {
  width: 248px;
  height: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header__nav a {
  color: var(--brand-accent);
  font-weight: 700;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__login {
  font-size: 14px;
  color: var(--text-primary);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--brand);
  color: var(--base-white);
  font-weight: 700;
  border-radius: 32px;
}

.site-header__cta svg {
  width: 24px;
  height: 24px;
}

/* SP用ハンバーガー（デスクトップでは非表示） */
.site-header__menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.site-header__menu-button span {
  display: block;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

/* ---- ドロワーメニュー（SP） ---- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  padding: 16px 0;
  background: var(--base-white);
  overflow-y: auto;
}

.drawer__close {
  display: block;
  margin: 0 16px 8px auto;
  padding: 8px;
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
}

.drawer__close svg {
  width: 20px;
  height: 20px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
}

.drawer__nav a {
  position: relative;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 16px;
}

.drawer__nav a::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #b5b5b5;
  border-right: 2px solid #b5b5b5;
  transform: translateY(-50%) rotate(45deg);
}

.drawer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px 24px;
}

.drawer__cta .cv-note {
  font-size: 14px;
}

.drawer__cta-button {
  width: 100%;
  height: 56px;
  font-size: 18px;
}

.drawer__login {
  display: block;
  padding: 16px;
  font-size: 16px;
  text-align: center;
}

/* ---- ヒーロー ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 80px) 0 60px;
  background: linear-gradient(to bottom, var(--decor-gray-1), var(--base-white));
}

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

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: min(var(--content-width), 100% - 48px);
  margin-inline: auto;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  text-align: center;
}

.hero__headline-line {
  position: relative;
  display: flex;
  align-items: baseline;
  font-size: 48px;
  line-height: 1;
  white-space: nowrap;
}

.hero__headline .gradient-text {
  background: linear-gradient(
    to right,
    var(--cv-gradient-start) 1%,
    var(--cv-gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline-num {
  font-size: 72px;
  letter-spacing: 1.6px;
}

.hero__headline-zero {
  font-size: 64px;
}

.hero__headline-note {
  font-size: 14px;
  font-weight: 400;
  margin-left: 4px;
}

.hero__headline-badge {
  position: absolute;
  top: -24px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 2px 10px;
  background: var(--brand);
  color: var(--base-white);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.hero__headline-badge small {
  font-size: 12px;
}

.hero__headline-cross {
  font-size: 32px;
  line-height: 1;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* キラキラ付きの CV 訴求文（ヒーロー・料金セクションで共用） */
.cv-note {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  color: var(--brand-accent);
  font-weight: 700;
}

.cv-note img {
  width: 13px;
  height: 13px;
}

.cv-note img:last-child {
  transform: rotate(90deg);
}

.hero__cta .cv-button {
  width: 386px;
  height: 72px;
  font-size: 28px;
}

.hero__visual {
  flex-shrink: 1;
  min-width: 0;
  width: 700px;
}

.hero__visual img {
  height: auto;
}

/* ---- 課題提起 → 解決セクション ---- */

.intro {
  padding: 48px 0 0;
  background: var(--bg-section);
}

.intro__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
}

.intro__headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
}

.intro__headline-line {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.intro__headline-brand {
  color: var(--brand-accent);
}

/* 「88,000社以上が利用！」の吹き出しバッジ。2行目の「クラウド受注・発注システムCOREC」を指す */
.intro__badge {
  position: absolute;
  top: 22px;
  left: calc(50% + 182px);
  padding: 12px 16px;
  background: var(--brand-accent);
  border-radius: 8px;
  color: var(--base-white);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.intro__badge-tail {
  position: absolute;
  left: 24px;
  top: calc(100% - 2px);
  width: 17px;
  height: 16px;
}

.intro__note {
  max-width: 430px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-subtle);
}

.intro__note a {
  text-decoration: underline;
}

.intro__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--content-width), 100% - 48px);
  margin-inline: auto;
}

.intro__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  padding: 70px;
  background: var(--base-white);
  border-radius: 4px;
}

.intro__card-title {
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
}

.intro__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  position: relative;
  z-index: 1;
}

.intro__arrow span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  background: var(--base-white);
  border-radius: 48px;
  filter: drop-shadow(0 2px 2.5px rgba(0, 0, 0, 0.11));
}

.intro__arrow span img {
  width: 37px;
  height: 37px;
  padding: 20px;
  box-sizing: content-box;
  background: var(--base-white);
  border: 4px solid var(--brand-accent);
  border-radius: 50%;
}

.worry-list {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.worry-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-size: 20px;
  font-weight: 700;
}

.worry-list__icon {
  position: relative;
  display: block;
  width: 120px;
  height: 120px;
  background: var(--base-white);
  isolation: isolate;
}

.worry-list__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  mix-blend-mode: hue;
}

.solution-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 840px;
}

.solution-list li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.solution-list__label {
  display: inline-flex;
  padding: 12px 16px;
  background: var(--brand);
  color: var(--base-white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  border-radius: 32px;
}

.solution-list__value {
  display: flex;
  align-items: flex-end;
  color: var(--brand-accent);
  font-weight: 700;
  line-height: 1;
  margin-top: -10px;
}

.solution-list__value strong {
  font-size: 64px;
  font-weight: 700;
}

.solution-list__unit {
  font-size: 24px;
}

.solution-list__per {
  font-size: 16px;
  color: var(--text-primary);
}

.solution-list__text {
  align-self: flex-start;
}

.solution-list__text--center {
  align-self: center;
  text-align: center;
}

.solution-list__text b {
  color: var(--brand-accent);
}

/* ---- 特徴セクション ---- */

.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: var(--bg-section);
}

/* 左右に線を引いた見出し */
.lined-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
  white-space: nowrap;
}

.lined-heading::before,
.lined-heading::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--brand);
}

.lined-heading em,
.feature-card__title em {
  font-style: normal;
  color: var(--brand-accent);
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: min(var(--content-width), 100% - 48px);
  padding-bottom: 80px;
}

.feature-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 42px 32px;
  background: var(--base-white);
  border-radius: 20px;
  filter: drop-shadow(10px 14px 12px rgba(0, 0, 0, 0.09));
}

.feature-card--reverse {
  flex-direction: row-reverse;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  max-width: 507px;
}

.feature-card__title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-card__num {
  color: var(--brand-accent);
  font-size: 48px;
  line-height: 1.5;
}

.feature-card__title-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 32px;
  line-height: 1;
}

.feature-card__image {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 400px;
  background: var(--base-white);
  isolation: isolate;
}

.feature-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  mix-blend-mode: hue;
  border-radius: inherit;
}

.feature-card__image--rounded,
.feature-card__image--rounded img {
  border-radius: 8px;
}

/* 枠線ボタン */
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 22px 24px;
  background: var(--base-white);
  border: 1px solid var(--brand-accent);
  border-radius: 90px;
  color: var(--brand-accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s;
}

.outline-button:hover {
  background: var(--bg-subtle);
}

/* ---- 提携銀行セクション ---- */

.partner-bank {
  background: var(--base-white);
}

.partner-bank__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: min(var(--content-width), 100% - 48px);
  margin-inline: auto;
  padding: 80px 0;
}

.partner-bank__inner > img {
  flex-shrink: 0;
  width: 330px;
  height: auto;
}

.partner-bank__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 590px;
}

.partner-bank__lead {
  font-size: 20px;
  font-weight: 700;
}

.partner-bank__note {
  font-size: 12px;
  color: var(--text-subtle);
}

/* ---- 機能一覧セクション ---- */

.functions {
  display: flex;
  justify-content: center;
  background: var(--base-white);
}

.functions__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(1040px, 100% - 48px);
  padding: 60px 40px 96px;
  background: var(--bg-subtle);
  border-radius: 20px;
}

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

.functions__title {
  color: var(--brand-accent);
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
}

.functions__lead {
  font-size: 18px;
  text-align: center;
}

.functions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 960px;
}

.functions__list li {
  width: 230px;
  background: var(--base-white);
  border: 1px solid var(--brand-accent);
  border-radius: 8px;
  align-self: flex-start;
}

.functions__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.functions__list summary::-webkit-details-marker {
  display: none;
}

.functions__list summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--brand-accent);
  transition: transform 0.2s;
}

.functions__list details[open] summary::after {
  transform: rotate(180deg);
}

.functions__list details > p {
  padding: 0 12px 12px;
  font-size: 14px;
}

/* ---- デモセクション ---- */

.demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
  padding: 88px 40px 96px;
  background: var(--base-white);
}

.demo__title {
  color: var(--brand-accent);
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
}

/* デモ本体は Storylane の埋め込み（index.html 内のインラインスタイル）でサイズが決まる */
.demo__frame {
  width: min(1020px, 100%);
  /* Storylane 埋め込み内部の z-index: 999999 を封じ込め、fixed ヘッダーより下に描画する */
  isolation: isolate;
}

/* ---- ご利用料金セクション ---- */

.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
  padding: 80px 0;
  background: var(--bg-section);
}

.lined-heading--green span {
  color: var(--brand-accent);
}

.campaign-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, 100% - 48px);
  padding: 40px;
  background: var(--base-white);
  border-radius: 10px;
  filter: drop-shadow(0 2px 7.5px rgba(66, 70, 226, 0.24));
}

.campaign-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.campaign-card__badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 7px;
  background: linear-gradient(
    6.2deg,
    var(--campaign-badge-start),
    var(--campaign-badge-end)
  );
  color: var(--base-white);
  font-weight: 700;
  border-radius: 4px;
}

.campaign-card__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  background: linear-gradient(
    to right,
    var(--cv-gradient-start),
    var(--cv-gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.campaign-card__title-sub {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.campaign-card__title-main {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.campaign-card__more {
  font-size: 14px;
  font-weight: 500;
}

.campaign-card__more a {
  color: var(--brand-accent);
}

.campaign-card__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.campaign-card__button {
  width: 316px;
  height: 72px;
  font-size: 24px;
}

.pricing__table-link {
  width: min(560px, 100% - 48px);
  height: 67px;
  font-size: 24px;
}

/* 機能詳細への誘導文（Figma では SP のみに存在するため PC では非表示） */
.pricing__detail-note {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: -8px;
  /* 383px 未満では縮めて 1 行に収める（両脇の斜め線ごと画面内に収まる幅） */
  font-size: clamp(14px, 4.7vw, 18px);
  font-weight: 700;
  text-align: center;
}

.pricing__detail-note::before,
.pricing__detail-note::after {
  content: "";
  flex-shrink: 0;
  width: 2px;
  height: 22px;
  background: var(--brand-accent);
}

.pricing__detail-note::before {
  transform: rotate(-30deg);
}

.pricing__detail-note::after {
  transform: rotate(30deg);
}

/* ---- よくあるご質問 ---- */

.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 96px 40px;
  background: var(--base-white);
}

.faq__inner {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  width: min(1020px, 100%);
}

.faq__title {
  flex-shrink: 0;
  width: 326px;
  padding: 0 20px;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
}

.faq__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__list li {
  background: var(--base-white);
  border: 1px solid var(--brand-accent);
  border-radius: 8px;
}

.faq__list summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 25px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "";
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--brand-accent);
  transition: transform 0.2s;
}

.faq__list details[open] summary::after {
  transform: rotate(180deg);
}

.faq__a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 25px 25px;
}

/* A バッジは本家 LP（Q=ブランド色 / A=ブランド淡色）に合わせた配色 */
.faq__q.faq__q--a {
  background: #e9f2cd;
  color: var(--brand-accent);
}

.faq__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--brand);
  color: var(--base-white);
  font-size: 20px;
  border-radius: 50%;
}

.faq__link {
  width: min(560px, 100% - 48px);
  height: 67px;
  font-size: 24px;
}

/* ---- ご利用開始セクション ---- */

.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding-top: 34px;
  background: var(--bg-section);
}

.start__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: min(1020px, 100% - 48px);
  padding: 54px;
  background: var(--base-white);
  border-radius: 16px;
  filter: drop-shadow(0 6px 13px rgba(124, 176, 11, 0.25));
}

.start__title {
  color: var(--brand-accent);
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
}

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

.start__button {
  width: 400px;
  height: 65px;
  font-size: 24px;
}

.start__note {
  font-size: 14px;
  text-align: center;
}

.start__table-link {
  width: min(560px, 100% - 48px);
  height: 67px;
  font-size: 24px;
}

.start__legal {
  width: min(1040px, 100% - 48px);
  padding-bottom: 40px;
  font-size: 10px;
  color: var(--text-subtle);
}

/* ---- フッター ---- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg-section);
  font-family: var(--font-sub);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(1042px, 100% - 48px);
}

.site-footer__company {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer__brand img {
  width: 100px;
  height: auto;
}

.site-footer__company-text {
  font-size: 12px;
  font-weight: 700;
}

.site-footer__cert {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  align-self: flex-start;
}

.site-footer__cert img {
  width: 140px;
  height: auto;
  background: var(--base-white);
}

.site-footer__cert p {
  width: 140px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.site-footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.site-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-accent);
  font-size: 12px;
  line-height: 1;
}

.site-footer__nav a img {
  width: 12px;
  height: 12px;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1042px, 100% - 48px);
  padding: 17px 0 16px;
  border-top: 1px solid var(--brand);
  color: var(--brand-accent);
  font-size: 14px;
}

.site-footer__page-top {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 700;
}

.site-footer__page-top img {
  width: 20px;
  height: 20px;
}

/* 提携バンクカード（北國銀行） */
.hero__partner-card {
  position: absolute;
  top: -40px;
  right: -120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--base-white);
  border-radius: 20px;
  filter: drop-shadow(0 6px 10px rgba(124, 176, 11, 0.43));
  font-size: 12px;
  font-weight: 700;
}

.hero__partner-card-year {
  color: var(--brand-accent);
}

.hero__partner-card img {
  width: 176px;
  height: auto;
}

/* ============================================
   SP（モバイル）
   デザイン: Figma SP 各フレーム（391px 幅）
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --header-height: 54px;
  }

  .cta-with-demo {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .demo-button {
    margin-bottom: 0;
  }

  /* ヘッダー: ロゴ + ハンバーガーのみ */
  .site-header {
    padding: 0 12px 0 16px;
  }

  .site-header__logo img {
    width: 180px;
  }

  .site-header__nav,
  .site-header__right {
    display: none;
  }

  .site-header__menu-button {
    display: flex;
  }

  /* ヒーロー: 縦積み。提携バンクカードを下にはみ出させるため縦は visible、
     装飾楕円が横スクロールを生まないよう横だけ clip にする */
  .hero {
    padding: calc(var(--header-height) + 40px) 0 0;
    overflow: visible;
    overflow-x: clip;
  }

  .hero__inner {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .hero__copy {
    gap: 24px;
    padding: 0 24px;
  }

  .hero__headline {
    gap: 12px;
  }

  .hero__headline-line {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 28px;
    white-space: normal;
  }

  .hero__headline-badge {
    position: static;
    order: -1;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .hero__headline-num {
    font-size: 48px;
  }

  .hero__headline-zero {
    font-size: 48px;
  }

  .hero__headline-cross {
    font-size: 24px;
  }

  /* ※1 はバッジ内に表示済みのため、SP では数字横の注記を出さない（Figma 準拠） */
  .hero__headline-note {
    display: none;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .cv-button {
    width: 100%;
    max-width: 386px;
    height: 60px;
    font-size: 20px;
  }

  .hero__visual {
    position: relative;
    width: 100%;
    padding: 0 24px;
  }

  .hero__visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .hero__partner-card {
    position: absolute;
    top: auto;
    right: 12px;
    bottom: -24px;
    padding: 12px;
  }

  .hero__partner-card img {
    width: 140px;
  }

  /* 課題提起 → 解決 */
  .intro {
    padding-top: 64px;
  }

  .intro__header {
    padding: 24px;
  }

  .intro__headline {
    font-size: 28px;
  }

  .intro__headline-line {
    display: inline;
    white-space: normal;
  }

  /* SP はバッジを1行目と2行目の間に静的配置する（Figma に SP 版デザインはないため独自調整） */
  .intro__headline-line:first-child {
    order: -2;
  }

  .intro__badge {
    position: relative;
    top: auto;
    left: auto;
    order: -1;
    font-size: 16px;
    padding: 10px 14px;
  }

  .intro__card {
    padding: 32px 24px;
    gap: 32px;
  }

  .intro__card-title {
    font-size: 22px;
    text-align: center;
  }

  .worry-list {
    flex-direction: column;
    gap: 32px;
  }

  .solution-list {
    flex-direction: column;
    gap: 48px;
  }

  /* 左列: ラベル + 数値の縦積み / 右列: 説明文（Figma SP 準拠の2カラム） */
  .solution-list li {
    display: grid;
    grid-template-columns: 160px 136px;
    grid-template-areas:
      "label text"
      "value text";
    justify-content: center;
    align-items: start;
    align-content: start;
    column-gap: 12px;
    row-gap: 8px;
  }

  .solution-list__label {
    grid-area: label;
    justify-self: center;
    font-size: 16px;
  }

  .solution-list__value {
    grid-area: value;
    justify-self: center;
    margin-top: 0;
  }

  .solution-list__text,
  .solution-list__text--center {
    grid-area: text;
    align-self: center;
    text-align: left;
  }

  /* 特徴 */
  .lined-heading {
    gap: 12px;
    font-size: 24px;
    white-space: normal;
  }

  .lined-heading span {
    max-width: none;
    padding: 0 24px;
  }

  /* 特徴セクションの見出しは SP では左右の線を表示しない（Figma では画面外に配置） */
  .features .lined-heading::before,
  .features .lined-heading::after {
    display: none;
  }

  .feature-card,
  .feature-card--reverse {
    flex-direction: column;
    padding: 32px 24px;
  }

  .feature-card__body {
    max-width: none;
  }

  .feature-card__num {
    font-size: 40px;
  }

  .feature-card__title-text {
    font-size: 24px;
  }

  .feature-card__image {
    width: 100%;
  }

  .outline-button {
    height: 56px;
    font-size: 16px;
  }

  /* 提携銀行 */
  .partner-bank__inner {
    flex-direction: column;
    gap: 32px;
    padding: 56px 0;
  }

  .partner-bank__inner > img {
    width: 194px;
  }

  /* 機能一覧 */
  .functions__card {
    padding: 40px 24px 56px;
  }

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

  .functions__lead {
    font-size: 16px;
  }

  .functions__list li {
    width: 100%;
  }

  /* デモ */
  .demo {
    padding: 56px 24px 64px;
    gap: 32px;
  }

  .demo__title {
    font-size: 24px;
  }

  /* ご利用料金 */
  .pricing {
    padding: 56px 0;
    gap: 32px;
  }

  .campaign-card {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
  }

  /* body を解体して「バッジ → タイトル → CTA → 詳細リンク」の順に並べ替える（Figma 準拠） */
  .campaign-card__body {
    display: contents;
  }

  .campaign-card__badge {
    margin-bottom: 0;
    font-size: 14px;
    text-align: center;
  }

  .campaign-card__title {
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
    text-align: center;
  }

  .campaign-card__title-sub {
    font-size: 18px;
  }

  .campaign-card__title-main {
    font-size: 22px;
  }

  .campaign-card__more {
    order: 1;
  }

  .campaign-card__cta {
    width: 100%;
  }

  .campaign-card__button {
    width: 100%;
    height: 60px;
    font-size: 20px;
  }

  .pricing__table-link,
  .faq__link,
  .start__table-link {
    width: min(100% - 48px, 560px);
    font-size: 16px;
  }

  /* SP のみ表示する機能詳細への誘導文（Figma SP フレームにのみ存在） */
  .pricing__detail-note {
    display: flex;
  }

  /* FAQ */
  .faq {
    padding: 56px 24px;
  }

  .faq__inner {
    flex-direction: column;
    align-items: center;
  }

  .faq__title {
    width: auto;
    font-size: 24px;
  }

  .faq__list {
    width: 100%;
  }

  .faq__list summary {
    padding: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .faq__q {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .faq__a {
    padding: 0 16px 16px;
    font-size: 14px;
  }

  /* ご利用開始 */
  .start {
    gap: 40px;
  }

  .start__card {
    gap: 32px;
    padding: 40px 24px;
  }

  .start__title {
    font-size: 24px;
  }

  .start__button {
    width: 100%;
    max-width: 400px;
    height: 60px;
    font-size: 20px;
  }

  .start__note {
    font-size: 12px;
  }

  /* フッター */
  .site-footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  /* SP はナビを1カラムに積む（Figma SP フレーム準拠） */
  .site-footer__nav {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__cert {
    align-items: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
  }

  .site-footer__page-top {
    position: static;
  }
}

@media (max-width: 1024px) {
  /* バッジを見出しから独立した行にする */
  .hero__headline-line::before {
    content: "";
    flex-basis: 100%;
    order: -1;
  }

  .hero__headline-badge {
    order: -2;
  }
}
