/* ========================================
   共同精機 コーポレートサイト CSS（レスポンシブ強化版）
   ======================================== */

/* ========== リセット & ベース ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003d82;
    --primary-dark: #002952;
    --primary-light: #0052a3;
    --accent-color: #00a0e9;
    --accent-light: #33b5ed;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #003d82 0%, #0052a3 100%);
    --gradient-accent: linear-gradient(135deg, #00a0e9 0%, #33b5ed 100%);
    
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
}

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

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

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

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

ul {
    list-style: none;
}

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

/* ========== ヘッダー ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-secondary);
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-cta {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50px;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

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

/* ========== ヒーローセクション ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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



/* HTML側のクラス（hero-image）に対応：ヒーロー背景画像を全面表示 */
.hero-background .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.85) 0%, rgba(0, 82, 163, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title-main {
    display: block;
    font-size: 0.6em;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.hero-title-company {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    font-family: var(--font-secondary);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.125rem);
    transition: var(--transition-base);
    white-space: nowrap;
}

.hero-cta.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-cta.secondary:hover {
    background: white;
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
}

/* ========== セクション共通 ========== */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    color: var(--accent-color);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 2rem;
    transition: var(--transition-base);
}

.section-link:hover {
    gap: 1rem;
}

/* ========== 最新情報セクション ========== */
.news-section {
    background: var(--bg-light);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.news-item.featured {
    background: var(--gradient-primary);
    color: white;
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-family: var(--font-secondary);
}

.news-item.featured .news-date {
    color: rgba(255, 255, 255, 0.8);
}

.news-title {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
}

/* ========== システム紹介セクション ========== */
.system-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.system-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.system-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.system-content {
    padding: clamp(1rem, 3vw, 2rem);
}

.system-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.system-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.system-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: clamp(0.95rem, 2vw, 1.0625rem);
}

.system-features li:last-child {
    border-bottom: none;
}

.system-features svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.btn-primary {
    display: inline-block;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(2rem, 4vw, 2.5rem);
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.0625rem);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== 精密技術セクション ========== */
.precision-section {
    background: var(--bg-light);
}

.precision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.precision-text {
    padding: clamp(1rem, 3vw, 2rem);
}

.precision-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.precision-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.precision-stat-item {
    text-align: center;
}

.precision-stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    font-family: var(--font-secondary);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.precision-stat-label {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--text-gray);
    font-weight: 500;
}

.precision-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.precision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.precision-badge {
    position: absolute;
    bottom: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    padding: 0.75rem 1.5rem;
    background: rgba(0, 61, 130, 0.95);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    backdrop-filter: blur(10px);
}

/* ========== サービスセクション ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 5vw, 4rem);
}

.service-card {
    background: white;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon svg {
    width: clamp(32px, 6vw, 40px);
    height: clamp(32px, 6vw, 40px);
}

.service-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition-base);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.service-link:hover {
    gap: 1rem;
}

/* ========== アフターサポートセクション ========== */
.support-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
    background: var(--bg-light);
}

.support-content {
    padding: clamp(1rem, 3vw, 2rem);
}

.support-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.support-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.support-features li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.support-feature-icon {
    width: clamp(45px, 8vw, 50px);
    height: clamp(45px, 8vw, 50px);
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.support-feature-icon svg {
    width: 24px;
    height: 24px;
}

.support-feature-content h4 {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.support-feature-content p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.support-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.support-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.support-badge {
    position: absolute;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    padding: 0.75rem 1.5rem;
    background: rgba(0, 61, 130, 0.95);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    backdrop-filter: blur(10px);
}

/* ========== お客様の声セクション ========== */
.testimonials-section {
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 5vw, 4rem);
}

.testimonial-card {
    background: white;
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    border-left: 4px solid var(--accent-color);
}

.testimonial-quote {
    font-size: clamp(3rem, 6vw, 4rem);
    font-family: Georgia, serif;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: clamp(0.95rem, 2vw, 1.0625rem);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: clamp(0.95rem, 2vw, 1.0625rem);
}

.testimonial-position {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    color: var(--text-gray);
}

/* ========== CTAセクション ========== */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(2rem, 4vw, 2.5rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.125rem);
    transition: var(--transition-base);
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.cta-contact-info {
    display: flex;
    gap: clamp(2rem, 4vw, 3rem);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.95rem, 2vw, 1.0625rem);
}

.cta-contact-item svg {
    width: 24px;
    height: 24px;
}

