/* --- 共通: 基本設定 (Yorozul Design System) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header */
.site-header {
    width: 100%;
    background-color: #ffffff;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    position: sticky;
    top: 0;
    z-index: 100; 
}
.header-content {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}
.site-header h1 {
    margin: 0;
    font-size: 1.6em;
    color: #1abc9c;
}
.site-header .subtitle {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.85em;
}

/* Container */
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    box-sizing: border-box;
}

/* Breadcrumbs */
.breadcrumbs {
    width: 100%;
    padding: 0 0 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}
.breadcrumbs-content {
    font-size: 0.85em; 
    color: #555555;
}
.breadcrumbs a {
    color: #555555;
    text-decoration: none;
}
.current-page {
    color: #95a5a6; 
}

/* Input Styles */
.subsection-title {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 5px;
    border-left: 4px solid #1abc9c;
    padding-left: 10px;
}
.full-width-label {
    grid-column: 1 / -1;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.input-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eeeeee;
}
/* グループ別の色分けアクセント */
.group-card {
    border-top: 3px solid #dddddd;
}
.group-label-c { color: #16a085; } /* 緑系 */

.highlight-card {
    background-color: #e8f8f5; /* 薄いミント */
    border: 1px solid #1abc9c;
}

.card-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #34495e;
}
.input-sub-label {
    font-size: 0.8em;
    color: #7f8c8d;
    margin: 0 0 10px 0;
}
.input-note {
    font-size: 0.75em;
    color: #e74c3c;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

/* Select, Input 共通スタイル */
input[type="number"],
input[type="date"],
input[type="text"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff;
}
/* 日付入力の調整 */
input[type="date"] {
    font-family: inherit;
    color: #555555;
}

.unit {
    display: block;
    text-align: right;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Results */
.result-card {
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #34495e;
}
.type-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 20px;
}
.badge-holiday {
    background-color: #2c3e50;
    color: #ffffff;
}

/* Days Breakdown UI */
.days-breakdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.day-count-box {
    margin-bottom: 10px;
}
.day-count-box .day-label {
    display: block;
    font-size: 0.9em;
    color: #7f8c8d;
}
/* フォントサイズ調整 */
.day-count-box .day-value strong {
    font-size: 2.0em; 
    color: #16a085;
    line-height: 1.2;
}

.day-count-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}
.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.detail-label {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 2px;
}
.detail-val {
    font-weight: bold;
    font-size: 1.1em;
    color: #34495e;
}

/* --- Added for Annual Pass Table --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}
.simulation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    text-align: center;
}
.simulation-table th {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 10px;
    font-weight: normal;
}
.simulation-table td {
    padding: 10px;
    border-bottom: 1px solid #eeeeee;
    color: #555;
}
.simulation-table tr:nth-child(even) {
    background-color: #f8f9fa;
}
.text-plus {
    color: #16a085; /* お得 (Green) */
    font-weight: bold;
}
.text-minus {
    color: #e74c3c; /* 損 (Red) */
    font-weight: bold;
}
.text-even {
    color: #7f8c8d;
}
/* ---------------------------------- */

.total-summary-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #bbbbbb;
    text-align: right;
    font-size: 0.85em;
    color: #7f8c8d;
}

.divider {
    border: 0;
    border-top: 1px dashed #dddddd;
    margin: 30px 0;
}

/* Footer */
.page-footer {
    width: 100%;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 0 20px 0;
    margin-top: auto;
}
.footer-content {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}
.footer-row {
    display: flex;
    gap: 50px;
    margin-bottom: 30px;
}
.section-title {
    color: #1abc9c;
    font-weight: bold;
    margin-bottom: 10px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}
.copyright {
    text-align: center;
    font-size: 0.8em;
    color: #95a5a6;
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

/* Mobile */
@media (max-width: 600px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
    .footer-row {
        flex-direction: column;
    }
    .day-count-details {
        gap: 20px;
    }
}