* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #0f2350 0%, #1e3a6e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: #ffd700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ffd700;
}

/* ナビゲーションメニューのベーススタイル */
.nav-menu {
    display: flex;
    justify-content: center;
    flex: 1;
}

/* サブメニューのスタイル */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e3a6e;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    padding: 0.5rem 0;
    border-radius: 4px;
    flex-direction: column;
}

nav li:hover .submenu {
    display: flex;
}

.submenu li {
    margin: 0;
    width: 100%;
}

.submenu a {
    padding: 0.5rem 1rem;
    display: block;
    color: white;
    font-size: 0.9rem;
}

.submenu a:hover {
    background-color: #0f2350;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('image/hiro-01.png') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Rounded M+ 1c', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #ffd700;
    color: #0f2350;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: #0f2350;
    position: relative;
    display: inline-block;
    padding-left: 25px;
    padding-bottom: 0.5rem;
}

.section-title h2:before {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid #ffd700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #ffd700;
    bottom: 0;
    left: 0;
}

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

.feature-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.feature-img {
    height: 200px;
    background-color: #ddd;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    color: #0f2350;
    margin-bottom: 0.5rem;
}

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

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-img {
    height: 250px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.product-img img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.product-img img[src="image/products-rod.jpg"] {
    transform: rotate(90deg);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    color: #0f2350;
    margin-bottom: 0.5rem;
}

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

.application-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.application-img {
    height: 200px;
    background-color: #f0f0f0;
}

.application-content {
    padding: 1.5rem;
}

.application-content h3 {
    color: #0f2350;
    margin-bottom: 0.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-img {
    height: 400px;
    background-color: #eee;
    border-radius: 8px;
}

.about-text h3 {
    color: #0f2350;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

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

.contact-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    color: #0f2350;
    margin-bottom: 1rem;
}

footer {
    background-color: #0f2350;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #ffd700;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 製品情報の上の画像セクション */
.top-image-section {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

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

.top-image img {
    border: 3px solid #0f2350;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 70%;
    max-width: 700px;
}

.top-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

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

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

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

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #0f2350;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: none;
        transition: left 0.3s ease;
        z-index: 1000;
        text-align: center;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        margin: 0;
        gap: 2rem;
        width: 100%;
        text-align: center;
        list-style: none;
    }
    
    .nav-list li {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    .nav-list a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .header-right {
        display: none !important;
    }
    
    /* カーボンロッド詳細ページなど、追加CSSがあるページでの確実な動作保証 */
    body .nav-menu.active {
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(0) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: #0f2350 !important;
        z-index: 1000 !important;
    }
    
    body .nav-menu.active .nav-list {
        width: 100% !important;
        text-align: center !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    body .nav-menu.active .nav-list li {
        width: 100% !important;
        text-align: center !important;
    }
    
    body .nav-menu.active .nav-list a {
        width: 100% !important;
        text-align: center !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .top-image img {
        border: 2px solid #0f2350;
    }
}
