/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: #0d1a1a;
    color: #e0e0e0;
    font-family: 'Shippori Mincho', serif;
    font-display: swap;
    line-height: 1.6;
}

/* ---------------------------------------
   ▼ PC（マウス操作）専用の設定
--------------------------------------- */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    
    a, button, select, .product-card {
        cursor: none !important;
    }

    /* カスタムカーソルの基本（PCのみ表示） */
    #custom-cursor {
        display: block; /* PCでは表示 */
        width: 20px;
        height: 20px;
        border: 1px solid #00ffcc;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }

    /* 中心点（照準） */
    #custom-cursor::before {
        content: "";
        position: absolute;
        top: 50%; left: 50%;
        width: 2px; height: 2px;
        background: #00ffcc;
        transform: translate(-50%, -50%);
    }

}

/* ---------------------------------------
   ▼ スマホ（タッチ操作）専用の設定
--------------------------------------- */
@media (pointer: coarse) {
    #custom-cursor {
        display: none !important; /* スマホでは完全に消す */
    }
    
    /* スマホでは標準カーソルを表示させる */
    body, a, button, select, .product-card {
        cursor: auto !important;
    }
}

/* 商品ホバー時に「ノイズの塊」に変身 */
body.is-hovering #custom-cursor {
    width: 30px;
    height: 10px;
    border-radius: 0;
    background: #00ffcc;
    box-shadow: 10px -5px 0 #ff0055, -10px 5px 0 #0055ff; /* 色ずれノイズ */
    animation: cursor-noise 0.1s infinite;
    opacity: 0.8;
}

/* マウスでテキストを選択した時の色 */
::selection {
    background-color: #4a0000;
    color: #ff4d4d;
    text-shadow: 0 0 5px #ff0000;
}

/* Firefox用の設定 */
::-moz-selection {
    background-color: #4a0000;
    color: #ff4d4d;
    text-shadow: 0 0 5px #ff0000;
}

/* 画面全体の砂嵐レイヤー */
#sandstorm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(#000 0 0.0001%, #fff 0 0.0002%) 50% 0 / 2500px 2500px;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
}

#sandstorm-overlay.is-sandstorming {
    animation: sandstorm-flicker 0.1s infinite;
    opacity: 0.15; /* 砂嵐の濃さ */
}

/* カート投入時に一瞬だけ動かす */
.is-sandstorming {
    animation: sandstorm-flash 0.8s steps(5) forwards;
}

/* ヘッダー */
header {
    background: rgba(13, 26, 26, 0.9);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1a3a3a;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ全体のスタイル */
.logo {
	text-decoration: none;
    display: inline-block;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.9rem;
    font-weight: bold;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-shadow: 
        0 0 8px rgba(0, 255, 255, 0.8),
        2px 2px 0px rgba(255, 0, 85, 0.7);
    z-index: 1;
	animation: neon-flicker 4s infinite;
}

/* ホバー時の豹変 */
.logo:hover {
    animation: 
        invert-flash 0.1s infinite, 
        glitch-anim 0.1s infinite;
    color: #ff0055;
    text-shadow: none;
}

/* 擬似要素：常に背後で赤黒い影がバグり続ける */
.logo::before {
    content: "UN-EXISTENCE STORE";
    position: absolute;
    top: 2px;
    left: -2px;
    width: 100%;
    height: 100%;
    color: #ff0055;
    z-index: -1;
    animation: glitch-anim 0.2s reverse infinite;
    opacity: 0.4;
    filter: blur(1px);
}

/* ヘッダーのナビゲーションメニュー */
nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-block;
    animation: neon-flicker 5s infinite;
}

/* ホバー時の演出：少し赤く光り、わずかに震える */
nav ul li a:hover {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    animation: glitch-anim 0.2s infinite;
}

/* カートアイコンだけは少し違う周期に */
.cart-icon {
    animation: neon-flicker 3s infinite !important;
}

