@charset "UTF-8";

html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

#swap-calendar [v-cloak] {
  display: none !important;
}

/*----------------------------------------------------
 このページだけヘッダーの口座開設ボタンとログインボタンを非表示
----------------------------------------------------*/
.header__btn--list {
  display: none;
}

/*----------------------------------------------------
 triauto-swap-calender
----------------------------------------------------*/
/* date */
.triauto-swap-calender-date {
  color: #666;
  font-size: 1.8rem;
  font-weight: bold;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}
/*----------------------------------------------------
 triauto-swap-calender-list
----------------------------------------------------*/
/* 旧 margin-bottom(3rem/PC4rem) は削除済み。表の下の余白は後続要素
   (.triauto-swap-table-note の margin-top: 20px) 側で作る（2026-07-07） */
.triauto-swap-calender-list table {
    border-collapse: collapse;
    position: relative;
    text-align: center;
    width: 100%;
}
/* 旧テーマの thead 要素への sticky(top:70px/90px) はここから削除済み。
   要素への sticky は z-index が無く、tbody 内の position:relative な
   旗アイコンが上に描画される・ヘッダー高(100px)より浅い top で重なる、
   の2つの不具合源だった。現行の追従は .triauto-spread-table thead th 側
   (z-index:2 + ヘッダー実高に合わせた top) で行う。 */

.triauto-swap-calender-list th,
.triauto-swap-calender-list td {
    border-left: 1px solid #999;
    padding: .7rem .5rem;
}
.triauto-swap-calender-list tr:first-child th:first-child,
.triauto-swap-calender-list td:first-child {
    border-left: 0;
}

.triauto-swap-calender-list td:nth-child(3),
.triauto-swap-calender-list td:nth-child(4) {
    text-align: right;
    width: 20%;
}

.triauto-swap-calender-list tbody:nth-child(odd) {
    background: #f5f5f5;
}

/* thead */
.triauto-swap-calender-list th {
    background: #f2f2f2;
}
.triauto-swap-calender-list tr:nth-child(even) td {
  background: #f2f2f2;
}
.triauto-swap-calender-list th img {
    height: 1.8rem;
    margin: 0 auto .5rem;
    vertical-align: middle;
}

