/* 全体の設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* 共通パーツ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0e5b52; /* 深緑色 */
    border-bottom: 2px solid #0e5b52;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ヘッダー */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* ロゴの調整（ここを修正しました） */
.logo {
    font-size: 1.5rem;
    color: #0e5b52;
    margin: 0;
    display: flex;       /* 横並びにする */
    align-items: center; /* 上下の中心を合わせる */
    gap: 10px;           /* 画像と文字の間隔 */
}

.logo img {
    height: 1.2em; /* 文字の高さに合わせる */
    width: auto;
}

/* ナビゲーションメニュー */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #0e5b52;
}

.btn-contact {
    background-color: #0e5b52;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* メインビジュアル */
.hero {
    background-color: #333; /* 画像が読み込まれるまでの背景色 */
    background-image: url('images/main.jpg'); /* 囲いを外しました！ */
    background-size: cover;     /* 画面いっぱいに広げる */
    background-position: center; /* 写真の真ん中を表示する */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    background-blend-mode: overlay; /* 写真を少し暗くして文字を読みやすくする魔法 */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

/* 企業理念 */
.philosophy-box {
    text-align: center;
}

.philosophy-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.philosophy-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
}

.philosophy-item h4 {
    color: #0e5b52;
    margin-top: 0;
}

.slogan {
    margin-top: 40px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #0e5b52;
}

/* 事業内容 */
.service-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    color: #0e5b52;
    font-size: 1.5rem;
    border-left: 5px solid #0e5b52;
    padding-left: 15px;
}

.service-img {
    flex: 1;
}

.service-img img {
    width: 100%;
    border-radius: 8px;
}

.img-placeholder {
    width: 100%;
    height: 250px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-weight: bold;
    border-radius: 8px;
}

.text-link {
    color: #0e5b52;
    font-weight: bold;
}

/* 施工事例 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.work-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.work-img-placeholder {
    height: 200px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-info {
    padding: 15px;
}

.work-info h4 {
    margin: 0 0 10px;
    color: #0e5b52;
}

/* 代表挨拶 */
.message-content {
    max-width: 800px;
    margin: 0 auto;
}

.signature {
    text-align: right;
    font-weight: bold;
    margin-top: 30px;
    font-size: 1.2rem;
}

/* 会社概要 */
.company-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-top: 1px solid #ddd;
}

.company-list dt, .company-list dd {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    margin: 0;
}

.company-list dt {
    background-color: #eee;
    font-weight: bold;
}

/* プライバシーポリシー */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.privacy-content h3 {
    font-size: 1.2rem;
    color: #0e5b52;
    margin-top: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.privacy-content p {
    margin-bottom: 20px;
}

.privacy-content ul {
    background-color: #f9f9f9;
    padding: 20px 20px 20px 40px;
    border-radius: 5px;
}

.privacy-content li {
    margin-bottom: 10px;
}

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

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    .service-card, .service-card.reverse {
        flex-direction: column;
    }

    .company-list {
        display: block;
    }

    .company-list dt {
        background-color: #f0f0f0;
        border-bottom: none;
    }
}
/* ビフォーアフター画像の横並び設定 */
.before-after-group {
    display: flex;       /* 横に並べる */
    gap: 10px;          /* 写真同士の隙間 */
}

.ba-item {
    width: 50%;         /* それぞれ半分の幅を使う */
    text-align: center; /* 文字を真ん中に */
}

.ba-item img {
    width: 100%;        /* 枠に合わせて写真を伸縮 */
    border-radius: 4px; /* 角を少し丸く */
    height: auto;
    border: 1px solid #ddd; /* 薄い枠線をつける */
}

.ba-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #0e5b52;     /* 深緑色 */
    margin-bottom: 5px;
}
/* 下層ページ用のヘッダーエリア */
.page-header {
    background-color: #0e5b52;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2rem;
    margin: 0 0 10px;
}

/* カテゴリタグ */
.category-tag {
    background-color: #eee;
    color: #333;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
}

/* 「詳細を見る」リンク */
.read-more {
    display: block;
    margin-top: 10px;
    color: #0e5b52;
    font-weight: bold;
    text-align: right;
}

.work-item a:hover .read-more {
    text-decoration: underline;
}

/* 画像を少し拡大するアニメーション（マウスを乗せた時） */
.work-item:hover {
    transform: translateY(-5px); /* 少し浮き上がる */
    transition: transform 0.3s;
}