/*
==========================================
  uCoffee Blog - Premium Modern Design
  2025 Edition - Ultra Stylish Coffee Blog
==========================================
*/

/* ==================== リセット & ベース ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* プレミアムカラーパレット */
    --primary-dark: #1a0f0a;
    --coffee-brown: #3d2817;
    --accent-gold: #d4af37;
    --cream: #f8f5f0;
    --soft-white: #ffffff;
    --text-dark: #2c1810;
    --text-light: #6b5d54;
    --gradient-coffee: linear-gradient(135deg, #6f4e37 0%, #3d2817 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(26, 15, 10, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 15, 10, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 15, 10, 0.16);
    --shadow-xl: 0 20px 60px rgba(26, 15, 10, 0.20);
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== ヘッダー - プレミアム ==================== */
.header-container {
    background: var(--gradient-coffee);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-container .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.site-name {
    margin: 0 0 16px;
}

.site-name a {
    font-size: 56px;
    font-weight: 700;
    color: var(--soft-white);
    text-decoration: none;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.site-name a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.site-name a:hover {
    transform: translateY(-2px);
    color: var(--accent-gold);
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

/* ==================== ナビゲーション - モダン ==================== */
.navi {
    background: var(--soft-white);
    border-bottom: 1px solid rgba(111, 78, 55, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 20px 28px;
    color: var(--coffee-brown);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--gradient-gold);
    transition: transform var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link:hover::before,
.current-menu-item .nav-link::before {
    transform: translateX(-50%) scaleX(1);
}

/* ==================== メイン ==================== */
.main {
    padding: 80px 0 100px;
    background: var(--cream);
}

/* ==================== セクションタイトル ==================== */
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--coffee-brown);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '☕';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--accent-gold);
}

/* ==================== 記事カード - プレミアム ==================== */
.entry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.entry-card-wrap {
    position: relative;
    height: 100%;
}

.entry-card {
    background: var(--soft-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.entry-card-wrap:hover .entry-card {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.entry-card-wrap:hover .entry-card::before {
    border-color: var(--accent-gold);
}

/* サムネイル */
.entry-card-thumb {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--gradient-coffee);
}

.entry-card-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 15, 10, 0.3) 100%);
    transition: var(--transition-smooth);
}

.entry-card-wrap:hover .entry-card-thumb::after {
    background: linear-gradient(to bottom, transparent 0%, rgba(212, 175, 55, 0.2) 100%);
}

.entry-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-card-wrap:hover .entry-card-thumb img {
    transform: scale(1.08);
}

/* コンテンツ */
.entry-card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* カテゴリーラベル */
.cat-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-gold);
    color: var(--soft-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    align-self: flex-start;
}

/* タイトル */
.entry-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 16px;
}

.entry-card-title a {
    color: var(--coffee-brown);
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
}

.entry-card-title a:hover {
    color: var(--accent-gold);
}

/* 抜粋 */
.entry-card-snippet {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

/* メタ情報 */
.entry-card-meta {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding-top: 16px;
    border-top: 1px solid rgba(111, 78, 55, 0.1);
}

/* ==================== ボタン ==================== */
.btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--gradient-coffee);
    color: var(--soft-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left var(--transition-smooth);
    z-index: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 0;
}

.btn span {
    position: relative;
    z-index: 1;
}

.load-more {
    text-align: center;
    margin-top: 60px;
}

/* ==================== カフェアクセント ==================== */
.cafe-accent {
    background: var(--soft-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.cafe-accent::before {
    content: '☕';
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.cafe-accent h3 {
    color: var(--coffee-brown);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cafe-accent p {
    line-height: 2;
    color: var(--text-dark);
    font-size: 16px;
}

/* ==================== フッター ==================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h3 {
    font-size: 32px;
    color: var(--soft-white);
    margin-bottom: 12px;
    font-weight: 700;
}

.footer nav {
    margin: 40px 0;
}

.footer nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 20px;
    font-size: 15px;
    transition: var(--transition-fast);
    position: relative;
}

.footer nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-fast);
}

.footer nav a:hover {
    color: var(--accent-gold);
}

.footer nav a:hover::after {
    width: 100%;
}

.footer p {
    font-size: 14px;
    opacity: 0.6;
}

/* ==================== レスポンシブ ==================== */

/* タブレット */
@media (max-width: 1024px) {
    .entry-cards {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 32px;
    }
    
    .site-name a {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .nav-link {
        padding: 18px 20px;
        font-size: 14px;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-container {
        padding: 60px 0 40px;
    }
    
    .site-name a {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 16px 16px;
        font-size: 13px;
    }
    
    .main {
        padding: 60px 0 80px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .entry-cards {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .entry-card-content {
        padding: 24px;
    }
    
    .entry-card-title {
        font-size: 18px;
    }
    
    .cafe-accent {
        padding: 40px 24px;
        margin: 60px 0;
    }
    
    .cafe-accent h3 {
        font-size: 24px;
    }
    
    .cafe-accent p {
        font-size: 15px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer nav a {
        display: block;
        margin: 12px 0;
    }
}

/* 小型スマートフォン */
@media (max-width: 480px) {
    .site-name a {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .entry-card-thumb {
        height: 200px;
    }
    
    .btn {
        padding: 14px 36px;
        font-size: 15px;
    }
}

/* ==================== アニメーション ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-card-wrap {
    animation: fadeInUp 0.6s ease backwards;
}

.entry-card-wrap:nth-child(1) { animation-delay: 0.1s; }
.entry-card-wrap:nth-child(2) { animation-delay: 0.2s; }
.entry-card-wrap:nth-child(3) { animation-delay: 0.3s; }
.entry-card-wrap:nth-child(4) { animation-delay: 0.4s; }
.entry-card-wrap:nth-child(5) { animation-delay: 0.5s; }
.entry-card-wrap:nth-child(6) { animation-delay: 0.6s; }

/* スクロールスムーズ */
html {
    scroll-behavior: smooth;
}

/* ==================== 追加のモダンエフェクト ==================== */

/* グラスモーフィズム効果（ナビゲーション） */
.navi {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* カード内の細かなアニメーション */
.entry-card-wrap:hover .cat-label {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* フォーカス状態の改善 */
a:focus,
button:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* セレクションカラー */
::selection {
    background: var(--accent-gold);
    color: var(--soft-white);
}

::-moz-selection {
    background: var(--accent-gold);
    color: var(--soft-white);
}