/* 各メニューの消えるタイミングを微妙にずらす */
nav ul li:nth-child(2) a { animation-delay: 0.5s; }
nav ul li:nth-child(3) a { animation-delay: 1.2s; }
nav ul li:nth-child(4) a { animation-delay: 0.8s; }

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ヒーローエリア */
.hero {
    background-image: url('img/fv-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
	filter: contrast(1.1) brightness(1.0);
}

/* テキストを読みやすくするため少し暗くする */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* オーバーレイより上に表示 */
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    position: relative;
    display: inline-block;
}

/* 疑似要素で「ズレた色」を表現する */
.hero-content h1::before,
.hero-content h1::after {
    content: "あなたの世界に、ないもの。";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    display: none; /* 通常時は隠す */
}

/* 実行時にJSで .is-glitching クラスを付与して動かす */
.hero-content h1.is-glitching::before {
    display: block;
    color: #ff00ff; /* マゼンタ */
    z-index: -1;
    animation: glitch-anim 0.2s infinite;
}

.hero-content h1.is-glitching::after {
    display: block;
    color: #00ffff; /* シアン */
    z-index: -2;
    animation: glitch-anim 0.2s infinite reverse;
}

.hero h1 {
	text-shadow: 0 0 1px #ee07e3, 0 0 10px #964692, 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px #ff00ff;
    font-size: 3rem;
    margin-bottom: 10px;
}

.emergency-marquee {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
    box-shadow: none; 
    border: none;
    height: 30px;
    display: flex;
    align-items: center;
    background: rgba(80, 0, 0, 0.6);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    width: max-content; /* 中身の長さに合わせる */
    animation: marquee-scroll 60s linear infinite; 
}

.warning-text {
    font-family: sans-serif;
    font-weight: normal;
    color: #ccc;
    font-size: 0.85rem;
    padding-right: 100px;
    display: inline-block;
}

/* 走査線 */
.emergency-marquee::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.2) 1px,
        rgba(0, 0, 0, 0.2) 2px
    );
    pointer-events: none;
    animation: bar-flicker 5s infinite step-end;
}

/* グリッドレイアウト */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

/* 高周波ノイズの土台 */
.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 255, 204, 0.15) 50%
    );
    background-size: 100% 2px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

/* ホバー時にノイズを起動 */
.product-card:hover .image-container::after {
    opacity: 1;
    animation: noise-freq 0.1s infinite; /* 高速で上下に揺らす */
}

/* 商品カード */
.product-card h2 {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* 商品名英語表記の部分 */
.sub-name {
    display: block;
    font-size: 0.8rem;
    color: #00ffcc;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.8;
}

.product-card {
    background: #122323;
    border: 1px solid #1a3a3a;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    border-color: #00ffcc;
    transform: translateY(-5px);
}

/* グリッチ演出 */
.product-card:hover .glitch-img {
    animation: glitch 0.2s infinite, invert-flash 0.3s ease-out;
    filter: brightness(1.2) contrast(1.2);
}

.glitch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-container {
    display: flex;
    gap: 5px;
    padding: 10px;
    height: 70px; /* 複数画像がない場合もこの高さを確保する*/
}
.thumb-container img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid #1a3a3a;
}
.thumb-container img:hover {
    opacity: 1;
    border-color: #00ffcc;
}

/* 説明文のスタイル */
.description {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.7;
}

/* 注意書きのボックス */
.caution-box {
    background-color: rgba(255, 0, 85, 0.05);
    border-left: 3px solid #ff0055;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1.0rem;
}

/* 「【注意】」の文字だけ強調 */
.caution-title {
    color: #ff0055;
    font-weight: bold;
    display: block; /* 改行させる */
    margin-bottom: 5px;
}

.caution-box p {
    margin: 0;
    line-height: 1.4;
}

.neon-text {
    text-shadow: 0 0 5px #fff, 0 0 10px #ff0055, 0 0 20px #ff0055;
}

