/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Colors - Industrial Palette */
    --color-primary: #1a1a1a;
    --color-secondary: #2d5f8d;
    --color-accent: #e63946;
    --color-text: #2a2a2a;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e0e0e0;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1400px;
    
    /* Transitions */
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
    
    /* Shadows */
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 80px;
}

.section-header.center {
    justify-content: center;
}

.section-number {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-light);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ===================================
   Language Switcher
   =================================== */
.lang-switcher {
    position: fixed;
    top: 10px;
    right: 30px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}


.lang-switcher a {
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--color-primary);
}

.lang-switcher .divider {
    color: var(--color-border);
}

/* ===================================
   Navigation
   =================================== */
.main-nav {
    position: fixed;
    top: 50px; /* 言語ボタンの下 */
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.main-nav.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 5%;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.logo a {
    display: block;
    position: relative;
}

.logo img {
    display: block;
    transition: opacity var(--transition-fast);
    mix-blend-mode: screen; /* 黒背景を透過させる */
    height: 50px;
}

.main-nav.scrolled .logo img {
    mix-blend-mode: normal; /* スクロール後は通常表示 */
}

.logo-white {
    opacity: 1;
}

.logo-dark {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.main-nav.scrolled .logo-white {
    opacity: 0;
}

.main-nav.scrolled .logo-dark {
    opacity: 1;
}

/* ナビゲーションのロゴ位置を左に */
.main-nav .logo {
    /* 左寄せ */
}

.nav-menu {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-text);
    position: relative;
}

.main-nav:not(.scrolled) .nav-menu a {
    color: white;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.main-nav:not(.scrolled) .menu-toggle span {
    background: white;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0; /* ナビゲーション分のマージン削除 */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 5%;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s forwards;
}

.title-line[data-delay="200"] {
    animation-delay: 0.2s;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInUp 1s 0.4s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    font-family: var(--font-primary);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s 0.8s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, white, transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--color-bg-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 18px;
    line-height: 1.9;
}

.about-text .lead {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.about-features {
    display: grid;
    gap: 40px;
}

.feature-item {
    padding: 32px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.feature-item p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===================================
   Products Section
   =================================== */
.products {
    background: var(--color-primary);
    color: white;
    padding: 0;
}

.products .section-header {
    padding: var(--section-padding) 5% 80px;
}

.products .section-title {
    color: white;
}

.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.product-item.reverse {
    direction: rtl;
}

.product-item.reverse > * {
    direction: ltr;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
}

.product-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-tag {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.product-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.product-subtitle {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 32px;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* YouTube Video in Product Section */
.product-video {
    margin: 32px 0;
}

.product-video iframe {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Product Specifications (Collapsible) */
.product-specs {
    margin: 32px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-specs.active {
    border-color: rgba(255, 255, 255, 0.4);
}

.specs-toggle {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.specs-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.specs-toggle svg {
    transition: transform 0.3s ease;
}

.product-specs.active .specs-toggle svg {
    transform: rotate(180deg);
}

.specs-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(255, 255, 255, 0.03);
    padding: 0 24px;
}

.product-specs.active .specs-content {
    max-height: 2000px;
    padding: 32px 24px;
}

.specs-content h4 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 32px;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.specs-content h4:first-child {
    margin-top: 0;
}

.specs-list {
    list-style: none;
    padding: 0;
}

.specs-list li {
    margin-bottom: 24px;
    padding-left: 0;
}

.specs-list li strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.specs-list li p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.85;
    margin: 0;
}

.specs-usage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.usage-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
}

.usage-item h5 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.usage-item p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

.specs-tech {
    margin-top: 24px;
    padding: 20px;
    background: rgba(45, 95, 141, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(45, 95, 141, 0.4);
}

.specs-tech h4 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.specs-tech p {
    font-size: 15px;
    line-height: 1.8;
    margin: 8px 0;
    opacity: 0.9;
}

.specs-tech strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    padding: 16px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: var(--transition-fast);
    width: fit-content;
}

.product-link:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.product-link svg {
    transition: transform var(--transition-fast);
}

.product-link:hover svg {
    transform: translateX(4px);
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-image {
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.service-content {
    padding: 40px;
}

.service-content h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.service-list {
    list-style: none;
    margin-bottom: 32px;
}

.service-list li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.service-description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text);
}

.service-highlight {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.service-contact {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.contact-info {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.contact-phone {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
}

.contact-phone:hover {
    color: var(--color-accent);
}

/* ===================================
   Recruit Section
   =================================== */
.recruit {
    padding: 0;
    min-height: 70vh;
}

.recruit-content {
    position: relative;
    min-height: 70vh;
    padding: var(--section-padding) 5%;
    display: flex;
    align-items: center;
}

.recruit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d5f8d 100%);
    opacity: 0.95;
}

.recruit-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.recruit-text {
    color: white;
}

.recruit-text .section-header {
    margin-bottom: 40px;
}

.recruit-text .section-title {
    color: white;
}

.recruit-message {
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 48px;
    opacity: 0.95;
}

.recruit-photo {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    aspect-ratio: 4/3;
}

.recruit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* モバイル用ボタンはPCで非表示 */
.recruit-btn-sp {
    display: none;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .recruit-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .recruit-photo {
        aspect-ratio: 4/3;
        border-radius: 12px;
        order: 2;
    }
    .recruit-text {
        order: 1;
    }
    .recruit-message {
        font-size: 16px;
        margin-bottom: 24px;
    }
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    background: var(--color-accent);
    padding: 20px 40px;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: #c91f2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* ===================================
   SDGs Section
   =================================== */
.sdgs {
    background: var(--color-bg-alt);
    text-align: center;
}

.sdgs-content {
    max-width: 800px;
    margin: 0 auto;
}

.sdgs-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.sdgs-icons {
    margin-bottom: 40px;
}

.sdgs-icons img {
    width: 100%;
    border-radius: 8px;
}

.sdgs-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-secondary);
    padding: 12px 32px;
    border: 2px solid var(--color-secondary);
    border-radius: 50px;
    transition: var(--transition-fast);
}

.sdgs-link:hover {
    background: var(--color-secondary);
    color: white;
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    margin-bottom: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.required {
    color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
    font-size: 16px;
    padding: 16px 20px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    background: var(--color-primary);
    padding: 20px 48px;
    border-radius: 50px;
    transition: var(--transition-fast);
    margin-top: 24px;
}

.btn-submit:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-submit svg {
    transition: transform var(--transition-fast);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.office-info {
    padding: 40px;
    background: var(--color-bg-alt);
    border-radius: 12px;
}

.office-info h4 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.office-info address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--color-text);
}

.office-info a {
    color: var(--color-secondary);
    font-weight: 600;
}

.office-info a:hover {
    color: var(--color-accent);
}

.contact-hours {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 4px 0 16px;
}

.btn-service-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    margin-top: 8px;
}

.btn-service-contact:hover {
    background: var(--color-secondary);
    transform: translateX(4px);
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--color-secondary);
    padding: 10px 20px;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.pdf-link:hover {
    background: var(--color-secondary);
    color: white;
}

/* ===================================
   Access Map Section
   =================================== */
.access-map {
    background: var(--color-bg-alt);
}

.maps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 60px;
}

.map-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.map-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.map-header {
    padding: 32px;
    background: var(--color-bg-alt);
}

.map-header h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.map-address {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text);
}

.map-contact {
    padding-top: 20px;
    border-top: 2px solid var(--color-border);
}

.map-contact p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--color-text);
}

.map-contact a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-secondary);
    transition: var(--transition-fast);
}

