@charset "UTF-8";

/* =========================================
   変数定義 (Color Palette)
   ========================================= */
:root {
    --bg-color: #FAFAF8;       /* 背景: 紙のような優しい白ベージュ */
    --accent-pink: #E8C8C5;    /* アクセント: くすみピンク */
    --accent-text: #D6A4A0;    /* 文字用ピンク（少し濃いめ） */
    --text-main: #55504C;      /* テキスト: 焦げ茶寄りのグレー */
    --text-light: #999490;     /* 薄いテキスト */
    --white-card: #FFFFFF;     /* カード背景 */
    --shadow-card: 0 4px 20px rgba(0,0,0,0.04); /* カードの影 */
    --font-jp: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Quicksand', sans-serif;
}

/* =========================================
   基本リセット
   ========================================= */
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-jp);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* =========================================
   背景装飾 (Ambient Background)
   ========================================= */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #F2EBE9; }
.orb-2 { bottom: 0%; right: -10%; width: 45vw; height: 45vw; background: #F5F0EE; animation-delay: -5s; }
.orb-3 { top: 30%; left: 30%; width: 25vw; height: 25vw; background: #FFFFFF; opacity: 0.6; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* =========================================
   ふわふわ浮遊アイコン
   ========================================= */
.floating-deco {
    position: absolute;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(232, 200, 197, 0.3);
    color: var(--accent-pink);
    animation: float-slow 15s infinite ease-in-out;
    pointer-events: none;
}

.floating-deco i {
    font-size: 1.4rem;
    opacity: 0.8;
}

.deco-1 { top: 15%; left: 10%; width: 70px; height: 70px; animation-delay: -2s; }
.deco-2 { top: 30%; right: 15%; width: 90px; height: 90px; animation-delay: -7s; }
.deco-3 { bottom: 20%; left: 20%; width: 60px; height: 60px; animation-delay: -12s; opacity: 0.5; }

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(25px, 25px) rotate(10deg); }
}

/* =========================================
   ヘッダー
   ========================================= */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.logo-sub {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}
.menu-btn {
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   ヒーローエリア & 検索
   ========================================= */
.hero-section {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-copy {
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-main);
}
.hero-sub {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.mascot-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}
.mascot-img {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(232, 200, 197, 0.2));
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 50px;
}

.hero-section .search-input {
    width: 100%;
    padding: 14px 55px 14px 25px;
    border-radius: 50px;
    border: 1px solid #EAEAEA;
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    font-size: 1rem;
    color: var(--text-main);
    font-family: var(--font-jp);
    transition: all 0.3s ease;
    height: 52px;
    box-sizing: border-box;
}
.hero-section .search-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 4px 20px rgba(232, 200, 197, 0.2);
}
.hero-section .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-pink);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}
.hero-section .search-btn:hover {
    background: var(--accent-text);
}
.hero-section .search-btn .search-icon {
    position: static;
    transform: none;
    color: #fff;
    font-size: 0.95rem;
}

/* =========================================
   カテゴリタグ
   ========================================= */
.category-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}
.category-wrapper::-webkit-scrollbar { display: none; }

.category-scroll {
    display: flex;
    gap: 10px;
    width: max-content;
}

.cat-tag {
    flex-shrink: 0;
    padding: 8px 24px;
    border-radius: 30px;
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    -webkit-user-drag: none;
    user-drag: none;
}
.cat-tag:hover {
    border-color: var(--accent-pink);
    color: var(--accent-text);
}
.cat-tag.active {
    background: var(--accent-pink);
    color: #fff;
    border-color: var(--accent-pink);
}

