@charset "UTF-8";

:root {
    --bg-color: #ffffff;
    --bg-sub: #f4f9f6;
    --text-main: #2c3e35;
    --text-sub: #688275;
    --accent-green: #2ea87c;
    --accent-light: #e6f7f0;
    --header-height: 70px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text-main); line-height: 1.8;
    background-color: transparent;
}

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

/* --- 背景：薄緑の流体インクマーブル --- */
#bg-ink {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -10; background-color: #eef5f1;
    overflow: hidden; filter: blur(70px);
    transform: translate3d(0, 0, 0); pointer-events: none;
}
.ink-blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; opacity: 0.8; will-change: transform; }
.ink-1 { width: 60vw; height: 60vw; background-color: #c4e8d6; top: -10vh; left: -10vw; animation: move1 18s infinite alternate ease-in-out; }
.ink-2 { width: 70vw; height: 70vw; background-color: #d8f2c9; bottom: -20vh; right: -10vw; animation: move2 22s infinite alternate ease-in-out; }
.ink-3 { width: 50vw; height: 50vw; background-color: #b0dfd0; top: 40vh; left: 30vw; animation: move3 25s infinite alternate-reverse ease-in-out; }
.ink-4 { width: 80vw; height: 80vw; background-color: #e0f0e6; top: 10vh; right: 20vw; animation: move4 20s infinite alternate ease-in-out; }

@keyframes move1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30vw, 20vh) scale(1.3); } }
@keyframes move2 { 0% { transform: translate(0, 0) scale(1.2); } 100% { transform: translate(-40vw, -20vh) scale(0.8); } }
@keyframes move3 { 0% { transform: translate(0, 0) scale(0.8); } 100% { transform: translate(-30vw, -30vh) scale(1.4); } }
@keyframes move4 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(20vw, 40vh) scale(1.1); } }

/* --- 背景：薄緑のアウトラインマーブル --- */
#bg-outline {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -9; overflow: hidden; pointer-events: none;
}
.outline-blob {
    position: absolute; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background-color: transparent; border: 2px solid rgba(70, 180, 130, 0.65); will-change: transform;
}
.outline-1 { width: 100vmax; height: 100vmax; top: -20vh; left: -10vw; animation: flow1 35s infinite linear; }
.outline-2 { width: 120vmax; height: 120vmax; bottom: -30vh; right: -20vw; animation: flow2 40s infinite linear reverse; }
.outline-3 { width: 90vmax; height: 90vmax; top: 20vh; left: 30vw; animation: flow3 30s infinite linear; }

@keyframes flow1 { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.05); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes flow2 { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.95); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes flow3 { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.05); } 100% { transform: rotate(360deg) scale(1); } }

/* --- ヘッダー（下端ベースライン合わせ・∑調整済） --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); z-index: 1000; display: flex; align-items: center;
}
.header-inner {
    width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: baseline; transform: translateY(2px);
}
.header-logo { font-size: 1.5rem; font-weight: bold; color: var(--accent-green); letter-spacing: 0.1em; line-height: 1; }
.header-logo .sigma { display: inline-block; transform: translateY(3px); }
.back-link { font-weight: bold; color: var(--accent-green); transition: opacity 0.3s; }
.back-link:hover { opacity: 0.7; }

/* --- 記事・レポート本体のレイアウト --- */
.diary-container {
    max-width: 820px; margin: 0 auto; padding: calc(var(--header-height) + 50px) 20px 100px;
}
.diary-glass-panel {
    background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px;
    padding: 50px; box-shadow: 0 10px 35px rgba(20, 60, 40, 0.05);
}
.diary-header { border-bottom: 2px solid rgba(46, 168, 124, 0.2); padding-bottom: 25px; margin-bottom: 40px; }
.diary-category {
    display: inline-block; background: var(--accent-light); color: var(--accent-green);
    padding: 4px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; margin-bottom: 12px;
}
.diary-title { font-size: 2.2rem; font-weight: bold; margin: 0 0 10px 0; line-height: 1.4; }
.diary-date { color: var(--text-sub); font-size: 0.95rem; font-weight: bold; }

/* --- 記事内ブロック要素（見出し・文章・任意配置画像） --- */
.diary-body h3 {
    font-size: 1.4rem; border-left: 5px solid var(--accent-green);
    padding-left: 14px; margin: 45px 0 20px; color: var(--text-main); clear: both;
}
.diary-body p { margin: 0 0 24px 0; font-size: 1.05rem; white-space: pre-wrap; }

/* 画像配置のバリエーション */
.diary-figure { margin: 30px 0; text-align: center; }
.diary-figure img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.diary-caption { font-size: 0.85rem; color: var(--text-sub); margin-top: 8px; }

/* 大サイズ（横幅いっぱい） */
.img-full { width: 100%; clear: both; }
/* 中サイズ（中央揃え） */
.img-center { max-width: 65%; margin-left: auto; margin-right: auto; clear: both; }
/* 左寄せ＋テキスト回り込み */
.img-float-left { float: left; width: 45%; margin: 5px 25px 20px 0; }
/* 右寄せ＋テキスト回り込み */
.img-float-right { float: right; width: 45%; margin: 5px 0 20px 25px; }
/* 2枚横並び */
.img-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; clear: both; }
.img-grid-2 .diary-figure { margin: 0; }

.clearfix::after { content: ""; display: table; clear: both; }
footer { text-align: center; padding: 40px; font-size: 0.9rem; color: var(--text-sub); }

@media (max-width: 768px) {
    .diary-glass-panel { padding: 25px; }
    .diary-title { font-size: 1.6rem; }
    .img-center, .img-float-left, .img-float-right { float: none; width: 100%; max-width: 100%; margin: 20px 0; }
    .img-grid-2 { grid-template-columns: 1fr; }
}