/* ═══════════════════════════════════════════════════════════
   HMST Kentei - Ultimate Refined CSS
   ────────────────────────────────────────────────────────
   Author: Code Alchemist Ver. 6.1
   Philosophy: Beauty, Sustainability, Human Value
   Date: 2025-11-02
   Version: 2.0 (重複排除完全版)
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   1. DESIGN TOKENS - The Alchemical Foundation
   ─────────────────────────────────────────────────────────── */
:root {
    --color-primary-50: #FAF5EF;
    --color-primary-100: #F3E9DC;
    --color-primary-200: #E7D3B9;
    --color-primary-300: #D2B48C;
    --color-primary-400: #B8956A;
    --color-primary-500: #8B4513;
    --color-primary-600: #6B2D0A;
    --color-primary-700: #4A1F07;
    --color-primary-800: #2E1305;
    --color-primary-900: #1A0B03;

    --color-accent-50: #E8F2F8;
    --color-accent-100: #C8E1F0;
    --color-accent-200: #91C3E0;
    --color-accent-300: #5AA5D0;
    --color-accent-400: #4682B4;
    --color-accent-500: #3A6A92;
    --color-accent-600: #2E5370;
    --color-accent-700: #213B4E;
    --color-accent-800: #15242C;
    --color-accent-900: #0A0C0E;

    --color-neutral-50: #FAFAFA;
    --color-neutral-100: #F4F1E9;
    --color-neutral-200: #E0E0E0;
    --color-neutral-300: #BDBDBD;
    --color-neutral-400: #9E9E9E;
    --color-neutral-500: #757575;
    --color-neutral-600: #616161;
    --color-neutral-700: #424242;
    --color-neutral-800: #3D3D3D;
    --color-neutral-900: #212121;

    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #DC3545;
    --color-info: #17A2B8;

    --color-text-base: var(--color-neutral-800);
    --color-text-muted: var(--color-neutral-500);
    --color-text-inverse: var(--color-neutral-50);
    --color-bg-base: var(--color-neutral-100);
    --color-bg-surface: #FFFFFF;
    --color-bg-elevated: #FFFFFF;
    --color-border-subtle: var(--color-neutral-200);
    --color-border-base: var(--color-neutral-300);

    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'M PLUS Rounded 1c', var(--font-sans);

    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --font-size-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --font-size-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --line-height-loose: 2;

    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --container-xs: 640px;
    --container-sm: 768px;
    --container-md: 1024px;
    --container-lg: 1100px;
    --container-xl: 1280px;

    --radius-sm: 4px;
    --radius-base: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --duration-instant: 100ms;
    --duration-fast: 200ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;

    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ───────────────────────────────────────────────────────────
   2. RESET & FOUNDATION
   ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-base);
    background-color: var(--color-bg-base);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ─────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-primary-500);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-6);
}

h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-4);
    max-width: 65ch;
}

strong,
b {
    font-weight: var(--font-weight-bold);
}

em,
i {
    font-style: italic;
}

small {
    font-size: var(--font-size-sm);
}

a {
    color: var(--color-accent-400);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-accent-600);
}

a:focus-visible {
    outline: 2px solid var(--color-accent-400);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul,
ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

li {
    margin-bottom: var(--space-2);
}

li:last-child {
    margin-bottom: 0;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    border-radius: var(--radius-base);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ───────────────────────────────────────────────────────────
   4. LAYOUT SYSTEM
   ─────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-lg);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-6);
    }
}

.page-section {
    padding-block: var(--space-16);
}

@media (min-width: 768px) {
    .page-section {
        padding-block: var(--space-20);
    }
}

.content-section {
    background-color: var(--color-bg-elevated);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    margin-bottom: var(--space-8);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-8);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-8);
    align-items: start;
}

/* ───────────────────────────────────────────────────────────
   5. HEADER & NAVIGATION
   ─────────────────────────────────────────────────────────── */
.site-header {
    background-color: var(--color-bg-surface);
    box-shadow: var(--shadow-sm);
    padding-block: var(--space-3);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: background-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo:hover {
    opacity: 0.8;
}

.logo:focus-visible {
    outline: 2px solid var(--color-accent-400);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

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

.global-nav {
    display: flex;
    align-items: center;
}

.global-nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-nav-list li {
    margin: 0;
}

.global-nav-list a {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    color: var(--color-primary-500);
    padding-block: var(--space-2);
    position: relative;
    display: inline-block;
}

.global-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-400);
    transition: width var(--duration-base) var(--ease-spring);
}

