@charset "UTF-8";

/*======================================================
  /cfd/interest-calendar/ ページ専用 CSS
  ベース: /triauto/swap-calendar/css/style.css
  ======================================================*/

/* 100vw 全画面ヒーローによる横スクロール防止（センタリング維持） */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

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

/* SP: ページタイトルが長いため font-size を縮小して1行表示 */
@media (max-width: 939px) {
  #interest-calendar-hero-title {
    font-size: clamp(14px, 4vw, 20px);
  }
}

/* v-cloak 非表示 */
.triauto-swap-view [v-cloak] {
  display: none !important;
}

/*------------------------------------------------------
  CSS 変数 (app.css の変数を参照)
------------------------------------------------------*/
/*------------------------------------------------------
  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: 1.6rem;
  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;
}
.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: #f0f6ff;
  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 {
    min-height: 4rem;
    padding: .9rem 2rem;
  }
}

/*------------------------------------------------------
  View panel
------------------------------------------------------*/
.triauto-swap-view {
  background: #fff;
  padding: 0;
}
@media (min-width: 940px) {
  .triauto-swap-view {
    padding: 0;
  }
}
#cfd-interest-calendar.triauto-swap-view {
  padding-bottom: 0;
}

/*------------------------------------------------------
  Controls (銘柄セレクト + 月ナビ)
------------------------------------------------------*/
.triauto-market-calendar-select-wrap {
  margin: 0 auto 1.6rem;
  max-width: 840px;
  position: relative;
  width: 100%;
}
.triauto-market-calendar-select-in {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.triauto-market-calendar-select-each {
  align-items: center;
  display: flex;
  gap: 1rem;
}


/* 銘柄セレクト */
.triauto-market-calendar-select-each select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%231e5fad' d='M6 8 0 0h12z'/></svg>") no-repeat right 1.2rem center / 10px 7px;
  border: 1.5px solid #cbd6e4;
  border-radius: 8px;
  color: #0a2463;
  cursor: pointer;
  flex: 1 1 auto;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1rem 3rem 1rem 1.2rem;
  width: 100%;
}
.triauto-market-calendar-select-each select:focus {
  border-color: #1e5fad;
  outline: 2px solid rgba(30, 95, 173, 0.25);
  outline-offset: 0;
}

/*------------------------------------------------------
  月ナビ wrap
------------------------------------------------------*/
.triauto-monthly-month-select {
  width: 100%;
}

/*------------------------------------------------------
  u-visually-hidden
------------------------------------------------------*/
.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-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);
  margin-top: 8px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  padding: 0 0 8px;
  position: absolute;
  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: 1.6rem;
  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;
  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.6rem;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 560px) {
  .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;
  }
}

/*------------------------------------------------------
  Calendar list wrapper
------------------------------------------------------*/
.triauto-market-calendar-list {
  margin: 0 auto;
  max-width: 760px;
  width: 100%;
}

/*------------------------------------------------------
  Spread table (calendar 版)
------------------------------------------------------*/
.triauto-spread-table-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  max-width: 760px;
  width: 100%;
}
.triauto-spread-table-scroll {
  /* カード影は filter: drop-shadow ではなく表側の box-shadow で付ける（下の .triauto-spread-table 参照）。
     filter だと sticky で表から離れた thead を含む描画全体に影が再計算され、
     スクロール中にヘッダー周りが歪んで見える（2026-07-14 修正） */
  /* overflow-x:auto だとこのラッパー自身がスクロールコンテナになり、thead の
     sticky がページではなく表の高さのラッパーに対して張り付いて実質追従しない。
     PC(>=940px)では表(min-width:520px)がコンテナ(max-width:760px)に常に収まり
     横スクロール自体が不要のため visible にする。SP(<=939px)は既存のSPブロックで
     元々 visible。 */
  overflow: visible;
  width: 100%;
}
.triauto-market-calendar-list .triauto-spread-table {
  /* 外枠線は table ではなく tbody セル側に付与（下の「外枠線」ルール参照）。
     table 全体を線で囲むとヘッダー行の周囲にも枠が回り、角丸との間に1pxの隙間が出て歪んで見える */
  border: 0;
  border-collapse: separate;
  border-radius: 6px;
  border-spacing: 0;
  /* カード影。ラッパーの filter: drop-shadow から移設（sticky thead の歪み対策。上の .triauto-spread-table-scroll 参照） */
  box-shadow: 0 4px 7px rgba(235, 243, 252, .48);
  color: var(--text);
  font: var(--ta-type-body);
  letter-spacing: var(--ta-letter-spacing-ja, 1px);
  min-width: 400px;
  /* 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;
}
/* thead */
.triauto-market-calendar-list .triauto-spread-table thead th {
  background: var(--mane-color);
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  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;
}
/* 外枠線: ヘッダー行は線で囲まず、本体(tbody)セルの左右・下辺にのみ付与
   （table の border だと sticky 追従中のヘッダー周りに枠が残って歪んで見えるため） */
.triauto-market-calendar-list .triauto-spread-table tbody th {
  border-left: 1px solid var(--border);
}
.triauto-market-calendar-list .triauto-spread-table tbody td:last-child {
  border-right: 1px solid var(--border);
}
.triauto-market-calendar-list .triauto-spread-table tbody tr:last-child th,
.triauto-market-calendar-list .triauto-spread-table tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}
/* 取引日列 (page-specific) */
.triauto-market-calendar-list .triauto-spread-table .triauto-spread-table__date-head {
  text-align: center;
  width: 160px;
}
/* tbody */
.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 {
  background: #fff;
  text-align: center;
}
/* 土日・休日行 */
.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;
}
/* 追従(sticky)ヘッダーのオフセット: 共通ヘッダー(.header-for-triauto)の実高さ切替
   (769px, /assets/css/app.css) に合わせる。このページ自体のSP/PCコンテンツ切替
   (939/940px)とは基準点が異なるため、ここだけ独立したブレークポイントを使う */