/* latest table: match /triauto/spread/ table theme */
.triauto-swap-latest-table-block.triauto-spread-table-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 16px auto 0;
  width: 100%;
}
.triauto-swap-calender-list .triauto-spread-table-scroll {
  filter: drop-shadow(0 4px 7px rgba(235, 243, 252, .48));
  /* overflow-x:auto だとこのラッパー自身がスクロールコンテナになり、thead の
     sticky がページではなく表の高さのラッパーに対して張り付いて実質追従しない。
     PC(>=940px)では表(min-width:640px)がコンテナ(max-width:760px)に常に収まり
     横スクロール自体が不要のため visible にする。SP(<=939px)は既存のSPブロックで
     元々 visible。 */
  overflow: visible;
  width: 100%;
}
.triauto-swap-calender-list .triauto-spread-table {
  border: 1px solid var(--border);
  border-collapse: separate;
  border-radius: 6px;
  border-spacing: 0;
  color: var(--text);
  font: var(--ta-type-body);
  letter-spacing: var(--ta-letter-spacing-ja, 1px);
  min-width: 640px;
  /* overflow:hidden だと sticky thead が親でクリップされ追従しないため visible に。
     角丸は overflow で自動クリップされなくなる分、四隅のセルに個別付与して維持する
     (下の thead/tbody first-child/last-child ルール参照)。 */
  overflow: visible;
  position: static;
  table-layout: fixed;
  width: 100%;
}
.triauto-swap-calender-list .triauto-spread-table th,
.triauto-swap-calender-list .triauto-spread-table td {
  border: 0;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  box-sizing: border-box;
  padding: 0 12px;
  vertical-align: middle;
}
.triauto-swap-calender-list .triauto-spread-table th:last-child,
.triauto-swap-calender-list .triauto-spread-table td:last-child {
  border-right: 0;
}
.triauto-swap-calender-list .triauto-spread-table thead th {
  background: var(--mane-color);
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  font-family: var(--ta-font-family-ja);
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  letter-spacing: 0;
  line-height: normal;
  position: sticky; /* 追従(sticky)。top はヘッダー確保領域に合わせる(SP48px/PC112px、下の769px以上メディアクエリで上書き) */
  top: 48px;
  text-align: center;
  z-index: 2;
}
.triauto-swap-calender-list .triauto-spread-table thead tr:first-child th {
  border-top: 0;
  height: 54px;
}
/* overflow:visible化で自動クリップされなくなった四隅の角丸を個別に復元 */
.triauto-swap-calender-list .triauto-spread-table thead tr:first-child th:first-child {
  border-top-left-radius: 6px;
}
.triauto-swap-calender-list .triauto-spread-table thead tr:first-child th:last-child {
  border-top-right-radius: 6px;
}
.triauto-swap-calender-list .triauto-spread-table tbody tr:last-child th {
  border-bottom-left-radius: 6px;
}
.triauto-swap-calender-list .triauto-spread-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}
.triauto-swap-calender-list .triauto-spread-table .triauto-spread-table__pair-head {
  background: var(--mane-color);
  border-right-color: #fff;
  width: 220px;
}
.triauto-swap-calender-list .triauto-spread-table thead th:nth-child(2) {
  width: 159px;
}
.triauto-swap-calender-list .triauto-spread-table tbody tr {
  height: 54px;
}
.triauto-swap-calender-list .triauto-spread-table tbody th {
  background: var(--primary-pale);
  color: var(--primary-dark);
  font: var(--ta-type-h4-pc);
  font-size: 16px;
  height: 54px;
  letter-spacing: 0;
  text-align: left;
  vertical-align: middle;
}
.triauto-swap-calender-list .triauto-spread-table tbody tr:nth-child(even) th {
  background: #f4f8fe;
}
.triauto-swap-calender-list .triauto-spread-table tbody td,
.triauto-swap-calender-list .triauto-spread-table tbody td:nth-child(3),
.triauto-swap-calender-list .triauto-spread-table tbody td:nth-child(4) {
  background: #fff;
  font-size: 16px;
  text-align: center;
  width: auto;
}
.triauto-swap-calender-list .triauto-spread-flags {
  display: inline-flex;
  flex: 0 0 40px;
  height: auto;
  margin: 0 10px 0 0;
  position: relative;
  vertical-align: middle;
  width: 40px;
}
.triauto-swap-calender-list .triauto-spread-table tbody th > span:last-child {
  display: inline-block;
  vertical-align: middle;
}
@media (min-width: 940px) {
    /* title */
    .triauto-swap-calender-date {
        font-size: 2.1rem;
    }

    /* list: 旧 margin-bottom 4rem は削除済み（表下余白は .triauto-swap-table-note 側の margin-top で作る） */
    /* 旧テーマ thead sticky の PC 用 top:90px はここから削除済み(上のコメント参照) */

    .triauto-swap-calender-list th,
    .triauto-swap-calender-list td {
        font-size: 1.6rem;
        padding: 1rem;
    }
    /* thead */
    .triauto-swap-calender-list th {
        font-size: 1.8rem;
        vertical-align: middle;
    }
    .triauto-swap-calender-list th img {
        display: inline-block;
        height: 2.1rem;
        margin: 0 1rem 0 0;
    }

}

/*====================================================
  Swap Calendar - Modern Theme (2026)
====================================================*/

/*----------------------------------------------------
 page wrapper
----------------------------------------------------*/
.triauto-swap-page {
  background: #fff;
  font-family: var(--ta-font-family-ja);
}
.triauto-swap-page button,
.triauto-swap-page select,
.triauto-swap-page table {
  font-family: var(--ta-font-family-ja);
}

