/* Google Fontsから「M PLUS Rounded 1c」を読み込む */ @import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;900&display=swap'); /* ページ全体の基本設定 */ body { /* ページ内の文字フォントを指定 */ font-family: 'M PLUS Rounded 1c', sans-serif; /* 文字の選択を禁止 */ user-select: none; /* タッチ操作時の不要な動作を抑制 */ touch-action: manipulation; } /* 印刷時だけ適用するスタイル */ @media print { /* 印刷時はページ内のすべての要素を一旦非表示にする */ body * { visibility: hidden; } /* 印刷対象とその内部要素だけを表示する */ #print-section, #print-section * { visibility: visible; } /* 印刷対象の領域をページ上部に配置する */ #print-section { position: absolute; left: 0; top: 0; width: 100%; /* 印刷時の背景色と文字色を白黒に固定 */ background: white !important; color: black !important; } /* 印刷に不要なボタンなどを非表示にする */ .no-print { display: none !important; } } /* Chromeなどで使用されるスクロールバー全体の設定 */ ::-webkit-scrollbar { width: 6px; height: 6px; } /* スクロールバーの背景部分 */ ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 4px; } /* スクロールバーのつまみ部分 */ ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; } /* ボタンが光るアニメーションの定義 */ @keyframes pulse-glow { /* アニメーション開始時と終了時の光り方 */ 0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.5); } /* アニメーション途中で光を強くする */ 50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.9); } } /* 光るアニメーションを適用するボタン */ .pulse-btn { /* 2秒間隔で光る動作を繰り返す */ animation: pulse-glow 2s infinite; } /* 画面上部に表示するメッセージ全体の配置 */ .screen-message { position: fixed; top: 14px; left: 50%; /* 左右中央に配置する */ transform: translateX(-50%); /* 画面幅に応じて横幅を調整する */ width: min(92vw, 560px); /* 他の画面要素より手前に表示する */ z-index: 1000; /* メッセージの外側ではクリック操作を受け付けない */ pointer-events: none; } /* メッセージを囲むカード部分 */ .screen-message-card { /* カード内部ではクリック操作を有効にする */ pointer-events: auto; /* 内側の余白 */ padding: 16px 20px; /* オレンジ色の枠線 */ border: 2px solid #f59e0b; /* 角を丸くする */ border-radius: 16px; /* カードの背景色 */ background: rgba(15, 23, 42, .96); /* 文字色を白にする */ color: #fff; /* 文字を中央揃えにする */ text-align: center; /* カードの周囲に影を付ける */ box-shadow: 0 10px 30px rgba(0,0,0,.35); } /* メッセージカードのタイトル */ .screen-message-card h3 { /* 下側の余白を設定 */ margin: 0 0 6px; /* タイトルを黄色にする */ color: #fbbf24; /* タイトルの文字サイズ */ font-size: 1.25rem; /* タイトルを太字にする */ font-weight: 900; } /* メッセージカードの本文 */ .screen-message-card p { /* 外側の余白をなくす */ margin: 0; /* 本文の文字サイズ */ font-size: 1rem; /* 行と行の間隔 */ line-height: 1.55; /* 本文を太字にする */ font-weight: 700; } /* メッセージ内の確認・キャンセルボタンを並べる領域 */ .screen-message-actions { /* ボタンを横並びにする */ display: flex; /* ボタン同士の間隔 */ gap: 12px; /* 本文とボタンの間隔 */ margin-top: 14px; } /* メッセージ内の各ボタン */ .screen-message-actions button { /* ボタンの幅を均等に分ける */ flex: 1; /* ボタン内部の余白 */ padding: 10px 14px; /* 枠線をなくす */ border: 0; /* ボタンの角を丸くする */ border-radius: 10px; /* 文字を太字にする */ font-weight: 900; /* マウスを乗せたときにポインターを表示 */ cursor: pointer; } /* 確認ボタンの色 */ .message-yes { background: #f59e0b; color: #111827; } /* キャンセルボタンの色 */ .message-no { background: #475569; color: #fff; } /* 3D表示用キャンバスの基本設定 */ #canvas-container canvas { /* 通常の配置位置を基準にする */ position: relative; /* 表示の重なり順 */ z-index: 1; /* キャンバスをブロック要素として表示 */ display: block; } /* 3Dボードの表示領域をコントロール内に収める */ #canvas-container { /* 横幅が縮小できるようにする */ min-width: 0; /* 領域からはみ出した部分を隠す */ overflow: hidden; } /* キャンバスが親要素の横幅を超えないようにする */ #canvas-container canvas { max-width: 100%; } /* ボウリングの投球記号を表示する枠 */ .score-roll-box { /* 横幅を均等に分配する */ flex: 1; /* 枠の高さ */ height: 28px; /* 内部の要素を配置する基準にする */ position: relative; /* 内部の文字を中央に配置する */ display: flex; align-items: center; justify-content: center; /* 枠線の色と太さ */ border: 1px solid #64748b; /* 文字色 */ color: white; /* 文字を太字にする */ font-weight: bold; /* 文字サイズ */ font-size: 14px; } /* ストライク：×の左右の三角形を塗りつぶす */ .strike-mark { /* 投球枠全体に重ねて表示する */ position: absolute; inset: 0; } /* ストライク記号を構成する左右の塗りつぶし部分 */ .strike-mark span { /* 親要素全体に広げる */ position: absolute; inset: 0; width: 100%; height: 100%; /* 塗りつぶし色 */ background: #fbbf24; /* 角を丸くしない */ border-radius: 0; } /* ストライク記号の左側の三角形 */ .strike-mark span:first-child { /* 左側の三角形の形を指定 */ clip-path: polygon( 0 0, 0 100%, 50% 50% ); } /* ストライク記号の右側の三角形 */ .strike-mark span:last-child { /* 右側の三角形の形を指定 */ clip-path: polygon( 100% 0, 100% 100%, 50% 50% ); } /* スペア：右側の三角形を塗りつぶす */ .spare-mark { /* 投球枠全体に重ねて表示する */ position: absolute; inset: 0; width: 100%; height: 100%; /* 塗りつぶし色 */ background: #fbbf24; /* 右下側の三角形の形を指定 */ clip-path: polygon( 100% 0, 100% 100%, 0 100% ); }