/* style.css - 有休消化忘れ「会社への無料奉仕」チェッカー */

.bg-corporate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 会社の蛍光灯や冷たいオフィス、スーツの色味を連想させるモノクロ〜ブルーグレーのグラデーション */
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%);
    background-size: 300% 300%;
    animation: officeFluorescent 20s ease infinite;
    z-index: -1;
}

@keyframes officeFluorescent {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    color: #334155;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.sim-container {
    width: 100%;
    max-width: 800px;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 10;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.back-link:hover {
    background: #fff;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.main-app-card.corp-app-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 1);
}

.sim-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sim-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #334155, #0f172a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sim-header p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
.sim-header p strong {
    color: #dc2626;
}

/* 入力エリア */
.input-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.grid-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 20px;
}
.grid-inputs:last-child { margin-bottom: 0; }

/* 単一入力（月給）用のフルワイド調整 */
.grid-inputs:first-child {
    grid-template-columns: 1fr;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1e293b;
    font-size: 0.95rem;
}

.highlight-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #2563eb;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: #cbd5e1;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 4px solid #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sub-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
}

/* 視覚的アリーナ (チケットマトリクス) */
.visual-section {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    margin-bottom: 1.5rem;
}

.box-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    color: #334155;
    font-size: 1.1rem;
}

.tickets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 100px;
}

.ticket {
    width: 45px;
    height: 60px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 消化済みチケット（緑・ハッピー） */
.ticket.used {
    background: linear-gradient(135deg, #a7f3d0, #34d399);
    border: 2px solid #059669;
    color: #064e3b;
    box-shadow: 0 4px 6px rgba(52, 211, 153, 0.2);
}
.ticket.used::after {
    content: '休';
    font-size: 1.8rem;
    opacity: 0.3;
    position: absolute;
}

/* 未消化・没収チケット（赤・スタンプ） */
.ticket.lost {
    background: #f1f5f9;
    border: 2px dashed #94a3b8;
    color: #94a3b8;
}
/* 没収スタンプ */
.ticket.lost::after {
    content: '没収';
    position: absolute;
    color: #ef4444;
    font-size: 0.9rem;
    border: 2px solid #ef4444;
    padding: 2px 4px;
    border-radius: 4px;
    transform: rotate(-15deg);
    opacity: 0.8;
}

.logic-bar {
    text-align: center;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}
.daily-wage {
    font-size: 0.95rem;
    color: #475569;
}
.daily-wage strong {
    font-size: 1.2rem;
    color: #1d4ed8;
}

/* 結果セクション */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 20px;
}

.stat-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-title {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.4;
}

.stat-value {
    font-size: 1.8rem;
    color: #334155;
    font-weight: 900;
}

.stat-value.safe { color: #059669; } /* 緑 */

.net-box {
    background: rgba(254, 226, 226, 0.3);
    border-color: #ef4444;
}
.net-box .stat-value.highlight {
    color: #dc2626; /* 赤字（損失） */
    font-size: 2.2rem;
}

.final-verdict {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.final-verdict h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

.final-verdict p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* 悲惨な宣告スタイル */
.verdict-hell {
    border-color: #ef4444;
    background: rgba(254, 226, 226, 0.4);
}
.verdict-hell h3 { color: #b91c1c; }

@media (max-width: 650px) {
    .grid-inputs, .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
