/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カラー変数 */
:root {
    --navy: #1a2e4c; /* メインのネイビーカラー */
    --navy-light: #2a4366; /* 少し明るいネイビー（ホバー時など） */
    --navy-dark: #0f1c2e; /* 少し暗いネイビー（強調時） */
    --navy-transparent: rgba(26, 46, 76, 0.9); /* 透過ネイビー */
    --accent: #3e7bba; /* アクセントブルー */ 
    --text-dark: #333; /* 主要テキスト */
    --text-light: #fff; /* 明るい背景上のテキスト */
    --bg-light: #f8f9fa; /* 背景色（明るい） */
    --border-light: #eee; /* 境界線（明るい） */
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ヘッダー */
.hero {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
}

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* より細いフォントウェイト */
    letter-spacing: 0.05em; /* 文字間隔を少し広げる */
}

/* オーバーレイを削除 */
/* .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 46, 76, 0.2), rgba(26, 46, 76, 0.4));
    pointer-events: none;
} */

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 200; /* さらに細いフォントウェイト */
    text-transform: uppercase; /* 大文字表示（英語部分の場合） */
    letter-spacing: 0.08em; /* 見出しの文字間隔をさらに広げる */
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 2rem);
    color: var(--text-light);
    font-weight: 300; /* 細いフォントウェイト */
    letter-spacing: 0.1em; /* 英語表記の文字間隔を広げる */
}

/* 会社名の改行制御用 - 基本設定 */
.company-type,
.company-name {
    display: inline-block;
    white-space: nowrap;
}

/* メディアクエリを使用してタブレット・PC表示で一行に */
@media (min-width: 769px) {
    /* PC・タブレット向け設定 */
    .hero-content h1 {
        white-space: nowrap; /* 改行を防止 */
        font-size: clamp(1.8rem, 4vw, 3.5rem); /* フォントサイズを少し調整 */
    }
    
    .company-type,
    .company-name {
        display: inline;
        margin-right: 0.1em; /* 間隔を調整 */
    }
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--navy); /* 見出しカラーをネイビーに */
    position: relative;
    padding-bottom: 0.5rem;
}

/* 通常のテキストは既存のダークグレーを維持 */
p {
    color: var(--text-dark);
}

/* 会社概要テーブルのデータセル（tdのテキスト）をネイビーに */
.company-table td {
    color: var(--navy);
}

/* サービスカードのテキストをネイビーに */
.service-card p {
    color: var(--navy-light); /* 少し明るいネイビー */
}

/* 見出しの下に装飾線を追加 */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* 会社概要セクション */
.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* 会社概要テーブル */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.company-table th {
    background-color: var(--navy); /* ヘッダー背景をネイビーに */
    width: 30%;
    font-weight: 600;
    color: var(--text-light); /* テキストを白に */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 最後の行の下線を削除 */
.company-table tr:last-child td {
    border-bottom: none;
}

/* 最初のセルの左パディング */
.company-table th:first-child,
.company-table td:first-child {
    padding-left: 1.5rem;
}

/* 最後のセルの右パディング */
.company-table th:last-child,
.company-table td:last-child {
    padding-right: 1.5rem;
}

/* サービスセクション */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 3px solid var(--navy); /* ネイビーのアクセントボーダー */
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--navy); /* 見出しカラーをネイビーに */
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* フッター */
footer {
    background: var(--navy); /* フッター背景をネイビーに */
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* より細いフォントウェイト */
    letter-spacing: 0.05em; /* 文字間隔を少し広げる */
}

footer p {
    color: var(--text-light); /* フッターの段落は白色に */
    font-weight: 300;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    /* スマホサイズでヒーローの高さを調整 */
    .hero {
        height: 50vh;
    }

    /* スマホサイズで会社名を改行 */
    .company-type,
    .company-name {
        display: block; /* スマホでは改行あり */
        line-height: 1.2; /* 行間を少し詰める */
    }

    .hero-content h1 {
        margin-bottom: 0.5rem; /* 改行後の下のマージンを調整 */
    }

    .service-grid,
    .company-table {
        grid-template-columns: 1fr;
    }

    .company-table th,
    .company-table td {
        padding: 0.75rem 1rem;
    }

    .company-table th {
        width: 40%;
    }

    .service-card {
        padding: 1rem;
    }
}

/* タブレットサイズでの調整 */
@media (min-width: 769px) and (max-width: 1289px) { /* 768px以下は既存のメディアクエリで対応 */
    .hero-content h1 {
        /* この範囲でフォントサイズが大きくなりすぎないようにvw値を調整 */
        font-size: clamp(2rem, 4.5vw, 4rem);
    }
} 