@charset "UTF-8";

/*========================================
  MOUMANTAI 共通CSS - ブルー系カラー版
========================================*/

/*========== リセット・基本設定 ==========*/
* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Yu Gothic', 'YuGothic', Meiryo, メイリオ, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*========== タイポグラフィ ==========*/
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
    line-height: 1.6;
}

a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

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

.fa, .fas, .far, .fab {
    margin-right: 0.3em;
}

/*========== レイアウト基本構造 ==========*/
#header,
#wrap,
#footer {
    width: 100%;
}

#header-inside-box,
#wrap-inside,
#footer-inside {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#wrap {
    background: white;
    min-height: calc(100vh - 200px);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin: 0 15px;
    border-radius: 8px;
}

#wrap-inside {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 20px;
}

#main {
    min-height: 500px;
}

#sub {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
    max-width: 300px;
    min-width: 280px;
    border: 1px solid #e9ecef;
}

/*========== ヘッダー ==========*/
#header {
    background: white;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

#header-inside-box {
    display: grid;
    grid-template-areas: 
        "info info info"
        "logo search user"
        "nav nav nav";
    grid-template-columns: 250px 1fr 350px;
    gap: 5px 20px;
    padding: 0;
    align-items: center;
}

/* 上部情報バー */
#header-info {
    grid-area: info;
    background: #e3f2fd;
    color: #1976d2;
    margin: 0 -20px;
    padding: 5px 20px;
    font-size: 0.85rem;
}

.header-contact {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1976d2;
    padding: 6px 12px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.contact-item:hover {
    background: rgba(25, 118, 210, 0.2);
    text-decoration: none;
    color: #0d47a1;
}

/* ロゴ */
#site-logo {
    grid-area: logo;
    padding: 5px 0;
}

#site-logo img {
    max-height: 60px;
    width: auto;
}

/* 検索ボックス */
#header-search {
    grid-area: search;
    padding: 15px 0;
}

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

.search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-category {
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: white;
    color: #333;
  	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-category:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 300px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 0.9rem;
    color: #333;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    padding: 10px 15px;
    background: #2196f3;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #1976d2;
}

/* ユーザーメニュー - 白背景対応修正版 */
#login-cart-menu {
    grid-area: user;
    justify-self: end;
    padding: 15px 0;
}

.user-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.user-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 15px;
    color: #1976d2;
    font-size: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 28px;
    line-height: 1.2;
}

.user-menu-item:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.user-menu-item i {
    font-size: 0.7rem;
    margin-right: 2px;
}

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #ff9800;
    border-radius: 15px;
    color: white;
    font-size: 0.75rem;
    border: 1px solid #ff9800;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    position: relative;
    min-height: 28px;
    line-height: 1.2;
}

.cart-button:hover {
    background: #f57c00;
    border-color: #f57c00;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.cart-button i {
    font-size: 0.7rem;
    margin-right: 2px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ffc107;
    color: #333;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

/* グローバルナビゲーション */
#global-menu {
    grid-area: nav;
    background: #1565c0;
    margin: 0 -20px;
    padding: 12px 20px;
}

.nav-container {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    gap: 3px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.nav-item.special .nav-link {
    background: #2196f3;
    border-color: #2196f3;
    font-weight: 600;
}

.nav-item.special .nav-link:hover {
    background: #1976d2;
    border-color: #1976d2;
}

/*========== メインコンテンツ ==========*/
#main-disp {
    padding: 0;
}

.divider {
    display: none;
}

#topic-path {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1976d2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2196f3;
    border-radius: 1px;
}

.title-icon {
    font-size: 1.1rem;
}

.content-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ピックアップアイテム */
.pickup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pickup-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.pickup-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #1976d2;
}

.item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pickup-item:hover .item-image img {
    transform: scale(1.03);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 118, 210, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pickup-item:hover .item-overlay {
    opacity: 1;
}

.view-detail {
    color: white;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.item-content {
    padding: 18px;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: block;
    text-decoration: none;
}

.item-name:hover {
    color: #1976d2;
    text-decoration: none;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.regular-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.85rem;
}

.sale-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ご利用ガイド */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.guide-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #1976d2;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
}

.guide-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-size: 1rem;
    margin: 0;
}