/*----------------------------------------------------
 view tabs
----------------------------------------------------*/
.triauto-swap-view-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 0 auto 4rem;
  max-width: 760px;
  width: 100%;
}
.triauto-swap-view-tab-btn {
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 4px;
  color: #1e5fad;
  cursor: pointer;
  flex: 1 1 50%;
  font-family: var(--ta-font-family-ja);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 3.6rem;
  padding: .8rem 1.2rem;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.triauto-swap-view-tab-break {
  display: none;
}
.triauto-swap-view-tab-line {
  white-space: nowrap;
}
.triauto-swap-view-tab-btn:first-child {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.triauto-swap-view-tab-btn:last-child {
  border-bottom-left-radius: 0;
  border-left: 0;
  border-top-left-radius: 0;
}
.triauto-swap-view-tab-btn:hover {
  background: #fff;
  color: #0a2463;
}
.triauto-swap-view-tab-btn.is-active {
  background: #1e5fad;
  border-color: #0a2463;
  box-shadow: none;
  color: #fff;
}
.triauto-swap-view-tab-btn.is-active:hover {
  background: #164f95;
  color: #fff;
}
@media (min-width: 940px) {
  .triauto-swap-view-tabs {
    margin-bottom: 4rem;
  }
  .triauto-swap-view-tab-btn {
    font-size: 16px;
    min-height: 4rem;
    padding: .9rem 2rem;
  }
}

/*----------------------------------------------------
 view panels base
----------------------------------------------------*/
.triauto-swap-view {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 1.5rem 0;
}
@media (min-width: 940px) {
  .triauto-swap-view {
    padding: 3rem 2.5rem 0;
  }
}
#swap-calendar.triauto-swap-view {
  padding-bottom: 0;
  padding-top: 0;
}
#swap-latest-view.triauto-swap-view {
  padding-bottom: 0;
  padding-top: 0;
}

/*----------------------------------------------------
 monthly calendar select
----------------------------------------------------*/
.triauto-market-calendar-select-wrap {
  margin: 0 auto 3rem;
  max-width: 840px;
  position: relative;
}
#swap-calendar .triauto-market-calendar-select-wrap {
  margin-bottom: 1.6rem;
}
.triauto-market-calendar-select-in {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.triauto-market-calendar-select-each {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
}
.triauto-market-calendar-select-each > p {
  color: #0a2463;
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  min-width: 7em;
}
.triauto-market-calendar-select-each > div {
  flex: 1 1 auto;
  position: relative;
}
/* 旧 <select> 用ルールは削除済み（現行HTMLは pair-picker / month-picker のボタンUIで <select> 不使用。2026-07-07 チェックリスト監査） */
@media (min-width: 940px) {
  .triauto-market-calendar-select-in {
    flex-direction: column;
    gap: 4rem;
  }
  .triauto-market-calendar-select-each {
    flex: 0 1 auto;
  }
}

.triauto-monthly-pair-select {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  width: 100%;
}
/* 旧 .triauto-monthly-pair-dropdown / .triauto-monthly-pair-option 系ルールは削除済み
   （現行HTMLは .triauto-monthly-pair-picker 系に置換済みで未使用だった。2026-07-07 チェックリスト監査） */
.triauto-monthly-month-select {
  display: flex;
  margin: 0 auto;
  max-width: 840px;
  width: 100%;
}
.triauto-monthly-month-picker {
  width: 100%;
}
.triauto-monthly-month-picker__trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  color: #0a2463;
  cursor: pointer;
  display: flex;
  font-family: var(--ta-font-family-ja);
  font-size: 1.6rem;
  font-weight: 700;
  justify-content: flex-start;
  min-height: 4.6rem;
  padding: .8rem 4rem .8rem 1.2rem;
  position: relative;
  text-align: left;
  width: 100%;
}
.triauto-monthly-month-picker__trigger::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #1e5fad;
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
}
.triauto-monthly-month-picker__trigger[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}
.triauto-monthly-month-picker__panel {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(10, 36, 99, .14);
  left: 50%;
  margin-top: 8px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  padding: 0 0 8px;
  position: absolute;
  right: auto;
  transform: translateX(-50%);
  width: 360px;
  z-index: 1001;
}
.triauto-monthly-month-picker__panel:not([style*="display: none"]) {
  display: block;
}
.triauto-monthly-month-picker__header {
  align-items: center;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  min-height: 42px;
  padding: 0 4px;
}
.triauto-monthly-month-picker__nav {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 36px;
  position: relative;
  width: 36px;
}
.triauto-monthly-month-picker__nav::before {
  border-bottom: 2px solid #8b96a5;
  border-left: 2px solid #8b96a5;
  content: "";
  height: 9px;
  left: 15px;
  position: absolute;
  top: 13px;
  transform: rotate(45deg);
  width: 9px;
}
.triauto-monthly-month-picker__nav--next::before {
  left: 11px;
  transform: rotate(-135deg);
}
.triauto-monthly-month-picker__nav:hover::before {
  border-color: #1e5fad;
}
.triauto-monthly-month-picker__nav.is-disabled,
.triauto-monthly-month-picker__nav:disabled {
  cursor: default;
}
.triauto-monthly-month-picker__nav.is-disabled::before,
.triauto-monthly-month-picker__nav:disabled::before,
.triauto-monthly-month-picker__nav.is-disabled:hover::before,
.triauto-monthly-month-picker__nav:disabled:hover::before {
  border-color: #d8dee8;
}
.triauto-monthly-month-picker__year {
  color: #242b35;
  font-size: 2rem;
  font-weight: 700;
  grid-column: 2;
  line-height: 1;
  margin: 0;
  text-align: center;
}
.triauto-monthly-month-picker__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 2px;
}
.triauto-monthly-month-picker__item {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 0;
  border-radius: 4px;
  color: #334155;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: auto;
  padding: 0;
  transition: background-color .2s ease, color .2s ease;
}
.triauto-monthly-month-picker__item:hover {
  background: #eef6ff;
  color: #1e5fad;
}
.triauto-monthly-month-picker__item.is-active {
  background: #1e5fad;
  color: #fff;
}
.triauto-monthly-month-picker__item.is-disabled,
.triauto-monthly-month-picker__item:disabled {
  background: #fff;
  color: #e5e9ef;
  cursor: default;
}
.triauto-monthly-month-picker__item.is-disabled:hover,
.triauto-monthly-month-picker__item:disabled:hover {
  background: #fff;
  color: #e5e9ef;
}
.triauto-monthly-month-picker__month {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 560px) {
  .triauto-market-calendar-select-each {
    flex-direction: column;
  }
  .triauto-monthly-month-picker__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .triauto-monthly-month-picker__item {
    aspect-ratio: 1 / 1;
    min-height: auto;
  }
  .triauto-monthly-month-picker__year {
    font-size: 1.8rem;
  }
  .triauto-monthly-month-picker__month {
    font-size: 1.45rem;
  }
}

