/* ============================================
   Construction Flow Page CSS
   施工の流れページ専用スタイル
   ============================================ */

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ページヘッダーセクション（背景画像付き） - 施工の流れページ専用 */
.construction-flow-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.construction-flow-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.construction-flow-header .container {
    position: relative;
    z-index: 2;
}

.construction-flow-header .about-page__title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 2.2;
    letter-spacing: 0.15em;
    font-size: 54px;
    word-spacing: 0.3em;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.construction-flow-header .about-page__description {
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.construction-flow-header .about-page__description p {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .construction-flow-header {
        min-height: 70vh;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .construction-flow-header .about-page__title {
        line-height: 2.0;
        letter-spacing: 0.12em;
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .construction-flow-header {
        min-height: 60vh;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .construction-flow-header .about-page__title {
        line-height: 2.0;
        letter-spacing: 0.1em;
        font-size: 32px;
    }
}

/* 施工の流れセクション */
.construction-flow__section {
    padding-top: 40px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

/* コンテナ内のflow-containerを横まで広げる */
.construction-flow__section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.construction-flow__section .flow-section-title {
    padding-left: 16px;
    padding-right: 16px;
}

/* コンテナ */
.flow-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ステップカード全体 */
.step-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

/* 施工の流れページ：step-cardの構造を解体の流れと同じにする */
.construction-flow__section .step-card {
    display: flex;
    flex-direction: column;
}

/* ステップカード内のコンテンツを中央に配置 */
.step-card > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.step-card-header {
    padding-top: 40px;
    padding-bottom: 40px;
}

.step-details {
    padding-bottom: 40px;
}

/* 奇数カード（白色） */
.step-card:nth-child(odd) {
    background: #ffffff;
}

/* 偶数カード（薄いグレー） */
.step-card:nth-child(even) {
    background: #f8f9fa;
}

.step-card.step-card--visible {
    opacity: 1;
    transform: translateY(0);
}

/* 上部：STEP番号・アイコン・タイトル・説明文エリア */
.step-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    border-bottom: 1px solid #e8e8e8;
}

/* 左側：STEP番号エリア */
.step-number-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 80px;
    margin-right: 32px;
    flex-shrink: 0;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.step-digit {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* 中央：アイコンエリア */
.step-icon-box {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    margin-right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* アイコン画像（SVGやimg） */
.step-icon-box img, 
.step-icon-box svg {
    width: 100%;
    height: auto;
    max-width: 100px;
    fill: #555; /* SVGの色調整 */
}

/* 右側：テキストエリア */
.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #222;
    line-height: 1.4;
}

.step-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
    .flow-container {
        max-width: 100%;
    }
    
    .step-card > * {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .step-card-header {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    
    .step-details {
        padding-bottom: 32px;
    }
    
    .construction-flow__section .flow-section-title {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .step-card-header {
        flex-wrap: wrap;
    }
    
    .step-number-box {
        min-width: 60px;
        margin-right: 20px;
    }
    
    .step-digit {
        font-size: 28px;
    }
    
    .step-icon-box {
        width: 100px;
        height: 100px;
        margin-right: 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-desc {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .step-card > * {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .step-card-header {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    
    .step-details {
        padding-bottom: 32px;
        padding-top: 20px;
    }
    
    .construction-flow__section .flow-section-title {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .step-card-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .step-number-box {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        margin-right: 0;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e8e8e8;
    }

    .step-label {
        margin-right: 8px;
        margin-bottom: 0;
    }

    .step-digit {
        font-size: 24px;
    }

    .step-icon-box {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .step-icon-box img,
    .step-icon-box svg {
        max-width: 70px;
    }
    
    .step-content {
        width: 100%;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-desc {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .construction-flow__section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* ============================================
   解体の流れページ専用スタイル
   ============================================ */

/* 解体の流れセクション */
.dismantling-flow__section {
    padding-top: 40px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

/* コンテナ内のflow-containerを横まで広げる */
.dismantling-flow__section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.dismantling-flow__section .flow-section-title {
    padding-left: 16px;
    padding-right: 16px;
}

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ページヘッダーセクション（背景画像付き） - 解体の流れページ専用 */
.dismantling-flow-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

.dismantling-flow-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.dismantling-flow-header .container {
    position: relative;
    z-index: 2;
}

.dismantling-flow-header .about-page__title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 2.2;
    letter-spacing: 0.15em;
    font-size: 54px;
    word-spacing: 0.3em;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.dismantling-flow-header .about-page__description {
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.dismantling-flow-header .about-page__description p {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .dismantling-flow-header {
        min-height: 70vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .dismantling-flow-header .about-page__title {
        line-height: 2.0;
        letter-spacing: 0.12em;
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .dismantling-flow-header {
        min-height: 60vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .dismantling-flow-header .about-page__title {
        line-height: 2.0;
        letter-spacing: 0.1em;
        font-size: 32px;
    }
}

/* 解体工事の流れ全体像（インフォグラフィック）セクション */
.dismantling-flow-visual {
    padding: 20px 0 60px 0;
    background-color: #fff;
}

.dismantling-flow-visual__wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.dismantling-flow-visual__title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 40px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #0066cc;
}

.dismantling-flow-visual__image {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
}

.dismantling-flow-visual__image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* 全体期間目安セクション */
.dismantling-overview {
    padding: 60px 0 20px 0;
    background-color: #fff;
}

.dismantling-overview__box {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dismantling-overview__title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #0066cc;
}

.dismantling-overview__content {
    margin-top: 20px;
}

.dismantling-overview__text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 20px 0;
}

.dismantling-overview__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dismantling-overview__list li {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.dismantling-overview__list li:last-child {
    border-bottom: none;
}

.dismantling-overview__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: 700;
    font-size: 18px;
}

/* 流れセクションタイトル */
.flow-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 40px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #0066cc;
}

/* ステップ詳細情報（下部に配置） */
.step-details {
    width: 100%;
    margin-top: 0;
    padding-top: 24px;
    border-top: none;
}

.step-details__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
}

.step-details__list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.step-details__list li {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-details__list li.step-details__list-item--visible {
    opacity: 1;
    transform: translateX(0);
}

.step-details__list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: 700;
    font-size: 18px;
}

.step-info {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin-top: 12px;
}

.step-info__period {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 8px 0;
}

.step-info__note {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* 注意点セクション */
.dismantling-notes {
    padding: 80px 0;
    background-color: #ffffff;
}

.dismantling-notes__title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 50px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #0066cc;
}

.dismantling-notes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.note-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.note-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.note-card__text {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* よくある質問セクション */
.dismantling-faq {
    padding: 80px 0;
    background-color: #fff;
}

.dismantling-faq__title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 50px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #0066cc;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #0066cc;
}

.faq-item__question {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    padding-left: 24px;
    position: relative;
}

.faq-item__question::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.faq-item__answer {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0;
    padding-left: 24px;
    position: relative;
}

.faq-item__answer::before {
    content: "A";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .dismantling-flow__section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .dismantling-flow__section .flow-section-title {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .dismantling-overview {
        padding: 40px 0 20px 0;
    }
    
    .dismantling-flow-visual {
        padding: 20px 0 40px 0;
    }
    
    .dismantling-flow-visual__title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .dismantling-flow-visual__image {
        padding: 16px;
    }
    
    .dismantling-overview__box {
        padding: 24px;
    }
    
    .dismantling-overview__title {
        font-size: 20px;
    }
    
    .flow-section-title {
        font-size: 22px;
    }
    
    .step-details {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .dismantling-notes {
        padding: 60px 0;
    }
    
    .dismantling-notes__title {
        font-size: 22px;
    }
    
    .dismantling-notes__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dismantling-faq {
        padding: 60px 0;
    }
    
    .dismantling-faq__title {
        font-size: 22px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item__question {
        font-size: 16px;
    }
    
    .faq-item__answer {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .dismantling-flow__section .flow-section-title {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .dismantling-overview {
        padding: 30px 0 15px 0;
    }
    
    .dismantling-flow-visual {
        padding: 15px 0 30px 0;
    }
    
    .dismantling-flow-visual__title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .dismantling-flow-visual__image {
        padding: 12px;
    }
    
    .step-content {
        flex: 1;
        min-width: 0;
    }
    
    .step-details__list li {
        font-size: 13px;
    }
    
    .step-info {
        padding: 12px;
    }
    
    .note-card {
        padding: 20px;
    }
    
    .note-card__title {
        font-size: 16px;
    }
    
    .note-card__text {
        font-size: 13px;
    }
}