/* 選択エリア全体のラップ */
.selection-area {
    margin-bottom: 20px;
}

.select-group {
    margin-bottom: 12px;
}

.select-group label {
    display: block;
    font-size: 0.75rem;
    color: #00ffcc;
    margin-bottom: 5px;
}

/* プルダウンのカスタマイズ */
select {
    width: 100%;
    padding: 10px;
    background-color: #1a3a3a;
    border: 1px solid #333;
    color: #e0e0e0;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.0rem;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    border-radius: 0;
}

select:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

/* プルダウン内の選択肢*/
select option {
    background-color: #122323;
    color: #e0e0e0;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    border-radius: 2px;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000; 
}

/* 残りわずかラベル */
.neon-text {
    background: rgba(139, 0, 0, 0.85); 
    color: #ff4d4d;
    border: 1px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    animation: neon-flicker 1.5s infinite;
}

/* 新商品ラベル */
.warning-text {
    background: rgba(0, 40, 30, 0.85); 
    color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
    animation: warning-flicker 4s infinite;
	padding-left: 10px;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.price {
    font-family: 'Orbitron', sans-serif;
    color: #00ffcc;
    font-size: 1.4rem;
    margin-top: auto; 
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: 0;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.6), 0 0 2px rgba(0, 255, 204, 0.8);
    letter-spacing: 1px;
    font-style: italic;
}

/* ボタン類 */
.cart-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
    background: #00ffcc;
    color: #0d1a1a;
    font-weight: bold;
    position: relative;
    overflow: hidden;
	font-size: 1.0rem;
}

.cart-btn:hover {
    background: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

.sub-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: transparent;
    color: #ff0055; /* 警告を連想させる赤系 */
    border: 1px solid #ff0055;
    cursor: pointer;
    font-family: 'Shippori Mincho', serif;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.0rem;
    letter-spacing: 0.1em;
}

.sub-btn:hover {
    background: rgba(255, 51, 51, 0.2);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
    text-shadow: 0 0 5px #ff3333;
}

.options {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* カテゴリタグの基本スタイル */
.category-tags {
    margin: -5px 0 15px 0;
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 0.9rem;
    padding: 2px 10px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    font-weight: bold;
    border: 1px solid;
}

/* カテゴリ別の発光色 */

.tag-body { 
    color: #0077ff; /* 鮮やかな青：身体・物理系 */
    border-color: rgba(0, 119, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 119, 255, 0.3);
    background: rgba(0, 30, 60, 0.4);
}

.tag-mind { 
    color: #ff00ff; /* マゼンタ：精神・意識系 */
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.2);
}

.tag-social { 
    color: #ffff00; /* イエロー：対人・認識系 */
    border-color: rgba(255, 255, 0, 0.5);
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.2);
}

/* レビューセクション全体 */
.review-section {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #1a3a3a;
	position: relative;
    overflow: hidden;
}

/* 疑似要素でノイズの「走査線」を作る */
.review-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 1px,
        rgba(0, 255, 204, 0.03) 2px,
        rgba(0, 0, 0, 0) 3px
    );
    pointer-events: none; /* クリックを邪魔しない */
    z-index: 2;
}

.review-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    display: inline-block;
}

/* サブタイトル（VOICE OF VICTIMS）の調整 */
.review-section h2 .sub-name {
	font-family: 'Orbitron', sans-serif;
    display: block;
    font-size: 0.85rem;
    color: #00ffcc;
    letter-spacing: 1px;
    margin-top: 4px;
}


/* レビュー全体のコンテナを中央寄せ＆幅制限 */
.review-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* レビューのグリッドレイアウト */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

/* 各レビューカードの装飾 */
.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 2px;
    position: relative;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 3px;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff00ff !important; /* ホバーで色を変える */
	box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
	text-shadow: 1px 1px 0px rgba(255, 0, 255, 0.5);
}

