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

:root {
    --primary-color: #0b3d1f; /* Deep Green */
    --secondary-color: #f4f7f5; /* Light Green/Gray background */
    --accent-color: #d4af37; /* Gold accent */
    --text-color: #333333;
    --text-light: #ffffff;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Noto Serif JP', serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.8;
}

header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header img.logo {
    height: 60px;
    border-radius: 5px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

nav {
    background-color: #ffffff;
    border-bottom: 2px solid var(--primary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(11, 61, 31, 0.8);
    padding: 20px 40px;
    border-radius: 5px;
}

.hero-text h2 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

section {
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

h2.section-title {
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-top: 0;
}

.content-box {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #082d16;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: #c4a132;
    color: #fff;
}

footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Forms */
.login-form, .edit-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
}
.edit-form {
    max-width: 800px;
    text-align: left;
}
input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
}

textarea {
    height: 300px;
    resize: vertical;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

/* Editable content area */
.editable-content {
    min-height: 200px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-text {
        width: 85%;
        padding: 15px 20px;
    }
    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    .hero-text p {
        font-size: 0.9rem;
        margin: 0;
    }
    header h1 {
        font-size: 1.5rem;
    }
    nav ul li a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
