/* DMMスタイルのTOPページ専用スタイル */
/* トップページのbody背景色 */
body {
    background-color: #f8f8f8;
}

.main-container {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
    flex-direction: row; /* 明示的に設定 */
}

.main-content {
    flex: 1;
    min-width: 0;
    order: 2; /* 表示順序を2に設定（右側に表示） */
}

.side-menu {
    width: 220px;
    flex-shrink: 0;
    order: 1; /* 表示順序を1に設定（左側に表示） */
}

/* ログインステータス表示スタイル */
.login-status-box_header {
  background: white;
  border-radius: 8px;
  padding: 0;
  margin: 10px 0 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  border: 1px solid #e5e7eb;
}


.login-status-box {
  background: white;
  border-radius: 8px;
  padding: 0;
  margin: 10px 0 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  width: 95%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  border: 1px solid #e5e7eb;
}

/* 未ログイン状態のスタイル */
.login-prompt {
  padding: 20px;
}

.login-text {
  text-align: left;
}

.highlight-text {
  color: #dc2626;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.highlight-text_header {
  color: #dc2626;
  font-weight: bold;
  font-size: 18px;
}

.highlight-text_header_s {
  color: #444;
  font-weight: bold;
  font-size: 18px;
}

.login-buttons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  align-items: center;
}

.btn-login {
  background-color: #dc2626;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.btn-login_header {
  background-color: #f3f4f6;
  color: #444;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

a.btn-register_header {
    background-color: #dc2626;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;

    /* キラキラ対策・演出 */
    position: relative;
    overflow: hidden;
    isolation: isolate; /* ← これが親への影響を防ぐカギ */
    z-index: 1;
}

a.btn-register_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shine 2.5s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.headercolor{
  color: #df7d13;
}

/* サイドバーのスタイル */
.side-menu {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px; /* フッターとの間隔を追加 */
}

.side-menu-header {
    background-color: #333;
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
}

.side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-list li {
    border-bottom: 1px solid #eee;
}

.side-menu-list li:last-child {
    border-bottom: none;
    margin-bottom: 15px; /* 最後の項目の下に余白を追加 */
}

/* 「すべて見る」ボタンのスタイル */
.side-menu-list li.view-all {
    background-color: transparent;
    text-align: right;
    border-top: 1px dotted #ddd;
    padding: 5px 0;
}

.side-menu-list li.view-all a {
    color: var(--primary-color);
    font-size: 12px;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin-right: 5px;
}

.side-menu-list li.view-all a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* サイドバーの新着情報スタイル */
.side-news-list .news-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
}

.side-news-list .news-title {
    display: block;
    font-size: 13px;
    color: #333;
}

.side-menu-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.side-menu-list a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.side-menu-list .count {
    float: right;
    color: #999;
    font-size: 12px;
}

/* バナーエリアは削除されました */

/* 検索ボックス */
.search-box {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.search-filter {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.search-filter:hover {
    background-color: #e0e0e0;
}

.search-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}

.search-button:hover {
    background-color: #c91e42;
}

/* 商品一覧 */
.product-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    background-color: #333;
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
}

.section-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
}

.section-link:hover {
    text-decoration: underline;
    color: white;
    background-color: transparent;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
}

.product-item {
    position: relative;
    transition: transform 0.2s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 8px;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 5px;
    right: 5px; /* 左から右に変更 */
    background-color: var(--primary-color);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.product-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* マウスオーバー効果を削除 */

.product-title {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.product-info {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
}

/* ランキングバッジは assets/css/style.css に移動しました */

/* タブナビゲーション */
.tab-navigation {
    background-color: white;
    border-radius: 5px 5px 0 0;
    display: flex;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1px;
}

.tab-item {
    padding: 12px 20px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-item.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.tab-item:hover {
    color: var(--primary-color);
}

/* バナーエリア */
.banner-area {
    margin-bottom: 20px;
}

.main-banner {
    width: 100%;
    height: auto;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-banner img {
    width: 100%;
    display: block;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.small-banner {
    border-radius: 5px;
    overflow: hidden;
}

.small-banner img {
    width: 100%;
    display: block;
}

/* ページナビゲーションスタイルは assets/css/style.css に移動しました */

/* レスポンシブ対応 */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    
    .side-menu {
        width: 100%;
        order: 2; /* 順序を2に変更（メインコンテンツの後） */
        margin-bottom: 40px; /* モバイル表示時のフッターとの間隔をさらに増やす */
    }
    
    .main-content {
        order: 1; /* 順序を1に変更（最初に表示） */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-section {
        margin-bottom: 15px;
    }
    
    .section-header {
        padding: 10px;
    }
    
    .product-grid {
        padding: 10px;
        gap: 10px;
    }
    
    /* ページナビゲーションのレスポンシブスタイルは assets/css/style.css に移動しました */
}