@charset "UTF-8";

/* =========================================================
   ぱそまる買取 共通スタイル
   ========================================================= */

/* =========================================================
   1. ベース
   ========================================================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    background: #f7f8fb;
    color: #333;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   2. 上段固定バー（赤帯）
   ========================================================= */
.header-top {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: linear-gradient(180deg, #c40000 0%, #a60000 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 46px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   3. 左側（メニュー）
   ========================================================= */
.header-top-left-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.menu-toggle-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.menu-toggle-btn span {
    display: block;
    width: 14px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

/* =========================================================
   4. 右側（検索 / カート / ボタン）
   ========================================================= */
.header-top-right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-search-form {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 28px;
    border: none;
    border-radius: 8px;
    padding: 0 8px;
    background: #fff;
    color: #222;
    font-size: 12px;
    outline: none;
}

.header-search-input::placeholder {
    color: #8a8a8a;
}

.header-search-btn {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.header-search-icon-btn {
    display: none;
}

.header-cart-btn {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
}

.header-cart-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    background: #00f7ff;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
}

.header-btn {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.header-btn:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.header-btn.primary {
    background: #ffd54f;
    color: #111;
    border: none;
}

.header-btn.ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* =========================================================
   5. サイドメニュー
   ========================================================= */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.44);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 1190;
}

.side-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    background: #fff;
    color: #111;
    transform: translateX(-100%);
    transition: transform 0.26s ease;
    box-shadow: 18px 0 44px rgba(0, 0, 0, 0.20);
    z-index: 1200;
    display: flex;
    flex-direction: column;
}

.side-menu.is-open {
    transform: translateX(0);
}

.side-menu-header {
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, #c40000 0%, #9f0000 100%);
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.side-menu-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    opacity: 0.82;
    margin-bottom: 4px;
}

.side-menu-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.side-menu-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.side-menu-body {
    padding: 16px;
    overflow-y: auto;
}

.side-menu-section {
    display: grid;
    gap: 8px;
}

.side-menu-divider {
    height: 1px;
    margin: 16px 0;
    background: #ececec;
}

.side-menu-link {
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.side-menu-link:hover {
    background: #fafafa;
    border-color: #d8d8d8;
    transform: translateX(2px);
}

.side-menu-link.highlight {
    background: #fff7db;
    border-color: #ffe08a;
}

body.menu-open {
    overflow: hidden;
}

/* =========================================================
   6. ヘッダー本体（ロゴ帯）
   ========================================================= */
.site-header {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border-bottom: 1px solid #eadfda;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
}

.header-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: translateY(-1px);
}

.site-logo-img img {
    display: block;
    max-height: 96px;
    width: auto;
}

.header-main-right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.header-copy-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff1cc, #ffd977);
    color: #8a3d00;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(255, 184, 0, 0.18);
}

.header-copy-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: #7f160d;
    letter-spacing: 0.02em;
}

.header-copy-sub {
    font-size: 13px;
    line-height: 1.7;
    color: #7b7b7b;
}

/* =========================================================
   7. グローバルナビ
   ========================================================= */
.global-nav {
    background: #fff;
    border-top: 1px solid #f4ece8;
    border-bottom: 1px solid #eadfda;
}

.global-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.global-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
}

.global-nav-list li {
    margin: 0;
}

.global-nav-list a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 118px;
    min-height: 64px;
    padding: 10px 14px;
    border-radius: 14px 14px 0 0;
    color: #333;
    transition: 0.2s ease;
    border-bottom: 3px solid transparent;
}

.global-nav-list a::before {
    content: "";
    position: absolute;
    inset: 8px 8px 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
    opacity: 0;
    transition: 0.2s ease;
    z-index: 0;
}

.global-nav-list a>span {
    position: relative;
    z-index: 1;
}

