:root {
    --primary-color: #0066cc;
    --primary-hover: #004fb3;
    --accent-color: #e65100;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #212529;
    --text-sub: #6c757d;
    --border-color: #dee2e6;
    --header-bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.5; }

/* Header */
.site-header { background-color: var(--header-bg); border-bottom: 1px solid var(--border-color); padding: 10px 20px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.header-container { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary-color); text-decoration: none; display: flex; align-items: center; gap: 2px; }
.logo span { color: var(--accent-color); }

/* Category Dropdown */
.header-nav-dropdown { position: relative; }
.dropdown-toggle { background: var(--bg-color); border: 1px solid var(--border-color); padding: 7px 12px; border-radius: 4px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--text-main); white-space: nowrap; }
.dropdown-toggle:hover { background: var(--border-color); }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 16px; width: 920px; grid-template-columns: repeat(3, 1fr); gap: 16px; z-index: 1001; }
.dropdown-menu.show { display: grid; }
.dropdown-col h4 { font-size: 12px; font-weight: bold; color: var(--primary-color); margin-bottom: 6px; border-bottom: 1px solid var(--border-color); padding-bottom: 3px; }
.dropdown-col a { display: block; font-size: 11px; color: var(--text-main); text-decoration: none; padding: 2px 4px; border-radius: 4px; }
.dropdown-col a:hover { background: var(--bg-color); color: var(--primary-color); }

