/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: #333333; /* 濃いグレー */
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ヘッダー */
header {
    background: #E0F2F7; /* さらに淡いブルー */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px; /* ロゴと会社名の間にスペース */
}

header .logo span {
    font-size: 1.5em; /* 会社名のフォントサイズ */
    font-weight: bold;
    color: #333333;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav a {
    text-decoration: none;
    color: #333333; /* ナビゲーションリンクの色を濃いグレーに */
    font-weight: bold;
}

/* メインビジュアル */
.hero {
    background-image: url('images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    color: #fff; /* テキストの色を白に変更して、背景画像とのコントラストを確保 */
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px; /* ヘッダーの高さ分 */
    position: relative; /* オーバーレイのために必要 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒いオーバーレイ */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2; /* テキストをオーバーレイの上に表示 */
}

.hero h1 {
    font-size: 2.5em;
    margin: 0 0 10px;
}

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

section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

/* 事業内容 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: #f9f9f9;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 控えめなシャドウ */
    transition: transform 0.3s ease-in-out; /* ホバーエフェクト用 */
}

.service-item:hover {
    transform: translateY(-5px); /* ホバーで少し浮き上がる */
}

.service-item img {
    width: 80px; /* アイコンのサイズを調整 */
    height: 80px;
    margin-bottom: 20px; /* アイコンとテキストの間にスペース */
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1em;
    line-height: 1.6;
}

/* 会社概要 */
.about table {
    width: 100%;
    border-collapse: collapse;
}

.about th, .about td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

.about th {
    background-color: #f2f2f2;
    width: 30%;
}

/* お問い合わせ */
.contact {
    text-align: center;
}

.contact .btn {
    display: inline-block;
    background-color: #003366; /* メインカラー */
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* トランジション追加 */
}

.contact .btn:hover {
    background-color: #0055aa; /* ホバー時の色 */
    transform: translateY(-2px); /* ホバーで少し浮き上がる */
}

/* フッター */
footer {
    background: #E0F2F7; /* さらに淡いブルー */
    color: #333333; /* テキストの色を濃いグレーに */
    text-align: center;
    padding: 20px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 15px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2em;
    }
}
