/* 中央セクションのスタイル */
.center-section {
    z-index: 10;
    width: 500px;
    margin-top: 60px;
    margin-bottom: 100px;
    height: 90%;
    margin-left: 55%; /* 53%から55%に変更 */
    padding: 50px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow-y: auto;
    position: relative;
}

/* セクション内のタイトルスタイル */
.center-section header h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
}

/* 一般テキストのスタイル */
.center-section p {
    font-size: 16px;
}

/* 画像プレビューのスタイル */
.image-preview {
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About Me, Philosophy, Works, Contact セクション */
#about, #philosophy, #works, #contact {
    margin-top: 40px;
}

#about h2,
#philosophy h2,
#works h2,
#contact h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00536D;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

#about h2::after,
#philosophy h2::after,
#works h2::after,
#contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00536D;
    transition: width 0.3s ease-in-out;
}

#about h2:hover::after,
#philosophy h2:hover::after,
#works h2:hover::after,
#contact h2:hover::after {
    width: 100%;
}

#about p, #philosophy p, #works p, #contact p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* My Design Philosophy セクション専用のスタイル */
#philosophy p {
    margin-bottom: 20px; /* 段落間の間隔を調整 */
    line-height: 1.8; /* より読みやすい行間に調整 */
}

/* SNSとコンタクトコンテナのスタイル */
.sns-contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 50px; /* SNSアイコン間の間隔を25pxに設定 */
    margin-bottom: 20px;
}

.sns-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.sns-links img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.sns-links a:hover img {
    transform: scale(1.2);
}

/* ギャラリーを見るリンクとContactボタンの共通スタイル */
.center-section .view_btn,
.contact-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #00536D;
    text-decoration: none;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid #dcc6ad;
}

.center-section .view_btn:hover,
.contact-button:hover {
    background-color: #00536D;
    color: #dcc6ad;
    border-color: #00536D;
}
/* view_btnを中央に配置 */
.center-section .view_btn {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
}
 

/* フッターセクション */
.footer-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 12px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .center-section {
        width: 90%;
        margin-left: 5%;
        padding: 30px;
    }

    .center-section p {
        font-size: 14px;
    }

    #about h2,
    #philosophy h2,
    #works h2,
    #contact h2 {
        font-size: 20px;
    }
}

/* iPhone SE サイズ (375px) 対応 */
@media (max-width: 375px) {
    .center-section {
        width: 100%;
        margin-left: 0;
        padding: 20px;
        border-radius: 0;
    }

    .center-section p {
        font-size: 13px;
    }

    #about h2,
    #philosophy h2,
    #works h2,
    #contact h2 {
        font-size: 18px;
        padding: 6px 10px;
    }

    .image-preview img {
        border-radius: 3px;
    }

    .sns-links img {
        width: 40px;
    }

    .center-section .view-gallery,
    .contact-button {
        font-size: 13px;
        padding: 8px 15px;
    }

    .footer-section {
        padding: 15px;
    }

    .footer-section p {
        font-size: 10px;
    }
}


/* 480pxのメディアクエリ（維持） */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}