/*----------------------------------------------------
 monthly calendar list
----------------------------------------------------*/
.triauto-market-calendar-title {
  display: none;
}
.triauto-market-calendar-list {
  border-top: 0;
  margin: 0 auto;
  max-width: 760px;
  padding-top: 0;
}
#swap-calendar .triauto-market-swap-each {
  display: none;
}
#swap-calendar .triauto-market-swap-each.is-active {
  display: block;
}
.triauto-monthly-table-block.triauto-spread-table-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.triauto-market-calendar-list .triauto-spread-table-scroll {
  filter: drop-shadow(0 4px 7px rgba(235, 243, 252, .48));
  /* overflow-x:auto だと sticky thead が追従しない(上の latest 表側の同名ルールの
     コメント参照)。PCでも表がコンテナに収まるため visible で問題ない。 */
  overflow: visible;
  width: 100%;
}
.triauto-market-calendar-list .triauto-spread-table {
  border: 1px solid var(--border);
  border-collapse: separate;
  border-radius: 6px;
  border-spacing: 0;
  color: var(--text);
  font: var(--ta-type-body);
  letter-spacing: var(--ta-letter-spacing-ja, 1px);
  min-width: 640px;
  /* overflow:hidden だと sticky thead が親でクリップされ追従しないため visible に。
     角丸は overflow で自動クリップされなくなる分、四隅のセルに個別付与して維持する
     (下の thead/tbody first-child/last-child ルール参照)。 */
  overflow: visible;
  table-layout: fixed;
  width: 100%;
}
.triauto-market-calendar-list .triauto-spread-table th,
.triauto-market-calendar-list .triauto-spread-table td {
  border: 0;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  box-sizing: border-box;
  padding: 0 12px;
  vertical-align: middle;
}
.triauto-market-calendar-list .triauto-spread-table th:last-child,
.triauto-market-calendar-list .triauto-spread-table td:last-child {
  border-right: 0;
}
.triauto-market-calendar-list .triauto-spread-table thead th {
  background: var(--mane-color);
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  font-family: var(--ta-font-family-ja);
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  letter-spacing: 0;
  line-height: normal;
  position: sticky; /* 追従(sticky)。top はヘッダー確保領域に合わせる(SP48px/PC112px、下の769px以上メディアクエリで上書き) */
  top: 48px;
  text-align: center;
  z-index: 2;
}
.triauto-market-calendar-list .triauto-spread-table thead tr:first-child th {
  border-top: 0;
  height: 54px;
}
/* overflow:visible化で自動クリップされなくなった四隅の角丸を個別に復元 */
.triauto-market-calendar-list .triauto-spread-table thead tr:first-child th:first-child {
  border-top-left-radius: 6px;
}
.triauto-market-calendar-list .triauto-spread-table thead tr:first-child th:last-child {
  border-top-right-radius: 6px;
}
.triauto-market-calendar-list .triauto-spread-table tbody tr:last-child th {
  border-bottom-left-radius: 6px;
}
.triauto-market-calendar-list .triauto-spread-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}
.triauto-market-calendar-list .triauto-spread-table .triauto-spread-table__pair-head {
  background: var(--mane-color);
  border-right-color: #fff;
  width: 220px;
}
.triauto-market-calendar-list .triauto-spread-table thead th:nth-child(2) {
  width: 159px;
}
.triauto-market-calendar-list .triauto-spread-table tbody tr {
  height: 54px;
}
/* 1列目(取引日): 平日=#ebf3fc / 土日(.triauto-market-calendar-holiday)=#f4f8fe (ユーザー指定 2026-07-06) */
.triauto-market-calendar-list .triauto-spread-table tbody th {
  background: #ebf3fc;
  color: var(--primary-dark);
  font: var(--ta-type-h4-pc);
  height: 54px;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
}
.triauto-market-calendar-list .triauto-spread-table tbody td,
.triauto-market-calendar-list .triauto-spread-table tbody td:nth-child(3),
.triauto-market-calendar-list .triauto-spread-table tbody td:nth-child(4) {
  background: #fff;
  text-align: center;
  width: auto;
}
.triauto-market-calendar-list .triauto-spread-table tbody tr.triauto-market-calendar-holiday th {
  background: #f4f8fe;
  color: var(--primary-dark);
}
.triauto-market-calendar-list .triauto-spread-table tbody tr.triauto-market-calendar-holiday td {
  color: #b6c0cc;
}
.triauto-market-calendar-list .triauto-spread-table tbody th > span {
  display: inline;
}
/* 追従(sticky)ヘッダーのオフセット: 共通ヘッダー(.header-for-triauto)の実高さ切替
   (769px, /assets/css/app.css) に合わせる。このページ自体のSP/PCコンテンツ切替
   (939/940px)とは基準点が異なるため、ここだけ独立したブレークポイントを使う。
   top はヘッダー要素高(100px)ではなくサイトがヘッダー用に確保している
   .global-header-reserve の高さ(112px、2026-07-18に108→112)に合わせ、ピル型ナビとの重なりを防ぐ */
