/* Nature Kochi 共通スタイル */

:root {
    --primary-green: #2d5016;
    --forest-green: #3d6b2f;
    --light-green: #7da863;
    --accent-blue: #4a90a4;
    --earth-brown: #8b6f47;
    --soft-cream: #faf8f3;
    --warm-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
    /* Android Chromeの自動ズーム防止 */
    font-size: 16px;
}

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--soft-cream);
    overflow-x: hidden;
    line-height: 1.8;
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex !important;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.3;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-text-main {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    display: block !important;
}

.logo-text-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-gray);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--forest-green);
}

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

.nav-links a.active {
    color: var(--forest-green);
}

.nav-links a.active::after {
    width: 100%;
}

.contact-btn {
    background: linear-gradient(135deg, var(--forest-green), var(--light-green));
    color: white !important;
    padding: 0.8rem 1.8rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(61, 107, 47, 0.3);
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(61, 107, 47, 0.4);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* セクション共通 */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

#topics {
    padding-top: 4rem;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--forest-green), var(--light-green));
    border-radius: 2px;
}

/* 今後の予定のタイトルを1行に収める */
#schedule .section-title {
    white-space: nowrap;
    font-size: clamp(1.5rem, 5vw, 2.8rem);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle:last-of-type {
    margin-bottom: 3rem;
}

/* ボタン */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--forest-green), var(--light-green));
    color: white;
    box-shadow: 0 4px 15px rgba(61, 107, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(61, 107, 47, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

.btn-secondary:hover {
    background: var(--forest-green);
    color: white;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, var(--primary-green), var(--forest-green));
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* アニメーション */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(3deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ */
@media (max-width: 1200px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .logo-text-main {
        font-size: 0.78rem;
    }
    
    .logo-image {
        height: 38px;
    }
    
    .logo {
        gap: 0.4rem;
    }

    .nav-container {
        padding: 0.8rem;
    }
}

/* タッチデバイス用（QHDスマホ対応） */
@media (pointer: coarse) and (hover: none) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .logo-text-main {
        font-size: 0.78rem;
    }
    
    .logo-image {
        height: 38px;
    }
    
    .logo {
        gap: 0.4rem;
    }

    .nav-container {
        padding: 0.8rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        text-align: center;
    }
}
