/* ================================
  株主優待 ページ（2026年改訂）
================================ */

/* 共通トークン
-------------------------------- */
.benefit_main {
  --bnf-bar: #508cc4;
  --bnf-key: #005bac;
  --bnf-ink: #101820;
  --bnf-gray: #5d6b7d;
  --bnf-line: #cfd8e4;
  --bnf-light: #eaf1f9;
  --bnf-light2: #f4f7fb;
  --bnf-graybg: #f6f8fb;
  --bnf-now: #fffaf1;
  --bnf-sub: #8592a3;
}

/* 見出しバーのアイコン
-------------------------------- */
.benefit_main .sub h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit_main .bnf-ico {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 外部リンクマーク（サイト共通のアイコンを流用）
-------------------------------- */
.benefit_main a.window {
  position: relative;
  padding-right: 24px;
}

.benefit_main a.window::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 14px;
  background: url(../img/icn_window_blue.png) no-repeat center / contain;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* 本文まわり
-------------------------------- */
.benefit_main .bnf-lead {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--bnf-ink);
  margin: 0 0 22px;
}

.benefit_main .bnf-lead--sm {
  font-size: 20px;
}

.benefit_main .bnf-em {
  color: var(--bnf-key);
}

.benefit_main .bnf-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--bnf-gray);
  margin: 6px 0 0;
}

.benefit_main .bnf-note strong {
  display: inline;
  margin: 0;
  color: var(--bnf-key);
}

/* 優待内容カード
-------------------------------- */
.benefit_main .bnf-cards {
  display: flex;
  gap: 20px;
  margin: 0 0 18px;
}

.benefit_main .bnf-card {
  flex: 1;
  border: 1px solid var(--bnf-line);
  border-radius: 10px;
  padding: 20px 24px 22px;
  background: #fff;
}

.benefit_main .bnf-card__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--bnf-key);
  margin: 0 0 8px;
}

.benefit_main .bnf-card__value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bnf-ink);
}

.benefit_main .bnf-card__sub {
  display: block;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bnf-gray);
  margin: 10px 0 0;
}

/* 上期・下期カード
-------------------------------- */
.benefit_main .bnf-terms {
  display: flex;
  gap: 20px;
  margin: 0 0 22px;
}

.benefit_main .bnf-term {
  flex: 1;
  border: 1px solid var(--bnf-line);
  border-radius: 10px;
  overflow: hidden;
}

.benefit_main .bnf-term__head {
  padding: 9px 18px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--bnf-bar);
}

.benefit_main .bnf-term--low .bnf-term__head {
  background: #6b7a8d;
}

.benefit_main .bnf-term__body {
  padding: 14px 18px 16px;
}

.benefit_main .bnf-term__body dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  row-gap: 6px;
  margin: 0;
}

.benefit_main .bnf-term__body dt {
  font-size: 15px;
  color: var(--bnf-gray);
  align-self: center;
}

.benefit_main .bnf-term__body dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--bnf-ink);
}

/* チェックリスト
-------------------------------- */
.benefit_main ul.bnf-check {
  padding-left: 0;
  margin: 0 0 14px;
  list-style: none;
}

.benefit_main ul.bnf-check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  list-style: none;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px dotted #d8dee7;
}

.benefit_main ul.bnf-check li:first-child {
  border-top: 1px dotted #d8dee7;
}

.benefit_main .bnf-check__ico {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 6px;
  fill: none;
  stroke: var(--bnf-key);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 流れ（STEP）
-------------------------------- */
.benefit_main .bnf-flow {
  margin: 0;
}

.benefit_main .bnf-step {
  display: flex;
  gap: 20px;
  position: relative;
  border: 1px solid var(--bnf-line);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 0 0 28px;
  background: #fff;
}

.benefit_main .bnf-step:last-child {
  margin-bottom: 0;
}

.benefit_main .bnf-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 56px;
  bottom: -20px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #b7c6d8;
  border-bottom: 2px solid #b7c6d8;
  transform: rotate(45deg);
}

.benefit_main .bnf-step__no {
  flex: 0 0 62px;
  border-radius: 6px;
  text-align: center;
  padding: 9px 0 11px;
  height: fit-content;
  color: #fff;
  background: var(--bnf-key);
}

.benefit_main .bnf-step--co .bnf-step__no {
  background: var(--bnf-sub);
}

.benefit_main .bnf-step__no span {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.2;
}

