@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --color-bg: #0d0d0d;
    --color-text: #eaeaea;
    --color-primary: #a71a1c;
    /* Deep Japanese Red */
    --color-secondary: #2f5a43;
    /* Deep Green */
    --color-accent: #d4af37;
    /* Gold touch */    /* Wafu Premium Background - Solid Black & Gold Shippo Pattern */
    --wafu-bg-image: 
        /* Layer 1: Gold Shippo Pattern */
        url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="shippo" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="24" fill="none" stroke="%23d4af37" stroke-opacity="0.3" stroke-width="0.5"/><circle cx="0" cy="0" r="24" fill="none" stroke="%23d4af37" stroke-opacity="0.3" stroke-width="0.5"/><circle cx="50" cy="0" r="24" fill="none" stroke="%23d4af37" stroke-opacity="0.3" stroke-width="0.5"/><circle cx="0" cy="50" r="24" fill="none" stroke="%23d4af37" stroke-opacity="0.3" stroke-width="0.5"/><circle cx="50" cy="50" r="24" fill="none" stroke="%23d4af37" stroke-opacity="0.3" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23shippo)"/></svg>');
    
    --wafu-bg-repeat: repeat;
    --wafu-bg-size: 100px 100px;
    --wafu-bg-position: center;
    --wafu-bg-attachment: fixed;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Serif JP', 'Shippori Mincho', serif;
}

* {
    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: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
}

/* 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);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .en {
    display: block;
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-shadow: 0 0 1px currentColor;
}

.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: 15px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    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-stacked {
    flex-direction: column;
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: center;
}

.btn-green {
    border-color: rgba(47, 90, 67, 0.8);
    background: rgba(47, 90, 67, 0.8);
}

.btn-green::before {
    background: #1b3828;
}

.btn-green:hover {
    color: #fff;
    border-color: #1b3828;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 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;
    font-weight: 500;
    text-shadow: 0 0 0.5px currentColor;
}

.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: 600;
    letter-spacing: 0.1em;
    line-height: 1.6;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 14px;
    color: #fff;
    -webkit-text-stroke: 3px var(--color-accent);
    paint-order: stroke fill;
}

.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.8);
    color: #fff;
    margin: 0;
    -webkit-text-stroke: 3px var(--color-accent);
    paint-order: stroke fill;
}

html[lang="en"] .intro-scroll-ja {
    display: none;
}

/* Smooth gradient to fade video into content */
.intro-scroll-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 20vh; /* Reverted to 20vh */
    background: linear-gradient(to top, 
        var(--color-bg) 0%, 
        rgba(13, 13, 13, 0.8) 50%, 
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Add ink wash and pattern to the video overlay */
.intro-video-overlay {
    position: absolute;
    inset: 0;
    /* Layer 1: Ink Wash Effect, Layer 2: Shippo Pattern */
    background-image: 
        radial-gradient(circle at center, transparent 0%, rgba(13,13,13,0.4) 100%),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="shippo" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="24" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23shippo)"/></svg>');
    background-size: 100% 100%, 100px 100px;
    z-index: 1;
    pointer-events: none;
}

