:root {
    --color-bg-dark: #0f111a;
    --color-bg-light: #1a1c29;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-accent: #9d4edd;
    --color-accent-light: #c77dff;
    --color-gold: #cba052;
    --font-main: 'Shippori Mincho', serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 2;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.4;
}

p {
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 17, 26, 0.4) 0%, rgba(15, 17, 26, 1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 5%;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    color: #fff;
    margin-top: 40px;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.8);
    line-height: 1.5;
}

.hero-subtitle {
    color: var(--color-gold);
    font-size: clamp(14px, 2vw, 18px);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Intro Section */
.intro {
    padding: 100px 0;
    text-align: center;
}

/* Section Images */
.section-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-bg-dark) 0%, transparent 20%, transparent 80%, var(--color-bg-dark) 100%);
}

.section-image.small {
    height: 250px;
}

/* Main Content */
.main-content {
    padding: 100px 0;
}

.main-content.pt-0 {
    padding-top: 50px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--color-gold);
    margin-bottom: 80px;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--color-gold);
}

/* Rule Styles */
.rule {
    background: rgba(26, 28, 41, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.rule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-light));
}

.rule-title {
    font-size: 24px;
    color: var(--color-accent-light);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.rule-ng {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.rule-ng h4 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 16px;
}

.rule-ng ul {
    list-style-type: none;
}

.rule-ng li {
    font-size: 15px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.rule-ng li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
}

.rule-desc p {
    margin-bottom: 20px;
}

.rule-desc p:last-child {
    margin-bottom: 0;
}

/* Closing Section */
.closing {
    padding: 100px 0;
}

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

.signature {
    margin-top: 60px;
    font-size: 24px;
    color: var(--color-gold);
    text-align: right;
    font-style: italic;
}

/* Footer */
.footer {
    position: relative;
}

.footer-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.footer-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-bg-dark) 0%, transparent 100%);
}

/* Responsive Utilities */
.br-pc {
    display: inline;
}
.br-sp {
    display: none;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.8;
    }

    p {
        margin-bottom: 20px;
    }

    .container {
        padding: 0 6%;
    }

    .hero {
        min-height: 600px;
        height: 100svh;
    }

    .hero-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-top: 30px;
    }

    .hero-subtitle {
        font-size: clamp(13px, 3.5vw, 15px);
        line-height: 1.6;
    }

    .intro, .main-content, .closing {
        padding: 50px 0;
    }

    .main-content.pt-0 {
        padding-top: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 50px;
    }

    .section-title::after {
        bottom: -15px;
    }

    .section-image {
        height: 250px;
    }

    .section-image.small {
        height: 180px;
    }

    .footer-image {
        height: 200px;
    }

    .rule {
        padding: 25px 20px;
        margin-bottom: 40px;
        border-radius: 8px;
    }
    
    .rule-title {
        font-size: 20px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .rule-ng {
        padding: 15px;
        margin-bottom: 20px;
    }

    .rule-ng h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .rule-ng li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .rule-desc p {
        font-size: 14px;
    }

    .signature {
        margin-top: 40px;
        font-size: 20px;
    }

    .br-pc {
        display: none;
    }
    
    .br-sp {
        display: inline;
    }
}
