
/* デフォルトでは黒背景 */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #1a1a1a;  /* ← 黒背景 */
    color: #fff;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* home.html のみ表示される背景画像レイヤー */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("/static/images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.7) !important; /* ← 重要ポイント */
    padding: 3rem 1rem;
    border-radius: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-padding {
  padding-top: 4rem;
  padding-bottom: 12rem;
}

/* ナビゲーションバー */
.navbar {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 0.8rem 1.5rem;
    box-shadow: 0 0 10px #000;
}

.navbar a {
    color: #ffcc00;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffffff;
}

.navbar-nav,
.navbar-nav ul {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
    list-style: none;
}

.navbar-nav .nav-link {
    color: #ffcc00 !important;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffcc00' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@font-face {
    font-family: 'AquA';
    src: url('/static/fonts/aqua.ttf') format('truetype');
}

.aqua-font {
    font-family: 'AquA', sans-serif;
    color: #3fa9f5 !important;  /* ロゴに近い爽やかな水色 */
}

.aqua-font-only {
    font-family: 'AquA', sans-serif;
}

.rounded-font {
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.montserrat-font {
  font-family: 'Montserrat', sans-serif !important;
}

.crimson-text-font {
  font-family: 'Crimson Text', sans-serif !important;
}

.dancing-script-font {
  font-family: 'Dancing Script', sans-serif !important;
}


.pacifico-font {
  font-family: 'Pacifico', sans-serif !important;
}

.gray-text {
  color: #888888 !important;
}

.white-glow1 {
  color: #ffcc00 !important;
  text-shadow: 0 0 2px #ffcc00, 0 0 4px #ffcc00;
}

.white-glow2 {
  color: #cccccc !important;
  text-shadow: 0 0 6px #999999, 0 0 10px #999999;
}

/* コンテナ */
.container {
    max-width: 800px;
    width: 96%;
    margin: 6rem auto;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

/* タイトル系 */
h1, h2, .text-gold {
    color: #ffcc00 !important;
    font-weight: 600;
    text-shadow: 2px 2px 5px #000;
}

.text-brown {
    color: #FFA500;
    font-weight: 600;
    text-shadow: 1px 1px 4px #000;
}

.shadow-deep-blue {
    text-shadow: 2px 2px 4px #000080;
}

/* ボタン共通 */
button, .btn {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    border: none;
}

/* ゴールドボタン */
.btn-gold, .btn-warning {
    background-color: #ffcc00;
    color: #1a1a1a;
}
.btn-gold:hover, .btn-warning:hover {
    background-color: #ffcc00;
}

/* グリーン（入店） */
.btn-enter {
    background-color: #28a745;
    color: #fff;
}
.btn-enter:hover {
    background-color: #218838;
}

/* レッド（退店） */
.btn-exit {
    background-color: #dc3545;
    color: #fff;
}
.btn-exit:hover {
    background-color: #c82333;
}

/* coming soon 用ページだけに適用 */
body.coming-soon-page {
    background-image: url('/static/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0d0d0d;
}

/* 中央のメッセージボックス */
.overlay {
    background-color: rgba(0, 0, 0, 0.75);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
}

/* ロゴ画像サイズ */
.logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
}

/* ジョーカーアイコン */
.coming-soon-icon {
    font-size: 3.5rem;
    color: #39f;
    margin-bottom: 1rem;
}

/* 入力フォーム */
input, select, textarea {
    width: 100%;
    padding: 0.9rem;
    margin: 0.6rem 0;
    border-radius: 0.4rem;
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #555;
}

.hero-section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-text-container {
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
  padding: 3rem 1rem;
  border-radius: 1rem;
  display: inline-block;
  margin: auto;
}

.hero-overlay-transparent {
    background-color: rgba(0, 0, 0, 0.4); /* 背景黒で40%の透過 */
    padding: 3rem 1rem;
    border-radius: 1rem;
    backdrop-filter: none; /* 背景のぼかしなしでくっきり見せたい場合 */
}

input:focus, textarea:focus {
    border-color: #ffcc00;
    outline: none;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem;
    border: 1px solid #444;
}

th {
    background-color: #111;
    color: #ffcc00;
}

td {
    background-color: #2c2c2c;
}

/* フラッシュメッセージ */
.alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.alert-success { background-color: #28a745; color: #fff; }
.alert-danger  { background-color: #dc3545; color: #fff; }
.alert-warning { background-color: #ffc107; color: #1a1a1a; }

/* ルールセクション余白調整 */
.rule-section {
    padding-left: 1rem;
    padding-right: 1rem;
}


.site-footer {
    color: #aaa;
    font-size: 0.85rem;
    background-color: transparent;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .rule-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* スマホ対応 */

@media (max-width: 768px){
    .container {
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 95%;
        box-sizing: border-box;
    }

    .navbar .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .nav-link {
        font-size: 0.9rem;
        margin-right: 0.8rem;
    }

    .card {
        width: 100%;
        box-sizing: border-box;
    }

    .card-img-top {
        width: 100%;
        object-fit: cover;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.6rem;
    }

    .rule-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1, h2, h3, p, ul, ol {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* リストマーカー表示修正 */
ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 0;
    margin-left: 1.5rem;
}

ol {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 0;
    margin-left: 1.5rem;
}

.calendar-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.calendar-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
}

.calendar-page-subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 28px;
}

.reservation-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.calendar-card,
.calendar-card:link,
.calendar-card:visited,
.calendar-card:hover,
.calendar-card:active {
    display: block;
    text-decoration: none !important;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 18px;
    color: #ffffff !important;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.calendar-card:hover {
    transform: translateY(-2px);
    border-color: #c9a227;
    color: #ffffff !important;
}

.calendar-card * {
    color: inherit !important;
    text-decoration: none !important;
}

.calendar-date {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffcc00 !important;
}

.calendar-weekday {
    font-size: 0.95rem;
    color: #ffffff !important;
    margin-bottom: 10px;
    font-weight: 600;
}

.calendar-count {
    font-size: 0.95rem;
    color: #d8d8d8;
    margin-bottom: 12px;
}

.calendar-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f5c542;
}

.calendar-weekday-sat {
    color: #4da3ff !important;
}

.calendar-weekday-sun {
    color: #ff5a5a !important;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.event-card-link,
.event-card-link:link,
.event-card-link:visited,
.event-card-link:hover,
.event-card-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

.event-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid #c9a227;
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    min-height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    border-color: #ffcc00;
    box-shadow: 0 6px 18px rgba(255, 204, 0, 0.15);
}

.event-card-type {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffcc00;
    margin-bottom: 8px;
}

.event-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.4;
}

.event-card-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.event-card-row:last-of-type {
    border-bottom: none;
}

.event-card-row span:first-child {
    color: #b0b0b0;
    flex: 0 0 auto;
}

.event-card-row span:last-child {
    color: #ffffff;
    text-align: right;
    font-weight: 600;
}

.event-card-action {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffcc00;
    text-align: right;
}

/* 終了済みイベント */
.event-card-finished {
    border: 1px solid #b02a37;
    box-shadow: 0 4px 12px rgba(176, 42, 55, 0.18);
}

.event-card-finished:hover {
    border-color: #dc3545;
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.2);
}

.event-card-type-finished {
    color: #ff6b6b;
}

.event-card-finished .event-card-action {
    color: #ff8a8a;
}

/* 管理画面のイベント一覧 */
.admin-event-list {
    display: grid;
    gap: 16px;
}

.admin-event-card {
    max-width: 100%;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.admin-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.admin-event-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-event-item-wide {
    grid-column: 1 / -1;
}

.admin-event-label {
    font-size: 0.82rem;
    color: #b0b0b0;
}

.admin-event-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}

.admin-event-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.admin-event-actions form {
    margin: 0;
}

.admin-event-actions .btn {
    width: 100%;
    white-space: nowrap;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .event-card-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 576px) {
    .event-card-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .event-card-row span:first-child {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .event-card-row span:last-child {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
        white-space: nowrap;
        font-size: 0.84rem;
    }

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

    .admin-event-actions {
        grid-template-columns: 1fr;
    }
}

.calendar-date {
    color: #ffcc00;
}

.calendar-weekday-sat {
    color: #4da3ff !important;
}

.calendar-weekday-sun {
    color: #ff6b6b !important;
}

    

@media (max-width: 768px) {
    .event-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .reservation-calendar-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.reservation-form-card {
    max-width: 720px;
    margin: 0 auto;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.static-visit-type {
    color: #fff;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 12px 14px;
}

.reservation-list {
    display: grid;
    gap: 16px;
}

.reservation-item-card,
.reservation-empty-card {
    max-width: 720px;
    margin: 0 auto;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.reservation-item-card-sunday-lunch {
    background: #5a1f2b;
    border-color: #7a3140;
    color: #fff;
}

.reservation-item-card-sunday-lunch .reservation-label,
.reservation-item-card-sunday-lunch .reservation-value {
    color: #fff;
}

.reservation-item-card-sunday-lunch .reservation-item-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.reservation-item-card-request {
    background: #d9d9d9;
    color: #111;
    border-color: #b5b5b5;
}

.reservation-item-card-request .reservation-label {
    color: #555;
}

.reservation-item-card-request .reservation-value {
    color: #111;
}

.reservation-item-card-request .reservation-item-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.reservation-item-card-request .btn-outline-danger {
    color: #b02a37;
    border-color: #b02a37;
}

.reservation-item-card-request .btn-outline-danger:hover {
    color: #fff;
}

.reservation-item-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reservation-item-row:last-of-type {
    border-bottom: none;
}

.reservation-label {
    color: #b0b0b0;
    min-width: 90px;
}

.reservation-value {
    text-align: right;
    font-weight: 600;
}

.reservation-item-row-top {
    align-items: center;
}

.reservation-value-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-toggle-form {
    margin: 0;
}

.reservation-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reservation-compact-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.reservation-member-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reservation-member-number {
    display: inline-block;
    min-width: 58px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    text-align: center;
}

.reservation-member-name {
    font-size: 1rem;
    font-weight: 700;
}

.reservation-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reservation-compact-body {
    display: grid;
    gap: 8px;
}

.reservation-compact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reservation-compact-row:last-child {
    border-bottom: none;
}

.timeline-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.timeline-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.timeline-table th,
.timeline-table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    vertical-align: middle;
    padding: 6px;
    font-size: 0.82rem;
}

.timeline-table th {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
}

.timeline-time-col {
    width: 84px;
    min-width: 84px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
}

.timeline-cell {
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-cell-normal.timeline-cell-start,
.timeline-cell-normal.timeline-cell-continue {
    background: rgba(40, 167, 69, 0.38);
}

.timeline-cell-request.timeline-cell-start,
.timeline-cell-request.timeline-cell-continue {
    background: rgba(180, 180, 180, 0.55);
    color: #111;
}

.timeline-label {
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .reservation-grid-compact {
        grid-template-columns: 1fr;
    }

    .reservation-compact-row {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 576px) {
    .reservation-item-row {
        flex-direction: column;
        gap: 4px;
    }

    .reservation-value {
        text-align: left;
    }
}

.reservation-item-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.reservation-item-row-top .reservation-label {
    flex: 0 0 auto;
    min-width: auto;
}

.reservation-item-row-top .reservation-value-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 1 1 auto;
}

.reservation-item-row-top .inline-toggle-form {
    margin: 0;
    flex: 0 0 auto;
}

.reservation-item-row-top .btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .reservation-item-row-top {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
    }

    .reservation-item-row-top .reservation-value {
        text-align: right;
    }
}

/* =========================
   Tournament Timer
========================= */

.timer-page-container {
    max-width: 1400px !important;
}

.tournament-timer-wrap {
    max-width: 1320px;
    margin: 0 auto;
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 20px;
}

.timer-title {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    color: #fff;
}

.timer-header-right {
    min-width: 260px;
    background: #111;
    border: 1px solid #444;
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
}

.timer-now-label {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.timer-now-time {
    font-size: 2rem;
    font-weight: 700;
    color: #ffcc00;
    letter-spacing: 0.04em;
}

.timer-main-card,
.timer-controls-card,
.timer-schedule-card,
.timer-editor-card {
    background: linear-gradient(135deg, #1b1b1b, #101010);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.timer-status-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.timer-status-box,
.timer-blind-box,
.timer-player-stat-box {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.timer-status-label,
.timer-blind-label,
.timer-player-stat-label {
    font-size: 1rem;
    color: #a8a8a8;
    margin-bottom: 10px;
}

.timer-status-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
}

.timer-status-box-main {
    border-color: #c9a227;
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.08);
}

.timer-remaining {
    font-size: 4.8rem;
    line-height: 1;
    font-weight: 800;
    color: #ffcc00;
    letter-spacing: 0.04em;
}

.timer-blind-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.timer-blind-value,
.timer-next-value {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
}

.timer-player-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.timer-player-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffcc00;
    line-height: 1.2;
}

.timer-info-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.timer-info-row-below-stats {
    margin-top: 14px;
    margin-bottom: 0;
}

.timer-info-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid #444;
    background: #121212;
    color: #ffcc00;
    font-weight: 700;
    font-size: 1.1rem;
}

.timer-info-pill.closed {
    color: #ff6b6b;
    border-color: #8a2b2b;
}

.timer-controls-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.timer-controls-grid-single-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timer-btn {
    min-height: 64px;
    height: 64px;
    font-size: 1.05rem;
    border-radius: 14px;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.timer-btn:hover,
.timer-btn:focus {
    background: #111 !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: translateY(-1px);
}

.timer-btn:active {
    transform: translateY(0);
}

.timer-btn-dark {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #ffffff !important;
}

.timer-btn-dark:hover,
.timer-btn-dark:focus {
    background: #1d1d1d !important;
    color: #fff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
}

.timer-btn-start {
    background: #000 !important;
    color: #ff4d4f !important;
    border: 1px solid #ff4d4f !important;
}

.timer-btn-start:hover,
.timer-btn-start:focus {
    background: #111 !important;
    color: #ff6b6b !important;
    border-color: #ff6b6b !important;
    box-shadow: none !important;
}

.timer-btn-paused {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

.timer-btn-paused:hover,
.timer-btn-paused:focus {
    background: #111 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
}

/* 初期スタック + Entry/Bust/Reset */
.timer-live-control-row {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.timer-live-stack-box {
    min-width: 0;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timer-stack-input-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    height: 64px;
    padding: 0 16px;
    border-radius: 14px;
    background: #000;
    border: 1px solid #fff;
    box-sizing: border-box;
}

.timer-stack-input {
    width: 100%;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    appearance: textfield;
    -moz-appearance: textfield;
}

.timer-stack-input::-webkit-outer-spin-button,
.timer-stack-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.timer-stack-input-unit {
    margin-left: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.timer-live-player-buttons {
    display: contents;
}

.timer-live-player-buttons .timer-btn {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    height: 64px;
    padding: 0 16px;
    font-size: 1.05rem;
    white-space: nowrap;
    box-sizing: border-box;
}

.timer-section-title {
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: #fff;
}

.timer-table-wrap,
.timer-edit-table-wrap {
    overflow-x: auto;
}

.timer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    min-width: 760px;
}

.timer-table th,
.timer-table td {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 1rem;
}

.timer-table th {
    background: #111;
    color: #ffcc00;
}

.timer-table td {
    background: #1f1f1f;
    color: #fff;
}

.timer-table-current td {
    background: rgba(255, 204, 0, 0.12);
    color: #ffcc00;
    font-weight: 700;
}

.timer-editor-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.timer-editor-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timer-editor-field-wide {
    min-width: 0;
}

.timer-editor-label {
    color: #b0b0b0;
    font-size: 0.95rem;
    font-weight: 600;
}

.timer-editor-input,
.timer-edit-input,
.timer-edit-select {
    background: #0f0f0f !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.timer-editor-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.timer-edit-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
}

.timer-edit-table th,
.timer-edit-table td {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    background: #161616;
    color: #fff;
    vertical-align: middle;
}

.timer-edit-table th {
    background: #111;
    color: #ffcc00;
}

.timer-row-actions-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.timer-row-actions-inline .btn {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    border-radius: 8px;
}

.timer-row-delete {
    color: #ff6b6b !important;
    border: 1px solid #ff6b6b !important;
    background: transparent !important;
}

.timer-row-delete:hover {
    color: #ffffff !important;
    background: #ff6b6b !important;
}

.timer-edit-table th:last-child,
.timer-edit-table td:last-child {
    width: 190px;
    min-width: 190px;
    text-align: center;
}

/* =========================
   Fullscreen
========================= */

#timerPresentationArea:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none !important;
    margin: 0;
    padding: 16px 20px;
    background: #050505 !important;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
}

#timerPresentationArea:fullscreen .timer-header {
    margin-bottom: 16px;
    gap: 14px;
}

#timerPresentationArea:fullscreen .timer-main-card {
    margin-bottom: 14px;
    padding: 18px;
    flex: 1 1 auto;
}

#timerPresentationArea:fullscreen .timer-controls-card {
    margin-bottom: 0;
    padding: 14px 16px;
    flex: 0 0 auto;
}

#timerPresentationArea:fullscreen .timer-title {
    font-size: 3rem;
}

#timerPresentationArea:fullscreen .timer-now-time {
    font-size: 2.4rem;
}

#timerPresentationArea:fullscreen .timer-status-row {
    gap: 14px;
    margin-bottom: 16px;
}

#timerPresentationArea:fullscreen .timer-status-box,
#timerPresentationArea:fullscreen .timer-blind-box,
#timerPresentationArea:fullscreen .timer-player-stat-box {
    padding: 16px;
}