/* =========================================
   メインコンテンツ
   ========================================= */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 80px;
    position: relative;
    z-index: 1;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 10px;
}
.section-label {
    font-size: 1.2rem;
    font-weight: 700;
}
.view-all {
    font-size: 0.85rem; 
    color: var(--text-light);
    transition: color 0.2s;
}
.view-all:hover { color: var(--accent-pink); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* カードデザイン (TOPページ等) */
.card {
    background: var(--white-card);
    border-radius: 16px;
    padding: 15px;
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: rgba(232, 200, 197, 0.4);
}

.clip-icon {
    position: absolute;
    top: -1px;
    right: 15px;
    width: 20px;
    height: 28px;
    background-color: var(--accent-pink);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.clip-icon i {
    color: white;
    font-size: 0.6rem;
    margin-bottom: 4px;
}

.card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border-radius: 10px;
    object-fit: contain;  /* coverからcontainに変更 */
    margin-bottom: 15px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.85em;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.price {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}
.unit-price {
    font-size: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
    background: #F2F0ED;
    padding: 4px 10px;
    border-radius: 6px;
}

/* =========================================
   フッター
   ========================================= */
footer {
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--accent-pink);
}
.copyright {
    font-size: 0.75rem;
    color: #CCC;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

/* ページ最下部固定用 */
.item-page-wrapper,
.all-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.item-page-wrapper main,
.all-page-wrapper main {
    flex: 1 0 auto;
}
.item-page-wrapper footer,
.all-page-wrapper footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* =========================================
   レスポンシブ (Mobile Base)
   ========================================= */
@media (max-width: 600px) {
    .hero-section { padding-top: 40px; }
    .hero-copy { font-size: 1.6rem; }
    .mascot-img { width: 120px; }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .category-wrapper {
        justify-content: flex-start;
        padding: 0 15px;
    }
    
    .card { padding: 10px; }
    .card-title { font-size: 0.85rem; height: auto; -webkit-line-clamp: 3; }
    .card-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
    .price { font-size: 1rem; }
    
    .footer-links { gap: 15px; }
    .floating-deco { display: none; }
}

/* =========================================
   下層ページ: 商品詳細 (Item Page)
   ========================================= */

/* パンくずリスト */
.breadcrumb {
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.breadcrumb a:hover { color: var(--accent-pink); }

/* ラッパー */
.item-container-wrapper {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* --- 商品詳細レイアウト (修正版) --- */
.item-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左カラム（吹き出し＋画像をまとめる枠） */
.item-left-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 画像エリア (修正版) */
.item-image-area {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-main-img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 10px;
}

/* 情報エリア */
.item-info-area {
    flex: 1.2;
}

.item-brand {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-family: var(--font-en);
}
.item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 吹き出し (Points Balloon) - 修正版 */
.points-balloon {
    width: 100%;          /* 幅を100%にして画像エリアと揃える */
    max-width: none;      /* 幅制限を解除 */
    margin: 0 0 20px 0;   /* 下に余白 */
    background: #fff;
    border: 2px solid var(--accent-pink);
    border-radius: 20px;
    padding: 15px 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 2;
    box-sizing: border-box; /* paddingを含めて100%にする */
}

/* 吹き出しのしっぽ */
.points-balloon::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top: 12px solid var(--accent-pink);
    border-bottom: none;
}
.points-balloon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top: 10px solid #fff;
    border-bottom: none;
    z-index: 1;
}
.points-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.points-content {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-main);
}

/* コスパ・価格表示系 */
.cp-badge {
    display: inline-block;
    background: #F2F0ED;
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--text-main);
}
.cp-val {
    color: var(--accent-text);
    font-size: 1.4rem;
    font-family: var(--font-en);
    margin-left: 5px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.price-row:hover {
    transform: translateY(-2px);
    border-color: var(--accent-pink);
}
.mall-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
}
.mall-price {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.shop-btn {
    background: var(--accent-pink);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s;
}
.shop-btn:hover { background: var(--accent-text); }

/* 注意書きエリア */
.disclaimer-area {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    line-height: 1.5;
}
.stale-data-alert {
    background: #fff8f8;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stale-data-alert i { font-size: 1.2rem; }

.price-range-notice {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #fff8e6;
    border: 1px solid #ffd666;
    border-radius: 6px;
    font-size: 13px;
    color: #664d03;
    line-height: 1.5;
}
.price-range-notice i { margin-right: 8px; color: #ffa500; }

.review-link-area {
    text-align: center;
    margin-top: 20px;
}
.review-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    border-bottom: 1px dashed var(--text-light);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.review-link:hover { color: var(--accent-pink); border-color: var(--accent-pink); }

/* --- 関連商品セクション --- */
.related-products {
    background: #fafafa;
    padding: 40px 20px 60px;
}
.related-inner {
    max-width: 900px;
    margin: 0 auto;
}
.related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-pink);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.related-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.related-image {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
.related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.related-info {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
}
.related-brand {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}
.related-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-pink);
    margin-top: 6px;
}

/* --- レスポンシブ (Item Page) --- */
@media (max-width: 768px) {
    .item-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
    
    .item-left-column, 
    .item-info-area {
        width: 100%;
        min-width: auto;
    }
    
    .points-balloon {
        width: 100%;
        max-width: none;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .price-row { padding: 12px 15px; }
    .mall-name { font-size: 0.85rem; width: 80px; }
    .mall-price { font-size: 1rem; }
}

@media (max-width: 600px) {
    .item-container-wrapper {
        padding: 0 15px;
        margin: 20px auto 60px;
    }
    .points-balloon {
        max-width: none;
        padding: 12px 15px;
    }
}

/* =========================================
   運営者情報 & フォーム (Operator & Contact)
   ========================================= */

/* プロフィール */
.profile-box {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
}
.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 4px solid #F9F6F2;
    flex-shrink: 0;
}
.profile-text h2 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 10px;
}
.profile-text p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
    margin: 0;
}

