/* ==============================================
   わんぱく相撲 唐津場所
   ============================================== */
:root {
    --primary: #C62828;
    --primary-dark: #8E0000;
    --primary-light: #FF5F52;
    --accent: #FF8F00;
    --text: #333;
    --text-light: #777;
    --bg: #fff;
    --bg-gray: #f7f5f2;
    --border: #e8e8e8;
    --header-h: 80px;
    --max-w: 1000px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: 'Noto Sans JP', -apple-system, sans-serif;
    font-size: 15px; line-height: 1.9; color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============= Header ============= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    height: var(--header-h);
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo a { display: flex; align-items: center; gap: 10px; }
.logo-img {
    height: 44px; width: auto;
    transition: filter 0.4s;
}
.site-header.scrolled .logo-img {
    filter: brightness(0);
}
.logo-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px; font-weight: 900; color: #fff;
    white-space: nowrap; transition: color 0.4s;
}
.site-header.scrolled .logo-title { color: var(--text); }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block; padding: 8px 16px; font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.8); border-radius: 6px; transition: 0.3s;
}
.main-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.site-header.scrolled .main-nav a { color: var(--text); }
.site-header.scrolled .main-nav a:hover { background: var(--bg-gray); color: var(--primary); }

.mobile-menu-btn {
    display: none; width: 28px; height: 20px;
    background: none; border: none; cursor: pointer; position: relative; z-index: 1001;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px; background: #fff;
    position: absolute; left: 0; transition: 0.3s;
}
.site-header.scrolled .mobile-menu-btn span { background: var(--text); }
.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); background: var(--text); }
.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); background: var(--text); }

/* ============= Hero ============= */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.35);
}

.hero-content {
    position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px;
}
.hero-logo {
    width: 180px; height: auto; margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}
.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(36px, 7vw, 64px); font-weight: 900;
    line-height: 1.15; letter-spacing: 0.08em; margin-bottom: 4px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero-title-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(18px, 3vw, 28px); font-weight: 700;
    color: var(--accent); letter-spacing: 0.2em; margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-catch {
    font-size: 15px; letter-spacing: 4px; opacity: 0.7; margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-illust {
    width: 240px; height: auto; margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.35s both;
}
.hero-info {
    display: inline-flex; gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px;
    font-size: 13px; letter-spacing: 2px; opacity: 0.5;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 2; text-align: center; color: rgba(255,255,255,0.4);
}
.hero-scroll span { font-size: 10px; letter-spacing: 3px; }
.hero-scroll-bar {
    width: 1px; height: 40px; margin: 8px auto 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); }
    100% { opacity: 1; transform: scaleY(1); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============= Section ============= */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-en {
    font-size: 11px; letter-spacing: 5px; color: var(--primary);
    font-weight: 600; margin-bottom: 10px;
}
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(22px, 3vw, 28px); font-weight: 900;
}
.section-title::after {
    content: ''; display: block;
    width: 40px; height: 2px; background: var(--primary);
    margin: 14px auto 0;
}

/* ============= About ============= */
.about-content {
    max-width: 680px; margin: 0 auto; text-align: center;
}
.about-illust {
    width: 200px; height: auto; margin-bottom: 20px;
}
.about-content p {
    font-size: 15px; line-height: 2.2; color: var(--text-light); margin-bottom: 12px;
}
.about-content strong {
    color: var(--text); font-weight: 700;
}

