@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:    cocoon-master
Version:     1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* WordPressのカスタムCSS用 - チャット表示スタイル */
/* 基本的なページレイアウト */
.page-container {
display: flex;
flex-direction: column;
max-width: 800px;
margin: 0 auto;
background-color: #fff;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
font-family: "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
}

.race-info-header {
/* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */ /* Purple background removed */
background-color: #f8f9fa; /* Example fallback background */
padding: 20px;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.race-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.race-details {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 15px;
margin-top: 10px;
font-size: 14px;
}

.race-detail-item {
background-color: rgba(255, 255, 255, 0.2);
padding: 5px 12px;
border-radius: 15px;
backdrop-filter: blur(5px);
}

/* チャットコンテナ */
.chat-container {
flex: 1;
padding: 20px;
background-color: #f8f9fa;
overflow-y: auto;
}

/* メッセージスタイル */
.message {
display: flex;
margin-bottom: 15px;
animation: slideIn 0.3s ease-out;
}

.avatar {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 12px;
flex-shrink: 0;
overflow: hidden;
border: 3px solid #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}

.avatar-fallback {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: white;
font-size: 18px;
}

.message-content {
flex: 1;
max-width: calc(100% - 70px);
}

.agent-name {
font-size: 1.5em;
font-weight: bold;
color: #2c3e50;
margin-bottom: 5px;
}


.timestamp {
font-size: 11px;
color: #999;
margin-bottom: 5px;
}

.bubble {
background: #fff;
border-radius: 18px;
padding: 12px 16px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
position: relative;
word-wrap: break-word;
line-height: 1.4;
}

/*
.bubble::before {
content: '';
position: absolute;
left: -8px;
top: 12px;
width: 0;
height: 0;
border-top: 8px solid transparent;
border-right: 8px solid #fff;
border-bottom: 8px solid transparent;
}
*/

/* エージェント別スタイリング */
.amane .bubble {
background-color: #e8f5e8;
border-left: 4px solid #4caf50;
}
/*
.amane .bubble::before {
border-right-color: #e8f5e8;
}
*/

.rin .bubble {
background-color: #e3f2fd;
border-left: 4px solid #2196f3;
}
/*
.rin .bubble::before {
border-right-color: #e3f2fd;
}
*/

.misaki .bubble {
background-color: #fce4ec;
border-left: 4px solid #e91e63;
}
/*
.misaki .bubble::before {
border-right-color: #fce4ec;
}
*/

.yuzuha .bubble {
background-color: #f3e5f5;
border-left: 4px solid #9c27b0;
}
/*
.yuzuha .bubble::before {
border-right-color: #f3e5f5;
}
*/

.kanade .bubble {
background-color: #fffde7;
border-left: 4px solid #ffeb3b;
}
/*
.kanade .bubble::before {
border-right-color: #fffde7;
}
*/

.whiteboard .bubble {
background-color: #f8f9fa;
border: 2px solid #e9ecef;
border-left: 4px solid #6c757d;
font-family: 'Courier New', monospace;
}
/*
.whiteboard .bubble::before {
border-right-color: #f8f9fa;
}
*/

/* 日本語の名前も対応 */
.朝霧.天音 .bubble, .朝霧天音 .bubble {
background-color: #e8f5e8;
border-left: 4px solid #4caf50;
}
/*
.朝霧.天音 .bubble::before, .朝霧天音 .bubble::before {
border-right-color: #e8f5e8;
}
*/

.鞍馬.凛 .bubble, .鞍馬凛 .bubble {
background-color: #e3f2fd;
border-left: 4px solid #2196f3;
}
/*
.鞍馬.凛 .bubble::before, .鞍馬凛 .bubble::before {
border-right-color: #e3f2fd;
}
*/

.小鳥遊.美咲 .bubble, .小鳥遊美咲 .bubble {
background-color: #fce4ec;
border-left: 4px solid #e91e63;
}
/*
.小鳥遊.美咲 .bubble::before, .小鳥遊美咲 .bubble::before {
border-right-color: #fce4ec;
}
*/

.白雪.柚葉 .bubble, .白雪柚葉 .bubble {
background-color: #f3e5f5;
border-left: 4px solid #9c27b0;
}
/*
.白雪.柚葉 .bubble::before, .白雪柚葉 .bubble::before {
border-right-color: #f3e5f5;
}
*/

.七海.奏 .bubble, .七海奏 .bubble {
background-color: #fffde7;
border-left: 4px solid #ffeb3b;
}
/*
.七海.奏 .bubble::before, .七海奏 .bubble::before {
border-right-color: #fffde7;
}
*/

/* マークダウンコンテンツスタイリング */
.bubble h1, .bubble h2, .bubble h3, .bubble h4, .bubble h5, .bubble h6 {
margin: 8px 0 6px 0;
color: #333;
}

.bubble h1 { font-size: 1.3em; color: #e74c3c; }
.bubble h2 { font-size: 1.2em; color: #27ae60; }
.bubble h3 { font-size: 1.1em; color: #f39c12; }

.bubble ul, .bubble ol {
margin: 8px 0;
padding-left: 20px;
}

.bubble li {
margin: 4px 0;
}

.bubble strong {
font-weight: bold;
color: #2c3e50;
}

.bubble em {
font-style: italic;
color: #7f8c8d;
}

.bubble code {
background-color: rgba(0,0,0,0.05);
padding: 2px 4px;
border-radius: 3px;
font-family: 'Courier New', monospace;
font-size: 0.9em;
}

.bubble table {
border-collapse: collapse;
width: 100%;
margin: 10px 0;
font-size: 0.9em;
}

.bubble th, .bubble td {
border: 1px solid #ddd;
padding: 6px 8px;
text-align: left;
}

.bubble th {
background-color: rgba(0,0,0,0.05);
font-weight: bold;
}

/* アニメーション */
@keyframes slideIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

/* Cocoon Chat Styles */
.cocoon-chat-container {
margin: 1em 0;
font-family: "Segoe UI", "Meiryo", sans-serif;
max-width: 95%;
}
.cocoon-message {
display: flex;
align-items: flex-start;
margin-bottom: 1em;
padding: 0.5em 0;
}
.cocoon-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.2em;
margin-right: 0.9em;
color: #fff;
flex-shrink: 0;
}
.cocoon-agent-name {
font-weight: bold;
font-size: 0.95em;
margin-bottom: 0.2em;
}
.cocoon-timestamp {
font-size: 0.8em;
color: #888;
margin-bottom: 0.3em;
}
.cocoon-bubble {
background: #f1f1f1;
border-radius: 18px;
padding: 0.8em 1em;
max-width: 85%;
word-break: break-word;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.天音-bubble {
--bubble-color: #ccfbe9;
}

/* Agent-specific bubble colors */
.kanon .cocoon-bubble { background: #FFB6C1; border-left: 4px solid #FFB6C1; }
.toru .cocoon-bubble  { background: #90EE90; border-left: 4px solid #90EE90; }
.hana .cocoon-bubble  { background: #87CEEB; border-left: 4px solid #87CEEB; }
.miho .cocoon-bubble  { background: #DDA0DD; border-left: 4px solid #DDA0DD; }
.yuki .cocoon-bubble  { background: #F0E68C; border-left: 4px solid #F0E68C; }
.teruo .cocoon-bubble{ background: #98FB98; border-left: 4px solid #98FB98; }

/* 新規ウマバト！エージェントカラー */
.misaki .cocoon-bubble    { background: #f397a5; border-left: 4px solid #f397a5; }
.amane .cocoon-bubble     { background: #90EE90; border-left: 4px solid #90EE90; }
.rin .cocoon-bubble  { background: #87CEEB; border-left: 4px solid #87CEEB; }
.kanade .cocoon-bubble  { background: #F0E68C; border-left: 4px solid #F0E68C; }
.yuzuha .cocoon-bubble  { background: #ddb2dd; border-left: 4px solid #ddb2dd; }
.whiteboard .cocoon-bubble { background: #D3D3D3; border-left: 4px solid #D3D3D3; }

.cocoon-bubble::after {
content: "";
width: 0;
height: 0;
border-style: solid;
border-color: transparent var(--bubble-color) transparent transparent;
border-width: 12px 48px 12px 0px;
position: absolute;
top: -12px;
left: -33px;
rotate: 30deg;
	content:none;
}

.cocoon-message-content {
display: flex;
flex-direction: column;
max-width: calc(100% - 50px);
}

/* Adjust avatar images */
.cocoon-avatar img {
width: 60px;
height: auto;
border-radius: 50%;
margin-right: 10px;
}

/* Right-side messages */
.cocoon-message.reverse {
flex-direction: row-reverse;
}
.cocoon-message.reverse .cocoon-avatar {
margin-left: 10px;
margin-right: 0;
}
.cocoon-message.reverse .cocoon-message-content {
align-items: flex-end;
}

/* ベッティングダッシュボード CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */ /* Purple background removed */
background-color: #f0f2f5; /* Example fallback background */
min-height: 100vh;
color: #333;
line-height: 1.6;
}

.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}

/* ヘッダー */
.dashboard-header {
background: rgba(255, 255, 255, 0.95);
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

.dashboard-header h1 {
font-size: 2.5em;
color: #2c3e50;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 i {
margin-right: 15px;
color: #3498db;
}

.load-btn {
background: linear-gradient(45deg, #3498db, #2980b9);
color: white;
border: none;
padding: 15px 25px;
border-radius: 8px;
font-size: 1.1em;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.load-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.load-btn i {
margin-right: 8px;
}

/* サマリーセクション */
.summary-section {
margin-bottom: 30px;
}

.summary-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 20px;
}

.summary-card {
background: rgba(255, 255, 255, 0.95);
padding: 25px;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
transition: transform 0.3s ease;
}

.summary-card:hover {
transform: translateY(-5px);
}

.card-icon {
font-size: 3em;
margin-right: 20px;
color: #3498db;
}

.card-content h3 {
font-size: 2.2em;
color: #2c3e50;
margin-bottom: 5px;
}

.card-content p {
color: #7f8c8d;
font-size: 1.1em;
}

/* フィルターセクション */
.filter-section {
background: rgba(255, 255, 255, 0.95);
padding: 20px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}

.filter-controls {
display: flex;
gap: 20px;
align-items: center;
flex-wrap: wrap;
}

.filter-group {
display: flex;
align-items: center;
gap: 10px;
}

.filter-group label {
font-weight: 600;
color: #2c3e50;
}

.filter-group select,
.filter-group input {
padding: 8px 12px;
border: 2px solid #ecf0f1;
border-radius: 6px;
font-size: 1em;
transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
outline: none;
border-color: #3498db;
}

.filter-group input {
min-width: 200px;
}

/* ベッティングパネル */
.betting-panels {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
gap: 25px;
}

.betting-panel {
background: rgba(255, 255, 255, 0.95);
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: all 0.3s ease;
border-left: 5px solid #3498db;
animation: fadeIn 0.5s ease-out;
}

.betting-panel:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.betting-panel.violation {
border-left-color: #e74c3c;
}

.betting-panel.valid {
border-left-color: #27ae60;
}

.panel-header {
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
padding: 20px;
border-bottom: 1px solid #dee2e6;
}

.agent-status {
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.9em;
font-weight: 600;
}

.status-valid {
background: #d4edda;
color: #155724;
}

.status-violation {
background: #f8d7da;
color: #721c24;
}

.panel-content {
padding: 20px;
}

.info-section {
margin-bottom: 20px;
}

.info-section h4 {
color: #2c3e50;
margin-bottom: 10px;
font-size: 1.1em;
border-bottom: 2px solid #3498db;
padding-bottom: 5px;
}

.race-info {
background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
padding: 20px;
border-radius: 8px;
margin: 20px 0;
border-left: 4px solid #4a7c59;
}

.race-info-item {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
}

.race-info-item:last-child {
margin-bottom: 0;
}

.race-info-label {
font-weight: 600;
color: #495057;
}

.race-info-value {
color: #6c757d;
}

.budget-info {
display: flex;
justify-content: space-between;
align-items: center;
background: #e8f4fd;
padding: 12px;
border-radius: 8px;
margin-bottom: 15px;
}

.budget-label {
font-weight: 600;
color: #2c3e50;
}

.budget-amount {
font-size: 1.3em;
font-weight: bold;
color: #3498db;
}

.budget-amount.over-limit {
color: #e74c3c;
}

.main-pick {
background: #fff3cd;
padding: 10px;
border-radius: 8px;
border-left: 4px solid #ffc107;
margin-bottom: 15px;
}

.main-pick-label {
font-size: 0.9em;
color: #856404;
margin-bottom: 5px;
}

.main-pick-value {
font-size: 1.1em;
font-weight: bold;
color: #856404;
}

.bets-list {
margin-bottom: 20px;
}

.bet-item {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 15px;
margin-bottom: 10px;
transition: all 0.3s ease;
}

.bet-item:hover {
background: #e9ecef;
}

.bet-item.invalid {
border-color: #dc3545;
background: #f8d7da;
}

.bet-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}

.bet-type {
font-weight: bold;
color: #495057;
background: #e9ecef;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.9em;
}

.bet-amount {
font-weight: bold;
color: #28a745;
font-size: 1.1em;
}

.bet-horses {
color: #6c757d;
margin-bottom: 5px;
}

.bet-description {
font-size: 0.9em;
color: #6c757d;
font-style: italic;
}

.violations-section {
background: #f8d7da;
border: 1px solid #f5c6cb;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
}

.violations-title {
color: #721c24;
font-weight: bold;
margin-bottom: 10px;
display: flex;
align-items: center;
}

.violations-title i {
margin-right: 8px;
}

.violation-item {
background: rgba(255, 255, 255, 0.7);
padding: 8px 12px;
border-radius: 6px;
margin-bottom: 8px;
color: #721c24;
font-size: 0.9em;
}

.violation-item:last-child {
margin-bottom: 0;
}

.strategy-section {
background: #d1ecf1;
border-left: 4px solid #17a2b8;
padding: 15px;
border-radius: 8px;
}

.strategy-title {
color: #0c5460;
font-weight: bold;
margin-bottom: 8px;
}

.strategy-content {
color: #0c5460;
font-size: 0.95em;
line-height: 1.5;
}

.reasoning-section {
background: #f7f7f7;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #6c757d;
margin-top: 15px;
}

.reasoning-title {
color: #495057;
font-weight: bold;
margin-bottom: 8px;
}

.reasoning-content {
color: #6c757d;
font-size: 0.95em;
line-height: 1.5;
}

/* データなしメッセージ */
.no-data {
text-align: center;
padding: 80px 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-data i {
font-size: 4em;
color: #95a5a6;
margin-bottom: 20px;
}

.no-data p {
font-size: 1.2em;
color: #7f8c8d;
}


/* Blog Template CSS for Horse Racing Prediction Blog Generation */
/* Version: v2.1.0 */
/* Created: 2025-01-19 */
/* Description: Styling for generated horse racing blog articles */

body.blog-body {
font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
line-height: 1.8;
color: #333;
max-width: 900px;
margin: 0 auto;
padding: 20px;
background-color: #fafafa;
}

.blog-body .container {
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-body .header {
text-align: center;
border-bottom: 3px solid #2c5530;
padding-bottom: 20px;
margin-bottom: 30px;
}

.blog-body h1 {
color: #2c5530;
margin-bottom: 10px;
font-size: 2.2em;
}

.blog-body h2 {
color: #2c5530;
border-left: 4px solid #4a7c59;
padding-left: 15px;
margin: 30px 0 15px 0;
font-size: 1.5em;
}

.blog-body h3 {
color: #4a7c59;
margin: 25px 0 10px 0;
font-size: 1.3em;
}

.blog-body .meta-info {
color: #666;
font-size: 0.9em;
margin-bottom: 20px;
}

.blog-body .favorite-horse {
background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
padding: 20px;
border-radius: 8px;
margin: 20px 0;
border-left: 4px solid #dc3545;
}

.blog-body .favorite-horse h3 {
color: #dc3545;
margin-top: 0;
}

.blog-body .blog-content {
background: #f8f9fa;
padding: 30px;
border-radius: 8px;
margin: 25px 0;
border: 1px solid #e9ecef;
text-align: justify;
}

.blog-body .author-info {
text-align: right;
color: #666;
font-style: italic;
margin-top: 30px;
padding-top: 15px;
border-top: 1px solid #eee;
}

.blog-body .seo-keywords {
margin-top: 30px;
font-size: 0.9em;
color: #888;
text-align: center;
padding: 15px;
background: #f5f5f5;
border-radius: 5px;
}

.blog-body .blog-type {
display: inline-block;
color: white;
padding: 8px 20px;
border-radius: 25px;
font-size: 0.9em;
margin-bottom: 15px;
font-weight: bold;
}

/* Blog type specific colors */
.blog-body .blog-type.prediction {
background: #007bff;
}

.blog-body .blog-type.review {
background: #dc3545;
}

.blog-body strong {
color: #2c5530;
font-weight: 600;
}

.blog-body em {
color: #666;
font-style: italic;
}

.blog-body .highlight {
background: linear-gradient(transparent 60%, #ffeb3b 60%);
padding: 2px 4px;
font-weight: bold;
}

.blog-body ul, .blog-body ol {
padding-left: 20px;
}

.blog-body li {
margin-bottom: 8px;
}

.blog-body p {
margin-bottom: 1.2em;
}

/* Race entries styling */
.blog-body .race-entries {
margin: 15px 0;
}

.blog-body .race-entries li {
padding: 5px 0;
border-bottom: 1px solid #eee;
}

.blog-body .race-entries li:last-child {
border-bottom: none;
}

/* Winner styling */
.blog-body .winner {
background: linear-gradient(135deg, #fff9c4 0%, #ffecb3 100%);
padding: 8px;
border-radius: 5px;
border-left: 4px solid #ffc107;
font-weight: bold;
}

/* アニメーション */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* スクロールバーカスタマイズ */
::-webkit-scrollbar {
width: 8px;
}

::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}

::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
background: #555;
}

/* Panel styling */
.prediction-panels, .review-panels {
  margin: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.panels-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

.agent-panel {
  margin: 15px 0;
  padding: 20px;
  border-radius: 12px;
  border-left: 6px solid #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.agent-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.agent-panel.success {
  border-left-color: #4caf50;
}

.agent-panel.warning {
  border-left-color: #ff9800;
}

.agent-panel.danger {
  border-left-color: #f44336;
}

.agent-panel-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-avatar-fallback {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.panel-title-text {
  flex: 1;
}

.panel-content {
  font-size: 14px;
  line-height: 1.6;
}

.prediction-item, .result-item {
  margin: 8px 0;
  padding: 5px 0;
}

.betting-details, .betting-results {
  margin: 12px 0;
}

.betting-list, .results-list {
  margin: 8px 0;
  padding-left: 20px;
}

.betting-list li, .results-list li {
  margin: 4px 0;
  padding: 2px 0;
}

.prediction-comment, .review-comment {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 8px;
  font-style: italic;
}

.result-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.recovery-rate {
  font-weight: bold;
  font-size: 16px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
/*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
/*必要ならばここにコードを書く*/
}

/* 768px以下 */
@media (max-width: 768px) {
.page-container, .blog-body {
max-width: 100%;
padding: 10px;
}

.race-info-header {
padding: 15px;
}

.race-title {
font-size: 20px;
}

.chat-container {
padding: 15px;
}

.bubble {
/* max-width: 85%; */
margin-left: -10vw;
}

.container {
padding: 10px;
}

.dashboard-header {
flex-direction: column;
gap: 20px;
text-align: center;
}

.dashboard-header h1 {
font-size: 2em;
}

.summary-cards {
grid-template-columns: 1fr;
}

.filter-controls {
flex-direction: column;
align-items: stretch;
}

.filter-group {
flex-direction: column;
align-items: stretch;
}

.filter-group input {
min-width: auto;
}

.betting-panels {
grid-template-columns: 1fr;
}

.bet-header {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}

.blog-body .container {
padding: 20px;
}

.blog-body h1 {
font-size: 1.8em;
}

.blog-body h2 {
font-size: 1.3em;
}

.blog-body .blog-content {
padding: 20px;
}

.blog-body .race-info {
padding: 15px;
}
}

/*480px以下*/
@media screen and (max-width: 480px){
.panel-content {
padding: 15px;
}

.budget-info {
flex-direction: column;
gap: 5px;
}

.summary-card {
flex-direction: column;
text-align: center;
}

.card-icon {
margin-right: 0;
margin-bottom: 10px;
}
}

/* Print styles */
@media print {
body.blog-body {
background-color: white;
padding: 0;
}

.blog-body .container {
box-shadow: none;
padding: 20px;
}

.blog-body .seo-keywords {
display: none;
}
}