/* Google Fonts Import */
/* Fonts are loaded via <link rel="preconnect">+<link rel="stylesheet"> in each
   page's <head> (parallel, non-chained) instead of a render-blocking @import. */

:root {
    --primary-color: #0A192F;
    --primary-dark: #020c1b;
    --secondary-color: #B59049;
    --secondary-text: #80652C;
    --secondary-light: #e6c57f;
    --text-color: #1A1A1A;
    --text-light: #F8F9FA;
    --bg-light: #F4F7F9;
    --bg-white: #FFFFFF;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading-en: 'Cinzel', serif;
    --font-heading-jp: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-en: 'Lato', sans-serif;
    --section-padding: 8rem;
    --container-max-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.03em;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Japanese Refinement: Use keep-all for phrases in main content */
h1,
h2,
h3,
h4,
.content-block p {
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary-text);
    outline-offset: 4px;
}

ul {
    list-style: none;
}

/* Typography Utility Classes */
.font-en {
    font-family: var(--font-en);
}

.font-serif {
    font-family: var(--font-heading-en);
}

/* Keep a short phrase (e.g. an English term inside JP copy) from breaking across lines */
.nowrap {
    white-space: nowrap;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
    position: fixed;
    top: 0;
    left: -9999px;
    z-index: 2000;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
}

.skip-link:focus {
    left: 0;
}

main:focus {
    outline: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.05);
    backdrop-filter: blur(20px);
}

header.scrolled nav a {
    color: var(--primary-color);
    /* Dark text on white */
}

/* Logo handling for visibility */
header.scrolled .logo img {
    filter: none;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

/* Logo stays a transparent, full-colour PNG on every background — no white
   plate, no colour inversion. On dark hero/menu it gets a soft white halo that
   follows the logo's own shape so the navy wordmark stays legible, plus a faint
   drop for depth — definition without any box. */
header:not(.scrolled) .logo img,
body.no-scroll header .logo img {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

nav>ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.2em;
    position: relative;
    padding: 10px 0;
    text-transform: uppercase;
    /* Treat menu links as controls, not selectable text:
       stops the long-press selection / drag / callout that re-layouts the label */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
}

nav a:hover::after {
    width: 100%;
}

.btn-contact {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.6rem 2rem;
    border-radius: 0;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

.btn-contact:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Darker gold for legibility once the header turns white on scroll */
header.scrolled .btn-contact {
    color: var(--secondary-text);
    border-color: var(--secondary-text);
}

header.scrolled .btn-contact:hover {
    background-color: var(--secondary-text);
    color: #fff;
}

.btn-contact::after {
    display: none;
}

/* Compact header contact button — only shown alongside the hamburger */
.header-contact-sp {
    display: none;
}

.mobile-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Stable viewport height: prevents the hero from resizing (and the page
       from "jumping") when the mobile URL bar shows/hides during scroll. */
    height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Basic background fallback */
    background: #0A192F;
}

/* Hero Slider Backgrounds */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Promote to its own GPU layer so the scroll parallax stays smooth */
    will-change: transform;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
    /* Slow zoom in effect */
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.4);
    /* Dark overlay */
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--text-light);
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-content .hero-en {
    font-family: var(--font-heading-en);
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    letter-spacing: 0.15em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-content .hero-ja {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    opacity: 0.9;
}

.btn-main {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    word-break: keep-all;
    border-radius: 2px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(181, 144, 73, 0.28);
}

.btn-main:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(10, 25, 47, 0.28);
}

