/* TechConsult株式会社 - コーポレートサイト CSS */

/* ============================================
   変数定義
   ============================================ */
:root {
    --primary-blue: #0066CC;
    --primary-blue-dark: #004C99;
    --primary-blue-light: #3385DB;
    --secondary-blue: #F0F7FF;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E5E5E5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================
   基本スタイル
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", 
                 "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
}

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

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

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

/* ============================================
   ヘッダー
   ============================================ */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* モバイルメニューボタン */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 5px;
}

/* ============================================
   ヒーローセクション
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    padding: 180px 0 120px;
    margin-top: 80px;
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    margin-left: 20px;
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-blue);
}

/* ============================================
   セクション共通スタイル
   ============================================ */
.section {
    padding: 100px 0;
}

.section-gray {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-gray);
}

/* ============================================
   サービスカード
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ============================================
   特徴セクション
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
}

.feature-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ============================================
   CTAセクション
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ============================================
   フッター
   ============================================ */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ============================================
   会社概要ページ
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    padding: 140px 0 80px;
    margin-top: 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.company-info-table {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.company-info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.company-info-table tr:last-child {
    border-bottom: none;
}

.company-info-table th,
.company-info-table td {
    padding: 24px;
    text-align: left;
}

.company-info-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    width: 200px;
    color: var(--text-dark);
}

.company-info-table td {
    color: var(--text-gray);
}

/* ============================================
   お問い合わせフォーム
   ============================================ */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group.required label::after {
    content: " *";
    color: #E53E3E;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 16px 60px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   レスポンシブデザイン
   ============================================ */
@media (max-width: 768px) {
    /* ナビゲーション */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: block;
    }

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

    .nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: none;
    }

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

    /* ヒーロー */
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 16px;
    }

    /* セクション */
    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 16px;
    }

    /* サービスカード */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* ページヘッダー */
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    /* テーブル */
    .company-info-table th {
        width: 120px;
        font-size: 14px;
    }

    .company-info-table th,
    .company-info-table td {
        padding: 16px;
    }

    /* フォーム */
    .contact-form {
        padding: 30px 20px;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .company-info-table {
        font-size: 14px;
    }

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

    .company-info-table th {
        background-color: var(--secondary-blue);
        color: var(--primary-blue);
        font-weight: 700;
        padding: 12px 16px;
    }

    .company-info-table td {
        padding: 16px;
        border-bottom: 2px solid var(--border-color);
    }
}
