/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Color Palette - Professional Japanese Business Theme */
    --color-primary: #0066cc;
    --color-primary-dark: #004d99;
    --color-primary-light: #3385d6;
    --color-secondary: #2c5282;
    --color-accent: #f56565;
    --color-text: #2d3748;
    --color-text-light: #4a5568;
    --color-text-lighter: #718096;
    --color-bg: #ffffff;
    --color-bg-light: #f7fafc;
    --color-bg-section: #edf2f7;
    --color-border: #e2e8f0;
    --color-border-light: #cbd5e0;
    --color-shadow: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-family-ja: -apple-system, BlinkMacSystemFont, "Segoe UI",
                      "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                      Meiryo, sans-serif;
    --font-family-en: -apple-system, BlinkMacSystemFont, "Segoe UI",
                      Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-ja);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: clamp(1.875rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===================================
   Layout & Container
   =================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.logo-text {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.lang-toggle:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

.lang-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.lang-toggle:active {
    transform: scale(0.98);
}

.lang-icon {
    font-size: 1.125rem;
    line-height: 1;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    color: var(--color-bg);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.company-name-ja {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: 0.02em;
}

.company-name-furigana {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    font-weight: 400;
}

/* ===================================
   Section Styles
   =================================== */

section {
    padding: var(--spacing-3xl) 0;
}

section:nth-child(even) {
    background-color: var(--color-bg-section);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
}

/* ===================================
   About Section
   =================================== */

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ===================================
   Company Information Section
   =================================== */

.info-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

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

.info-table th {
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    width: 35%;
    vertical-align: top;
}

.info-table td {
    color: var(--color-text-light);
    vertical-align: top;
}

.company-address {
    font-style: normal;
    line-height: 1.8;
}

.text-secondary {
    color: var(--color-text-lighter);
    font-size: 0.9375rem;
}

/* ===================================
   Location Section
   =================================== */

.location-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.location-info {
    background-color: var(--color-bg);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.location-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.location-address {
    font-style: normal;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.location-note {
    font-size: 0.9375rem;
    color: var(--color-text-lighter);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.map-container {
    background-color: var(--color-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--color-text);
    color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-company {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-bg);
}

.footer-copyright {
    margin-bottom: var(--spacing-xs);
    opacity: 0.8;
}

.footer-legal {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Tablets (768px and up) */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    .info-table th {
        width: 30%;
    }

    .location-content {
        grid-template-columns: 1fr 1fr;
    }

    .map-placeholder {
        height: 350px;
    }
}

/* Desktops (1024px and up) */
@media (min-width: 1024px) {
    :root {
        --container-padding: 2.5rem;
    }

    section {
        padding: var(--spacing-3xl) 0;
    }

    .hero {
        padding: calc(var(--spacing-3xl) * 1.5) 0;
    }
}

/* Large Desktops (1280px and up) */
@media (min-width: 1280px) {
    .info-table th {
        width: 25%;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .header,
    .lang-toggle,
    .hero::before {
        display: none;
    }

    .hero {
        background: none;
        color: var(--color-text);
        padding: var(--spacing-lg) 0;
    }

    .company-name-ja,
    .company-name-furigana,
    .hero-subtitle {
        color: var(--color-text);
    }

    section {
        page-break-inside: avoid;
        padding: var(--spacing-md) 0;
    }

    .info-card,
    .location-info,
    .map-container {
        box-shadow: none;
        border: 1px solid var(--color-border);
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

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

/* ===================================
   Accessibility - High Contrast Mode
   =================================== */

@media (prefers-contrast: high) {
    :root {
        --color-primary: #0052a3;
        --color-text: #000000;
        --color-bg: #ffffff;
        --color-border: #000000;
    }

    .lang-toggle,
    .info-card,
    .location-info,
    .map-container {
        border: 2px solid var(--color-border);
    }
}

/* ===================================
   Focus Management for Accessibility
   =================================== */

:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to main content link (for screen readers) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* ===================================
   Utility Classes
   =================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
