body {
    background-image: url(./GAZOU-GSG/SHUGOU.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Arial', 'Meiryo', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #eee;
    padding-top: 100px;
}

.hidden-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-out, visibility 0s 1s;
}

.fade-in-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-out;
}

header {
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    padding: 1rem 20px;
    border-bottom: 3px solid #888;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    position: relative;
}

.header-logo-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    line-height: 1;
}

.header-logo {
    height: 60px;
    vertical-align: middle;
}

.header-nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
}

.header-nav ul li {
    margin: 0 15px;
}

.header-nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: block;
}

.header-nav ul li a:hover {
    color: #a0a0a0;
}

main {
    padding: 20px;
    background: rgba(45, 45, 45, 0.9);
    margin: 20px auto;
    max-width: 960px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    text-align: center;
}

section {
    padding: 20px 0;
    border-bottom: 1px solid #555;
    text-align: center;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    color: #bbb;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #888;
    display: inline-block;
    padding-bottom: 8px;
    font-size: 2em;
}

p {
    color: #ccc;
    text-align: center;
}

ul {
    color: #ccc;
    text-align: left;
    padding-left: 20px;
    list-style-position: outside;
    display: inline-block;
    max-width: 500px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.character-card {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #555;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #eee;
}

.character-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.character-card .role {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 0px;
    display: block;
}

.character-card h3 {
    margin-top: 5px;
    font-size: 1.5em;
    color: #ddd;
}

.character-card p {
    color: #ccc;
    font-size: 0.85em;
}

article {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #555;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #eee;
    text-align: left;
}

article h3 {
    margin-top: 0;
    color: #ddd;
}

article .date {
    font-size: 1em;
    color: #aaa;
    margin-bottom: 10px;
}

form {
    text-align: left;
    max-width: 500px;
    margin: 20px auto 0 auto;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ccc;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #666;
    border-radius: 4px;
    background: rgba(80, 80, 80, 0.7);
    color: #fff;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #a0a0a0;
    outline: none;
}

form button {
    background: #555;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

form button:hover {
    background: #666;
}

footer {
    text-align: center;
    padding: 25px;
    background: rgba(20, 20, 20, 0.9);
    color: #aaa;
    margin-top: 30px;
    border-top: 3px solid #888;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-right {
    height: 60px;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}
.footer-logo-right2 {
    height: 70px;
    position: absolute;
    right: 180px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 15px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .header-logo-link {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 10px;
    }

    .header-logo {
        height: 50px;
    }

    .header-nav ul li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .header-nav ul li a {
        padding: 8px 0;
    }

    main {
        padding: 15px;
        margin: 15px auto;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }

    section, p, form {
        text-align: center;
    }

    ul {
        text-align: left;
        padding-left: 20px;
        display: inline-block;
        max-width: 500px;
    }

    article {
        text-align: left;
    }

    form {
        margin: 20px auto 0 auto;
    }
    footer {
        flex-direction: column;
        padding: 15px;
    }

    .footer-logo-right {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 10px;
        height: 30px;
    }
    .footer-logo-right2 {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 10px;
        height: 30px;
    }
}