/* 背景・文字 */
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: 80px;
    height: 1px;
    background: #fff;
    vertical-align: middle;
    margin: 0 1rem;
    opacity: 0.5;
}

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

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

.demolition-concept {
    background-color: #10091a;
    padding: 3rem 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: 5rem auto;
    padding: 0 1rem;
}

.works h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #8fb8fe;
    position: relative;
}
.works-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    box-sizing: border-box;
    padding-bottom: 2rem;
    border-bottom: 1px solid #fff;
}

.works-item img {
    width: 50%;
    max-width: 360px;
}

.works-item .text {
    flex: 1;
}

.works-item h4 {
    font-size: 1.5rem;
    color: #8fb8fe;
    margin-bottom: 0.5rem;
}

.works-item p {
    margin-bottom: 1rem;
    color: #ccc;
}

.works-item dl {
    display: block;
    color: #fff;
    width: 100%;
}

.works-item dt {
    display: block;
    font-weight: bold;
    color: #8fb8fe;
    margin-top: 1rem;
}

.works-item dd {
    display: block;
    margin: 0 0 0.5rem 1em;
}

/* フッター・ページトップ */
.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 {
    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: 2.5rem;
        margin: 0 0.5rem;
    }

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

    .demolition-concept h2 {
        font-size: 2rem;
    }

    .demolition-concept .catch {
        font-size: 1.2rem;
    }
    .hero-image {
        height: 30vh;
    }
    .hero-title h1 {
        font-size: 2rem;
    }
    .works-item {
        flex-direction: column;
        align-items: center;
    }
    .works-item img {
        width: 100%;
        max-width: 100%;
    }
    .works-item .text {
        text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding:0 1rem;
    }
    .works-item dl {
        flex-direction: column;
        align-items: center;
    }
    .works-item dt, .works-item dd {
        width: auto;
        text-align: left;
    }
}
