:root {
    --primary-color: #ffffff;
    --secondary-color: #f5f5f5;
    --text-color: #333333;
    --btc-color: #f7931a;
    --eth-color: #3c57d5;
    --sol-color: #00ff80;
    --xrp-color: #55adff;
    --usdt-color: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 50rem;
    margin: 1rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    letter-spacing: -0.02em;
}

.input-section {
    background: #393F4C;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

select, input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #fff;
}

/* セレクトボックスのドロップダウン背景色を#393F4Cに */
select {
    background-color: #fff;
}
select:focus {
    outline: 2px solid #0032FA;
}

/* Chrome, Edge, Safari用 ドロップダウンリスト背景色 */
select option {
    background-color: #393F4C;
    color: #fff;
}

/* Firefox用 ドロップダウンリスト背景色 */
@-moz-document url-prefix() {
    select option {
        background-color: #393F4C;
        color: #fff;
    }
}


.radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.75rem 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#calculateBtn {
    background-color:black;
    color: white;
    margin-top: 2.25rem;
}

#resetBtn {
    background-color: #FACA60;
    color: white;
    margin-top: 2.25rem;
}

.result-section {
    margin-top: 1.5rem;
    background: #393F4C;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.result-item {
    margin-bottom: 1rem;
}

.result-item p {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Chrome, Safari, Edge 対応 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox 対応 */
input[type="number"] {
    -moz-appearance: textfield;
}

.rights{
    margin-top:1.5rem;
    text-align: center;
}



@media (max-width: 600px) {
    .container {
        margin: 0.5rem;
        padding: 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    button {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .result-section {
        padding: 1rem;
    }
    
    .result-item {
        margin-bottom: 1rem;
    }
}