@media (min-width: 769px) {
  .triauto-swap-calender-list .triauto-spread-table thead th,
  .triauto-market-calendar-list .triauto-spread-table thead th {
    top: 112px;
  }
}
/* 表直下の注記（カードに入れない・最新/月間両ビュー共通、2026-07-07 ユーザー指定）。
   2行の間は余白なし（行送りのみ・同日ユーザー指定）。「下の余白」は、月間ビューでは
   次要素 .triauto-swap-security-note の margin-top: 40px、最新ビューでは末尾要素のため
   .ta-content の padding-bottom (PC80/SP40) 側で作る */
.triauto-swap-table-note {
  box-sizing: border-box;
  margin: 20px auto 0; /* 表との間 20px（セクション内コンテンツ間のデフォルト） */
  max-width: 760px;
  overflow-wrap: anywhere;
  width: 100%;
}
.triauto-swap-table-note p {
  font-weight: 400; /* 注記はボールド感を無くし通常ウェイトに（.ta-text-body の 500 を上書き、2026-07-09 ユーザー指定） */
  margin: 0;
}
/* 表の下の注意カード。月間スワップビューのみ（最新ビュー側は 2026-07-07 に本文ごと削除）。
   直前の表下注記 (.triauto-swap-table-note) との間の余白はこの margin-top: 40px で作る。
   カードの見た目（背景・枠・角丸・影）は共通 .ta-card に委譲。ここはレイアウトのみ（2026-07-07） */
