@charset "UTF-8";

/* =========================================================================
   beginner/manga/deposit  入金方法
   Figma node-id: 2306-43425 (PC 1440px 固定デザイン)
   ========================================================================= */

.manga-page-wrapper {
  background-color: #FFFFFF;
  width: 100%;
  max-width: var(--content-width, 1000px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manga-page-wrapper p,
.manga-page-wrapper h1,
.manga-page-wrapper h2,
.manga-page-wrapper h3 {
  margin: 0;
  padding: 0;
}

.manga-page-wrapper img {
  display: block;
}

@media (min-width: 940px) {
  .manga-page-wrapper .ta-hero__lead {
    padding-top: 4rem;
  }
}

/* --- Hero --- */
.manga-hero {
  width: 100%;
  height: 140px;
  background-image: linear-gradient(180.43deg, #3976D5 18.61%, #1F5CBF 74.02%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.manga-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0px 4px 7px rgba(30, 95, 173, 0.2));
}

.manga-hero-content h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #FFFFFF;
  white-space: nowrap;
}

/* --- Intro & Tab --- */
.manga-intro-section {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
}

.manga-intro-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* hero 下の余白は 40px（top）。左右・下は 36px のまま */
  padding: 4rem 3.6rem 3.6rem;
}

.manga-intro-text {
  box-sizing: border-box;
  max-width: 800px;
  position: relative;
  width: calc(100% - 40px);
  font-weight: 700;
  font-size: 16px; /* /cfd/stocklist/ のリード文（.ta-text-body 16px）と同サイズ */
  text-align: center;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #0A2463;
  padding: 0;
  z-index: 0;
}

.manga-intro-text::before {
  background-color: #FFFFFF;
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

.manga-page-wrapper .manga-intro-text {
  padding: 0;
}

/* SP専用改行（SPでの表示指定は max-width: 939px 内の .manga-intro-br-sp） */
.manga-intro-br-sp {
  display: none;
}

.manga-tab-menu {
  width: min(100%, 838px);
  padding-top: 40px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #D4DCE8;
  display: flex;
  border-radius: 6px;
  margin-top: 0;
}

.manga-tab-item {
  flex: 1 0 0;
  padding: 12px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #5A6A85;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  min-width: 0;
}

.manga-tab-item.active {
  background-color: transparent;
  border-bottom-color: #1E5FAD;
  color: #1E5FAD;
}

/* --- Manga Content --- */
.manga-content-section {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  gap: 80px;
  flex-shrink: 0;
  overflow: hidden;
}

.manga-content-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.manga-content-header h2 {
  font-weight: 700;
  font-size: 40px;
  line-height: normal;
  color: #0A2463;
  text-align: center;
}

.manga-content-separator {
  width: 100px;
  height: 2px;
  background-color: #FFA54F;
}

.manga-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manga-image-box {
  width: min(620px, calc(100vw - 40px));
  aspect-ratio: 522 / 738;
  height: auto;
  position: relative;
}

.manga-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* マンガ画像下の注記。画像と同じ幅で左端を揃える（文字サイズ・色は .ta-text-caption 共通クラス） */
.manga-images-note {
  width: min(620px, calc(100vw - 40px));
  margin-top: 20px;
  margin-bottom: 0;
}

/* --- Deposit Section --- */
.manga-deposit-section {
  width: 1440px;
  background-color: #EBF3FC;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.manga-deposit-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px; /* Figma 607:10892: 見出し⇔本文 40px */
}

.deposit-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 0 20px;
  border-left: 2px solid #FFA54F;
}

.deposit-heading-main {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #0A2463;
}

.deposit-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.deposit-desc {
  width: 820px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #1A1A2E;
  white-space: pre-wrap;
}

/* text link (詳細)。Figma text_link コンポーネント: 16px Medium */
.manga-text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #1E5FAD;
  text-decoration: none;
  border-bottom: 1px solid #1E5FAD;
  white-space: nowrap;
}