.global-nav-list a:hover::after,
.global-nav-list li.active a::after {
    width: 100%;
}

.nav-contact-button {
    background-color: var(--color-accent-400);
    color: var(--color-text-inverse) !important;
    padding: var(--space-2) var(--space-5) !important;
    border-radius: var(--radius-full);
    transition: background-color var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.nav-contact-button:hover {
    background-color: var(--color-accent-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-contact-button::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    width: 44px;
    height: 44px;
    position: relative;
    z-index: calc(var(--z-sticky) + 1);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--color-accent-400);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-500);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-in-out);
}

.menu-toggle-icon {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: translate(-50%, 0) rotate(-45deg);
}

/* ───────────────────────────────────────────────────────────
   6. FOOTER
   ─────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-primary-700);
    color: var(--color-primary-100);
    padding-block: var(--space-16) var(--space-6);
    font-size: var(--font-size-sm);
}

.site-footer a {
    color: var(--color-primary-200);
    transition: color var(--duration-fast) var(--ease-out);
}

.site-footer a:hover {
    color: var(--color-bg-surface);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
}

.footer-logo-about {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo img {
    height: 36px;
    width: auto;
}

.footer-about-text {
    color: var(--color-primary-200);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav-heading {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-bg-surface);
    margin-bottom: var(--space-4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-primary-200);
    font-size: 1.25rem;
    transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.social-icon:hover {
    background-color: var(--color-bg-surface);
    color: var(--color-primary-700);
    transform: translateY(-2px);
}

.copyright {
    font-size: var(--font-size-xs);
    color: var(--color-primary-300);
    margin: 0;
}

/* ───────────────────────────────────────────────────────────
   7. COMPONENTS
   ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
    line-height: 1;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
    user-select: none;
}

.btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.btn-primary {
    background-color: var(--color-accent-400);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-accent-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-400);
    border-color: var(--color-accent-400);
}

.btn-secondary:hover {
    background-color: var(--color-accent-400);
    color: var(--color-text-inverse);
}

.feature-card {
    background-color: var(--color-bg-surface);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    text-align: center;
    transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--color-accent-400);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    color: var(--color-primary-500);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--color-text-muted);
    margin: 0;
}

.level-card {
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
    border: 1px solid var(--color-border-subtle);
}

.level-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent-400);
}

.level-card-header {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: var(--color-text-inverse);
    padding: var(--space-6);
    text-align: center;
}

.level-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-inverse);
    font-family: var(--font-display);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-lg);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.level-card-header h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text-inverse);
    margin: 0;
}

.level-card-body {
    padding: var(--space-6);
    flex-grow: 1;
}

.level-features {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.level-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
}

.level-features .fa-check-circle {
    color: var(--color-success);
    flex-shrink: 0;
}

.level-card-footer {
    padding: var(--space-6);
    padding-top: 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.news-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
    border-radius: var(--radius-base);
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    transition: all var(--duration-fast) var(--ease-out);
}

.news-item:hover {
    border-color: var(--color-accent-400);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.news-item time {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    font-variant-numeric: tabular-nums;
}

.news-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-category.info {
    background-color: var(--color-accent-100);
    color: var(--color-accent-700);
}

.news-category.event {
    background-color: var(--color-primary-100);
    color: var(--color-primary-700);
}

.news-item p {
    margin: 0;
    color: var(--color-text-base);
    font-weight: var(--font-weight-medium);
}

.page-top-button {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    background-color: var(--color-accent-400);
    color: var(--color-text-inverse);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all var(--duration-base) var(--ease-spring);
    z-index: var(--z-fixed);
}

.page-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.page-top-button:hover {
    background-color: var(--color-accent-600);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.page-top-button:active {
    transform: translateY(-2px) scale(0.95);
}

/* ───────────────────────────────────────────────────────────
   8. PAGE-SPECIFIC STYLES
   ─────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, rgba(244, 241, 233, 0.95) 0%, rgba(244, 241, 233, 0.7) 100%), url('/img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: var(--space-20) 0;
}

.hero-section h1 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    color: var(--color-primary-600);
}

.hero-section p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin-bottom: var(--space-8);
    color: var(--color-text-base);
}

.pc-only {
    display: inline;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-4);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-400), var(--color-primary-500));
    border-radius: var(--radius-full);
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-inline: auto;
}

.breadcrumb {
    margin-bottom: var(--space-8);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin: 0;
}

.breadcrumb li::after {
    content: '›';
    margin-inline: var(--space-2);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-normal);
}

.breadcrumb li:last-child::after {
    content: none;
}

.breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

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

.breadcrumb .current {
    color: var(--color-text-base);
    font-weight: var(--font-weight-medium);
}

.page-header {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: var(--color-text-inverse);
    padding: var(--space-16) 0;
    margin-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-header h1 {
    color: var(--color-text-inverse);
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header[style*="background-image"] {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: var(--space-20) 0 var(--space-16);
    min-height: 320px;
    display: flex;
    align-items: center;
}

.page-header[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.85) 0%, rgba(107, 45, 10, 0.90) 100%);
}

.page-header[style*="background-image"] .container {
    position: relative;
    z-index: 2;
}

.page-header-subtitle {
    font-family: var(--font-display);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-100);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--font-size-sm);
    color: var(--color-primary-100);
}

.article-meta time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-weight-medium);
}

.article-meta time::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--font-size-base);
}

/* ───────────────────────────────────────────────────────────
   9. ACCORDION (FAQ)
   ─────────────────────────────────────────────────────────── */