#timerPresentationArea:fullscreen .timer-status-label,
#timerPresentationArea:fullscreen .timer-blind-label,
#timerPresentationArea:fullscreen .timer-player-stat-label {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

#timerPresentationArea:fullscreen .timer-status-value {
    font-size: 2.6rem;
}

#timerPresentationArea:fullscreen .timer-remaining {
    font-size: 6.4rem;
    line-height: 1;
}

#timerPresentationArea:fullscreen .timer-blind-row {
    gap: 14px;
    margin-bottom: 16px;
}

#timerPresentationArea:fullscreen .timer-blind-value,
#timerPresentationArea:fullscreen .timer-next-value {
    font-size: 3.5rem;
    line-height: 1.05;
}

#timerPresentationArea:fullscreen .timer-player-stats-row {
    gap: 14px;
    margin-bottom: 0;
}

#timerPresentationArea:fullscreen .timer-player-stat-value {
    font-size: 2.4rem;
}

#timerPresentationArea:fullscreen .timer-player-stat-label {
    font-size: 1.05rem;
}

#timerPresentationArea:fullscreen .timer-info-row {
    gap: 10px;
}

#timerPresentationArea:fullscreen .timer-info-row-below-stats {
    margin-top: 12px;
    margin-bottom: 0;
}

#timerPresentationArea:fullscreen .timer-info-pill {
    min-height: 54px;
    font-size: 1.12rem;
    padding: 10px 18px;
}

