/* ========================================
   Training Page Styles
   - Problem solving page
   ======================================== */

/* ポケモンカード */
.training-pokemon-card {
    background: #ffffff;
    border: 2px solid #cbd5e0;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* ポケモン名 */
.training-pokemon-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

/* テラスタイプ */
.training-terastal-type {
    margin-bottom: 1rem;
    text-align: left;
}

/* 現在のタイプ */
.training-current-type {
    margin-bottom: 1rem;
    text-align: left;
}

.training-type-display {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    min-width: 120px;
}

/* ラベル（青文字） */
.training-label {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* 値（黒文字） */
.training-pokemon-card span:not(.training-label) {
    color: #2d3748;
    font-size: 0.9rem;
}

/* とくせい・どうぐの横並び */
.training-ability-item-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.training-ability-item-box {
    flex: 1;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.training-ability-item-box .training-label {
    font-size: 0.85rem;
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 0;
}

.training-ability-item-box span:not(.training-label) {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    width: 100%;
    text-align: center;
}

/* ステータス行（4つのボックス） */
.training-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* ステータス行（2つのボックス用のクラス） */
.training-stat-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ステータス行（2つのボックス） */
.training-stat-row:has(.training-stat-box:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* ステータス行（VP・ランク・性格補正の3列） */
.training-stat-row--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* 被ダメHなど: VP1枚を2列レイアウト時のセル幅のまま中央配置 */
.training-stat-row.training-stat-row--single-centered {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.training-stat-row.training-stat-row--single-centered .training-stat-box {
    flex: 0 0 auto;
    width: calc((100% - 0.75rem) / 2);
    max-width: calc((100% - 0.75rem) / 2);
    box-sizing: border-box;
}

.training-stat-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.training-stat-box .training-label {
    font-size: 0.8rem;
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 0;
}

.training-stat-box span:not(.training-label) {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    width: 100%;
    text-align: center;
}

.training-move-flag-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.25rem;
    vertical-align: middle;
}
.training-move-flag-badge--z {
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
}
.training-move-flag-badge--g {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fdba74;
}

/* わざ名 */
.training-move-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: left;
}

/* 威力 */
.training-move-power {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: left;
}

/* わざの説明 */
.training-move-description {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.training-move-description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-move-description-list li {
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.training-move-description-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #4a5568;
}

/* タイプ相性ミニカード */
.training-type-compat-card {
    margin-top: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.training-type-compat-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.training-type-compat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
}

.training-type-compat-button {
    margin-left: auto;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: #374151;
    border-radius: 16px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.training-type-compat-button:hover {
    background: #f8fafc;
}

/* タイプ相性/一致ボタンの見た目を統一 */
.training-type-compat-button--toggle {
    min-width: 88px;
    text-align: center;
}

/* 急所の進行 */
.training-move-critical-progression {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* 急所の進行 */
.training-move-critical-progression {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* 詳細情報タイトル */
.training-detail-info-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: left;
}

/* 詳細情報リスト */
.training-detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 詳細情報項目（condition-itemと同じスタイル） */
.training-detail-info-list .condition-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.training-detail-info-list .condition-item span {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.training-detail-info-list .condition-item .detail-type {
    font-weight: 400;
}

/* 補足説明タイトル */
.training-supplement-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: left;
}

/* 補足説明テキスト */
.training-supplement-text {
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* 解答へボタンコンテナ */
.training-answer-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 解答へボタン */
.training-answer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
    text-decoration: none;
}

.training-answer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.training-answer-button:active {
    transform: translateY(0);
}

/* 解答ページ：ダメージ量表示カード */
.answer-damage-card {
    background: #ffffff;
    border: 2px solid #cbd5e0;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
    min-height: 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ダメージ量範囲表示 */
.answer-damage-range {
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.answer-damage-range span:not(.answer-damage-separator) {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.answer-damage-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0 0.5rem;
}

/* 割合表示 */
.answer-damage-percentage {
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0;
    margin-top: 0;
}

/* 急所トグルボタン（解答ページ・カード内） */
.answer-critical-toggle-button {
    margin-top: 1.25rem;
    height: 36px;
    min-height: 36px;
    padding: 0 1.25rem;
    border-radius: 18px;
    border: none;
    background: #7c3aed;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.answer-critical-toggle-button:hover {
    background: #6d28d9;
}

.answer-critical-toggle-button:active {
    background: #5b21b6;
}

.answer-critical-toggle-button.is-critical-active {
    background: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.answer-critical-toggle-button.is-critical-active:hover {
    background: #b91c1c;
}

/* 解答オーバーレイの幅を狭くする */
#answer-overlay .overlay-dialog {
    width: min(90%, 360px);
    max-width: 360px;
    text-align: center;
}

/* 解答オーバーレイ内のダメージカードを中央配置 */
#answer-overlay .answer-damage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

/* 詳細ボタン */
.answer-detail-button {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.answer-detail-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.answer-detail-button:active {
    transform: translateY(0);
}

/* 計算過程/ブロック確認ボタン */
.answer-console-button-group {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.answer-console-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    min-width: 160px;
}

.answer-console-button--left {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.answer-console-button--right {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.answer-console-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.answer-console-button:active {
    transform: translateY(0);
}

/* 次の問題へボタン */
.answer-next-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.answer-next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
}

.answer-next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.answer-next-button:active {
    transform: translateY(0);
}

/* 通報&ブロックボタン */
.answer-report-button-container {
    display: flex;
    justify-content: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.answer-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.65rem 2.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
}

.answer-report-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.answer-report-button:active {
    transform: translateY(0);
}

/* 通報&ブロック オーバーレイ */
.report-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.report-reason-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #374151;
}

.report-reason-item input[type="radio"] {
    width: 1rem;
    height: 1rem;
}

.report-reason-empty {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
    margin: 1rem 0;
}

/* 問題を全て解き終わりましたメッセージ */
.all-questions-completed-message {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.all-questions-completed-message p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0;
}

/* 広告表示エリア（残り問題数の上） */
.adsense-top-wrapper {
    margin: 1rem auto;
    box-sizing: border-box;
}

@media (min-width: 1264px) {
    .adsense-top-wrapper {
        width: 1200px;
        max-width: 1200px;
    }
}

@media (max-width: 1263px) {
    .adsense-top-wrapper {
        width: 95%;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .adsense-top-wrapper {
        width: 95%;
        margin: 0.75rem auto;
    }
}

.adsense-top-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.adsense-top-box .adsense-container-inline {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.adsense-top-box .adsense-placeholder {
    margin: 0 auto;
}

/* 残り問題数表示（メインコンテナの外） */
.remaining-questions-wrapper {
    margin: 1rem auto;
    box-sizing: border-box;
}

@media (min-width: 1264px) {
    .remaining-questions-wrapper {
        width: 1200px;
        max-width: 1200px;
    }
}

@media (max-width: 1263px) {
    .remaining-questions-wrapper {
        width: 95%;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .remaining-questions-wrapper {
        width: 95%;
        margin: 0.75rem auto;
    }
}

.remaining-questions-box {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.remaining-questions-label {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 600;
}

.remaining-questions-number {
    font-size: 1.5rem;
    color: #3b82f6;
    font-weight: 700;
    min-width: 2ch;
    text-align: center;
}

/* ブロック理由表示エリア */
.blocked-reasons-wrapper {
    margin: 1rem auto;
    box-sizing: border-box;
}

@media (min-width: 1264px) {
    .blocked-reasons-wrapper {
        width: 1200px;
        max-width: 1200px;
    }
}

@media (max-width: 1263px) {
    .blocked-reasons-wrapper {
        width: 95%;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .blocked-reasons-wrapper {
        width: 95%;
        margin: 0.75rem auto;
    }
}

.blocked-reasons-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.blocked-reasons-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0 0;
    padding: 0.75rem 0;
    border: none;
    text-align: center;
    background: transparent;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.blocked-reasons-heading:hover {
    color: #1f2937;
}

.blocked-reasons-heading-text {
    text-align: center;
}

/* ブロック1件以上の場合のみ線を表示 */
.blocked-reasons-heading {
    border-bottom: 2px solid #e5e7eb;
}

/* ブロック0件用の見出し（線なし、中央配置） */
.blocked-reasons-zero-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    padding: 0.75rem 0;
    border: none;
    text-align: center;
    background: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blocked-reasons-zero-text {
    text-align: center;
    width: 100%;
}

.blocked-reasons-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.blocked-reasons-heading[aria-expanded="true"] .blocked-reasons-icon {
    transform: rotate(180deg);
}

.blocked-reasons-list {
    width: 100%;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.blocked-reasons-list.is-open {
    max-height: 1000px;
    opacity: 1;
    padding-top: 0.75rem;
}

.blocked-reason-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

.blocked-reason-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.blocked-reason-label {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.blocked-reason-count {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 600;
    text-align: right;
    margin-left: 1rem;
    white-space: nowrap;
}

/* ホームに戻るボタン（メインコンテナ外、フッターの上） */
.answer-home-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: transparent;
    margin-top: 0;
    margin-bottom: 0;
}

.answer-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 0.75rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
    text-decoration: none;
}

.answer-home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    background: #7c3aed;
}

.answer-home-button:active {
    transform: translateY(0);
}

/* コンソールボタンコンテナ（メインコンテナの上） */
.training-console-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
}

/* ダイマックス中表示インジケーター */
.gigantamax-indicator {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* デバッグ情報オーバーレイ内容 */
.debug-info-content {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    color: #1f2937;
}

.training-console-button {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
}

.training-console-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.training-console-button:active {
    transform: translateY(0);
}

/* ブロック件数表示（questionページ） */
.training-blocked-count {
    text-align: right;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 15px 0.5rem 0;
}

/* 問題一覧コンテンツ */
.question-list-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem 0;
}

/* 問題一覧オーバーレイはコンテンツ側だけスクロール */
#question-list-overlay .overlay-dialog {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#question-list-overlay .question-list-content {
    flex: 1;
    min-height: 0;
    max-height: none;
}

/* デバッグ情報オーバーレイもコンテンツ側だけスクロール */
#debug-info-overlay .overlay-dialog {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#debug-info-overlay .debug-info-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.question-list-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #2d3748;
    font-size: 0.9rem;
}

.question-list-item:hover {
    background-color: #f7fafc;
}

.question-list-item:last-child {
    border-bottom: none;
}

/* ========================================
   answer/:uuid インライン広告（安全配置）
   ======================================== */
.adsense-container-inline {
    width: 100%;
    max-width: 728px; /* 標準的な広告サイズ */
    margin: 3rem auto; /* 上下に十分なマージン（ボタン直下を避ける） */
    padding: 1rem 0;
    text-align: center;
    /* position: fixed / sticky は使用しない */
    /* z-index は指定しない（通常フロー内） */
}

/* プレースホルダー */
.adsense-placeholder {
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    min-height: 90px; /* モバイル広告の高さ */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 728px;
}

.adsense-placeholder-content {
    padding: 1rem;
}

.adsense-placeholder-text {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .training-pokemon-card {
        padding: 1rem;
    }
    
    .training-ability-item-row {
        gap: 0.5rem;
    }
    
    .adsense-container-inline {
        margin: 2rem auto; /* モバイルでは少し小さめのマージン */
        padding: 0.5rem 1rem;
    }
    
    .adsense-placeholder {
        min-height: 90px;
    }
}

@media (min-width: 641px) {
    .adsense-placeholder {
        min-height: 250px; /* デスクトップ広告の高さ */
    }
    
    .training-stat-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .training-stat-row--3col {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .training-stat-row.training-stat-row--single-centered .training-stat-box {
        width: calc((100% - 0.75rem * 3) / 4);
        max-width: calc((100% - 0.75rem * 3) / 4);
    }
    
    .training-pokemon-name {
        font-size: 1rem;
    }
    
    .training-ability-item-box {
        padding: 0.5rem;
    }
    
    .training-move-name {
        font-size: 1rem;
    }
    
    .answer-damage-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .answer-damage-range span:not(.answer-damage-separator) {
        font-size: 1.5rem;
    }
    
    .answer-damage-separator {
        font-size: 1.5rem;
    }
    
    .answer-detail-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .answer-next-button {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .answer-home-button {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .answer-home-button-container {
        padding: 1rem 0.5rem;
    }
}

/* ========================================
   ポケモンサマリー表示
   ======================================== */
.training-pokemon-summary-item {
    margin-bottom: 1.25rem;
}

.training-pokemon-summary-item:last-child {
    margin-bottom: 0;
}

.training-pokemon-summary-content {
    margin-top: 0.5rem;
}

.training-pokemon-summary-content--with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.training-pokemon-summary-content--with-button span {
    flex: 1;
}

.training-base-stats-button {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.training-base-stats-button:hover {
    background: #e0e7ff;
}

/* 管理画面・悪質問題詳細：凍結切り替えボタンを中央に・少し大きく */
.admin-bad-question-freeze-actions {
    text-align: center;
    margin: 1.25rem 0;
}

.admin-bad-question-freeze-actions .training-base-stats-button {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
}

/* questionページのボタンを種族値ボタンに統一 */
.question-page button:not(.overlay-close-button):not(.overlay-close-button-bottom):not(.training-answer-button) {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    transition: background 0.2s ease;
}

.question-page button:not(.overlay-close-button):not(.overlay-close-button-bottom):not(.training-answer-button):hover {
    background: #e0e7ff;
}

.pokemon-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.pokemon-stats-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    text-align: center;
}

.pokemon-stats-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.pokemon-stats-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

/* 実数値トグル（questionページ） */
.training-pokemon-card--real-toggle {
    position: relative;
    padding-bottom: 2.5rem;
}

.real-status-toggle-button {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: #374151;
    border-radius: 16px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.real-status-toggle-button:hover {
    background: #f8fafc;
}

.real-status-number {
    color: #ef4444;
    font-weight: 600;
}

.training-pokemon-summary-row {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.training-pokemon-summary-row:last-child {
    margin-bottom: 0;
}

/* ========================================
   未ログイン時の警告メッセージ
   ======================================== */
.login-required-notice {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.login-required-text {
    color: #dc2626; /* 赤文字 */
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   ブロックボタン - グレーアウト状態
   ======================================== */
.answer-report-button--disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.answer-report-button--disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