.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.accordion-item {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.accordion-item:hover {
    border-color: var(--color-accent-400);
    box-shadow: var(--shadow-sm);
}

.accordion-item.is-open {
    border-color: var(--color-accent-400);
    box-shadow: var(--shadow-md);
}

.accordion-button {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-500);
    transition: all var(--duration-fast) var(--ease-out);
}

.accordion-button::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--font-size-sm);
    color: var(--color-accent-400);
    transition: transform var(--duration-base) var(--ease-spring);
    flex-shrink: 0;
}

.accordion-button[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-button:hover {
    color: var(--color-accent-600);
    background-color: var(--color-neutral-50);
}

.accordion-button:focus-visible {
    outline: 2px solid var(--color-accent-400);
    outline-offset: -2px;
}

.accordion-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--color-text-base);
    line-height: var(--line-height-relaxed);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height var(--duration-slow) var(--ease-out), opacity var(--duration-base) var(--ease-out), padding var(--duration-base) var(--ease-out);
}

.accordion-content:not([hidden]) {
    max-height: 1000px;
    opacity: 1;
}

.accordion-content p {
    margin: 0;
    font-size: var(--font-size-base);
}

.accordion-content a {
    color: var(--color-accent-400);
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.accordion-content a:hover {
    text-decoration-color: currentColor;
}

.content-section#faq-accordion-container {
    background: linear-gradient(to bottom, var(--color-bg-surface), var(--color-neutral-50));
    padding: var(--space-10);
    border: none;
    box-shadow: none;
}

/* ───────────────────────────────────────────────────────────
   10. ONLINE EXAM SYSTEM
   ─────────────────────────────────────────────────────────── */
#exam-container {
    max-width: 900px;
    margin: 0 auto;
}

#start-screen {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

#start-screen h2 {
    color: var(--color-primary-500);
    margin-bottom: var(--space-6);
}

#start-screen p {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    max-width: 600px;
    margin-inline: auto;
}

#start-exam-btn {
    margin-top: var(--space-8);
    font-size: var(--font-size-lg);
    padding: var(--space-5) var(--space-12);
}

#quiz-screen {
    padding: var(--space-6);
}

#timer {
    background: linear-gradient(135deg, var(--color-accent-400), var(--color-accent-500));
    color: var(--color-text-inverse);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

#timer::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--font-size-lg);
}

#question-container {
    background-color: var(--color-bg-surface);
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-base);
}

.question-item {
    margin-bottom: var(--space-10);
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-number {
    display: inline-block;
    background-color: var(--color-primary-500);
    color: var(--color-text-inverse);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.question-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-base);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.answer-option {
    position: relative;
}

.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.answer-option label {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background-color: var(--color-neutral-50);
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.answer-option label::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border-base);
    border-radius: 50%;
    background-color: var(--color-bg-surface);
    transition: all var(--duration-fast) var(--ease-out);
}

