:root {
  --color-bg: #0d0d0d;
  --color-text: #eaeaea;
  --color-primary: #a71a1c;
  /* Deep Japanese Red */
  --color-secondary: #2f5a43;
  /* Deep Green */
  --color-accent: #d4af37;
  /* Gold touch */
  --font-heading: "Cormorant Garamond", "装甲明朝", "Soukou Mincho", serif;
  --font-body: "装甲明朝", "Soukou Mincho", serif;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%231a1a1a" fill-opacity="0.4" fill-rule="evenodd"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>');
}

/* Texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-heading);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 120px 0;
  position: relative;
  background-color: var(--color-bg);
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .en {
  display: block;
  font-size: 2.5rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.section-title .ja {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 55px;
  font-size: 1rem;
  font-weight: 300;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #fff;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-heading);
  border-radius: 0;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #fff;
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: #fff;
}

.btn:hover::before {
  left: 0;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-green {
  border-color: rgba(47, 90, 67, 0.4);
  background: rgba(47, 90, 67, 0.1);
}

.btn-green::before {
  background: var(--color-secondary);
}

.btn-green:hover {
  color: #fff;
  border-color: var(--color-secondary);
  box-shadow: 0 15px 30px rgba(47, 90, 67, 0.5);
}

.btn-red {
  border-color: rgba(167, 26, 28, 0.4);
  background: rgba(167, 26, 28, 0.1);
}

.btn-red::before {
  background: var(--color-primary);
}

.btn-red:hover {
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 15px 30px rgba(167, 26, 28, 0.5);
}

.btn-accent {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--color-accent);
}

.btn-accent::before {
  background: var(--color-accent);
}

.btn-accent:hover {
  color: #000;
  border-color: var(--color-accent);
}

.btn-wrap {
  text-align: center;
  margin-top: 40px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.4s ease;
}

.header.scrolled {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.logo a {
  display: block;
  height: 40px;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Desktop Navigation */
/* We removed the desktop navigation list to use the hamburger menu on all screens */

.menu-btn {
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  position: absolute;
  left: 5px;
  width: 30px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.menu-btn span:nth-child(1) {
  top: 12px;
}

.menu-btn span:nth-child(2) {
  top: 20px;
}

.menu-btn span:nth-child(3) {
  top: 28px;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.98), rgba(20, 20, 20, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(15px);
  z-index: 999;
}

.nav-menu.active {
  opacity: 1;
  visibility: visible;
}

.nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* compact but elegant */
  padding: 0;
  align-items: center;
  width: 100%;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 0;
}

.nav-submenu.open {
  max-height: 400px;
  opacity: 1;
  margin-top: 15px;
}

.nav-submenu a {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
  font-family: var(--font-heading) !important;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 2px !important;
}

.nav-submenu a span {
  font-size: 0.9rem !important;
  font-family: var(--font-body) !important;
  color: rgba(255, 255, 255, 0.6);
  text-transform: none;
  letter-spacing: 0.15em;
}

.nav-submenu a:hover {
  color: var(--color-accent) !important;
  transform: translateY(-2px) !important;
}

.nav-submenu a:hover span {
  color: var(--color-accent) !important;
}

.nav-item.has-submenu {
  position: relative;
}

@media (min-width: 769px) {
  .nav-submenu {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(-20px);
    margin-left: 40px;
    margin-top: 0 !important;
    width: max-content;
    max-height: none !important;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* 見えない橋（hover用のデッドゾーン解消） */
  .nav-submenu::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -50px;
    width: 50px;
    background: transparent;
  }

  .nav-item.has-submenu:hover .nav-submenu,
  .nav-item.has-submenu .nav-submenu.open {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
  }

  .nav-submenu a {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left;
  }
}