.map-contact a:hover {
    color: var(--color-accent);
}

.map-hours {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 12px;
}

.map-embed {
    position: relative;
    width: 100%;
    height: 400px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: white;
    border-color: white;
    color: var(--color-primary);
}

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

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 998;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-4px);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .lang-switcher {
        top: 10px;
        right: 20px;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .main-nav {
        top: 50px;
    }
    
    .main-nav.scrolled {
        top: 0;
    }
    
    .main-nav .logo {
        /* モバイルでも左配置 */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 32px;
        box-shadow: var(--shadow-medium);
        transition: right var(--transition-smooth);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        color: white;
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:hover {
        color: var(--color-accent);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .product-item {
        grid-template-columns: 1fr;
    }
    
    .product-item.reverse {
        direction: ltr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-header {
        padding: 24px;
    }
    
    .map-embed {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .lang-switcher {
        top: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .main-nav {
        padding: 20px 5%;
    }
    
    .logo img {
        height: 48px !important; /* 60px の 80% */
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 48px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .product-content {
        padding: 40px 30px;
    }
    
    .specs-content {
        padding: 0 16px;
    }
    
    .product-specs.active .specs-content {
        padding: 24px 16px;
    }
    
    .specs-toggle {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .specs-list li strong {
        font-size: 15px;
    }
    
    .specs-list li p {
        font-size: 14px;
    }
    
    .specs-usage {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .mobile-only {
        display: inline;
    }
}

@media (min-width: 481px) {
    .mobile-only {
        display: none;
    }
}
