@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --color-primary: #8B4513;
    --color-primary-dark: #654321;
    --color-accent: #D4AF37;
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9F7F4;
    --color-bg-dark: #2C2C2C;
    --spacing-unit: 8px;
    --container-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

@media (max-width: 768px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.header-content {
    padding: calc(var(--spacing-unit) * 2) 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.brand-name a {
    color: var(--color-primary);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .brand-name {
        font-size: 1.25rem;
    }

    .logo {
        width: 50px;
        height: 50px;
    }
}

/* Main Content */
.main-content {
    padding-top: calc(var(--spacing-unit) * 14);
    padding-bottom: calc(var(--spacing-unit) * 12);
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
    padding-bottom: calc(var(--spacing-unit) * 4);
    border-bottom: 3px solid var(--color-accent);
}

.page-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }

    .main-content {
        padding-top: calc(var(--spacing-unit) * 12);
        padding-bottom: calc(var(--spacing-unit) * 8);
    }
}

/* Content Sections */
.content-section {
    margin-bottom: calc(var(--spacing-unit) * 5);
    padding: calc(var(--spacing-unit) * 4);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
    transition: var(--transition-base);
}

.content-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

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

.content-section h2 {
    font-size: 1.375rem;
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.content-section p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

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

.content-section strong {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .content-section {
        padding: calc(var(--spacing-unit) * 3);
        margin-bottom: calc(var(--spacing-unit) * 3);
    }

    .content-section h2 {
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: calc(var(--spacing-unit) * 4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

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

.footer-links a:hover {
    color: white;
}

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

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 4);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
