/* ベースとタイポグラフィの改善 */
body {
    font-family: 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    /* 固定ヘッダーの高さ分、コンテンツ全体を下にずらす */
    padding-top: 80px; 
}

/* 全体コンテナ - 余白を増やし、中央寄せ */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0;
}

/* キーカラー */
:root {
    --primary-color: #004a99;
    --accent-color: #d9534f;
    --light-gray: #f9f9f9;
}

/* --- ヘッダー関連 --- */
header {
    /* 固定 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* グレーで透明度80% */
    background-color: rgba(51, 51, 51, 0.8); 
    
    color: white;
    padding: 15px 5%; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    
    /* ロゴとメニューを左右に配置 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* ロゴ/会社名 */
header h1 {
    margin: 0;
    font-size: 1.6em;
    padding-left: 0;
    letter-spacing: 1px;
}

/* ナビゲーション */
nav {
    text-align: right;
    padding-right: 0;
    margin-top: 0;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffcc00;
}
/* --- */

/* セクションの見出し */
h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-top: 50px;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
}

h3 {
    color: var(--primary-color);
    margin-top: 20px;
    font-weight: 600;
}

/* ミッションセクション */
.mission {
    text-align: center;
    padding: 60px 0;
    background-color: var(--light-gray);
    margin-bottom: 40px;
    border-radius: 8px;
}

.mission h2 {
    border-bottom: none;
    margin-top: 0;
}

.mission p {
    max-width: 700px;
    margin: 10px auto;
    font-size: 1.1em;
}

.mission p:first-of-type {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* サービスアイテム */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.service-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-item h3 {
    margin-top: 0;
    color: var(--accent-color);
}

/* 会社概要テーブル */
.about-us table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

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

.about-us th {
    background-color: var(--light-gray);
    width: 35%;
    font-weight: 500;
    color: var(--primary-color);
}

/* コンタクトセクション */
.contact {
    text-align: center;
    padding: 40px 0;
}

.contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.contact a:hover {
    text-decoration: underline;
}

/* フォームのスタイル */
.contact-form-area {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.contact-form-area input[type="text"],
.contact-form-area input[type="email"],
.contact-form-area textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}

.contact-form-area input[type="text"]:focus,
.contact-form-area input[type="email"]:focus,
.contact-form-area textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form-area textarea {
    resize: vertical;
}

.contact-form-area button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
}

.contact-form-area button[type="submit"]:hover {
    background-color: #c43f3b;
}

.contact-form-area p {
    margin: 0 0 15px 0;
}

/* フッター */
footer {
    background: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    header {
        padding: 15px 3%;
    }

    /* ヘッダーのレイアウトをモバイル向けに変更 */
    header {
        flex-direction: column; /* 縦に並べる */
        text-align: center;
    }
    
    nav {
        margin-top: 10px;
        text-align: center;
    }

    nav a {
        display: inline-block; /* 横並びのまま少しスペースをあける */
        margin: 5px 10px;
    }

    h2 {
        font-size: 1.8em;
    }

    .about-us th, .about-us td {
        display: block; 
        width: 100%;
    }

    .about-us th {
        background-color: transparent;
        border-bottom: none;
        padding-bottom: 0;
        font-weight: bold;
        color: #333;
    }
}