/* ===============================
   カスタム投稿タイプスタイル
   =============================== */

/* ストアアーカイブ */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.store-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all var(--animation-duration) var(--animation-timing);
    animation: fadeInUp 0.6s ease forwards;
}

.store-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.store-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.store-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-duration) ease;
}

.store-item:hover .store-thumbnail img {
    transform: scale(1.1);
}

.store-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--animation-duration) ease;
}

.store-item:hover .store-overlay {
    opacity: 1;
}

.store-overlay-content {
    text-align: center;
    color: white;
}

.store-overlay-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-overlay-excerpt {
    font-size: 0.875rem;
    opacity: 0.9;
}

.store-content {
    padding: 1.5rem;
}

.store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.store-client,
.store-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-client::before {
    content: "";
}

.store-date::before {
    content: "";
}

/* サービス */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: all var(--animation-duration) var(--animation-timing);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: left var(--animation-duration) ease;
}

.service-item:hover::before {
    left: 0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform var(--animation-duration) ease;
}

.service-item:hover .service-icon {
    transform: rotate(360deg);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-features li:last-child {
    border-bottom: none;
}

.search-results .page-header {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    text-align: center;
}

/* Search results summary above store list */
.search-results-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    padding: 6px 10px;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.search-results-summary .search-results-label {
    margin-right: 6px;
    color: var(--text-dark);
}

.search-results-summary .search-results-count {
    background: var(--primary-color);
    /* brown -> use theme primary color */
    color: var(--bg-white);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    margin-right: 6px;
    font-size: 13px;
}

.search-results-summary .search-results-pref {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
}


/* Tabs inside the search-results summary */
.search-results-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-results-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    padding: 6px 10px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.search-results-summary .search-results-actions {
    margin-left: 12px;
}

/* static left label */
.search-results-label-static {
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 12px;
}

/* wrapper around remove + tab */
.search-results-tab-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background-color: var(--primary-color);
}

.search-results-tab-remove {
    background: transparent;
    border: 0;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
}

