@charset "UTF-8";

/* ----------------------------------------------------
   スルガ銀行 common.css 準拠の table スタイル
   ＋ 依頼原稿忠実再現デザイン（完全版：外枠・境界線再調整）
---------------------------------------------------- */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

/* スワイプ案内（スマホ時のみ表示） */
.sp-swipe-notice {
  display: none;
  color: #666;
  text-align: right;
  margin-bottom: 6px;
}
.sp-swipe-notice span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 12px;
}

/* テーブル基本設計：テーブル自体の外枠borderをなくし、セル側で完璧に制御 */
.tbl-nisa-exact {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  border: none !important;
  background-color: transparent;
  text-align: center !important;
}

.tbl-nisa-exact th,
.tbl-nisa-exact td {
  padding: 10px 8px;
  text-align: center !important;
  vertical-align: middle;
  line-height: 1.45;
  box-sizing: border-box;
}

/* 親要素（.u-ta-l 等）や <p> タグの左寄せ設定を完全に打ち消し、中央揃えを強制 */
.tbl-nisa-exact p,
.tbl-nisa-exact span,
.tbl-nisa-exact div:not(.transfer-arrow-badge),
.tbl-nisa-exact a {
  text-align: center !important;
}

/* 左上の完全空白セル（外枠線も背景も一切なし） */
.tbl-nisa-exact .th-blank {
  width: 15%;
  background: transparent !important;
  border: none !important;
}

/* 項目見出し列（左端） */
.tbl-nisa-exact .td-item-title {
  width: 15%;
  background-color: #ffffff;
  font-weight: normal;
  color: #111111;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 20;
  box-shadow: 2px 0 3px rgba(0,0,0,0.06);
  border-left: 1px solid #595959 !important;
  border-bottom: 1px solid #595959 !important;
  border-right: none !important;
}
.tbl-nisa-exact tr:first-child .td-item-title,
.tbl-nisa-exact .td-item-first {
  border-top: 1px solid #595959 !important;
}

/* 列幅配分 */
.tbl-nisa-exact .col-kodomo-w   { width: 29%; }
.tbl-nisa-exact .col-tsumitate-w { width: 28%; }
.tbl-nisa-exact .col-seicho-w   { width: 28%; }