.manga-text-link span {
  font-weight: 500;
  font-size: 16px;
}

/* 詳細案内（テキスト + 詳細はこちらリンク）。Figma 607:11523: 表の下20px（.deposit-banks の gap）に横並び・左寄せ */
.deposit-detail {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 25px;
}

/* banks */
.deposit-banks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 820px;
  overflow-x: visible;
}

.deposit-banks-title {
  width: 100%;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #0A2463;
}

.deposit-banks-note {
  width: 100%;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #1A1A2E;
}

/* bank table */
.bank-table {
  width: 100%;
  max-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #FFFFFF;
  border: 1px solid #D4DCE8;
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
}

.bank-table th,
.bank-table td {
  padding: 0 20px;
  vertical-align: middle;
  text-align: left;
}

.bank-table thead th {
  height: 76px;
  background-color: #0A2463;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.bank-table tbody td {
  width: 50%;
  height: 52px;
  border-bottom: 1px solid #D4DCE8;
  font-weight: 500;
  font-size: 16px;
  color: #0A2463;
  text-align: center;
}

.bank-table tbody tr:last-child td {
  border-bottom: none;
}

/* 2列の中央縦罫線（Figma 624:464） */
.bank-table tbody td + td {
  border-left: 1px solid #D4DCE8;
}

/* 市松配色（Figma 624:441: 行ごとに左右の色が入れ替わる） */
.bank-table tbody tr:nth-child(odd) td:first-child,
.bank-table tbody tr:nth-child(even) td + td {
  background-color: #EBF3FC;
}

.bank-table tbody tr:nth-child(even) td:first-child,
.bank-table tbody tr:nth-child(odd) td + td {
  background-color: #F7F9FC;
}

/* --- Full-bleed backgrounds --- */
body.beginner-manga-page {
  margin: 0;
  overflow-x: hidden;
}

