@charset "UTF-8";

/* 基本設定 */
:root {
    --primary-color: #0044cc; /* 知的な青 */
    --accent-color: #00d4ff;  /* AI・未来を表すシアン */
    --text-color: #333;
    --bg-light: #f0f4f8;
    --white: #fff;
    --max-width: 1100px;
}

body {
    font-family: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* 画像の基本設定 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

/* ヘッダー */
header {
    background: var(--white);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 15px;
        gap: 15px;
        font-size: 0.9rem;
    }
}

/* メインビジュアル（トップ画像） */
.hero {
    position: relative;
    height: 60vh; /* 画面の60%の高さ */
    min-height: 400px;
    background-color: #000;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* 背景画像を暗くして文字を読みやすく */
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* 共通セクション */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* サービスカード（画像付き） */
.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.service-card {
    flex: 1 1 300px; /* 横並び・スマホで縦並び */
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 画像の比率を維持してトリミング */
}

.service-text {
    padding: 20px;
}

.service-text h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* 会社概要テーブル */
table.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table.company-table th, table.company-table td {
    border-bottom: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
table.company-table th {
    width: 30%;
    background: var(--bg-light);
}

/* お問い合わせフォーム */
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* フッター */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}