.nav-main {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.nav-sub {
    margin-top: 3px;
    font-size: 10px;
    color: #999;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.global-nav-list a:hover {
    color: #b90000;
    transform: translateY(-1px);
}

.global-nav-list a:hover::before {
    opacity: 1;
}

.global-nav-list a:hover .nav-sub {
    color: #cc6c4d;
}

.global-nav-list a.active {
    color: #b90000;
    border-bottom-color: #d83a22;
}

.global-nav-list a.active::before {
    opacity: 1;
    background: linear-gradient(180deg, #fff1ee 0%, #ffffff 100%);
}

.global-nav-list a.active .nav-sub {
    color: #d83a22;
}

/* =========================================================
   8. メイン / フッター
   ========================================================= */
.site-main {
    min-height: calc(100vh - 260px);
    padding-bottom: 40px;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 8px 0;
    box-sizing: border-box;
}

.site-footer {
    margin-top: 40px;
    background: #222;
    color: #fff;
}

.footer-top {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
}

.footer-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: #ddd;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li+li {
    margin-top: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #ddd;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 16px 20px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================================
   9. メンバー関連UI
   ========================================================= */
.member-subheader {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border-bottom: 1px solid #dbe7f5;
}

.member-subheader__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.member-subheader__leftinner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.member-subheader__label {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.member-subheader__name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.member-subheader__meta {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.member-subheader__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.member-logout-form {
    margin: 0;
}

.member-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.member-box__badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.member-box__label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.member-box__name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.member-box__number {
    font-size: 14px;
    color: #475569;
}

/* =========================================================
   10. 共通ボタン
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-secondary {
    background: #fff;
    color: #1e293b;
    border: 1px solid #d7dfeb;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-ghost {
    background: transparent;
    color: #2563eb;
    border: none;
}

.btn-ghost:hover {
    text-decoration: underline;
}

/* =========================================================
   11. ファイルアップロードUI
   ========================================================= */
.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

.file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    transition: all .2s ease;
}

.file-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.file-name {
    font-size: 13px;
    color: #475569;
    word-break: break-all;
}

/* =========================================================
   12. レスポンシブ
   ========================================================= */
@media (max-width: 768px) {
    .header-main {
        padding: 12px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .site-logo-img img {
        max-height: 82px;
    }

    .header-main-right {
        align-items: center;
        text-align: center;
    }

    .header-copy-title {
        font-size: 18px;
    }

    .header-copy-sub {
        font-size: 12px;
    }

    .header-top-inner {
        min-height: 44px;
        padding: 4px 8px;
        gap: 6px;
    }

    .header-top-right,
    .header-search-form {
        gap: 4px;
    }

    .header-search-input {
        height: 28px;
        padding: 0 7px;
        font-size: 11px;
    }

    .header-search-btn,
    .header-btn {
        height: 28px;
        padding: 0 7px;
        font-size: 10px;
    }

    .header-cart-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .global-nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .global-nav-list a {
        min-width: auto;
        min-height: 58px;
        padding: 12px 10px;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid #f2ece8;
    }

    .global-nav-list a::before {
        inset: 4px;
        border-radius: 10px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .member-subheader__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-subheader__name {
        font-size: 18px;
    }

    .member-subheader__right,
    .member-logout-form {
        width: 100%;
    }

    .member-subheader__right .header-btn,
    .member-logout-form .header-btn {
        width: 100%;
        justify-content: center;
    }

    .file-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-top-inner {
        min-height: 42px;
        padding: 3px 6px;
        gap: 5px;
    }

    .menu-toggle-btn {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .menu-toggle-btn span {
        width: 13px;
    }

    .header-top-right,
    .header-search-form {
        gap: 3px;
    }

    .header-search-input {
        height: 26px;
        padding: 0 6px;
        font-size: 10px;
        border-radius: 7px;
    }

    .header-search-btn,
    .header-btn {
        height: 26px;
        padding: 0 6px;
        font-size: 10px;
        border-radius: 7px;
    }

    .header-cart-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
        border-radius: 7px;
    }

    .site-logo-img img {
        max-height: 72px;
    }

    .header-copy-badge {
        font-size: 11px;
        padding: 0 10px;
    }

    .header-copy-title {
        font-size: 16px;
    }

    .header-copy-sub {
        font-size: 11px;
        line-height: 1.6;
    }

    .nav-main {
        font-size: 12px;
    }

    .nav-sub {
        font-size: 9px;
    }

    .global-nav-inner {
        padding: 0;
    }

    .side-menu {
        width: 290px;
    }
}