.search-results .page-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.search-results .search-form {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Store Search (PC) ========== */
.store-search-page .page-title {
    text-align: center;
    margin: 0 0 21px;
}

/* Store search: typography overrides */
.store-search-page .page-title {
    /* Use TrajanPro3Regular (declared via @font-face in theme style.css) */
    font-family: 'Trajan Pro 3', 'TrajanPro3Regular', serif;
    font-weight: 400;
    color: var(--primary-color);
    font-size: 80px;
    line-height: 1;
}

.store-search-page .tab-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.store-search-page .tab-button {
    font-family: 'Trajan Pro 3', 'TrajanPro3Regular', serif;
    font-weight: 400;
    font-size: 11px;
    color: var(--text-dark);
    cursor: pointer;
    background: rgba(var(--text-muted-rgb), 0.3);
    border-radius: 5px;
    transition: background .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 5px 37px;
}

.store-search-page .tab-button::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.store-search-page .tab-button[data-tab="map"]::before {
    background-image: url('../images/icon_map_gray.svg');
}

.store-search-page .tab-button[data-tab="list"]::before {
    background-image: url('../images/icon_list_gray.svg');
}

.store-search-page .tab-button.active {
    background: rgba(var(--primary-rgb), 0.3);
}

/* Remove hover visual changes for tab buttons */
.store-search-page .tab-button:hover {
    color: inherit;
    transform: translate(0);
    box-shadow: none;
}

.store-search-page .tab-button.active[data-tab="map"]::before {
    background-image: url('../images/icon_map_brown.svg');
}

.store-search-page .tab-button.active[data-tab="list"]::before {
    background-image: url('../images/icon_list_brown.svg');
}

.store-search-page .tab-content {
    display: none;
    overflow: hidden;
}

.store-search-page #list-tab.tab-content {
    background: white;
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.store-search-page .tab-content.active {
    position: relative;
    display: block;
}

/* Map */
/* map-search-input removed; use #map-keyword within the map-search form for keyword searches */

.map-canvas {
    position: relative;
    width: 100%;
    min-height: 320px;
    height: 800px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.map-filter-toggle {
    display: none;
}

/* Visually-hidden helper */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

#map-filter.map-filter--hidden {
    transform: translateX(-100%);
    background: rgba(255, 255, 255, 0);
}

/* Defensive: hide Google Maps fullscreen control if present */
.gm-fullscreen-control,
.gm-control-active .gm-fullscreen-control,
button[title="Toggle fullscreen view"] {
    display: none !important;
}

/* Map info window styles (moved from inline template) */
.gm-style-iw-ch {
    padding-top: 10px;
}

.gm-style-iw-chr {
    padding: 5px;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    /* overflow-y: scroll !important; */
}

.gm-style .gm-style-iw-c {
    max-width: 400px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 0;
}

.gm-style .gm-style-iw-c * {
    scrollbar-color: var(--primary-color) transparent;
}

.gm-ui-hover-effect {
    width: 20px !important;
    height: 20px !important;
}

.gm-ui-hover-effect span {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    background-color: var(--primary-color);
}

.gm-custom-info {
    width: 100%;
    max-height: 220px;
    overflow: auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    padding: 0 14px 14px;
    font-size: 14px;
    color: #222;
    position: relative;
    font-family: 'Zen kaku gothic antique', 'ZenKakuGothicAntique', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
}

.gm-row {
    display: flex;
    column-gap: 3px;
    margin-bottom: 8px;
    min-width: 0;
    /* allow flex items to shrink instead of overflowing */
    text-align: left;
}

.gm-row .btn-map {
    margin-left: auto;
    /* push the MAP button to the far right */
    align-self: center;
    /* vertically center in the row */
    flex: 0 0 auto;
    /* don't grow/shrink to avoid unexpected width changes */
}

/* Ensure address/station text wraps instead of creating horizontal scroll */
.gm-addr,
.gm-station,
.gm-title {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.gm-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 10px;
}

.gm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 16px;
}

.gm-badge {
    display: inline-block;
    font-size: 9px;
    background: var(--primary-color);
    color: white;
    border-radius: 999px;
    padding: 2px 6px;
}

.gm-custom-body {
    font-size: 15px;
}

.gm-custom-body a {
    color: var(--text-dark);
}

/* font-face and base body font-family moved to theme's style.css */

.gm-station {
    font-size: 13px;
    color: #666;
}

.gm-row--sns {
    display: flex;
    gap: 8px;
}

.gm-custom-info .sns {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Google Maps custom icon helpers */
.gm-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.gm-icon--tel {
    background-image: url('../images/icon_phone.svg');
}

.gm-icon--addr {
    background-image: url('../images/icon_marker.svg');
}

.gm-icon--station {
    background-image: url('../images/icon_bus.svg');
}

/* When the filter has been moved into Google Maps controls */
.map-control--moved {
    margin-left: 8px;
}

/* Advanced marker container (when using AdvancedMarkerView) */
.adv-marker {
    display: inline-block;
    line-height: 0;
    transform: translateY(-100%);
    /* align bottom tip */
    pointer-events: auto;
}

.adv-marker__img {
    display: block;
    width: 18px;
    height: 24px;
    object-fit: contain;
    pointer-events: auto;
}

/* Consolidated map filter used inside the #map element
   Unified selector: .list-filter.map-search.search-form-inline
   This replaces previous multiple .map-search and .list-filter rules. */
.list-filter.map-search.search-form-inline {
    /* position overlayed on the map */
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 60;
    /* above map controls */

    /* sizing */
    width: 315px;
    min-width: 300px;
    max-width: 420px;
    max-width: calc(100% - 32px);

    /* visual */
    padding: 18px 33px 18px 18px;
    border-radius: 0 20px 20px 0;
    background: white;

    /* layout inside */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Responsive: on small screens keep the filter in normal document flow above the map */

.list-filter.map-search.search-form-inline .list-filter__row {
    display: flex;
    /* ensure vertical stacking inside the map search form */
    flex-direction: column;
    gap: 12px;
}

.list-filter.map-search.search-form-inline .list-filter__row--bottom {
    display: flex;
    gap: 12px;
    align-items: center;
}

.list-filter.map-search.search-form-inline .list-filter__field {
    width: 100%;
}

.list-filter.map-search.search-form-inline .searchbar__submit {
    width: 100%;
    height: 43px;
    border-radius: 6px;
}

.list-filter.map-search.search-form-inline .btn-clear {
    flex: 1;
    width: 100%;
    padding: 12px;
}

/* Visual tweaks to match provided screenshot */
.list-filter.map-search.search-form-inline .list-filter__label {
    margin-bottom: 6px;
}

.list-filter.map-search.search-form-inline .searchbar__input,
.list-filter.map-search.search-form-inline .select,
.list-filter.map-search.search-form-inline .input {
    font-family: 'Zen kaku gothic antique', 'ZenKakuGothicAntique', sans-serif;
    font-size: 13px;
    font-weight: 400;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--primary-color);
    padding: 10px 8px;
    color: var(--text-dark);
    background: transparent;
}

input::placeholder {
    color: var(--primary-color);
}

.list-filter.map-search.search-form-inline .searchbar__submit {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.3);
    text-align: left;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    border: none;
    border-radius: 0;
    padding: 10px 16px;
}