.answer-option label:hover {
    background-color: var(--color-accent-50);
    border-color: var(--color-accent-400);
}

.answer-option input[type="radio"]:checked+label {
    background-color: var(--color-accent-100);
    border-color: var(--color-accent-400);
    font-weight: var(--font-weight-medium);
}

.answer-option input[type="radio"]:checked+label::before {
    border-color: var(--color-accent-400);
    background-color: var(--color-accent-400);
    box-shadow: inset 0 0 0 4px var(--color-bg-surface);
}

.answer-option input[type="radio"]:focus-visible+label {
    outline: 2px solid var(--color-accent-400);
    outline-offset: 2px;
}

.answer-option.correct label {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--color-success);
}

.answer-option.incorrect label {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--color-danger);
}

.answer-option.correct label::after {
    content: '✓ 正解';
    margin-left: auto;
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.answer-option.incorrect label::after {
    content: '✗ 不正解';
    margin-left: auto;
    color: var(--color-danger);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.quiz-navigation .btn {
    flex: 1;
    min-width: 150px;
}

#result-screen {
    text-align: center;
    padding: var(--space-8);
}

#result-screen h2 {
    color: var(--color-primary-500);
    margin-bottom: var(--space-8);
}

#score-display {
    background: linear-gradient(135deg, var(--color-accent-400), var(--color-accent-600));
    color: var(--color-text-inverse);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
}

#score-display .score-value {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-4);
}

#score-display .score-label {
    font-size: var(--font-size-lg);
    opacity: 0.95;
}

#feedback-display {
    background-color: var(--color-neutral-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
    border-left: 4px solid var(--color-accent-400);
}

#feedback-display p {
    font-size: var(--font-size-lg);
    color: var(--color-text-base);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

#certificate-link-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 400px;
    margin: var(--space-8) auto;
}

#certificate-link {
    background: linear-gradient(135deg, var(--color-success), #20894b);
    box-shadow: var(--shadow-md);
}

#certificate-link:hover {
    background: linear-gradient(135deg, #20894b, var(--color-success));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#review-answers-btn {
    margin-top: var(--space-6);
}

/* ───────────────────────────────────────────────────────────
   11. COLUMN & VOICES PAGES
   ─────────────────────────────────────────────────────────── */
.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.column-card {
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
    border: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
}

.column-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent-400);
}

.column-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.column-card-thumbnail {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.column-card-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.column-card-thumbnail i {
    font-size: 4rem;
    color: var(--color-text-inverse);
    position: relative;
    z-index: 1;
}

.column-card-content {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.column-card-header {
    margin-bottom: var(--space-4);
}

.column-card-category {
    display: inline-block;
    background-color: var(--color-accent-100);
    color: var(--color-accent-700);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.column-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    color: var(--color-primary-500);
    margin: 0;
}

.column-card-excerpt {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.column-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-subtle);
    margin-top: auto;
}

.column-card-footer time {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.voice-card {
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--color-border-subtle);
    transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.voice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-400);
}

.voice-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.voice-avatar-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent-400), var(--color-accent-500));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.voice-avatar-placeholder i {
    font-size: 2rem;
    color: var(--color-text-inverse);
}

.voice-card-title h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-500);
    margin: 0 0 var(--space-1) 0;
}

.voice-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    margin: 0;
}

.voice-card-body {
    flex-grow: 1;
}

.voice-card-body h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-500);
    margin-bottom: var(--space-3);
}

.voice-card-body blockquote {
    margin: 0;
    padding: var(--space-4);
    background-color: var(--color-neutral-50);
    border-left: 4px solid var(--color-accent-400);
    border-radius: var(--radius-base);
}

.voice-card-body blockquote p {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-base);
    margin: 0;
}

.voice-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-subtle);
}

.voice-card-footer .tag {
    display: inline-block;
    background-color: var(--color-primary-100);
    color: var(--color-primary-600);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.voice-card.is-placeholder {
    background: linear-gradient(135deg, var(--color-neutral-50), var(--color-neutral-100));
    border-style: dashed;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.voice-card.is-placeholder p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin: 0;
    font-weight: var(--font-weight-medium);
}

.voice-card.is-placeholder:hover {
    transform: none;
    box-shadow: var(--shadow-base);
    border-color: var(--color-border-subtle);
}

.page-intro {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto var(--space-10);
}

/* ───────────────────────────────────────────────────────────
   12. ARTICLE PAGES
   ─────────────────────────────────────────────────────────── */
.article-layout {
    display: flex;
    gap: var(--space-12);
    align-items: start;
}

.article-content {
    flex: 3;
    background-color: var(--color-bg-surface);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base);
}