/* Search Bar */
.search-bar { flex: 1; max-width: 480px; display: flex; }
.search-bar input { width: 100%; padding: 7px 12px; border: 2px solid var(--primary-color); border-radius: 4px 0 0 4px; font-size: 13px; outline: none; }
.search-bar button { background-color: var(--primary-color); color: #fff; border: none; padding: 0 18px; border-radius: 0 4px 4px 0; font-weight: bold; font-size: 13px; cursor: pointer; white-space: nowrap; }
.search-bar button:hover { background-color: var(--primary-hover); }

/* Main Container & Layout */
.main-container { max-width: 1300px; margin: 20px auto; padding: 0 16px; display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
@media (max-width: 900px) { .main-container { grid-template-columns: 1fr; } .dropdown-menu { width: 90vw; left: -20px; grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 14px; height: fit-content; }
.sidebar h3 { font-size: 14px; margin-bottom: 10px; border-bottom: 2px solid var(--primary-color); padding-bottom: 4px; }
.category-tree { display: flex; flex-direction: column; gap: 12px; }
.category-group h4 { font-size: 12px; font-weight: bold; color: var(--primary-color); margin-bottom: 4px; }
.category-sublist { list-style: none; display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.category-sublist a { color: var(--text-main); text-decoration: none; font-size: 12px; display: block; padding: 3px 6px; border-radius: 3px; }
.category-sublist a:hover { background-color: var(--bg-color); color: var(--primary-color); }

/* Content Sections */
.content { display: flex; flex-direction: column; gap: 24px; }

.section-block { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; border-bottom: 2px solid var(--border-color); padding-bottom: 6px; }
.section-header h2 { font-size: 15px; font-weight: bold; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.section-header a { font-size: 12px; color: var(--primary-color); text-decoration: none; }
.section-header a:hover { text-decoration: underline; }

/* Product Grid & Compact Cards (5-6 columns on PC) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(6, 1fr); }
}
.product-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; position: relative; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--primary-color); }

/* Rank Badge */
.product-rank-badge { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; background: #6c757d; color: #fff; font-size: 11px; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.product-rank-badge.rank-1 { background: #d4af37; } /* Gold */
.product-rank-badge.rank-2 { background: #adb5bd; } /* Silver */
.product-rank-badge.rank-3 { background: #cd7f32; } /* Bronze */

.product-img-wrap { width: 100%; height: 120px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border-color); }
.product-img { width: 100%; height: 100%; object-fit: contain; }
.product-img-placeholder { font-size: 11px; color: var(--text-sub); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f1f3f5; }

.product-name { font-size: 12px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 34px; color: var(--text-main); line-height: 1.4; }
.product-price-block { display: flex; align-items: baseline; gap: 3px; }
.price-label { font-size: 10px; color: var(--text-sub); }
.product-price { font-size: 15px; font-weight: bold; color: var(--accent-color); }
.product-shops { font-size: 10px; color: var(--text-sub); background: var(--bg-color); padding: 1px 4px; border-radius: 3px; width: fit-content; }
.sample-notice { font-size: 9px; color: #adb5bd; margin-top: auto; }

/* Footer */
.site-footer { background: #212529; color: #fff; text-align: center; padding: 24px 16px; margin-top: 48px; }
.footer-container { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #adb5bd; text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { font-size: 11px; color: #6c757d; }

.catalog-filter {
    display: grid;
    gap: 10px;
    margin: 12px 0 20px;
}
.catalog-filter label { display: block; font-size: 12px; }
.catalog-filter input:not([type="checkbox"]), .catalog-filter select {
    display: block;
    width: 100%;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.catalog-filter button, .catalog-sort a {
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.catalog-sort { display: flex; flex-wrap: wrap; gap: 5px; }
.catalog-sort a[aria-current] { background: var(--primary-color); color: white; }

.catalog-identifiers {
    display: grid;
    grid-template-columns: minmax(7em, auto) minmax(0, 1fr);
    gap: 4px 12px;
    margin: 8px 0 14px;
}
.catalog-identifiers dt { color: var(--text-sub); }
.catalog-identifiers dd { margin: 0; overflow-wrap: anywhere; }
.catalog-comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.catalog-comparison:focus-visible { outline: 2px solid var(--primary-color); }
.catalog-comparison table { min-width: 680px; }
.catalog-comparison th, .catalog-comparison td { padding: 8px; white-space: nowrap; }
.catalog-comparison th:first-child, .catalog-comparison td:first-child {
    position: sticky;
    left: 0;
    background: var(--card-bg);
    box-shadow: 2px 0 2px rgba(0,0,0,.08);
}

/* Product media and purchase links */
.detail-image { width: min(100%, 240px); height: auto; aspect-ratio: 12 / 11; background: var(--bg-color); }
.detail-image-trigger { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: .5rem; cursor: zoom-in; }
.detail-image-trigger img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.detail-image-trigger span { position: absolute; inset: auto .5rem .5rem auto; padding: .2rem .5rem; background: #fff; border-radius: .25rem; font-size: .8rem; }
.image-dialog { box-sizing: border-box; width: min(92vw, 42rem); max-height: 90vh; border: 0; border-radius: .5rem; padding: 1rem; text-align: center; overflow: auto; }
.image-dialog::backdrop { background: rgba(9, 19, 33, .78); }
.image-dialog h2 { font-size: 1rem; overflow-wrap: anywhere; }
.image-dialog form { text-align: right; }
.image-dialog button { padding: .45rem .75rem; cursor: pointer; }
.image-dialog img { box-sizing: border-box; display: block; width: min(100%, 32rem); height: auto; max-height: 65vh; object-fit: contain; margin: auto; }
.purchase-link { display: inline-flex; align-items: center; min-height: 44px; gap: .35rem; padding: .45rem .75rem; border-radius: .35rem; background: #174f8e; color: #fff; font-weight: 650; white-space: nowrap; text-decoration: none; }
.purchase-link:hover { background: #103e72; }
.purchase-link:focus-visible, .detail-image-trigger:focus-visible, .image-dialog button:focus-visible { outline: 2px solid #175899; outline-offset: -2px; }


/* ONEDAN UI RENEWAL V1 */

:root {
    --primary-color: #1658b4;
    --primary-hover: #10458e;
    --accent-color: #d62f45;
    --bg-color: #f3f6fb;
    --card-bg: #ffffff;
    --text-main: #172b46;
    --text-sub: #52647a;
    --border-color: #dce4ee;
    --header-bg: #ffffff;
    --ui-radius: 14px;
}

body {
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont,
        "Hiragino Sans", "Noto Sans JP",
        "Yu Gothic", sans-serif;
}

button, input, select {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #78a8ef;
    outline-offset: 3px;
}

/* Header */

.site-header {
    padding: 18px 24px;
    border-top: 4px solid #1658b4;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 3px 16px rgba(20, 49, 89, .06);
}

.header-container {
    position: relative;
    max-width: 1440px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.logo {
    color: #123c78;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.2px;
    white-space: nowrap;
}

.logo span {
    color: #2975d5;
}

.header-nav-dropdown {
    position: static;
}

.dropdown-toggle {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #d6e1ef;
    border-radius: 10px;
    background: #f3f7fc;
    font-size: 14px;
    font-weight: 650;
    color: #174b90;
}

.dropdown-toggle:hover {
    background: #e7effa;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    width: auto;
    max-height: 72vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(17, 42, 79, .17);
}

.dropdown-col h4 {
    font-size: 14px;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.dropdown-col a {
    font-size: 13px;
    padding: 7px 8px;
}

/* Search */

.search-bar {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 48px;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1.5px solid #b6c9e2;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f7f9fd;
    font-size: 16px;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.search-bar button {
    min-width: 92px;
    border-radius: 0 10px 10px 0;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
}

/* Layout */

.main-container {
    max-width: 1440px;
    margin: 28px auto;
    padding: 0 24px;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 24px;
}

.content {
    min-width: 0;
    gap: 24px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-sub);
    overflow-wrap: anywhere;
}

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

/* Sidebar */

.sidebar {
    border-radius: var(--ui-radius);
    padding: 18px;
    box-shadow: 0 3px 12px rgba(17, 42, 79, .035);
}

.sidebar h3 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.category-tree {
    gap: 18px;
}

.category-group h4 {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.category-sublist {
    padding-left: 4px;
}

.category-sublist a {
    font-size: 13px;
    padding: 7px 8px;
    border-radius: 6px;
}

.category-sublist a:hover {
    background: #eaf2ff;
}

/* Sections */

.section-block {
    min-width: 0;
    padding: 22px;
    border-radius: var(--ui-radius);
    box-shadow: 0 3px 16px rgba(17, 42, 79, .035);
}

.section-header {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 13px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.3px;
}

.section-header a {
    font-size: 13px;
    font-weight: 600;
}

/* Product cards */

.product-grid {
    grid-template-columns:
        repeat(auto-fill, minmax(min(100%, 182px), 1fr));
    gap: 16px;
}

.product-card {
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    gap: 9px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(17, 42, 79, .035);
    transition: border-color .15s, box-shadow .15s,
        transform .15s;
}

.product-card:hover {
    border-color: #87ade0;
    box-shadow: 0 7px 20px rgba(17, 42, 79, .1);
}

.product-img-wrap {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #edf1f6;
    background: #fff;
}

.product-img {
    object-fit: contain;
}

.product-img-placeholder {
    background: #f2f5fa;
    border-radius: 8px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    height: 3.1em;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.product-price-block {
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 0;
    margin-top: auto;
}

.price-label {
    color: var(--text-sub);
    font-size: 11px;
    width: 100%;
}

.product-price {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.product-shops {
    background: #edf3fb;
    color: #335678;
    font-size: 11px;
    line-height: 1.5;
    border-radius: 6px;
    padding: 5px 7px;
    max-width: 100%;
}

.product-rank-badge {
    top: 9px;
    left: 9px;
    width: 30px;
    height: 30px;
    font-size: 13px;
    border: 2px solid #fff;
    background: #24528c;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.product-rank-badge.rank-1 {
    background: #b3820b;
}

.product-rank-badge.rank-2 {
    background: #737f90;
}

.product-rank-badge.rank-3 {
    background: #a86335;
}

/* Search filters */

.catalog-filter {
    gap: 14px;
}

.catalog-filter label {
    font-size: 13px;
    font-weight: 600;
}

.catalog-filter input:not([type="checkbox"]),
.catalog-filter select {
    min-height: 42px;
    margin-top: 5px;
    padding: 8px 10px;
    font-size: 16px;
    color: var(--text-main);
    background: #fff;
    border-radius: 8px;
}

.catalog-filter button {
    min-height: 44px;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.catalog-sort {
    gap: 8px;
}

.catalog-sort a {
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
}

/* Comparison tables */

.catalog-comparison {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}

.catalog-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.catalog-comparison th,
.catalog-comparison td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-color);
}

.catalog-comparison th {
    font-size: 12px;
    background: #edf3fa;
    color: #38516d;
}

.purchase-link,
.catalog-comparison .shop-purchase-button {
    border-radius: 9px;
    background: #1658b4;
    padding: 10px 16px;
}

/* Footer */

.site-footer {
    background: #152b49;
    padding: 34px 20px;
}

.footer-links a {
    color: #d5e0ee;
    font-size: 13px;
}

.copyright {
    color: #adbed4;
}

/* Responsive */

@media (max-width: 1100px) {
    .main-container {
        grid-template-columns: 205px minmax(0, 1fr);
        gap: 16px;
    }

    .header-container {
        gap: 14px;
    }

    .logo {
        font-size: 23px;
    }

    .dropdown-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 16px;
    }

    .sidebar .category-tree {
        max-height: 300px;
        overflow-y: auto;
    }

    .header-container {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .search-bar {
        grid-column: 1 / -1;
    }

    .dropdown-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 65vh;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 12px;
    }

    .header-container {
        gap: 10px;
    }

    .logo {
        font-size: clamp(16px, 5vw, 23px);
    }

    .dropdown-toggle {
        font-size: 12px;
        padding: 7px 9px;
        min-height: 40px;
    }

    .dropdown-menu {
        padding: 15px;
        gap: 16px;
    }

    .search-bar {
        min-height: 44px;
    }

    .search-bar button {
        min-width: 65px;
        padding: 0 14px;
    }

    .main-container {
        margin-top: 14px;
        padding: 0 10px;
        gap: 14px;
    }

    .section-block {
        padding: 12px;
        border-radius: 12px;
    }

    .section-header {
        margin-bottom: 14px;
    }

    .section-header h2 {
        font-size: 17px;
    }

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

    .product-card {
        padding: 9px;
        gap: 7px;
    }

    .product-img-wrap {
        padding: 6px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 19px;
    }

    .product-shops {
        font-size: 10px;
    }

    .sidebar {
        padding: 14px;
    }
}

@media (max-width: 350px) {
    .dropdown-menu {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-price {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }
}


/* ONEDAN HOME UI V2 */

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(120deg, #102d57, #174f9e 70%, #2677d2);
    border-radius: 18px;
    padding: 34px 40px;
    color: #fff;
    box-shadow: 0 7px 24px rgba(16,45,87,.13);
}

.home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 370px;
    height: 370px;
    right: -60px;
    top: -100px;
    border-radius: 50%;
    border: 60px solid rgba(255,255,255,.07);
}

.home-eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
    color: #e0edff;
    margin-bottom: 12px;
}

.home-hero h1 {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.035em;
}

.home-hero p {
    font-size: 14px;
    color: #e0edff;
    margin-top: 12px;
    max-width: 580px;
}

.home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 24px;
}

.home-stats > div {
    display: flex;
    flex-direction: column;
}

.home-stats strong {
    font-size: 26px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.home-stats span {
    font-size: 12px;
    color: #e0edff;
    margin-top: 3px;
}

.home-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    color: #154b90;
    border-radius: 9px;
    padding: 11px 20px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.home-hero-button:hover {
    background: #e5efff;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
    gap: 12px;
}

.home-category-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    min-height: 115px;
    padding: 16px 8px;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    background: #fff;
    color: #172b46;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.home-category-card:hover {
    border-color: #90b4e8;
    background: #f0f6ff;
}

.home-category-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #1658b4;
    background: #edf4ff;
    border-radius: 12px;
}

.home-section-note {
    font-size: 12px;
    color: var(--text-sub);
}

.home-comparison-description {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 18px;
}

.product-shops.is-comparable {
    background: #e8f4ff;
    color: #164d91;
    font-weight: 700;
}

.category-group h4 a,
.category-group h4 a:visited {
    color: var(--primary-color);
    text-decoration: none;
}

.category-group h4 a:hover {
    text-decoration: underline;
}

.home-sidebar-details summary {
    font-size: 16px;
    font-weight: 750;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px 0 10px;
}

.home-sidebar-details[open] summary {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 16px;
}

.home-sidebar-details > h3:first-of-type {
    display: none;
}

@media (max-width: 900px) {
    .onedan-home-sidebar {
        grid-row: 2;
    }

    .home-hero {
        padding: 28px;
    }

    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .home-hero h1 {
        font-size: 30px;
    }

    .home-hero p {
        font-size: 13px;
    }

    .home-stats {
        gap: 24px;
    }

    .home-stats strong {
        font-size: 24px;
    }

    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .home-category-card {
        padding: 12px 6px;
        font-size: 11px;
        min-height: 100px;
    }

    .home-category-icon {
        width: 42px;
        height: 42px;
    }

    .home-category-icon svg {
        width: 26px;
        height: 26px;
    }
}


/* ONEDAN UI V3 */

.home-hero {
    padding: 26px 32px;
}

.home-hero h1 {
    font-size: clamp(25px, 2.5vw, 34px);
    line-height: 1.4;
}

.home-hero h1 br {
    display: none;
}

.home-eyebrow {
    margin-bottom: 6px;
}

.home-hero p {
    margin-top: 8px;
}

.home-hero-button {
    margin-top: 16px;
}

.home-stats {
    margin-top: 16px;
}

@media (min-width: 1101px) {
    .home-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 30px;
    }

    .home-eyebrow,
    .home-hero h1,
    .home-hero p,
    .home-hero-button {
        grid-column: 1;
    }

    .home-stats {
        grid-column: 2;
        grid-row: 1 / 5;
        margin: 0;
        padding: 20px 25px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 12px;
        gap: 22px;
    }

    .home-hero-button {
        justify-self: start;
    }
}

.home-category-card {
    min-height: 96px;
    padding: 12px 8px;
    gap: 8px;
}

.home-category-icon {
    width: 42px;
    height: 42px;
}

.home-category-icon svg {
    width: 28px;
    height: 28px;
}

.catalog-sort a[aria-current="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

@media (max-width: 600px) {
    .home-hero {
        padding: 20px;
    }

    .home-hero h1 {
        font-size: 25px;
    }

    .home-hero h1 br {
        display: initial;
    }

    .home-category-card {
        min-height: 90px;
    }
}


/* ONEDAN UI V4 */

.listing-title {
    font-size: 22px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.listing-filter-details summary,
.listing-category-details summary {
    font-size: 15px;
    font-weight: 750;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px 0;
}

.listing-filter-details[open] summary,
.listing-category-details[open] summary {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 14px;
}

.listing-category-details {
    margin-top: 16px;
}

.listing-result-info {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.filter-reset {
    text-align: center;
    color: var(--primary-color);
    font-size: 12px;
    text-decoration: none;
    padding: 8px;
}

.catalog-listing-layout nav[aria-label="ページ移動"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 100px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 650;
}

@media (max-width: 900px) {
    .catalog-listing-layout .sidebar {
        padding: 12px 16px;
    }

    .listing-category-details {
        margin-top: 4px;
        border-top: 1px solid var(--border-color);
    }

    .listing-title {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .catalog-sort {
        width: 100%;
    }

    .catalog-sort a {
        flex: 1;
        text-align: center;
        padding: 8px 6px;
        font-size: 12px;
    }
}


/* ONEDAN SHOP DIRECTORY V6 */

.home-shop-link {
    color: #e0edff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-detail-link {
    color: #1658b4;
    text-decoration: none;
}

.shop-detail-link:hover {
    text-decoration: underline;
}

.shop-directory-nav {
    display: block;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #edf3fb;
    color: #1658b4;
    text-decoration: none;
    font-weight: 650;
}

.shop-directory-header h1 {
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.shop-directory-header > p {
    margin-top: 8px;
    color: var(--text-sub);
}

.directory-shop-profile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.directory-shop-profile > div {
    min-width: 0;
}

.directory-shop-profile .directory-shop-icon {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
}

.directory-shop-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 10px;
    background: #edf3fb;
    color: #1658b4;
    border: 1px solid #dce6f3;
    overflow: hidden;
}

.directory-shop-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: white;
}

.directory-shop-icon img[hidden] {
    display: none;
}

.directory-mall {
    font-size: 12px;
    color: #a62332;
}

.directory-product-count {
    margin-top: 10px;
    color: var(--text-sub);
    font-size: 13px;
}

.directory-product-count strong {
    font-size: 23px;
    color: #1658b4;
}

.directory-search {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.directory-search input,
.directory-search select {
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    font-size: 16px;
}

.directory-search input {
    flex: 1;
}

.directory-search button {
    min-height: 44px;
    background: #1658b4;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
}

.shop-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr));
    gap: 14px;
}

.directory-shop-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-main);
    background: white;
}

.directory-shop-card:hover {
    border-color: #85abe3;
    background: #f5f9ff;
}

.directory-shop-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.directory-count,
.directory-page-info,
.directory-price-note {
    color: var(--text-sub);
    font-size: 12px;
}

.directory-price-note {
    margin-bottom: 16px;
}

.directory-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.directory-pagination a {
    color: #1658b4;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 650;
}

@media (max-width: 900px) {
    .shop-directory-layout > .sidebar {
        grid-row: 2;
    }
}

@media (max-width: 600px) {
    .directory-shop-profile {
        gap: 14px;
    }

    .directory-shop-profile .directory-shop-icon {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .directory-search {
        flex-wrap: wrap;
    }

    .directory-search input {
        flex-basis: 100%;
    }

    .directory-search select,
    .directory-search button {
        flex: 1;
    }

    .shop-directory-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ONEDAN SHOP UI V7 */

.directory-official-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    margin-top: 12px;
    background: #1658b4;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.directory-official-link:hover {
    background: #10458e;
}

.directory-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.directory-category-grid a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    background: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.directory-category-grid a span {
    font-size: 11px;
    background: #edf3fb;
    color: #315783;
    border-radius: 5px;
    padding: 2px 7px;
}

.directory-category-grid a[aria-current="true"] {
    background: #1658b4;
    border-color: #1658b4;
    color: white;
}

.directory-pagination {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.directory-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
}

.directory-pagination a[aria-current="page"] {
    color: white;
    background: #1658b4;
    border-color: #1658b4;
}

.directory-page-gap {
    color: var(--text-sub);
}

@media (max-width: 600px) {
    .directory-category-grid {
        gap: 6px;
    }

    .directory-category-grid a {
        font-size: 12px;
        padding: 8px;
    }

    .directory-pagination {
        gap: 5px;
    }

    .directory-pagination a {
        min-width: 36px;
        padding: 7px;
    }
}


/* ONEDAN MAKER UI V8 */

.home-directory-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.maker-monogram {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid #dce6f3;
    border-radius: 12px;
    background: #edf3fb;
    color: #1658b4;
    font-size: 19px;
    font-weight: 800;
}

.maker-profile-icon {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
    font-size: 30px;
}

.maker-detail-link {
    color: #1658b4;
    text-decoration: none;
    font-weight: 700;
}

.maker-detail-link:hover {
    text-decoration: underline;
}

.maker-inference-note {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 6px;
    border-radius: 5px;
    background: #edf3fb;
    color: #52647a;
    font-size: 10px;
    font-weight: 400;
}

@media (max-width: 600px) {
    .maker-profile-icon {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
        font-size: 24px;
    }

    .home-directory-links {
        gap: 8px;
    }

    .home-directory-links a {
        font-size: 11px;
    }
}


/* ONEDAN PRODUCT UI V9 */

.maker-monogram {
    position: relative;
    overflow: hidden;
}

.maker-monogram img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
    background: white;
}

.maker-monogram img[hidden] {
    display: none;
}

.product-name {
    height: 4.65em;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.original-product-title {
    margin: 10px 0;
    font-size: 12px;
    color: var(--text-sub);
}

.original-product-title summary {
    cursor: pointer;
}

.original-product-title p {
    padding: 10px;
    background: #f3f6fb;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.related-more {
    text-align: center;
    margin-top: 24px;
}

.related-more a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #edf3fb;
    color: #1658b4;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
