@charset "UTF-8";

/* =========================================
   基本設定
   ========================================= */
:root {
    --bg-color: #fafafa;
    --heading-color: #1a1a1a;
    --accent-color: #005a9c;
    --content-width: 1000px;
    --header-height: 150px;
}

body {
    background-color: var(--bg-color);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   index.html 特別用スタイル（内部から移動）
   ========================================= */
.top { 
    padding: 60px 0; 
    text-align: center; 
}

.catchphrase { 
    font-size: 2.5rem; 
    color: var(--accent-color); 
    margin: 20px 0; 
    line-height: 1.4;
}

/* =========================================
   その他のページ用：image-placeholder
   ========================================= */
.image-placeholder {
    width: 100%;
    max-width: 800px; /* 画像の横幅の限界 */
    margin: 40px auto;
    text-align: center;
}

.image-placeholder img {
    max-width: 100%; /* スマホではみ出さない設定 */
    height: auto;
    border-radius: 8px; /* シンプルな角丸 */
    display: block;
    margin: 0 auto;
}

/* =========================================
   aboutus.html 特別用スタイル（役員紹介）
   ========================================= */
.officer-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================================
   ヘッダー設定
   ========================================= */
header, .site-header {
    background-color: #020201;
    height: var(--header-height);
    position: relative;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img { height: 120px; width: auto; object-fit: contain; }
.logo-text { display: none; }

/* PCナビゲーション */
#primary-navigation { display: flex; align-items: center; height: 100%; }
#primary-navigation ul { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
#primary-navigation li { position: relative; display: flex; align-items: center; height: 100%; }
#primary-navigation a { color: #fafafa; text-decoration: none; font-weight: bold; font-size: 0.95rem; padding: 10px 0; }
#primary-navigation a:hover { color: var(--accent-color); }

@media (min-width: 801px) {
    .has-child > a { pointer-events: none; cursor: default; }

    #primary-navigation ul.sub-menu {
        display: block; visibility: hidden; opacity: 0;
        position: absolute; top: 100%; left: 50%;
        transform: translateX(-50%) translateY(10px);
        background-color: #020201; min-width: 200px;
        padding: 10px 0; border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        transition: all 0.3s ease; pointer-events: none;
        flex-direction: column;
    }

    #primary-navigation li:hover > .sub-menu {
        visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    #primary-navigation ul.sub-menu a {
        display: block; padding: 12px 20px; text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* モバイルボタン */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1002; }
.hamburger-line { display: block; width: 30px; height: 3px; background-color: #ffffff; margin: 5px 0; border-radius: 2px; }

@media (max-width: 800px) {
    .menu-toggle { display: flex; flex-direction: column; margin-left: auto; }
    #primary-navigation { display: none; }
    .logo-img { content: url("https://soft-connect.site/img/headerlogo2.png"); }
}

/* SNSリンク & フッター */
.sns-links { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
.sns-links img { height: 30px; width: auto; transition: opacity 0.3s; }
.sns-links a:hover img { opacity: 0.8; }
footer { text-align: center; padding: 40px 0; font-size: 0.9rem; border-top: 1px solid #eee; }

/* 共通装飾 */
main { padding: 40px 0; }
h1 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--heading-color); border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; }
h2 { font-size: 1.6rem; margin-top: 3rem; margin-bottom: 1.5rem; color: var(--heading-color); }
p { margin-bottom: 1.5rem; }