.manga-page-wrapper {
  background-color: #FFFFFF;
  width: 100%;
  max-width: var(--content-width, 1000px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.manga-page-wrapper {
  max-width: none;
  overflow-x: clip;
}

.manga-hero,
.manga-intro-section,
.manga-content-section,
.manga-flow-section,
.manga-deposit-section,
.manga-select-section {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 939px) {
  body.beginner-manga-page .header-for-triauto .navigation .header__nav--icon {
    bottom: 80px;
  }

  .manga-hero {
    height: 156px;
  }

  .manga-hero-content h1 {
    font-size: 28px;
    line-height: 1.7;
    text-align: center;
  }

  .manga-hero-content h1 span {
    display: block;
  }

  .manga-intro-text {
    box-sizing: border-box;
    font-size: 16px; /* PC同様 /cfd/stocklist/ リード文と同サイズ */
    line-height: 1.7;
    max-width: none;
    padding: 0 20px;
    width: 100%;
  }

  /* PC専用改行はSPでは非表示 */
  .manga-intro-br-pc {
    display: none;
  }

  /* SP専用改行を有効化（PC側の非表示指定はベースの .manga-intro-br-sp） */
  .manga-intro-br-sp {
    display: inline;
  }

  .manga-page-wrapper .manga-intro-text {
    padding: 0 20px;
  }

  .manga-intro-inner {
    align-items: stretch;
    /* SPのタブメニュー⇔h2 の余白は .manga-content-section の padding-top 40px のみで作る
       （PC用の padding-bottom 36px が加算されて 76px になるのを防ぐ） */
    padding-bottom: 0;
  }

  /* SPは h2ブロック⇔マンガ画像の間 40px（PCは基本の gap: 80px のまま） */
  .manga-content-section {
    gap: 40px;
  }

  /* タブ列は常に中央寄せ・下線(border-bottom)はタブ幅ぶんだけ。
     幅が足りない時のみ overflow-x: auto で横スクロール（左寄せ全幅にしない） */
  .manga-tab-menu {
    align-self: center;
    border-radius: 0;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px 0 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: fit-content;
  }

  .manga-tab-menu::-webkit-scrollbar {
    display: none;
  }

  .manga-tab-item {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.4;
    padding: 12px;
    white-space: nowrap;
  }

  .manga-content-header h2 {
    color: #0A2463;
    font-size: min(28px, calc((100vw - 40px) / 10.5));
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.7;
    max-width: calc(100vw - 40px);
    text-align: center;
    white-space: nowrap;
  }

  .manga-deposit-section {
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
  }

  .manga-deposit-inner,
  .deposit-body,
  .deposit-banks {
    gap: 20px; /* Figma 607:11022: SPはブロック間20px */
    width: 100%;
  }

  .manga-deposit-inner,
  .deposit-body {
    align-items: center;
  }

  .deposit-heading {
    align-self: stretch;
    box-sizing: border-box;
    gap: 16px;
    padding: 0 20px;
    width: 100%;
  }

  .deposit-heading-main {
    font-size: 24px;
    line-height: 1.7;
    white-space: nowrap;
  }

  .deposit-desc,
  .deposit-banks {
    width: 100%;
  }

  .deposit-desc {
    font-size: 16px;
    line-height: 1.7;
  }

  .manga-text-link {
    align-self: flex-start;
    font-size: 16px;
    line-height: 1.7;
  }

  /* SPはテキストもリンクも中央寄せで縦積み（Figma 607:11131）。
     親 .deposit-banks が align-items: flex-start のため、width: 100% がないと
     ブロックごと内容幅で左に寄ってしまう（中央寄せが効かない）ので必ず全幅にする */
  .deposit-detail {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    width: 100%;
  }

  .deposit-detail .manga-text-link {
    align-self: center;
  }

  .deposit-banks {
    align-items: flex-start;
    gap: 20px;
  }

  .deposit-banks-title {
    font-size: 24px;
    line-height: 1.7;
  }

  .deposit-banks-note {
    font-size: 16px;
    line-height: 1.7;
  }

  .bank-table {
    width: 100%;
    max-width: 100%;
  }

  /* SPは1列表示（Figma 607:11022）。2列の各セルを縦に積む（並び順はPCの行順どおり） */
  .bank-table thead,
  .bank-table tbody,
  .bank-table tr {
    display: block;
    width: 100%;
  }

  .bank-table thead th {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: 76px;
    justify-content: center;
  }

  .bank-table tbody td {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: 52px;
    justify-content: center;
    width: 100%;
  }

  /* PC用の中央縦罫線（.bank-table tbody td + td）はSPでは出さない。
     詳細度をPCルールと同じ td + td に揃えて上書きする
     （td 単独指定では詳細度負けして、縦積みセルの左端が外枠と二重＝濃く見える） */
  .bank-table tbody td + td {
    border-left: 0;
  }

  /* 最終行の空セル（PC 2列目）はSPでは非表示 */
  .bank-table tbody td:empty {
    display: none;
  }

  /* 縦積みでは上から #EBF3FC / #F7F9FC の交互配色（Figma 631:492）:
     三菱UFJ(青)→みずほ(白)→三井住友(青)→楽天(白)→PayPay(青)→住信SBI(白)→ゆうちょ(青)。
     積み順で1列目セル=青・2列目セル=白になる。
     PC市松ルール（tr:nth-child + td:first-child = 擬似クラス2個）と同じ詳細度にするため
     odd/even 両方を列挙して上書きする（td:first-child 単独では詳細度負けする） */
  .bank-table tbody tr:nth-child(odd) td:first-child,
  .bank-table tbody tr:nth-child(even) td:first-child {
    background-color: #EBF3FC;
  }

  .bank-table tbody tr:nth-child(odd) td + td,
  .bank-table tbody tr:nth-child(even) td + td {
    background-color: #F7F9FC;
  }
}

body.beginner-manga-page .cta-area { display: none; }
