/* ========================================
   リセット＆基本設定
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fdf8f3;
    color: #2c1e1a;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ========================================
   背景テクスチャ
   ======================================== */

.wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
    background-color: #fdf8f3;
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuAA7GNOTpffw5c_kGHuUu3lQuolWfomtCg4ZXP1rpzBYZuPD6kBVjDtXB4yjCCO2JGCd4EUiMPydnT6JgwXj5IXx2EvS4vxbmS6ZoBOn8rrpSn2vD-Y_somlF5iih0pwqeUK2tJxo-uHw3kjtfV2UvRiSYAmYcIoCuEC-_3L1BSFpTJiJGAu1fkUr9JFPXnnjBPlyr2JWVXEVBO71ZeFONA3NgrjL8fn5Vo_uOCPKF-ktuFIsFegjjDkJ2MmvXRM6l7b496U9X5w1MR);
}

/* ========================================
   ヘッダーセクション
   ======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(245, 240, 225, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5dcc5;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-book {
    color: #5d4037;
    font-size: 24px;
}

.site-title {
    color: #2c1e1a;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.btn-logout {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-logout .material-symbols-outlined {
    color: #2c1e1a;
    font-size: 24px;
}

/* タブナビゲーション */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5dcc5;
    justify-content: space-between;
    margin-top: 4px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid transparent;
    padding: 8px 0;
    flex: 1;
    text-decoration: none;
    transition: border-color 0.2s;
}

.tab-item.active {
    border-bottom-color: #D4AF37;
}

.tab-item.active .tab-text {
    color: #2c1e1a;
}

.tab-text {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #8b735b;
}

/* ========================================
   ボトムナビゲーション（モバイル）
   ======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e5dcc5;
    padding: 8px 24px;
    display: flex;
    justify-content: center;
    gap: 80px;
    align-items: center;
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #8b735b;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-item.active {
    color: #D4AF37;
}

.nav-item-add {
    color: #f4c025;
}

.nav-item-add .nav-icon {
    font-variation-settings: 'FILL' 1;
}

.nav-icon {
    font-size: 24px;
}

.nav-icon.filled {
    font-variation-settings: 'FILL' 1;
}

.nav-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* ========================================
   共通ユーティリティ
   ======================================== */

.bottom-spacer {
    height: 80px;
}

