/* 会員給付一覧の基本文字サイズ */
.imp-font-size {
  font-size: 18px;
}

@media only screen and (max-width: 599px) {
  .imp-font-size {
    font-size: 16px;
  }
}

/* --- 会員情報ブロック (image_02c202.png) --- */
.fp-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #dcdcdc;
  border-bottom: none; /* 下線の重複防止 */
  background-color: #fff;
}

.fp-wrap:last-child {
  border-bottom: 1px solid #dcdcdc;
}

.fp-head-block {
  width: 220px; /* キャプチャ準拠の幅 */
  background-color: #f8f9fa; /* 薄いグレーのラベル */
  padding: 12px 15px;
  font-weight: bold;
  border-right: 1px solid #dcdcdc;
  display: flex;
  align-items: center;
  color: #333;
}

.fp-body-block {
  flex: 1;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  color: #000;
  min-width: 0;
}

@media only screen and (max-width: 599px) {
  .fp-wrap {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .fp-head-block {
    width: auto;
    padding: 10px 12px;
  }

  .fp-body-block {
    padding: 10px 12px;
  }

  .fp-input-wrap {
    min-width: 0;
    width: 100%;
  }
}

/* --- 受給金一覧テーブル (image_fffc8b.png) --- */
.list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  font-size: 18px; /* テーブル用サイズ */
}

@media only screen and (max-width: 599px) {
  .list-table {
    font-size: 16px;
  }
}

/* ヘッダー共通 */
.list-table thead th {
  background-color: #eeeef2;
  border: 1px solid #dcdcdc;
  padding: 10px 15px;
  font-weight: bold;
  text-align: left;
  vertical-align: middle;
  color: #333;
}

/* データセル共通 */
.list-table tbody td {
  border: 1px solid #dcdcdc;
  padding: 12px 15px;
  vertical-align: middle;
  color: #444;
}

.benefit-table-wrap .list-table {
  min-width: 640px;
}

.benefit-table-wrap .list-table td.text-right {
  background: #f8fbff;
}

.benefit-table-wrap .benefit-amount-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

/* ソートリンクのレイアウト (テキストは左、アイコンは右) */
.taishkskyg2025-th-sort-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 2.2em;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f5f7fa;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.taishkskyg2025-th-sort-link:hover {
  text-decoration: none;
  background: #edf2f7;
  border-color: #cfd8e3;
}

.taishkskyg2025-th-sort-link:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 1px;
}

.sort-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-tap-hint {
  display: none;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dfe7f1;
  color: #41556b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  font-size: 14px;
  color: #4a5a6a;
  margin-left: 0;
}

.sort-icon.is-active {
  color: #0f4c81;
  font-weight: 700;
}

@media only screen and (max-width: 767px) {
  .taishkskyg2025-th-sort-link {
    border-color: #cfd8e3;
    background: #f8fbff;
  }

  .sort-tap-hint {
    display: none;
  }
}

@media only screen and (max-width: 890px) {
  .benefit-table-wrap .list-table {
    font-size: 16px;
  }
}

@media only screen and (max-width: 840px) {
  .benefit-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .benefit-table-wrap .list-table {
    min-width: 760px;
  }

  .benefit-table-wrap .list-table thead th,
  .benefit-table-wrap .list-table tbody td {
    padding: 8px 10px;
  }

  .benefit-table-wrap .list-table th,
  .benefit-table-wrap .list-table td,
  .benefit-table-wrap .list-table th *,
  .benefit-table-wrap .list-table td * {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

/* --- ユーティリティ・調整用 --- */
.text-right {
  text-align: right !important;
  padding-right: 15px;
}

.com-mgb-10px {
  margin-bottom: 0 !important; /* テーブル内余白リセット */
}

.panel-body-wrap .pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.member-benefit-scroll-memo {
  margin-top: 12px;
}

.member-benefit-scroll-memo::before {
  -webkit-transform: translate(0, -50%) scaleY(-1);
  transform: translate(0, -50%) scaleY(-1);
}

@media only screen and (min-width: 600px) and (max-width: 799px) {
  .member-benefit-scroll-memo.dNone-pcTab {
    display: flex !important;
  }
}

/* member_benefit_index monthly summary */
.benefit-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefit-summary-item {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  overflow: hidden;
  background: #f8fbff;
}

.benefit-summary-month {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8em;
  padding: 4px 0;
  background: #e9f1fa;
  border-right: 1px solid #cfd8e3;
  font-weight: 700;
  color: #2c3e50;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.benefit-summary-amount {
  display: inline-block;
  padding: 4px 12px;
  font-weight: 700;
  color: #1f2d3d;
}

.member-number-value,
.benefit-summary-month,
.benefit-summary-amount,
.benefit-amount-value {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

/* title band */
#lay-title-wrap .title-inner {
  min-height: 88px;
  padding-top: 12px;
  padding-bottom: 12px;
}

#lay-title-wrap .title-inner .title {
  font-size: 1.6rem;
}

@media only screen and (max-width: 1024px) {
  #lay-title-wrap .title-inner {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #lay-title-wrap .title-inner .title {
    font-size: 1.35rem;
  }
}