#timerPresentationArea:fullscreen .timer-btn {
    min-height: 54px;
    height: 54px;
    font-size: 0.96rem;
}

#timerPresentationArea:fullscreen .timer-controls-grid {
    gap: 10px;
    margin-bottom: 10px;
}

#timerPresentationArea:fullscreen .timer-controls-grid-single-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

#timerPresentationArea:fullscreen .timer-live-control-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

#timerPresentationArea:fullscreen .timer-live-stack-box {
    gap: 6px;
}

#timerPresentationArea:fullscreen .timer-stack-input-wrap {
    min-height: 54px;
    height: 54px;
    padding: 0 14px;
}

#timerPresentationArea:fullscreen .timer-stack-input {
    font-size: 1rem;
}

#timerPresentationArea:fullscreen .timer-stack-input-unit {
    font-size: 0.92rem;
}

#timerPresentationArea:fullscreen .timer-live-player-buttons .timer-btn {
    min-height: 54px;
    height: 54px;
    font-size: 0.96rem;
}

/* Safari */
#timerPresentationArea:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none !important;
    margin: 0;
    padding: 16px 20px;
    background: #050505 !important;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
}

#timerPresentationArea:-webkit-full-screen .timer-header {
    margin-bottom: 16px;
    gap: 14px;
}

