:root {
    --bg-color: #faf8f5;
    --card-bg: #ffffff;
    --text-color: #4a4543;
    --accent-color: #E78198;
    --border-color: #f0eae1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background: linear-gradient(rgba(250, 248, 245, 0.5), rgba(250, 248, 245, 0)),                 url('./img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    padding: 40px 15px;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.block {
    background-color: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* --- ヘッダー共通 --- */
.block-header {
    text-align: center;
}

.header-title {
    font-size: 1.6rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- バナー画像共通 --- */
.banner-common {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.banner-history {
    background-image: url('./img/history_header.jpg'); /* 必要に応じて変更してください */
}

/* --- ナビゲーションメニュー --- */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.nav-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* --- SNSアイコン --- */
.sns-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

.sns-icon:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- HISTORY / 経歴リスト（worksのリストスタイルを踏襲） --- */
.work-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.work-item {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.work-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.work-date {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 110px; /* 日付が長い場合を考慮して少し調整 */
}

.work-desc {
    color: #5c5552;
    flex: 1;
}

.work-desc a {
    color: var(--text-color);
    text-decoration: none;
}

.work-desc a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- 雨の演出コンテナ --- */
.rain-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}

.raindrop {
    position: absolute;
    width: 8px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) scale(1);
        opacity: 0;
    }
}

/* --- スマホ対応レスポンシブ --- */
@media (max-width: 768px) {
    .work-item {
        flex-direction: column;
        gap: 5px;
    }
}
/* --- 年ごとのHISTORYボックス --- */
.history-year-block {
    margin-bottom: 25px;
}
.history-year-block:last-child {
    margin-bottom: 0;
}

.history-year-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}
/* --- 年ごとの見出し（個別のボックス内）のデザイン強化 --- */
.block .year-heading {
    font-family: 'Montserrat', sans-serif; /* 英語フォントでカッコよく */
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px dashed var(--border-color); /* 下部に可愛い点線アクセント */
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

/* --- 西暦の背景に色を敷いたスタイル（下線なし） --- */
.block .year-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(231, 129, 152, 1);
    text-align: center !important;
    margin: 0px auto 20px auto;
    
    /* サイズと背景の調整 */
    width: fit-content;
    padding: 3px 24px;
    background-color: rgba(255, 227, 223, 1); /* ごく薄いアクセントカラーの背景 */
    border-radius: 6px; /* 角を少しだけ丸める */
    
    /* 余計な下線や枠線を確実に消す指定 */
    border: none !important;
    border-bottom: none !important;
}
/* --- HISTORYページの説明文 --- */
.history-description {
    font-size: 0.9rem;
    color: var(--text-color, #666); /* サイトの文字色に合わせる設定 */
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
}
/* --- 経歴を書くブロックの背景を透かす設定 --- */
.block {
    /* 例：白ベースで 80% の不透明度（背景を20%透かす）にする場合 */
    background-color: rgba(255, 255, 255, 0.3) !important;
    
    /* または、サイト全体の背景色を活かして完全に透明にする場合は以下のみにします */
    /* background-color: transparent !important; */
    
    /* お好みでガラスモフィズム（すりガラス風のぼかし）を入れたい場合 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