.scroll-prompt {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-prompt span {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
    text-transform: uppercase;
}

.scroll-line {
    width: 2px;
    height: 70px;
    background: rgba(212, 175, 55, 0.2); /* Accent color variant with transparency */
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scroll-line-anim 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes scroll-line-anim {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Products (legacy - kept for sub pages) */
.products-section {
    overflow-x: hidden;
    background-color: var(--color-bg);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
    position: relative;
    z-index: 1;
}

/* ===============================
   Horizontal Scroll-Linked Panels
   (Nishiyama-style)
   =============================== */

/* --- Configuration Variables --- */
:root {
    --hscroll-panel-count: 4;
    /* 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-color: var(--color-bg);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
    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-color: var(--color-bg);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
    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-color: var(--color-bg);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
}

/* 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;
    transition: opacity 0.5s ease;
}

.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: 800vh !important; /* さらに距離を伸ばして、 momentum scroll でも余裕を持たせる */
    }

    .hscroll-sticky {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background-color: var(--color-bg);
        overflow: hidden !important; /* はみ出し防止 */
    }

    .hscroll-track {
        display: flex !important;
        flex-direction: row !important;
        width: calc(100vw * var(--hscroll-panel-count)) !important;
        height: 85vh !important;
    }

    .hscroll-panel {
        flex: 0 0 100vw !important;
        width: 100vw !important;
        height: 100% !important;
        flex-direction: column !important;
        padding: 20px 2.5% !important;
        justify-content: center !important;
        gap: 0 !important;
        opacity: 0.5; /* Fade inactive */
        transition: opacity 0.5s var(--hscroll-ease);
    }

    .hscroll-panel.is-active {
        opacity: 1;
    }

    .hscroll-panel-img {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 4 / 3;
        margin-bottom: -40px; /* Pull body up more for a deeper overlap */
        z-index: 1;
        border-radius: 12px;
    }

    .hscroll-panel-body {
        flex: none !important;
        max-width: 92% !important;
        width: 92% !important;
        margin-left: 0 !important;
        padding: 25px !important;
        border-radius: 12px;
        z-index: 2;
        transform: translateY(15px);
        opacity: 0;
        transition: transform 0.6s var(--hscroll-ease), opacity 0.5s var(--hscroll-ease);
    }

    .hscroll-panel.is-active .hscroll-panel-body {
        transform: translateY(0);
        opacity: 1;
    }

    .hscroll-panel-num {
        font-size: 2.2rem;
        margin-bottom: -5px;
    }

    .hscroll-panel-title {
        font-size: 1.4rem !important;
    }

    .hscroll-panel-desc {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    .hscroll-indicators {
        display: flex !important;
        bottom: 35px !important;
    }

    .hscroll-progress-bar {
        width: 50px;
    }

    .hscroll-cta {
        bottom: 25px !important;
    }
}

/* --- 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;
    background-color: var(--color-bg);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
    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 {
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-size: var(--wafu-bg-size);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
}

.safety-slider-track {
    display: flex;
    width: max-content;
    animation: infinite-scroll 35s linear infinite;
}

.safety-slider-track:hover {
    animation-play-state: paused;
}

.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;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.slide-group img:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
}

@keyframes infinite-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Product Slider */
.product-slider-section {
    background-color: var(--color-bg);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-size: var(--wafu-bg-size);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
}

.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: 15px;
    width: 100%;
    margin-top: 10px;
}

.link-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: rgba(47, 90, 67, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    min-height: 90px;
    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: #1b3828;
    z-index: -1;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-grid a:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: #1b3828;
}

.link-grid a:hover::before {
    left: 0;
}

.link-grid a span {
    font-size: 0.7rem;
    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(255, 255, 255, 0.8);
}

/* 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: 12px 30px;
    background: rgba(47, 90, 67, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(47, 90, 67, 0.8);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    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: #1b3828;
    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 35px rgba(0, 0, 0, 0.5);
    border-color: #1b3828;
}

.recruit-card:hover::before {
    left: 0;
}

.recruit-card span {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-top: 8px;
    font-family: var(--font-body);
    transition: color 0.5s;
}

.recruit-card:hover span {
    color: var(--color-accent);
    opacity: 1;
}


/* ===============================
   Stacked Cards Animation
   =============================== */
.stacked-sections {
    position: relative;
    /* (3 cards + 1 extra to allow last card transition) × 100vh */
    height: 400vh;
    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;
}

/* Move RECRUIT content down to avoid overlapping with face */
#recruit .stack-card-content {
    justify-content: flex-end;
    padding-bottom: 12vh;
}

.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-color: var(--color-bg);
    background-image: var(--wafu-bg-image);
    background-repeat: var(--wafu-bg-repeat);
    background-position: var(--wafu-bg-position);
    background-attachment: var(--wafu-bg-attachment);
    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-accent);
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
}

/* =========================================================================
   Modern News Card Grid
   ========================================================================= */

.kokuu-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card-v2 {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.news-card-v2:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.news-card-inner {
    display: block;
    text-decoration: none;
    height: 100%;
}

.news-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.85);
}

.news-card-v2:hover .news-card-thumb img {
    transform: scale(1.1);
    filter: brightness(1);
}

.news-card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.news-card-date {
    color: #888;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.news-card-body {
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card-cat {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: bold;
}

.news-card-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em;
    transition: color 0.3s ease;
}

.news-card-v2:hover .news-card-title {
    color: var(--color-accent);
}

.news-card-more {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #aaa;
    transition: color 0.3s ease, gap 0.3s ease;
}

.news-card-v2:hover .news-card-more {
    color: #fff;
    gap: 15px;
}

.news-card-more svg {
    transition: transform 0.3s ease;
}

.news-card-v2:hover .news-card-more svg {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .kokuu-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kokuu-news-grid {
        grid-template-columns: 1fr;
    }
}


/* 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: var(--font-body);
    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;
    }
}

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ========================================================================= */