.article-sidebar {
    flex: 1;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.article-lead {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-primary-500);
    font-weight: var(--font-weight-medium);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-accent-50));
    border-left: 4px solid var(--color-accent-400);
    border-radius: var(--radius-base);
    margin-bottom: var(--space-10);
}

.article-content section {
    margin-bottom: var(--space-10);
}

.article-content section:last-child {
    margin-bottom: 0;
}

.article-content h2 {
    font-size: var(--font-size-xl);
    color: var(--color-primary-500);
    margin-top: var(--space-10);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary-500);
    position: relative;
}

.article-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-400), var(--color-primary-500));
}

.article-content h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary-500);
    margin-bottom: var(--space-4);
    margin-top: var(--space-6);
}

.article-content p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-base);
    margin-bottom: var(--space-5);
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-8);
}

.article-content li {
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-3);
}

.article-content strong,
.article-content b {
    color: var(--color-primary-600);
    font-weight: var(--font-weight-bold);
}

.article-content blockquote,
.article-quote {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    background-color: var(--color-neutral-50);
    border-left: 5px solid var(--color-primary-500);
    border-radius: var(--radius-base);
    font-style: italic;
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

.article-content blockquote p,
.article-quote p {
    margin-bottom: 0;
}

.share-section,
.author-profile {
    background-color: var(--color-bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--color-border-subtle);
    margin-bottom: var(--space-6);
}

.share-section h3,
.author-profile h4 {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-500);
    margin-bottom: var(--space-4);
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.share-buttons a,
.share-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-base);
    font-family: var(--font-display);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    border: 2px solid transparent;
}

#share-x {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

#share-x:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#share-facebook {
    background-color: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
}

#share-facebook:hover {
    background-color: #145dbf;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#copy-url-button {
    background-color: var(--color-neutral-200);
    color: var(--color-text-base);
    border-color: var(--color-neutral-300);
}

#copy-url-button:hover {
    background-color: var(--color-neutral-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#native-share-button {
    background-color: var(--color-accent-400);
    color: var(--color-text-inverse);
    border-color: var(--color-accent-400);
}

#native-share-button:hover {
    background-color: var(--color-accent-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.copy-success {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-success);
    font-weight: var(--font-weight-medium);
    margin-top: var(--space-3);
    height: 1.2em;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.copy-success.show {
    opacity: 1;
}

.author-profile {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid var(--color-primary-200);
}

.author-name {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-500);
    text-align: center;
    margin-bottom: var(--space-2);
}

.author-bio {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    text-align: center;
}