/* レビュー内の文字サイズとレイアウト */
.review-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.review-item-name {
    display: inline-block;
    font-size: 1.0rem;
    padding: 2px 10px;
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 2px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.reviewer {
    font-size: 1.0rem;
    color: #888;
    text-align: right;
    font-style: italic;
}

.review-stars {
    color: #ff00ff;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.review-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    ); /* 走査線のようなノイズ */
    pointer-events: none;
}

/* 初期状態では7枚目以降を隠す */
.hidden-review {
    display: none;
}

.show {
    animation: fadeIn 0.4s ease forwards;
}

/* ボタンのコンテナ */
.more-btn-container {
    text-align: center;
    margin-top: 40px;
}

/* ボタンのデザイン */
#loadMoreBtn {
    padding: 15px 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

/* 表示された時のアニメーション用*/
.review-card.show {
    display: block;
    animation: fadeIn 0.5s forwards;
}

/* アバウトセクション全体 */
.about-section {
    padding: 80px 20px;
    background: #0a1a1a;
    border-top: 1px solid #1a3a3a;
    text-align: center;
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    color: #e0e0e0;
    line-height: 2.0;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
    min-height: 1.8em;
}

/* --- 走査線（スキャンライン）エフェクト --- */
.about-section {
    position: relative; /* 子要素の基準にする */
    overflow: hidden;   /* 線がはみ出さないように */
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 横縞（スキャンライン）を作るグラデーション */
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px; /* 線の太さ調整 */
    z-index: 10;
    pointer-events: none; /* 下の文字を選択できるようにする */
}

/* 警告文の枠を不気味に明滅させる */
.about-section .caution-box {
    border: 1px solid #ff0055;
    animation: alert-glow 3s infinite;
}

footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #1a3a3a;
}

/* 1. 共通設定：最初は透明 */
.js-scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 2. 初期位置：奇数は「左下」、偶数は「右下」に配置*/
.js-scroll-reveal:nth-child(odd) {
    transform: translate(-30px, 20px);
}

.js-scroll-reveal:nth-child(even) {
    transform: translate(30px, 20px);
}

/* 3. 表示状態：透明度を戻し、中央（元の位置）へ移動*/
.js-scroll-reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* カートが更新された時のアニメーション*/
.cart-bump {
    animation: bump 0.4s ease-out;
}

.bar {
    width: 2px;
    height: 100%;
    background: #00ffcc;
    box-shadow: 0 0 5px #00ffcc;
    animation: sound-pulse 0.5s infinite ease-in-out alternate;
}

/* 各バーの動きをバラバラにする */
.bar:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.4s; }
.bar:nth-child(3) { animation-delay: 0.3s; animation-duration: 0.6s; }
.bar:nth-child(4) { animation-delay: 0.2s; animation-duration: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; animation-duration: 0.5s; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; /* スマホでは正方形のアイコンにする */
    height: 45px;
    padding: 0;
    
    background: rgba(13, 26, 26, 0.7);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.5);
    border-radius: 4px; /* 少し角を丸く */
    
    text-decoration: none;
    font-size: 1.2rem;
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    animation: neon-flicker 5s infinite;
    pointer-events: none;
}

/* 通常時は文字を隠す */
.back-to-top .text {
    display: none;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    margin-top: 5px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    background: rgba(0, 255, 204, 0.1);
}

/* PC（画面幅 768px 以上）での挙動 */
@media (min-width: 768px) {
    .back-to-top {
        width: auto;
        height: auto;
        padding: 15px 8px;
        flex-direction: column;
    }
    
    .back-to-top .text {
        display: inline-block; /* PCでは文字を表示 */
    }

    .back-to-top:hover {
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
        background: rgba(0, 255, 204, 0.2);
        transform: translateY(-5px);
    }
}

/* ============================================================
   アニメーション
   ============================================================ */

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

