
/* Force responsive classes that Tailwind fails to detect in PHP files */
/* Order: sm → md → lg → xl (mobile-first) */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:h-\[600px\] { height: 600px !important; }
  .sm\:col-span-1 { grid-column: span 1 / span 1 !important; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:w-auto { width: auto !important; }
  .md\:p-5 { padding: 1.25rem !important; }
  .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .coupon-action-panel { width: 300px; padding: 2rem 3rem; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .lg\:col-span-9 { grid-column: span 9 / span 9 !important; }
  .lg\:sticky { position: sticky !important; }
  .lg\:top-24 { top: 6rem !important; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* ===== Base Layer ===== */
  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0a0a0a;
  }
  ::-webkit-scrollbar-thumb {
    background: #37342a;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
  }

  /* Base body */
  body {
    font-family: "Noto Sans JP", "Be Vietnam Pro", sans-serif;
    background-color: #0a0a0a;
    overflow-x: hidden;
  }

/* ===== Components Layer ===== */
  /* ---------- Gold Text Variants ---------- */
  .gold-gradient-text {
    background: linear-gradient(135deg, #ecb913 0%, #fff8d6 50%, #ecb913 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-gradient-gold {
    background: linear-gradient(to bottom, #f3d776 0%, #d4af37 50%, #b89528 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F5E6A3 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ---------- Gold Effects ---------- */
  .gold-border-glow {
    box-shadow: 0 0 15px rgba(236, 185, 19, 0.1);
    border: 1px solid rgba(236, 185, 19, 0.3);
  }

  .gold-glow {
    box-shadow: 0 0 15px rgba(238, 189, 43, 0.3);
  }

  .gold-glow:hover {
    box-shadow: 0 0 25px rgba(238, 189, 43, 0.5);
  }

  .text-shadow-gold {
    text-shadow: 0 0 10px rgba(212, 175, 53, 0.5);
  }

  /* ---------- Background Patterns ---------- */
  .bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(212, 175, 55, 0.1) 1px, transparent 0);
    background-size: 32px 32px;
  }

  .bg-washi {
    background-color: #050505;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a1a' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

  .bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  }

  /* ---------- Header Navigation ---------- */
  .header-nav-link {
    color: #9ca3af;
    transition: all 0.3s;
  }

  .header-nav-link:hover {
    color: #D4AF37;
    transform: translateX(4px);
  }

  .header-nav-link.active {
    color: #D4AF37;
  }

  /* ---------- Buttons ---------- */
  .btn-gold-outline {
    border: 1px solid #D4AF37;
    color: #D4AF37;
    background: transparent;
    transition: all 0.3s ease;
  }

  .btn-gold-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  }

  .btn-gold-fill {
    background: linear-gradient(135deg, #D4AF37 0%, #F8E79B 50%, #D4AF37 100%);
    color: #000;
    border: none;
    transition: all 0.3s ease;
  }

  .btn-gold-fill:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  }

  /* ---------- Footer ---------- */
  .footer-link {
    transition: all 0.3s;
  }

  .footer-link:hover {
    color: #D4AF37;
    transform: translateX(4px);
  }

  /* ---------- Animations ---------- */
  .animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
  }

  .animate-delay-100 { animation-delay: 0.1s; }
  .animate-delay-200 { animation-delay: 0.2s; }
  .animate-delay-300 { animation-delay: 0.3s; }
  .animate-delay-400 { animation-delay: 0.4s; }
  .animate-delay-500 { animation-delay: 0.5s; }
  .animate-delay-600 { animation-delay: 0.6s; }

  .animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
  }

  .animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
  }

  .animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
  }

  .animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
  }

  .animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
  }

  .animate-float {
    animation: float 3s ease-in-out infinite;
  }

  .animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
  }

  /* ---------- Scroll Animate ---------- */
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-animate.from-left {
    transform: translateX(-40px);
  }

  .scroll-animate.from-left.is-visible {
    transform: translateX(0);
  }

  .scroll-animate.from-right {
    transform: translateX(40px);
  }

  .scroll-animate.from-right.is-visible {
    transform: translateX(0);
  }

  .scroll-animate.scale-up {
    transform: scale(0.9);
  }

  .scroll-animate.scale-up.is-visible {
    transform: scale(1);
  }

  /* ---------- Material Symbols Filled ---------- */
  .material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  }

  /* ---------- Store Card ---------- */
  .store-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
  }

  .store-card:hover .store-card-img {
    transform: scale(1.05);
  }

  .store-card-img {
    transition: transform 0.5s ease;
  }

  /* ---------- Range Slider ---------- */
  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #D4AF37, #eebd2b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  }

  input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #D4AF37, #eebd2b);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  }

  /* ---------- Custom Checkbox ---------- */
  .custom-checkbox {
    position: relative;
    cursor: pointer;
  }

  .custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #555;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #D4AF37, #eebd2b);
    border-color: #D4AF37;
  }

  .custom-checkbox input:checked ~ .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
  }

  /* ---------- Carousel ---------- */
  .carousel-container {
    position: relative;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .carousel-slide {
    min-width: 100%;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
  }

  .carousel-dot.active {
    background: #D4AF37;
    transform: scale(1.3);
  }

  /* ---------- Gallery ---------- */
  .gallery-item {
    overflow: hidden;
  }

  .gallery-item img {
    transition: transform 0.5s ease, filter 0.5s ease;
  }

  .gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
  }

  .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
  }

  .gallery-item:hover .gallery-caption {
    transform: translateY(0);
  }

  /* ---------- Cast Card ---------- */
  .cast-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .cast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
  }

  /* ---------- Review Stars ---------- */
  .star-filled {
    color: #D4AF37;
  }

  .star-empty {
    color: #555;
  }

  /* ---------- Review System ---------- */
  .star-selector {
    display: inline-flex;
    position: relative;
    cursor: pointer;
    user-select: none;
  }

  .star-selector .star-display {
    display: flex;
    gap: 2px;
    pointer-events: none;
  }

  .star-selector .star-display .star-icon {
    font-size: 28px;
    transition: color 0.15s;
  }

  .star-selector .star-zone-left,
  .star-selector .star-zone-right {
    position: absolute;
    top: 0;
    width: 15px;
    height: 100%;
    cursor: pointer;
    z-index: 2;
  }

  .star-selector .star-zone-left:nth-of-type(1)  { left: 0; }
  .star-selector .star-zone-right:nth-of-type(2) { left: 15px; }
  .star-selector .star-zone-left:nth-of-type(3)  { left: 32px; }
  .star-selector .star-zone-right:nth-of-type(4) { left: 47px; }
  .star-selector .star-zone-left:nth-of-type(5)  { left: 64px; }
  .star-selector .star-zone-right:nth-of-type(6) { left: 79px; }
  .star-selector .star-zone-left:nth-of-type(7)  { left: 96px; }
  .star-selector .star-zone-right:nth-of-type(8) { left: 111px; }
  .star-selector .star-zone-left:nth-of-type(9)  { left: 128px; }
  .star-selector .star-zone-right:nth-of-type(10) { left: 143px; }

  .star-half {
    color: #D4AF37;
  }

  .review-media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .review-media-thumb {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .review-media-thumb img,
  .review-media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .review-media-thumb .video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
  }

  .review-media-more {
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    border-radius: 0.5rem;
  }

  .media-upload-label {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    display: block;
  }

  .media-upload-label:hover {
    border-color: rgba(212, 175, 55, 0.4);
  }

  #review-form-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
  }

  #review-form-container.is-open {
    max-height: 3000px;
    opacity: 1;
  }

  .animate-spin {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* ---------- Coupon Styles ---------- */
  .coupon-pulse {
    animation: couponPulse 2s infinite;
  }

  .sns-embed {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
  }

  /* ---------- Coupon Ticket ---------- */
  .coupon-ticket {
    position: relative;
    border-right: 2px dashed rgba(212, 175, 55, 0.4);
  }

  .coupon-ticket::before,
  .coupon-ticket::after {
    content: "";
    position: absolute;
    right: -10px;
    width: 18px;
    height: 18px;
    background: #050505;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
  }

  .coupon-ticket::before {
    top: -9px;
  }

  .coupon-ticket::after {
    bottom: -9px;
  }

  /* ---------- Ribbon ---------- */
  .ribbon {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 110px;
    height: 110px;
    overflow: hidden;
    z-index: 10;
  }

  .ribbon span {
    position: absolute;
    display: block;
    width: 160px;
    padding: 6px 0;
    background: linear-gradient(135deg, #D4AF37 0%, #ecb913 100%);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(-45deg);
    top: 26px;
    left: -36px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  }

  /* ---------- Coupon Code ---------- */
  .coupon-code-box:hover {
    animation: codePulse 1.5s ease-in-out infinite;
  }

  /* ---------- Article Body ---------- */
  .article-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #D4AF37;
    line-height: 1.4;
  }

  .article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
  }

  .article-body p {
    color: #c5c5c5;
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
  }

  .article-body blockquote {
    border-left: 3px solid #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #d4d4d4;
    font-style: italic;
  }

  .article-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
  }

  .article-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #c5c5c5;
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: #D4AF37;
    border-radius: 50%;
  }

  .article-body img {
    border-radius: 1rem;
    margin: 1.5rem 0;
  }

  /* ---------- Share Buttons ---------- */
  .share-btn {
    transition: all 0.3s;
  }

  .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  /* ---------- Column Sidebar ---------- */
  .sidebar-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .tag-cloud-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
  }

  .tag-cloud-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: #D4AF37;
  }

  .category-tag {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
  }

  /* ---------- Tab Styles ---------- */
  .tab-active {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
  }

  .tab-inactive {
    color: #9ca3af;
    border-bottom: 2px solid transparent;
  }

  .tab-inactive:hover {
    color: #e5e5e5;
    border-bottom-color: rgba(212, 175, 55, 0.3);
  }

  /* ---------- Article Card ---------- */
  .article-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
  }

  .article-card:hover .article-thumb img {
    transform: scale(1.05);
  }

  /* ---------- Related Card ---------- */
  .related-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
  }

  .related-card:hover img {
    transform: scale(1.05);
  }

  /* ---------- Pagination ---------- */
  .page-btn {
    transition: all 0.2s;
  }

  .page-btn:hover:not(.active) {
    border-color: #D4AF37;
    color: #D4AF37;
  }

  .page-btn.active {
    background: linear-gradient(135deg, #D4AF37, #eebd2b);
    color: #000;
    border-color: #D4AF37;
  }

  .pagination-btn {
    transition: all 0.3s;
  }

  .pagination-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    color: #D4AF37;
  }

  .pagination-btn.active {
    background: #D4AF37;
    color: #000;
    border-color: #D4AF37;
  }

  /* ---------- Filter Chip ---------- */
  .filter-chip.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
    color: #D4AF37;
  }

  /* ---------- Contact Form ---------- */
  .form-input {
    background: #27241c;
    border: 1px solid rgba(238, 189, 43, 0.15);
    color: #e8e4dc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .form-input:focus {
    outline: none;
    border-color: #eebd2b;
    box-shadow: 0 0 0 3px rgba(238, 189, 43, 0.12);
  }

  .form-input::placeholder {
    color: #888070;
  }

/* ===== Keyframes (outside layers for broad support) ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
  50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.5); }
}

@keyframes couponPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

@keyframes codePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 16px 4px rgba(212, 175, 55, 0.15); }
}