/* テーブル */
.operator-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.operator-table th, .operator-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 0.95rem;
}
.operator-table th {
    width: 30%;
    color: var(--text-light);
    font-weight: normal;
    background: #fafafa;
    border-radius: 8px 0 0 8px;
}

/* フォーム */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.tag-required { display: inline-block; background: var(--accent-pink); color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.form-control { width: 100%; padding: 14px; border: 1px solid #EAEAEA; border-radius: 10px; background: #FAFAFA; font-size: 1rem; color: var(--text-main); font-family: inherit; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--accent-pink); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(232, 200, 197, 0.2); }
textarea.form-control { min-height: 180px; resize: vertical; }

.submit-area { text-align: center; margin-top: 40px; }
.submit-btn { background: var(--text-main); color: #FFFFFF; font-size: 1rem; font-weight: 700; padding: 16px 60px; border: none; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); letter-spacing: 0.05em; }
.submit-btn:hover { background: var(--accent-pink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 200, 197, 0.4); }

/* --- 規約ページ等 (Privacy) --- */
.doc-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}
.doc-title { text-align: center; margin-bottom: 40px; font-size: 1.6rem; color: var(--text-main); }
.doc-content h2 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 15px; border-left: 4px solid var(--accent-pink); padding-left: 10px; }
.doc-content p { font-size: 0.95rem; color: var(--text-main); margin-bottom: 15px; line-height: 1.8; }

@media (max-width: 600px) {
    .profile-box { flex-direction: column; text-align: center; gap: 15px; }
    .operator-table th, .operator-table td { display: block; width: 100%; border: none; }
    .operator-table th { background: transparent; padding-bottom: 5px; font-weight: 700; color: var(--accent-text); }
    .operator-table td { padding-top: 0; padding-bottom: 20px; border-bottom: 1px solid #eee; }
    .doc-container { padding: 25px; margin: 30px 20px; }
}

/* --- 商品一覧ページ用 (All Page) --- */
.all-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: #333; }

/* フィルターエリア */
.filter-area { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; padding: 15px; background: #f9f9f9; border-radius: 10px; }
.filter-area .search-form { display: flex; flex: 1; min-width: 200px; max-width: 350px; position: relative; }
.filter-area .search-input { flex: 1; padding: 12px 45px 12px 18px; border: 1px solid #ddd; border-radius: 25px; font-size: 14px; outline: none; background: #fff; box-sizing: border-box; }
.filter-area .search-input:focus { border-color: var(--accent-pink); }
.filter-area .search-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; background: var(--accent-pink); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.filter-area .search-btn:hover { background: var(--accent-text); }
.filter-area .search-btn i { font-size: 14px; }
.filter-options { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-options select { padding: 12px 35px 12px 15px; border: 1px solid #ddd; border-radius: 25px; font-size: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center; background-size: 10px; cursor: pointer; -webkit-appearance: none; appearance: none; min-width: 140px; }
.result-count { color: #666; font-size: 14px; margin-bottom: 15px; }
.no-results { text-align: center; padding: 60px 20px; color: #888; }

/* 一覧グリッド */
.all-container .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.all-container .product-card { display: block; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.all-container .product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.all-container .product-img-wrap { aspect-ratio: 1 / 1; background: #f9f9f9; overflow: hidden; }
.all-container .product-img { width: 100%; height: 100%; object-fit: contain; }
.all-container .product-info { padding: 12px; }
.all-container .product-brand { font-size: 11px; color: #888; margin-bottom: 4px; }
.all-container .product-name { font-size: 13px; font-weight: 500; color: #333; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.all-container .product-price { font-size: 15px; font-weight: 700; color: #e74c3c; }

/* ページネーション */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; padding: 20px 0; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px; color: #333; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.page-link:hover { background: #f5f5f5; border-color: #ff6b9d; }
.page-link.active { background: #ff6b9d; border-color: #ff6b9d; color: #fff; }

@media (max-width: 768px) {
    .filter-area { flex-direction: column; padding: 12px; }
    .filter-area .search-form { max-width: 100%; width: 100%; }
    .filter-options { width: 100%; flex-direction: column; }
    .filter-options select { width: 100%; }
    .all-container .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .page-link { min-width: 36px; height: 36px; font-size: 13px; }
}

/* =========================================
   スライドメニュー
   ========================================= */

/* オーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(85, 80, 76, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* スライドメニュー本体 */
.slide-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF9F8 100%);
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slide-menu.open {
    right: 0;
}

/* メニューヘッダー */
.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(232, 200, 197, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

.slide-menu-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.slide-menu-title i {
    color: var(--accent-pink);
    font-size: 1.2rem;
}

.slide-menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.slide-menu-close:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: rotate(90deg);
}

/* メニューコンテンツ */
.slide-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

/* メインメニューリスト */
.slide-menu-list {
    list-style: none;
    margin: 0;
    padding: 0 15px;
}

.slide-menu-list li {
    margin-bottom: 5px;
}

.slide-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.slide-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-pink);
    font-size: 1rem;
}

.slide-menu-item:hover {
    background: rgba(232, 200, 197, 0.2);
    transform: translateX(5px);
}

.slide-menu-item:hover i {
    transform: scale(1.1);
}

/* カテゴリセクション */
.slide-menu-section {
    margin-top: 20px;
    padding: 0 15px;
}

.slide-menu-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 0 20px 10px;
    border-bottom: 1px dashed rgba(232, 200, 197, 0.5);
    margin-bottom: 10px;
}

.slide-menu-section-title i {
    color: var(--accent-pink);
    font-size: 0.85rem;
}

.slide-menu-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 10px;
}

.slide-menu-category-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid rgba(232, 200, 197, 0.5);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.slide-menu-category-list li a:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(232, 200, 197, 0.4);
}

/* フッターリンク */
.slide-menu-footer-links {
    margin-top: 25px;
    padding: 20px 25px;
    border-top: 1px solid rgba(232, 200, 197, 0.3);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slide-menu-footer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.slide-menu-footer-links a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.slide-menu-footer-links a:hover {
    color: var(--accent-text);
    background: rgba(232, 200, 197, 0.1);
}

/* デコレーション */
.slide-menu-deco {
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--accent-pink);
    opacity: 0.4;
    font-size: 1rem;
}

.slide-menu-deco i {
    animation: float-icon 3s ease-in-out infinite;
}

.slide-menu-deco i:nth-child(2) {
    animation-delay: -1s;
}

.slide-menu-deco i:nth-child(3) {
    animation-delay: -2s;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* レスポンシブ */
@media (max-width: 480px) {
    .slide-menu {
        width: 280px;
    }
    
    .slide-menu-header {
        padding: 15px 20px;
    }
    
    .slide-menu-item {
        padding: 12px 15px;
    }
    
    .slide-menu-category-list li a {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}

/* =========================================
   記事下広告セクション (Middle Ad)
   ========================================= */
.ad-section-middle {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;     /* 中身（文字と広告）を中央寄せ */
    box-sizing: border-box;
}

.ad-label {
    font-size: 0.7rem;
    color: #ccc;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

.ad-content {
    display: block;         /* ★重要：Flexboxを廃止し、通常のブロック要素にする */
    width: 100%;
    background: transparent;
    padding: 0;
    margin-top: 10px;
    min-height: 130px;      /* PC用高さ確保 */
    text-align: center;     /* 念のため中央寄せ */
}

/* 広告ユニット自体を中央に配置する保険 */
.ad-content .adsbygoogle {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* スマホ調整 */
@media (max-width: 600px) {
    .ad-section-middle {
        margin: 0 auto 40px;
        padding: 0 15px;
    }
    
    .ad-content {
        min-height: 250px !important; /* スマホ用高さ確保 */
    }
    
    .ad-content .adsbygoogle {
        min-height: 250px;
    }
}

/* =========================================
   送料表示
   ========================================= */

/* 価格と送料のラッパー */
.mall-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* +送料ラベル */
.shipping-note {
    font-size: 0.7rem;
    color: #888;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}