:root {
    --accent: #1e4b8f;
    --accent-dark: #163a70;
    --accent-soft: rgba(30, 75, 143, 0.08);
    --success: #1f9d55;
    --success-soft: rgba(31, 157, 85, 0.1);
    --text: #1f2430;
    --muted: #6b7280;
    --page-bg: #eef1f6;
    --card-bg: #ffffff;
    --card-border: #e3e7ee;
    --card-shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
}

* { box-sizing: border-box; }

.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: var(--page-bg);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header__title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    font-family: 'Manrope', 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
}

.site-header__title::before {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50% 50% 50% 0;
    background: var(--accent);
    transform: rotate(-45deg);
}

.site-header__title a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__search-btn {
    flex: 0 0 auto;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: #fff;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__search-btn:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.stores-map-page__map-wrap {
    position: relative;
    width: 100%;
}

.stores-map-page__map {
    width: 100%;
    height: min(40vh, 360px);
    min-height: 240px;
    background: #e8e8e8;
}

.stores-map-page__search {
    width: min(560px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.stores-map-page__locate-btn,
.stores-map-page__keyword {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.stores-map-page__locate-btn {
    color: #fff;
    background: var(--accent);
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.stores-map-page__locate-btn:hover {
    background: var(--accent-dark);
}

.stores-map-page__station {
    position: relative;
}

.stores-map-page__suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-height: 240px;
    overflow-y: auto;
}

.stores-map-page__suggestions li {
    padding: 10px 16px;
    cursor: pointer;
}

.stores-map-page__suggestions li:hover {
    background: #f5f5f5;
}

.stores-map-page__results {
    padding: 24px 20px 64px;
    max-width: 720px;
    margin: 0 auto;
}

.stores-map-page__results-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.stores-map-page__count {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.875rem;
}

.stores-map-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stores-map-list__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease;
}

.stores-map-list__item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.stores-map-list__name {
    font-weight: 600;
}

.stores-map-list__count {
    margin-left: 6px;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

.stores-map-list__distance {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.stores-map-list__address {
    color: var(--muted);
    font-size: 0.875rem;
}

.stores-map-page__empty {
    color: var(--muted);
}

.stores-map-page__error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

.stores-map-info__name {
    font-weight: 600;
    margin: 0 0 4px;
}

.stores-map-info__address {
    margin: 0 0 4px;
    font-size: 0.875rem;
}

/* 都道府県・市区町村・駅・店舗詳細ページ共通 */

.page-inner {
    max-width: 720px;
    margin: 0 auto 64px;
    padding: 24px 20px 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.page-card {
    padding: 20px 20px 24px;
    margin: 0 0 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.content-page__eyebrow {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.breadcrumb__sep {
    color: #ccc;
}

.breadcrumb__current {
    color: var(--text);
}

.content-page__title {
    margin: 0 0 10px;
    font-family: 'Manrope', 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
}

.content-page__count {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    margin: 0 0 4px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.8125rem;
    font-weight: 600;
}

.content-page__section-title {
    margin: 32px 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
}

.content-page__note {
    padding: 14px 16px;
    margin: 0 0 20px;
    border-radius: 12px;
    background: var(--page-bg);
    border: 1px solid var(--card-border);
}

.content-page__note p {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 0.8125rem;
    line-height: 1.7;
}

.content-page__note p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.content-page__empty {
    padding: 16px;
    margin: 0 0 20px;
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
    font-size: 0.9rem;
}

.content-page__back {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
}

.content-page__back a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}

.content-page__back a:hover {
    text-decoration: underline;
}

/* 店舗詳細ページの情報カード */

.content-page__map {
    width: 100%;
    height: 240px;
    margin: 4px 0 16px;
    border-radius: 12px;
    background: #e8e8e8;
    overflow: hidden;
}

.content-page__map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0 16px;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-dark);
}

.btn--outline {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent-dark);
}

.btn--outline:hover {
    background: var(--accent-soft);
}

.store-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 16px;
}

.store-detail__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    margin: 4px 0 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.store-detail__row {
    display: flex;
    gap: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.store-detail__label {
    flex: 0 0 80px;
    color: var(--muted);
    font-size: 0.8125rem;
    padding-top: 2px;
}

.store-detail__value {
    flex: 1;
    word-break: break-word;
}

.store-detail__value a {
    color: var(--accent-dark);
}

.content-page__text {
    margin: 0 0 14px;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text);
}

.content-page__text:last-child {
    margin-bottom: 0;
}

.pref-links {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.pref-links__title {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted);
}

.pref-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pref-links__list a {
    color: var(--muted);
    font-size: 0.8125rem;
    text-decoration: none;
}

.pref-links__list a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.site-footer {
    padding: 24px 20px 40px;
    text-align: center;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 10px;
    font-size: 0.8125rem;
}

.site-footer__nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.site-footer__copyright {
    margin: 0;
    color: #999;
    font-size: 0.75rem;
}

.affiliate-cta {
    position: relative;
    padding: 18px 20px;
    margin: 4px 0 24px;
    border-radius: 12px;
    background: var(--page-bg);
    border: 1px solid var(--card-border);
    text-align: center;
}

.affiliate-cta__text {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--text);
}

.affiliate-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.affiliate-cta__button:hover {
    background: var(--accent-dark);
}

.affiliate-cta__disclosure {
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 700;
}
