/* ============================================================
   基本設定
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HiraMinProN-W3", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
}

.main_container {
    width: 100%;
    /*max-width: 950px;*/
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* 2カラム構造 */
.main_container .top_flex_layout, 
.main_container .profile_flex_layout, 
.main_container .archi_flex_layout, 
.main_container .works_flex_layout, 
.main_container .contact_flex_layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* サイドナビ：PC版 */
.main_container .side_navigation {
    width: 150px;
    flex: 0 0 150px;
}

.nav_logo_area {
    margin-bottom: 20px;
}

.nav_logo_area img {
    width: 110px;
}

.side_navigation .nav_list { list-style: none; }
.side_navigation .nav_list li { line-height: 0; margin-bottom: 5px; }
.side_navigation .nav_list img { width: 150px; }

/* メインコンテンツエリア：はみ出し防止 */
.main_container .visual_area, 
.main_container .profile_content, 
.main_container .archi_content, 
.main_container .works_content, 
.main_container .contact_content {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   共通フッター
   ============================================================ */
.company_footer_info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #ccc;
    margin-top: 50px;
}

.info_left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer_logo { width: 80px; }
.footer_address { max-width: 350px; }
.info_right { display: flex; justify-content: flex-end; }
.info_right img { max-width: 350px; }

.site_footer {
    text-align: center;
    padding: 30px 0 50px;
    border-top: 1px solid #eee;
}

.footer_links {
    font-family: sans-serif;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer_links a { text-decoration: none; color: inherit; }

.copyright {
    font-size: 13px;
    color: #999;
}

/* ============================================================
   レスポンシブ (SP：ハンバーガー)
   ============================================================ */
@media screen and (max-width: 768px) {
    .main_container {
        padding: 0 10px;
        overflow-x: hidden;
    }
    /* スマホ版では上部のテキストヘッダーを非表示にする */
    .site_header {
        display: none !important;
    }

    .main_container .top_flex_layout, 
    .main_container .profile_flex_layout { display: block; }

    .sp_menu_btn {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.8);
        border-radius: 4px;
        z-index: 1000;
    }
    .sp_menu_btn span {
        display: block;
        position: absolute;
        width: 25px;
        height: 2px;
        background: #fff;
        left: 10px;
        transition: 0.3s;
    }
    .sp_menu_btn span:nth-child(1) { top: 14px; }
    .sp_menu_btn span:nth-child(2) { top: 21px; }
    .sp_menu_btn span:nth-child(3) { top: 28px; }

    .sp_menu_btn.active span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
    .sp_menu_btn.active span:nth-child(2) { opacity: 0; }
    .sp_menu_btn.active span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

    .main_container .side_navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        z-index: 999;
        transition: 0.4s;
        padding: 80px 20px 20px;
    }
    .main_container .side_navigation.active { right: 0; }

    /* SP版メニュー内ロゴのサイズ指定 */
    .nav_logo_area {
        display: flex;
        justify-content: center;
        margin-bottom: 0px;
    }

    .nav_logo_area img {
        width: 80px !important;
    }

    .side_navigation .nav_list { display: flex; flex-direction: column; align-items: center; }
    /*.side_navigation .nav_list li { width: 100%; max-width: 200px; margin-bottom: 15px; }*/
    .side_navigation .nav_list li { max-width: 200px; margin-bottom: 0px; height: 50px;}
    .side_navigation .nav_list img { width: 100%; height: 100%; object-fit: none;}

    .company_footer_info { flex-direction: column; gap: 30px; text-align: center; }
    .info_left { flex-direction: column; align-items: center; gap: 12px; }
    .info_right { width: 100%; justify-content: center; }
    .footer_address, .info_right img { max-width: 300px; }
}