/* ------------------------------
 背景・文字色 トップページと統一
------------------------------ */
body {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
    color: #fff;
    background: linear-gradient(-45deg, #000, #111, #222, #000);
    background-size: 800% 800%;
    animation: gradientBG 25s ease infinite;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ------------------------------
 ヒーロー画像（上部）
------------------------------ */
.hero-image {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.5;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero-title h1 {
    font-size: 3rem;
    letter-spacing: 0.2em;
    margin: 0;
    position: relative;
    display: inline-block;
}

.hero-title h1::before,
.hero-title h1::after {
    content: "";
    display: inline-block;
    width: 5rem;
    height: 0.1rem;
    background: #fff;
    vertical-align: middle;
    margin: 0 1rem;
    opacity: 0.5;
}

.hero-title .sub-en {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

/* ------------------------------
 コンセプトエリア
------------------------------ */
.section {
    padding: 2rem 0;
    margin: 0 auto;
}

.demolition-concept {
    background-color: #252f16;
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.demolition-concept .catch {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: #fff;
    line-height: 1.6;
}

.demolition-concept .concept-text {
    text-align: left;
    font-size: 1rem;
    line-height: 2;
    color: #fff;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.demolition-concept .concept-text p {
    margin-bottom: 1.5rem;
}

/* ------------------------------
 太陽光発電 一覧レイアウト（横並び）
------------------------------ */
.works {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #ffffff;
}

.works h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #105337;
    text-align: center;
}

.plant-block {
    margin-bottom: 4rem;
    background-color: rgba(255,255,255,0.05);
    padding: 1rem;
}

.plant-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000;
    border-left: 5px solid #195f3f;
    padding-left: 0.8rem;
}

.plant-flex {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.plant-img {
    flex: 1 1 40%;
}

.plant-img img {
    width: 100%;
    height: auto;
    display: block;
}

.plant-info {
    flex: 1 1 60%;
}

.plant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.plant-table th, .plant-table td {
    border: 1px solid #444;
    padding: 0.6rem 1rem;
}

.plant-table th {
    width: 50%;
   background-color: #98bba1;
    color: #fff;
    text-align: left;
}

.plant-table td {
    background-color: rgba(255,255,255,0.05);
    color: #000;
    text-align: left;
}

/* ------------------------------
 フッター・ページトップ
------------------------------ */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #aaa;
    background: rgba(0,0,0,0.7);
}

.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-decoration: none;
    background: #fff;
    color: #000;
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 50px;
    opacity: 0.7;
    transition: 0.3s;
}

.page-top.show {
    opacity: 1;
}

.page-top:hover {
    opacity: 1;
}

/* ------------------------------
 出現アニメーション（fadein / visible）
------------------------------ */
.fadein {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.fadein.visible {
    opacity: 1;
    transform: translateY(0);
}

.fadein.delay1 { transition-delay: 0.3s; }
.fadein.delay2 { transition-delay: 0.9s; }
.fadein.delay3 { transition-delay: 1.5s; }

/* ------------------------------
 スマホ対応（縦並び）
------------------------------ */
@media screen and (max-width: 768px) {
    .hero-image {
        height: 30vh;
    }

    .hero-title h1 {
        font-size: 1.8rem;
    }

    .hero-title h1::before,
    .hero-title h1::after {
        width: 1rem;
        margin: 0 0.5rem;
    }

    .hero-title .sub-en {
        font-size: 0.8rem;
    }

    .demolition-concept .catch {
        font-size: 1.2rem;
    }

    .works h2 {
        font-size: 1.6rem;
    }

    .plant-block h3 {
        font-size: 1rem;
    }
    .plant-flex {
        flex-direction: column;
    }

    .plant-table {
        width: 100%;
        table-layout: fixed;
    }

    .plant-table th, .plant-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
        width: auto;
        display: table-cell;
    }

    .plant-table th {
        width: 50%;
        background-color: #98bba1;
        font-weight: bold;
    }

    .plant-table td {
        width: 50%;
        background-color: rgba(255,255,255,0.05);
    }
}
