/* ---------- ヘッダ全体 ---------- */
header {
    background: #fff;
    border-bottom: 5px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ---- トップバー ---- */
.top-bar {
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 6px 0;
}

.top-bar2 {
    background: var(--gray);
    font-size: .85rem;
    padding: .3rem 0;
}

.top-bar2 a:hover {
    color: #BF2E27;
    text-decoration: underline;
}

.top-bar__inner {
    max-width: var(--maxW);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.top-bar__menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.exchange-rate {
    background: var(--accent);
    color: #fff;
    padding: .2rem .6rem;
    border-radius: var(--radius);
}

/* ---- ロゴ・検索・カート ---- */
.mid-box {
    max-width: var(--maxW);
    margin: auto;
    padding: 1rem 1rem 0 1rem;
    display: grid;
    grid-template-columns: 180px 1fr 130px;
    gap: 1.5rem;
    align-items: center;
}

.logo {
    width: 180px;
}

.hot-box {
    overflow: hidden;
}

.hot-box span {
    display: inline-block;
    margin: 4px 6px 4px 0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    list-style: disc;
}

.hot-box span:hover {
    color: #BF2E27;
    text-decoration: underline;
}

/* 検索エリア */
.search {
    overflow: hidden;
}

.search-tabs {
    display: flex;
    gap: .5rem;
    margin-left: 116px;
}

.search-tabs button {
    background: #fff;
    border-left: 3px solid #ddd;
    border-top: 3px solid #ddd;
    border-right: 3px solid #ddd;
    border-bottom: none;
    padding: .3rem .8rem;
    font-size: .8rem;
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: var(--transition);
}

.search-tabs button.active,
.search-tabs button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.search-body {
    border: 4px solid var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

.search-body select {
    border: none;
    background: var(--gray);
    padding: 0 .6rem;
    width: 112px;
    height: 44px;
    outline: none;
    text-align: center;
}

.search-body input {
    flex: 1;
    border: none;
    padding: 0 .8rem;
    height: 44px;
    outline: none;
}

.search-body .btn-search {
    width: 70px;
    height: 44px;
    border: none;
    background: var(--main);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-body .btn-search:hover {
    background: #a8271f;
}

/* 画像検索 */
.img-search {
    margin-top: .6rem;
    text-align: center;
}

.upload-area {
    border: 2px dashed #ccc;
    padding: 1.2rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--main);
    background: #fff7f7;
}

.upload-area input[type=file] {
    display: none;
}

/* カート */
.cart-btn {
    position: relative;
    background: #fdfcfc;
    border: 3px solid #ddd;
    border-radius: var(--radius);
    padding: .6rem 1rem;
    text-align: center;
    font-weight: bold;
    transition: var(--transition);
    margin-top: 5px;
}

.cart-btn:hover {
    text-decoration: none;
    color: var(--accent);
    border-color: var(--accent);
}

.cart-btn .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--yellow);
    color: var(--text);
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    font-size: .8rem;
}

/* ---- グローバルナビ ---- */
nav {
    max-width: var(--maxW);
    margin: auto;
    padding: .5rem 1rem .5rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

nav li {
    list-style: none;
}

nav a {
    font-weight: bold;
    font-size: .95rem;
}

nav a:hover {
    color: var(--main);
}

/* ---------- レスポンシブ（簡易） ---------- */
@media(max-width:768px) {
    .top-bar__inner {
        flex-direction: column;
        gap: .5rem;
    }

    .mid-box {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .search-body {
        max-width: 100%;
    }

    nav ul {
        justify-content: center;
    }
}

.link_bg {
    width: 100%;
    overflow: hidden;
    background: #eeebe0;
    border-top: 1px solid #e5e2d7;
    border-bottom: 1px solid #e5e2d7;
    margin-top: 2rem;
}

.link {
    width: 75rem;
    overflow: hidden;
    margin: auto;
    display: flex;
    gap: 9rem;
}

.link_list {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.link_list_title {
    border-bottom: 1px solid #dddad0;
    padding-bottom: 1rem;
    font-weight: bold;
    color: #5f5442
}

.link_list ul {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.link_list li {
    margin-bottom: .2rem;
}

.link_list a {
    font-size: 14px;
    color: #999083;
}

.link_list a:hover {
    color: #BF2E27;
    text-decoration: none;
}