/* =============================================
   Pattern 35: Construction (建設・無骨なレイアウト)
   BUILDCORE
   ★ 独自構成: ブラック×イエロー, ブロック状, Masonry(レンガ状)ギャラリー, 斜めストライプ装飾
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Zen+Kaku+Gothic+New:wght@500;700;900&display=swap');

:root {
    --c-bg: #FFFFFF;
    --c-primary: #FFCC00;
    /* 建機・警戒色のイエロー */
    --c-black: #1A1A1A;
    /* 真っ黒に近い墨色 */
    --c-gray: #4D4D4D;
    /* ベーステキスト */
    --c-light: #F5F5F5;

    --f-en: 'Roboto Condensed', sans-serif;
    --f-ja: 'Zen Kaku Gothic New', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--f-ja);
    color: var(--c-gray);
    background: var(--c-bg);
    line-height: 1.8;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #FFFFFF !important;
}

.text-black {
    color: var(--c-black) !important;
}

.mt-4 {
    margin-top: 30px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}

/* ===== タイポグラフィ ===== */
h2,
h3,
h4 {
    font-family: var(--f-ja);
    font-weight: 900;
    color: var(--c-black);
    line-height: 1.3;
}

.section-subtitle {
    display: block;
    font-family: var(--f-en);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--c-primary);
    margin-bottom: 10px;
    letter-spacing: 0.15em;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 25px 40px;
    transition: all 0.3s ease;
    background: transparent;
}

.header.is-scrolled {
    background: var(--c-black);
    padding: 15px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--f-en);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--c-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav a {
    font-family: var(--f-en);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
    letter-spacing: 0.1em;
}

.nav a:hover {
    color: var(--c-primary);
}

.btn-nav {
    background: var(--c-primary);
    color: var(--c-black) !important;
    padding: 10px 25px;
    clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 0% 100%);
    transition: all 0.3s;
}

.btn-nav:hover {
    background: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin-bottom: 6px;
    transition: 0.3s;
}

/* ===== ボタン ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--c-primary);
    color: var(--c-black);
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-black);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1;
}

.btn-primary:hover::after {
    transform: translateX(0);
}

.btn-primary:hover {
    color: var(--c-primary);
}

.btn-primary span,
.btn-primary .arrow {
    position: relative;
    z-index: 2;
}

.btn-black {
    display: inline-block;
    background: var(--c-black);
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.3s;
}

.btn-black:hover {
    background: #fff;
    color: var(--c-black);
}

.btn-black-outline {
    display: inline-block;
    border: 3px solid var(--c-black);
    color: var(--c-black);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.3s;
}

.btn-black-outline:hover {
    background: var(--c-black);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    border: 3px solid var(--c-black);
    color: var(--c-black);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-black);
}

/* ===== セクションベース ===== */
.section {
    padding: 120px 0;
    position: relative;
}

.section--black {
    background: var(--c-black);
}

.section--black h2,
.section--black p,
.section--black h3,
.section--black .service-number {
    color: #fff;
}

.section--yellow {
    background: var(--c-primary);
}

/* ===== ヒーロー ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--c-black);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: contrast(1.2) grayscale(0.5);
}

.hero-stripe {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: repeating-linear-gradient(45deg, var(--c-primary), var(--c-primary) 20px, transparent 20px, transparent 40px);
    opacity: 0.8;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 80px;
}

.hero-text-box {
    background: var(--c-black);
    padding: 60px;
    max-width: 650px;
    border-left: 10px solid var(--c-primary);
    box-shadow: 20px 20px 0 rgba(255, 204, 0, 0.1);
}

.hero-en {
    font-family: var(--f-en);
    font-size: 1.4rem;
    color: var(--c-primary);
    display: block;
    margin-bottom: 15px;
    letter-spacing: 0.2em;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 1.1rem;
    color: #ccc;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 2px solid var(--c-light);
    padding-top: 30px;
}

.stat-box {
    text-align: left;
}

.stat-num {
    display: block;
    font-family: var(--f-en);
    font-size: 3rem;
    font-weight: 700;
    color: var(--c-black);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-num span {
    color: var(--c-primary);
    font-size: 2rem;
}

.stat-label {
    font-family: var(--f-en);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--c-gray);
    text-transform: uppercase;
}

.about-image {
    position: relative;
    height: 500px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: grayscale(0.2);
}

.img-accent {
    position: absolute;
    top: 30px;
    right: -30px;
    bottom: -30px;
    left: 30px;
    background: var(--c-primary);
    z-index: 1;
}

/* ===== Services ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-number {
    color: var(--c-black);
}

.service-number {
    font-family: var(--f-en);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: color 0.3s;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-card p {
    font-size: 0.95rem;
    color: #aaa;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

/* ===== Projects (Masonry風ギャラリー) ===== */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.6s, opacity 0.6s;
}

.masonry-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s;
}

.masonry-item:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}

.masonry-item:hover .masonry-overlay {
    transform: translateY(0);
    opacity: 1;
}

.masonry-overlay h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.masonry-overlay span {
    display: inline-block;
    padding: 5px 10px;
    background: var(--c-primary);
    color: var(--c-black);
    font-family: var(--f-en);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--c-light);
    border-left: 5px solid var(--c-primary);
    padding: 25px 30px;
    margin-bottom: 20px;
}

.faq-q {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--c-black);
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.faq-q::before {
    content: 'Q.';
    font-family: var(--f-en);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-primary);
    font-size: 1.2rem;
}

.faq-a {
    color: var(--c-gray);
    position: relative;
    padding-left: 30px;
}

.faq-a::before {
    content: 'A.';
    font-family: var(--f-en);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-gray);
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.5;
}

/* ===== CTA ===== */
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ストライプの装飾 */
.stripe-pattern {
    position: absolute;
    width: 150px;
    height: 150px;
    background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 10px, transparent 10px, transparent 20px);
    pointer-events: none;
}

.top-left {
    top: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}

/* ===== フッター ===== */
.footer {
    background: var(--c-black);
    padding: 80px 0 30px;
    border-top: 5px solid var(--c-primary);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.f-col-logo p {
    color: #aaa;
    font-size: 0.95rem;
}

.f-col-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.f-col-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.f-col-links a:hover {
    color: var(--c-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    font-family: var(--f-en);
}

/* ===== アニメーション ===== */
.anim {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.anim.anim-up {
    transform: translateY(40px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0);
}

.anim-d1 {
    transition-delay: 0.15s;
}

.anim-d2 {
    transition-delay: 0.3s;
}

.anim-hero {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.anim-hero.is-visible {
    opacity: 1;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .container {
        padding: 0 25px;
    }

    .hero-text-box {
        padding: 40px 30px;
        border-left-width: 5px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-top: 40px;
        height: 350px;
    }

    .img-accent {
        top: 15px;
        right: -15px;
        bottom: -15px;
        left: 15px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .masonry-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .masonry-item.large,
    .masonry-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }

    .f-col-links ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}