.list-filter.map-search.search-form-inline .btn-clear {
    font-family: 'Zen kaku gothic antique', 'ZenKakuGothicAntique', sans-serif;
    font-size: 14px;
    font-weight: 400;
    border-radius: 0;
}

.list-filter.map-search.search-form-inline .tab-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Map search result message */
.map-search-result-message {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 14px;
    color: var(--accent-color);
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: center;
    font-weight: 500;
}



/* Search forms */
.search-form-inline {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-form-inline input[type="text"] {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 220px;
}

.search-form-inline .btn {
    padding: 9px 16px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-white);
}

.store-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.store-card__header {
    padding: 14px 16px;
    background: #fafafa;
}

.store-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.store-card__body {
    padding: 16px;
}

.store-card__meta {
    margin: 0;
}

.store-card__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
    padding: 6px 0;
}

.store-card__row dt {
    margin: 0;
    color: #666;
    font-weight: 600;
}

.store-card__row dd {
    margin: 0;
    color: #222;
}

.store-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.store-card a:hover {
    text-decoration: underline;
}

/* Optional hover */
.store-card:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
    transition: box-shadow .2s ease, transform .2s ease;
}

/* ==== Store Search: List Filter (PC) ==== */
.list-filter.list-search {
    max-width: 862px;
    margin: 21px auto 27px;
}

.container:has(.list-filter.list-search) {
    width: 100%;
    max-width: none;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: white;
    background-color: transparent;
}

.list-filter__title {
    font-family: 'Trajan Pro 3', 'TrajanPro3Regular', serif;
    font-size: 18px;
    letter-spacing: .05em;
    color: var(--primary-color);
    margin: 0 0 13px;
    font-weight: 400;
    text-align: center;
}

.list-filter__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

/* Icons inside filter fields */
.list-filter__field {
    position: relative;
}

.list-filter__field .select-wrap::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* Prefecture icon */
.list-filter__field:first-child .select-wrap::before {
    background-image: url('../images/icon_prefecture.svg');
}

/* Product icon (third column) */
.list-filter__row>.list-filter__field:nth-child(3) .select-wrap::before {
    background-image: url('../images/icon_product.svg');
}

/* Add left padding only for inputs that show left icons (prefecture and product fields) */
.list-filter__field:first-child .select,
.list-filter__row>.list-filter__field:first-child .select,
.list-filter__row>.list-filter__field:nth-child(3) .select,
.list-filter__field:first-child .input,
.list-filter__row>.list-filter__field:first-child .input,
.list-filter__row>.list-filter__field:nth-child(3) .input {
    padding-left: 44px;
}