.triauto-swap-security-note {
  box-sizing: border-box;
  margin: 40px auto 0;
  max-width: 760px;
  overflow-wrap: anywhere;
  padding: 32px 28px;
  width: 100%;
}
.triauto-swap-security-note p {
  font-weight: 400; /* 注記はボールド感を無くし通常ウェイトに（.ta-text-body の 500 を上書き、2026-07-09 ユーザー指定） */
  margin: 0;
}
.triauto-swap-security-note p + p {
  margin-top: var(--ta-space-m);
}
/* 注意カード内のPC専用改行。SPでは「…転じるおそれがあり」の後で改行せず
   自然な折返しにする（2026-07-08 ユーザー指定） */
@media screen and (max-width: 939px) {
  .triauto-swap-security-note__br-pc {
    display: none;
  }
}
@media (min-width: 940px) {
  .triauto-market-calendar-title {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }
  /* PC: テーブルデータ・行ヘッダー 16px に統一 */
  .triauto-market-calendar-list .triauto-spread-table,
  .triauto-swap-calender-list .triauto-spread-table {
    font-size: 16px;
  }
  .triauto-market-calendar-list .triauto-spread-table tbody th,
  .triauto-swap-calender-list .triauto-spread-table tbody th {
    font-size: 16px;
  }
  .triauto-market-calendar-list .triauto-spread-table .triauto-spread-table__pair-head,
  .triauto-swap-calender-list .triauto-spread-table .triauto-spread-table__pair-head {
    font-size: 16px;
  }
}

/* ===== triauto-monthly-month-nav (prev/next month arrows around month picker) ===== */
.u-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.triauto-monthly-month-nav {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
  width: 100%;
}
.triauto-monthly-month-nav .triauto-monthly-month-picker {
  flex: 0 0 auto;
  position: static;
  width: auto;
}
.triauto-monthly-month-nav .triauto-monthly-month-picker__trigger {
  justify-content: center;
  min-width: 18rem;
  padding-left: 3.4rem;
  padding-right: 3.4rem;
  width: auto;
}
.triauto-monthly-month-nav .triauto-monthly-month-picker__panel {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.triauto-monthly-month-nav__arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  color: #0a2463;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 4.4rem;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  width: 4.4rem;
}
.triauto-monthly-month-nav__arrow::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  height: 10px;
  transform: rotate(45deg);
  width: 10px;
}
.triauto-monthly-month-nav__arrow--next::before {
  transform: rotate(-135deg);
}
.triauto-monthly-month-nav__arrow:hover {
  background: #eef6ff;
  border-color: #3f88dd;
}
.triauto-monthly-month-nav__arrow:disabled,
.triauto-monthly-month-nav__arrow.is-disabled {
  background: #f5f7fa;
  color: #c8d0db;
  cursor: default;
}
.triauto-monthly-month-nav__arrow:disabled:hover,
.triauto-monthly-month-nav__arrow.is-disabled:hover {
  background: #f5f7fa;
  border-color: #c8d4e3;
}