@keyframes bar-flicker {
    0%, 95% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
    99% { opacity: 0.9; }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* ネガポジ反転のアニメーション　*/
@keyframes invert-flash {
    0% {
        filter: invert(100%);
    }
    100% {
        filter: invert(0%);
    }
}

@keyframes alert-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 85, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }
}

@keyframes bump {
    0% { transform: scale(1); color: #e0e0e0; }
    50% { transform: scale(1.5); color: #00ffcc; text-shadow: 0 0 10px #00ffcc; }
    100% { transform: scale(1); color: #e0e0e0; }
}

@keyframes sound-pulse {
    0% { height: 10%; opacity: 0.3; }
    100% { height: 100%; opacity: 1; }
}

/* 高周波ノイズの動き */
@keyframes noise-freq {
0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(2px); opacity: 1; }
}

@keyframes cursor-noise {
    0% { transform: translate(-50%, -50%) skewX(0deg); filter: hue-rotate(0deg); }
    50% { transform: translate(-48%, -52%) skewX(20deg); filter: hue-rotate(90deg); }
    100% { transform: translate(-52%, -48%) skewX(-20deg); filter: hue-rotate(0deg); }
}

@keyframes sandstorm-flash {
    0% { opacity: 0; filter: contrast(100); }
    10% { opacity: 0.8; transform: scale(1.1); }
    30% { opacity: 0.5; transform: scale(0.9) translateX(5px); }
    50% { opacity: 1; transform: scale(1.2) translateY(-5px); }
    80% { opacity: 0.3; }
    100% { opacity: 0; }
}

@keyframes sandstorm-flicker {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* 激しく揺れるアニメーション */
@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(-3px, -2px); }
    60% { transform: translate(3px, 2px); }
    80% { transform: translate(3px, -2px); }
    100% { transform: translate(0); }
}

/* 「残りわずか」用の激しい点滅アニメーション*/
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 22%, 24%, 55% { opacity: 0.6; }
}

/* 「新商品」用のゆっくりとした点滅アニメーション */
@keyframes warning-flicker {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 5px rgba(0, 255, 204, 0.2);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------*/
/*  レスポンシブ対応              */
/* -----------------------------*/

/* タブレット向け (画面幅1024px以下) */
@media screen and (max-width: 1024px) {
.review-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    }

.hero h1 {
    font-size: 2.5rem;
    }
	
.review-inner {
    max-width: 90%;
    }
	
}

/* スマートフォン向け (画面幅600px以下) */
@media screen and (max-width: 600px) {
    
    header {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%) !important;
        padding-top: 30px; 
        overflow: hidden !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .logo {
        font-size: 1.0rem;
        margin-bottom: 5px;
        line-height: 1.2;
        display: inline-block;
        text-shadow: 0 0 4px rgba(0, 255, 255, 0.8), 2px 2px 0px rgba(255, 0, 85, 0.7) !important;
    }
    
    .header-inner {
        flex-direction: column; 
        gap: 2px;
        padding: 5px 5px 15px;
        /* 内側の要素もはみ出しを禁止 */
        overflow-x: hidden; 
        width: 100%;
        box-sizing: border-box;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 12px;
        padding: 0;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        font-size: 0.75rem;
        padding: 2px 0;
    }
    
    nav ul li:not(:last-child)::after {
        content: "|";
        color: rgba(255, 255, 255, 0.1); 
        margin-left: 10px;
    }
    
    .cart-icon {
        margin-top: 2px;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .review-section h2 {
        font-size: 1.6rem;
    }

    .product-grid,
    .review-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.65rem;
        background: rgba(13, 26, 26, 0.9);
    }
	
	/*レビュー*/
    .review-inner {
        width: 92% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    /*カードを並べるグリッドの余白 */
    .review-grid {
        gap: 15px !important;
    }

    /*レビューカード自体の横幅 */
    .review-card {
        width: 100% !important;
        padding: 20px 15px !important;
        margin: 0 auto !important;
    }
	
}

