/* ロゴアイコンのスタイル */
.logo-image {
    width: 80px;  /* アイコンサイズを80pxに拡大 */
    height: auto;
    margin-right: 15px;
    vertical-align: middle;
}

/* サイトロゴ全体のスタイル */
.site-logo {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

/* コンテナの背景スタイル調整 */
.container {
    background-color: transparent; /* 完全透過に変更 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: none; /* 影も削除して完全に透過 */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* 背景よりも前面に表示 */
}

/* 背景要素のスタイル */
.fibonacci-background,
.nature-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -10 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* bodyとhtmlを全画面に */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw; /* 横スクロールを完全に防止 */
    min-height: 100vh; /* heightの代わりにmin-heightを使用 */
    overflow-x: hidden;
}

/* すべての要素が画面からはみ出さないように */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* body背景色設定（背景画像が読み込まれるまでの表示） */
body {
    background-color: #f5f9ff; /* 背景画像と同系色 */
    overflow-y: auto; /* 縦スクロールを許可 */
    overflow-x: hidden; /* 横スクロールを禁止 */
}

/* 背景のSVG要素を全画面に */
.fibonacci-background svg,
.nature-background svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
}

/* プロジェクトカードの背景（文字の可読性を優先） */
.project-card {
    background-color: rgba(255, 255, 255, 0.92);  /* 92%不透明 - 背景が少し透ける程度 */ 
    backdrop-filter: blur(8px);  /* 背景をぼかして可読性を向上 */
    -webkit-backdrop-filter: blur(8px);  /* Safari対応 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);  /* 軽い影でカードを浮かせる */
}

/* カードヘッダーの背景を不透明に上書き */
.project-header {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* プロジェクトコンテンツ部分 - カード背景を継承 */
.project-content {
    /* background-colorは指定しない（親要素の.project-cardの背景色を継承） */
}

/* 5カード用グリッドレイアウト調整 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* セクションタイトルの宇宙的スタイル */
.section-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    text-align: center;
    margin: 30px 0 20px;
    font-family: 'Orbitron', 'M PLUS 1p', sans-serif;
    letter-spacing: 0.3em;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(100, 150, 255, 0.3);
}

@media screen and (max-width: 768px) {
    .site-logo h1 {
        font-size: 1.5rem;
        word-break: break-word;
    }
    
    /* スマホ用セクションタイトル */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* スマホでも鳩アイコンを大きく表示 */
    .logo-image {
        width: 60px;  /* スマホ用も大きめに設定 */
        margin-right: 10px;
    }
    
    /* スマホ用コンテナ調整 */
    .container {
        padding: 10px 5px;
        border-radius: 5px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* スマホ用グリッド調整 */
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    /* スマホ用最終更新日の調整 */
    .last-updated {
        font-size: 0.7rem;
        padding: 3px 6px;
        top: 6px;
        right: 8px;
    }
}