/*
 Theme Name: ORBITAL MANEUVER
 Theme URI: 
 Description: ORIGINAL THEME
 Author: ALUA inc.
 Version: 1.1 (Dark Theme Refactored & Optimized)
*/

/* =========================================================
   1. Base & Common (Dark Theme Base)
========================================================= */
html, body, #page, #wrapper, .wrapper, #content, .site-content, 
.site-inner, #primary, #main, main, .main-container, .wrap, 
.container, .container-fluid, .page-inner, section, article, 
.bg-white, .bg-light, .has-background, .has-background-white {
    background-color: transparent !important;
    background: transparent !important;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #ffffff;
    line-height: 1.6;
}

main { padding: 200px 20px 100px !important; }

::-webkit-scrollbar {
    width: 10px;
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,1);
}
::-webkit-scrollbar-track {
    border-radius: 0px;
    background: #fff;
}

.font-serif {
    font-family: 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", serif;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

.page-container { padding: 60px 4vw; }
.page-header { margin-bottom: 40px; }
.page-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px;
    letter-spacing: 0.05em;
    color: #ffffff;
}
.page-subtitle { font-size: 14px; color: #cccccc; font-weight: bold; letter-spacing: 1px;}
.breadcrumb { font-size: 12px; color: #aaaaaa; margin-bottom: 30px; letter-spacing: 1px; }

.text-muted, .text-black, .text-secondary { color: #e0e0e0 !important; }
a.text-muted:hover { color: #ffffff !important; }

/* ▼ 画像やアイコンの白反転（ベース） ▼ */
.custom-logo, .header-logo img, .header-icon img, .header-icon svg, .social-icons img, .social-icons svg {
    filter: brightness(0) invert(1) !important;
    fill: #ffffff !important;
    color: #ffffff !important;
}


/* =========================================================
   2. Buttons (Ghost Style for Dark Theme)
========================================================= */
.btn, button, input[type="submit"], input[type="button"], .wp-block-button__link {
    display: inline-block;
    padding: 15px 40px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
    border-radius: 4px;
}


/* =========================================================
   3. Header & Navigation (Fixed Dark Theme)
========================================================= */
#site-header, .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease !important;
}

/* スクロール追従時のヘッダー背景 */
#site-header.is-scrolled {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 40px;
    position: relative;
}
.header-left, .header-icons {
    flex: 1;
    display: flex;
    align-items: center;
}
.header-left { justify-content: flex-start; }
.header-icons { justify-content: flex-end; gap: 15px; }

.logo {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.logo img { height: 30px; width: auto; }

/* ロゴ・SNSアイコンの強制白色化 */
body.home #site-header .logo img,
body.home #site-header .header-icons img,
body.front-page #site-header .logo img,
body.front-page #site-header .header-icons img,
body:not(.home):not(.front-page) #site-header .logo img,
body:not(.home):not(.front-page) #site-header .header-icons img {
    filter: brightness(0) invert(1) !important; 
}

/* SNSアイコン */
.sns-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #ffffff; transition: color 0.3s, transform 0.3s; }
.sns-icon:hover { color: #aaaaaa; transform: translateY(-3px); }
.sns-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ハンバーガーボタン */
.hamburger-btn {
    background: none; border: none; cursor: pointer; width: 24px; height: 18px; position: relative; padding: 0;
}
.hamburger-btn span {
    display: block; position: absolute; width: 100%; height: 2px; background-color: #ffffff !important; transition: all 0.3s ease;
}
.hamburger-btn:hover { opacity: 1 !important; }
.hamburger-btn:hover span { background-color: #ffffff !important; }
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 8px; }
.hamburger-btn span:nth-child(3) { bottom: 0; }
.hamburger-btn.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* =========================================================
   4. Side Drawer Menu
========================================================= */
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0; visibility: hidden; z-index: 9998; transition: all 0.4s ease;
}
.drawer-overlay.is-active { opacity: 1; visibility: visible; }

.side-drawer-menu {
    position: fixed; top: 0; left: -100%; width: 450px; max-width: 85%; height: 100vh;
    background-color: #050505; z-index: 10000; transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto; padding: 50px 40px; border-right: 1px solid rgba(255,255,255,0.1);
}
.side-drawer-menu.is-active { left: 0; }
.drawer-header { display: flex; gap: 30px; margin-bottom: 60px; }
.drawer-action-btn {
    background: none; border: none; padding: 0; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 500;
}
.icon-close, .icon-search { font-size: 16px; font-weight: bold; color: #fff;}
.drawer-nav-content ul { display: flex; flex-direction: column; gap: 5px; }
.drawer-nav-content a { color: #ffffff; font-size: 14px; display: block; letter-spacing: 2px; }
.drawer-nav-content a:hover { color: #aaaaaa; }
.drawer-nav-content .sub-menu { padding: 0 0 0 30px; margin: 20px 0; }


/* =========================================================
   5. Footer
========================================================= */
.site-footer { padding: 40px 4vw; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-logo img { max-width: 140px; height: auto; display: block; }
.footer-links { margin-right: auto; display: flex; flex-direction: column; gap: 8px; }
.footer-nav, .footer-subnav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 11px; }
.footer-nav { font-weight: bold; }
.copyright { font-size: 10px; color: #999; }

@media screen and (max-width: 992px) {
    .footer-inner { flex-direction: column; align-items: center; gap: 25px; }
    .footer-links { margin-right: 0; align-items: center; }
    .footer-nav, .footer-subnav { justify-content: center; gap: 15px; }
}


/* =========================================================
   6. Front Page (Home) & Animations
========================================================= */
.home-main { padding-top: 60px; padding-bottom: 0; }
.home-hero-logo { text-align: center; margin-bottom: 80px; }
.home-hero-logo img { max-width: 320px; height: auto; filter: invert(100%); }

/* メインビジュアル（SVG・テキスト） */
.cyber-main-visual {
    position: relative; width: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start; overflow: hidden; z-index: 1;
}
/* =========================================================
   トップページ：メインキャッチを画面の中央に配置
========================================================= */
/* ▼ テキストを囲っている親要素を基準にするための設定 */
.cyber-main-visual,
.mv-wrap,
#main-visual {
    position: relative !important;
}

/* ▼ メインキャッチを上下左右のど真ん中に強制配置 */
/* （※テーマによってテキストのクラス名が異なるため、代表的なものを入れています） */
.mv-text,
.mv-title,
.main-catch,
.catchcopy,
.hero-text,
.cyber-mv-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* テキスト自体も中央揃えにする */
    text-align: center !important;
    
    /* 横幅いっぱいまで広げて文字が途中で折り返さないようにする */
    width: 100% !important;
    max-width: 90% !important; /* スマホで端にくっつかないための安全マージン */
    
    /* 背景画像やエフェクトより手前に表示する */
    z-index: 10 !important;
}
.cyber-mv-text h2 { color: #ffffff; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: clamp(20px, 3vw, 40px); letter-spacing: 0.25em; font-weight: 700; margin-bottom: 20px; }
.cyber-mv-text p { color: #cccccc; font-size: clamp(12px, 1.5vw, 15px); letter-spacing: 0.2em; font-weight: 300; }

/* 遷移用フェード・パーティクル */
.cyber-mv-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #ffffff; 
    z-index: 2147483648; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.6s ease;
}
.cyber-mv-transition.is-exiting { opacity: 1; visibility: visible; pointer-events: auto; }
#rebirth-canvas-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 3; pointer-events: none; }
.rebirth-content-area { padding: 100px 20px; position: relative; z-index: 10; background-color: transparent; }

/* バナー */
.home-banners { margin-bottom: 100px; padding: 0 4vw; }
.banner-grid { display: flex; gap: 30px; }
.banner-item { flex: 1; }
.banner-item img { width: 100%; height: auto; border-radius: 16px; display: block; transition: transform 0.3s; }
.banner-item a { opacity: 1 !important; }
.banner-item a:hover img { transform: scale(1.02); }

/* カテゴリ・商品スライダー */
.home-category { margin-bottom: 80px; padding: 0 4vw; }
.category-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.category-label { font-size: 10px; color: #aaaaaa; letter-spacing: 0.1em; margin: 0 0 5px; }
.category-title { font-size: 36px; font-weight: bold; margin: 0; line-height: 1; color: #ffffff; }
.nav-area { display: flex; align-items: center; gap: 30px; }
.btn-view-all { background-color: #ffffff !important; color: #000000 !important; padding: .5rem 1rem; border-radius: 8px; }
.btn-view-all:hover { background-color: #e0e0e0 !important; color: #000000 !important; }
.slider-arrows { display: flex; align-items: center; gap: 20px; user-select: none; }
.slider-arrows .arrow { cursor: pointer; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.slider-arrows .arrow svg { width: 18px !important; height: auto !important; display: block; fill: #fff; }
.slider-arrows .arrow:hover { opacity: 0.5; }

.product-slider-box { border-radius: 20px; padding: 0px 4vw; }
.product-slide-item { width: 280px; background-color:#ffffff; border-radius: 8px; overflow: hidden; }
.product-slide-item a { display: block; width: 100%; text-decoration: none; }
.product-slide-item img { width: 100%; height: auto; display: block; transition: opacity 0.3s; }
.home-bottom-banner { margin-top: 100px; }
.home-bottom-banner img { width: 100%; height: auto; display: block; }

/* ▼ カルーセルアイテム過剰拡大リセット ＆ ホバー演出 ▼ */
.swiper-slide, .slick-slide, .splide__slide, .carousel-item, .slider-item, .product-slide-item {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, filter 0.4s ease !important;
    will-change: transform;
}
.product-slider-box .swiper-slide:hover, .product-slide-item:hover {
    transform: translateY(-5px) !important; scale: 1 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6) !important; z-index: 10 !important;
}
.product-slider-box .swiper-slide:hover img, .product-slider-box .swiper-slide a:hover img, .product-slide-item:hover img, .product-slide-item a:hover img {
    transform: none !important; scale: 1 !important; opacity: 1;
}

/* ▼ グリッチ・サイバー系アニメーション キーフレーム群 ▼ */
@keyframes target-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes cyber-blur-reveal { 0% { opacity: 0; filter: blur(30px); transform: scale(1.05); } 100% { opacity: 1; filter: blur(0px); transform: scale(1); } }
@keyframes mv-periodic-glitch-fast {
    0%, 4%, 8%, 12%, 34%, 38%, 42%, 74%, 78%, 82%, 100% { transform: translate(0, 0) skewX(0); filter: none; }
    5% { transform: translate(15px, 0) skewX(20deg); filter: contrast(200%) hue-rotate(60deg); }
    6% { transform: translate(-15px, 0) skewX(-20deg); filter: contrast(200%) hue-rotate(-60deg); }
    7% { transform: translate(4px, 0) skewX(5deg); filter: none; }
    35% { transform: translate(-8px, 2px) skewX(-8deg); filter: invert(15%); }
    36% { transform: translate(8px, -2px) skewX(8deg); filter: none; }
    37% { transform: translate(-3px, 1px) skewX(-3deg); filter: none; }
    75% { transform: translate(-10px, 5px) skewX(-12deg); filter: invert(30%) saturate(250%); }
    76% { transform: translate(10px, -5px) skewX(12deg); filter: hue-rotate(90deg); }
    77% { transform: translate(-2px, 3px) skewX(-2deg); filter: none; }
}
@keyframes cyber-glitch-reveal {
    0% { opacity: 0; filter: brightness(200%) grayscale(100%); transform: scale(1.05) translateX(-2%); clip-path: inset(10% 0 80% 0); }
    10% { opacity: 1; filter: brightness(300%) invert(100%); transform: scale(1.05) translateX(2%); clip-path: inset(80% 0 10% 0); }
    20% { filter: contrast(200%) hue-rotate(90deg); transform: translateX(-1%); clip-path: inset(20% 0 40% 0); }
    30% { filter: none; transform: translateX(1%); clip-path: inset(60% 0 20% 0); }
    40% { transform: translateX(0); clip-path: inset(0 0 0 0); }
    45% { filter: invert(100%); opacity: 0.8; }
    50% { filter: none; opacity: 1; }
    55% { transform: skewX(-5deg); } 60% { transform: skewX(5deg); } 65% { transform: skewX(0); }
    100% { opacity: 1; filter: none; transform: scale(1) translateX(0); clip-path: inset(0 0 0 0); }
}
@keyframes cyber-glitch-reveal-alt {
    0% { opacity: 0; filter: brightness(250%) sepia(100%) hue-rotate(180deg); transform: scale(1.08) translateX(3%); clip-path: inset(80% 0 10% 0); }
    10% { opacity: 1; filter: brightness(200%) invert(100%); transform: scale(1.02) translateX(-4%); clip-path: inset(15% 0 55% 0); }
    20% { filter: contrast(300%) hue-rotate(-90deg); transform: translateX(2%); clip-path: inset(45% 0 15% 0); }
    30% { filter: none; transform: translateY(2%); clip-path: inset(30% 0 60% 0); }
    40% { transform: translateX(0) translateY(0); clip-path: inset(0 0 0 0); }
    45% { filter: hue-rotate(90deg) contrast(200%); opacity: 0.7; }
    50% { filter: none; opacity: 1; }
    55% { transform: skewX(8deg); } 60% { transform: skewX(-8deg); } 65% { transform: skewX(0); }
    100% { opacity: 1; filter: none; transform: scale(1) translateX(0); clip-path: inset(0 0 0 0); }
}
@keyframes cyber-glitch-hover-left {
    0%, 4%, 8%, 12%, 54%, 58%, 62%, 100% { transform: scale(1.02) translate(0, 0) skewX(0); filter: none; }
    5% { transform: scale(1.02) translate(5px, 0) skewX(15deg); filter: contrast(150%) hue-rotate(45deg); }
    6% { transform: scale(1.02) translate(-5px, 0) skewX(-15deg); filter: contrast(150%) hue-rotate(-45deg); }
    7% { transform: scale(1.02) translate(2px, 0) skewX(5deg); filter: none; }
    55% { transform: scale(1.02) translate(-3px, 2px) skewX(-10deg); filter: invert(20%) saturate(200%); }
    56% { transform: scale(1.02) translate(3px, -2px) skewX(10deg); filter: hue-rotate(90deg); }
    57% { transform: scale(1.02) translate(-1px, 1px) skewX(-2deg); filter: none; }
}
@keyframes cyber-glitch-hover-right {
    0%, 14%, 18%, 22%, 74%, 78%, 82%, 100% { transform: scale(1.02) translate(0, 0) skewX(0); filter: none; }
    15% { transform: scale(1.02) translate(-6px, 0) skewX(-20deg); filter: contrast(160%) hue-rotate(-90deg); }
    16% { transform: scale(1.02) translate(6px, 0) skewX(15deg); filter: none; }
    17% { transform: scale(1.02) translate(-3px, 0) skewX(-5deg); filter: invert(15%); }
    75% { transform: scale(1.02) translate(4px, -1px) skewX(12deg); filter: saturate(300%) hue-rotate(30deg); }
    76% { transform: scale(1.02) translate(-5px, 1px) skewX(-10deg); filter: contrast(200%); }
    77% { transform: scale(1.02) translate(2px, 0) skewX(4deg); filter: none; }
}

.banner-item img.glitch-ready { opacity: 0; visibility: hidden; }
.banner-item:nth-child(odd) img.is-glitch-active { visibility: visible; animation: cyber-glitch-reveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.banner-item:nth-child(even) img.is-glitch-active { visibility: visible; animation: cyber-glitch-reveal-alt 1.35s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.banner-item:nth-child(odd):hover img.is-glitch-active { opacity: 1 !important; visibility: visible !important; animation: cyber-glitch-hover-left 3s infinite linear alternate-reverse; }
.banner-item:nth-child(even):hover img.is-glitch-active { opacity: 1 !important; visibility: visible !important; animation: cyber-glitch-hover-right 2.5s infinite linear alternate-reverse; }

.cyber-shuffle { opacity: 0; visibility: hidden; transition: opacity 0.1s ease; }
.cyber-blur-fade { opacity: 0; filter: blur(30px); visibility: hidden; transform: scale(1.05); }
.cyber-blur-fade.is-blur-active { visibility: visible; animation: cyber-blur-reveal 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

/* オープニングローダー */
.cyber-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 2147483650; display: flex; pointer-events: auto; }
.loader-bg { position: absolute; top: 0; width: 50%; height: 100vh; background-color: #ffffff; transition: background-color 0.4s ease-in-out, transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.loader-bg-left { left: 0; transform-origin: left; }
.loader-bg-right { right: 0; transform-origin: right; }
.loader-svg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; z-index: 10000; transition: opacity 0.6s ease; }
.loader-line, .loader-circle { stroke: #000000; stroke-width: 2px; fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke 0.4s ease-in-out; }
.loader-circle { r: clamp(80px, 12vw, 200px); }
@keyframes loader-draw { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } }
.line-1 { animation: loader-draw 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.3s; }
.line-2 { animation: loader-draw 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.8s; }
.circle-1 { animation: loader-draw 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards 1.3s; }
.cyber-loader.is-inverted .loader-bg { background-color: #000000; }
.cyber-loader.is-inverted .loader-line, .cyber-loader.is-inverted .loader-circle { stroke: #ffffff; }
.cyber-loader.is-open .loader-bg-left { transform: translateX(-100%); }
.cyber-loader.is-open .loader-bg-right { transform: translateX(100%); }
.cyber-loader.is-open .loader-svg-wrapper { opacity: 0; }
.cyber-loader.is-hidden { display: none; }

/* =========================================================
   7. Archive & Product Grid (Includes Infinity Scroll)
========================================================= */
.archive-main-container { margin: 0 auto; padding: 200px 20px 100px; }
.archive-header { margin-bottom: 40px; }
.archive-breadcrumb { font-size: 12px; color: #aaaaaa; margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }
.archive-title { font-size: 32px; font-weight: bold; color: #ffffff; margin: 0; }

.item-archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.item-card {
    background-color:#fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px;
    padding: 30px 20px; display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #262626; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1); }
.item-card-title { font-size: 14px; font-weight: bold; text-align: center; line-height: 1.4; margin: 0 0 20px 0; height: 40px; display: flex; align-items: center; justify-content: center; color:#262626;}
.item-card-image { width: 100%; margin-bottom: 20px; display: flex; justify-content: center; }
.item-card-image img { max-width: 100%; height: auto; object-fit: contain; }
.item-card-price { margin-top: auto; text-align: center; color:#262626;}
.item-card-price .price-number { font-size: 20px; font-weight: bold; }
.item-card-price .price-currency { font-size: 12px; font-weight: bold; margin-left: 3px; }

.scroll-reveal { opacity: 0; transform: translateY(30px); visibility: hidden; transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); visibility: visible; transition-delay: .75s; }
.scroll-reveal.is-visible:hover { transform: translateY(-10px); transition-delay: 0s, 0s; }

.loading-indicator { display: flex; justify-content: center; align-items: center; padding: 40px 0; opacity: 0; transition: opacity 0.3s; }
.loader { width: 40px; height: 40px; border: 4px solid #444; border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }


/* =========================================================
   8. Cart Page
========================================================= */
.page-cart .page-desc { font-size: 13px; margin-bottom: 40px; color:#ccc;}
.cart-table-header { display: flex; border-top: 1px solid #444; border-bottom: 1px solid #444; padding: 15px 0; font-size: 13px; font-weight: bold; }
.th-product { width: 60%; } .th-qty { width: 15%; text-align: center; } .th-total { width: 25%; text-align: right; }

.cart-item { display: flex; align-items: center; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); padding: 20px; margin-top: 20px; border-radius: 4px; }
.item-img { width: 120px; margin-right: 20px; }
.item-img img { width: 100%; height: auto; }
.item-info { flex: 1; }
.item-name { font-size: 16px; font-weight: bold; margin: 0 0 10px; }
.item-meta { font-size: 13px; color: #aaa; line-height: 1.8; margin: 0; }
.item-qty { width: 15%; display: flex; justify-content: center; }
.qty-input { display: flex; border: 1px solid #444; padding: 5px 10px; align-items: center;}
.qty-input input { width: 40px; border: none; text-align: center; font-size: 14px; background: transparent; color: #fff;}
.item-price { width: 25%; text-align: right; }
.item-price .price { font-size: 16px; font-weight: bold; margin: 0 0 10px; }
.btn-delete { background: none; border: none; font-size: 12px; color: #aaa; cursor: pointer; text-decoration: underline; }

.cart-summary { text-align: right; margin-top: 40px; padding-bottom: 40px; border-bottom: 1px solid #444; }
.subtotal { font-size: 14px; margin-bottom: 20px; }
.subtotal span { font-size: 24px; font-weight: bold; margin-left: 10px; }
.cart-actions { display: flex; justify-content: flex-end; gap: 20px; }
.cart-actions .btn { width: 240px; }

.delivery-notice { font-size: 13px; color: #ccc; margin-top: 60px; line-height: 1.8; }
.delivery-notice h2 { font-size: 16px; margin-bottom: 20px; color:#fff;}
.delivery-notice p { margin-bottom: 20px; }

.recommended-section { margin-top: 80px; }
.section-title { font-size: 24px; font-weight: bold; margin-bottom: 30px; text-align:center; letter-spacing:2px;}
.product-grid { display: flex; gap: 20px; }
.product-card { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); padding: 30px 20px; border-radius: 12px; text-align: center; width: 25%; }
.product-card img { width: 100%; margin: 20px 0; }
.product-card .product-name { font-size: 14px; font-weight: bold; margin-bottom: 10px; color:#fff;}
.product-card .product-price { font-size: 18px; font-weight: bold; color:#fff;}
.product-card .product-price span { font-size: 12px; }


/* =========================================================
   9. Legal, Terms & 404 Pages
========================================================= */
.page-main-container { max-width: 1200px; margin: 0 auto; padding: 120px 20px 100px; }
.page-breadcrumb { font-size: 12px; color: #aaaaaa; margin-bottom: 15px; letter-spacing: 1px; }
.page-divider { border: none; border-top: 1px solid #f2f2f2; margin: 0 0 50px 0; }
.page-content, .terms-content { color: #ffffff; line-height: 1.8; font-size: 14px;}
.legal-dl { display: flex; flex-wrap: wrap; margin-bottom: 40px; }
.legal-dl dt { width: 200px; font-weight: bold; font-size: 14px; margin-bottom: 25px; }
.legal-dl dd { width: calc(100% - 200px); font-size: 14px; margin-bottom: 25px; }
.legal-h2, .terms-h2, .terms-heading, .legal-section-title { font-size: 16px; font-weight: bold; margin: 40px 0 20px; letter-spacing: 1px; }
.legal-list, .legal-bullet-list { font-size: 14px; line-height: 1.8; margin-bottom: 20px; padding-left: 20px; list-style-type: disc;}
.legal-list li, .legal-bullet-list li { margin-bottom: 10px; }
.legal-bullet-list li strong { display: inline-block; margin-bottom: 5px; letter-spacing: 1px; }
.legal-bullet-list li a, .legal-list dd a { text-decoration: underline; color: #fff; transition: color 0.3s; }
.legal-bullet-list li a:hover, .legal-list dd a:hover { color: #ccc; }
.terms-intro { margin-bottom: 50px; }
.terms-list { padding-left: 20px; margin: 0; }
.terms-list li { margin-bottom: 10px; list-style-type: decimal; padding-left: 5px; }
.terms-sub-list-simple { padding-left: 20px; margin: 10px 0; list-style-type: none; }
.terms-sub-list-simple li { margin-bottom: 5px; }
.terms-text { margin-bottom: 10px; }

.page-404 { text-align: center; padding: 120px 0; }
.content-404 p { font-size: 15px; margin-bottom: 40px; line-height: 1.8; }


/* =========================================================
   10. Uniform Page
========================================================= */
.uniform-page { margin: 0 auto; color: #ffffff; }
.uniform-page section { margin-bottom: 100px; }
.uniform-page section small { font-size: 12px; }

.uniform-carousel-section { position: relative; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 15px; margin-bottom: 20px; }
.carousel-nav button { background: none; border: none; cursor: pointer; padding: 10px; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s ease; }
.carousel-nav button:hover { opacity: 0.5; }
.carousel-nav button svg { width: 24px; height: 24px; display: block; fill:#fff;}
.carousel-container { overflow: hidden; width: 100%; }
.carousel-wrapper { display: flex; flex-wrap: nowrap !important; gap: 20px; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); align-items: center; cursor: grab; user-select: none; -webkit-user-drag: none; }
.carousel-wrapper:active { cursor: grabbing; }
.carousel-slide { flex: 0 0 calc(65% - 20px) !important; width: calc(65% - 20px) !important; max-width: calc(65% - 20px) !important; box-sizing: border-box; opacity: 0.3; transition: opacity 0.5s ease, transform 0.5s ease; filter: blur(4px); }
.carousel-slide.is-active { opacity: 1 !important; filter: blur(0px); }
.carousel-slide img { width: 100% !important; height: auto !important; display: block; pointer-events: none; }

.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.reason-item { display: flex; flex-direction: column; }
.reason-image img { width: 100%; border-radius: 16px; margin-bottom: 20px; }
.reason-item .dummy-box { aspect-ratio: 4 / 3; margin-bottom: 25px; }
.reason-title { font-size: 16px; font-weight: bold; margin-bottom: 15px; letter-spacing: 1px; }
.reason-text { font-size: 13px; line-height: 1.8; }
.reason-text .note { font-size: 11px; color: #aaaaaa; display: block; margin-top: 8px; }

.steps-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.step-item { display: flex; align-items: center; gap: 40px; background-color: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); padding: 20px; border-radius: 15px; }
.step-item .step-image { flex: 0 0 200px; height: auto; }
.step-item .step-image img { width: 100%; height: auto; display: block; border-radius: 15px; object-fit: cover; }
.step-content { flex: 1; }
.step-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; }
.step-text { font-size: 13px; line-height: 1.8; margin: 0; }
.uniform-form-section .form-wrapper { margin: 0 auto; }


/* =========================================================
   11. Support Player Page & Detail
========================================================= */
.player-page-container { width: 90%; max-width: 1200px; margin: 60px auto 100px; box-sizing: border-box; }
.player-page-header { margin-bottom: 50px; }
.player-breadcrumb { font-size: 12px; color: #aaaaaa; margin-bottom: 10px; letter-spacing: 0.05em; }
.player-page-title { font-size: 42px; font-weight: bold; color: #ffffff; margin: 0; line-height: 1.2; }

.player-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.player-card { display: block; position: relative; border-radius: 20px; overflow: hidden; background-color: transparent; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.player-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); opacity:1 !important; }
.player-card img { width: 100%; height: auto; display: block; filter: grayscale(100%); transition: transform 0.5s ease, filter 0.5s ease; }
.player-card:hover img { transform: scale(1.03); filter: grayscale(0%); }
.player-card.fade-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.player-card.fade-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.player-card.fade-on-scroll.is-visible:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1); }

.player-detail-container { width: 90%; max-width: 1200px; margin: 60px auto 100px; box-sizing: border-box; }
.player-header-area { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; margin-bottom: 40px; }
.player-name-row { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.player-name-en { font-size: 56px; font-weight: bold; color: #ffffff; margin: 0; line-height: 1; letter-spacing: 0.02em; }
.player-name-ja { font-size: 16px; color: #aaaaaa; letter-spacing: 0.1em; }
.player-sns-links { display: flex; gap: 12px; }

.detail-carousel-arrows { display: flex; gap: 15px; padding-bottom: 5px; }
.detail-carousel-arrows button { background: none; border: none; cursor: pointer; width: 32px; height: 32px; padding: 0; color: #ffffff; transition: transform 0.2s; }
.detail-carousel-arrows button:hover { transform: scale(1.1); }
.detail-carousel-container { width: 100%; overflow: hidden; margin-bottom: 80px; cursor: grab; user-select: none; -webkit-user-drag: none; }
.detail-carousel-container:active { cursor: grabbing; }
.detail-carousel-track { display: flex; gap: 20px; }
.detail-carousel-slide { flex: 0 0 calc(30% - 20px); box-sizing: border-box; }
.detail-carousel-slide img { width: 100%; height: auto; display: block; pointer-events: none; border-radius: 10px; }
.player-youtube-wrapper { width: 100%; background-color: #000; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; }
.player-youtube-wrapper iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: none; }


/* =========================================================
   12. Contact Form 7
========================================================= */
.cf7-custom-form { width: 100%; box-sizing: border-box; }
.cf7-custom-form * { box-sizing: border-box; }
.cf7-section-title { font-size: 16px; font-weight: bold; margin: 60px 0 30px; letter-spacing: 1px; }
.cf7-section-title.title-center { text-align: center; }
.cf7-item { display: flex; flex-wrap: wrap; align-items: flex-start; margin-bottom: 25px; width: 100%; }
.cf7-item dt { width: 25%; flex: 0 0 25%; padding-top: 15px; padding-right: 20px; font-size: 14px; font-weight: bold; margin: 0; }
.cf7-item dd { margin: 0; }
.cf7-item dd.w-75 { width: 75%; flex: 0 0 75%; }
.cf7-item dd.w-50 { width: 50%; flex: 0 0 50%; }
.cf7-item dd.w-25 { width: 25%; flex: 0 0 25%; padding-right: 30px; }
.cf7-item dd.w-25:last-child { padding-right: 0; }
.cf7-inputs-2, .cf7-inputs-2 p { display: flex !important; flex-wrap: nowrap !important; gap: 20px; width: 100%; margin: 0 !important; }
.cf7-inputs-2 .wpcf7-form-control-wrap { flex: 1 1 0% !important; width: 100%; display: block !important; }
.cf7-inputs-2 br { display: none !important; }

.cf7-custom-form input[type="text"], .cf7-custom-form input[type="email"], .cf7-custom-form input[type="tel"], 
.cf7-custom-form input[type="number"], .cf7-custom-form select, .cf7-custom-form textarea {
    width: 100%; max-width: 100%; padding: 15px 20px; border: 1px solid rgba(255,255,255,0.3); border-radius: 5px; background-color: rgba(0,0,0,0.5); font-size: 15px; color:#fff;
}
.cf7-custom-form textarea { height: 150px; resize: vertical; }
.cf7-custom-form input:focus, .cf7-custom-form select:focus, .cf7-custom-form textarea:focus { outline: none; border-color: #fff; }
.cf7-custom-form input.readonly-field { background-color: rgba(255,255,255,0.1); color: #fff; font-weight: bold; cursor: not-allowed; pointer-events: none; border-color: rgba(255,255,255,0.1); }

.cf7-btn-black { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; background-color: transparent; border:1px solid #fff; color: #fff; text-decoration: none; font-weight: bold; border-radius: 5px; transition: background-color 0.3s; }
.cf7-btn-black:hover { background-color: #fff; color:#000; }
.cf7-terms-box { background-color: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.3); height: 200px; overflow-y: scroll; padding: 30px; margin-bottom: 30px; font-size: 13px; line-height: 1.8; }
.cf7-acceptance-row { text-align: left; margin-bottom: 30px; font-size: 14px; font-weight: bold; }
.cf7-acceptance-row input[type="checkbox"] { transform: scale(1.2); margin-right: 10px; }
.cf7-submit-row { display: block; }
.cf7-btn-submit { background-color: transparent; border:1px solid #fff; color: #fff; padding: 18px 40px; font-size: 16px; font-weight: bold; cursor: pointer; border-radius: 5px; width: 100%; transition: background-color 0.3s; }
.cf7-btn-submit:hover { background-color: #fff; color:#000; }


/* =========================================================
   13. Size Table Modal Window
========================================================= */
.modal-overlay { display: flex !important; visibility: hidden; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 9999; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease, visibility 0.4s ease; }
.modal-overlay.is-open { visibility: visible; opacity: 1; }
.modal-content { position: relative; width: 90%; height: 80vh; background-color: #111; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 40px 20px 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); box-sizing: border-box; opacity: 0; filter: blur(30px); transform: scale(0.95); transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease; }
.modal-overlay.is-open .modal-content { opacity: 1; filter: blur(0); transform: scale(1); }
.modal-close { position: absolute; top: 5px; right: 15px; font-size: 32px; color: #fff; background: none; border: none; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #ccc; }
.modal-pdf-container { width: 100%; height: 100%; }
.modal-pdf-container iframe { width: 100%; height: 100%; border-radius: 5px; }


/* =========================================================
   14. Shopify Buy Button
========================================================= */
.shopify-button-wrap { width: 100%; }
.shopify-button-wrap iframe { width: 100% !important; max-width: 100% !important; }
.shopify-buy__btn-wrapper{ width:100%; }
.shopify-button-wrap .shopify-buy__product { width: 100% !important; }
.shopify-button-wrap .shopify-buy__btn-and-quantity { display: flex !important; width: 100% !important; align-items: stretch !important; gap: 15px !important; }
.shopify-button-wrap .shopify-buy__btn-wrapper { width: 100% !important; }
.shopify-button-wrap .shopify-buy__quantity-container { width: 120px !important; min-width: 120px !important; margin: 0 !important; display: flex !important; border: 1px solid rgba(255,255,255,0.3) !important; background-color: transparent !important; }
.shopify-button-wrap .shopify-buy__quantity-increment, .shopify-button-wrap .shopify-buy__quantity-decrement { background: transparent !important; border: none !important; width: 35px !important; font-size: 18px !important; cursor: pointer !important; color: #ffffff !important; }
.shopify-button-wrap .shopify-buy__quantity { flex: 1 !important; border: none !important; text-align: center !important; font-size: 16px !important; width: 100% !important; padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; color: #ffffff !important; }
.shopify-button-wrap .shopify-buy__btn { flex-grow: 1 !important; width: 100% !important; background-color: #ffffff !important; color: #000000 !important; border: 1px solid #ffffff !important; border-radius: 0px !important; padding: 16px 0 !important; font-size: 15px !important; font-weight: bold !important; letter-spacing: 0.1em !important; cursor: pointer !important; transition: background-color 0.3s !important; text-align: center !important; }
.shopify-button-wrap .shopify-buy__btn:hover { background-color: #e0e0e0 !important; color: #000000 !important; }

.shopify-buy-frame--cart, .shopify-buy-frame--toggle { transition: transform 0.3s ease-out !important; will-change: transform !important; }
.shopify-buy-frame--toggle { display: block !important; top: 50% !important; bottom: auto !important; right: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important; transform: translateY(-50%) !important; width: 60px !important; height: 180px !important; z-index: 2147483647 !important; }
body:has(.shopify-buy-frame--cart.is-active) .shopify-buy-frame--toggle { transform: translate(-339px, -50%) !important; }


/* =========================================================
   15. Media Queries (Responsive Design)
========================================================= */

/* --- Tablet & Small Desktop (Max: 1024px) --- */
@media (max-width: 1024px) { 
    .item-archive-grid { grid-template-columns: repeat(3, 1fr); } 
    .reasons-grid { gap: 20px; }
    .player-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; } 
}

/* --- Tablet (Max: 991px) --- */
@media screen and (max-width: 991px) {
    /* ヘッダー背景色上書き */
    #site-header { background-color: rgba(0, 0, 0, 0.5) !important; }

    /* MVレイアウト調整 */
    .cyber-mv-svg-wrapper { display: none; }
    .cyber-main-visual { height: 100vh; }
    .cyber-mv-text {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0px auto;
        z-index: 2;
        position: absolute;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        text-align: left;
top: 20vh;
        padding: 1rem;
        height: 60vh;
    }
    .cyber-mv-text h2 { font-size: clamp(26px, 3vw, 44px); }
    .cyber-mv-text p { font-size: clamp(16px, 1.5vw, 15px); font-weight: 500; }

    /* バナー等レイアウト調整 */
    .home-banners .row { display: flex !important; flex-direction: column !important; }
    .home-banners .col-md-6.banner-item { width: 100% !important; max-width: 100% !important; margin-bottom: 20px; }

    /* ヘッダーアイコン位置 */
    .header-icons { justify-content: flex-end; gap: 15px; position: absolute; right: 2rem; top: 1.5rem; }
    .header-left, .header-icons { flex: 1; display: grid; align-items: center; }

    /* カート iframe 幅の強制 */
    .shopify-buy-frame--cart, .shopify-buy-frame--cart iframe { width: 100vw !important; max-width: 100vw !important; }

    /* 商品説明文の改行無効 */
    .product-description br { display: none !important; }
}

/* --- Tablet / Large Mobile (Max: 900px) --- */
@media (max-width: 900px) {
    .player-header-area { flex-direction: column; align-items: flex-start; gap: 20px; }
    .player-name-en { font-size: 40px; }
    .detail-carousel-slide { flex: 0 0 calc(45% - 20px); }
}

/* --- Mobile (Max: 768px) --- */
@media screen and (max-width: 768px) {
    /* ヘッダー＆スクロールワープバグ対策 */
    #site-header, #site-header.is-scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
    }
    body #site-header, body.home #site-header, body.front-page #site-header {
        background-color: rgba(0, 0, 0, 1) !important;
    }

    /* 固定SNSバー（画面下部） */
    body #site-header .header-icons, body .site-header .header-icons {
        position: fixed !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
        width: 100vw !important; height: 60px !important; background-color: rgba(0, 0, 0, 0.85) !important;
        display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: center !important;
        gap: 40px !important; z-index: 99998 !important; margin: 0 !important; padding: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    body #site-header .header-icons > a, body .site-header .header-icons > a {
        display: flex !important; align-items: center !important; justify-content: center !important;
        width: 26px !important; height: 26px !important; margin: 0 !important;
    }
    body #site-header .header-icons svg, body #site-header .header-icons img {
        width: 100% !important; height: 100% !important; display: block !important;
    }

    /* 余白・タイトル・カートボタン縮小 */
    main { padding: 100px 20px 0px !important; }
    h1, .page-title { font-size: 24px !important; }
    .shopify-buy-frame--toggle { transform: translateY(-50%) scale(0.85) !important; transform-origin: right center !important; }
    body:has(.shopify-buy-frame--cart.is-active) .shopify-buy-frame--toggle { transform: translate(calc(-100vw + 1px), -50%) scale(0.85) !important; }

    /* Home & Category */
    .home-category { margin-bottom: 50px; }
    .home-banners, .home-category { padding: 0 20px; }
    .banner-grid { flex-direction: column; gap: 20px; }
    .category-header { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 0px !important; }
    .nav-area { width: 100%; justify-content: space-between; }
    .product-slider-box { padding: 30px 20px; gap: 15px; }
    .product-slide-item { width: 180px; min-width: 160px; } 
    .product-slide-item .product-info { padding: 10px !important; }
    .product-slide-item .product-title { font-size: 13px !important; }
    .product-slide-item .product-price { font-size: 15px !important; }

    /* 商品詳細 */
	.single-item-page {max-width:1660px;}
    .single-item-page .thumbnail-list {
        margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; display: flex !important; justify-content: space-between !important;
        --bs-gutter-x: 0 !important; gap: 10px !important; 
    }
    .single-item-page .thumbnail-list .col-3 { width: calc((100% - 30px) / 4) !important; padding: 0 !important; flex-shrink: 0 !important; }

    /* Archive & Cards */
    .item-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .item-card { padding: 20px 15px; border-radius: 15px; }
    .item-card-title { font-size: 12px; height: auto; min-height: 34px; }
    .item-card-price .price-number { font-size: 16px; }

    /* Uniform Page */
    .uniform-page section { margin-bottom: 50px; }
    .carousel-nav { display: flex; justify-content: flex-start; gap: 15px; margin-bottom: 20px; }
    .reasons-grid { grid-template-columns: 1fr; gap: 40px; }
    .step-item { flex-direction: column; text-align: left; gap: 20px; }
    .step-item br { display: none; }
    .step-item .step-image { flex: 0 0 auto; width: 100%; max-width: 300px; margin: 0 auto; }

    /* CF7 */
    .cf7-item dt, .cf7-item dd.w-75, .cf7-item dd.w-50, .cf7-item dd.w-25 { width: 100%; flex: 0 0 100%; padding-right: 0; }
    .cf7-item dt { padding-top: 0; margin-bottom: 10px; margin-top: 20px; }
    .cf7-item dt:first-child { margin-top: 0; }
    .cf7-item dt.empty-label { display: none; }
    .cf7-inputs-2 { gap: 10px; }

    /* Player Page */
    .player-page-title { font-size: 32px; }
    .player-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .player-card { border-radius: 15px; }
	
	 /* Rebirth */
	.rebirth-page-wrapper{padding:0 !important;}
	.rebirth-content-area{padding:0 !important;}
	.rebirth-intro-text p{text-align:left !important;}
	
	/* 1. メイン画像下の余白を無くし、サムネイルとくっつける */
    .single-item-page .main-image {
        margin-bottom: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
		padding:0px !important;
    }

    /* 2. サムネイルを2列×2行にし、隙間（gap）を完全に無くす */
    .single-item-page .thumbnail-list {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
    }

    /* 各サムネイルの幅を正確に50%にする */
    .single-item-page .thumbnail-list .col-6.col-sm-3 {
        width: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 0 0 50% !important;
    }

    /* サムネイルの枠の角丸や影を消してフラットに敷き詰める */
    .single-item-page .thumbnail-list .thumb-item {
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* 3. 金額とSKU（Item code）を左寄せにする */
    .single-item-page .product-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .single-item-page .sku-area {
        text-align: left !important;
        margin-top: 10px !important;
    }
    
    /* 4. 画像エリアと情報エリアの間の余白調整 */
    .single-item-page .col-lg-7 {
        margin-top: 30px !important;
    }
	.footer-nav, .footer-subnav {
    font-size: 14px;
    line-height: 200%;
		display: block;
        padding-inline-start: 0px;
}
    .footer-links {
        margin-right: 0;
        align-items: normal;
    }
    .footer-inner {
        flex-direction: column;
        align-items: baseline;
        gap: 25px;
    }
}

/* --- Mobile (Max: 600px) --- */
@media (max-width: 600px) {
    .player-name-en { font-size: 32px; }
    .player-name-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .detail-carousel-slide { flex: 0 0 calc(85% - 20px); }
}

/* --- Small Mobile (Max: 480px) --- */
@media (max-width: 480px) { 
    body:has(.shopify-buy-frame--cart.is-active) .shopify-buy-frame--toggle { transform: translate(calc(-100vw + 1px), -50%) !important; }
    .carousel-slide { flex: 0 0 calc(100% - 20px) !important; width: calc(100% - 20px) !important; max-width: calc(100% - 20px) !important; opacity: 1 !important; filter: blur(0px); }
}

/* =========================================================
   全ページ共通：iPhone等のブラウザ下部バー対応（100dvh）
========================================================= */
/* 画面いっぱいの高さ（100vh）にしている要素を、実際の表示領域（100dvh）に修正 */
.cyber-loader,
.loader-bg,
.loader-svg-wrapper,
.drawer-overlay,
.side-drawer-menu,
.cyber-mv-transition,
#rebirth-canvas-container,
.cyber-main-visual,
#retroarch-ribbon-container {
    height: 100vh !important;  /* 古いスマホ用の保険 */
    height: 100dvh !important; /* 下部バーを考慮した正確な高さ */
}

/* メインビジュアルが潰れないように最低限の高さを確保 */
.cyber-main-visual {
    min-height: 100dvh !important;
}

/* 下部固定のSNSメニューバーがメニューバーと被らないよう安全策 */
@media screen and (max-width: 768px) {
    body #site-header .header-icons,
    body .site-header .header-icons {
        bottom: env(safe-area-inset-bottom) !important;
    }
}
/* =========================================================
   サイズスペック表（レスポンシブ対応）
========================================================= */

/* コンテナ全体 */
.size-table-container {
  width: 100%;
  max-width: 100%; /* ← 500px から 100% に変更 */
  margin: 0 auto 20px;
  font-family: 'Noto Sans JP', sans-serif;
}

/* スマホ用横スクロールラッパー */
.size-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* テーブル本体 */
.size-table {
  width: 100%;
  min-width: 320px; /* スマホで縮みすぎないための最小幅 */
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: #333333;
}

/* 共通セル指定 */
.size-table th,
.size-table td {
  padding: 15px 12px; /* ← 上下のpaddingを 10px から 15px に変更 */
  border: 1px solid #e2e0d8;
  vertical-align: middle;
}

/* ヘッダー行（1行目：サイズ・身丈・身幅など） */
.size-table thead th {
  background-color: #f3f2e7; /* 淡いクリーム・ベージュ系 */
  font-weight: bold;
  color: #333333;
}

/* サイズ列（左端のS〜XXXL） */
.size-table tbody th {
  background-color: #f2f2f2; /* 薄いグレー */
  font-weight: bold;
  color: #333333;
}

/* データセル（数値部分） */
.size-table tbody td {
  background-color: #ffffff;
  font-weight: normal;
}

/* 右下の注記（※単位:cm） */
.size-table-note {
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  color: #666666;
  letter-spacing: 0.05em;
}

/* --- スマホ表示（画面幅768px以下）での微調整 --- */
@media screen and (max-width: 768px) {
  .size-table {
    font-size: 13px;
  }
  .size-table th,
  .size-table td {
    padding: 8px 8px;
  }
}
/* =========================================================
   スマホ表示（縦書き）時のメインキャッチ完全中央配置
========================================================= */
@media screen and (max-width: 991px) {
    .cyber-main-visual .cyber-mv-text {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        height: 60% !important;
        width: auto !important; /* 縦書き用に横幅の制限を解除 */
        margin: 0 !important;
        padding: 0 !important;
		text-align:left !important;
    }
    
    /* 縦書き時のテキスト間の余白（行間）を調整 */
    .cyber-main-visual .cyber-mv-text h2 {
        margin: 0 15px 0 0 !important; /* 英語と日本語の間の隙間 */
    }
    .cyber-main-visual .cyber-mv-text p {
        margin: 0 !important;
    }
}

/* =========================================================
   商品カードの高さを揃える（タイトル文字数による崩れ防止）
========================================================= */

/* --- 1. トップページ・特設ページのスライダー（Swiper）用 --- */
.product-slider-box .swiper-slide {
    height: auto !important; /* 最も高いカードの高さに全て揃える */
}

/* カード全体（aタグ）を縦並びのフレックスボックスにする */
.product-slide-item a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* 情報部分（テキストエリア）で余った高さを埋める */
.product-slide-item .product-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* 価格を常に一番下に押しやる */
.product-slide-item .product-price {
    margin-top: auto !important;
}


/* --- 2. アーカイブ（一覧）ページ用 --- */
.item-card {
    height: 100%;
}


/* --- 3. 共通：タイトルの高さ固定＆2行以上を「...」で省略 --- */
.product-title,
.item-card-title {
    /* 常に2行分の高さを確保してガタつきを無くす */
    min-height: 2.8em !important; 
    
    /* 以下、2行を超えたら「...」で省略する設定 */
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important; 
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* アーカイブ用の既存の高さを上書きリセット */
    height: auto !important; 
    align-items: flex-start !important;
}