.guide-more {
    color: #1976d2;
    font-size: 0.85rem;
    text-decoration: none;
}

.guide-more:hover {
    text-decoration: underline;
}

.guide-content h4 {
    color: #1976d2;
    margin: 15px 0 8px;
    font-size: 0.95rem;
}

.payment-methods,
.other-payments {
    margin-top: 15px;
}

.card-logos {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.card-logos img {
    height: 24px;
    width: auto;
}

.other-payments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.payment-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.payment-item img {
    margin: 0 auto 6px;
    max-height: 28px;
}

.payment-item p {
    font-size: 0.8rem;
    margin: 0;
}

.contact-cta {
    margin-top: 15px;
    text-align: center;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1976d2;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #1565c0;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.page-top-link {
    text-align: center;
    margin: 30px 0;
}

.scroll-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-to-top:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

/*========== サイドバー ==========*/
.sidebar-cta {
    margin-bottom: 20px;
}

.cta-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: left;
}

.contact-banner {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.guide-banner {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: white;
}

.mailmaga-banner {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: white;
}

.cta-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    text-decoration: none;
}

.contact-banner:hover { color: white; }
.guide-banner:hover { color: white; }
.mailmaga-banner:hover { color: white; }

.sidebar-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.sidebar-title {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 12px 15px;
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sidebar-content {
    padding: 15px;
}

.category-list,
.group-list,
.contents-list {
    list-style: none;
}

.category-item,
.group-item,
.contents-item {
    border-bottom: 1px solid #f1f3f4;
}

.category-item:last-child,
.group-item:last-child,
.contents-item:last-child {
    border-bottom: none;
}

.category-link,
.group-link,
.contents-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.category-link:hover,
.group-link:hover,
.contents-link:hover {
    color: #1976d2;
    text-decoration: none;
    padding-left: 8px;
}

/* ランキング */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}

.ranking-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-color: #1976d2;
}

.ranking-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.ranking-image {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.ranking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-content {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-price {
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    gap: 5px;
    align-items: center;
}

.ranking-price .regular-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.7rem;
}

.ranking-price .sale-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.8rem;
}

.rank-number {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
}

