/* JGLF 会員マイページ（既存テーマ内にスコープ） */
.jglf-mypage {
  --jglf-primary: #0d47a1;
  --jglf-header: #0d2818;
  --jglf-gold: #d4af37;
  --jglf-bg: #f4f6f8;
  --jglf-card: #ffffff;
  --jglf-text: #333333;
  --jglf-border: #e0e0e0;
  background: var(--jglf-bg);
  color: var(--jglf-text);
  padding-bottom: 60px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 表の幅でページ全体が広がらないようにする */
  box-sizing: border-box;
}

/* マイページ表示中は画面全体の横伸びも抑える（フッター含む） */
body.page-template-page-mypage-php,
body.page-mypage {
  overflow-x: hidden;
}

.jglf-mypage__bar {
  background: var(--jglf-header);
  color: #fff;
  border-bottom: 3px solid var(--jglf-gold);
  margin-bottom: 24px;
}

.jglf-mypage__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.jglf-mypage__bar-title {
  margin: 0;
  font-family: var(--font-mincho, "Shippori Mincho", "游明朝", "Yu Mincho", serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.jglf-mypage__bar-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.9rem;
}

.jglf-mypage__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.jglf-mypage__badge--gold {
  background: var(--jglf-gold);
  color: #111;
  font-weight: 700;
}

.jglf-mypage__logout {
  color: #fff;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* ゲストモード */
.jglf-mypage__guest-banner {
  margin: 0 auto 20px;
}

.jglf-mypage__guest-banner-inner {
  padding: 1.1rem 1.25rem;
  border: 1px solid #c5d4cf;
  border-left: 4px solid #004d40;
  background: #f3f8f6;
}

.jglf-mypage__guest-banner-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0d2818;
}

.jglf-mypage__guest-banner-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
}

.jglf-mypage__guest-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.jglf-mypage__guest-banner-actions .jglf-mypage__btn {
  text-decoration: none;
  text-align: center;
}

/* 閲覧は可。フォーム操作のみ止める（タブ切替などは可）
   ※エントリー／証明書申請はデモ操作可のため除外 */
.jglf-mypage--guest .jglf-mypage__content form:not(.jglf-mypage__entry-form):not(.jglf-mypage__cert-form) input,
.jglf-mypage--guest .jglf-mypage__content form:not(.jglf-mypage__entry-form):not(.jglf-mypage__cert-form) textarea,
.jglf-mypage--guest .jglf-mypage__content form:not(.jglf-mypage__entry-form):not(.jglf-mypage__cert-form) button,
.jglf-mypage--guest .jglf-mypage__content form:not(.jglf-mypage__entry-form):not(.jglf-mypage__cert-form) select {
  pointer-events: none;
}

.jglf-mypage--guest .jglf-mypage__content form:not(.jglf-mypage__entry-form):not(.jglf-mypage__cert-form) input,
.jglf-mypage--guest .jglf-mypage__content form:not(.jglf-mypage__entry-form):not(.jglf-mypage__cert-form) textarea,
.jglf-mypage--guest .jglf-mypage__content form:not(.jglf-mypage__entry-form):not(.jglf-mypage__cert-form) select {
  background: #f7f7f7;
  color: #888;
}

/* ゲストデモ：エントリー画面のプルダウンは開閉・選択可 */
.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__entry-form select {
  pointer-events: auto;
  background: #fff;
  color: inherit;
  cursor: pointer;
}

/* ゲストデモ：証明書申請は申請ボタン押下前まで操作可 */
.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form select,
.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form textarea,
.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form input,
.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form button {
  pointer-events: auto;
  cursor: pointer;
}

.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form select,
.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form textarea,
.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form input {
  background: #fff;
  color: inherit;
  cursor: text;
}

.jglf-mypage--guest .jglf-mypage__content form.jglf-mypage__cert-form select {
  cursor: pointer;
}

