/* ============================================
   口座開設についてページ固有スタイル
   デザイン: Figma 1:1928（デスクトップ）/ 67:3298（SP）
   共通パーツは style.css を使用
   ============================================ */

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

.account-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 24px 64px;
  background: var(--bg-section);
}

.account-hero__label {
  color: var(--brand-accent);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.account-hero__bar {
  width: 80px;
  height: 5px;
  margin: 24px 0;
  background: var(--brand);
}

.account-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 32px;
  line-height: 1.5;
  text-align: center;
}

.account-hero__lead {
  max-width: 960px;
  margin-top: 24px;
  text-align: center;
}

.account-hero__cta {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 24px;
}

.account-hero__visual {
  width: min(960px, 100%);
  height: auto;
}

/* ---- 最短15分！簡単に申し込みできます ---- */

.apply-merits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 43px;
  padding-bottom: 64px;
  background: var(--bg-section);
}

.apply-merits__title {
  padding-bottom: 24px;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
}

.apply-merits__title em,
.main-bank em,
.anywhere__title em {
  font-style: normal;
  color: var(--brand-accent);
}

.apply-merit-card {
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(760px, 100% - 48px);
  padding: 42px 32px;
  background: var(--base-white);
  border-radius: 20px;
  filter: drop-shadow(10px 14px 12px rgba(0, 0, 0, 0.09));
}

.apply-merit-card--reverse {
  flex-direction: row-reverse;
}

.apply-merit-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 10px;
}

.apply-merit-card__heading {
  color: var(--brand-accent);
  font-size: 24px;
  line-height: 1.5;
}

.apply-merit-card__image {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  background: var(--base-white);
  border-radius: 8px;
  isolation: isolate;
}

.apply-merit-card__image img {
  border-radius: 8px;
}

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

/* ---- 北國銀行 ---- */

.main-bank {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 56px;
  background: var(--base-white);
}

.main-bank__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
}

.main-bank__text {
  margin-top: 40px;
  text-align: center;
}

.main-bank__note {
  margin-top: 16px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
}

/* ---- ご利用開始セクション（本ページのみ末尾に法令注記がないため、フッターとの余白を確保） ---- */

.start {
  padding-bottom: 64px;
}

/* ---- 全国どこでも ---- */

.anywhere {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
  background: var(--bg-section);
}

.anywhere__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-align: center;
}

.anywhere__list {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: min(1080px, 100%);
  padding-bottom: 24px;
}

.anywhere__list li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 340px;
  padding: 32px;
  background: var(--base-white);
  border-radius: 4px;
}

.anywhere__list h3 {
  color: var(--brand-accent);
  font-size: 20px;
  line-height: 1;
}

.anywhere__icon {
  position: relative;
  display: block;
  width: 120px;
  height: 120px;
  margin-top: 8px;
  background: var(--base-white);
  isolation: isolate;
}

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

.anywhere__list p {
  font-size: 14px;
  max-width: 270px;
}

/* ============================================
   SP（モバイル）
   ============================================ */

@media (max-width: 1024px) {
  .account-hero__label {
    font-size: 16px;
  }

  .account-hero__title {
    font-size: 22px;
  }

  .account-hero__lead {
    text-align: left;
  }

  .account-hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .account-hero__cta .hero__cta {
    width: 100%;
  }

  .apply-merits__title {
    font-size: 20px;
  }

  /* SP でも Figma 通り本文とイラストを横並びのまま維持し、イラストだけ縮小する */
  .apply-merit-card,
  .apply-merit-card--reverse {
    gap: 12px;
    padding: 32px 20px;
  }

  .apply-merit-card__body {
    padding: 0;
  }

  .apply-merit-card__heading {
    font-size: 18px;
  }

  .apply-merit-card__body p {
    font-size: 14px;
  }

  .apply-merit-card__image {
    width: min(150px, 45%);
    height: auto;
    aspect-ratio: 1;
  }

  .main-bank__title,
  .anywhere__title {
    font-size: 20px;
  }

  .main-bank__title span,
  .anywhere__title span {
    display: inline;
  }

  .main-bank__title,
  .anywhere__title {
    display: block;
  }

  .main-bank > img {
    width: 240px;
  }

  .main-bank__text {
    text-align: left;
  }

  .main-bank__note {
    text-align: left;
  }

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

  /* 左列: 見出し + アイコン / 右列: 説明文（Figma SP 準拠の2カラム） */
  .anywhere__list li {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-template-areas:
      "title text"
      "icon text";
    justify-content: center;
    align-items: start;
    column-gap: 20px;
    row-gap: 12px;
    width: 100%;
    min-height: 0;
    padding: 24px 20px;
  }

  .anywhere__list h3 {
    grid-area: title;
    justify-self: center;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
  }

  .anywhere__icon {
    grid-area: icon;
    justify-self: center;
    margin-top: 0;
  }

  .anywhere__list p {
    grid-area: text;
    align-self: center;
    max-width: none;
  }
}
