.cleaning-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.top-item {
    cursor: pointer;
    text-align: center;
}

.top-image img {
    width: 100%;
    border-radius: 10px;
}

.term-header {
    background: #f3f3f3;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}

.term-content {
    padding: 10px 20px;
}

.service-item {
    margin: 5px 0;
    padding: 8px;
    background: #F0F0F0;
}

.service-item p {
    padding: 0;
    margin: 4px;
}

.service-item input.m2_input {
    display: inline;
    padding: 0;
    margin: 0;
    width: 3rem;
	font-size: 1.3em;
}

.term-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}


/* 下部固定 */
#estimate-box {
    position: fixed;
    left: 0;
    bottom: 0;
    transform: translateX(16%);
    width: 75%;
    background: #fff;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
    z-index: 9999;
}

/* 価格部分 */
#estimate-summary {
    display: flex;
    align-items: center;
    padding: 15px;
}

/* ボタンと価格の間隔 */
#estimate-price {
    margin-left: 10px;
    font-size: 1.2em;
    font-weight: bold;
}
/* ボタンの色 */
button[type="submit"] {
    background: #04a1cb;
    color: #fff;
    padding: .5em 1em;
    border: none;
    box-shadow: 2px 2px 3px #0f5b79;
}

/* form を右端へ */
#estimate-summary form {
    margin-left: auto;
}
@media (max-width: 575.98px) { /* モバイル */ 
.term-block {
grid-template-columns: repeat(1, 1fr) !important;}
#estimate-box { transform: translateX(1%); width: 95% !important;}
}

/* CF7へ送る選択項目のCSS */
#estimate_text_for_cf7 {
    position:absolute;
    left:-9999px;
}

/* 選択項目の開閉 */
#estimate-items-list {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
    border-top: 1px solid #eee;
    padding: 0 1em;
}

/* 開いた状態 */
#estimate-box.open #estimate-items-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