/* ========== フッター ========== */
.footer {
    background: #0a1929;
    color: rgba(255, 255, 255, 0.8);
    padding: clamp(3rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.footer-content {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}



/* HTML側のクラス（footer-logo-image）にも同じサイズ指定を適用 */
.footer-logo-image {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    display: block;
}
.footer-logo h3 {
    color: white;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    line-height: 1.7;
    opacity: 0.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.footer-nav-group h4 {
    color: white;
    font-size: clamp(0.95rem, 2vw, 1rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-group a {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    transition: var(--transition-base);
}

.footer-nav-group a:hover {
    color: var(--accent-light);
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    opacity: 0.6;
}

/* ========== レスポンシブ（強化版） ========== */

/* タブレット横向き */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .system-showcase,
    .support-showcase {
        padding: clamp(3rem, 8vw, 6rem) 1.5rem;
    }
}

/* タブレット */
@media (max-width: 1024px) {
    .system-showcase,
    .precision-content,
    .support-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .support-image {
        order: -1;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .precision-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        min-height: 500px;
    }
}

/* タブレット縦向き・スマホ横向き */
@media (max-width: 768px) {
    .header-container {
        padding: 0.875rem 1.5rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }
    
    .nav-link-cta {
        margin-top: 1rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 500px;
        height: 100vh;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .precision-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .system-showcase,
    .support-showcase {
        padding: clamp(2rem, 5vw, 3rem) 1.25rem;
    }
}

/* スマホ縦向き */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
    }
    
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .menu-toggle span {
        width: 24px;
    }
    
    section {
        padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 450px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description br {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-cta {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 2rem;
    }
    
    .news-item {
        padding: 1.25rem;
    }
    
    .system-features li {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }
    
    .system-features svg {
        width: 20px;
        height: 20px;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .support-features li {
        gap: 1rem;
    }
    
    .support-feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    

/* 画像上のバッジ（自動化システム／精密技術／専門サポート）を中央寄せにして角丸と干渉しないように */
.system-image,
.precision-image,
.support-image {
    position: relative;
    overflow: hidden; /* 角丸に合わせてバッジもはみ出さない */
}

.image-badge {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
    pointer-events: none;
    white-space: nowrap;
}
.precision-badge,
    .support-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        left: 1rem;
        bottom: 1rem;
    }
    
    .support-badge {
        right: 1rem;
        left: auto;
        top: 1rem;
    }
    
    .cta-description br {
        display: none;
    }
}

/* 小型スマホ */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-cta {
        max-width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* 横向き対応 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        height: auto;
        padding: 5rem 0 3rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* 高解像度ディスプレイ対応 */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1400px;
    }
    
    .hero {
        max-height: 1200px;
    }
}

/* プリント用 */
@media print {
    .header,
    .menu-toggle,
    .scroll-indicator,
    .hero-buttons,
    .cta-section {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ========================================
   SVGロゴのサイズ最適化
   ======================================== */

/* ヘッダーロゴ */
.logo-image {
    height: 50px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

/* ヒーローセクション内ロゴ */
.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.hero-logo-image {
    height: 70px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
}

/* スマホ表示用の調整 */
@media (max-width: 768px) {
    .logo-image {
        height: 40px !important;
        max-width: 140px !important;
    }
    
    .hero-logo-image {
        height: 55px !important;
        max-width: 160px !important;
    }
}

/* 小型スマホ用の調整 */
@media (max-width: 480px) {
    .logo-image {
        height: 35px !important;
        max-width: 120px !important;
    }
    
    .hero-logo-image {
        height: 45px !important;
        max-width: 140px !important;
    }
}

/* ========================================
   ヒーローロゴ表示 緊急修正CSS
   ======================================== */

/* ヒーローロゴコンテナの強制表示 */
.hero-logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 2rem 0 !important;
    z-index: 10 !important;
    position: relative !important;
    margin-bottom: 2rem !important;
}

/* ヒーローロゴ画像のサイズ調整 */
.hero-logo-image {
    display: block !important;
    height: 100px !important;
    width: auto !important;
    max-width: 300px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)) !important;
}

/* タブレット表示 */
@media (max-width: 1024px) {
    .hero-logo-image {
        height: 80px !important;
        max-width: 250px !important;
    }
}

/* スマホ表示 */
@media (max-width: 768px) {
    .hero-logo-image {
        height: 70px !important;
        max-width: 200px !important;
    }
}

/* 小型スマホ表示 */
@media (max-width: 480px) {
    .hero-logo-image {
        height: 55px !important;
        max-width: 160px !important;
    }
}

/* ヘッダーロゴのサイズ確保 */
.logo-image {
    height: 50px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .logo-image {
        height: 40px !important;
        max-width: 140px !important;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px !important;
        max-width: 120px !important;
    }
}


