@charset "utf-8";

/* チアフル計算用css */

.calculator-wrap {
    position: relative;
}
.btn_calculate {
    text-align: center;
    border-radius: 90px;
    box-shadow: 0px 6px 8px #cccccc73;
    background-color: #f4d2c4;
    border: 4px solid #fff;
    padding: 1em 0.5em;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 90%;
    width: 100%;
    font-family: inherit;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.btn_calculate:before {
    content: "";
    background: url(https://gigaplus.makeshop.jp/yourmother/dc_onedish/cheerful/images/ico_spoon.svg) no-repeat 0 center;
    margin-right: 5px;
    display: inline-block;
    width: 34px;
    height: 32px;
}
.btn_calculate:hover {
    background-color: #f1c0ac;
}

/* 計算 */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    margin-top: 16px;
    font-weight: 600;
    color: var(--dark-color);
}
.form-group input[type="number"] {
    padding: 12px;
    border: 2px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s;
    min-width: 250px;
    border-radius: 5px;
}
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #f4d2c4;
}

/* モーダル関連のスタイル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.result-container {
    margin-top: 30px;
    display: none;
    background-color: var(--light);
    border-radius: 8px;
    padding: 20px;
}

.result-container h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}
.result-item:last-child {
    border-bottom: none;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}
#results .method-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}
#results .method-table th,
#results .method-table td {
    width: auto;
    letter-spacing: 0;
    white-space: nowrap;
}
#results .method-table th {
    background-color: #c8e0c5;
    padding: 12px;
    line-height: 1.5;
}
#results .method-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.3;
    vertical-align: middle;
}
#results .method-table tr:last-child td {
    border-bottom: none;
}
#results .method-table-wrap {
    overflow-x: auto;
    width: 100%;
}
#results .method-table-usage {
    white-space: nowrap;
}

#results .method-table tr:nth-child(even) {
    background-color: rgba(143, 185, 170, 0.1);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px 5%;
    }

    #results .method-table th,
    #results .method-table td {
        padding: 10px 5px;
        font-size: 14px;
        letter-spacing: 0;
    }
}

/* /////計算ここまで */