/* ============= Numbers ============= */
.numbers {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    text-align: center;
}
.number-item { padding: 36px 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.number-item:last-child { border-right: none; }
.number-val {
    font-family: 'Noto Serif JP', serif;
    font-size: 40px; font-weight: 900; line-height: 1.2;
}
.number-unit {
    font-size: 16px; font-weight: 700;
}
.number-label { font-size: 13px; opacity: 0.7; margin-top: 4px; }

/* ============= Tournament Cards ============= */
.tournament-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tournament-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.tournament-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.tournament-card-img {
    padding: 24px 24px 8px; text-align: center;
}
.tournament-card-img img {
    width: 160px; height: auto;
}
.tournament-card-badge {
    display: inline-block;
    background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    padding: 3px 12px; border-radius: 3px; margin-bottom: 10px;
}
.tournament-card-body { padding: 0 24px 28px; }
.tournament-card-body h3 { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.tournament-card-body p { font-size: 13px; color: var(--text-light); line-height: 1.8; text-align: left; }

/* ============= Flow ============= */
.flow { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.flow-item {
    flex: 1; text-align: center; padding: 0 12px;
}
.flow-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; margin: 0 auto 14px;
}
.flow-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.flow-body p { font-size: 13px; color: var(--text-light); }
.flow-arrow {
    flex-shrink: 0; width: 24px; margin-top: 20px;
    display: flex; align-items: center; justify-content: center;
}
.flow-arrow::after { content: '▶'; font-size: 11px; color: #ccc; }

/* ============= CTA ============= */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #D84315 100%);
    color: #fff; text-align: center;
}
.cta-inner { padding: 16px 0; }
.cta-label { font-size: 11px; letter-spacing: 5px; opacity: 0.5; margin-bottom: 10px; }
.cta-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(22px, 4vw, 32px); font-weight: 900; margin-bottom: 10px;
}
.cta-text { font-size: 15px; opacity: 0.85; }
.cta-notice { font-size: 12px; opacity: 0.5; margin-top: 14px; }
.btn-white-outline {
    display: inline-block; margin-top: 20px;
    border: 2px solid #fff; color: #fff; padding: 12px 36px;
    border-radius: 50px; font-weight: 700; font-size: 14px;
    transition: 0.3s;
}
.btn-white-outline:hover { background: #fff; color: var(--primary); }

/* ============= Info Table ============= */
.info-table {
    width: 100%; max-width: 640px; margin: 0 auto;
    border-collapse: collapse;
}
.info-table th, .info-table td {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    font-size: 14px; text-align: left;
}
.info-table th {
    width: 120px; font-weight: 700; color: var(--primary);
    background: #fafafa;
}

/* ============= News ============= */
.news-list { max-width: 640px; margin: 0 auto; }
.news-empty { text-align: center; color: #bbb; font-size: 14px; padding: 24px 0; }

/* ============= Footer ============= */
.site-footer {
    background: #1a1a1a; color: rgba(255,255,255,0.5);
    padding: 48px 24px; text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo-img {
    height: 48px; width: auto; margin-bottom: 16px; opacity: 0.7;
}
.footer-org { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.footer-link { margin: 12px 0; }
.footer-link a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: underline; transition: color 0.3s; }
.footer-link a:hover { color: #fff; }
.footer-copy { font-size: 10px; opacity: 0.3; }

/* ============= Responsive ============= */
@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .mobile-menu-btn { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px;
        height: 100vh; background: #fff; padding: 80px 20px 40px;
        transition: right 0.3s; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; }
    .main-nav a {
        padding: 14px 16px; border-bottom: 1px solid var(--border);
        color: var(--text); border-radius: 0;
    }

    .hero { min-height: 100svh; }
    .hero-logo { width: 120px; }
    .hero-illust { width: 180px; }
    .hero-title { letter-spacing: 0.04em; }

    .section { padding: 56px 0; }
    .section-header { margin-bottom: 32px; }

    .numbers { grid-template-columns: 1fr; gap: 0; }
    .number-item { padding: 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .number-item:last-child { border-bottom: none; }
    .number-val { font-size: 32px; }

    .tournament-cards { grid-template-columns: 1fr; }

    .flow { flex-direction: column; align-items: stretch; gap: 0; }
    .flow-item { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 0; }
    .flow-num { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 16px; }
    .flow-arrow { width: auto; margin: 0; padding-left: 18px; }
    .flow-arrow::after { content: '▼'; font-size: 10px; }

    .info-table th { width: 90px; font-size: 13px; }
    .info-table td { font-size: 13px; }
}
