body {
    font-family: 'ヒラギノ角ゴ ProN W3', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #39927A;
}

header {
    background-color: rgba(255, 0, 0, 0);
    color: #707070;
    padding: 10px;
    height: 132px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    position: absolute;
    top: 25px;
    left: 35px;
    width: 56px;
    height: 72px;
}

.pc-nav {
    font-size: 20px;
    position: absolute;
    top: 52px;
    right: 155px;
}

.pc-nav a {
    margin-right: 20px;
    color: #ffffff;
    text-decoration: none;
}

.detail-content {
    margin: 0 auto;
    color: #ffffff;
    margin-left: 200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.detail-content h2 {
    font-size: 42px;
    font-weight: 600;
    margin-top: 40px; /* 修正 */
}

.detail-content p {
    font-size: 24px;
    font-weight: 300;
    line-height: 42px;
    margin-top: -28px;
}

.detail-content strong {
    font-weight: 600;
}

.detail-content img {
    border-radius: 14px;
    width: 380px;
    height: 290px;
    margin-top: 21px; /* 適切な値に調整してください */
    margin-right: 150px;
}

.image-container {
    width: 100%;
}

.image-container img {
    width: 100%;
    height: auto;
}

.portfolio-section {
    margin-top: 20px; /* 上部42pxのマージン */
    background-color: #ffffff;
}

.portfolio-section h3 {
    font-size: 20px;
    color: #004A4C;
    padding-top: 20px;
    margin-left: 200px;
    margin-bottom: 10px; /* カテゴリ名の下に10pxのマージン */
}

.portfolio-category {
    margin-left: 200px;
    margin-bottom: 30px; /* 各カテゴリの下に30pxのマージン */
    display: flex;
    flex-wrap: wrap;
    text-align: left;
}

.portfolio-section h4 {
    font-size: 20px;
    color: #004A4C;
    margin-top: 20px;
    margin-left: 200px;
    margin-bottom: 20px; /* カテゴリ名の下に10pxのマージン */
}

.portfolio-item {
    margin-bottom: 24px; /* 各アイテムの下に24pxのマージン */
    padding-top:  10px;
}

.portfolio-item img {
    width: 400px; /* 横幅を250pxに設定 */
    height: auto; /* 縦幅を親要素に対して100%に設定 */
}

.portfolio-app {
    margin-bottom: 20px; /* 各アイテムの下に24pxのマージン */
    padding-top:  10px;
}

.portfolio-app img {
    width: 100px; /* 横幅を250pxに設定 */
    height: auto; /* 縦幅を親要素に対して100%に設定 */
}

.portfolio-company {
    font-size: 14px;
    color: #000000;
}

/* ポートフォリオのアイテム間のスペース */
.portfolio-item:not(:last-child) {
    margin-right: 50px; /* 最後のアイテム以外に右側のスペースを付ける */
}

.portfolio-app:not(:last-child) {
    margin-right: 50px; /* 最後のアイテム以外に右側のスペースを付ける */
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.sp-img {
    display: none;
}

@media screen and (min-width: 450px) {

}

@media screen and (max-width: 450px) {
    .detail-content {
    margin-left: 20px;
    }

    .detail-content h2 {
    font-size: 21px;
    font-weight: 600;
    margin-top: 10px; /* 修正 */
    }

    .detail-content p {
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    margin-top: 0px;
    }

    .image-container{
        display: none;
    }

    .sp-img {
        display:block;
        text-align: center;
    }

    .sp {
        width: 300px;
        height: auto;
    }

    
    
    .portfolio-section h3 {
        margin-left: 20px;
    }
    
    .portfolio-category {
        margin-left: 20px;
        margin-bottom: 20px;
    }
    
    .portfolio-section h4 {
        margin-left: 20px;
    }
    
    .portfolio-item {
        margin-bottom: 24px; /* 各アイテムの下に24pxのマージン */
        padding-top:  10px;
    }
    
    .portfolio-item img {
        width: 250px; /* 横幅を250pxに設定 */
        height: auto; /* 縦幅を親要素に対して100%に設定 */
    }
    
}