@media (max-width: 768px) {
  .jglf-mypage__guest-banner-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* 個人・法人は半分サイズで横並び／ログインは下段フル幅 */
  .jglf-mypage__guest-banner-actions .jglf-mypage__btn {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    max-width: calc(50% - 4px);
    padding: 8px 10px;
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: normal;
  }

  .jglf-mypage__guest-banner-actions .jglf-mypage__btn:last-child {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.jglf-mypage__layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.jglf-mypage .container-xl {
  max-width: 100%;
  box-sizing: border-box;
}

.jglf-mypage__sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.jglf-mypage__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--jglf-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.jglf-mypage__nav a {
  display: block;
  padding: 12px 16px;
  color: var(--jglf-text);
  text-decoration: none;
  border-bottom: 1px solid var(--jglf-border);
  transition: background 0.2s, color 0.2s;
}

.jglf-mypage__nav li:last-child a {
  border-bottom: none;
}

.jglf-mypage__nav li.is-active a,
.jglf-mypage__nav a:hover {
  background: var(--jglf-header);
  color: #fff;
}

.jglf-mypage__nav-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

.jglf-mypage__content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden; /* 内側の .jglf-mypage__scroll だけが横スクロール */
}

.jglf-mypage__section {
  margin-bottom: 28px;
  scroll-margin-top: 24px;
  min-width: 0;
  max-width: 100%;
}

.jglf-mypage__heading {
  font-family: var(--font-mincho, "Shippori Mincho", "游明朝", "Yu Mincho", serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 4px solid var(--jglf-header);
  letter-spacing: 0.04em;
}

.jglf-mypage__grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.jglf-mypage__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jglf-mypage__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jglf-mypage__grid > .jglf-mypage__card {
  height: 100%;
  box-sizing: border-box;
}

.jglf-mypage__cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.jglf-mypage__cal-current {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.jglf-mypage__cal-cell {
  background: #fafafa;
}

.jglf-mypage__cal-band--regular {
  background: #e8f5e9;
}

.jglf-mypage__cal-band--irregular {
  background: #fff3e0;
}

.jglf-mypage__cal-season {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.jglf-mypage__cat-merge {
  background: #f5f8fa;
  font-weight: 700;
}

.jglf-mypage__status-table tbody th {
  background: #f5f8fa;
  font-weight: 700;
}

.jglf-mypage__prize-section th,
.jglf-mypage__prize-section td {
  text-align: center;
  white-space: nowrap;
}

.jglf-mypage__prize-total-row th,
.jglf-mypage__prize-total-row td {
  background: #f5f8fa;
  font-weight: 700;
}

.jglf-mypage__quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jglf-mypage__quick-links li {
  margin: 0 0 8px;
}

.jglf-mypage__quick-links a {
  color: var(--jglf-primary);
  text-decoration: underline;
  font-size: 0.92rem;
}

.jglf-mypage__subheading {
  margin: 18px 0 10px;
  font-family: var(--font-mincho, "Shippori Mincho", "游明朝", "Yu Mincho", serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.jglf-mypage__stat--sm {
  font-size: 1.25rem;
}

.jglf-mypage__table--plain th {
  width: 40%;
}

.jglf-mypage__table--plain thead th {
  width: auto;
  background: #eef2f5;
}

.jglf-mypage__roster {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.jglf-mypage__card {
  background: var(--jglf-card);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* 縦に並ぶカード同士のすき間（グリッド内は gap で制御） */
.jglf-mypage__section > .jglf-mypage__card {
  margin-bottom: 16px;
}

.jglf-mypage__section > .jglf-mypage__card:last-child {
  margin-bottom: 0;
}

.jglf-mypage__card h3 {
  margin: 0 0 12px;
  font-family: var(--font-mincho, "Shippori Mincho", "游明朝", "Yu Mincho", serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.jglf-mypage__card p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.jglf-mypage__card--highlight {
  border: 1px solid var(--jglf-gold);
  background: #fffdf5;
}

.jglf-mypage__stat {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--jglf-primary);
  margin: 8px 0 !important;
}

.jglf-mypage__unit {
  font-size: 1rem;
  font-weight: 600;
}

.jglf-mypage__sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
}

.jglf-mypage__muted {
  color: #777;
  font-size: 0.85rem !important;
}

.jglf-mypage__note {
  margin-top: 14px !important;
  font-size: 0.82rem !important;
  color: #666;
}

.jglf-mypage__table {
  width: 100%;
  border-collapse: collapse;
}

.jglf-mypage__table th,
.jglf-mypage__table td {
  padding: 10px 12px;
  border: 1px solid var(--jglf-border);
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

.jglf-mypage__table th {
  background: #f9f9f9;
  width: 18%;
  font-weight: 600;
}

/* カテゴリ区分表・ステータス基準表：全セルを左右・上下とも中央揃え（一般表の left/top より後で上書き） */
.jglf-mypage__table.jglf-mypage__cat-table th,
.jglf-mypage__table.jglf-mypage__cat-table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.jglf-mypage__table.jglf-mypage__cat-table td:has(br) {
  white-space: normal;
  line-height: 1.45;
}

.jglf-mypage__table.jglf-mypage__status-table th,
.jglf-mypage__table.jglf-mypage__status-table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 8px 6px;
  width: auto;
}

/* カレンダー系表：全セルを左右・上下とも中央揃え */
.jglf-mypage__table.jglf-mypage__cal-month th,
.jglf-mypage__table.jglf-mypage__cal-month td {
  text-align: center;
  vertical-align: middle;
  width: 14.28%;
  min-width: 48px;
  height: 52px;
}

.jglf-mypage__table.jglf-mypage__cal-annual {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
}

.jglf-mypage__table.jglf-mypage__cal-annual col.jglf-mypage__cal-col {
  width: 4.25rem;
}

.jglf-mypage__table.jglf-mypage__cal-annual col.jglf-mypage__cal-col--wide {
  width: 6.25rem;
}

.jglf-mypage__table.jglf-mypage__cal-annual th,
.jglf-mypage__table.jglf-mypage__cal-annual td {
  text-align: center;
  vertical-align: middle;
  width: auto;
  white-space: nowrap;
  line-height: 1.4;
  font-size: 0.78rem;
  padding: 8px 6px;
}

.jglf-mypage__table.jglf-mypage__cal-annual thead th {
  text-align: center;
  vertical-align: middle;
}

.jglf-mypage__table.jglf-mypage__cal-history th,
.jglf-mypage__table.jglf-mypage__cal-history td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 0.85rem;
  width: auto;
}

.jglf-mypage__dues p {
  margin-bottom: 10px;
}

.jglf-mypage__dues-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

.jglf-mypage__dues-badge.is-paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.jglf-mypage__dues-badge.is-unpaid {
  background: #ffebee;
  color: #c62828;
}

.jglf-mypage__dues-badge.is-none {
  background: #f5f5f5;
  color: #666;
}

.jglf-mypage__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.jglf-mypage__checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.jglf-mypage__checkbox-group .jglf-doc-link {
  color: #004d40;
  text-decoration: underline;
  font-weight: 600;
}

/* reset.css の appearance:none / background:transparent で枠が消えるため自前描画 */
.jglf-mypage__checkbox-group input[type="checkbox"],
.jglf-mypage input.term-check {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 3px;
  box-sizing: border-box;
  vertical-align: middle;
}

.jglf-mypage__checkbox-group input[type="checkbox"]:checked,
.jglf-mypage input.term-check:checked {
  background-color: #004d40;
  border-color: #004d40;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.jglf-mypage__btn,
.jglf-mypage button.jglf-mypage__btn,
.jglf-mypage a.jglf-mypage__btn {
  display: inline-block;
  background: var(--jglf-header);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.jglf-mypage__btn:disabled {
  background: #ccc;
  color: #fff;
  -webkit-text-fill-color: #fff;
  cursor: not-allowed;
}

.jglf-mypage__entry-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
  clear: both;
}

.jglf-mypage__entry-action .jglf-mypage__btn {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.jglf-mypage__entry-action .jglf-mypage__warning {
  margin: 0;
  position: relative;
  z-index: 0;
  line-height: 1.6;
}

.jglf-mypage__entry-note {
  margin-top: 12px;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 600;
}

.jglf-mypage__warning {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 10px;
}

.jglf-mypage__lead-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.jglf-mypage__card-link {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.jglf-mypage__card-link a {
  color: var(--jglf-primary);
  text-decoration: underline;
}

.jglf-mypage__btn--ghost,
.jglf-mypage button.jglf-mypage__btn--ghost,
.jglf-mypage a.jglf-mypage__btn--ghost {
  background: #fff;
  color: var(--jglf-header);
  -webkit-text-fill-color: var(--jglf-header);
  border: 1px solid var(--jglf-header);
}

.jglf-mypage__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.jglf-mypage__btn-row a.jglf-mypage__btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.jglf-mypage__bullets {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.jglf-mypage__scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.75rem 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.jglf-mypage__scroll .jglf-mypage__table {
  width: max-content;
  min-width: 560px;
  max-width: none;
}

.jglf-mypage__scroll .jglf-mypage__table.jglf-mypage__cal-annual {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.jglf-mypage__scroll .jglf-mypage__cat-table,
.jglf-mypage__scroll .jglf-mypage__status-table,
.jglf-mypage__scroll .jglf-mypage__cal-history {
  min-width: 640px;
}

/* scroll 無しで直置きされた表はカード内だけで横スクロール */
.jglf-mypage__card:has(> .jglf-mypage__table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.jglf-mypage__card > .jglf-mypage__table {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.jglf-mypage__news-list {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.jglf-mypage__news-list li {
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.jglf-mypage__news-date {
  display: block;
  font-size: 0.82rem;
  color: #666;
}

.jglf-mypage__news-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jglf-mypage__table tr.is-active td {
  background: #f3f8f6;
  font-weight: 600;
}

.jglf-mypage__news-body {
  margin-top: 0.75rem;
}

.jglf-mypage__news-body p {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.jglf-mypage__news-body p:last-child {
  margin-bottom: 0;
}

.jglf-mypage__cert-samples {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.jglf-mypage__cert-samples li {
  margin: 0.35rem 0;
  line-height: 1.6;
}

.jglf-mypage__form-message {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #c5d4cf;
  background: #f3f8f6;
  font-size: 0.92rem;
  line-height: 1.6;
}

.jglf-mypage__form-message.is-success {
  border-color: #9cbcb0;
  background: #eef7f3;
  color: #0d2818;
}

.jglf-mypage__form-message.is-error {
  border-color: #f5c2c0;
  background: #fdecea;
  color: #b71c1c;
}

.jglf-mypage__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 1.25rem;
}

.jglf-mypage__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.jglf-mypage__field-label {
  display: block;
  line-height: 1.5;
}

.jglf-mypage__field-note {
  margin-left: 0.35em;
  font-size: 0.82rem;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
}

.jglf-mypage__field--full {
  grid-column: 1 / -1;
}

.jglf-mypage__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  background: #fff;
  color: #333;
}

.jglf-mypage__input:disabled {
  background: #f7f7f7;
  color: #888;
}

.jglf-mypage__radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  font-weight: 400;
}

.jglf-mypage__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.jglf-mypage__tab,
.jglf-mypage button.jglf-mypage__tab {
  border: 1px solid var(--jglf-border);
  background: #fff;
  color: var(--jglf-text);
  -webkit-text-fill-color: var(--jglf-text);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.jglf-mypage__tab.is-active,
.jglf-mypage button.jglf-mypage__tab.is-active {
  background: var(--jglf-header);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: var(--jglf-header);
}

.jglf-mypage__tabpanel[hidden] {
  display: none;
}

.jglf-mypage__chart-placeholder {
  border: 1px dashed #bbb;
  border-radius: 6px;
  padding: 12px;
  background: #fafafa;
}

.jglf-mypage__chart-y {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 8px;
}

.jglf-mypage__chart-plot {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 27px,
    #eee 27px,
    #eee 28px
  );
  color: #888;
  font-size: 0.9rem;
}

.jglf-mypage__chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #777;
}

@media (max-width: 900px) {
  .jglf-mypage__form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .jglf-mypage__grid--2,
  .jglf-mypage__grid--3 {
    grid-template-columns: 1fr;
  }

  .jglf-mypage__layout {
    flex-direction: column;
  }

  .jglf-mypage__sidebar {
    width: 100%;
    position: static;
  }

  .jglf-mypage__nav ul {
    display: flex;
    overflow-x: auto;
  }

  .jglf-mypage__nav li {
    flex-shrink: 0;
  }

  .jglf-mypage__nav a {
    border-bottom: none;
    border-right: 1px solid var(--jglf-border);
    white-space: nowrap;
  }

  /* SPもPCと同じ表構造。幅はラッパー内だけ広げ、ページは伸ばさない */
  .jglf-mypage__scroll .jglf-mypage__table th,
  .jglf-mypage__scroll .jglf-mypage__table td,
  .jglf-mypage__card > .jglf-mypage__table th,
  .jglf-mypage__card > .jglf-mypage__table td {
    white-space: nowrap;
  }

  .jglf-mypage__scroll .jglf-mypage__cat-table td,
  .jglf-mypage__scroll .jglf-mypage__status-table td,
  .jglf-mypage__scroll .jglf-mypage__status-table th {
    white-space: normal;
  }
}