@media (min-width: 769px) {
  .triauto-market-calendar-list .triauto-spread-table thead th {
    /* ヘッダー要素高(100px)ではなく .global-header-reserve の確保領域(112px、2026-07-18に108→112)に
       合わせ、ピル型ナビ(〜106px)との重なりを防ぐ */
    top: 112px;
  }
}
@media (min-width: 940px) {
  .triauto-market-calendar-list .triauto-spread-table {
    min-width: 520px;
  }
  .triauto-market-calendar-list .triauto-spread-table .triauto-spread-table__date-head {
    width: 220px;
  }
  .triauto-market-calendar-list .triauto-spread-table thead th:nth-child(2) {
    width: 159px;
  }
}
/* SP: 表の th は 12px（td は別途 16px。ユーザー指定 2026-07-07。remark 表は 12px 据え置き） */
@media (max-width: 939px) {
  .triauto-market-calendar-list .triauto-spread-table thead th,
  .triauto-market-calendar-list .triauto-spread-table tbody th,
  .cfd-interest-remark-table th,
  .cfd-interest-remark-table td {
    font-size: 12px;
  }
}

/*------------------------------------------------------
  注記 (list-indent)
  margin-bottom は常に 0（末尾要素として使われる場合に .ta-content の
  padding-bottom と二重に加算されるのを防ぐため）。CFDタブでは直後に
  .cfd-interest-remark が続き、その margin-top: 40px（下の定義）が
  この要素の「下の余白」を作っている。
------------------------------------------------------*/
.triauto-swap-view .list-indent {
  box-sizing: border-box;
  color: var(--text);
  font: var(--ta-type-body);
  font-weight: 400; /* 注記はボールド感を無くし通常ウェイトに（--ta-type-body の 500 を上書き。font shorthand の後に置くこと。2026-07-09 ユーザー指定） */
  letter-spacing: var(--ta-letter-spacing-ja, 1px);
  list-style: none;
  margin: 40px auto 0;
  max-width: 760px;
  overflow-wrap: anywhere;
  padding: 0;
  width: 100%;
}
.triauto-swap-view .list-indent li {
  margin: 0;
  padding: 0;
}