#timerPresentationArea:-webkit-full-screen .timer-main-card {
    margin-bottom: 14px;
    padding: 18px;
    flex: 1 1 auto;
}

#timerPresentationArea:-webkit-full-screen .timer-controls-card {
    margin-bottom: 0;
    padding: 14px 16px;
    flex: 0 0 auto;
}

#timerPresentationArea:-webkit-full-screen .timer-title {
    font-size: 3rem;
}

#timerPresentationArea:-webkit-full-screen .timer-now-time {
    font-size: 2.4rem;
}

#timerPresentationArea:-webkit-full-screen .timer-status-row {
    gap: 14px;
    margin-bottom: 16px;
}

#timerPresentationArea:-webkit-full-screen .timer-status-box,
#timerPresentationArea:-webkit-full-screen .timer-blind-box,
#timerPresentationArea:-webkit-full-screen .timer-player-stat-box {
    padding: 16px;
}

#timerPresentationArea:-webkit-full-screen .timer-status-label,
#timerPresentationArea:-webkit-full-screen .timer-blind-label,
#timerPresentationArea:-webkit-full-screen .timer-player-stat-label {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

#timerPresentationArea:-webkit-full-screen .timer-status-value {
    font-size: 2.6rem;
}

#timerPresentationArea:-webkit-full-screen .timer-remaining {
    font-size: 6.4rem;
    line-height: 1;
}

