@charset "UTF-8";

/* ==========================================================================
   Design System & Theme Tokens (中文会 - Traditional Modern)
   ========================================================================== */
:root {
    /* 伝統色を取り入れたカラーパレット */
    --primary-color: #a82b2b;       /* 深緋 (こきひ) */
    --primary-hover: #861f1f;
    --primary-light: #fdf2f2;
    --secondary-color: #1e293b;     /* 墨黒・濃紺 */

    --text-color: #2b2d42;          /* チャコール */
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 2px 8px rgba(27, 38, 59, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(27, 38, 59, 0.08);
    --shadow-lg: 0 20px 32px -8px rgba(27, 38, 59, 0.12);
    --shadow-hover: 0 16px 36px -6px rgba(168, 43, 43, 0.12);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Sans JP", serif;
    color: var(--text-color);
    background: var(--bg-main);
    line-height: 1.85;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main {
    flex: 1;
    overflow-x: hidden;
}

/* 汎用ユーティリティ */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.py-5 { padding: 4.5rem 0; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.2rem; }
.bg-light { background-color: var(--bg-light); }

/* ==========================================================================
   Sections & Headings (共通見出し)
   ========================================================================== */
.section {
    padding: 5.5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.sub-title {
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.main-title {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons (共通ボタン)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
    padding: 0.8rem 2rem;
    min-height: 46px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168, 43, 43, 0.28);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--secondary-color);
}

.btn-secondary {
    background: #475569;
    color: #fff;
}

.btn-secondary:hover {
    background: #334155;
}

.btn-outline-dark {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--secondary-color);
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.site-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.site-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.site-nav {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.site-nav a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.site-nav a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary-color);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.nav-btn {
    padding: 0.55rem 1.3rem !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(168, 43, 43, 0.22);
    transition: var(--transition) !important;
}

.nav-btn::after {
    display: none !important;
}

.nav-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Page Banners (下層ページ共通)
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, #111827 0%, #1f293d 100%);
    color: #fff;
    padding: 3.8rem 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.page-banner h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: 0.12em;
    font-weight: 700;
}

.page-banner p {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.98rem;
}

/* ==========================================================================
   Widgets & Top Button
   ========================================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: var(--primary-color);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(168, 43, 43, 0.35);
    z-index: 99;
    transition: var(--transition);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0 1.8rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    font-size: 0.9rem;
    color: #64748b;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.8rem;
    color: #475569;
}

.footer-sub-links {
    margin-bottom: 0.8rem;
}

.footer-sub-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.footer-sub-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* SNSリンクラッパー */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    align-items: center;
}

/* 各アイコンのボタンデザイン */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.footer-social a svg {
    transition: transform 0.2s ease;
}

/* ホバー時の演出（深緋色にふわりと光る） */
.footer-social a:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 43, 43, 0.35);
}

.footer-social a:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   共通 Mobile Responsive (768px以下)
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .py-5 {
        padding: 3rem 0;
    }

    .section {
        padding: 3.8rem 0;
    }

    .section-header {
        margin-bottom: 2.2rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem 1.2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        gap: 0.8rem;
    }

    .site-nav.open {
        display: flex;
        animation: slideDown 0.25s ease-out forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .site-nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .site-nav a:last-child {
        border-bottom: none;
        margin-top: 0.4rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem 1.2rem;
    }

    .footer-links a {
        margin-left: 0;
        display: inline-block;
        font-size: 0.88rem;
    }
}