@media (max-width: 768px) {

    /* === Global overflow control === */
    html, body {
        overflow-x: clip !important; /* hidden だと sticky が効かない場合があるため clip を使用 */
        max-width: 100vw;
    }

    /* === Video: モバイルで左右の見切れを防止 === */
    /* イントロ動画: フルスクリーン背景なので cover を維持 */
    .intro-video-fixed video {
        object-fit: cover !important;
        background: #000;
    }

    /* 製造動画 (seizou) */
    #seizou-hls-video {
        object-fit: cover !important;
        background: #000;
    }

    /* 背景動画 (senta / parallax) */
    #senta-hls-video {
        object-fit: cover !important;
        background: #000;
    }

    .section {
        padding: 80px 0;
    }

    .container {
        padding: 0 5%;
        max-width: 100%;
    }

    /* === Section Title === */
    .section-title {
        margin-bottom: 40px;
    }

    .section-title .en {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: 0.1em;
    }

    .section-title .ja {
        font-size: 0.85rem;
    }

    /* === Buttons === */
    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .btn-stacked {
        font-size: 1rem;
    }

    /* === Intro Scroll Text === */
    .intro-scroll-panel {
        align-items: center;
        padding-bottom: 0;
    }

    .intro-scroll-en {
        font-size: clamp(1.1rem, 5vw, 1.6rem);
        -webkit-text-stroke: 2px var(--color-accent);
        line-height: 1.5;
    }

    .intro-scroll-ja {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
        -webkit-text-stroke: 2px var(--color-accent);
    }

    .intro-scroll-text {
        padding: 0 15px;
    }

    /* === Products: hscroll header lead card === */
    .hscroll-lead-card {
        max-width: 100% !important;
        margin: 25px 15px 0 !important;
        padding: 25px 18px !important;
    }

    .hscroll-lead-card span:first-child {
        font-size: 0.75rem !important;
        letter-spacing: 0.2em !important;
    }

    .hscroll-lead-card h3 {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
        margin: 0 0 15px !important;
    }

    .hscroll-lead-card .section-lead {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
        line-height: 1.85 !important;
    }

    /* === Product/Safety Slider === */
    .product-slider-container,
    .safety-slider-container {
        width: 100%;
        overflow: hidden;
    }

    .slide-group img,
    .product-slider-track .slide-group img {
        width: 200px !important;
        height: 140px !important;
        border-radius: 8px;
    }

    .slide-group {
        gap: 10px;
        padding-right: 10px;
    }

    /* === Kodawari (Commitment) Section === */
    .kodawari-section {
        padding: 60px 0;
    }

    .production-line-card {
        padding: 40px 20px !important;
        margin: 0 15px !important;
        max-width: calc(100% - 30px) !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    }

    .production-line-card h3 {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
        line-height: 1.5 !important;
    }

    .production-line-card p {
        font-size: clamp(0.9rem, 3.5vw, 1.05rem) !important;
        line-height: 1.9 !important;
        margin-bottom: 20px !important;
    }

    /* === News Section === */
    .kokuu-news-bg {
        padding: 80px 0 !important;
    }

    .kokuu-news-title {
        margin-bottom: 50px !important;
    }

    .kokuu-news-title .en {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .kokuu-news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 5%;
    }

    .news-card-body {
        padding: 18px 20px 22px;
    }

    .news-card-title {
        font-size: 1rem;
        height: auto;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .kokuu-btn-wrap {
        margin-top: 50px !important;
    }

    .kokuu-btn-outline {
        padding: 14px 40px;
        font-size: 0.85rem;
    }

    /* === Stacked Cards (SAFETY / COMPANY / RECRUIT) === */
    /* Mobile stacking re-enabled - inherits desktop sticky styles */
    
    .stack-card-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .stack-card-overlay {
        position: absolute;
        inset: 0;
    }

    .stack-card-content {
        position: relative;
        padding: 80px 20px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .stack-card-content .section-title .en {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    /* Company link grid in stacked card */
    .company-layout {
        margin-top: 25px !important;
        width: 100%;
    }

    .link-grid {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .link-grid a {
        width: 300px !important; /* すべてのボタンの幅を統一 */
        max-width: 94%;
        font-size: 0.9rem;
        padding: 12px 15px;
        min-height: 64px; /* すべてのボタンの高さを統一 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .link-grid a span {
        display: block;
        font-size: 0.65rem;
        margin-top: 2px;
        white-space: nowrap; 
    }

    /* Recruit links in stacked card */
    .recruit-links {
        margin-top: 25px !important;
        gap: 12px;
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        width: 100%;
    }

    #recruit .recruit-links {
        margin-top: 200px !important; /* Move buttons down much further on mobile */
    }

    .recruit-card {
        width: 300px !important; /* すべてのボタンの幅を統一 */
        max-width: 94%;
        min-width: unset !important;
        padding: 12px 15px;
        min-height: 64px; /* すべてのボタンの高さを統一 */
        font-size: 0.95rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        white-space: nowrap; 
    }

    .recruit-card span {
        font-size: 0.75rem;
        margin-top: 2px;
    }

    /* === Footer === */
    .footer {
        min-height: auto !important;
        padding: 50px 0 !important;
        background-attachment: scroll !important;
    }

    .footer-inner {
        padding: 0 5% !important;
        gap: 40px !important;
    }

    .footer-contact h3 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }

    .footer-contact p {
        font-size: 0.9rem;
    }

    .footer-bottom-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        text-align: center;
    }

    .footer-left {
        text-align: center;
    }

    .footer-right {
        width: 100%;
    }

    .footer-right .social-links {
        align-items: center !important;
        gap: 12px !important;
    }

    .footer-social-link {
        justify-content: center;
    }

    .footer-social-link .link-name {
        font-size: 0.85rem;
    }

    .footer-bottom {
        margin-top: 30px !important;
    }

    .footer-bottom small {
        font-size: 0.7rem !important;
    }

    /* === Nav menu mobile adjustments === */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        padding: 80px 15px 40px;
    }

    .nav-footer {
        display: contents; /* Reordering children independently */
    }

    .nav-logo {
        order: 1;
        margin-bottom: 25px;
        display: block;
        text-align: center;
    }

    .nav-logo img {
        height: 32px; /* A bit smaller */
        margin: 0 auto;
    }

    .nav-list {
        order: 2;
        max-height: none;
        overflow: visible;
        margin-bottom: 35px;
        gap: 10px;
        width: 100%;
    }

    .nav-list a {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        gap: 2px;
    }

    .nav-list a span {
        font-size: 0.72rem;
    }

    .nav-submenu a {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem) !important;
        gap: 1px !important;
    }

    .nav-external-links {
        order: 3;
        flex-direction: row; /* Save vertical space */
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .nav-ext-link {
        font-size: 0.68rem;
        gap: 5px;
    }

    .nav-ext-link .nav-icon-wrap {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .nav-ext-link svg {
        width: 13px;
        height: 13px;
    }

    /* === Products Page === */
    .products-page-bg {
        padding: 120px 0 60px;
    }

    .product-filter-tabs {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* === Product Detail === */
    .product-detail-info .title {
        font-size: 1.8rem;
    }

    .product-table th,
    .product-table td {
        padding: 14px 12px;
        font-size: 0.85rem;
    }

    .product-table th {
        width: 35%;
    }

    /* === News watermark === */
    .kokuu-news-bg > div[style*="position: absolute"] {
        display: none;
    }

    /* === Article pages === */
    .kokuu-article-header {
        padding: 140px 15px 60px;
    }

    .kokuu-article-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .kokuu-article-content {
        padding: 0 20px;
        font-size: 1rem;
        line-height: 2.2;
        margin-bottom: 80px;
    }

    .kokuu-article-hero {
        margin: -30px auto 60px;
        border-radius: 8px;
    }
}

/* === Extra small screens (< 480px) === */
@media (max-width: 480px) {
    .section-title .en {
        font-size: clamp(1.6rem, 9vw, 2.5rem);
    }

    .intro-scroll-en {
        font-size: clamp(0.95rem, 4.5vw, 1.3rem);
    }

    .intro-scroll-ja {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }

    .hscroll-panel-body {
        padding: 20px !important;
    }

    .hscroll-panel-title {
        font-size: 1.3rem !important;
    }

    .hscroll-panel-desc {
        font-size: 0.9rem !important;
    }

    .news-card-title {
        font-size: 0.9rem;
    }

    .footer-contact h3 {
        font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
    }
}

/* =========================================================================
   MULTILINGUAL & GOOGLE TRANSLATE STYLES
   ========================================================================= */

/* Language Switcher in Header */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    color: var(--color-accent);
    font-weight: bold;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 15px;
    }
    .lang-btn {
        font-size: 1rem;
    }
}