.nav-list li {
  margin: 0;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-menu.active .nav-list li {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animation for menu items */
.nav-menu.active .nav-list li:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-menu.active .nav-list li:nth-child(2) {
  transition-delay: 0.15s;
}

.nav-menu.active .nav-list li:nth-child(3) {
  transition-delay: 0.2s;
}

.nav-menu.active .nav-list li:nth-child(4) {
  transition-delay: 0.25s;
}

.nav-menu.active .nav-list li:nth-child(5) {
  transition-delay: 0.3s;
}

.nav-menu.active .nav-list li:nth-child(6) {
  transition-delay: 0.35s;
}

.nav-menu.active .nav-list li:nth-child(7) {
  transition-delay: 0.4s;
}

.nav-menu.active .nav-list li:nth-child(8) {
  transition-delay: 0.45s;
}

.nav-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  /* Reduced as requested */
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.4s,
    transform 0.4s;
  line-height: 1.1;
}

.nav-list a span {
  font-size: 0.9rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.15em;
  transition: color 0.3s;
  opacity: 0.7;
}

.nav-list a:hover {
  color: var(--color-accent);
  transform: translateY(-5px);
}

.nav-list a:hover span {
  color: var(--color-accent);
  opacity: 1;
}

/* Navigation footer: logo left, external links right */
.nav-footer {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  padding: 0 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nav-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.nav-external-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav-ext-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-ext-link .nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.nav-ext-link:hover .nav-icon-wrap {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-ext-link:hover {
  color: #fff;
}

/* HP icon: blue gradient */
.nav-icon-wrap.icon-web {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

/* Instagram icon: brand gradient */
.nav-icon-wrap.icon-insta {
  background: radial-gradient(
    circle at 30% 110%,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.nav-ext-link svg {
  flex-shrink: 0;
  color: #fff;
}

/* Intro - Fixed Background Video + Scroll Text */
.intro-video-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.intro-video-fixed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-video-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.intro-scroll-wrapper {
  position: relative;
  z-index: 1;
  /* 4 sections: 3 text panels + 1 hold section for last text */
  height: 400vh;
  padding: 0;
}

.intro-scroll-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.intro-scroll-text {
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(25px);
  filter: blur(6px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
  padding: 0 20px;
}

.intro-scroll-text.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.intro-scroll-text.exit-up {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(4px);
}

.intro-scroll-en {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
  color: #fff;
}

.intro-scroll-ja {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  color: #fff;
  margin: 0;
}

/* Gradient at the very bottom of the intro wrapper to blend into next section */
.intro-scroll-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.scroll-prompt {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  animation: bounce 2s infinite;
}

/* Products (legacy - kept for sub pages) */
.products-section {
  overflow-x: hidden;
  background-color: var(--color-bg);
  position: relative;
  z-index: 1;
}

/* ===============================
   Horizontal Scroll-Linked Panels
   (Nishiyama-style)
   =============================== */

/* --- Configuration Variables --- */
:root {
  --hscroll-panel-count: 3;
  /* Total distance = (panelCount + 1) × 100vh — increased for 3 panels */
  --hscroll-total-height: calc((var(--hscroll-panel-count) + 2) * 100vh);
  --hscroll-bp-tablet: 1024px;
  --hscroll-bp-mobile: 768px;
  --hscroll-ease: cubic-bezier(0.22, 1, 0.36, 1); /* power2.out feel */
}

/* Outer section: creates the scrollable height */
.hscroll-section {
  position: relative;
  height: var(--hscroll-total-height);
  background: var(--color-bg);
  z-index: 1;
  outline: none; /* keyboard focus will be visible via indicator */
}

/* Header (scrolls normally, shown initially, then sticky hides it) */
.hscroll-header {
  padding: 120px 0 40px;
  text-align: center;
  background: var(--color-bg);
  position: relative;
  z-index: 2;
}

/* Sticky viewport: stays fixed while user scrolls through section height */
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--color-bg);
}

/* Track: holds all panels side-by-side, translated by JS */
.hscroll-track {
  display: flex;
  width: calc(100vw * var(--hscroll-panel-count));
  height: 80vh;
  will-change: transform;
  /* No CSS transition — JS uses rAF for 60fps smoothness */
}

/* Individual Panel */
.hscroll-panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 5%;
  box-sizing: border-box;
  /* Fade panels that aren't centered — keep minimum 0.7 for visibility */
  opacity: 0.7;
  transition: opacity 0.5s var(--hscroll-ease);
}

.hscroll-panel.is-active {
  opacity: 1;
}

/* Panel Image */
.hscroll-panel-img {
  flex: 0 0 65%;
  max-width: 65%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hscroll-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 1s var(--hscroll-ease),
    filter 0.5s var(--hscroll-ease);
  filter: brightness(1.1);
}

.hscroll-panel.is-active .hscroll-panel-img img {
  transform: scale(1.05);
}

/* Panel Body (text side) */
.hscroll-panel-body {
  flex: 0 0 42%;
  max-width: 42%;
  margin-left: -7%;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Slide-in content effect — keep visible during transitions */
  transform: translateX(10px) translateY(10px);
  opacity: 0.6;
  transition:
    transform 0.7s var(--hscroll-ease) 0.15s,
    opacity 0.6s var(--hscroll-ease) 0.15s;
}

.hscroll-panel.is-active .hscroll-panel-body {
  transform: translateX(0) translateY(0);
  opacity: 1;
}

.hscroll-panel-num {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: -15px;
}

.hscroll-panel-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.hscroll-panel-desc {
  font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.hscroll-panel-body .btn {
  align-self: flex-start;
  margin-top: 10px;
}

/* --- Indicators --- */
.hscroll-indicators {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

.hscroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--hscroll-ease);
  position: relative;
}

.hscroll-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.hscroll-dot:hover {
  border-color: var(--color-accent);
  transform: scale(1.15);
}

.hscroll-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.hscroll-progress-bar {
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 10px;
}

.hscroll-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: 2px;
  transition: width 0.15s linear;
}

/* --- CTA Button --- */
.hscroll-cta {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hscroll-cta.show {
  opacity: 1;
  pointer-events: auto;
}

/* --- Tablet (768–1023px): horizontal still, slightly adjusted --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hscroll-panel {
    gap: 0;
    padding: 0 5%;
  }

  .hscroll-panel-img {
    flex: 0 0 65%;
    max-width: 65%;
  }

  .hscroll-panel-body {
    flex: 0 0 55%;
    max-width: 55%;
    margin-left: -20%;
    padding: 40px;
  }

  .hscroll-panel-title {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  }

  .hscroll-panel-desc {
    font-size: 1.1rem;
  }
}

/* --- Mobile (<768px): completely disable horizontal scroll, stack vertically --- */
@media (max-width: 767px) {
  .hscroll-section {
    height: auto !important;
    padding-bottom: 60px;
  }

  .hscroll-header {
    padding: 80px 0 30px;
  }

  .hscroll-sticky {
    position: relative !important;
    height: auto !important;
    overflow: visible;
  }

  .hscroll-track {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .hscroll-panel {
    flex: none;
    width: 100% !important;
    height: auto !important;
    flex-direction: column;
    padding: 40px 5%;
    gap: 0;
    opacity: 1 !important;
  }

  .hscroll-panel-img {
    flex: none;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
  }

  .hscroll-panel-body {
    max-width: 100%;
    margin-left: 0;
    margin-top: -15%;
    padding: 30px;
    transform: none !important;
    opacity: 1 !important;
    transition: none;
  }

  .hscroll-panel-num {
    font-size: 2.5rem;
  }

  /* Hide desktop-only indicators */
  .hscroll-indicators {
    display: none;
  }

  .hscroll-cta {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    margin-top: 30px;
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- prefers-reduced-motion: disable all transforms and transitions --- */
@media (prefers-reduced-motion: reduce) {
  .hscroll-track {
    transition: none !important;
  }

  .hscroll-panel {
    opacity: 1 !important;
    transition: none !important;
  }

  .hscroll-panel-body {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .hscroll-panel-img img {
    transition: none !important;
    transform: none !important;
  }

  .hscroll-dot {
    transition: none !important;
  }

  .hscroll-progress-fill {
    transition: none !important;
  }
}

.product-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* Disable generic fade-in for product row to allow custom slide animations */
.product-row.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.product-row.reverse {
  flex-direction: row-reverse;
}

.product-image {
  flex: 2.5;
  /* Makes the image much larger relative to the text */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  /* Make it slightly wider for a modern cinematic look, preventing it from being too tall */
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-text {
  flex: 1;
  text-align: left;
}

.product-text h3 {
  font-size: 2rem;
  font-family: var(--font-heading);
  margin-bottom: 20px;
}

.product-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
}

/* Scroll-driven animations based on scroll event scrubbability */
.scroll-driven-img-left,
.scroll-driven-txt-left {
  opacity: 0;
  will-change: transform, opacity;
  transform: translateX(-30vw);
}

.scroll-driven-img-right,
.scroll-driven-txt-right {
  opacity: 0;
  will-change: transform, opacity;
  transform: translateX(30vw);
}

.interactive-video .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
  background: #000;
}

.interactive-video:hover .video-container {
  opacity: 1;
}

.interactive-video .video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* News */
.news-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}

.news-section .container {
  position: relative;
  z-index: 1;
}

.news-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.news-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-list a {
  display: flex;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}

.news-list a:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 10px;
}

.news-list time {
  color: #999;
}

.news-list .category {
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
}

.news-list p {
  flex-grow: 1;
}

/* Kodawari */
.kodawari-videos-wrapper {
  display: flex;
  justify-content: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  gap: 0;
  position: relative;
  padding: 20px 0;
  overflow-x: hidden;
}

.kodawari-video-item {
  width: 60vw;
  flex-shrink: 0;
  position: relative;
  transition:
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    z-index 0s;
  z-index: 1;
}

.kodawari-video-item:nth-child(1) {
  transform: translateX(0);
}

.kodawari-video-item:nth-child(2) {
  transform: translateX(0);
}

.kodawari-video-item:nth-child(1):hover {
  transform: translateX(10%) scale(1.05);
  /* 移動量を増やして中心に寄せる */
  z-index: 10;
}

.kodawari-video-item:nth-child(2):hover {
  transform: translateX(-10%) scale(1.05);
  /* 移動量を増やして中心に寄せる */
  z-index: 10;
}

.video-box iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  background: #000;
}

.video-box p {
  margin-top: 15px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: center;
  color: var(--color-primary);
}

/* Safety Section */
.safety-section {
  background: var(--color-secondary);
  text-align: center;
  padding-bottom: 120px;
}

.safety-section .section-title .ja {
  color: #fff;
}

.safety-content p {
  font-size: 1.2rem;
}

/* Safety Slider */
.safety-slider-container {
  width: 100vw;
  padding: 60px 0;
  background: transparent;
}

.safety-slider-track {
  display: flex;
  width: max-content;
  animation: infinite-scroll 35s linear infinite;
  animation-play-state: paused;
}

.safety-slider-track:hover,
.safety-slider-track:active {
  animation-play-state: running;
}

.slide-group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  /* Crucial for seamless looping with gap */
}

.slide-group img {
  width: 350px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  filter: brightness(0.9);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.slide-group img:hover {
  filter: brightness(1);
  transform: translateY(-5px);
}

@keyframes infinite-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Product Slider */
.product-slider-section {
  background-color: var(--color-bg);
}

.product-slider-container {
  width: 100vw;
  padding: 40px 0;
  background: transparent;
}

.product-slider-track {
  display: flex;
  width: max-content;
  animation: infinite-scroll 50s linear infinite;
}

.product-slider-track:hover {
  animation-play-state: paused;
}

.product-slider-track .slide-group img {
  width: 350px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  filter: brightness(0.9);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.product-slider-track .slide-group img:hover {
  filter: brightness(1);
  transform: translateY(-5px);
}

.mb-4 {
  margin-bottom: 30px;
}

/* Company & Full Width Media */
.full-width-media {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 40px 0;
}

.full-width-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: cover;
}

.kyoten-media {
  display: flex;
}

.kyoten-media .half {
  width: 50%;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin: 80px 0 20px;
  color: var(--color-primary);
}

.company-layout {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
}

.link-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.link-grid a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-align: center;
  color: #fff;
  min-height: 160px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.05em;
}

.link-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.link-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.link-grid a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: -1;
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-grid a:hover {
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: #fff;
}

.link-grid a:hover::before {
  left: 0;
}

.link-grid a span {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.1em;
  transition: color 0.5s;
}

.link-grid a:hover span {
  color: rgba(0, 0, 0, 0.6);
}

/* Recruit */
.recruit-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.recruit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(33.33% - 14px);
  min-width: 200px;
  padding: 40px 20px;
  background: rgba(47, 90, 67, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(47, 90, 67, 0.3);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.recruit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-secondary);
  z-index: -1;
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.recruit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(47, 90, 67, 0.4);
  border-color: var(--color-secondary);
}

.recruit-card:hover::before {
  left: 0;
}

.recruit-card span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  font-family: var(--font-body);
  transition: color 0.5s;
}

.recruit-card:hover span {
  color: rgba(255, 255, 255, 0.8);
}

/* ===============================
   Stacked Cards Animation
   =============================== */
.stacked-sections {
  position: relative;
  /* 3 cards × 100vh each */
  height: 300vh;
  z-index: 1;
}

.stacked-track {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.stack-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
  transform-origin: top center;
}

.stack-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.stack-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: #fff;
}

