/* 全体のスタイル */
:root {
    --primary-color: #8B0000; /* ダークレッド */
    --secondary-color: #D4AF37; /* ゴールド */
    --dark-color: #1A1A1A; /* 濃い黒 */
    --light-color: #F5F5F5; /* オフホワイト */
    --accent-color: #A52A2A; /* ブラウン */
    --text-color: #333333; /* テキスト色 */
    --footer-color: #0F0F0F; /* フッター背景色 */
}

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

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
}

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

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ヘッダー */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: white;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* メインビジュアル */
.hero {
    height: 100vh;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 会社の特徴・強み */
.features {
    padding: 80px 0;
    background-color: white;
}

.feature-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature-item {
    flex: 0 0 calc(33.333% - 30px);
    margin-bottom: 40px;
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-item p {
    color: #666;
}

/* 取扱商品カテゴリー */
.products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-category {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 40px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-category h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.product-category p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
}

.product-category .btn-small {
    margin: 0 20px 20px;
}

/* お知らせ・新着情報 */
.news {
    padding: 80px 0;
    background-color: white;
}

.news-items {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-date {
    flex: 0 0 120px;
    color: var(--primary-color);
    font-weight: bold;
}

.news-title {
    flex: 1;
}

.more-link {
    text-align: center;
    margin-top: 30px;
}

.more-link a {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    padding-right: 20px;
}

.more-link a::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.more-link a:hover::after {
    transform: translateX(5px);
}

/* フッター */
footer {
    background-color: var(--footer-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info {
    flex: 0 0 40%;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-links {
    flex: 0 0 25%;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* ページタイトル */
.page-title {
    background-color: var(--dark-color);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-title h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 会社概要ページ */
.company-info, .company-history, .access-map {
    padding: 60px 0;
}

.company-info {
    background-color: white;
}

.company-history {
    background-color: #f9f9f9;
}

.company-table, .history-table {
    max-width: 900px;
    margin: 0 auto;
}

.company-table table, .history-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th, .company-table td, .history-table th, .history-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.company-table th, .history-table th {
    width: 30%;
    text-align: left;
    color: var(--primary-color);
    font-weight: bold;
    vertical-align: top;
}

.map-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.map-placeholder {
    flex: 0 0 60%;
    height: 400px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.access-info {
    flex: 0 0 35%;
}

.access-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.access-info p {
    margin-bottom: 15px;
}

/* 経営理念ページ */
.philosophy, .president-message, .management-goals {
    padding: 60px 0;
}

.philosophy {
    background-color: white;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-main {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 500;
}

.president-message {
    background-color: #f9f9f9;
}

.message-content {
    max-width: 1000px;
    margin: 0 auto;
}

.message-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.message-point {
    flex: 0 0 calc(33.333% - 30px);
    margin-bottom: 30px;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.point-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.message-point h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.management-goals {
    background-color: white;
}

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

.goals-main {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 500;
}

.goals-details ul {
    list-style: disc;
    padding-left: 20px;
}

.goals-details ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 設備紹介ページ */
.equipment-intro, .equipment-list {
    padding: 60px 0;
}

.equipment-intro {
    background-color: white;
}

.equipment-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.equipment-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.equipment-list {
    background-color: #f9f9f9;
}

.equipment-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.equipment-item {
    flex: 0 0 calc(50% - 20px);
    margin-bottom: 40px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.equipment-content {
    padding: 30px;
}

.equipment-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.equipment-content p {
    color: #666;
    margin-bottom: 15px;
}

.equipment-specs {
    margin-top: 20px;
}

.equipment-specs h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.equipment-specs ul {
    list-style: disc;
    padding-left: 20px;
}

.equipment-specs ul li {
    margin-bottom: 5px;
}

/* 商品案内ページ */
.products-intro, .product-list, .original-products {
    padding: 60px 0;
}

.products-intro {
    background-color: white;
}

.products-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.products-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-list {
    background-color: #f9f9f9;
}

.product-category-section {
    margin-bottom: 60px;
}

.product-category-section:last-child {
    margin-bottom: 0;
}

.product-category-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.product-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-item-image {
    height: 200px;
    overflow: hidden;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-item-content {
    padding: 20px;
}

.product-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-item-content p {
    color: #666;
    margin-bottom: 15px;
}

.original-products {
    background-color: white;
}

.original-product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.original-product:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.original-product-image {
    flex: 0 0 40%;
}

.original-product-content {
    flex: 0 0 55%;
}

.original-product-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.original-product-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.original-product-features {
    margin: 30px 0;
}

.original-product-features h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.original-product-features ul {
    list-style: disc;
    padding-left: 20px;
}

.original-product-features ul li {
    margin-bottom: 10px;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .feature-item, .message-point {
        flex: 0 0 calc(50% - 20px);
    }
    
    .product-category {
        flex: 0 0 calc(50% - 15px);
    }
    
    .footer-info {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex: 0 0 calc(50% - 15px);
    }
    
    .equipment-item, .product-item {
        flex: 0 0 100%;
    }
    
    .original-product-image, .original-product-content {
        flex: 0 0 100%;
    }
    
    .original-product-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--dark-color);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .feature-item, .message-point {
        flex: 0 0 100%;
    }
    
    .map-placeholder, .access-info {
        flex: 0 0 100%;
    }
    
    .map-placeholder {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .company-table th, .history-table th {
        width: 40%;
    }
    
    .footer-links {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
}