/* Sections */
section {
    padding: 8rem 2rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title p {
    font-family: var(--font-en);
    color: var(--secondary-text);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-title h2 {
    font-family: var(--font-heading-jp);
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-wrap: balance;
}

/* Vertical Line Decoration */
.section-title::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background-color: var(--secondary-color);
    margin: 2rem auto 0;
}

/* Mission Section */
.mission-text {
    font-size: 1.2rem;
    line-height: 2.2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    font-weight: 300;
}

/* OUR MISSION — statement section. Drop the floating vertical divider and let
   the two short paragraphs breathe rather than form one dense block. */
.mission .section-title {
    margin-bottom: 3rem;
}

/* Replace the tall floating vertical line with a short, deliberate horizontal
   gold accent under the heading. */
.mission .section-title::after {
    width: 40px;
    height: 2px;
    margin: 1.75rem auto 0;
    background-color: var(--secondary-color);
}

.mission-text p + p {
    margin-top: 1.6rem;
}

/* Business/Services Cards */
.bg-offset {
    background-color: #F5F7FA;
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

.card-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem;
    text-align: left;
}

.card h3 {
    font-family: var(--font-heading-en);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.link-arrow {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow i {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.card:hover .link-arrow i {
    transform: translateX(5px);
}



/* Footer - Ultra Minimalist */
footer {
    background-color: #fff;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-simple {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-simple .logo img {
    height: 32px;
    width: auto;
}

.footer-nav-simple {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-nav-simple a {
    font-family: var(--font-en);
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.copyright-simple {
    color: #8a9099;
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-nav-simple {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Animations */
.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.motion-ready {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1), transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay classes */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}


/* Subpage Header */
.page-header {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header .ph-en {
    font-family: var(--font-heading-en);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    /* was an <h1>; keep the UA-bold look now that it is a <p> */
    font-weight: 700;
}

.page-header .ph-ja {
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    opacity: 0.9;
    /* now an <h1>; neutralise the UA bold */
    font-weight: 400;
}

/* Breadcrumb */
.breadcrumb {
    background: #f0f0f0;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb li a {
    color: #595959;
}

.breadcrumb li a:hover {
    color: var(--primary-color);
}

.breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    color: #ccc;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li:last-child {
    color: var(--primary-color);
    font-weight: 500;
}

/* Subpage Content */
.subpage-content {
    background: #fff;
    padding: 5rem 2rem;
}

.content-block {
    margin-bottom: 5rem;
}

.content-block h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    text-wrap: balance;
}

.content-block p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: #444;
}

.content-block img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Centered call-to-action panel (e.g. the auction participation block).
   A purpose-built component: a left-aligned .content-block was previously
   forced into a centered CTA with inline styles, which made its inline-block,
   keep-all heading overflow and read as left-aligned. */
.cta-box {
    text-align: center;
    background: #f0f4f8;
    padding: 4rem 2rem;
    border-radius: 6px;
}

.cta-box h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.cta-box p {
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.9;
    color: #444;
}

/* ============================================================
   Reusable components — replace scattered inline-style hacks.
   ============================================================ */

/* Narrow reading column for text-heavy subpages (privacy, contact, export) */
.container.measure {
    max-width: 880px;
}

/* Centered CTA / button wrapper */
.btn-center {
    text-align: center;
    margin-top: 3rem;
}

/* Required-field marker in forms */
.required {
    color: #c0392b;
    font-weight: 600;
}

/* Callout / info panel. Add .accent for the gold left-border variant. */
.note-box {
    background: #f9f9f9;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.note-box.accent {
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 4px 4px 0;
}

.note-box > p {
    margin-bottom: 0.5rem;
}

.note-box > p:last-child {
    margin-bottom: 0;
}

.note-box .note-lead {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Legal/policy document body: gold-accent subheadings + indented lists */
.policy-body {
    margin-top: 2rem;
}

.policy-body > h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 0.75rem;
    margin: 2.5rem 0 1rem;
    line-height: 1.5;
}

.policy-body > h3:first-child {
    margin-top: 0;
}

.policy-body ol,
.policy-body ul {
    margin-left: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-body ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

/* Lead heading for the company greeting (long bilingual phrase, like the
   mission heading — "Made in Japan" is kept intact via a .nowrap span). */
.lead-heading {
    font-size: 1.4rem;
    font-family: var(--font-heading-jp);
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    /* Break at punctuation/word boundaries, never mid-word (e.g. 繋/ぎ, 世界/へ):
       keep-all stops CJK breaking between characters, overflow-wrap:normal stops
       the Latin run from forcing an emergency break. */
    word-break: keep-all;
    overflow-wrap: normal;
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.company-table th {
    background-color: #f9f9f9;
    width: 30%;
    white-space: nowrap;
    font-weight: 700;
    color: var(--primary-color);
}

/* Access page — venue cards + maps (moved from an inline <style> block that
   used to sit at the end of access.html's <body>) */
.access-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.access-card:hover {
    transform: translateY(-5px);
}

.access-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.access-card .address {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Map */
.map-container {
    width: 100%;
    height: 250px;
    background: #eee;
    margin-top: 2rem;
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: #f9f9f9;
}

.form-control:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

textarea.form-control {
    height: 200px;
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 4rem;
    border: none;
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.client-card {
    background: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    color: inherit;
    text-decoration: none;
}

.client-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.client-icon {
    width: 80px;
    height: 80px;
    background: rgba(10, 25, 47, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
}

.client-card:hover .client-icon {
    background: var(--primary-color);
}

.client-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.client-card:hover .client-icon i {
    color: var(--secondary-color);
}

.client-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.client-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Auction Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.item-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    text-align: center;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.item-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 0.5rem;
    display: block;
    transition: transform 0.6s ease;
}

.item-card:hover img {
    transform: scale(1.08);
}

.item-card p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Clients Page Styles */
.client-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 110px;
}

.client-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 1rem;
}

.client-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.client-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.client-body .lead-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.client-body .note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2rem;
}

.flow-box {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.flow-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.flow-steps li {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.step-num {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.step-title {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Company Page Refinements */
.ceo-signature {
    margin-top: 3rem;
    font-family: var(--font-heading-jp);
    font-weight: bold;
    text-align: right;
}

.ceo-signature span {
    font-size: 1.5rem;
    display: block;
    margin-top: 0.5rem;
}


@media (max-width: 768px) {
    .ceo-signature {
        text-align: center;
        margin-top: 4rem;
    }

    .ceo-signature span {
        font-size: 1.8rem;
    }

    .company-table th {
        width: 40%;
        font-size: 0.9rem;
    }

    .company-table td {
        font-size: 0.9rem;
    }
}

/* Export Page Styles */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.export-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.export-item:hover {
    transform: translateY(-5px);
}

.export-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {}

.appeal-box {
    background: #eef2f6;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dae1e7;
}

.appeal-box h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.appeal-box p {
    margin: 0;
    line-height: 1.8;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 1rem;
}

header.scrolled .lang-switch {
    color: var(--text-color);
}

.lang-switch a {
    color: inherit;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
    border-bottom-color: var(--secondary-color);
}

.lang-switch a::after {
    display: none;
}

.lang-switch a {
    cursor: pointer;
}

/* Google Website Translate — hide its banner/chrome; we drive it from the
   header JP | EN switch, so none of Google's own UI should ever be visible. */
.goog-te-banner-frame,
.goog-te-gadget,
#google_translate_element,
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-tooltip,
.goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

/* Utility */
.no-scroll {
    overflow: hidden;
}



/* Responsive Media Queries */

/* Compact header tier — squeeze the horizontal nav so it fits 1081-1280px */
@media (max-width: 1280px) {
    .header-container {
        padding: 0 2rem;
    }

    nav > ul {
        gap: 1.5rem;
    }

    .btn-contact {
        padding: 0.6rem 1.2rem;
    }
}

/* Hamburger/overlay navigation — the horizontal nav cannot physically fit
   below ~1080px (8 items + logo), so the mobile menu takes over well above
   the 768px content breakpoint. */
@media (max-width: 1080px) {
    /* Mobile Navigation */
    .nav-active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Scoped to the header menu only — must NOT capture the footer <nav>,
       which was being turned into a hidden full-screen overlay. */
    #global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: radial-gradient(circle at center, var(--primary-color) 0%, var(--primary-dark) 100%);
        display: flex;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        z-index: 999;
        pointer-events: none;
        overflow-y: auto;
    }

    #global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        /* Safe centering: auto margins center when there is room and keep the
           top items reachable/scrollable on short (landscape) viewports. */
        margin: auto;
        padding: 3rem 0;
    }

    #global-nav a {
        font-size: 1.2rem;
        color: var(--text-light);
    }

    header.scrolled #global-nav a {
        color: var(--text-light);
    }

    /* Keep the logo above the full-screen menu */
    .logo {
        position: relative;
        z-index: 1001;
    }

    /* While the menu is open, make the header bar itself disappear so the dark
       menu reads top-to-bottom and the transparent logo sits on it cleanly */
    body.no-scroll header,
    body.no-scroll header.scrolled {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        cursor: pointer;
        border: 0;
        padding: 0.45rem;
        background: transparent;
        color: inherit;
    }

    .mobile-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--text-light);
        margin: 6px 0;
        transition: 0.4s;
    }

    header.scrolled .mobile-toggle span {
        background: var(--primary-color);
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mobile-toggle.active span {
        background: var(--text-light) !important;
    }
    .lang-switch {
        margin: 3rem 0 0 0;
        justify-content: center;
    }

    header.scrolled .lang-switch {
        color: var(--text-light);
    }

    /* Always-visible compact contact button next to the hamburger */
    .header-contact-sp {
        display: inline-block;
        margin-left: auto;
        margin-right: 0.75rem;
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* The open menu overlay has its own お問い合わせ link */
    body.no-scroll .header-contact-sp {
        visibility: hidden;
    }
}

@media (max-width: 992px) {
    .hero-content .hero-en {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.7;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }


    /* Hero Optimization */
    .hero-content .hero-en {
        font-size: clamp(2rem, 9vw, 2.35rem);
        line-height: 1.16;
        letter-spacing: 0.045em;
        overflow-wrap: normal;
        margin-bottom: 1.5rem;
        text-wrap: balance;
    }

    .hero-content .hero-ja {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    /* Grid Adjustments - Optimized for catalog feel */
    .grid-3,
    .grid-2,
    .clients-grid,
    .export-grid,
    .flow-steps {
        grid-template-columns: 1fr;
    }

    /* Undo the stacked desktop insets so step text keeps a readable measure */
    .flow-box {
        padding: 1.5rem 1rem;
    }

    .flow-steps {
        gap: 1rem;
    }

    .flow-steps li {
        padding: 1.25rem 1rem;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .item-card img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .item-card p {
        font-size: 0.75rem;
        padding: 0.4rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Page Headers */
    .page-header .ph-en {
        font-size: 2.2rem;
        text-wrap: balance;
    }

    /* Sections */
    .content-block {
        padding: 2rem 0;
        margin-bottom: 2.5rem;
    }

    /* The white client-section cards need their own inner padding */
    .client-section {
        padding: 2rem 1.25rem;
    }

    .content-block:last-child {
        margin-bottom: 0;
    }

    .subpage-content {
        padding: 3.5rem 0;
    }

    .content-block h2 {
        font-size: 1.4rem;
        letter-spacing: 0.02em;
    }


    /* Typography & Balance Polish */
    .section-title h2 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .section-title p {
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto;
        line-height: 1.8;
    }

    /* Let centered Japanese copy wrap naturally instead of at desktop breaks.
       Scoped to Japanese pages: English needs its <br> (no spaces around it). */
    html[lang="ja"] .hero-content .hero-ja br,
    html[lang="ja"] .appeal-box p br,
    html[lang="ja"] .pc-br {
        display: none;
    }

    /* Keep Japanese headings from splitting mid-word on narrow screens */
    .content-block h2,
    .appeal-box h3,
    .section-title h2 {
        word-break: keep-all;
    }

    .appeal-box {
        padding: 1.75rem 1.25rem;
    }

    .appeal-box h3 {
        font-size: 1.15rem;
        flex-wrap: wrap;
    }

    /* CTA buttons: tighter padding + no mid-word breaks on small screens */
    .btn-main {
        padding: 0.95rem 2rem;
        letter-spacing: 0.04em;
        font-size: 0.9rem;
    }

    /* Access Grid 2-Column on Mobile */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Tighten the heading-to-body rhythm: the desktop 5rem gap + tall divider
       left an oversized void under section titles. Keep the gold accent short
       so it reads as a deliberate connector, not a line floating in whitespace. */
    .section-title {
        margin-bottom: 2rem;
    }

    .section-title::after {
        height: 26px;
        margin-top: 1.1rem;
    }

    /* Auction CTA panel on mobile: a touch tighter; the heading is a normal
       centered block here (no inline-block / keep-all), so it wraps and
       centers cleanly instead of overflowing. */
    .cta-box {
        padding: 2.75rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.35rem;
        letter-spacing: 0.02em;
    }

    .note-box {
        padding: 1.25rem 1.25rem;
    }

    .policy-body > h3 {
        font-size: 1.08rem;
    }

    /* OUR MISSION on mobile: an airy statement, not a dense block. More section
       padding, generous leading, and two balanced paragraphs with space between. */
    .mission {
        padding: 4.5rem 1.5rem;
    }

    .mission .section-title {
        margin-bottom: 2.5rem;
    }

    .mission-text {
        font-size: 1.05rem;
        line-height: 2.2;
    }

    .mission-text p {
        text-wrap: balance;
    }

    .mission-text p + p {
        margin-top: 1.5rem;
    }

    /* The bilingual lead heading is long; scale it with the viewport so each
       clause keeps to its own line ("…繋ぎ、" / "Made in Japan…") instead of
       splitting a word — verified 2 lines across 360–414px wide phones. */
    .section-title h2.mission-heading {
        font-size: clamp(1.4rem, 6.2vw, 1.75rem);
        letter-spacing: 0.02em;
        overflow-wrap: normal;
        /* Greedy (not balance) so each clause keeps its own line consistently
           across widths: "…繋ぎ、" / "Made in Japanを世界へ". */
        text-wrap: wrap;
    }

    /* Short marketing paragraphs (e.g. the auction CTA): keep lines dense and
       even (word-break stays normal), just avoid a lone trailing fragment.
       Specific compounds that must not split (e.g. 専任スタッフ) are wrapped
       in .nowrap spans in the markup. */
    .jp-flow {
        text-wrap: pretty;
    }
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .access-card {
        padding: 1.25rem !important;
    }

    .access-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .access-card .address {
        font-size: 0.875rem !important;
        line-height: 1.65 !important;
    }

    .map-container {
        height: 200px !important;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .company-table {
        width: 100%;
        table-layout: fixed;
    }

    .company-table th,
    .company-table td {
        padding: 1rem 0.75rem;
        overflow-wrap: anywhere;
    }

    .company-table th {
        width: 38%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .fade-up,
    .fade-up.motion-ready {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-slider {
        transform: none !important;
    }
}
