/* 開発ストーリーページ共通スタイル */

/* Optimize the page header for SP */
@media  screen and (max-width: 768px) {
    .page-header {
        margin-top: 0;
        position: relative;
        height: 180px;
    }

    .page-header-content {
        padding: 88px 20px 0px
    }

    .page-header .page-label {
        position: absolute;
        top: 48px;
        left: 120px;
        transform: rotate(-8deg);
    }
    .page-header .page-title,
    .page-header .project-title {
        text-align: left;
    }
    
    .page-header .project-title {
        margin-top: 0;
    }
}

.project-number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    font-size: 48px;
    font-weight: 350;
    line-height: 1.37;
    letter-spacing: 0.1em;
    font-style: normal;
}

@media  screen and (max-width: 768px) {
    .project-number {
        top: -30px;
        left: 12px;
    }
}

@media  screen and (max-width: 768px) {
.project-section .pc-only {
    display: none;
}
}

.project-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: var(--primary-blue);
    margin-top: 20px;
}

/* メインコンテンツ */
.main-content {
    background-color: var(--light-teal);
    padding: 40px 0;
}

/* プロジェクト紹介 */
.project-intro {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.project-image {
    position: relative;
    width: 360px;
    height: 400px;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
    background-color: var(--gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    text-align: left;
    width: 100%;
    max-width: 360px;
    margin-top: -60px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.project-main-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 2.2;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.project-main-title span {
    display: inline;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.2em 0.4em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 4px;
    line-height: 2.4;
}

.project-description {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.1em;
    color: var(--black);
}

/* プロジェクト内容 */
.project-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 60px;
}

.project-section {
    padding: 30px 0;
    position: relative;
}

.project-section:not(:last-child) {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.48;
    letter-spacing: 0.1em;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.section-title.large {
    font-size: 24px;
    line-height: 2;
    letter-spacing: 0.1em;
}

.project-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.1em;
    color: var(--black);
    margin-bottom: 20px;
}

.project-text:last-child {
    margin-bottom: 0;
}

.project-text.highlight {
    font-weight: 700;
    font-size: 18px;
    line-height: 2;
    color: var(--primary-blue);
}

.project-sub-image {
    /* width: 100%;
    height: 160px; */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.project-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* セクション区切り線 */
.section-divider {
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    margin: 40px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .project-intro {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .project-image {
        width: 340px;
        height: 400px;
        border-radius: 24px;
    }
    
    .project-main-title {
        font-size: 22px;
    }
    
    .project-description {
        font-size: 18px;
    }
    
    .project-content {
        padding: 30px 16px;
    }
    
    .project-section {
        padding: 20px 0;
    }
    
    .project-section:not(:last-child) {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .project-sub-image {
        height: 160px;
    }
}

@media (min-width: 769px) {
    
    .project-intro {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        justify-content: center;
    }
    
    .project-image {
        width: 100%;
        height: 400px;
        border-radius: 24px;
    }
    
    .project-info {
        /* text-align: center; */
        margin-bottom: 20px;
        max-width: 740px;
        margin-top: -90px;
        /* padding: 16px 8px 0; */
        padding: 0 40px;
    }
    
    .project-main-title {
        /* font-size: 26px; */
    }

    .project-main-title span br.sp-only {
        display: none;
    }
    
    .project-description {
        font-size: 18px;
    }
    
    .project-content {
        max-width: 800px;
        margin: 0 auto 60px;
        padding: 60px 80px;
    }
    
    .project-section {
        padding: 40px 0;
    }
    
    .project-section:not(:last-child) {
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    
    .project-sub-image {
        width: 100%;
        /* max-width: 500px; */
        height: 350px;
        margin: 0 auto 20px;
        display: block;
        float: none;
    }
}

/* Project用の装飾テキスト */
.project-decoration {
    position: absolute;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: var(--secondary-teal);
    font-family: 'Barlow', sans-serif;
    opacity: 0.1;
    transform: rotate(90deg);
    right: -20px;
    top: 50%;
    transform-origin: center;
}

/* Story用の装飾テキスト */
.story-decoration {
    position: absolute;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.1em;
    color: var(--secondary-orange);
    font-family: 'La Belle Aurore', cursive;
    opacity: 0.2;
    top: 20px;
    right: 20px;
}
