/* 基本設定 */
html {
    scroll-behavior: smooth; /* スムーズスクロールを有効にする */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3 {
    font-weight: 700; /* 太字 */
}

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

/* ヘッダー */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; /* ヘッダーを画面上部に固定 */
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
}

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

header .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

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

header nav ul li a {
    display: block;
    padding: 0 15px;
    text-decoration: none;
    color: #555;
    font-weight: 700;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #007bff;
}

/* メインコンテンツ */
main {
    padding-top: 60px; /* 固定ヘッダー分の余白 */
}

section {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

section:nth-child(even) {
    background-color: #f9f9f9; /* セクションごとに背景色を交互に変える */
}

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

/* セクションタイトルの下線 */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0;
}

/* ヒーローセクション */
#hero {
    position: relative; /* 子要素を配置する基準点にする */
    color: #fff;
    text-align: center;
    padding: 120px 0; /* 少し余白を広げる */
    background: url('img/top.jpg') center center/cover no-repeat; /* 背景画像を指定 */
    z-index: 0;
}

/* 背景画像の上に重ねるオーバーレイ */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 (0.5は透明度) */
    z-index: -1; /* テキストの背面に配置 */
}

/* テキストコンテンツがオーバーレイの上に表示されるようにする */
#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2em;
}

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

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

#about table th {
    background-color: #f2f2f2;
    width: 25%;
}

/* 企業理念 */
#mission {
    text-align: center;
}

#mission h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

#mission p {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* 事業内容 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列のグリッド */
    gap: 30px;
}

.service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px); /* 少し浮き上がる効果 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-item img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 50%; /* 画像を丸くする */
}

.service-item h3 {
    margin-bottom: 10px;
    color: #007bff;
}

/* 準備中のサービスアイテムのスタイル */
.service-item.coming-soon {
    position: relative; /* 文字を重ねるための基準点にする */
    filter: grayscale(100%); /* 全体をグレーアウトする */
    pointer-events: none; /* クリックなどの操作を無効化する */
}

/* 準備中の文字を重ねるための設定 */
.service-item.coming-soon::before {
    content: '準備中'; /* 表示する文字 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* 半透明の白い背景 */
    
    /* 文字を中央に配置するためのスタイル */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 文字のスタイル */
    color: #333;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 8px; /* 親要素の角丸に合わせる */
    z-index: 10; /* 最前面に表示 */
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* レスポンシブ対応 (スマートフォンなど) */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    header nav ul li a {
        padding: 10px 0;
        border-top: 1px solid #eee;
    }
    
    main {
        padding-top: 150px; /* レスポンシブ時の固定ヘッダー分の余白 */
    }

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

    #about table th, #about table td {
        display: block; /* テーブルを縦並びにする */
        width: 100%;
        box-sizing: border-box;
    }
    #about table th {
        text-align: center;
    }
    #about table td {
        border-top: none;
        margin-bottom: 10px;
    }

    .service-grid {
        grid-template-columns: 1fr; /* 1列にする */
    }
}
