/* ==================================== */
/* common.css: MONOID 基盤定義 (背景画像復元版) */
/* ==================================== */

:root {
    /* --- ブランドカラー (MONOID Identity) --- */
    --primary-blue: #1d4c6b;      /* メインアクセント */
    --accent-blue: #285672;       /* ホバー・強調用 */
    --mono-silver: #A0A0A0;       /* 「MONO」カラー */
    
    /* --- ベースカラー --- */
    --bg-dark: #191919;           /* ヒーロー背景・ヘッダー */
    --bg-f8: #F8F8F8;             /* 画像がない場合のフォールバック */
    --text-light: #F0F0F0;        /* 暗背景上の文字 */
    --text-dark: #222222;         /* 明背景上の文字 */
    --text-muted: #B0B0B0;        /* 補助テキスト */
    --text-muted-dark: #666666;   /* 白カード上の補助テキスト */

    /* --- ガラスエフェクト・カード --- */
    --glass-white: rgba(255, 255, 255, 0.88); /* カード背景 */
    --glass-border: rgba(0, 0, 0, 0.08);       /* カード境界線 */
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); /* 浮遊感 */

    /* --- フォント設定 --- */
    --font-heading: 'Montserrat', sans-serif; /* 欧文見出し */
    --font-body: 'Noto Sans JP', sans-serif;  /* 本文 */

    /* --- 余白・サイズ --- */
    --container-max: 1400px;
    --section-sp: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    
    /* 元のデザインから復元: 背景画像設定 */
    background-image: url('../img/white-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: var(--bg-f8); /* フォールバック */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- 1. タイポグラフィ・ユーティリティ --- */
.dark-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-light);
    font-family: var(--font-heading);
    font-weight: 800;
}

.light-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 800;
}

.section-tag {
font-family: var(--font-heading);
color: var(--primary-blue);
font-weight: 800;
font-size: 1.2rem;
letter-spacing: 0.4em; /* 文字間をさらに広げ、背景との接地面積を減らす */
text-transform: uppercase;
display: block;
margin-bottom: 12px;

/* 多層シャドウ：影を作るのではなく、
    文字の背後だけに「ごく僅かな明度」を溜めて可読性を確保する 
*/
text-shadow: 
    0 0 1px rgba(255, 255, 255, 0.2),
    0 0 10px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.05);
}

/* --- 2. レイアウト基盤（コンテナのみ） --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}
/* --- 画像ポップアップ（ライトボックス） --- */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(25, 25, 25, 0.95); /* MONOIDの背景色に合わせた深い黒 */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: zoom-out;
}

.image-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.image-modal.is-active img {
    transform: scale(1);
}

/* クリックを促すカーソル設定 */
.zoomable {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.zoomable:hover {
    opacity: 0.9;
}