/* まいん・カレンシーコンバーター：フロント表示用デザイン */

.main-currency-converter {
    max-width: 680px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.main-currency-converter,
.main-currency-converter * {
    box-sizing: border-box;
}

.main-currency-converter__inner {
    background: #fff;
    border: 1px solid #eadfe2;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.main-currency-converter__title {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
    line-height: 1.4;
}

.main-currency-converter__source {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #666;
}

.main-currency-converter__notice,
.main-currency-converter__warning {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.main-currency-converter__notice {
    background: #fff7e6;
    border: 1px solid #f3d39a;
}

.main-currency-converter__warning {
    background: #ffecec;
    border: 1px solid #e8a1a1;
}

.main-currency-converter__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.main-currency-converter__field label {
    font-weight: 700;
    font-size: 0.95rem;
}

.main-currency-converter__amount,
.main-currency-converter__from,
.main-currency-converter__to {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

.main-currency-converter__row {
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
    margin-top: 1rem;
}

.main-currency-converter__swap {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #d96b8a;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.main-currency-converter__swap:hover,
.main-currency-converter__swap:focus {
    opacity: 0.88;
}

.main-currency-converter__result {
    margin-top: 1.3rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f3f5;
    text-align: center;
}

.main-currency-converter__result-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #666;
}

.main-currency-converter__result-value {
    display: block;
    font-size: 1.45rem;
    line-height: 1.4;
}

.main-currency-converter__meta {
    margin-top: 1rem;
    font-size: 0.86rem;
    color: #666;
}

.main-currency-converter__meta p {
    margin: 0.2rem 0;
}

.main-currency-converter__note {
    margin: 1rem 0 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #666;
}

.main-currency-converter-error {
    max-width: 680px;
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid #e8a1a1;
    border-radius: 10px;
    background: #ffecec;
}

/* まいん・カレンシーコンバーター：スマホ表示調整 */
@media (max-width: 600px) {
    .main-currency-converter {
        margin: 1.5rem auto;
        padding: 0 0.75rem;
    }

    .main-currency-converter__inner {
        padding: 1.1rem;
        border-radius: 14px;
    }

    .main-currency-converter__row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .main-currency-converter__swap {
        align-self: center;
        transform: rotate(90deg);
    }

    .main-currency-converter__result-value {
        font-size: 1.25rem;
    }
}