@charset "UTF-8";
/* 提供割合（オリパのページの開閉メニュー）と、引く前の確認ポップアップの見た目
   大阪3サイト共通（ガチャるん・トレジャーポケット・ガチャぽち）。
   ★ガチャタンクは gacha-tank.css に独自の見た目がある。こちらは大阪用。
   ★白地を基本に、強調色は各サイトの --main-color を使う（サイトごとの色に自然になじむように）。
   HTML は App\Lottery\Lotteries\RateTable と components/draw_confirm.blade.php が出す。
   2026-10-27 提供割合・確認ポップアップの本番反映時に追加 */

/* =========================================================
   提供割合
   ========================================================= */
.gt-rate { max-width: 560px; margin-left: auto; margin-right: auto; }
.gt-rate__box { background: #fff; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.gt-rate summary { list-style: none; cursor: pointer; }
.gt-rate summary::-webkit-details-marker { display: none; }
.gt-rate__toggle { position: relative; padding: 14px 44px 14px 16px; font-weight: 700; font-size: 15px; color: #222; }
.gt-rate__toggle::after,
.gt-rate__chev::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--main-color, #333); border-bottom: 2px solid var(--main-color, #333);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.gt-rate__box[open] > .gt-rate__toggle::after { transform: translateY(-30%) rotate(-135deg); }
.gt-rate__body { padding: 0 12px 14px; }
.gt-rate__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px; margin-bottom: 12px; border-radius: 8px; background: #f2f3f5;
  font-size: 13px; font-weight: 700; color: #222;
}
.gt-rate__total strong { font-size: 22px; color: #222; }
.gt-rate__total small { font-size: 13px; margin-left: 2px; }
.gt-rate__table { border: 1px solid #e3e5e8; border-radius: 8px; overflow: hidden; }
.gt-rate__row {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) 40px 98px 14px; align-items: center; gap: 4px;
  padding: 12px 8px; border-top: 1px solid #eceef1; color: #222; background: #fff;
}
.gt-rate__table > .gt-rate__row:first-child { border-top: 0; }
.gt-rate__row--head { background: #f2f3f5; font-size: 11px; line-height: 1.3; font-weight: 700; color: #555; padding-top: 9px; padding-bottom: 9px; }
.gt-rate__row--head span:nth-child(2) { text-align: right; }
.gt-rate__row--head span:nth-child(3) { text-align: center; }
.gt-rate__name { font-weight: 700; font-size: 15px; }
.gt-rate__num { text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.gt-rate__pct { text-align: right; font-weight: 700; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gt-rate__pct small { font-size: 9px; margin-left: 2px; color: #777; }
.gt-rate__chev { position: relative; height: 12px; }
.gt-rate__chev::after { right: 2px; }
.gt-rate__group[open] .gt-rate__chev::after { transform: translateY(-30%) rotate(-135deg); }
.gt-rate__group > summary:hover { background: #fafafa; }
.gt-rate__items { background: #f7f8fa; }
.gt-rate__row--item { padding-top: 8px; padding-bottom: 8px; background: transparent; }
.gt-rate__row--item .gt-rate__num,
.gt-rate__row--item .gt-rate__pct { font-weight: 500; }
.gt-rate__item { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; line-height: 1.35; }
.gt-rate__item img { width: 30px; height: 42px; object-fit: cover; border-radius: 3px; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.gt-rate__item span { overflow-wrap: anywhere; }
.gt-rate__notes { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; line-height: 1.6; color: #666; }
.gt-rate__notes li { position: relative; padding-left: 1.6em; margin-top: 4px; }
.gt-rate__notes li::before { content: "※"; position: absolute; left: 0; }
@media (min-width: 576px) {
  .gt-rate__row { grid-template-columns: minmax(0,1fr) 74px 120px 22px; gap: 6px; padding-left: 10px; padding-right: 10px; }
  .gt-rate__row--head { font-size: 12px; }
  .gt-rate__pct { font-size: 12px; }
  .gt-rate__item { gap: 8px; font-size: 12px; }
  .gt-rate__item img { width: 38px; height: 54px; }
}

/* =========================================================
   引く前の確認ポップアップ
   ========================================================= */
.gt-draw-confirm[hidden] { display: none !important; }
.gt-draw-confirm { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gt-draw-confirm__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.gt-draw-confirm__dialog {
  position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 24px 18px 18px; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  color: #222; text-align: center;
}
.gt-draw-confirm__heading { margin: 0 0 16px; font-size: 16px; font-weight: 700; line-height: 1.6; white-space: pre-line; }
.gt-draw-confirm__cost { margin: 0 0 14px; padding: 14px; border-radius: 10px; background: #f2f3f5; font-size: 20px; font-weight: 700; color: #222; }
.gt-draw-confirm__notice { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid #e3e5e8; background: #fff; font-size: 12px; line-height: 1.6; }
.gt-draw-confirm__notice-title { margin: 0 0 6px; font-weight: 700; font-size: 13px; color: #d33; }
.gt-draw-confirm__notice ul { list-style: none; margin: 0; padding: 0; }
.gt-draw-confirm__notice li { position: relative; padding-left: 1em; margin-top: 2px; }
.gt-draw-confirm__notice li::before { content: "・"; position: absolute; left: 0; }
.gt-draw-confirm__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; }
.gt-draw-confirm__links a { color: #d33; font-weight: 700; text-decoration: underline; }
.gt-draw-confirm__links a span { margin-left: 4px; text-decoration: none; display: inline-block; }
.gt-draw-confirm__buttons { display: flex; gap: 10px; margin-top: 18px; }
.gt-draw-confirm__buttons button { flex: 1; padding: 12px 8px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; }
.gt-draw-confirm__cancel { background: #e6e7ea; color: #555; }
.gt-draw-confirm__ok { background: var(--main-color, #333); color: #fff; }
body.gt-draw-confirm-open { overflow: hidden; }

/* =========================================================
   賞構成（S賞・A賞…の見出しとカードの一覧）2026-10-27
   HTML は App\Lottery\Html\ItemListByRarityHtml。カードは各サイトの商品一覧と同じ部品（.item-card）。
   ★大阪の各サイトは、管理画面の独自CSSで .item-card を「横長＋右に『購入する』」の形にしている（ショップ一覧用）。
     賞構成の中（.gt-prize-list）だけ、それを打ち消してトレカの縦長カードを並べる。
   ========================================================= */
.gt-prize-list .rarity-label { text-align: center; margin: 28px 0 12px !important; }
.gt-prize-list .rarity-label:first-child { margin-top: 8px !important; }
.gt-prize-list .rarity-label img { width: 260px; max-width: 78%; height: auto; }
/* 見出し画像が無いサイトは文字で出る（.title4）。サイトのメインカラーの帯にする（見出し用の横線は消す） */
.gt-prize-list .rarity-label.title4 {
  display: table; margin-left: auto !important; margin-right: auto !important;
  min-width: 140px; padding: 6px 28px; border-radius: 999px;
  background: var(--main-color, #333); color: #fff !important; font-size: 18px; font-weight: 700; line-height: 1.4;
}
.gt-prize-list .rarity-label.title4::after,
.gt-prize-list .rarity-label.title4::before { display: none !important; content: none !important; }

/* 並び：スマホ2列、タブレット3列、PC4列 */
.gt-prize-list .item-list > [class*="col-"] { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
@media (min-width: 768px) { .gt-prize-list .item-list > [class*="col-"] { flex: 0 0 33.333% !important; max-width: 33.333% !important; width: 33.333% !important; } }
@media (min-width: 1200px) { .gt-prize-list .item-list > [class*="col-"] { flex: 0 0 25% !important; max-width: 25% !important; width: 25% !important; } }

/* カード：横長をやめて縦に（絵 → 名前）。サイトの独自CSS（.item-card:not(.oripa-c):not(:has(input)) …）より強くするため .item-list も付ける */
.gt-prize-list .item-list .item-card {
  display: block !important; flex-direction: column !important; height: auto !important;
  padding: 8px !important; margin-bottom: 12px !important; gap: 0 !important;
}
.gt-prize-list .item-list .item-card .anchor-wrap { display: block !important; flex: none !important; }
.gt-prize-list .item-list .item-card .item-card-img {
  position: relative !important; display: block !important; width: 100% !important; height: auto !important;
  aspect-ratio: 421 / 588; padding-bottom: 0 !important; border-radius: 6px; overflow: hidden; background: transparent !important;
}
.gt-prize-list .item-list .item-card .item-card-img img {
  position: static !important; transform: none !important; display: block;
  width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important;
}
.gt-prize-list .item-list .item-card .item-main { display: block !important; padding: 6px 2px 0 !important; margin: 0 !important; }
.gt-prize-list .item-list .item-card .item-main::before,
.gt-prize-list .item-list .item-card .item-main::after,
.gt-prize-list .item-list .item-card .item-main a::after { display: none !important; content: none !important; }
.gt-prize-list .item-list .item-card .item-title {
  font-size: 13px !important; line-height: 1.45 !important; text-align: center;
  white-space: normal !important; overflow-wrap: anywhere; margin: 4px 0 0 !important;
}

/* =========================================================
   全オリパ共通の注意事項（オリパのページの一番下）2026-10-27
   HTML は components/lottery_caution.blade.php（大阪用）
   ========================================================= */
.gt-caution { max-width: 860px; margin: 24px auto 0; padding: 20px 18px; text-align: left; font-size: 13px; line-height: 1.7; background: #fff; border: 1px solid #e3e5e8; border-radius: 8px; }
.gt-caution__title { text-align: center; font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.gt-caution__list { margin: 0; }
.gt-caution__list dt { font-weight: 700; margin-top: 10px; }
.gt-caution__list dd { margin: 2px 0 0 1em; }

/* =========================================================
   オリパの価格（「1,000P /1回」）が2行に割れるのを直す 2026-10-27（画面下のバー・トップページなどのカード）
   ★価格の箱は元のCSS（project-oripa_style.css）で幅120px固定。ガチャるんは管理画面の独自CSSで
     価格の後ろに「/1回」を足しているため、入りきらずに「/1」と「回」が割れていた。幅を中身に合わせて折り返さない。
   ========================================================= */
/* 画面下のバー */
.footer-sticky .oripa-c .oripa-card-price { width: auto !important; min-width: 120px; white-space: nowrap; }
/* トップページなどのオリパのカードの中（価格の箱は幅50%に決められている） */
.oripa-c .card-footer .oripa-card-price { width: auto !important; white-space: nowrap; flex-wrap: nowrap !important; }
.oripa-c .oripa-card-price::after { white-space: nowrap; }