/* Replace the default pulldown arrow with custom icon */
.select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    background-image: url('../images/icon_arrow_pulldown.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* Place lens icon on the right side of the submit button */
/* removed earlier ::after icon to use ::before for the icon and ::after for the text label */
.list-filter__row--middle,
.list-filter__row--bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.list-filter__row--middle {
    margin-bottom: 18px;
}

.list-filter__row--bottom {
    max-width: 570px;
}

.list-filter__label {
    display: block;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: .08em;
}

.select-wrap {
    position: relative;
}

.select,
.input,
.input[type="text"] {
    width: 100%;
    padding: 4px 14px;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    background: #fff;
    color: var(--text-dark);
}

.select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.list-filter.list-filter .searchbar__input {
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 5px 20px;
}

.searchbar {
    position: relative;
    width: 100%;
}

.searchbar__input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid #d7c7a0;
    border-radius: 6px;
    background: linear-gradient(180deg, #f8f3e6, #efe5cc);
    color: #6b5b39;
}

button#list-search-button {
    width: 100%;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.3);
    font-size: 15px;
    text-align: center;
    border-radius: 0;
    padding: 7px 17px;
}

.searchbar__submit::before {
    /* show lens icon (no text) */
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('../images/icon_lens.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.list-filter.map-search.search-form-inline .searchbar__submit:hover,
button#list-search-button:hover {
    background: var(--primary-color);
    color: white;
}

.searchbar__submit:hover::before {
    background-image: url('../images/icon_lens_white.svg');
}

.btn-clear {
    padding: 10px 16px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    letter-spacing: .08em;
    cursor: pointer;
    font-size: 14px;
}

.btn-clear:hover {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.list-filter.list-search .btn-clear {
    border-radius: 0;
    padding: 7px 20px;
}

/* spacing with list below */
#store-list {
    margin-top: 20px;
}

/* Ensure store-list grid still looks good */
.store-list {
    display: grid;
    gap: 24px;
}

.store-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

section h3.store-group__title {
    font-size: 15px;
    font-weight: 400;
    margin-left: 0.5em;
    display: flex;
    justify-content: space-between;
}

section h3.store-group__title:after {
    content: "";
    width: 90%;
    height: 1px;
    border-bottom: 1px solid #4d4d4d;
    display: block;
    padding: 5px;
    margin-left: 5px;
}

.store-card.store-card--rich {
    width: calc(50% - 15px);
}

/* Responsive media queries have been consolidated and moved to the end of this file. */
/* ==== Store Search: Rich List Card ==== */
.store-card--rich {
    border: 1px solid #e8d9b3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
    overflow: hidden;
    margin-bottom: 7.5px;
}

.store-card--rich .store-card__header {
    padding: 14px 18px 6px;
    border-radius: 14px 14px 0 0;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.badge--prefecture {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    padding: 3px 8px;
    border-radius: 0;
    width: auto;
    max-width: 80px;
    text-align: center;
    font-weight: 200;
}

.store-card__title {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    margin: 6px 0 10px;
    color: var(--text-dark);
}

.store-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
}

.chip {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 9999px;
    background: var(--primary-color);
    color: var(--bg-white);
}

.store-card--rich .store-card__body {
    padding: 14px 18px 18px;
}

.store-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.store-info__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    min-width: 0;
    /* allow the flex item to shrink instead of forcing the container wider */
}

.store-info__item--site a,
.store-info__item--addr .store-info__text,
.store-info__item--tel a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.store-info__item a {
    color: var(--text-dark);
    text-decoration: none;
}

.store-info__item a:hover {
    text-decoration: underline;
}

.store-info__item--tel a {
    font-size: 20px;
    font-family: 'Bahnshrift"';
}

.store-info__item::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.store-info__item--tel::before {
    background-image: url('../images/icon_phone.svg');
}

.store-info__item--site::before {
    background-image: url('../images/icon_smartphone.svg');
}

.store-info__item--hpb::before {
    background-image: url('../images/icon_tiktok.svg');
}

