* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8C42;
    --accent-black: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.logo {
    width: 120px;
    height: 32px;
    display: block;
    text-decoration: none;
}

.logo-link {
    width: 100%;
    height: 100%;
    display: block;
    background-image: url('img/TSUDA_INDUSTRIES_WHITE.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

header.scrolled .logo-link {
    background-image: url('img/TSUDA_INDUSTRIES.png');
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-links li {
    position: relative;
}

.nav-links .dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-orange);
    padding-left: 25px;
}

.dropdown-menu a::after {
    display: none;
}

/* モバイルメニューアイコン */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: center;
    align-items: center;
    position: relative;
}
.mobile-menu span {
    display: block;
    height: 3px;
    width: 24px;
    background: var(--primary-orange);
    border-radius: 2px;
    position: absolute;
    left: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu span:nth-child(1) {
    top: 2px;
}
.mobile-menu span:nth-child(2) {
    top: 10px;
}
.mobile-menu span:nth-child(3) {
    top: 18px;
}
.mobile-menu.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}
.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* Hero Section with Slider */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* ヘッダーの高さ分余白を追加 */
}

.hero-no-padding {
    padding-top: 0; /* 2番目のheroセクションには上部余白不要 */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 36vw; /* 画面幅に応じて高さを可変に */
    margin: 0 auto;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--white);
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/honohara_night.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    outline: none;
    user-select: none;
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Hero arrows配置 */
.hero-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.hero-arrow {
    background: rgba(255,255,255,0.7);
    color: var(--primary-orange);
    font-size: 2.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-arrow:hover {
    background: rgba(255,255,255,1);
}

.hero-arrow.prev {
    left: 30px;
}

.hero-arrow.next {
    right: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--primary-orange);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-orange);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--secondary-orange), var(--primary-orange));
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-black);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

@media (min-width: 601px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--white);
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    display: none;
}

.feature-card:nth-child(1) {
    background-image: url('img/qua_p_technicalcenter.jpg');
}

.feature-card:nth-child(2) {
    background-image: url('img/feature-technology.jpg');
}

.feature-card:nth-child(3) {
    background-image: url('img/feature-quality.jpg');
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
    position: relative;
    z-index: 2;
    padding: 0 30px;
}

.feature-card p {
    color: var(--white);
    line-height: 1.7;
    position: relative;
    z-index: 2;
    padding: 0 30px 30px 30px;
}

/* Stats Section */
.stats {
    background: var(--accent-black);
    color: var(--white);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-orange);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #fff;
}

/* Products Preview */
.products-preview {
    padding: 80px 20px;
    background: var(--white);
}

.products-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.products-image {
    flex: 1;
}

.products-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    font-weight: 500;
}

.products-description {
    flex: 1;
}

.products-description p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
    text-align: justify;
}

@media (max-width: 768px) {
    .products-content {
        flex-direction: column;
        gap: 30px;
    }

    .image-placeholder {
        height: 250px;
        font-size: 1rem;
    }

    .products-description p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Footer */
footer {
    background: var(--accent-black);
    color: var(--white);
    padding: 40px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 250px;
    height: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

@media (max-width: 768px) {
    .footer-logo img {
        max-width: 200px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Link Icon Styles */
.link-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.link-icon circle {
    transition: fill 0.3s ease;
}

.link-icon path {
    transition: stroke 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 820px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 0;
    }
    .nav-links.active li {
        padding: 20px;
        border-bottom: 1px solid #eee;
        text-align: left;
        width: 100%;
    }
    .nav-links.active a {
        display: block;
        width: 100%;
        color: var(--text-dark) !important;
    }
    .mobile-menu {
        display: flex;
    }

    /* モバイル時のドロップダウン */
    .nav-links.active .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--light-gray);
        margin: 0;
        padding: 0;
    }

    .nav-links.active .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links.active .dropdown-menu a {
        padding: 20px 20px 20px 40px;
    }

    .nav-links.active .dropdown-menu li {
        padding: 0;
        border-bottom: none;
    }

    .nav-links.active .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-slider {
        /* height: 60vw; モバイル時も幅に応じて高さを調整 */
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-arrow.prev {
        left: 15px;
    }
    
    .hero-arrow.next {
        right: 15px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .description {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        /* height: 80vw; */
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-nav {
        bottom: 15px;
        gap: 10px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-arrow {
        width: 35px;
        height: 35px;
    }
    
    .hero-arrow.prev {
        left: 10px;
    }
    
    .hero-arrow.next {
        right: 10px;
    }
    
    .features,
    .products-preview {
        padding: 60px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
