:root {
    --bg: #f4f9ff;
    --panel: #ffffff;
    --panel-2: #e9f8ff;
    --text: #071936;
    --muted: #60708c;
    --line: #c9dcf2;
    --accent: #0077ff;
    --accent-dark: #0050c8;
    --accent-2: #05cfe3;
    --accent-soft: #dff8ff;
    --navy: #061d5c;
    --shadow: 0 18px 42px rgba(0, 67, 160, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(5, 207, 227, 0.14) 42%, rgba(255, 255, 255, 0) 78%),
        linear-gradient(180deg, #f9fcff 0%, var(--bg) 44%, #f7fbff 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(0, 119, 255, 0.16);
    background: rgba(247, 251, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 67, 160, 0.06);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(5, 207, 227, 0.44);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 207, 227, 0.12), 0 12px 26px rgba(0, 80, 200, 0.18);
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.1;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.page {
    padding: 28px 0 42px;
}

.search-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.45fr);
    gap: 28px;
    align-items: end;
    padding: 28px 0 30px;
}

.search-copy h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.search-copy p {
    max-width: 640px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 119, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 250, 255, 0.98) 100%);
    box-shadow: var(--shadow);
}

.search-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.search-form input,
.search-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #bdd5ee;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.search-form input:focus,
.search-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.auth-form input:focus,
.submission-form input:focus,
.submission-form textarea:focus {
    outline: 2px solid rgba(5, 207, 227, 0.22);
    border-color: var(--accent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 119, 255, 0.18);
}

.button:hover {
    border-color: var(--accent-dark);
    background: linear-gradient(135deg, var(--accent-dark) 0%, #00aeca 100%);
}

.button.ghost {
    border-color: rgba(0, 119, 255, 0.22);
    background: #fff;
    color: var(--accent-dark);
    box-shadow: none;
}

.button.ghost:hover {
    background: var(--panel-2);
}

.button.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
}

.button.disabled {
    color: var(--muted);
    pointer-events: none;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.results {
    display: grid;
    gap: 14px;
}

.results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0 6px;
}

.results-head strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.results-head span,
.muted {
    color: var(--muted);
}

.center-card,
.side-panel,
.detail-section,
.contact-panel,
.contact-form-card,
.auth-form,
.submission-card,
.map-section,
.reviews,
.nearby,
.empty-state {
    border: 1px solid rgba(0, 119, 255, 0.14);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.center-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 18px;
    padding: 18px;
}

.card-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.card-title-row h2 {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: 0;
}

.card-title-row a:hover,
.contact-line a:hover,
.brand-list a:hover,
.link-list a:hover,
.breadcrumbs a:hover {
    color: var(--accent);
}

.rating {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 5px 8px;
    border: 1px solid rgba(5, 207, 227, 0.36);
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    text-align: center;
    font-weight: 900;
}

.address {
    margin: 9px 0 0;
}

.contact-line,
.chips,
.brand-list,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.contact-line a,
.chip,
.brand-list a,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(0, 119, 255, 0.16);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
}

.chip {
    background: var(--panel-2);
    color: var(--accent-dark);
}

.card-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    text-align: right;
}

.side-panel {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.side-panel section + section {
    border-top: 1px solid rgba(0, 119, 255, 0.13);
}

.side-panel section {
    padding: 16px;
}

.side-panel h2,
.detail-section h2,
.map-section h2,
.reviews h2,
.nearby h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
}

.link-list {
    display: grid;
    gap: 6px;
}

.link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 6px 0;
    border-bottom: 1px solid #e1edf8;
}

.link-list small {
    color: var(--muted);
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 0 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs > * + *::before {
    content: "/";
    margin-right: 8px;
    color: #95b4d5;
}

.detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.detail-header h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.lead {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.score-box {
    padding: 18px;
    border: 1px solid rgba(0, 119, 255, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f0fbff 100%);
    text-align: center;
    box-shadow: var(--shadow);
}

.score-box strong {
    display: block;
    color: var(--accent);
    font-size: 42px;
    line-height: 1;
}

.score-box span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.detail-section,
.contact-panel,
.contact-form-card,
.submission-card,
.map-section,
.reviews,
.nearby,
.empty-state {
    padding: 18px;
}

.contact-page,
.auth-page,
.submission-page {
    display: grid;
    gap: 22px;
}

.contact-copy,
.auth-copy,
.submission-copy {
    max-width: 720px;
    padding: 18px 0 4px;
}

.contact-copy h1,
.auth-copy h1,
.submission-copy h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.contact-copy p,
.auth-copy p,
.submission-copy p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.contact-panel h2,
.contact-form-card h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.contact-form,
.auth-form,
.submission-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-form {
    max-width: 640px;
    padding: 18px;
}

.submission-card {
    max-width: 860px;
}

.contact-form label,
.auth-form label,
.submission-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.contact-form .full,
.submission-form .full {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea,
.auth-form input,
.submission-form input,
.submission-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #bdd5ee;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.contact-form textarea,
.submission-form textarea {
    resize: vertical;
}

.contact-form button,
.auth-form button,
.submission-form button {
    justify-self: start;
}

.check-line {
    display: inline-flex !important;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    color: var(--text) !important;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 10px;
}

.field-error {
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.notice.success {
    border: 1px solid #9ee6d0;
    background: #e7fbf7;
    color: #056853;
}

.notice.error {
    border: 1px solid #f0b3aa;
    background: #fff1f0;
    color: #b42318;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
}

.info-list dt {
    color: var(--muted);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
}

.stack {
    display: grid;
    gap: 6px;
}

.stack a {
    color: var(--accent-dark);
    overflow-wrap: anywhere;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.schedule span {
    color: var(--muted);
}

.brand-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.brand-table a {
    display: grid;
    gap: 2px;
    min-height: 54px;
    padding: 9px;
    border: 1px solid rgba(0, 119, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}

.brand-table small {
    color: var(--muted);
}

.map-section {
    margin-top: 16px;
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 360px;
    margin-top: 14px;
    border: 0;
    border-radius: 8px;
}

.reviews,
.nearby {
    margin-top: 16px;
}

.review-grid,
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

blockquote {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(0, 119, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}

blockquote p {
    margin: 8px 0;
}

blockquote footer {
    color: var(--muted);
    font-size: 13px;
}

.nearby-grid a {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(0, 119, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}

.nearby-grid span {
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    text-align: center;
}

.site-footer {
    border-top: 1px solid rgba(0, 119, 255, 0.16);
    background: rgba(247, 251, 255, 0.8);
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.footer-links a,
.footer-links button {
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.footer-links form {
    margin: 0;
}

@media (max-width: 920px) {
    .search-section,
    .content-grid,
    .contact-grid,
    .detail-grid,
    .review-grid,
    .nearby-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        order: -1;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .header-inner,
    .footer-inner,
    .detail-header,
    .center-card {
        grid-template-columns: 1fr;
    }

    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
    }

    .search-form,
    .contact-form,
    .auth-form,
    .submission-form,
    .brand-table,
    .schedule {
        grid-template-columns: 1fr;
    }

    .contact-form .full,
    .submission-form .full,
    .check-line,
    .form-actions {
        grid-column: auto;
    }

    .card-side {
        text-align: left;
    }

    .info-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
