/*
Theme Name: luluhua-base-2
Theme URI: https://luluhua.com/luluhua-base-2
Author: increment-oita
Author URI: https://increment-oita.com
Description: Lulu-hua-theme.
Version: 1.0.0
Text Domain: luluhua-base-2
*/

:root {
    /* 60:30:10 Color Scheme */
    /* Base Color (60%): Light Grey/Mint (Backgrounds) */
    --color-base: #F4F7F6;
    /* Main Color (30%): Plant Green (Headers, Buttons, Accents) */
    --color-main: #4A7C59;
    /* Accent Color (10%): Earth Brown (Highlights, Calls to Action) */
    --color-accent: #D4A373;
    
    /* Text Colors */
    --color-text-main: #333333;
    --color-text-light: #ffffff;

  /* Font-Size : 計算式: clamp(最小サイズ, 最小サイズ + (最大 - 最小) * ((100vw - 320px) / (1200 - 320)), 最大サイズ)
     ※1rem = 16px換算
  */

  --font-size-h1: clamp(1.75rem, 1.35rem + 2vw, 2.5rem);    /* 28px 〜 40px */
  --font-size-h2: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);   /* 24px 〜 32px */
  --font-size-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);  /* 20px 〜 24px */
  --font-size-h4: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);/* 18px 〜 20px */
  --font-size-h5: clamp(1rem, 1rem + 0vw, 1.125rem);       /* 16px 〜 18px */
  --font-size-base: 1rem; /* 標準テキスト 16px */
}

h1 { font-size: var(--font-size-h1); line-height: 1.3; margin-bottom: 1.5rem; }
h2 { font-size: var(--font-size-h2); line-height: 1.4; margin-top: 2rem; }
h3 { font-size: var(--font-size-h3); line-height: 1.5; }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); font-weight: bold; }

body {
    background-color: var(--color-base);
    color: var(--color-text-main);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

a {
    color: var(--color-main);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: var(--color-main);
    color: var(--color-text-light);
    padding: 1rem 0;
}

.site-title a {
    color: var(--color-text-light);
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Navigation */

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--color-text-light);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-navigation a {
    color: var(--color-text-light);
    font-weight: 500;
}

.footer-navigation a:hover {
    color: var(--color-accent);
    text-decoration: none;
}


/* Mobile Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-card-img {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #eee;
}

.blog-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--color-text-main);
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.blog-card-cat {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-main);
}

/* Sidebar */
.widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title {
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul ul {
    margin-left: 1.5rem; /* Indent children */
}

.widget li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Sidebar - Popular Posts */
.popular-posts-list .pop-post-item {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    align-items: center;
}

.pop-post-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background: #eee;
}

.pop-post-title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
}

.pop-post-title a {
    color: var(--color-text-main);
}

/* Footer */
.site-footer {
    background-color: var(--color-main);
    color: var(--color-text-light);
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
    text-align: center;
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-accent);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 99;
}

.back-to-top:hover {
    opacity: 1;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-navigation {
        display: none; /* Hidden on mobile */
    }

    .hamburger-menu {
        display: block;
    }
    
    .sidebar-area {
        display: none; /* Hide sidebar in main flow on mobile */
    }

    .footer-navigation ul {
        display: block;
    }


    
}