/* 境界線の精密制御 */
.border-g-top    { border-top: 1px solid #595959 !important; }
.border-g-bottom { border-bottom: 1px solid #595959 !important; }
.border-g-left   { border-left: 1px solid #595959 !important; }
.border-g-right  { border-right: 1px solid #595959 !important; }

/* こどもNISA全体を囲む黄色い太枠強調 */
.tbl-nisa-exact .border-highlight-top {
  border-top: 4px solid #ffbe00 !important;
}
.tbl-nisa-exact .border-highlight-bottom {
  border-bottom: 4px solid #ffbe00 !important;
}
.tbl-nisa-exact .border-highlight-left {
  border-left: 4px solid #ffbe00 !important;
}
.tbl-nisa-exact .border-highlight-right {
  border-right: 4px solid #ffbe00 !important;
}

/* �@ こどもNISAデータ行：薄い黄色（ペールイエロー） */
.u-bgc-yellow-p,
.tbl-nisa-exact .col-kodomo-body {
  background-color: #fff6d6 !important;
  color: #8c3300; /* WCAG AAA適合（7.50:1）：深みのある暖色 */
  font-weight: normal;
}

/* �A 「自動的に移行」の黄色い矢印バッジ（セル文字サイズに統一） */
.tbl-nisa-exact .td-transfer-cell {
  position: relative;
}
.transfer-cell-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transfer-arrow-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  background-color: #ffbe00;
  color: #111111;
  font-size: 15px; /* 他のセル通常テキストと同等サイズ */
  font-weight: bold;
  padding: 4px 10px 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  pointer-events: none;
}
.transfer-arrow-badge::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid #ffbe00;
}

/* ====================================================
   こどもNISA制度（特徴ブロック：バッジ ＋ 説明文）
==================================================== */
.kn-lead {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.kn-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.kn-feature-item {
  margin-bottom: 20px;
}

.kn-feature-item:after {
  display: block;
  clear: both;
  height: 0;
  content: "";
}

/* 説明文エリア */
.kn-feature-text {
  font-size: 15px;
  line-height: 1.6;
}

/* 箇条書きリストのインデント */
.kn-feature-text .list-maru {
  margin-top: 6px;
  padding-left: 1.5em;
}

/* ====================================================
   PC表示時（768px以上）：
   1. バッジ幅統一（148px） ＆ 説明文の開始位置揃え
   2. common.cssの.lbl-step/.lbl-meritと同仕様の右向き矢印
==================================================== */
@media screen and (min-width: 768px) {
  .kn-feature-item {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .kn-feature-item .lbl-blue {
    position: relative;
    float: left;
    -webkit-flex: 0 0 148px;
    -ms-flex: 0 0 148px;
    flex: 0 0 148px;
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    height: 32px;
    line-height: 32px;
    padding: 0;
    margin: 0 28px 0 0;
    vertical-align: top;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .kn-feature-item .lbl-blue:after {
    position: absolute;
    top: 0;
    left: 100%;
    display: block;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 12px solid #005999;
    content: "";
  }

  .kn-feature-text {
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow: hidden;
    padding-top: 4px;
  }
}

/* ====================================================
   こどもNISA 口座開設フロー（レスポンシブ設計）
==================================================== */
.kn-flow {
  margin: 28px 0 16px;
  color: #333;
}
.kn-flow__box {
  background-color: #eef6fb;
  border: 2px solid #005999;
  border-radius: 4px;
  box-sizing: border-box;
}
.kn-flow__step-num {
  font-size: 14px;
  font-weight: bold;
  color: #005999;
  line-height: 1.2;
  margin-bottom: 2px;
}
.kn-flow__step-ttl {
  font-size: 16px;
  font-weight: bold;
  color: #005999;
  line-height: 1.35;
  margin-bottom: 8px;
}
.kn-flow__step-txt {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.kn-flow__step-note {
  display: block;
  font-size: 11px;
  color: #333;
  line-height: 1.4;
  margin-top: 4px;
}

/* STEP1（最上部共通） */
.kn-flow__step1 {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
}
.kn-flow__step1 .kn-flow__step-ttl {
  font-size: 17px;
}

/* 分岐コネクタ */
.kn-flow__branch {
  position: relative;
  width: 100%;
  height: 40px;
}
.kn-flow__branch-line-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background-color: #1f4e79;
}
.kn-flow__branch-line-h {
  position: absolute;
  top: 20px;
  left: 25%;
  right: 25%;
  height: 2px;
  background-color: #1f4e79;
}
.kn-flow__branch-line-down-l,
.kn-flow__branch-line-down-r {
  position: absolute;
  top: 20px;
  width: 2px;
  height: 20px;
  background-color: #1f4e79;
}
.kn-flow__branch-line-down-l { left: 25%; }
.kn-flow__branch-line-down-r { right: 25%; }

/* 2カラムレイアウト（店頭 ＆ 郵送） */
.kn-flow__cols {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.kn-flow__col {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}
.kn-flow__col-head {
  background-color: #1f4e79;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  padding: 10px 12px;
  border-radius: 3px 3px 0 0;
  line-height: 1.4;
}
.kn-flow__col-body {
  border: 2px solid #1f4e79;
  border-top: none;
  background-color: #fff;
  padding: 16px 14px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* 各STEPカード */
.kn-flow__item {
  padding: 14px 14px;
  text-align: center;
}
.kn-flow__item--icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
}
.kn-flow__item-main {
  flex: 1 1 auto;
}
.kn-flow__item-icon {
  flex: 0 0 88px;
  max-width: 88px;
  text-align: left;
}
.kn-flow__item-icon img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* 接続線 */
.kn-flow__line-v {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  flex-shrink: 0;
}
.kn-flow__line-v::before {
  content: "";
  width: 2px;
  height: 100%;
  background-color: #1f4e79;
}

.kn-flow__arrow-down {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  flex-shrink: 0;
}
.kn-flow__arrow-down::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 2px;
  background-color: #1f4e79;
}
.kn-flow__arrow-down::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #1f4e79;
}
.kn-flow__arrow-down--grow {
  flex: 1 1 auto;
  min-height: 36px;
}

/* ゴールバー */
.kn-flow__goal-bar {
  background-color: #1f4e79;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  padding: 12px 16px;
  border-radius: 3px;
  line-height: 1.45;
  margin-top: 0;
}

/* ====================================================
   スマートフォン表示時（767px以下）
==================================================== */
@media screen and (max-width: 767px) {
  .sp-swipe-notice {
    display: block;
  }
  .kn-lead {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .kn-feature-item {
    display: block;
    margin-bottom: 20px;
  }
  .kn-feature-item .lbl-blue {
    display: inline-block;
    float: none;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    line-height: 1.4;
    padding: 4px 10px;
    margin-bottom: 8px;
    margin-right: 0;
  }
  .kn-feature-item .lbl-blue:after {
    display: none;
  }
  .kn-feature-text {
    padding-top: 0;
    font-size: 14px;
  }

  /* �A スマホ時の矢印バッジ文字サイズ調整（他セル12pxと同等） */
  .transfer-arrow-badge {
    font-size: 12px;
    padding: 3px 6px 3px 8px;
  }
  .transfer-arrow-badge::after {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid #ffbe00;
  }

  /* フローチャート スマホ対応 */
  .kn-flow__step1 {
    max-width: 100%;
    padding: 12px 10px;
  }
  .kn-flow__step1 .kn-flow__step-ttl {
    font-size: 15px;
  }
  .kn-flow__step1 .kn-flow__step-txt {
    font-size: 12px;
  }

  .kn-flow__branch {
    height: 24px;
  }
  .kn-flow__branch-line-top {
    height: 12px;
  }
  .kn-flow__branch-line-h {
    top: 12px;
    left: 25%;
    right: 25%;
  }
  .kn-flow__branch-line-down-l,
  .kn-flow__branch-line-down-r {
    top: 12px;
    height: 12px;
  }
  .kn-flow__branch-line-down-l { left: 25%; }
  .kn-flow__branch-line-down-r { right: 25%; }

  .kn-flow__cols {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
  }
  .kn-flow__col {
    flex: 1 1 50%;
    min-width: 0;
  }
  .kn-flow__col-head {
    font-size: 12px;
    padding: 8px 4px;
    line-height: 1.35;
  }
  .kn-flow__col-body {
    padding: 10px 6px;
  }

  .kn-flow__item {
    padding: 10px 6px;
  }
  .kn-flow__step-num {
    font-size: 12px;
  }
  .kn-flow__step-ttl {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .kn-flow__step-txt {
    font-size: 11px;
    line-height: 1.45;
  }
  .kn-flow__step-note {
    font-size: 10px;
    line-height: 1.35;
  }

  .kn-flow__item--icon {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  .kn-flow__item--icon .kn-flow__item-main {
    width: 100%;
  }
  .kn-flow__item--icon .kn-flow__item-icon {
    flex: 0 0 auto;
    max-width: 56px;
    margin: 2px auto 0;
  }

  .kn-flow__line-v {
    height: 16px;
  }

  .kn-flow__arrow-down {
    height: 20px;
  }
  .kn-flow__arrow-down--grow {
    flex: 1 1 auto;
    min-height: 24px;
  }

  .kn-flow__goal-bar {
    font-size: 12px;
    padding: 10px 8px;
    line-height: 1.4;
    margin-top: 0;
  }
}