/* ==========================================================================
   1. リセット & ベース
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    font-size: 1rem;
    letter-spacing: 0.1em;
    background-color: #F2FBFF;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    margin: 0 auto;
    width: 100%;
}

section {
    width: 100%;
}

@media (max-width: 768px) {
    /* ...既存のコード... */

    .pc-only {
        display: none !important; /* スマホ版でPC専用改行を無効化 */
    }
}

/* ==========================================================================
   2. メインビジュアル (MV) 
   ========================================================================== */
#mv {
    width: 100%;
    background: linear-gradient(to bottom, #79E8FB, #08D1D9);
    position: relative;
    z-index: 1;
}

#mv-inner {
    position: relative;
    padding: 0 0 10px;
}

.mv-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.mv-credit {
    position: absolute;
    right: 40px;  /* mv-imgのpaddingに合わせる */
    bottom: 10px; /* 画像の下端からの距離 */
    font-size: 0.75rem;
    color: #333;
    letter-spacing: 0.05em;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.5); /* 視認性確保のための半透明背景 */
    padding: 2px 8px;
    border-radius: 4px;
}

#logo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
}

#logo img {
    width: 182px;
    height: auto;
    display: block;
}

.mv-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
    padding: 40px;
}

@media (max-width: 768px) {
    #logo img {
        width: 110px;
    }
    #mv-inner {
    padding: 0 0 10px;
    }
    .mv-img {
        padding: 20px 0 20px 20px;
    }
	.mv-credit {
        right: 20px;  /* スマホのpaddingに合わせる */
        bottom: 5px;
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   3. キャラクター紹介リンク (独立セクション)
   ========================================================================== */
#chara {
    width: 100%;
    background-color: transparent;
    margin-top: 20px;
}

.chara-link-container {
    text-align: center;
}

.chara-link-container .open-modal {
    color: #704630;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
}

/* ==========================================================================
   4. 共通セクションスタイル (About & Movie)
   ========================================================================== */
.single01 {
    width: 100%;
    background-color: transparent;
    margin-top: 100px; 
}

.single01 .inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 60px 0;
    position: relative; 
    display: flex;
    justify-content: center;
}

.about-content {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* Movieセクションのみ1200pxに上書き */
#movie .about-content {
    max-width: 1200px;
	padding: 0 60px;
}

/* キャラクター配置（はみ出し） */
.about-chara, .movie-chara {
    position: absolute;
    top: -60px; 
    z-index: 10;
}

.about-chara {
    left: 40px;
    width: 220px;
}
.movie-chara { 
    right: 40px;
    width: 180px;
}

.about-chara img, .movie-chara img {
    width: 100%;
    height: auto;
    display: block;
}

h2 {
    font-size: 1.8rem;
    color: #704630;
    text-align: center;
    position: relative;
    display: block;
    margin: 0 auto 30px;
    width: fit-content;
}

h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-color: #704630;
    margin: 8px auto 0;
}

.about-text {
    text-align: center;
    margin-bottom: 40px;
}

/* ボタン類 */
.button-b {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
}

.button-b a {
    display: block;
    transition: opacity 0.3s ease;
}

.button-b a:hover { opacity: 0.7; }

.button-b img {
    width: 100%;
    height: auto;
    display: block;
}

.button-c {
    width: 100%;
    display: flex;
    gap: 20px;
}

.button-c a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    border: 1px solid #777777;
    background-color: #fff;
    color: #777777;
    font-weight: bold;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    text-align: center;
    position: relative;
}

.button-c a span { 
	line-height: 1.6; 
	font-size: 0.9rem;
}

.button-c a::after {
    content: '\e5c8';
    font-family: 'Material Icons';
    font-size: 1.5rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.button-c a:hover { background-color: #f9f9f9; }

/* ==========================================================================
   5. 動画ギャラリー
   ========================================================================== */
.video-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 20px auto 0;
}

.video-ttl {
    grid-column: 1 / -1;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 20px 0 10px;
    border-bottom: 1px solid #ccc;
    color: #333;
	text-align: center;
}

.video-item {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.video-text { margin-bottom: 15px; }

.video-item h3 {
    font-size: 1.1rem;
    color: #704630;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 5px;
}

.video-item h3 span { display: block; }

.video-time {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

@media (min-width: 992px) {
    #movie .video-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   6. モーダルウィンドウ (旧CSSから抽出・統合)
   ========================================================================== */
.modal {
    display: none; /* JSで制御 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 背景オーバーレイ */
}

.modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto; /* 長いコンテンツ時にスクロール */
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
}

.modal-body img {
    max-width: 60%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.modal-body p {
    width: 100%;
    max-width: 90%;
    text-align: left;
    margin-bottom: 10px;
}

.modal-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    width: fit-content; /* 古いスタイルの継承 */
}

.pink2 {
    background-color: #F67D73;
    color: #fff;
    padding: 5px 15px;
    border-radius: 100px;
}

.close {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.charamodal-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
}

.charamodal {
    flex: 1;
    padding: 20px;
}

.charamodal img {
    max-width: 300px;
    height: auto;
}

.charamodal-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 20px;
}

/* ==========================================================================
   7. スマホ表示 (768px以下)
   ========================================================================== */
@media (max-width: 768px) {
    .single01 { margin-top: 80px; }

    .single01 .inner {
        width: 90%; 
        padding: 60px 0 40px;
    }

    .about-content {
        max-width: 100%;
        padding: 0 20px;
    }
	#movie .about-content {
	padding: 0 20px;
}

    .about-chara, .movie-chara {  
    }
    .about-chara {
        top: -50px;
        width: 160px; 
        left: 5px;
        }
    .movie-chara {
        top: -60px;
        width: 120px; 
        right: 5px;
        }

    h2 { font-size: 1.4rem; }

    .button-c {
        flex-direction: column;
        gap: 15px;
    }

    .button-c a {
        width: 100%;
        padding: 15px 40px 15px 20px;
    }

    .video-grid { grid-template-columns: 1fr; }

    /* モーダルスマホ対応 */
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body img {
        max-width: 100%;
    }

    .modal-body h3 {
        width: 100%;
        font-size: 1.2rem;
    }

    .close {
        top: -50px;
        right: 0px;
    }

    .charamodal-container {
        flex-direction: column;
    }

    .charamodal-text {
        padding: 0;
    }
}

/* ==========================================================================
   8. フッター
   ========================================================================== */
footer {
    text-align: center;
    background: #333;
    padding: 1.5rem 0;
    color: #fff;
    width: 100%;
    margin-top: 80px;
}