.ranking-1 .rank-number { background: #ffd700; color: #333; }
.ranking-2 .rank-number { background: #c0c0c0; }
.ranking-3 .rank-number { background: #cd7f32; }
.ranking-4 .rank-number { background: #1976d2; }
.ranking-5 .rank-number { background: #2196f3; }

/* 店長コーナー */
.manager-info {
    text-align: center;
}

.manager-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid #1976d2;
}

.manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manager-name {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.manager-memo {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 12px;
}

.manager-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #1976d2;
    color: white;
    border-radius: 18px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.manager-blog-link:hover {
    background: #1565c0;
    text-decoration: none;
    color: white;
}

/* カレンダー */
.business-hours {
    background: rgba(25, 118, 210, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.business-hours p {
    margin: 0;
    font-size: 0.85rem;
}

.holiday-note {
    color: #e74c3c;
    font-weight: 600;
}

.calendar-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* SNS */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #1976d2;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1565c0;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* QRコード */
.qr-container {
    text-align: center;
}

.qr-container img {
    margin: 0 auto 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.qr-container p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* フィード */
.feed-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.feed-link img {
    transition: all 0.3s ease;
    border-radius: 4px;
}

.feed-link:hover img {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/*========== フッター ==========*/
#footer {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
    margin-top: 40px;
    padding: 30px 0 15px;
}

#footer a {
    color: #ecf0f1;
    text-decoration: none;
}

#footer a:hover {
    color: #42a5f5;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-nav-item {
    margin: 0;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.footer-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-contact h3 {
    color: #42a5f5;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-contact p {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.contact-info {
    margin-top: 12px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.footer-links h4 {
    color: #42a5f5;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

#copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/*========== レスポンシブ対応 ==========*/
@media (max-width: 1024px) {
    #header-inside-box {
        grid-template-areas:
            "info info info"
            "logo search user"
            "nav nav nav";
        grid-template-columns: 200px 1fr 300px;
        gap: 5px 10px;
    }

    #site-logo img {
        max-height: 50px;
    }

    .search-category {
        min-width: 120px;
    }

    .search-input-wrapper {
        max-width: 250px;
    }

    #wrap-inside {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    #sub {
        position: static;
        order: 2;
        max-width: 100%;
        min-width: unset;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    #header-inside-box,
    #wrap-inside,
    #footer-inside {
        padding: 0 15px;
    }

    #header-inside-box {
        grid-template-areas:
            "info info"
            "logo toggle"
            "search search"
            "user user"
            "nav nav";
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    #site-logo {
        padding: 5px 0;
    }

    #site-logo img {
        max-height: 45px;
    }

    #header-search {
        padding: 10px 0;
    }

    #login-cart-menu {
        justify-self: center;
        padding: 10px 0;
    }

    .header-contact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0px;
    }

    .user-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mobile-menu-toggle {
        display: flex;
        justify-self: end;
        align-self: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -5px);
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: -15px;
        right: -15px;
        background: rgba(25, 118, 210, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 10px 10px;
        padding: 15px;
        gap: 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        z-index: 999;
        flex-direction: column;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        justify-content: center;
        padding: 12px 20px;
        width: 100%;
    }

    .content-section {
        padding: 20px 15px;
    }

    .pickup-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .search-category {
        min-width: unset;
        width: 100%;
    }

    .search-input-wrapper {
        max-width: unset;
        width: 100%;
    }

    .ranking-item {
        padding: 8px 10px;
        min-height: 55px;
    }
    
    .rank-number {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -2px;
        left: -2px;
    }
    
    .ranking-image {
        width: 35px;
        height: 35px;
    }
    
    .ranking-name {
        font-size: 0.7rem;
    }
    
    .ranking-price {
        font-size: 0.75rem;
    }

    .user-menu-item,
    .cart-button {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-height: 26px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pickup-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .item-content {
        padding: 12px;
    }

    .sidebar-content {
        padding: 12px;
    }

    .user-menu {
        flex-direction: row;
        gap: 4px;
        width: 100%;
        justify-content: center;
    }

    .header-contact {
        flex-direction: row;
        gap: 4px;
        width: 100%;
        justify-content: center;
    }

    .contact-item {
        font-size: 0.7rem;
        padding: 4px 8px;
        flex: 1;
        justify-content: center;
        max-width: 140px;
    }

    .user-menu-item,
    .cart-button {
        font-size: 0.65rem;
        padding: 4px 6px;
        min-height: 24px;
        flex: 1;
        justify-content: center;
        max-width: 80px;
    }

    .search-category,
    .search-input {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .ranking-item {
        padding: 6px 8px;
        min-height: 50px;
    }
    
    .rank-number {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    .ranking-image {
        width: 30px;
        height: 30px;
    }
    
    .ranking-name {
        font-size: 0.65rem;
        -webkit-line-clamp: 1;
    }
    
    .ranking-price {
        font-size: 0.7rem;
    }
}

/*========== その他 ==========*/
@media print {
    #header,
    #footer,
    #sub,
    .sidebar-section,
    .mobile-menu-toggle,
    .scroll-to-top {
        display: none !important;
    }

    #wrap-inside {
        grid-template-columns: 1fr;
        padding: 0;
    }

    body {
        background: none;
        color: #000;
        font-size: 12px;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 15px;
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }

    .content-section {
        border: 2px solid black;
        background: white;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #1976d2;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

.ranking-number {
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #6c757d !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 0.7rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    border: 2px solid white !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

.item-box.ranking-1 .ranking-number { background: #ffd700 !important; color: #333 !important; }
.item-box.ranking-2 .ranking-number { background: #c0c0c0 !important; }
.item-box.ranking-3 .ranking-number { background: #cd7f32 !important; }
.item-box.ranking-4 .ranking-number { background: #1976d2 !important; }
.item-box.ranking-5 .ranking-number { background: #2196f3 !important; }

.item-box {
    position: relative !important;
    overflow: visible !important;
}

.pickup-item,
.guide-card,
.ranking-item,
.cta-banner,
.nav-link,
.user-menu-item,
.cart-button {
    will-change: transform;
    transform: translateZ(0);
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }