/* --- 共通: 基本設定 (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: 15px;
    border-left: 4px solid #1abc9c;
    padding-left: 10px;
}

/* Layout Configuration 
   要望対応: 基本情報は1段、プラン比較は横並び(3カラム)
*/

.config-wrapper {
    margin-bottom: 30px;
}

/* 基本設定エリア */
.config-basic-area {
    margin-bottom: 20px;
}
.basic-input-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.basic-input-item {
    flex: 1;
    min-width: 200px;
}

/* 比較プランエリア (PCで3カラム) */
.config-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 強制的に3カラム */
    gap: 20px;
}

.input-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    height: 100%; /* 高さを揃える */
    box-sizing: border-box;
}
.group-card {
    border-top: 3px solid #dddddd;
}
/* グループ別の色分けアクセント */
.group-label-a { color: #e74c3c; } /* 赤系 */
.group-label-b { color: #3498db; } /* 青系 */
.group-label-c { color: #16a085; } /* 緑系 */

.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: #555;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.spacer-sm {
    height: 15px;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}
.unit {
    display: block;
    text-align: right;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Action Area */
.action-area {
    text-align: center;
    margin: 30px 0;
}
.action-btn {
    background-color: #1abc9c;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
}
.action-btn:hover {
    background-color: #16a085;
}
.action-btn:active {
    transform: translateY(2px);
}

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

/* Summary Grid in Result */
.summary-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    border-top: 1px dashed #16a085;
    padding-top: 20px;
}
.summary-item {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.summary-label {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    color: #7f8c8d;
    margin-bottom: 10px;
}
.val-row {
    font-size: 0.95em;
    color: #333;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.val-row strong {
    font-size: 1.1em;
    color: #2c3e50;
}

/* Result Table */
.table-scroll-container {
    overflow-x: auto;
}
.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    margin-top: 10px;
}
.cost-table th, .cost-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
}
.cost-table th {
    background-color: #f8f9fa;
    color: #555555;
    font-weight: bold;
    white-space: nowrap;
}
.cost-table th small {
    font-weight: normal;
    font-size: 0.8em;
    color: #95a5a6;
}
.cost-table tr:nth-child(even) {
    background-color: #fdfdfd;
}

/* 判定ハイライト用 */
.winner-row {
    background-color: #fff5f5 !important;
    font-weight: bold;
    border-left: 5px solid #e74c3c;
}
.winner-badge {
    color: #e74c3c;
    font-weight: bold;
    border: 1px solid #e74c3c;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    display: inline-block;
    background: #fff;
}

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

/* Usage Caution */
.usage-caution-title {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}
.usage-caution-list {
    font-size: 0.85em;
    color: #7f8c8d;
    padding-left: 20px;
    line-height: 1.5;
}

/* 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: 768px) {
    .config-compare-grid {
        grid-template-columns: 1fr; /* スマホでは縦並びに戻す */
    }
    .basic-input-row {
        flex-direction: column;
        gap: 20px;
    }
    .footer-row {
        flex-direction: column;
        gap: 20px;
    }
    .summary-grid {
        flex-direction: column;
    }
    .summary-item {
        width: 100%;
        box-sizing: border-box;
    }
}