/* 基本的なスタイル */


.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 16px;
}







/* タブ関連のスタイル */
.tab-buttons {
    display: flex;
    margin-bottom: 15px;
}
.tab-button {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
	color: #000000;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}
.tab-button.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
}
.tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
}
.tab-content.active {
    display: block;
}

/* 入力フォーム */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-group input {
    width: auto;
}



/* 計算結果 */
.results-section, .history-section {
    margin-top: 30px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.results-table th {
    background-color: #f2f2f2;
}

.highlight-amount {
    font-weight: bold;
    color: #007bff;
}

.total-payment {
    font-weight: bold;
    color: #dc3545;
}

.error, .initial-message {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.small-text {
    font-size: 12px;
    color: #666;
}

.final-profit {
    border-top: 2px solid #333;
}

/* 履歴 */
.history-list {
    list-style-type: none;
    padding: 0;
}

.history-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.history-item:hover {
    background-color: #e9e9e9;
}

.history-item-summary {
    font-weight: bold;
    color: #444;
}

.history-item-date {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.no-history {
    text-align: center;
    color: #888;
}

.clear-button {
    background-color: #ccc;
    color: #333;
    width: auto;
    padding: 5px 10px;
    font-size: 14px;
}

.clear-button:hover {
    background-color: #bbb;
}