/* MARC ARROWS カテゴリページ - レスポンシブ対応 */

/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #111111;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* メインコンテンツ */
.main {
    padding: 2rem 0;
}

/* カテゴリナビゲーション(Naval Watch風) */
.category-navigation {
    margin-bottom: 3rem;
}

.category-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.category-nav-item {
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 15px 0px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #111111;
    position: relative;
}

.category-nav-item::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 0;
    height: 0;
    border-top: 6px solid #b5b5b5;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.category-nav-item:hover {
    background: #fff9e3;
    transform: translateY(-2px);
}

/* 特別カテゴリ */
.special-categories {
    margin-bottom: 4rem;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.special-card {
    background: #ffffff;
    border: 1.8px solid #dddddd;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
}

.special-card:hover {
    transform: translateY(-3px);
    background: #fff9e3;
}

.special-content {
    text-align: center;
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.special-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    line-height: 30px;
}

.special-content p {
    font-size: 16px;
    opacity: 0.9;
}

.special-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* メインカテゴリ */
.main-categories {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.3rem;
    color: #111111;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.category-group {
    background: #ffffff;
    border: 1px solid #dddddd;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-group.featured {
    border-color: #111111;
    background: #FFF9F9;
}

.category-header {
    background: #f8f8f8;
    border-bottom: 1px solid #dddddd;
}

.category-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    font-weight: 600;
    color: #111111;
    transition: all 0.3s ease;
}

.category-main-link:hover {
    background: #fffef6;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-left: 24px;
}

.category-title h4 {
    font-size: 22px;
    display: flex;
    align-items: center;
}

.category-title img {
    width: 38px;
    height: 38px;
}

.popular-badge {
    display: none;
}

.category-icon {
    font-size: 1.2rem;
    color: #111111;
    font-weight: bold;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #dddddd;
}

.subcategory-item {
    background: #ffffff;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 16px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 16px;
}

.subcategory-item img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.subcategory-item:hover {
    background: #fffef6;
    border-left-color: #e4d630;
    color: #111111;
    font-weight: 500;
}

.subcategory-item.featured {
    background: #FFF9F9;
    border-left-color: #111111;
    font-weight: 500;
}

/* その他のカテゴリ */
.other-categories {
    background: #ffffff;
    padding: 2rem;
    border: 1px solid #dddddd;
    margin-bottom: 2rem;
}

.other-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.other-category-item {
    background: #f8f8f8;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #dddddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 140px;
}

.other-category-item:hover {
    background: #fffef6;
    transform: translateY(-2px);
}

.other-category-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ブランドセクション */
.brand-section {
    background: #ffffff;
    padding: 3rem 2rem;
    border: 1px solid #dddddd;
    margin-bottom: 3rem;
}

.brand-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px 20px;
    margin-bottom: 4rem;
}

.brand-card {
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.brand-card:hover .brand-link {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.brand-card:hover .brand-arrow {
    border-left-color: #ffffff;
}

.brand-logo-wrapper {
    background: #ffffff;
    width: 100%;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    max-width: 311px;
    height: 148px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.brand-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    justify-content: space-between;
}

.brand-card h4 {
    font-size: 14px;
    color: #777777;
    margin: 0px auto 0px;
    font-weight: 500;
    width: 277px;
    line-height: 28px;
    height: 56px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card p {
    color: #b5b5b5;
    font-size: 13px;
    line-height: 18px;
    width: 200px;
    margin: 0 auto 16px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 220px;
    color: #b5b5b5;
    font-size: 13px;
    line-height: 21px;
    font-weight: 500;
    border: 1px solid #b5b5b5;
    border-radius: 2px;
    background: #ffffff;
    padding: 9px 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 24px;
}

.brand-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #b5b5b5;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.brand-all-link {
    text-align: center;
    margin-top: 2rem;
    width: 100%;
}

.brand-all-link a {
    display: inline-block;
    width: 68%;
    background: #111111;
    color: white;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.brand-all-link a:hover {
    background: #fff;
    color: #111111;
    border: 1px solid #222;
    transform: translateY(-2px);
}

/* フッター */
.footer {
    background: #f8f8f8;
    border-top: 1px solid #dddddd;
    padding: 2rem 0;
    text-align: center;
}

/* フローティングボタン */
.floating-area {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    display: none;
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.shop-top-btn,
.page-top-btn {
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 6px;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
}

.shop-top-btn:hover,
.page-top-btn:hover {
    background: rgba(204, 102, 102, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 6px 10px;
}

.page-top-btn {
    position: relative;
}

.pagetop__arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid white;
}

/* フローティングボタンアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-area.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* レスポンシブデザイン */

/* タブレット(768px-1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }
    
    .category-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 16px;
    }
    
    .category-nav-item {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .special-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .brand-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .brand-logo {
        width: 100%;
        max-width: 311px;
        height: auto;
    }
}

/* スマートフォン(～767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    
    /* 自社ヘッダー(モバイル対応) */
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* カテゴリナビゲーション */
    .category-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .category-nav-item {
        padding: 10px 6px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    /* 特別カテゴリ */
    .special-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .special-card {
        min-height: 110px;
    }
    
    .special-content {
        padding: 1rem;
        gap: 10px;
    }
    
    .special-content h3 {
        font-size: 18px;
    }
    
    .special-content p {
        font-size: 14px;
    }
    
    .special-icon {
        width: 48px;
        height: 48px;
    }
    
    /* メインカテゴリ */
    .category-main-link {
        padding: 1rem;
    }
    
    .category-title {
        gap: 14px;
        padding-left: 16px;
    }
    
    .category-title h4 {
        font-size: 18px;
    }
    
    .category-title img {
        width: 38px;
        height: 38px;
    }
    
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subcategory-item {
        padding: 0.8rem 1rem;
        font-size: 14px;
        padding-left: 12px;
        gap: 10px;
    }
    
    .subcategory-item img {
        width: 32px;
        height: 32px;
    }
    
    /* その他カテゴリ */
    .other-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .other-category-item {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    /* ブランドセクション */
    .brand-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .brand-section {
        padding: 2rem 1rem;
    }
    
    .brand-info {
        padding: 0;
    }
    
    .brand-logo {
        width: 100%;
        max-width: 311px;
        height: auto;
    }
    
    .brand-card h4 {
        width: 90%;
        max-width: 277px;
    }
    
    .brand-card p {
        width: 90%;
        max-width: 230px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* フローティングボタン */
    .floating-area {
        bottom: 20px;
        right: 20px;
    }
    
    .shop-top-btn,
    .page-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* 極小スマートフォン(～480px) */
@media (max-width: 480px) {
    .main {
        padding: 1rem 0;
    }
    
    .category-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .special-grid {
        grid-template-columns: 1fr;
    }
    
    .subcategory-grid {
        grid-template-columns: 1fr;
    }
    
    .other-category-grid {
        grid-template-columns: 1fr;
    }
}

/* 高解像度ディスプレイ対応(1400px以上) */
@media (min-width: 1400px) {
    .container {
        max-width: 1100px;
    }
    
    .category-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .special-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .brand-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* プリント用スタイル */
@media print {
    .mall-header,
    .company-header,
    .footer,
    .floating-area {
        display: none;
    }
    
    .main {
        padding: 0;
    }
    
    .category-group,
    .brand-section {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .special-card {
        background: #f8f8f8 !important;
        color: #111111 !important;
    }
}