/* 小松企業コンサルタント - 統合スタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1565c0;
    --primary-light: #1976d2;
    --primary-dark: #0d47a1;
    --accent: #e65100;
    --text: #333;
    --text-light: #666;
    --bg: #f5f5f5;
    --white: #fff;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー（共通）
   ======================================== */
.header {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* トップページ用ヘッダー */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
}

.tel {
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

/* ロゴ */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.logo-main {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.logo-sub {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: normal;
}

/* サブページ用ヘッダーコンタクト */
.header-contact {
    text-align: right;
}

.header-tel {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 3px;
}

.header-tel span {
    font-size: 12px;
    font-weight: normal;
}

.header-address {
    font-size: 12px;
    color: var(--text-light);
}

/* メニュートグル（モバイル用） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ========================================
   ナビゲーション
   ======================================== */

/* トップページ用ナビ */
.header-main .nav {
    display: flex;
    gap: 10px;
}

.header-main .nav a {
    font-size: 13px;
    color: var(--text);
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: 0.3s;
}

.header-main .nav a:hover {
    background: var(--bg);
    border-color: var(--primary);
}

/* サブページ用ナビ */
header > .nav {
    background: var(--bg);
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.current {
    color: var(--primary);
    background: var(--white);
    border-bottom-color: var(--primary);
}

/* ========================================
   ヒーロー（トップページ）
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 20px;
}

.hero h1 {
    font-size: 30px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   メインメニュー（トップページ）
   ======================================== */
.main-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.menu-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    display: block;
    color: var(--text);
    transition: 0.3s;
    border-top: 4px solid var(--primary);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.menu-telecom { border-top-color: #1565c0; }
.menu-dispatch { border-top-color: #2e7d32; }
.menu-employment { border-top-color: #e65100; }
.menu-roumu { border-top-color: #6a1b9a; }

.menu-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.menu-card h2 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.menu-card > p {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.menu-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.menu-card li {
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
    padding-left: 18px;
    position: relative;
}

.menu-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 11px;
}

.menu-telecom li::before { color: #1565c0; }
.menu-dispatch li::before { color: #2e7d32; }
.menu-employment li::before { color: #e65100; }
.menu-roumu li::before { color: #6a1b9a; }

.menu-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.menu-telecom .menu-btn { background: #1565c0; }
.menu-dispatch .menu-btn { background: #2e7d32; }
.menu-employment .menu-btn { background: #e65100; }
.menu-roumu .menu-btn { background: #6a1b9a; }

/* ========================================
   当社の強み（トップページ）
   ======================================== */
.about {
    padding: 80px 0 60px;
    background: var(--bg);
}

.about h2 {
    text-align: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 30px;
}

.about-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-content h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-content > p {
    margin-bottom: 25px;
    line-height: 2;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg);
    border-radius: 8px;
}

.feature h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   関連事業所（トップページ）
   ======================================== */
.related {
    padding: 60px 0;
}

.related h2 {
    text-align: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    display: block;
    color: var(--text);
    transition: 0.3s;
}

a.related-card:hover {
    border-color: var(--primary);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.related-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--primary);
}

.related-card p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.related-card span {
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
}

/* ========================================
   お問い合わせセクション（トップページ）
   ======================================== */
.contact {
    padding: 60px 0;
    background: var(--primary);
    color: var(--white);
}

.contact h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 30px;
}

.contact-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    color: var(--text);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.contact-info {
    text-align: left;
    margin-bottom: 25px;
}

.contact-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 5px;
    text-align: center;
}

.contact-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-info strong {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: #333;
    color: var(--white);
    padding: 40px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.footer-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-info p {
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--white);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin: 0 12px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    font-size: 11px;
    opacity: 0.6;
    text-align: center;
}

/* ========================================
   ユーティリティ
   ======================================== */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 900px) {
    .main-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        position: relative;
    }

    .header-top {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-main {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-main .nav {
        justify-content: center;
    }

    .header-contact {
        text-align: center;
        margin-top: 10px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    header > .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 100;
    }

    header > .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list a {
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .main-menu {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links a {
        display: block;
        margin: 8px 0;
    }

    .logo-main {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .about-content {
        padding: 25px 20px;
    }

    .contact-box {
        padding: 30px 20px;
    }
}