.stack-card-content .section-title span {
  color: #fff;
}

/* Footer */
.footer {
  background-color: #050505;
  border-top: none;
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  color: #fff;
  z-index: 1;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Overlay to make text readable on image */
  z-index: 0;
  pointer-events: none;
}

.footer-inner,
.footer-left,
.footer-right {
  position: relative;
  z-index: 1;
}

.footer-inner {
  margin-bottom: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
}

.footer-nav {
  display: flex;
  gap: 50px;
}

.footer-links {
  list-style: none;
  column-count: 2;
  column-gap: 40px;
}

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

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: #666;
}

/* Footer Social Links Extension */
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  color: var(--color-primary);
  transform: translateX(10px);
}

.footer-social-link .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.footer-social-link:hover .icon-wrap {
  border-color: var(--color-primary);
  background-color: rgba(167, 26, 28, 0.1);
}

.footer-social-link .link-name {
  font-size: 1rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Click Animation */
.btn:active,
.link-grid a:active,
.recruit-card:active,
.nav-list a:active,
.footer-social-link:active,
.product-image:active,
.news-list a:active,
.interactive-video:active {
  transform: scale(0.95) !important;
  transition: transform 0.1s ease !important;
}

/* Animations */
.scroll-anim-media {
  opacity: 0;
  transform: scale(0.9) translateY(40px);
  transition:
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 1.2s ease;
  will-change: transform, opacity;
}

.scroll-anim-media.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.fade-in {
  opacity: 1;
  transform: none;
  transition: 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.char-anim {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpChar 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUpChar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Responsive */
@media (min-width: 992px) {
  /* Removed .nav-desktop block so hamburger is always used */
}

@media (max-width: 768px) {
  .kodawari-videos-wrapper {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    overflow-x: hidden;
  }

  .kodawari-video-item {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 20px;
    transform: translateX(0) !important;
  }

  .kodawari-video-item:nth-child(1):hover {
    transform: scale(1.02) !important;
  }

  .kodawari-video-item:nth-child(2):hover {
    transform: scale(1.02) !important;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .kyoten-media {
    flex-direction: column;
  }

  .kyoten-media .half {
    width: 100%;
  }

  .nav-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nav-list a {
    font-size: 2.2rem;
  }

  .news-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .product-row,
  .product-row.reverse {
    flex-direction: column;
    gap: 20px;
  }
}

/* フッターのソーシャルリンク用スタイル（アイコンのカラー化） */
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  color: #fff;
}

.footer-social-link .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.footer-social-link:hover .icon-wrap {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* HPアイコンのカラー（ブルー系グラデーション） */
.footer-social-link:nth-child(1) .icon-wrap {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

/* Instagramアイコンのカラー（ブランドグラデーション） */
.footer-social-link:nth-child(2) .icon-wrap,
.footer-social-link:nth-child(3) .icon-wrap {
  background: radial-gradient(
    circle at 30% 110%,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.kokuu-news-list {
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   Premium News Section (Top & Sub-pages)
   ========================================================================= */

.kokuu-news-bg {
  background: #000;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.kokuu-news-title {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.kokuu-news-title .ja {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: #aaa;
  margin-bottom: 15px;
  font-weight: 300;
}

.kokuu-news-title .en {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  color: var(--color-primary);
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.kokuu-news-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.kokuu-news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kokuu-news-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kokuu-news-link {
  display: flex;
  align-items: center;
  padding: 50px 20px;
  gap: 60px;
  text-decoration: none;
  color: #eee;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kokuu-news-link:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 40px;
}

.kokuu-news-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kokuu-news-date {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.kokuu-news-heading {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.kokuu-news-link:hover .kokuu-news-heading {
  color: var(--color-accent);
}

.kokuu-news-thumb {
  width: 320px;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  background: #1a1a1a;
}

.kokuu-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: grayscale(20%);
}

.kokuu-news-link:hover .kokuu-news-thumb img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Sub-page Specific (Listing) */
.news-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 80px 50px;
  margin-top: 80px;
}

.news-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 8px;
  position: relative;
  background: #1a1a1a;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.1);
}

.news-card-date {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
  letter-spacing: 0.1em;
}

.news-card-title {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 0;
  color: #eee;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
  color: var(--color-accent);
}

/* Article Detail Page */
.kokuu-article-bg {
  background-color: #0d0d0d !important;
  color: #fff !important;
}

.kokuu-article-bg::before {
  display: none;
}

.kokuu-article-header {
  text-align: center;
  padding: 240px 20px 100px;
  background: linear-gradient(to bottom, #1a1a1a 0%, #0d0d0d 100%);
}

.kokuu-article-date {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 30px;
  letter-spacing: 0.15em;
}

.kokuu-article-title {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
}

.kokuu-article-hero {
  width: 100%;
  max-width: 1200px;
  margin: -60px auto 120px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  aspect-ratio: 21/9;
}

.kokuu-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kokuu-article-content {
  max-width: 850px;
  margin: 0 auto 150px;
  font-size: 1.2rem;
  line-height: 2.6;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 120px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 45%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.article-nav-link:hover {
  transform: translateX(10px);
}

.article-nav-link.prev:hover {
  transform: translateX(-10px);
}

.article-nav-label {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-heading);
}

.article-nav-title {
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Shippori Mincho", serif;
}

@media (max-width: 768px) {
  .kokuu-news-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding: 50px 10px;
  }

  .kokuu-news-thumb {
    width: 100%;
    order: -1;
  }

  .news-listing-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .article-nav {
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
  }

  .article-nav-link {
    max-width: 100%;
  }
}

/* Kokuu-style News Button */
.kokuu-btn-wrap {
  text-align: center;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.kokuu-btn-outline {
  display: inline-block;
  padding: 18px 60px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #eee;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.kokuu-btn-outline:hover {
  background: #eee;
  color: #000;
  border-color: #eee;
}

/* =========================================================================
   Products Page (Grid & Tabs)
   ========================================================================= */
.products-page-bg {
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  padding: 180px 0 100px;
}

.products-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.product-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-family: var(--font-base);
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.active {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: #000;
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: var(--color-accent);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.product-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
  line-height: 1.4;
}

.product-card-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-card-more {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

.product-card-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-more::after {
  transform: translateX(5px);
}

/* =========================================================================
   Product Detail Page
   ========================================================================= */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.product-detail-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 120px;
}

.product-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-info {
  padding-top: 20px;
}

.product-detail-info .category {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  display: block;
}

.product-detail-info .title {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.3;
}

.product-detail-info .lead {
  font-size: 1.1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 50px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
  background: rgba(15, 15, 15, 0.85);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.product-table th,
.product-table td {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  font-size: 0.95rem;
}

.product-table th {
  width: 30%;
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.product-table td {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.product-table tr:last-child th,
.product-table tr:last-child td {
  border-bottom: none;
}

.related-products {
  margin-top: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 80px;
}

.related-products .section-title {
  margin-bottom: 40px;
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
  color: #fff;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail-img {
    position: relative;
    top: 0;
  }
}
