.goofee-town-market-search {
    box-sizing: border-box;
    width: 100%;
    margin: 20px auto;
    color: #19384b;
    font-family: inherit;
}

.goofee-town-market-search *,
.goofee-town-market-search *::before,
.goofee-town-market-search *::after {
    box-sizing: inherit;
}

.goofee-town-market-search__inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 24px 30px;
    border: 1px solid #9fd4e8;
    border-top: 4px solid #00a1d6;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 73, 99, 0.09);
}

.goofee-town-market-search__badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 12px;
    padding: 4px 11px;
    border-radius: 6px;
    background: #f8bd00;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.goofee-town-market-search__title {
    margin: 0 0 9px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #004f78 !important;
    font-family: Meiryo, "メイリオ", "Hiragino Kaku Gothic ProN", sans-serif !important;
    font-size: clamp(22px, 3vw, 28px) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em;
    text-shadow: none !important;
}

/* テーマ側が見出しへ付ける点・装飾を無効化 */
.goofee-town-market-search__title::before,
.goofee-town-market-search__title::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    content: none !important;
}

.goofee-town-market-search__description {
    margin: 0 0 23px !important;
    color: #405c6d !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.8 !important;
}

.goofee-town-market-search__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.goofee-town-market-search__field label {
    display: block;
    margin: 0 0 7px;
    color: #153f58 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4;
}

.goofee-town-market-search__select-wrap {
    position: relative;
}

.goofee-town-market-search__select-wrap::after {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #315f78;
    border-bottom: 2px solid #315f78;
    content: '';
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.goofee-town-market-search select {
    width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 44px 0 14px !important;
    border: 1px solid #9fc8dc !important;
    border-radius: 6px !important;
    outline: none !important;
    background: #fff !important;
    color: #17384b !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.goofee-town-market-search select option {
    background: #fff;
    color: #17384b;
    font-weight: 600;
}

.goofee-town-market-search select:focus {
    border-color: #008fc4 !important;
    box-shadow: 0 0 0 3px rgba(0, 143, 196, 0.16) !important;
}

.goofee-town-market-search select:disabled {
    cursor: not-allowed;
    background: #f0f5f7 !important;
    color: #607785 !important;
    -webkit-text-fill-color: #607785 !important;
    opacity: 1 !important;
}

.goofee-town-market-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    min-height: 52px;
    margin: 24px auto 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #008ec3, #006ea0);
    box-shadow: 0 7px 16px rgba(0, 111, 160, 0.22);
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.goofee-town-market-search__button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(0, 111, 160, 0.3);
}

.goofee-town-market-search__button:focus-visible {
    outline: 3px solid rgba(0, 161, 214, 0.3);
    outline-offset: 3px;
}

.goofee-town-market-search__button:disabled {
    background: #dbe5ea !important;
    box-shadow: none;
    color: #687b86 !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

.goofee-town-market-search__error {
    min-height: 1.6em;
    margin: 10px 0 0;
    color: #526b79;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.goofee-town-market-search__error.is-error {
    color: #b52f26;
}

@media (max-width: 640px) {
    .goofee-town-market-search {
        margin: 12px auto;
    }

    .goofee-town-market-search__inner {
        padding: 22px 16px 24px;
        border-radius: 0 0 8px 8px;
    }

    .goofee-town-market-search__title {
        font-size: 21px !important;
    }

    .goofee-town-market-search__description {
        margin-bottom: 18px !important;
        font-size: 13px !important;
    }

    .goofee-town-market-search__fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .goofee-town-market-search select {
        height: 50px !important;
        font-size: 16px !important;
    }

    .goofee-town-market-search__button {
        width: 100%;
        min-height: 50px;
        margin-top: 20px;
        font-size: 14px;
    }
}
