/* ========================================
   第45回全国城下町シンポジウム唐津大会
   メインスタイルシート
======================================== */

/* CSS変数 */
:root {
    --primary-color: #9B8BCB;      /* 紫（さらに薄め） */
    --primary-dark: #7B6BAA;
    --primary-light: #B8ABDD;
    --secondary-color: #C5BADD;
    --accent-color: #D4CBEE;
    --text-color: #333333;
    --text-light: #666666;
    --bg-gray: #f5f5f7;
    --white: #ffffff;
    --black: #1a1a1a;
    --border-color: #e0e0e0;
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --header-height: 80px;
    --container-width: 1200px;
}

/* リセット */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* コンテナ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.logo-theme {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.08em;
}

.logo-theme-en {
    font-size: 0.55rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
}

.logo-subtitle {
    font-size: 0.5rem;
    color: var(--primary-dark);
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ナビゲーション */
.main-nav > ul {
    display: flex;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.main-nav a.nav-contact {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 10px 20px;
}

.main-nav a.nav-contact:hover {
    background: var(--primary-dark);
}

/* ドロップダウンメニュー */
.has-dropdown {
    position: relative;
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 10px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* モバイルメニューボタン */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ========================================
   メインコンテンツ
======================================== */
.main-content {
    padding-top: var(--header-height);
}

.main-content.has-hero {
    padding-top: 0;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 20px;
    margin-top: 150px;
}

.hero-logo {
    width: 300px;
    max-width: 80%;
    margin-bottom: 30px;
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.hero-theme {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.hero-theme-en {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-top: 20px;
    opacity: 0.85;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    display: inline-block;
}

.hero-credit {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--white);
    margin: 10px auto 0;
}

/* ページヒーロー（サブページ用） */
.page-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
    margin-top: var(--header-height);
}

.page-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 20px;
    margin-top: 0;
}

.page-hero .page-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.page-hero .page-title-en {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   セクション共通
======================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-en {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

/* ========================================
   お知らせセクション
======================================== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:first-child {
    padding-top: 0;
}

.news-date {
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
}

.news-title {
    flex: 1;
}

.news-title a {
    color: var(--text-color);
}

.news-title a:hover {
    color: var(--primary-color);
}

/* ========================================
   フッター
======================================== */
.site-footer {
    background: var(--black);
    color: var(--white);
}

.footer-simple {
    padding: 30px 0;
    text-align: center;
}

.footer-simple .footer-org {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-simple .footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
    .main-nav a {
        padding: 10px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .logo-title {
        font-size: 0.5rem;
    }

    .logo-theme {
        font-size: 0.8rem;
    }

    .logo-theme-en {
        font-size: 0.45rem;
    }

    .logo-subtitle {
        font-size: 0.4rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 20px 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

    .has-dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-light, #f5f5f5);
        padding: 0;
        border-radius: 0;
    }

    .dropdown-menu a {
        padding: 12px 15px 12px 30px;
        font-size: 13px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        min-height: 500px;
    }

    .hero-logo {
        width: 200px;
    }

    .hero-date {
        font-size: 1.2rem;
    }

    .hero-theme {
        font-size: 1.8rem;
    }

    .hero-theme-en {
        font-size: 1rem;
    }

    .page-hero {
        height: 200px;
    }

    .page-hero .page-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }
}

/* number入力の上下スピナー(矢印)を全廃 — 人間は使わない */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