.benefit_main .bnf-step__no strong {
  display: block;
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
}

.benefit_main .bnf-step__body {
  flex: 1;
  min-width: 0;
}

.benefit_main .bnf-step__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.benefit_main .bnf-step__head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bnf-ink);
}

.benefit_main .bnf-step__head h3 small {
  font-size: 17px;
  font-weight: 400;
  color: var(--bnf-gray);
}

.benefit_main .bnf-actor {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 4px;
  white-space: nowrap;
  background: var(--bnf-light);
  color: var(--bnf-key);
  border: 1px solid #c7d8ec;
}

.benefit_main .bnf-step--co .bnf-actor {
  background: #f1f3f6;
  color: var(--bnf-gray);
  border-color: #d6dbe3;
}

.benefit_main ul.bnf-items {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
}

.benefit_main ul.bnf-items li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  list-style: none;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
  padding: 5px 0;
}

.benefit_main .bnf-items__ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  fill: none;
  stroke: var(--bnf-key);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit_main .bnf-step p {
  font-size: 18px;
  line-height: 1.8;
  margin: 12px 0 0;
}

/* CTA
-------------------------------- */
.benefit_main .bnf-cta {
  text-align: center;
  margin: 24px 0 4px;
}

.benefit_main .bnf-cta__due {
  font-size: 19px;
  font-weight: 700;
  color: var(--bnf-key);
  margin: 0 0 14px;
}

.benefit_main .bnf-cta .btn {
  margin-top: 0;
  max-width: 100%;
}

/* スケジュール表
-------------------------------- */
.benefit_main .bnf-table-wrap {
  width: 100%;
}

.benefit_main table.bnf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  margin: 8px 0 0;
}

.benefit_main table.bnf-table th,
.benefit_main table.bnf-table td {
  border: 1px solid var(--bnf-line);
  padding: 14px 12px;
  text-align: center;
  line-height: 1.7;
  vertical-align: middle;
}

.benefit_main table.bnf-table thead th {
  background: var(--bnf-light);
  color: var(--bnf-key);
  font-size: 16px;
  font-weight: 700;
}

.benefit_main table.bnf-table th.bnf-table__rowh {
  text-align: left;
  width: 26%;
  font-weight: 400;
  color: var(--bnf-ink);
}

.benefit_main table.bnf-table tr.is-now th,
.benefit_main table.bnf-table tr.is-now td {
  background: var(--bnf-now);
}

.benefit_main .bnf-kchip {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--bnf-key);
  border-radius: 4px;
  padding: 1px 10px;
  margin-right: 8px;
}

.benefit_main .bnf-kchip--low {
  background: #6b7a8d;
}

.benefit_main .bnf-nowchip {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--bnf-key);
  background: var(--bnf-light);
  border: 1px solid #c7d8ec;
  border-radius: 4px;
  padding: 1px 10px;
  margin-top: 6px;
}

.benefit_main table.bnf-table .bnf-table__sm {
  display: block;
  font-size: 15px;
  color: var(--bnf-gray);
}

/* 事例カード
-------------------------------- */
.benefit_main .bnf-cases {
  display: flex;
  gap: 20px;
  margin: 16px 0 0;
}

.benefit_main .bnf-case {
  flex: 1;
  border: 1px solid var(--bnf-line);
  border-radius: 10px;
  overflow: hidden;
}

.benefit_main .bnf-case__head {
  background: var(--bnf-light2);
  border-bottom: 1px solid #e3e9f1;
  padding: 12px 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--bnf-key);
}

.benefit_main .bnf-case ul {
  padding: 14px 18px 16px 34px;
  margin: 0;
}

.benefit_main .bnf-case ul li {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 8px;
}

.benefit_main .bnf-case ul li:last-child {
  margin-bottom: 0;
}

/* よくあるご質問 誘導
-------------------------------- */
.benefit_main .bnf-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #c7d8ec;
  background: #f4f8fd;
  border-radius: 12px;
  padding: 22px 26px;
}

.benefit_main .bnf-callout__ico {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bnf-key);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit_main .bnf-callout__ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit_main .bnf-callout__tx {
  flex: 1;
}

.benefit_main .bnf-callout__tx b {
  display: block;
  font-size: 20px;
  color: var(--bnf-ink);
}

.benefit_main .bnf-callout__tx span {
  font-size: 16px;
  color: var(--bnf-gray);
}