#timerPresentationArea:-webkit-full-screen .timer-blind-row {
    gap: 14px;
    margin-bottom: 16px;
}

#timerPresentationArea:-webkit-full-screen .timer-blind-value,
#timerPresentationArea:-webkit-full-screen .timer-next-value {
    font-size: 3.5rem;
    line-height: 1.05;
}

#timerPresentationArea:-webkit-full-screen .timer-player-stats-row {
    gap: 14px;
    margin-bottom: 0;
}

#timerPresentationArea:-webkit-full-screen .timer-player-stat-value {
    font-size: 2.4rem;
}

#timerPresentationArea:-webkit-full-screen .timer-player-stat-label {
    font-size: 1.05rem;
}

#timerPresentationArea:-webkit-full-screen .timer-info-row {
    gap: 10px;
}

#timerPresentationArea:-webkit-full-screen .timer-info-row-below-stats {
    margin-top: 12px;
    margin-bottom: 0;
}

#timerPresentationArea:-webkit-full-screen .timer-info-pill {
    min-height: 54px;
    font-size: 1.12rem;
    padding: 10px 18px;
}

#timerPresentationArea:-webkit-full-screen .timer-btn {
    min-height: 54px;
    height: 54px;
    font-size: 0.96rem;
}

#timerPresentationArea:-webkit-full-screen .timer-controls-grid {
    gap: 10px;
    margin-bottom: 10px;
}

