*{
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f0f0f0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
img{
    vertical-align: bottom;
}
/* ファーストビュー */
.first-view {
    position: relative;
    height: 100vh;
    background-image: url('/images/comicolle-lp05-head.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden; /
}

.fv-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* 追加 */
    text-align: center; /* 追加 */
}

.logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
    box-shadow: 0px 13px 10px -6px rgba(0, 0, 0, 0.42), 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
}

.register-area {
    position: relative;
}

.register-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    font-size: 1.5rem;
    background-color: #ee3744;
    color: white;
    font-weight: bold;
    border: 5px solid #fff;
    border-radius: 5px;
    box-shadow: 0px 13px 10px -6px rgba(0, 0, 0, 0.42), 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
    
}

.menu-open-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.loop-animation {
    position: absolute;
    top: 90%; 
    left: 70%; 
    width: 40vw;
    height: auto;
    max-width: 200px;
    z-index: -1; /* ボタンの背後に */
}

.loop-animation .anim-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: auto;
}

.loop-animation .anim-img.active {
    opacity: 1;
}

/* モーダルメニュー */
.modal-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-menu.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    text-align: center;
    color: white;
}

.modal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
    font-size: 0.7rem;
    margin-bottom: 40px;
}

.modal-links a {
    display: block;
    padding: 10px;
    border: 1px solid white;
}

.menu-close-btn {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

/* コンテンツ1: スライド表示 */
.bookshelf {
    overflow: hidden;
    background-color: #fff;
}

.shelf-bar {
    height: 20px;
    background-image: linear-gradient(0deg, #ecae67 0%, #A0522D 20%, #8B4513 80% ,#ecae67 100%);
    width: 100%;
}

.shelf-row {
    display: flex;
    width: max-content;
}

.shelf-row a {
    display: block;
    margin: 0 5px;
}

.shelf-row img {
    height: 150px;
    width: auto;
    display: block;
}

.slide-rtl {
    animation: slide-rtl 30s linear infinite;
}

.slide-ltr {
    animation: slide-ltr 30s linear infinite;
}

@keyframes slide-rtl {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

@keyframes slide-ltr {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}
.bana{
    display: block;
    text-align: center;
}
.bana img{
    padding: 20px 0;
    width: calc(100% - 40px);
    max-width:320px;
}
/* コンテンツ2: 作品検索 */
.search-content {
    padding: 30px 15px;
    background-color: #f9f9f9;
}

.search-form {
    display: flex;
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    flex-grow: 1;
    border: 1px solid #eee;
    padding: 10px;
    font-size: 1rem;
}

.search-form button {
    border: 1px solid #eee;
    background-color: #eee;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1rem;
}

.search-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.search-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    color: #333;
    font-size: 0.9rem;
    background-color: #fff;
    border: 1px solid #eee;
}

.search-links li a::after {
    content: '→';
    font-size: 0.8em;
    color: #ccc;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 0 0 20px;
    text-align: center;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-menu li {
    width: 100%;
}

.footer-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-bottom: 1px solid #444;
}
.footer-menu li a::after {
    content: '→';
    font-size: 0.8em;
    color: #ccc;
}
.copyright {
    font-size: 0.8rem;
}

/* レスポンシブ対応 (デスクトップ向け) */
@media (min-width: 768px) {
    .register-btn {
        width: auto; /* PCでは幅を自動に */
    }

    .loop-animation {
        left: 100%;
    }

    .logo {
        max-width: 100%;
    }

    .shelf-row img {
        height: 200px;
    }

    .search-content {
        max-width: 800px;
        margin: 30px auto;
    }

    .footer-menu {
        max-width: 1000px;
        margin: 20px auto;
    }
    .footer-menu li {
        width: auto;
        border: none;
    }
    .footer-menu li a {
        padding: 10px 15px;
        border: none;
    }
}