.benefit_main .bnf-pill {
  flex: 0 0 auto;
  display: inline-block;
  background: #fff;
  border: 1px solid var(--bnf-key);
  color: var(--bnf-key);
  font-weight: 700;
  font-size: 17px;
  padding: 11px 26px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .3s;
}

.benefit_main .bnf-pill:hover {
  background: var(--bnf-key);
  color: #fff;
  text-decoration: none;
}

.benefit_main .bnf-pill:hover::after {
  background-image: url(../img/icn_window_white.png);
}

/* お問い合わせ
-------------------------------- */
.benefit_main .bnf-contact {
  border: 1px solid var(--bnf-line);
  border-radius: 10px;
  overflow: hidden;
}

.benefit_main .bnf-contact__row {
  display: flex;
  border-bottom: 1px solid #e3e8ef;
}

.benefit_main .bnf-contact__row:last-child {
  border-bottom: none;
}

.benefit_main .bnf-contact__ttl {
  flex: 0 0 35%;
  background: var(--bnf-graybg);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit_main .bnf-contact__ico {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 5px;
  fill: none;
  stroke: var(--bnf-key);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit_main .bnf-contact__ttl b {
  display: block;
  font-size: 17px;
  color: var(--bnf-key);
}

.benefit_main .bnf-contact__ttl small {
  display: block;
  font-size: 15px;
  color: var(--bnf-gray);
  margin-top: 4px;
  line-height: 1.7;
}

.benefit_main .bnf-contact__val {
  flex: 1;
  padding: 18px 20px;
  font-size: 17px;
  line-height: 1.85;
}

/* SP
-------------------------------- */
@media (max-width: 767px) {
  .benefit_main .sub h2 {
    font-size: 20px;
    gap: 8px;
  }

  .benefit_main .bnf-ico {
    width: 20px;
    height: 20px;
  }

  .benefit_main .bnf-lead,
  .benefit_main .bnf-lead--sm {
    font-size: 17px;
  }

  .benefit_main .bnf-note {
    font-size: 13px;
  }

  .benefit_main .bnf-cards,
  .benefit_main .bnf-terms,
  .benefit_main .bnf-cases {
    display: block;
  }

  .benefit_main .bnf-card,
  .benefit_main .bnf-term,
  .benefit_main .bnf-case {
    margin-bottom: 14px;
  }

  .benefit_main .bnf-card {
    padding: 16px 18px 18px;
  }

  .benefit_main .bnf-card__value {
    font-size: 21px;
  }

  .benefit_main .bnf-card__sub,
  .benefit_main .bnf-card__label {
    font-size: 13px;
  }

  .benefit_main .bnf-term__body dl {
    grid-template-columns: 80px 1fr;
  }

  .benefit_main .bnf-term__body dd {
    font-size: 16px;
  }

  .benefit_main ul.bnf-check li,
  .benefit_main ul.bnf-items li,
  .benefit_main .bnf-step p {
    font-size: 15px;
  }

  .benefit_main .bnf-step {
    padding: 16px 16px 18px;
    gap: 12px;
  }

  .benefit_main .bnf-step__no {
    flex: 0 0 48px;
    padding: 6px 0 8px;
  }

  .benefit_main .bnf-step__no strong {
    font-size: 21px;
  }

  .benefit_main .bnf-step__no span {
    font-size: 10px;
  }

  .benefit_main .bnf-step:not(:last-child)::after {
    left: 34px;
  }

  .benefit_main .bnf-step__head h3 {
    font-size: 17px;
  }

  .benefit_main .bnf-step__head h3 small {
    font-size: 14px;
  }

  .benefit_main .bnf-cta__due {
    font-size: 15px;
  }

  /* スケジュール表：SPは1行ずつのカード型に組み替える */
  .benefit_main table.bnf-table,
  .benefit_main table.bnf-table tbody,
  .benefit_main table.bnf-table tr,
  .benefit_main table.bnf-table th,
  .benefit_main table.bnf-table td {
    display: block;
    width: 100%;
  }

  .benefit_main table.bnf-table thead {
    display: none;
  }

  .benefit_main table.bnf-table tr {
    border: 1px solid var(--bnf-line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
  }

  .benefit_main table.bnf-table th,
  .benefit_main table.bnf-table td {
    border: none;
    border-bottom: 1px solid #e3e8ef;
    text-align: left;
    padding: 10px 14px;
    font-size: 15px;
  }

  .benefit_main table.bnf-table tr th:first-child {
    width: 100%;
  }

  .benefit_main table.bnf-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--bnf-key);
    margin-bottom: 2px;
  }

  .benefit_main table.bnf-table td:last-child {
    border-bottom: none;
  }

  .benefit_main .bnf-case__head,
  .benefit_main .bnf-case ul li {
    font-size: 15px;
  }

  .benefit_main .bnf-callout {
    display: block;
    padding: 18px;
  }

  .benefit_main .bnf-callout__ico {
    margin-bottom: 12px;
  }

  .benefit_main .bnf-callout__tx b {
    font-size: 17px;
  }

  .benefit_main .bnf-callout__tx span {
    font-size: 14px;
  }

  .benefit_main .bnf-pill {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 15px;
  }

  .benefit_main .bnf-contact__row {
    display: block;
  }

  .benefit_main .bnf-contact__ttl {
    flex: none;
    padding: 12px 14px;
  }

  .benefit_main .bnf-contact__val {
    padding: 12px 14px;
    font-size: 15px;
  }

  .benefit_main .bnf-contact__ttl b {
    font-size: 15px;
  }

  .benefit_main .bnf-contact__ttl small {
    font-size: 13px;
  }
}

/* 外部リンクマーク（汎用）
-------------------------------- */
.benefit_main .bnf-ext {
  position: relative;
  padding-right: 24px;
}

.benefit_main .bnf-ext::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 14px;
  background: url(../img/icn_window_blue.png) no-repeat center / contain;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.benefit_main .bnf-ext--w::after {
  background-image: url(../img/icn_window_white.png);
}

/* 既存CSSの上書き
   .benefit_main .txt-contens strong が display:block のため、
   新レイアウトでは文中の強調で行が割れる。インラインに戻す。
-------------------------------- */
.benefit_main .txt-contens strong {
  display: inline;
  margin: 0;
}

/* スケジュール表の詰め調整
-------------------------------- */
.benefit_main table.bnf-table {
  font-size: 16px;
  table-layout: fixed;
}

.benefit_main table.bnf-table th,
.benefit_main table.bnf-table td {
  padding: 14px 8px;
}

.benefit_main table.bnf-table th.bnf-table__rowh {
  width: 30%;
  padding-left: 14px;
}

/* 表セルの地色（サイト共通の th 背景を打ち消す）と列幅
-------------------------------- */
.benefit_main table.bnf-table th,
.benefit_main table.bnf-table td {
  background: #fff;
  color: var(--bnf-ink);
}

.benefit_main table.bnf-table thead th {
  background: var(--bnf-light);
  color: var(--bnf-key);
}

.benefit_main table.bnf-table tr.is-now th,
.benefit_main table.bnf-table tr.is-now td {
  background: var(--bnf-now);
}

.benefit_main table.bnf-table col.bnf-c1 { width: 30%; }
.benefit_main table.bnf-table col.bnf-c2 { width: 15%; }
.benefit_main table.bnf-table col.bnf-c3 { width: 19%; }
.benefit_main table.bnf-table col.bnf-c4 { width: 22%; }
.benefit_main table.bnf-table col.bnf-c5 { width: 14%; }

/* 日付セルは <br> の位置以外で折り返さない
-------------------------------- */
.benefit_main table.bnf-table {
  font-size: 15px;
}

.benefit_main table.bnf-table td {
  white-space: nowrap;
}

.benefit_main table.bnf-table col.bnf-c2 { width: 14%; }
.benefit_main table.bnf-table col.bnf-c3 { width: 20%; }

@media (max-width: 767px) {
  .benefit_main table.bnf-table td {
    white-space: normal;
  }
}

/* STEP内の注釈も他の注釈と同じサイズに
   （.bnf-step p の指定が .bnf-note より強く効いていたため）
-------------------------------- */
.benefit_main .bnf-step p.bnf-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--bnf-gray);
}

@media (max-width: 767px) {
  .benefit_main .bnf-step p.bnf-note {
    font-size: 13px;
  }
}

/* ピルボタンの外部リンクマークは文字のすぐ後ろに置く
   （.bnf-ext の絶対配置だとボタン右端に寄って見えるため）
-------------------------------- */
.benefit_main .bnf-pill.bnf-ext {
  padding-right: 26px;
}

.benefit_main .bnf-pill.bnf-ext::after {
  position: static;
  display: inline-block;
  margin-left: 8px;
  transform: none;
  vertical-align: -2px;
}
