@charset "utf-8";

body {
    margin: 0;
    padding: 0;
    background-color: #0d120d;
    color: #e0e6e0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.logo-area img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    text-shadow: 0 0 5px #ff5555;
}

/* Hanamachi specific hero */
.hanamachi-hero {
    height: 80vh;
    background: radial-gradient(circle, #2a0a0a 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hanamachi-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 22.485l.828.83-1.415 1.415-.828-.828-.828.828L-2.83 22.485l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 54.627l.828.83-1.415 1.415-.828-.828-.828.828L-2.83 54.627l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM54.627 60l.83-.828-1.415-1.415-.828.828-.828-.828-1.415 1.415.828.828-.828.828 1.415 1.415.828-.828.828.828 1.415-1.415-.828-.828zM22.485 60l.83-.828-1.415-1.415-.828.828-.828-.828-1.415 1.415.828.828-.828.828 1.415 1.415.828-.828.828.828 1.415-1.415-.828-.828z' fill='%23ff0000' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: rotateFlow 60s linear infinite;
    pointer-events: none;
}

@keyframes rotateFlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hanamachi-hero h1 {
    font-size: 4rem;
    color: #ff3333;
    text-shadow: 0 0 20px #500;
    margin-bottom: 10px;
    z-index: 1;
}

.hanamachi-hero p {
    font-size: 1.2rem;
    color: #cc9999;
    z-index: 1;
}

.yohki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 10%;
    background: #000;
}

.yohki-card {
    background: #110505;
    border: 1px solid #331111;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.yohki-card:hover {
    transform: translateY(-5px);
    border-color: #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

.thumb {
    height: 300px;
    background: #200;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #522;
    font-size: 2rem;
}

.info {
    padding: 15px;
}

.name {
    font-size: 1.2rem;
    color: #ffdddd;
    margin-bottom: 5px;
    display: block;
}

.rank {
    font-size: 0.8rem;
    color: #ff5555;
    border: 1px solid #ff5555;
    padding: 2px 5px;
    border-radius: 3px;
}

.excerpt {
    font-size: 0.8rem;
    color: #aa8888;
    margin-top: 10px;
    line-height: 1.6;
}

/* Horizontal Scroll Container */
.hmc-scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    gap: 20px;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #ff3333 #110505;
}

.hmc-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.hmc-scroll-container::-webkit-scrollbar-track {
    background: #110505;
}

.hmc-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ff3333;
    border-radius: 4px;
}

.hmc-scroll-item {
    flex: 0 0 300px;
    height: 450px;
    position: relative;
    border: 1px solid #331111;
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
}

.hmc-scroll-item:hover {
    transform: scale(1.02);
    border-color: #ff5555;
    z-index: 10;
}

.hmc-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.hmc-scroll-item:hover img {
    opacity: 0.7;
}

.hmc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    box-sizing: border-box;
}

.hmc-badge {
    position: absolute;
    top: 10px;
    right: 0;
    background: #ff0000;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.hmc-title {
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #000;
    display: block;
}

.hmc-affinity {
    color: #ffaaaa;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* List Style */
.hmc-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.hmc-list-item {
    padding: 15px;
    border-bottom: 1px solid #331111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.hmc-list-item:hover {
    background: rgba(255, 50, 50, 0.1);
}

.hmc-link {
    color: #ffdddd;
    text-decoration: none;
    font-size: 1.1rem;
    flex-grow: 1;
    margin: 0 20px;
}

.hmc-link:hover {
    color: #ff5555;
}

.hmc-id {
    color: #884444;
    font-family: monospace;
}

/* Gallery Grid (Reuse/Adapt) */
.hmc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.hmc-card {
    display: block;
    border: 1px solid #331111;
    text-decoration: none;
    background: #1a0a0a;
}

.hmc-card-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hmc-card-body {
    padding: 10px;
}