/* page top spacing */
.lay-page {
  padding-top: 72px;
}

@media only screen and (max-width: 1024px) {
  .lay-page {
    padding-top: 32px;
  }
}

/* form error message */
.sect-form .alert.alert-danger,
.sect-message .alert.alert-danger {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px 12px 46px;
  border: 1px solid #f0b7b7;
  border-left: 5px solid #d92d20;
  border-radius: 6px;
  background: #fff4f4;
  color: #9a1f1f;
}

.sect-form .alert.alert-danger::before,
.sect-message .alert.alert-danger::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #d92d20;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.sect-form .alert.alert-danger ul,
.sect-message .alert.alert-danger ul {
  margin: 0;
  padding-left: 0;
  list-style: none !important;
}

.sect-form .alert.alert-danger li,
.sect-message .alert.alert-danger li {
  padding-left: 0;
  margin: 0.2em 0;
  line-height: 1.5;
  list-style: none !important;
}

.sect-form .alert.alert-danger li.error.red,
.sect-message .alert.alert-danger li.error.red {
  background: none;
  border: 0;
  padding: 0;
}

.sect-form .alert.alert-danger ul > li::before,
.sect-message .alert.alert-danger ul > li::before {
  content: none !important;
  display: none !important;
}

.sect-form .sect-form-body td > .error.red {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid #f0c1c1;
  border-radius: 4px;
  background: #fff2f2;
  color: #b42318;
  font-size: 0.92em;
  line-height: 1.4;
}

/* signup/entry password toggle */
.sect-form .sect-form-body .password-with-toggle {
  position: relative;
  width: 100%;
  max-width: 25em;
}

/* signup/entry bank account label note */
.sect-form .sect-form-body th .label-list-wrap .bank-account-note {
  display: block;
  font-size: calc(1em - 2px);
  padding-left: 1em;
  text-indent: -1em;
}

.sect-form .sect-form-body .password-with-toggle input[type="password"],
.sect-form .sect-form-body .password-with-toggle input[type="text"] {
  width: 100%;
  max-width: none;
  padding-right: 44px;
}

.sect-form .sect-form-body .password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  line-height: 1;
  cursor: pointer;
}

.sect-form .sect-form-body .password-toggle-btn:hover {
  background: #e9e9e9;
}

.sect-form .sect-form-body .password-toggle-btn:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 1px;
}

.sect-form .sect-form-body .password-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
  border: 2px solid #555;
  border-radius: 12px / 8px;
}

.sect-form .sect-form-body .password-toggle-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #555;
  transform: translate(-50%, -50%);
}

.sect-form .sect-form-body .password-toggle-btn.is-visible .password-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #555;
  transform: translate(-50%, -50%) rotate(-35deg);
}

/* header auth link */
.header-auth-link-inner {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media print, screen and (min-width: 1025px) {
  .header-desktop-auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--height-header);
    height: var(--height-header);
    padding: 0 16px;
    background: var(--color_font);
  }

  .header-auth-link-inner {
    font-size: 14px;
  }
}

@media only screen and (max-width: 1024px) {
  .headerInner {
    padding: 0 var(--sidePadding_base_mbl) 0 !important;
  }

  .header-mobile-auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--height-header_mbl);
    height: var(--height-header_mbl);
    padding: 0 12px;
    background: var(--color_font);
  }

  .header-mobile-auth-link .header-auth-link-inner {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .header-auth-link-inner {
    font-size: 13px;
  }
}
