/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    color: white; /* 全体の文字色はデフォルトで白 */
    min-height: 100vh; /* 最低限の高さを確保 */

    /* ページ全体の背景画像 */
    background-color: #222222;
    background-image: url('imgs/one.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; /* スクロールしても背景を固定 */
    background-repeat: no-repeat; 
    filter: contrast(150%) brightness(120%);
}

/* ------------------------------------ */
/* ヘッダー (about.html用) */
/* ------------------------------------ */
.header {
    position: fixed; /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.8); /* 背景に色を付けて下と区別 */
    z-index: 10; 
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    color: #F0F0F0; /* ナビゲーションリンクの色 */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav ul li.has-dropdown {
    padding-bottom: 5px; 
}

/* ドロップダウンメニューのスタイル (index.htmlからコピー) */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 15px 0 10px 0;
    margin-top: 0px; 
    background: rgba(0, 0, 0, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease; 
    z-index: 20; 
    pointer-events: none;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    font-size: 13px;
    color: white;
    white-space: nowrap;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------ */
/* メインコンテンツ全体 */
/* ------------------------------------ */
main {
    /* 固定ヘッダーの高さ分、コンテンツを下にずらす */
    padding-top: 80px; 
    background-color: rgba(0, 0, 0, 0.85);
}

/* ------------------------------------ */
/* ABOUTページのヒーローセクション (.page-hero) */
/* ------------------------------------ */
.page-hero {
    /* 画面の高さいっぱいに設定 */
    height: 60vh; 
    width: 100%;
    
    /* bodyの背景画像を見せるため、背景設定を削除 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    
    position: relative;
    z-index: 1;
}

/* ヒーローセクションのオーバーレイ（暗くする膜） */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 🔴 暗さを調整 */
    background-color: rgba(0, 0, 0, 0.1); 
    z-index: 2;
}

.page-hero h1, .page-hero .about-nav {
    position: relative;
    z-index: 3; /* オーバーレイより前面に表示 */
    color: white; /* 確実に白くする */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75); /* 影で視認性向上 */
}

/* ヒーローセクションの内部ナビゲーション */
.page-hero .about-nav a {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0 15px;
    font-size: 16px;
    text-decoration: none;
}


/* ------------------------------------ */
/* コンテンツセクションの共通スタイル */
/* ------------------------------------ */
.content-section {
    /* 🔴 コンテンツの背景に半透明の黒を敷く */
    background-color: rgba(0, 0, 0, 0.1); /* 濃い黒で文字を見やすく */
    padding: 80px 5%; 
    max-width: 1200px;
    margin: 0 auto; 
    border-radius: 0px; 
    position: relative; /* 必要に応じて */
    z-index: 5;
}

/* 🔴 コンテンツセクション内のすべてのテキストの色 */
.content-section, .content-section p {
    color: #DDDDDD; /* 読みやすい明るいグレー */
    line-height: 1.8;
}

/* 🔴 見出しの色 */
.content-section h2, .content-section h3 {
    color: white; /* 見出しは白で強調 */
    margin-bottom: 20px;
}

/* ------------------------------------ */
/* MISSION セクション */
/* ------------------------------------ */
.mission-content-wrapper {
    display: flex; 
    gap: 40px;
    align-items: center;
    padding-top: 30px;
}

.mission-text {
    flex: 3; 
}

/* ------------------------------------ */
/* COMPANY セクション */
/* ------------------------------------ */
.ceo-message {
    padding: 40px 0;
    /* floatを使う場合はflex-direction: columnは不適な場合があるので調整 */
}

.ceo-photo {
    width: 180px; 
    height: 180px;
    object-fit: cover; 
    border-radius: 50%; 
    float: right; /* テキストの右側に回り込ませる */
    margin: 0 0 20px 40px;
    border: 3px solid #ccc;
}

/* float を解除して、次の要素が回り込まないようにする */
.corporate-profile {
    clear: both;
    padding-top: 20px;
}

.h3 {
    margin-top: 10px;
}

.hidden {
    /* 必ず非表示にする */
    display: none !important; 
}

.lang-ja:not(.hidden),
.lang-en:not(.hidden) {
    /* 要素の本来の表示形式を維持するか、ブロック要素として確実に表示します */
    display: block; 
}
/* 🔴 1. about-nav 全体をフレックスコンテナにする */
.page-hero .about-nav {
    display: flex; 
    justify-content: center; /* リンクを中央寄せにする */
    gap: 30px; /* リンク間のスペース */
    margin-top: 20px;
    /* ... (他のスタイルは既存のものを維持) ... */
}

/* 🔴 2. JavaScriptの副作用対策: aタグの display を強制的にインライン要素に戻す */
.page-hero .about-nav a {
    /* リンクはデフォルトでインライン要素ですが、
       JSや他のCSSでブロック要素にされた場合の対策として inline-block に設定 */
    display: inline-block;
}

/* 🔴 3. lang-switch後の表示崩れ対策 */
/* spanタグがdisplay: blockに上書きされている可能性があるため、aタグの子要素もインライン要素に戻す */
.page-hero .about-nav a span {
    display: inline; /* spanを強制的にインライン要素にする */
}