.store-info__item--addr::before {
    background-image: url('../images/icon_marker.svg');
}

.store-info__item--station::before {
    background-image: url('../images/icon_bus.svg');
}

.store-info__item--sns::before {
    content: none;
}

.store-info__text {
    margin-right: 8px;
}

a.btn-map {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    margin-left: 6px;
}

.store-card__body .sns-links {
    display: flex;
    gap: 8px;
}

.store-card__body .sns {
    display: inline-block;
    width: 26px;
    height: 26px;
    color: #fff;
    font-size: 12px;
    line-height: 26px;
    text-align: center;
    text-decoration: none;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
}

/* Social icon images (use background SVGs) */
.store-card__footer {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: var(--bg-white);
}

.store-card__divider {
    border: 0;
    border-top: 1px solid var(--primary-color);
    margin: 0 auto;
    width: calc(100% - 32px);
}

/* Social icons now live in footer */
.store-card__footer .sns-links {
    display: flex;
    gap: 8px;
}

.store-card__footer .sns {
    width: 22px;
    height: 22px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.store-card__footer .sns--ig {
    background-image: url('../images/icon_instagram.svg');
}

.store-card__footer .sns--tt {
    background-image: url('../images/icon_tiktok.svg');
}

.store-card__footer .sns--hp {
    width: 84px;
    background-image: url('../images/icon_hpb.png');
}

/* Load more button */
.store-list-loadmore-wrap {
    text-align: center;
}

button#store-list-loadmore {
    font-family: 'Trajan Pro 3', 'TrajanPro3Regular', serif;
    font-weight: 400;
    font-size: 16px;
    background: rgba(var(--primary-rgb), 0.3);
    color: var(--text-dark);
    border-radius: 0;
    text-align: center;
    margin: 50px auto;
}

/* ========== Consolidated responsive queries (moved to file end) ========== */

@media (max-width: 1024px) {
    .list-filter__row {
        grid-template-columns: 1fr 1fr;
    }

    .store-list {
        /* grid-template-columns: repeat(2, 1fr); */
    }
}

@media (max-width: 768px) {

    .single-post .entry-title {
        font-size: 2rem;
    }

    .single-post .post-hero img {
        height: 250px;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-previous {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .comments-area {
        padding: 1.5rem;
    }

    .error404 .page-title {
        font-size: 3rem;
    }

    .archive .page-header {
        padding: 2rem 1rem;
    }

    .store-search-page .page-title {
        font-size: 35px;
    }

    #map-filter {
        position: relative;
        transition: transform 0.28s ease, opacity 0.2s ease;
        transform: translateX(0);
        opacity: 1;
        will-change: transform, opacity;
        position: absolute;
        background: rgba(255, 255, 255, 1);
    }

    .map-filter-toggle {
        position: absolute;
        right: -30px;
        top: 0;
        z-index: 80;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 60px;
        border-radius: 0 10px 10px 0;
        border: 1px solid rgba(0, 0, 0, 0.06);
        background: rgba(var(--bg-white-rgb, 255, 255, 255), 0.95);
        padding: 0;
        background: var(--primary-color);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .list-filter.list-search {
        padding: 0 15px;
    }

    .list-filter.map-search.search-form-inline {
        left: 2px;
        top: 20px;
        transform: translate(0, 0);
        width: calc(100% - 40px);
        min-width: 0;
        padding: 30px 20px;
        border-radius: 0 0 20px 0;
        margin: 18px auto 24px auto;
    }

    .store-grid,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .list-filter__row,
    .list-filter__row--bottom {
        grid-template-columns: 1fr;
    }

    .store-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .single-post .entry-content {
        font-size: 1rem;
    }

    .comment {
        padding: 1rem;
    }

    .error404 .search-form {
        flex-direction: column;
        align-items: center;
    }

    .store-content,
    .service-item {
        padding: 1rem;
    }
}

/* ========== loading ========== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    z-index: 9999;
}

#loading-logo {
    width: 30VW;
    max-width: 80%;
    height: auto;
    opacity: 1;
    transform: scale(1);
    border-radius: 0;
}

img {
    border-radius: unset;
}

/* ========== MAIN PAGE ========== */
#page {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    overflow-x: hidden;
}

header#masthead {
    padding: 20px;
}