/* ===== triauto-monthly-pair-picker (5x7 grid dropdown with flags) ===== */
.triauto-monthly-pair-picker {
  width: 100%;
}
.triauto-monthly-pair-picker__trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  color: #0a2463;
  cursor: pointer;
  display: flex;
  font-family: var(--ta-font-family-ja);
  font-size: 1.6rem;
  font-weight: 700;
  gap: 10px;
  justify-content: flex-start;
  min-height: 4.6rem;
  padding: .7rem 4rem .7rem 1.2rem;
  position: relative;
  text-align: left;
  width: 100%;
}
.triauto-monthly-pair-picker__trigger::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #1e5fad;
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
}
.triauto-monthly-pair-picker__trigger[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}
.triauto-monthly-pair-picker__flag {
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 46px;
  height: auto;
  width: 46px;
}
.triauto-monthly-pair-picker__panel {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(10, 36, 99, .14);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(5.6rem, auto);
  left: 50%;
  margin-top: 8px;
  max-height: calc(5.6rem * 7 + 16px * 2 + 8px * 6);
  max-width: 760px;
  overflow-y: auto;
  padding: 16px;
  position: absolute;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1001;
}
.triauto-monthly-pair-picker__item {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  color: #0a2463;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  min-height: 5.6rem;
  padding: .6rem .8rem;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.triauto-monthly-pair-picker__item:hover {
  background: #eef6ff;
  border-color: #3f88dd;
}
.triauto-monthly-pair-picker__item.is-active {
  background: #1e5fad;
  border-color: #1e5fad;
  color: #fff;
}
.triauto-monthly-pair-picker__item:disabled {
  cursor: default;
  opacity: .38;
}
.triauto-monthly-pair-picker__item-flag {
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 44px;
  height: auto;
  width: 44px;
}
.triauto-monthly-pair-picker__item span {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .triauto-monthly-pair-picker__panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 940px) {
  .triauto-monthly-pair-picker__panel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ===== Mobile: 横スクロールなし / 縦スクロール対応 ===== */
@media screen and (max-width: 939px) {

  .triauto-swap-view-tab-break {
    display: block;
  }
  .triauto-swap-view-tab-btn {
    line-height: 1.25;
    padding: .8rem .4rem;
  }

  .triauto-swap-view {
    padding-left: 0;
    padding-right: 0;
  }

  /* ---- latest スワップ表 ---- */
  .triauto-swap-calender-list .triauto-spread-table-scroll {
    overflow: visible;
    width: 100%;
  }
  .triauto-swap-calender-list .triauto-spread-table {
    font-size: 12px;
    min-width: 0;
    width: 100%;
  }
  .triauto-swap-calender-list .triauto-spread-table th,
  .triauto-swap-calender-list .triauto-spread-table td {
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0 6px;
    word-break: keep-all;
  }
  .triauto-swap-calender-list .triauto-spread-table thead th {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }
  /* 1列目・付与日数を「1行で収まる最小幅」に固定し、売/買へ残り幅を回す（2026-07-07 ユーザー指定）。
     売/買(3,4列目)は幅指定なし = table-layout:fixed の残余等分で自動拡大 */
  .triauto-swap-calender-list .triauto-spread-table .triauto-spread-table__pair-head {
    width: 72px; /* 旗32px+英字ペア名(AUD/CAD等 約50px)が改行せず収まる最小幅 */
  }
  .triauto-swap-calender-list .triauto-spread-table thead th:nth-child(2) {
    width: 62px; /* 「付与日数」4文字(48px)+padding12px が1行で収まる最小幅 */
  }
  .triauto-swap-calender-list .triauto-spread-table tbody th {
    font-size: 12px;
    line-height: 1.2;
    padding: 8px 6px;
    text-align: center;
    white-space: normal;
  }
  .triauto-swap-calender-list .triauto-spread-flags {
    display: block;
    margin: 0 auto;
    width: 32px;
  }
  .triauto-swap-calender-list .triauto-spread-table tbody th > span:last-child {
    display: block;
  }
  .triauto-swap-calender-list .triauto-spread-table tbody td {
    font-size: 16px; /* SP: td のみ 16px（th は 12px 維持。ユーザー指定 2026-07-07） */
    letter-spacing: 0;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  /* ---- monthly スワップ表 ---- */
  .triauto-market-calendar-list .triauto-spread-table-scroll {
    overflow: visible;
    width: 100%;
  }
  .triauto-market-calendar-list .triauto-spread-table {
    font-size: 12px;
    min-width: 0;
    width: 100%;
  }
  .triauto-market-calendar-list .triauto-spread-table th,
  .triauto-market-calendar-list .triauto-spread-table td {
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0 6px;
    word-break: keep-all;
  }
  .triauto-market-calendar-list .triauto-spread-table thead th {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }
  /* 1列目・付与日数を「1行で収まる最小幅」に固定し、売/買へ残り幅を回す（2026-07-07 ユーザー指定）。
     売/買(3,4列目)は幅指定なし = table-layout:fixed の残余等分で自動拡大 */
  .triauto-market-calendar-list .triauto-spread-table .triauto-spread-table__pair-head {
    width: 102px; /* 取引日の最長「12月31日（水）」(約89px)+padding12px が1行で収まる最小幅 */
  }
  .triauto-market-calendar-list .triauto-spread-table thead th:nth-child(2) {
    width: 62px; /* 「付与日数」4文字(48px)+padding12px が1行で収まる最小幅 */
  }
  .triauto-market-calendar-list .triauto-spread-table tbody th {
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 6px;
    white-space: nowrap; /* 取引日を1行維持（列幅102pxとセット。2026-07-07） */
  }
  .triauto-market-calendar-list .triauto-spread-table tbody td {
    font-size: 16px; /* SP: td のみ 16px（th は 12px 維持。ユーザー指定 2026-07-07） */
    letter-spacing: 0;
    overflow-wrap: normal;
    white-space: nowrap;
  }
}
