body {
    font-family: 'Hiragino Sans Rounded W4', 'ヒラギノ丸ゴ ProN W4', 'Hiragino Maru Gothic ProN', 'メイリオ', Meiryo, 'Noto Sans JP', sans-serif;
    background-color: #FFF9E6;
    color: #333333;
    margin: 0;
    padding: 20px;
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #EB6321;
}

header h1 {
    color: #EB6321;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    color: #555555;
}

.question-slide {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #FFE0B2;
    border-radius: 8px;
    background-color: #FFFDF5;
}

.question-slide h3 {
    font-size: 20px;
    color: #EB6321;
    margin-bottom: 15px;
    font-weight: 600;
}
.question-slide .supplement {
    font-size: 14px;
    color: #757575;
    margin-top: -10px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444444;
    font-size: 17px;
}

input[type="text"],
input[type="number"] {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #FFCC80;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
}
input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #F57C00;
    box-shadow: 0 0 5px rgba(245, 124, 0, 0.5);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: normal;
    font-size: 16px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #F57C00;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.option-item {
    padding: 14px 18px;
    border: 1px solid #EB6321;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    font-size: 16px;
    text-align: center;
}

.option-item:hover {
    background-color: #FFF3E0;
    border-color: #EB6321;
    transform: translateY(-1px);
}

.option-item.selected {
    background-color: #EB6321;
    color: white;
    border-color: #EB6321;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

button {
    background-color: #EB6321;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
button:hover {
    background-color: #EB6321;
    transform: translateY(-1px);
}
button:active {
    transform: translateY(1px);
    background-color: #EB6321;
}
#prev-btn {
    background-color: #BDBDBD;
}
#prev-btn:hover {
    background-color: #9E9E9E;
}

#results-container {
    padding: 25px;
    background-color: #FFF3E0;
    border-radius: 10px;
    margin-top: 20px;
}
#results-container h2 {
    text-align: center;
    color: #EB6321;
    font-size: 26px;
    margin-bottom: 25px;
}
#price-range-display {
    font-size: 32px;
    font-weight: bold;
    color: #EB6321;
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 2px dashed #EB6321;
    box-sizing: border-box;
}

#results-container h3 {
    font-size: 20px;
    color: #EB6321;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #EB6321;
    text-align: center;
}

.cost-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.cost-card {
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 5px solid #EB6321;
}
.cost-card p {
    margin: 5px 0;
    font-size: 16px;
}
.cost-card .cost-label {
    font-weight: bold;
    color: #555;
}
.cost-card .cost-value {
    font-weight: bold;
    color: #EB6321;
    float: right;
}

.cost-card-total {
    background-color: #FFFFFF;
    border-left: 5px solid #EB6321;
}
.cost-label-total {
    font-weight: bold;
    color: #222;
    font-size: 17px;
}

#bar-graph-area {
    margin-bottom: 30px;
}
.bar-graph-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 220px;
    padding: 20px 10px 0 10px;
    background-color: #fff;
    border: 1px solid #FFCC80;
    border-radius: 8px;
}
.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 40%;
}
.bar {
    width: 60px;
    background-color: #EB6321;
    border-radius: 6px 6px 0 0;
    transition: height 0.8s ease-out;
    position: relative;
    min-height: 10px;
    box-shadow: 0 4px 12px rgba(235,99,33,0.10);
}
.bar.regional-bar {
    background-color: #78909C;
    box-shadow: 0 4px 12px rgba(120,144,156,0.10);
}
.bar-label {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    font-weight: bold;
}
.bar-value {
    font-size: 18px;
    color: #EB6321;
    margin-top: 4px;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #FFCC80;
}
footer p {
    font-size: 14px;
    color: #777777;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 16px;
    overflow-x: hidden;
}

button, .result-buttons button {
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
}

#request-inspection-btn {
    background-color: #06C755 !important;
    color: #fff !important;
}
#request-inspection-btn:hover {
    background-color: #13e067 !important;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px;
    }
    header h1 {
        font-size: 20px;
    }
    header p {
        font-size: 14px;
    }
    .question-slide h3 {
        font-size: 18px;
    }
    .question-slide .supplement {
        font-size: 13px;
    }
    input[type="text"],
    input[type="number"],
    button,
    .option-item {
        font-size: 15px;
    }
    button {
        padding: 10px 18px;
    }
    #price-range-display {
        font-size: 24px;
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
        float: none !important;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    #results-container h3 {
        font-size: 18px;
    }
    .cost-card {
        font-size: 14px;
    }
    .cost-card .cost-value {
        font-size: 15px;
    }
    .bar {
        width: 45px;
    }
    .bar-label {
        font-size: 12px;
    }
    .bar-value {
        font-size: 11px;
    }
    #navigation-buttons {
        flex-direction: column-reverse;
        align-items: center;
    }
    #navigation-buttons button {
        width: 100%;
        max-width: 320px;
        margin-bottom: 10px;
        margin-left: 0;
        margin-right: 0;
    }
    #navigation-buttons button:last-child {
        margin-bottom: 0;
    }
    .result-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .result-buttons button {
        width: 100%;
        max-width: 320px;
    }
    .cost-card-total .cost-value {
        font-weight: bold;
        font-size: 18px;
    }
    .subtitle-br-mobile-line1 {
        display: block;
    }
    .subtitle-br-mobile-line2 {
        display: block;
        margin-top: 2px;
    }
    #results-container {
        padding-left: 0;
        padding-right: 0;
    }
    #deadline-header {
        width: 72px;
        height: 72px;
        font-size: 0.76em;
        border-radius: 14px;
        padding: 0 2px;
    }
}

@media (max-width: 480px) {
  .deadline-badge {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
  .deadline-badge .label {
    font-size: 12px;
  }
  .deadline-badge .days {
    font-size: 20px;
  }
} 