﻿/* General Styles (コントラスト強調ライトモード) */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333333;
    /* テキストの色を濃いグレーに */
    background-color: #f0f0f0;
    /* 本文背景を少し濃いめの明るいグレーに変更（ヘッダーと区別） */
}

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

header {
    background-color: #cccccc;
    /* ヘッダーの背景色を純粋な白に保ち、本文背景(#f0f0f0)とのコントラストを強調 */
    color: #333333;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* 影を少し強め、立体感を出す */
}

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

/* header h1 の既存スタイルは変更なし */
header h1 {
    margin: 0;
}

/* 新規追加: ヘッダーロゴ画像のスタイル */
.header-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

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

header nav ul li {
    margin-left: 2rem;
}

header nav a {
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

header nav a:hover {
    color: #0038c4;
    /* ホバー時の色をテーマカラー(#0038c4)に */
}

/* Hero Section */
.hero {
    background-color: #e8e8e8;
    /* Heroセクションを本文背景(#f0f0f0)よりさらに濃い明るいグレーにして、メリハリをつける */
    color: #333;
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* 会社のロゴを背景に大きく表示する擬似要素 */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('logo_background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    /* 透明度を少し上げ、背景ロゴの視認性を上げる */
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    /* オーバーレイを少し調整 */
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 3;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0038c4;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333333;
}

.btn {
    display: inline-block;
    background-color: #0038c4;
    color: #ffffff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #002c9b;
}

/* Section Styles (コントラスト強調) */
section {
    padding: 4rem 0;
}

section:nth-of-type(odd) {
    background-color: #ffffff;
    /* 奇数セクションの背景色を白にして、本文背景(#f0f0f0)とのストライプ効果を出す */
}

/* 偶数セクションはbodyの背景色 #f0f0f0 を継承し、コントラストを強調 */

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0038c4;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.content-wrapper p {
    max-width: 800px;
    margin-bottom: 1rem;
    color: #333333;
}

/* Service Grid (コントラスト強調) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: #ffffff;
    /* サービスアイテムの背景色を白に */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    /* 薄い境界線を追加して、背景との区別を強調 */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    /* 影をより立たせる */
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    /* 動く量を少し減らす */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* ホバー時の影をより強く */
}

.service-item h3 {
    color: #0038c4;
    font-size: 1.5rem;
    margin-top: 0;
}

.service-item p {
    color: #333333;
}

/* Footer (コントラスト強調) */
footer {
    background-color: #222222;
    /* フッターの背景色をより濃い色（ほぼ黒に近い濃いグレー）にして、本文との区別を明確に */
    color: #ffffff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    /* 上部に濃い影を追加 */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 1rem;
    }

    header nav ul {
        flex-direction: column;
        text-align: center;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* サービスリンクのスタイルは変更なし */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link .service-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-link:hover .service-item {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}