header#masthead.scrolled {
    backdrop-filter: saturate(180%) blur(2px);
    background: rgba(255, 255, 255, 0.3);
}

button.menu-toggle:focus {
    outline: none;
    background: none;
    border: none;
    box-shadow: none;
}

body {
    background: url(../images/main_bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
}

section {
    position: relative;
}

.mainlogo {
    height: 50px;
    display: flex;
    align-items: center;
}

.mainlogo h1 {
    font-family: 'Trajan Pro 3';
    font-weight: 400;
    font-size: 32px;
    line-height: 48px;
    margin: 0;
    margin-left: 0.2em;
    color: #b79550;
}

.mainlogo img {
    display: block;
    height: 25px;
    width: auto;
    border-radius: unset;
    margin-left: 5px;
}

.main_copy {
    display: flex;
    height: 60svh;
    padding-top: 15svh;
}

.main_copy h2 {
    color: #b79550;
    font-family: "Zen Old Mincho", serif;
    font-size: clamp(25px, 3.5vw, 70px);
    font-weight: 200;
}

.slide_products {
    position: absolute;
    top: 10vw;
}

.diagonal_001 {
    transform: rotate(-45deg);
    overflow: hidden+;
    margin-left: -40vw;
    width: 200vw;
}

.diagonal_001 .swiper {
    width: 100%;
    height: 120px;
    margin-bottom: -15px;
}

.diagonal_001 .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    width: auto;
    flex-shrink: 0;
}

.diagonal_001 .swiper-slide img {
    display: block;
    width: auto;
    height: auto;
    max-height: 120px;
}

section.intro {
    position: relative;
    min-height: 80svh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    padding-right: 10%;
}

section.intro .section_header {
    position: relative;
}

.arc {
    position: absolute;
    top: -180px;
    width: 300px;
    right: -130px;
}

svg.arc-svg {
    transform: rotateZ(45deg);
    position: absolute;
    top: 100px;
    right: -40px;
    width: 300px;
    color: #b79550;
}

svg.arc-svg text {
    font-family: 'Trajan Pro 3';
    font-size: 16px;
    fill: #b79550;
}

.animation_text h2 {
    font-family: 'Trajan Pro 3';
    font-weight: 400;
    font-size: 60px;
    line-height: 1.2em;
    color: #b79550;
}

.animation_text h2 span {
    display: inline-block;
    /* ���օgλ��y�ƄӤ����뤿���� */
}

section.lineup {
    padding: 60px 0;
}

.product_list .swiper-slide {
    transition: transform 0.4s, opacity 0.4s;
    transform: translateY(30px) scale(1);
    opacity: 0.6;
    position: relative;
    overflow: visible;
}

.product_list .swiper-slide-active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.product_list .swiper-slide-prev {
    transform: translateY(30px) rotateZ(-5deg);
}

.product_list .swiper-slide-next {
    transform: translateY(30px) rotateZ(5deg);
}

.product_list .swiper-slide.prev2 {
    transform: translateY(115px) rotateZ(-10deg);
}

.product_list .swiper-slide.next2 {
    transform: translateY(115px) rotateZ(10deg);
}

/* Ԕ���ƥ����� */
.product_list .product-detail {
    position: relative;
    /* ���饤���ڤǸߤ��ɉ� */
    opacity: 0;
    transition: opacity 0.6s;
    max-width: 100%;
    margin-top: 10px;
    max-width: 480px;
    margin: 0 -30px;
}

.product-detail {
    background: #fff;
    padding: 120px 50px;
    border-radius: 50vw;
    border: 1px solid #b79550;
}

.product_list .swiper-slide-active .product-detail {
    opacity: 1;
}

