/* --- 基本設定 --- */
:root {
    --bg-color: #FFFFFF;
    --primary-color: #D33325; /* 赤：アクセント、重要ボタン */
    --secondary-color: #D9B670; /* 金/ベージュ：背景アクセント、信頼感 */
    --text-color: #211815; /* 黒茶：メインテキスト */
    --light-gray: #f4f4f4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS明朝E", "MS PMincho", serif; /* 信頼性を出すため明朝体ベース */
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: bold;
    letter-spacing: 0.05em;
}

p {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; /* 読みやすさのため本文はゴシック */
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 40px 0;
}

/* --- ヘッダー --- */
header {
    background-color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* PCメニュー */
.pc-nav ul {
    display: flex;
    gap: 30px;
}

.pc-nav a {
    font-size: 0.95rem;
    font-weight: bold;
    position: relative;
}

.pc-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

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

/* --- ハンバーガーメニュー (SP用) --- */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.mobile-nav ul {
    flex-direction: column;
    padding: 20px 0;
}

.mobile-nav li {
    margin: 15px 0;
}

/* --- ヒーローセクション --- */
.hero {
    margin-top: 70px; /* ヘッダー分 */
    background-image: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)), url('img/header.jpg');
    background-size: cover;
    background-position: center;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--secondary-color);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    background: rgba(255,255,255,0.8);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 30px;
    border: 2px solid var(--primary-color);
}

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

/* --- セクション共通タイトル --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px auto 0;
}

/* --- 特長（About） --- */
#features {
    background-color: var(--bg-color);
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- 実績（Numbers） --- */
#numbers {
    background-color: var(--light-gray);
    text-align: center;
}

.number-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.number-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.number-item .count {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: sans-serif;
}

.number-item .unit {
    font-size: 1.2rem;
}

/* --- 商品紹介（Products） --- */
#products .product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product-card {
    width: 300px;
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #eee;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* --- 連携・グループ --- */
#group {
    background-color: #fff;
    text-align: center;
}

.group-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.logo-box {
    width: 200px;
    height: 100px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- 会社概要 --- */
#company {
    background-color: var(--light-gray);
}

table.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
}

table.company-table th, table.company-table td {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: left;
}

table.company-table th {
    background-color: var(--secondary-color);
    color: #fff;
    width: 30%;
}

/* --- お問い合わせ --- */
#contact {
    background-color: var(--text-color);
    color: #fff;
}

#contact .section-title {
    color: #fff;
}

#contact .section-title::after {
    background-color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input, .form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
}

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

.submit-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #b02a1e;
}

/* --- フッター --- */
footer {
    background-color: #000;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 15px;
    }

    .pc-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav.active {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    table.company-table th, table.company-table td {
        display: block;
        width: 100%;
    }
    
    table.company-table th {
        text-align: center;
    }
}

