@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #333333;
    --secondary-color: #ffffff;
    --dark-color: #000000;
    --light-color: #f5f5f5;
    --success-color: #006400;
    --warning-color: #666666;
    --danger-color: #800000;
    --accent-color: #444444;
    --bg-dark: #333333;
    --bg-card: #1a1a1a;
    --text-light: #e0e0e0;
    --text-accent: #ffffff;
    --border-accent: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    background-image: 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='%23232323' fill-opacity='0.2'%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");
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

a:not(.btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

a:not(.btn):hover:after {
    width: 100%;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    letter-spacing: 2px;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

strong {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Header */
header {
    background-color: #f1f1f1;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
}

.logo-container {
    display: flex;
    position: relative;
    gap: 15px;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}
nav {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
}


.logo-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image img {
    width: 100%;
    height: auto;
    display: block;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
    color: var(--dark-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.logo-img {
    vertical-align: middle;
    transform: translateY(-1px);
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 35px;
    justify-content: center;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

nav ul li a:after {
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1 1 0;
    min-width: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.social-icon {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.social-link:hover .social-icon {
    transform: scale(1.05);
}


/* Main content */
main {
    padding: 60px 0;
    min-height: 80vh;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 60px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border: none;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.5) 70%);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
    letter-spacing: 5px;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.hero h2::before,
.hero h2::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 60px;
    background-color: var(--secondary-color);
    top: 50%;
    transform: translateY(-50%);
}

.hero h2::before {
    left: -80px;
}

.hero h2::after {
    right: -80px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    line-height: 1.6;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), rgba(255, 255, 255, 0.1));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card > * {
    position: relative;
    z-index: 1;
}

.card h2 {
    color: var(--secondary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    font-weight: 700;
}

.card h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 1px;
    background-color: var(--secondary-color);
}

.card h3 {
    color: var(--text-accent);
    margin: 30px 0 20px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--secondary-color);
}

.card ul li, 
.card ol li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.card ul li::before {
    content: "■";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.card ol {
    counter-reset: item;
    list-style: none;
}

.card ol li {
    counter-increment: item;
}

.card ol li::before {
    content: counter(item) ".";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Form styles */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-accent);
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #333;
    background-color: rgba(20, 20, 20, 0.8);
    color: var(--text-light);
    border-radius: 0;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 
                0 0 8px rgba(255, 255, 255, 0.2);
    background-color: rgba(30, 30, 30, 0.8);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 8px;
}

.btn {
    display: inline-block;
    background: #222;
    color: white;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.1), 
                transparent);
    transition: left 0.7s ease;
}

.btn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Flash messages */
.flash-message {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    animation: fadeIn 0.5s ease;
    position: relative;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.flash-message.success {
    background-color: rgba(0, 100, 0, 0.1);
    color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flash-message.success::before {
    background-color: var(--success-color);
}

.flash-message.error {
    background-color: rgba(128, 0, 0, 0.1);
    color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flash-message.error::before {
    background-color: var(--danger-color);
}

/* Blockquote */
blockquote {
    font-style: italic;
    font-family: 'Noto Serif JP', serif;
    padding: 30px 30px 30px 50px;
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--secondary-color);
    position: relative;
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

blockquote::before {
    content: "";
    font-family: 'Georgia', serif;
    font-size: 4rem;
    position: absolute;
    left: 10px;
    top: 5px;
    color: var(--secondary-color);
    opacity: 0.1;
}

/* Small text */
small {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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='%23232323' fill-opacity='0.1'%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.5;
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer p {
    margin-bottom: 0;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Additional Decorative Elements */
.decorative-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 40px 0;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 3.5rem;
    }
    
    .hero h2::before,
    .hero h2::after {
        width: 40px;
    }
    
    .hero h2::before {
        left: -60px;
    }
    
    .hero h2::after {
        right: -60px;
    }

}

@media (max-width: 975px) {
    header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 15px;
    }

    .logo-container {
        margin-top: 10px;
    }
    
    .logo::before,
    .logo::after {
        display: none;
    }
    
    nav {
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
        gap: 20px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .hero h2::before,
    .hero h2::after {
        display: none;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 30px 20px;
    }

    .social-links {
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }

}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

}
