/*
 * modal.css — 「貸出条件」モーダル用スタイル
 * 元(Headless UI Dialog)の任意Tailwindクラスはコンパイル済みCSSに無いため、値を自前クラスで再現。
 * 色: primary #00584c / ヘッダ緑 #dcf3df / 枠 #686868 / プレミアム青 #436cff,#ced9ff,#f0f3ff / パネル #111 / 背景 #eef7f0
 */

.sl-modal { position: fixed; inset: 0; z-index: 1000; }
.sl-modal[hidden] { display: none; }
body.sl-modal-open { overflow: hidden; }

.sl-modal__overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s ease-in; }
.sl-modal__scroll { position: fixed; inset: 0; overflow-y: auto; }
.sl-modal__center { display: flex; min-height: 100%; align-items: center; justify-content: center; padding: 16px; }

.sl-lt { position: relative; width: 100%; max-width: 1248px; opacity: 0; transition: opacity .2s ease-in; }

/* 開閉アニメーション（元の Headless UI 同様: オーバーレイ=フェード / パネル=フェード＋ズーム）
   .is-open は JS が付与/除去。閉じる時は transition 後に hidden にする（theme.js）。 */
.sl-modal.is-open .sl-modal__overlay { opacity: 1; transition: opacity .3s ease-out; }
.sl-modal.is-open .sl-lt { opacity: 1; transition: opacity .3s ease-out; }
.sl-modal.is-open .sl-lt__panel { transform: scale(1); transition: transform .3s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .sl-modal__overlay, .sl-lt, .sl-lt__panel { transition: none; }
}

/* 見出し + 閉じる */
.sl-lt__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; padding: 0 8px; }
.sl-lt__title { color: #fff; font-weight: 700; font-size: 24px; line-height: 1; padding-top: 10px; margin: 0; }
.sl-lt__close { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; transition: opacity .2s; padding: 0; }
.sl-lt__close:hover { opacity: .8; }
.sl-lt__close-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; }
.sl-lt__close-icon svg { width: 16px; height: 16px; }
.sl-lt__close-label { color: #fff; font-size: 10px; font-weight: 700; }

/* パネル */
.sl-lt__panel { width: 100%; background: #111; border-radius: 24px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); transform: scale(.95); transition: transform .2s ease-in; }
.sl-lt__inner { background: #eef7f0; }
.sl-lt__scrollx { overflow-x: auto; }

/* テーブル */
.sl-lt__table { width: 100%; min-width: 1248px; border-collapse: collapse; border: .5px solid #686868;
  font-family: var(--font-roboto-condensed), "Roboto Condensed", sans-serif; }
.sl-lt__table th, .sl-lt__table td { border: .5px solid #686868; height: 50px; }

.sl-lt__corner { background: #dcf3df; }
.sl-lt__coin { background: #dcf3df; padding: 0; }
.sl-lt__coin-inner { display: flex; align-items: center; justify-content: center; height: 100%; gap: 4px; }
.sl-lt__coin-inner img { width: 21px; height: 21px; }
.sl-lt__coin-name { color: #00584c; font-size: 14px; font-weight: 500; line-height: 1; }

.sl-lt__rowlabel { background: #dcf3df; color: #00584c; font-size: 12px; font-weight: 700; text-align: center; vertical-align: middle; }
.sl-lt__sublabel { background: #dcf3df; color: #00584c; font-size: 10px; font-weight: 700; text-align: center; vertical-align: middle; min-width: 73px; max-width: 73px; }
.sl-lt__sublabel--premium { background: #ced9ff; color: #436cff; line-height: 1.2; }

.sl-lt__cell { background: #fff; color: #00584c; text-align: center; vertical-align: middle; }
.sl-lt__small { font-size: 12px; font-weight: 500; line-height: 1.4; }
.sl-lt__nowrap { white-space: nowrap; padding: 0 4px; }
.sl-lt__rate { font-size: 21px; font-weight: 500; line-height: 1.4; }
.sl-lt__rate--premium { background: #f0f3ff; }
.sl-lt__approx { display: block; font-size: 9px; font-weight: 400; line-height: 1; margin-top: 2px; }
.sl-lt__merge { font-size: 14px; font-weight: 700; padding: 0 16px; }
.sl-lt__merge-note { font-size: 10px; font-weight: 400; margin-left: 4px; }

/* 注記 */
.sl-lt__note { color: #fff; font-size: 12px; font-weight: 700; margin: 24px 0 0; position: fixed; bottom: 24px; left: 24px; }

@media (min-width: 768px) {
  .sl-modal__center { padding: 24px; }
  .sl-lt__head { margin-bottom: 20px; }
  .sl-lt__title { font-size: 41px; }
  .sl-lt__close-icon { width: 48px; height: 48px; }
  .sl-lt__close-icon svg { width: 28px; height: 28px; }
  .sl-lt__close-label { font-size: 12px; }
  .sl-lt__rowlabel { font-size: 14px; }
  .sl-lt__sublabel { font-size: 11px; }
  .sl-lt__approx { font-size: 10px; }
  .sl-lt__merge { font-size: 16px; }
  .sl-lt__merge-note { font-size: 12px; }
  .sl-lt__note { color: rgba(255, 255, 255, .8); font-size: 14px; position: static; }
}