/*------------------------------------------------------
  CFD 銘柄別 Lot 単位テーブル (page-specific)
  margin-top: 40px は直前の .list-indent（注記リスト）との間の余白。
  CFDタブの末尾要素のため margin-bottom は 0（下の余白は .ta-content の
  padding-bottom PC80/SP40 側。直後にあった注意カード
  .cfd-interest-security-note は 2026-07-09 に本文ごと削除）。
------------------------------------------------------*/
.cfd-interest-remark {
  margin: 40px auto 0;
  max-width: 760px;
  width: 100%;
}
.cfd-interest-remark-table {
  /* 外枠線は tbody セル側に付与（ヘッダー行は線で囲まない。金利カレンダー表と同じ扱い 2026-07-14。
     下の「外枠線」ルール参照） */
  border: 0;
  border-collapse: separate;
  border-radius: var(--ta-radius-s, 6px); /* 定義書 --ta-radius-s（6px）。他の表と統一（2026-07-07） */
  border-spacing: 0;
  font: var(--ta-type-body);
  overflow: hidden; /* 角丸で四隅をクリップ（sticky不要な静的表のため hidden で可） */
  text-align: center;
  width: 100%;
}
.cfd-interest-remark-table th,
.cfd-interest-remark-table td {
  border: 0;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: .6rem 1.2rem;
}
/* separate 化で二重になる罫線を除去（外周は table 自身の border、内側は right+top のみ） */
.cfd-interest-remark-table th:last-child,
.cfd-interest-remark-table td:last-child {
  border-right: 0;
}
.cfd-interest-remark-table thead tr:first-child th {
  border-top: 0;
}
.cfd-interest-remark-table thead th {
  background: var(--mane-color);
  color: #fff;
  font-weight: 700;
}
/* 外枠線: ヘッダー行は線で囲まず、本体(tbody)セルの左右・下辺にのみ付与 */
.cfd-interest-remark-table tbody td:first-child {
  border-left: 1px solid var(--border);
}
.cfd-interest-remark-table tbody td:last-child {
  border-right: 1px solid var(--border);
}
.cfd-interest-remark-table tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}
.cfd-interest-remark-table tbody td:first-child {
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}
.cfd-interest-remark-table tbody tr:nth-child(even) td {
  background: #f4f8fe;
}
.cfd-interest-remark-table tbody tr:nth-child(even) td:first-child {
  background: #e3eefb;
}

/*------------------------------------------------------
  銘柄ピッカー（画像 + 名称 / 4列グリッド）
------------------------------------------------------*/
.cfd-inst-picker {
  position: relative;
  width: 100%;
}

.cfd-inst-picker__trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  color: #0a2463;
  cursor: pointer;
  display: flex;
  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%;
}

.cfd-inst-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%);
}

.cfd-inst-picker__trigger[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

.cfd-inst-picker__icon {
  border: 1px solid #d0d8e4;
  border-radius: 50%;
  flex: 0 0 40px;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

/* パネル */
.cfd-inst-picker__panel {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(10, 36, 99, .14);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 0;
  margin-top: 8px;
  max-height: calc(5.6rem * 8 + 12px * 2 + 6px * 7);
  max-width: calc(100vw - 32px);
  overflow-y: auto;
  padding: 12px;
  position: absolute;
  width: 100%;
  z-index: 100;
}

/* アイテム */
.cfd-inst-picker__item {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  color: #0a2463;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  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;
}

.cfd-inst-picker__item:hover {
  background: #eef6ff;
  border-color: #3f88dd;
}

.cfd-inst-picker__item.is-active {
  background: #1e5fad;
  border-color: #1e5fad;
  color: #fff;
}

.cfd-inst-picker__item-icon {
  border: 1px solid #d0d8e4;
  border-radius: 50%;
  flex: 0 0 40px;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.cfd-inst-picker__item.is-active .cfd-inst-picker__item-icon {
}

#cfd-interest-calendar .cfd-inst-picker__icon,
#cfd-interest-calendar .cfd-inst-picker__item-icon {
  border: none;
  border-radius: 4px;
}

.cfd-inst-picker__item span {
  display: block;
  flex: 1 1 auto;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* バラエティCFD(ETF)タブの銘柄パネル: SP/PCでボタン内アイコン・文字サイズを調整 */
#etf-interest-calendar .cfd-inst-picker__item-icon {
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
}
#etf-interest-calendar .cfd-inst-picker__item span {
  font-size: 10.5px; /* SP 10.5px / PC 12px（2026-07-07 ユーザー指定） */
}
@media (min-width: 940px) {
  #etf-interest-calendar .cfd-inst-picker__item span {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .cfd-inst-picker__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* cfd-interest-instrument-row は picker が width:100% で埋める */
.cfd-interest-instrument-row {
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  width: 100%;
}

/* ===== Mobile: 横スクロールなし / 縦スクロール対応 ===== */
@media screen and (max-width: 939px) {
  .triauto-spread-table-scroll {
    overflow: visible;
    width: 100%;
  }
  .triauto-market-calendar-list .triauto-spread-table {
    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; /* SPのヘッダー行文言は12px (swap-calendar の SP 指定と統一) */
    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__date-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 {
    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;
  }
  .cfd-interest-remark-table {
    min-width: 0;
    width: 100%;
  }
  .cfd-interest-remark-table th,
  .cfd-interest-remark-table td {
    overflow-wrap: anywhere;
    padding: .4rem .6rem;
    word-break: keep-all;
  }
}