.product-detail h2.en_name {
    font-family: 'Bahnschrift';
    font-size: 20px;
    color: #b79550;
    letter-spacing: 0.5px;
    font-weight: normal;
    margin-bottom: 4px;
}

.product-detail h3.fullname {
    font-size: 20px;
    font-weight: bold;
}

.product-detail p.description.text-center {
    font-size: 20px;
}

.product-detail p.detail {
    font-size: 15px;
}

.product-detail .gel-type {
    margin-bottom: 30px;
}

.product-detail span.label {
    color: #B7954F;
    font-family: "Bahnschrift";
}

span.label {
    font-family: 'Bahnschrift';
    font-size: 15px;
    color: #b79550;
}

.rating-item {
    display: flex;
    margin: 10px 0;
    justify-content: center;
}

span.rating-label {
    background: #b79550;
    min-width: 130px;
    display: block;
    padding: 2px 5px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    margin-right: 1em;
}

.stars i {
    color: #b79550;
}

.store_link_banner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.store_link_banner a {
    padding: 30px;
    display: block;
    background: #b79550;
    cursor: pointer;
}

.store_link_banner a h3 {
    font-family: 'Trajan Pro 3';
    color: #fff;
    font-size: 25px;
    margin-bottom: 0;
}

.store_link_banner a h3 span {
    display: block;
    font-size: 16px;
    font-weight: normal;
    margin-top: 5px;
}

section.news {
    background: #fff;
    padding: 60px 0px;
    margin: 0 -15px;
}

section.news .section_header {
    padding-left: 60px;
    padding-right: 60px;
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.news_panel {
    display: flex;
    position: relative;
}

.news .news_panel .swiper-button-prev,
.news .news_panel .swiper-button-next {
    position: relative;
    top: unset;
    left: unset;
    right: unset;
    height: 25px;
    color: #b79550;
    margin: 0 15px;
}

.news .news_panel .swiper-button-prev:after,
.news .news_panel .swiper-button-next:after {
    font-size: 22px;
}

.to_news_list a {
    background: rgba(187, 149, 80, 0.3);
    color: #4D4D4D;
    font-family: 'Trajan Pro 3';
    padding: 5px 25px;
    border-radius: 3em;
}

section.media {
    background: #fff;
    padding: 60px 60px;
    margin: 0 -15px;
    display: block;
}

.section_header h3 {
    font-size: clamp(50px, 7vw, 120px);
    font-family: 'Trajan Pro 3';
    color: #b79550;
    font-weight: 400;
}

.news-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* �����Τˤ��� */
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ��פʤ������륯���å� */
    display: block;
}

h3.news-title a {
    font-size: 17px;
    font-weight: normal;
    margin-top: 10px;
    color: #4D4D4D;
}