/* ───────────────────────────────────────────────────────────
   13. UTILITY CLASSES
   ─────────────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-link {
    color: var(--color-accent-400);
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
    transition: color var(--duration-fast) var(--ease-out);
}

.text-link:hover {
    color: var(--color-accent-600);
}

/* ───────────────────────────────────────────────────────────
   14. RESPONSIVE DESIGN
   ─────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .global-nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        padding: var(--space-10);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all var(--duration-slow) var(--ease-in-out);
        z-index: var(--z-sticky);
    }

    .global-nav-list.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .global-nav-list li {
        width: 100%;
        text-align: center;
    }

    .global-nav-list a {
        font-size: var(--font-size-xl);
        padding: var(--space-4);
        display: block;
    }

    .nav-contact-button {
        width: 100%;
        max-width: 300px;
        margin-top: var(--space-4);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-section {
        background-attachment: scroll;
        padding: var(--space-16) 0;
    }

    .pc-only {
        display: none;
    }

    .article-layout {
        flex-direction: column;
        gap: var(--space-8);
    }

    .article-content {
        flex: 1;
    }

    .article-sidebar {
        position: static;
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .page-section {
        padding-block: var(--space-12);
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .page-top-button {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 48px;
        height: 48px;
    }

    .accordion-button {
        font-size: var(--font-size-base);
        padding: var(--space-4) var(--space-5);
    }

    .accordion-content {
        padding: 0 var(--space-5) var(--space-5);
    }

    .content-section#faq-accordion-container {
        padding: var(--space-6);
    }

    #start-screen {
        padding: var(--space-8) var(--space-4);
    }

    #quiz-screen {
        padding: var(--space-4);
    }

    #question-container {
        padding: var(--space-5);
    }

    .question-text {
        font-size: var(--font-size-base);
    }

    #timer {
        font-size: var(--font-size-lg);
    }

    #result-screen {
        padding: var(--space-5);
    }

    #score-display .score-value {
        font-size: var(--font-size-2xl);
    }

    .column-grid,
    .voices-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .column-card-thumbnail {
        height: 150px;
    }

    .column-card-thumbnail i {
        font-size: 3rem;
    }

    .voice-card {
        padding: var(--space-6);
    }

    .voice-avatar-placeholder {
        width: 56px;
        height: 56px;
    }

    .voice-avatar-placeholder i {
        font-size: 1.5rem;
    }

    .page-intro {
        font-size: var(--font-size-base);
    }

    .page-header[style*="background-image"] {
        padding: var(--space-16) 0 var(--space-12);
        min-height: 280px;
    }

    .page-header[style*="background-image"] h1 {
        font-size: var(--font-size-2xl);
    }

    .article-content {
        padding: var(--space-6);
    }

    .article-lead {
        font-size: var(--font-size-base);
        padding: var(--space-4);
    }

    .article-content h2 {
        font-size: var(--font-size-lg);
        margin-top: var(--space-8);
    }

    .article-content h3 {
        font-size: var(--font-size-base);
    }

    .article-quote,
    .article-content blockquote {
        font-size: var(--font-size-base);
        padding: var(--space-4);
        margin: var(--space-6) 0;
    }

    .share-section,
    .author-profile {
        padding: var(--space-5);
    }
}

@media (max-width: 640px) {
    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .voice-card-footer {
        gap: var(--space-1);
    }

    .voice-card-footer .tag {
        font-size: 0.7rem;
        padding: var(--space-1) var(--space-2);
    }

    .page-header-subtitle {
        font-size: var(--font-size-xs);
    }

    .article-meta {
        font-size: var(--font-size-xs);
    }

    .article-content {
        padding: var(--space-4);
    }

    .share-buttons a,
    .share-buttons button {
        font-size: var(--font-size-xs);
        padding: var(--space-2) var(--space-3);
    }
}

/* ───────────────────────────────────────────────────────────
   15. ACCESSIBILITY & ANIMATIONS
   ─────────────────────────────────────────────────────────── */
.share-buttons a:focus-visible,
.share-buttons button:focus-visible {
    outline: 3px solid var(--color-accent-400);
    outline-offset: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .share-buttons a,
    .share-buttons button {
        transition: none;
    }

    .share-buttons a:hover,
    .share-buttons button:hover {
        transform: none;
    }

    .copy-success {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .article-content {
        border: 2px solid var(--color-text-base);
    }

    .share-section,
    .author-profile {
        border: 2px solid var(--color-text-base);
    }

    .share-buttons a,
    .share-buttons button {
        border-width: 2px;
    }
}

/* ───────────────────────────────────────────────────────────
   16. PRINT STYLES
   ─────────────────────────────────────────────────────────── */
@media print {

    .site-header,
    .site-footer,
    .page-top-button,
    .article-sidebar {
        display: none;
    }

    .article-layout {
        display: block;
    }

    .article-content {
        box-shadow: none;
        padding: 0;
    }

    .page-header[style*="background-image"]::before {
        display: none;
    }

    .page-header[style*="background-image"] {
        background: none !important;
        color: var(--color-text-base);
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .page-header[style*="background-image"] h1,
    .page-header-subtitle,
    .article-meta time {
        color: var(--color-text-base);
        text-shadow: none;
    }

    .article-content h2,
    .article-content h3 {
        page-break-after: avoid;
    }

    .article-content p,
    .article-content blockquote,
    .article-quote {
        page-break-inside: avoid;
    }
}

/* ═══════════════════════════════════════════════════════════
   END OF ALCHEMICAL STYLES
   Version: 2.0 (重複排除完全版)
   Total Lines: ~1300 (from ~2800 - 54% reduction)
   ═══════════════════════════════════════════════════════════ */