/* --- 1. 基本設定 --- */
body {
    margin: 0;
    padding: 0;
    background-color: #ffe7e7;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 700;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- 2. ヘッダー --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFBDBD;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    box-sizing: border-box;
}

.header-logo { margin: 0; line-height: 0; }
.header-logo a { text-decoration: none; display: block; }
.header-logo img { height: 45px; width: auto; display: block; }

/* --- 3. MENUボタン --- */
.hamburger-btn {
    position: absolute;
    top: 22px; 
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 1100;
}

.menu-text {
    color: #F94545;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.menu-bars {
    width: 22px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-bars span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #F94545;
    border-radius: 10px;
}

/* --- 4. 漫画エリア演出 --- */
.manga-cover { width: 100%; margin-bottom: 20px; }

.manga-unit, .ad-section {
    width: 100%;
    margin-bottom: 40px;
    scroll-margin-top: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.manga-cover .cover-img-wrapper { opacity: 1; transform: none; }

.is-visible { opacity: 1; transform: translateY(0); }

.manga-no, .manga-title, .manga-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.is-visible .manga-no { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.is-visible .manga-title { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.is-visible .manga-container { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

.manga-no { text-align: center; font-size: 2rem; color: #F94545; margin: 20px 0 5px; }
.manga-title { text-align: center; font-size: 4rem; color: #F94545; margin: 0 0 10px; letter-spacing: 0.07em; line-height: 1.2; }
.manga-container, .cover-img-wrapper { max-width: 500px; margin: 0 auto; }
.manga-img { width: 100%; height: auto; display: block; }

/* --- 5. 広告エリア --- */
.ad-section { background-color: #ffffff; padding: 60px 0; margin: 60px 0; }
.ad-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.ad-label { font-size: 0.65rem; color: #bbb; letter-spacing: 0.05em; margin-bottom: 8px; text-transform: uppercase; }
.ad-dummy-box { width: 100%; max-width: 336px; height: 280px; background-color: #f0f0f0; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 0.8rem; border-radius: 8px; border: 1px dashed #ddd; }
.chara-comment-box { display: flex; flex-direction: column; align-items: center; margin-bottom: 25px; }
.chara-cm-img { width: 100px; height: auto; margin-bottom: 15px; }
.balloon { position: relative; background: #ff7e7e; border-radius: 10px; padding: 12px 20px; color: white; font-size: 14px; display: inline-block; max-width: 80%; line-height: 1.5; }
.balloon::after { content: ''; position: absolute; top: -10px; left: 50%; margin-left: -10px; border-width: 0 10px 10px 10px; border-style: solid; border-color: transparent transparent #ff7e7e transparent; }

/* --- 6. 全面メニュー（下からスッと出る） --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F94545;
    z-index: 2000;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-overlay.is-open {
    transform: translateY(0);
    visibility: visible;
}

.menu-close {
    position: absolute;
    top: 22px; 
    right: 20px;
    width: 22px; 
    height: 12px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.close-bars {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-bars span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    border-radius: 10px;
    position: absolute;
}

.close-bars span:first-child { transform: rotate(45deg); }
.close-bars span:last-child { transform: rotate(-45deg); }

.menu-content {
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu-content::-webkit-scrollbar { display: none; }
.concept-lead { font-size: 2.2rem; margin-bottom: 20px; color: #ffffff; line-height: 1.4; font-weight: 900; }
.concept-main { font-size: 1rem; line-height: 1.8; margin-bottom: 40px; opacity: 0.9; }

.tag-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.tag { padding: 8px 18px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 50px; font-size: 0.9rem; cursor: pointer; transition: 0.3s; color: white; text-decoration: none; }
.tag:active { background-color: #ffffff; color: #F94545; transform: scale(0.95); }

/* --- 7. 下部ナビゲーション --- */
.bottom-nav { 
    text-align: center; 
    padding: 20px 15px 40px; 
    display: flex;
    justify-content: center;
    gap: 15px; 
    max-width: 500px;
    margin: 0 auto;
}

.nav-btn {
    display: inline-block;
    background-color: #FF8888;
    color: #ffffff;
    padding: 18px 0;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1rem;
    width: 48%;
    min-width: 120px;
    box-sizing: border-box;
    transition: 0.2s;
}

.nav-btn:active { transform: scale(0.95); }

/* --- 8. フッター --- */
.main-footer {
    background-color: #F94545;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-tag-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.footer-tag-container .tag {
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-sub-nav {
    margin-top: 50px;
    padding-bottom: 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-sub-nav a, .footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: 0.2s;
}

.footer-sub-nav a:hover, .footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    font-size: 0.75rem;
    opacity: 0.6;
}

body.no-scroll { overflow: hidden; }