/* Hide Google Translate UI elements */
.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon,
.goog-te-gadget-simple {
    display: none !important;
}

body {
    top: 0px !important;
}

#goog-gt-tt {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* =========================================================================
   ENGLISH LAYOUT ADJUSTMENTS (html[lang="en"])
   ========================================================================= */

/* Extra spacing for English text due to larger character volume and font metrics */
html[lang="en"] body {
    letter-spacing: 0.03em;
}

html[lang="en"] .nav-list a {
    font-size: clamp(1.3rem, 3vw, 2.5rem);
}

html[lang="en"] .nav-list a span {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

html[lang="en"] .section-lead,
html[lang="en"] .hscroll-panel-desc,
html[lang="en"] .production-line-card p,
html[lang="en"] .product-detail-info .lead,
html[lang="en"] .product-card-desc {
    line-height: 1.8;
}

html[lang="en"] .hscroll-panel-title {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

html[lang="en"] .product-card-title {
    font-size: 1.25rem;
}

html[lang="en"] .news-card-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 1.05rem;
}

html[lang="en"] .kokuu-article-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
}

html[lang="en"] .btn,
html[lang="en"] .kokuu-btn-outline {
    padding: 15px 30px;
    letter-spacing: 0.1em;
}

html[lang="en"] .hscroll-panel-body {
    padding: 40px;
}
.footer-contact h3 {
    font-weight: 700 !important;
}
