/* 基本設定 & 変数 */
:root {
    /* ロゴから抽出したアクセントカラー */
    --color-primary: #8AB4D9;
    /* 水色 */
    --color-secondary: #5C3A21;
    /* 茶色 */
    --color-text: #333333;
    --color-bg: #FFFFFF;
    --color-bg-light: #F9F9F9;
    --color-gray: #777777;
    --font-main: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.bg-light {
    background-color: var(--color-bg-light);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 50px;
    position: relative;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 5px;
    font-weight: normal;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
}

/* ヘッダー */
.header {
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-img {
    height: 50px;
    /* バランスによって後で調整可能 */
    width: auto;
    transform: translateY(6px);
    /* ロゴを少し下に下げてナビゲーションと見栄えを揃える */
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.global-nav a {
    font-weight: bold;
    color: var(--color-secondary);
    transition: color 0.3s;
}

.global-nav a:hover {
    color: var(--color-primary);
}

/* メインビジュアル */
.hero {
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 画像の比率にある程度合わせる */
    min-height: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

/* 画像の上に半透明の黒いレイヤーを重ねて文字を見やすくする */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-title {
    font-size: 3.2rem;
    /* 2.2remから大きく */
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    /* 影も少し強めに */
}

.hero-subtitle {
    font-size: 1.5rem;
    /* 1.1remから大きく */
    color: #FFFFFF;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* 会社概要 */
.about-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
}

.about-table th,
.about-table td {
    padding: 20px;
    border-bottom: 1px solid #EEEEEE;
    text-align: left;
}

.about-table th {
    width: 30%;
    color: var(--color-secondary);
    font-weight: bold;
}

/* 事業内容 */
.business-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.business-card {
    background: var(--color-bg);
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    padding: 40px;
    width: calc(50% - 20px);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.business-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-title {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-text {
    text-align: left;
}

/* 実績紹介 */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* セットごとの間隔 */
}

.portfolio-pair {
    display: flex;
    gap: 40px;
    /* 事業内容のカードと同じ間隔 */
    justify-content: center;
}

.image-box {
    width: calc(50% - 20px);
    /* 事業内容のカードと同じ横幅 */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* 角をカードと揃える */
    aspect-ratio: 4 / 3;
    /* 写真が綺麗に揃うよう比率を固定 */
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--color-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    /* ベースの影もカードと揃える */
}

.image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    z-index: 10;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 枠に合わせて画像をトリミング */
    display: block;
    background-color: #E0E0E0;
    /* 画像が読み込まれるまでの背景色 */
}

.image-box.before .label {
    background-color: var(--color-secondary);
}

.image-box.after .label {
    background-color: var(--color-primary);
}

/* フッター */
.footer {
    background-color: var(--color-secondary);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* レスポンシブ対応 (スマホ向け) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .business-grid,
    .portfolio-pair {
        flex-direction: column;
    }

    .business-card,
    .image-box {
        width: 100%;
    }

    .about-table th,
    .about-table td {
        display: block;
        width: 100%;
        border-bottom: none;
        padding: 10px 0;
    }

    .about-table tr {
        border-bottom: 1px solid #EEE;
        display: block;
        padding: 10px 0;
    }

    .about-table th {
        padding-bottom: 0;
    }
}