#timerPresentationArea:-webkit-full-screen .timer-controls-grid-single-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

#timerPresentationArea:-webkit-full-screen .timer-live-control-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

#timerPresentationArea:-webkit-full-screen .timer-live-stack-box {
    gap: 6px;
}

#timerPresentationArea:-webkit-full-screen .timer-stack-input-wrap {
    min-height: 54px;
    height: 54px;
    padding: 0 14px;
}

#timerPresentationArea:-webkit-full-screen .timer-stack-input {
    font-size: 1rem;
}

#timerPresentationArea:-webkit-full-screen .timer-stack-input-unit {
    font-size: 0.92rem;
}

#timerPresentationArea:-webkit-full-screen .timer-live-player-buttons .timer-btn {
    min-height: 54px;
    height: 54px;
    font-size: 0.96rem;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1180px) {
    .timer-remaining {
        font-size: 4rem;
    }

    .timer-blind-value,
    .timer-next-value {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .timer-status-row {
        grid-template-columns: 1fr;
    }

    .timer-blind-row {
        grid-template-columns: 1fr;
    }

    .timer-player-stats-row {
        grid-template-columns: 1fr;
    }

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

    .timer-controls-grid-single-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timer-header {
        flex-direction: column;
    }

    .timer-header-right {
        min-width: auto;
    }

    .timer-editor-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .timer-controls-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timer-controls-grid-single-row {
        grid-template-columns: 1fr 1fr;
    }

    .timer-btn {
        min-height: 56px;
        height: 56px;
        font-size: 0.95rem;
    }

    .timer-remaining {
        font-size: 3.2rem;
    }

    .timer-status-value {
        font-size: 1.7rem;
    }

    .timer-blind-value,
    .timer-next-value {
        font-size: 1.8rem;
    }

    .timer-player-stat-value {
        font-size: 1.6rem;
    }

    .timer-live-control-row {
        grid-template-columns: 1fr;
    }

    .timer-stack-input-wrap {
        min-height: 56px;
        height: 56px;
    }

    .timer-live-player-buttons .timer-btn {
        min-height: 56px;
        height: 56px;
        font-size: 0.95rem;
    }
}

/* =========================
   ニュース本文
========================= */

.news-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.8;
}
