/* ========================================
   ページヒーローセクション
======================================== */

/* トップページのpadding-topを無効化 */
.main-content {
    padding-top: 56px !important;
}

@media (min-width: 1080px) {
    .main-content {
        padding-top: 80px !important;
    }

}

.page-hero {
    width: 100%;
    height: clamp(280px, 50vw, 400px);
    position: relative;
    background: url('../images/construction-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-hero__content {
    width: 100%;
    height: 100%;
    max-width: var(--container-width);
    padding: 0 var(--padding-sp);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero__title {
    font-family: var(--font-ja);
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: var(--heading-letter-spacing);
    line-height: var(--heading-line-height);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1080px) {
    .page-hero {
        height: auto;
        aspect-ratio: 16 / 6;
        min-height: 320px;
        max-height: 560px;
    }
    
    .page-hero__content {
        padding: 0 var(--padding-pc);
    }
}


/* ========================================
   工事内容セクション
======================================== */
.construction-details-section {
    background-color: var(--color-white);
    padding: var(--section-padding-sp) var(--section-padding-sp);
    z-index: 2;
}

.construction-details-section__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.construction-details-section .section-header {
    margin-bottom: 2rem;
}

.construction-details-section__description {
    font-family: var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    text-align: left;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

/* 工事対応円グラフ */
.construction-details-section__chart {
    width: 100%;
    max-width: 343px;
    margin: 0 auto clamp(3rem, 4vw, 4rem);
}

.construction-circle-image {
    width: 100%;
    height: auto;
    display: block;
}


.construction-circle-svg .construction-segment:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    transform-origin: center;
}

.construction-circle-svg .construction-segment.active {
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}


/* 工事種類タブ/アコーディオン */
.construction-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* SPサイズ：アコーディオン形式 */
.construction-type-item {
    background: #f5f5f5;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.construction-type-tab {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    cursor: pointer;
    border: none;
}

.construction-type-tab:hover {
    background-color: rgba(106, 76, 147, 0.05);
}

/* 1番目の要素がアクティブなとき */
.construction-type-item.active:first-child  {
    background-color: #5a3c7a;
}
/* 2番目の要素がアクティブなとき */
.construction-type-item.active:nth-child(2) {
    background-color: #6b4d89;
}
/* 3番目の要素がアクティブなとき */
.construction-type-item.active:nth-child(3) {
    background-color: var(--color-primary);
}
/* 4番目の要素がアクティブなとき */
.construction-type-item.active:nth-child(4) {
    background-color: #8d6ea3;
}
/* 5番目の要素がアクティブなとき */
.construction-type-item.active:nth-child(5) {
    background-color: #9e7fb2;
}
/* 6番目の要素がアクティブなとき */
.construction-type-item.active:nth-child(6) {
    background-color: #af90c1;
}
/* 7番目の要素がアクティブなとき */
.construction-type-item.active:nth-child(7) {
    background-color: #b89acd;
}

.construction-type-tab__title {
    font-family: var(--font-ja);
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    text-align: left;
}

.construction-type-item.active .construction-type-tab__title {
    color: var(--color-white);
}

.construction-type-tab__icon {
    font-size: 1.5rem;
    color: var(--color-text);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.construction-type-item.active .construction-type-tab__icon {
    color: var(--color-white);
}

/* 詳細コンテンツ（SPサイズ：アコーディオン） */
.construction-type-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    /* border-top: 1px solid var(--color-text); */
}

.construction-type-item.active .construction-type-content {
    max-height: 2000px;
    opacity: 1;
}

.construction-type-content__inner {
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

.construction-type-content__text {
    font-family: var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
}

.construction-type-content__image-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    background-color: #A3A3A3;
    overflow: hidden;
}

.construction-type-content__image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* PC用詳細表示エリア（非表示） */
.construction-type-detail-pc {
    display: none;
}

@media (min-width: 768px) {
    .construction-details-section {
        padding: var(--section-padding-pc) ;
        margin-top: 64px;
    }
    
    .construction-details-section__description {
        line-height: var(--body-line-height-pc);
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .construction-details-section__chart {
        max-width: 640px;
    }
    

    
    .construction-type-content__text {
        line-height: var(--body-line-height-pc);
    }
    
    /* タブレット用：グリッド表示切替 */
    .construction-types {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(1.5rem, 2.5vw, 2rem);
    }
    
    .construction-type-item {
        /* border: 1px solid var(--color-text); */
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* PC時：.construction-type-item自体の背景色を無効化 */
    .construction-type-item.active:first-child,
    .construction-type-item.active:nth-child(2),
    .construction-type-item.active:nth-child(3),
    .construction-type-item.active:nth-child(4),
    .construction-type-item.active:nth-child(5),
    .construction-type-item.active:nth-child(6),
    .construction-type-item.active:nth-child(7) {
        background-color: transparent;
    }
    
    .construction-type-tab {
        width: 100%;
        height: 100%;
        background: #f5f5f5;
        transition: background-color 0.3s ease;
    }
    
    .construction-type-tab:hover {
        background-color: rgba(106, 76, 147, 0.1);
    }
    
    /* PC時：アクティブなタブの背景色 */
    .construction-type-item.active:first-child .construction-type-tab {
        background-color: #5a3c7a;
    }
    .construction-type-item.active:nth-child(2) .construction-type-tab {
        background-color: #6b4d89;
    }
    .construction-type-item.active:nth-child(3) .construction-type-tab {
        background-color: var(--color-primary);
    }
    .construction-type-item.active:nth-child(4) .construction-type-tab {
        background-color: #8d6ea3;
    }
    .construction-type-item.active:nth-child(5) .construction-type-tab {
        background-color: #9e7fb2;
    }
    .construction-type-item.active:nth-child(6) .construction-type-tab {
        background-color: #af90c1;
    }
    .construction-type-item.active:nth-child(7) .construction-type-tab {
        background-color: #b89acd;
    }
    
    /* アクティブなタブのホバーは明るくする */
    .construction-type-item.active:first-child .construction-type-tab:hover {
        background-color: #6b4d89;
    }
    .construction-type-item.active:nth-child(2) .construction-type-tab:hover {
        background-color: var(--color-primary);
    }
    .construction-type-item.active:nth-child(3) .construction-type-tab:hover {
        background-color: #8d6ea3;
    }
    .construction-type-item.active:nth-child(4) .construction-type-tab:hover {
        background-color: #9e7fb2;
    }
    .construction-type-item.active:nth-child(5) .construction-type-tab:hover {
        background-color: #af90c1;
    }
    .construction-type-item.active:nth-child(6) .construction-type-tab:hover {
        background-color: #b89acd;
    }
    .construction-type-item.active:nth-child(7) .construction-type-tab:hover {
        background-color: #c0a1d0;
    }
    
    /* タブレット用：詳細コンテンツを非表示 */
    .construction-type-content {
        display: none !important;
    }
    
    /* タブレット用詳細表示エリア */
    .construction-type-detail-pc {
        display: none;
        grid-column: 1 / -1;
        /* border: 1px solid var(--color-text); */
        margin-top: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.5s ease 0.1s, 
                    transform 0.5s ease 0.1s,
                    margin-top 0.6s ease;
    }
    
    .construction-type-detail-pc.active {
        display: block;
        max-height: 2000px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 1rem;
    }
    
    .construction-type-detail-pc .construction-type-content__inner {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .construction-type-detail-pc .construction-type-content__text {
        flex: 0 0 auto;
        width: 334px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        letter-spacing: var(--body-letter-spacing);
        line-height: var(--body-line-height-pc);
        
    }
    
    .construction-type-detail-pc .construction-type-content__text::before {
        font-family: var(--font-ja);
        font-size: 2rem;
        font-weight: 500;
        color: var(--color-text);
        text-align: center;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
    
    .construction-type-detail-pc[data-active-type="civil"] .construction-type-content__text::before {
        content: '土木工事';
    }
    
    .construction-type-detail-pc[data-active-type="exterior"] .construction-type-content__text::before {
        content: '外構工事';
    }
    
    .construction-type-detail-pc[data-active-type="demolition"] .construction-type-content__text::before {
        content: '解体工事';
    }
    
    .construction-type-detail-pc[data-active-type="ironwork"] .construction-type-content__text::before {
        content: '鍛冶工事';
    }
    
    .construction-type-detail-pc[data-active-type="scaffolding"] .construction-type-content__text::before {
        content: '鳶工事';
    }
    
    .construction-type-detail-pc[data-active-type="interior"] .construction-type-content__text::before {
        content: '内装工事';
    }
    
    .construction-type-detail-pc[data-active-type="plant"] .construction-type-content__text::before {
        content: '各種プラント工事';
    }
    
    .construction-type-detail-pc .construction-type-content__image-placeholder {
        flex: 1;
        aspect-ratio: 16 / 10;
        height: auto;
        min-height: 0;
    }
}

/* ========================================
   GENKIの柱セクション
======================================== */
.strengths-section {
    background-color: var(--color-white);
    padding: var(--section-padding-sp);
    
}

.strengths-section__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.strengths-section .section-header {
    margin-bottom: 2rem;
}

.strengths-section__description {
    font-family: var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    text-align: left;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.strengths-section__content {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 4rem);
}

/* 強み項目 */
.strength-feature {
    display: flex;
    flex-direction: column; /* SPサイズ：テキスト上、画像下 */
    gap: 1.5rem;
    background: #f9f9f9;
    padding: 1rem;
    position: relative;
}

/* テキストブロック */
.strength-feature__text-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

/* STRENGTHラベル */
.strength-feature__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 柱デザイン（上下に短い横線） */
.strength-feature__pillar {
    position: relative;
    width: 3px;
    height: clamp(2rem, 5vw, 2.5rem);
    background-color: var(--color-text);
    display: block;
}

.strength-feature__pillar::before,
.strength-feature__pillar::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    background-color: var(--color-text);
}

.strength-feature__pillar::before {
    top: 0;
}

.strength-feature__pillar::after {
    bottom: 0;
}

.strength-feature__label-text {
    font-family: var(--font-sub);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    line-height: 1;
}

.strength-feature__number {
    font-family: var(--font-sub);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
    -webkit-text-stroke: 1px #7c5d94;
    -webkit-text-fill-color: transparent;
    text-stroke: 1px #7c5d94;
    text-fill-color: transparent;
}

.strength-feature__title {
    font-family: var(--font-ja);
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.strength-feature__description {
    font-family: var(--font-ja);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
}

/* 画像ブロック */
.strength-feature__image-block {
    width: 100%;
    z-index: 2;
}

.strength-feature__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* 斜め装飾 */
.strength-feature__accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 40%;
    background-color: var(--color-primary);
    clip-path: polygon(100% 0, 100% 100%, 50% 100%);
    z-index: 1;
}

.strength-feature__accent-reverse {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 40%;
    background-color: var(--color-primary);
    clip-path: polygon(100% 0, 100% 100%, 50% 100%);
    z-index: 1;
}



/* PC版：左右交互配置 */
@media (min-width: 768px) {
    .strengths-section {
        padding: var(--section-padding-pc) ;
    }
    
    .strengths-section__description {
        line-height: var(--body-line-height-pc);
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .strengths-section__content {
        gap: 6rem;
    }
    
    .strength-feature {
        flex-direction: row;
        align-items: center;
        gap: clamp(2rem, 4vw, 4rem);
    }
    
    .strength-feature__text-block {
        flex: 1;
        gap: 1.5rem;
    }
    
    .strength-feature__image-block {
        flex: 1;
    }
    
    .strength-feature__description {
        line-height: var(--body-line-height-pc);
    }
    
    /* 偶数番目：画像とテキストを逆に */
    .strength-feature--reverse {
        flex-direction: row-reverse;
    }

    .strength-feature__accent-reverse {
        position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 40%;
    background-color: var(--color-primary);
    clip-path: polygon(0 0, 0 100%, 50% 100%);
    z-index: 1;

    }
    
    /* PC版：ラベルサイズ調整 */
    .strength-feature__pillar {
        width: 4px;
        height: 3rem;
    }
    
    .strength-feature__pillar::before,
    .strength-feature__pillar::after {
        width: 16px;
        height: 4px;
    }
    
    .strength-feature__label-text {
        font-size: 1rem;
    }
    
    .strength-feature__number {
        font-size: 4rem;
    }
    
    .strength-feature__title {
        font-size: 2rem;
    }
}

/* ========================================
   施工事例セクション
======================================== */
.works-section {
    padding: var(--section-padding-sp) ;
}

.works-section__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.works-section .section-header {
    margin-bottom: clamp(2rem, 4vw, 2rem);
}

.works-section__grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-card__image {
    width: 100%;
    overflow: hidden;
    height: auto;
    aspect-ratio: 16 / 10;
}

.work-card__works-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card__title {
    font-family: var(--font-ja);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
    .works-section {
        padding: var(--section-padding-pc) var(--section-padding-pc);
    }
    
    .works-section__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
        column-gap: 1.5rem;
    }
    
    .work-card {
        gap: 0.5rem;
    }
    
    .work-card__title {
        font-size: 1rem;
        font-weight: 500;
    }
}