a.news-more {
    background: rgba(183, 149, 80, 0.3);
    padding: 2px 10px;
    width: 130px;
    display: block;
    color: #4d4d4d;
    font-family: 'Trajan Pro 3';
    font-size: 14px;
    margin-top: 40px;
    width: 180px;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

a.news-more:hover {
    background: rgba(183, 149, 80, 1);
    outline: none;
    border: none;
    text-decoration: none;
}

.media .section_header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.media-card {
    position: relative;
    cursor: pointer;
    margin: 10px 0;
}

.media-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

section.interlude {
    background: url(../images/interlude.webp);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 -15px;
    padding: 60px;
    min-height: 50svh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.interlude_text {
    font-family: "Zen Old Mincho", serif;
}

.interlude_text h3 {
    font-weight: 900;
    font-family: 'Zen Old Mincho';
    font-size: 35px;
    margin-bottom: 1em;
}

section.footer_image {
    background-color: #fff;
    background-image: url(../images/inter_bg.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: block;
    height: 60svh;
    margin: 0 -15px;
}

.single article {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.site-footer {
    background-color: #fff;
    background-image: url(../images/footer_bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
}

.footer_logo {
    margin-bottom: 100px;
}

.footer_logo a img {
    width: 200px;
}

.footer_menu_wrap {
    display: flex;
}

.footer_menu,
.footer_sub_menu {
    list-style: none;
    font-family: 'Bahnschrift';
}

.footer_menu a,
.footer_sub_menu a {
    line-height: 31px;
    font-size: 15px;
}

.footer_menu a:hover,
.footer_sub_menu a:hover {
    border-color: #4D4D4D;
    color: #4D4D4D;
}

.sitepolicy ul {
    list-style: none;
    display: flex;
    font-family: 'Bahnschrift';
}

.sitepolicy ul li a {
    font-size: 13px;
    margin-right: 10px;
}

ul.footer_sns_menu {
    list-style: none;
    display: flex;
}

ul.footer_sns_menu a {
    font-size: 25px;
    margin-right: 10px;
}

ul.footer_sns_menu a:hover {
    color: #4D4D4D;
    border: none;
}

a:hover i.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-transition: all 500ms ease-out;
    -moz-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

a:hover i.fa-line {
    color: #06C755;
    -webkit-transition: all 500ms ease-out;
    -moz-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

a:hover i.fa-youtube {
    color: #c4302b;
    -webkit-transition: all 500ms ease-out;
    -moz-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

/* PC��hover����ǥХ������Έ��� */
@media (hover: hover) {
    .media-card:hover .overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ���ޥۣ�hover�ǌ���ǥХ������Έ��� */
.media-card.active .overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1280px) {
    section.hero {
        height: 80svh;
    }

    .slide_products {
        top: 30vh;
    }

    .diagonal_001 {
        width: 250VW;
        margin-left: -60vw;
    }

    .diagonal_001 .swiper {
        height: 100px;
    }

    .diagonal_001 .swiper-slide img {
        max-height: 100px;
    }

    .slide_products {
        position: absolute;
        top: 30vh;
    }

}

@media (max-width: 768px) {
    section.hero {
        height: 150svh;
    }

    .mainlogo h1 {
        font-size: 25px;
    }

    .animation_text {
        margin-bottom: 45px;
    }

    .animation_text h2 {
        font-size: 36px;
    }

    .slide_products {
        position: absolute;
        top: 20vw;
    }

    .diagonal_001 .swiper {
        width: 100%;
        height: 80px;
        margin-bottom: -15px;
    }

    .diagonal_001 {
        transform: rotate(-45deg);
        overflow: hidden;
        margin-left: -80vw;
        width: 410vw;
    }

    section.intro {
        align-items: flex-start;
        padding-right: 5px;
        padding-left: 5px;
    }

    .product_list .product-detail {
        max-width: unset;
        margin-left: -50px;
        margin-right: -50px;
        padding: 80px 20px;
    }

    section.news .section_header {
        padding-left: 20px;
        padding-right: 20px;
        justify-content: center;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .to_news_list a {
        font-size: 13px;
    }

    a.news-more {
        font-size: 14px;
        margin-top: 20px;
        width: 100%;
    }

    section.media {
        padding: 60px 20px;
        margin: 0 -15px;
        display: block;
    }

    section.media .section_header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .media-card {
        padding: 0 7.5px;
    }

    section.interlude {
        padding: 0;
    }

    .interlude_inner {
        backdrop-filter: blur(5px);
        padding: 60px 40px;
        color: #fff;
        width: 100%;
        height: 100%;
        display: flex;
        min-height: 50svh;
        background-color: rgb(0 0 0 / 30%);
        align-items: center;
    }

    .interlude_text h3 {
        color: #fff;
        font-size: 30px;
    }

    .interlude_text {
        line-height: 1.4em;
    }

    .nav-previous {
        border-right: 1px solid #4d4d4d;
        border-bottom: none;
    }

    .nav-previous a,
    .nav-next a {
        padding: 7.5px;
    }

    .store-card.store-card--rich {
        width: 100%;
    }
}

@media (max-width: 1280px),
(max-height: 1000px) {
    section.hero {
        height: 110svh;
    }
}