/* ROOT RESET */
html, body{ margin:0; padding:0; }

/* 背景画像をnavの位置から表示するためpadding-top削除 */


/* Google Fonts Mochiy Pop One 全ページ適用 */
body, button, input, textarea, select {
  font-family: 'Mochiy Pop One', sans-serif;
}
/* Google Fonts Yusei Magic 全ページ適用 */
body, button, input, textarea, select {
  font-family: 'Yusei Magic', sans-serif;
}
body {
  background: linear-gradient(180deg,#aee1ff 0%,#d9f0ff 45%,#ffffff 100%); background-attachment: fixed; color:#222; }

.container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: none; /* ボックスシャドウを消去 */
    text-align: center; /* コンテンツを中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* コンテナ内のコンテンツを下部に配置 */
}

/* top-containerは背景画像のために制約を削除 */
.top-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

h1 {
    font-size: 2.5em; /* フォントサイズを大きく設定 */
    margin: 20px 0 0; /* 上部の余白を削減 */
    color: #1a365d !important; /* テキストカラーを濃い青に設定 */
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif !important; /* ゴシック体に変更 */
    font-weight: 900 !important; /* 文字を太くして見やすく */
    text-shadow: 
        /* 8方向の縁取り */
        -2px -2px 0 rgba(255, 255, 255, 1),
        0px -2px 0 rgba(255, 255, 255, 1),
        2px -2px 0 rgba(255, 255, 255, 1),
        2px 0px 0 rgba(255, 255, 255, 1),
        2px 2px 0 rgba(255, 255, 255, 1),
        0px 2px 0 rgba(255, 255, 255, 1),
        -2px 2px 0 rgba(255, 255, 255, 1),
        -2px 0px 0 rgba(255, 255, 255, 1),
        /* 滑らかさを向上させる追加の縁取り */
        -1px -1px 0 rgba(255, 255, 255, 1),
        1px -1px 0 rgba(255, 255, 255, 1),
        1px 1px 0 rgba(255, 255, 255, 1),
        -1px 1px 0 rgba(255, 255, 255, 1),
        /* ぼかし効果を重ねる */
        0 0 3px rgba(255, 255, 255, 1),
        0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(255, 255, 255, 0.5) !important;
    /* アニメーション削除 */
}

.logo {
    margin: 0 0 20px; /* 下部の余白を追加 */
}

.logo img {
    width: 100%;
    height: auto;
    max-width: 600px;
    /* アニメーション削除 */
}

/* アニメーションキーフレームを削除 - アニメーション不使用のため */

/* 4:3 PC表示 */
@media (max-aspect-ratio: 4/3) {
    body { background: linear-gradient(180deg,#aee1ff 0%,#d9f0ff 45%,#ffffff 100%); background-attachment: fixed; color:#222; }
}

/* スマートフォン表示 */
@media (max-width: 600px) {
    body { background: linear-gradient(180deg,#aee1ff 0%,#d9f0ff 45%,#ffffff 100%); background-attachment: fixed; color:#222; }
    h1 {
        font-size: 1.75em; /* スマートフォン用フォントサイズを少し大きく設定 */
        color: #1a365d !important; /* テキストカラーを濃い青に設定 */
        font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif !important; /* ゴシック体に変更 */
        font-weight: 900 !important; /* 文字を太くして見やすく */
        text-shadow: 
            /* モバイル用8方向の縁取り（少し小さめ） */
            -1px -1px 0 rgba(255, 255, 255, 1),
            0px -1px 0 rgba(255, 255, 255, 1),
            1px -1px 0 rgba(255, 255, 255, 1),
            1px 0px 0 rgba(255, 255, 255, 1),
            1px 1px 0 rgba(255, 255, 255, 1),
            0px 1px 0 rgba(255, 255, 255, 1),
            -1px 1px 0 rgba(255, 255, 255, 1),
            -1px 0px 0 rgba(255, 255, 255, 1),
            /* ぼかし効果を重ねる（モバイル用に調整） */
            0 0 2px rgba(255, 255, 255, 1),
            0 0 4px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.5) !important;
    }
    .container {
        width: 100%;
        padding: 10px;
    }
    
    /* top-containerは背景画像のために左右のパディングを削除 */
    .top-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .logo img {
        max-width: 100%;
    }
}

/* サイトメニューデザイン */
nav {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒背景 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* 初期状態でメニューを表示 */
    justify-content: center; /* メニューアイテムを中央に配置 */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff; /* 白色のテキスト */
    font-size: 1.2em;
    font-family: 'Mochiy Pop One', sans-serif; /* サイトのフォントに合わせる */
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease; /* ホバー時のスムーズな遷移 */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* ホバー時に明るく */
    border-radius: 5px; /* 角を丸くする */
}

/* ナビゲーション内のSNSボタン */
.nav-sns-buttons {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-sns-button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-sns-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.nav-sns-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-sns-button.x-button:hover {
    background: rgba(29, 161, 242, 0.4);
}

.nav-sns-button.youtube-button:hover {
    background: rgba(255, 0, 0, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.2em;
    font-family: 'Mochiy Pop One', sans-serif; /* サイトのフォントに合わせる */
    padding: 10px 15px;
    color: #fff; /* 白色のテキスト */
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒背景 */
    border: none;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1100; /* メニューよりも上に表示 */
}

/* モバイル用レスポンシブメニュー */
@media (max-width: 600px) {
    nav ul {
        display: none; /* 初期状態でメニューを非表示 */
        flex-direction: column;
        align-items: center; /* メニューアイテムを縦に中央揃え */
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒背景 */
        position: fixed;
        top: 50px; /* トグルボタンの下にメニューを配置 */
        left: 0;
        z-index: 1000;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    /* モバイル用のSNSボタン調整 */
    .nav-sns-buttons {
        position: fixed;
        top: 10px;
        right: 60px; /* メニューボタンの左側に配置 */
        transform: none;
        gap: 6px;
    }

    .nav-sns-button {
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }
}

h2, h3 {
    font-family: 'Mochiy Pop One','Arial Black', 'Arial Bold', Gadget, sans-serif; /* 太いゴシック体フォントを適用 */
    font-weight: bold; /* 文字を太く設定 */
    color: #000; /* 黒色のテキストカラー */
    margin: 20px 0; /* 上下に余白を追加 */
}


/* Unified font-family Mochiy Pop One */
html, body, h1, h2, h3, h4, h5, h6, p, span, div, a, li, button, input, textarea {
  font-family: 'Mochiy Pop One', serif;
}

/* ===== Countdown ===== */
.countdown { display: none; margin: 12px auto 0; text-align: center; }
.countdown img { max-width: 380px; width: 90%; height: auto; display: block; margin: 0 auto; }
.countdown-fallback { display: inline-block; padding: 12px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.95); font-size: 1.1rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); margin-top: 8px; }

/* CF CTA button */
.cf-cta{ display:inline-block; padding:12px 18px; border-radius:999px; background:#005bbb; color:#fff; text-decoration:none; font-weight:700; }
.cf-cta[aria-disabled="true"]{ opacity:.6; pointer-events:none; }

/* Sky gradient background for select pages */
body.sky-bg{ 
  background: linear-gradient(180deg, #aee1ff 0%, #d9f0ff 45%, #ffffff 100%) fixed;
  background-attachment: fixed;
}

/* Video frame border */
.video-wrapper video{ 
    border:4px solid rgba(0,0,0,.15); 
    border-radius:12px; 
    box-shadow:0 6px 16px rgba(0,0,0,.18); 
    width: 90% !important; /* 90%に変更し、!importantで優先度を上げる */
    height: auto; /* アスペクト比を保持 */
    display: block !important; /* ブロック要素として表示 */
    margin-left: auto !important; /* 中央揃え */
    margin-right: auto !important; /* 中央揃え */
}

/* SNS icons */
.sns-links img{ max-height:36px; width:auto; height:auto; }
.sns-links a{ display:inline-flex; align-items:center; justify-content:center; margin:0 6px; }

/* Character section */


.char-banner:hover, .char-banner.active{ filter:none; transform: translateY(-4px); }
.char-banner.active{ outline:3px solid rgba(255,255,255,0.95); box-shadow: 0 0 0 3px rgba(0,102,204,.85); }

/* Portrait */
.char-portrait{ object-fit:cover; object-position: top; height:520px; width:auto; max-width:100%; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.15); cursor:zoom-in; }
@media (max-width:768px){ .char-portrait{ height:420px; } }

/* Description background */


/* Role badges */
.char-text{ position: relative; }
.badge-role{ position:absolute; top:8px; right:8px; background: linear-gradient(180deg,#fff 0%,#f3f8ff 100%);
  color:#0b63b6; border:1px solid rgba(0,0,0,.1); border-radius:999px; padding:4px 10px; font-weight:700; font-size:.85rem; box-shadow:0 2px 6px rgba(0,0,0,.08); white-space:nowrap; }
.badge-role.npc{ color:#a4002d; background: linear-gradient(180deg,#fff7f9 0%, #ffe3ea 100%); border-color: rgba(164,0,45,.25); }

/* Enlarge Ojou & Rin thumbnails by 20% (top-left anchor) */
/*.banner-strip img.char-banner[alt="お嬢"],*/
/*.banner-strip img.char-banner[alt="りんちゃん"],*/
/*.banner-strip img.char-banner[src*="natsukaze-rin"]{ transform: scale(1.2) !important; transform-origin: top left !important; }*/
/*.banner-strip img.char-banner[alt="お嬢"]:hover,*/
/*.banner-strip img.char-banner[alt="りんちゃん"]:hover,*/
/*.banner-strip img.char-banner[src*="natsukaze-rin"]:hover{ transform: scale(1.2) translateY(-4px) !important; }*/

/* Lightbox */


/* === Character: balance & spacing adjustments === */

/* Section spacing between characters (avoid cross-overlap) */
.char-detail{
  gap: 28px !important;              /* space between portrait and text */
  margin-bottom: 48px !important;     /* space between different characters */
  justify-content: center !important; /* center the pair on desktop */
}

/* Portrait unified sizing stays the same (PC: 540 / SP: 420) */
.char-detail .char-portrait{
  height: 540px !important;
}
@media (max-width: 768px){
  .char-detail .char-portrait{ height: 420px !important; }
}

/* Text box: center align, reduce excessive width, avoid overflow */
.char-detail .char-text{
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 18px 20px 20px 20px !important; /* compact padding */
  padding-top: 40px !important;            /* smaller top space under badge */
  max-width: min(58vw, 560px) !important;  /* cap width so it won't overflow */
  min-width: 440px !important;             /* still wide enough to avoid ugly wraps */
  flex: 0 1 auto !important;
}
@media (min-width: 1280px){
  .char-detail .char-text{
    max-width: 600px !important;
    min-width: 520px !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px){
  .char-detail .char-text{
    max-width: 520px !important;
    min-width: 480px !important;
  }
}
@media (max-width: 767px){
  .char-detail .char-text{
    max-width: 100% !important;
    min-width: auto !important;
  }
}

/* Badge remains in top-right but with smaller gap needed */
.char-detail .char-text .badge-role{
  top: 8px !important;
  right: 8px !important;
}

/* Extra: ensure banner row never expands full-screen vertically */



.banner-strip 
.char-detail{ display:flex !important; flex-wrap: wrap !important; gap: 28px !important; align-items:flex-start !important; justify-content:center !important; margin-bottom: 56px !important; }
.char-detail .char-portrait{ height: 540px !important; width: auto !important; object-fit: contain !important; object-position:center !important; border-radius: 12px !important; border: 2px solid rgba(255,255,255,0.9) !important; box-shadow: 0 2px 10px rgba(0,0,0,.18) !important; cursor: zoom-in !important; transform:none !important; }
@media (max-width: 768px){ .char-detail .char-portrait{ height: 420px !important; } }
.char-detail .char-text{ position:relative !important; text-align:center !important; padding: 18px 22px 22px 22px !important; padding-top: 40px !important; min-width: min(90vw, 440px) !important; max-width: min(60vw, 640px) !important; }
@media (min-width: 1280px){ .char-detail .char-text{ max-width: 640px !important; min-width: 520px !important; } }
@media (min-width: 768px) and (max-width: 1279px){ .char-detail .char-text{ max-width: 560px !important; min-width: 480px !important; } }
@media (max-width: 767px){ .char-detail .char-text{ max-width: 100% !important; min-width: auto !important; } }


/* === Character: show only the selected section === */
.slider-track{ transform: none !important; width: auto !important; }
.char-detail{ display: none !important; }
.char-detail.active{ display: flex !important; }

/* PC: text box on the RIGHT of image */
@media (min-width: 1024px){
  .char-detail.active{ flex-direction: row !important; }
  .char-detail.active .char-portrait{ order: 1 !important; }
  .char-detail.active .char-text{ order: 2 !important; }
}
@media (max-width: 1023px){
  .char-detail.active{ flex-direction: column !important; }
}

/* ===== FINAL OVERRIDES 2025-08-15 ===== */

/* Fonts - h1のゴシック体設定を優先するため削除 */

/* Backgrounds */
body.bg-image{ background: url('../img/natsuzora_h1.jpg') no-repeat center/cover, linear-gradient(180deg,#aee1ff 0%,#d9f0ff 45%,#ffffff 100%); background-attachment: fixed, fixed; }

/* Common white panel (About-like) */
.content-panel{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  margin: 10px auto 18px;
  max-width: 1080px;
}

/* Countdown framed */
#countdown-container{
  display:none;
  margin: 1200px auto 0;
  text-align:center;
  padding: 12px;
  border: 3px solid rgba(255,255,255,0.95);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(4px);
  max-width: 420px;
}
#countdown-container img{ max-width:100%; height:auto; display:block; margin:0 auto; }
#countdown-fallback{ display:inline-block; margin-top:8px; padding:6px 10px; border-radius:8px; background:rgba(255,255,255,.95); box-shadow:0 2px 8px rgba(0,0,0,.12); }

/* --- Character page --- */
/* Banner: responsive, wraps; active state highlighted */

.banner-strip 
.banner-strip .char-banner:hover,
.banner-strip .char-banner.active{ filter: none; transform: translateY(-4px); }

/* Show only selected character */
.slider-track{ transform:none !important; width:auto !important; }
.char-detail{ display:none; gap:28px; justify-content:center; align-items:flex-start; margin-bottom:56px; }
.char-detail.active{ display:flex; }

/* Portrait (full body, unified size) */
.char-detail .char-portrait{
  height:540px; width:auto;
  object-fit: contain; object-position:center;
  border-radius:12px; border:2px solid rgba(255,255,255,0.9);
  box-shadow:0 2px 10px rgba(0,0,0,.18);
  cursor: zoom-in;
}
@media (max-width:768px){ .char-detail .char-portrait{ height:420px; } }

/* Text box (white, readable) */

.char-detail .char-text{ position:relative; text-align:center; padding-top:40px; min-width:min(90vw, 440px); max-width:min(60vw, 640px); }
@media (min-width:1280px){ .char-detail .char-text{ max-width:640px; min-width:520px; } }
@media (min-width:768px) and (max-width:1279px){ .char-detail .char-text{ max-width:560px; min-width:480px; } }
@media (max-width:767px){ .char-detail .char-text{ max-width:100%; min-width:auto; } }

/* PC: always image LEFT, text RIGHT */
@media (min-width:1024px){
  .char-detail.active{ flex-direction:row; }
  .char-detail.active .char-portrait{ order:1; }
  .char-detail.active .char-text{ order:2; }
}
@media (max-width:1023px){ .char-detail.active{ flex-direction:column; } }

/* Role badges */
.badge-role{
  position:absolute; top:8px; right:8px;
  background:linear-gradient(180deg,#fff 0%,#f3f8ff 100%);
  color:#0b63b6; border:1px solid rgba(0,0,0,.1);
  border-radius:999px; padding:4px 10px; font-weight:700; font-size:.8rem;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.badge-role.npc{ color:#a4002d; background:linear-gradient(180deg,#fff7f9 0%,#ffe3ea 100%); border-color:rgba(164,0,45,.25); }

/* Lightbox */

/* CF banners */

.campfire-banner-wrap{ margin:10px 0 14px; }
.campfire-banner{
  display:inline-block; padding:14px 22px; border-radius:999px; font-weight:800; text-decoration:none;
  border:2px dashed rgba(255,87,34,.85); background:rgba(255,241,234,.95); color:#c23a00; box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.campfire-banner[aria-disabled="true"]{ opacity:.85; pointer-events:none; }


/* Ensure the inner sheet aligns image LEFT and text RIGHT on desktop */
.char-detail.active .char-sheet{ display:flex; gap:24px; align-items:flex-start; }
@media (min-width:1024px){
  .char-detail.active .char-sheet{ flex-direction: row; }
}
@media (max-width:1023px) and (min-width:768px){
  .char-detail.active .char-sheet{ 
    flex-direction: row; /* タブレットは横並び */
    gap: 12px;
  }
}
@media (max-width:767px){
  .char-detail.active .char-sheet{ 
    flex-direction: column; /* スマホは縦配置に戻す */
    gap: 16px;
    align-items: center; /* 画像を中央に配置 */
  }
}


/* === CHARACTER PC LAYOUT: image LEFT, text RIGHT === */
@media (min-width: 1024px){
  .slider-track{ display:block !important; } /* ensure normal flow */
  .char-detail{ width:100%; }
  .char-detail.active{ display:flex !important; flex-direction: row !important; align-items: flex-start !important; }
  .char-detail.active img.char-portrait{ order: 1 !important; }
  .char-detail.active .char-text{ order: 2 !important; }
}
@media (max-width: 1023px){
  .char-detail.active{ display:flex !important; flex-direction: column !important; }
}


/* === CHARACTER VISIBILITY === */
.char-detail{ display: none !important; }
.char-detail.active{ display: flex !important; }

.characters-title{ font-size: 1.6rem; line-height: 1.25; letter-spacing: .01em; margin: 10px 0 14px; }

#lightbox-overlay .lb-caption{ width:100%; max-height:none; overflow:visible; }

/* Tagline: white fill + pale blue outline */


/* Lightbox overrides */
#lightbox-overlay .lb-inner{ max-width:92vw; max-height:90vh !important; }
#lightbox-overlay img{ max-width:55% !important; max-height:86vh !important; object-fit:contain !important; }
#lightbox-overlay .lb-caption{ max-width:45% !important; max-height:86vh !important; overflow:auto !important; }

.char-desc{
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 16px 20px 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}


/* TYPE SCALE RESET v2 */
html{ font-size:16px; }
body{ font-size:1rem; line-height:1.6; }
nav a{ font-size:.9rem !important; }
.char-text, .char-text p, .char-text li{ font-size:1rem !important; line-height:1.7 !important; }
.notice-banner, .campfire-banner{ font-size:.9rem !important; }

/* Tagline darker cyan outline, modest size */


/* NAV LAYOUT sticky & flush */
:root{ --nav-h:56px; }
html, body{ margin:0; padding:0; }
nav{ position:sticky; top:0; z-index:100; height:var(--nav-h); display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.45); backdrop-filter:blur(3px); position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  margin: 0 !important;}
nav ul{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px; margin:0; padding:0; width:100%; }
nav li{ list-style:none; }
nav a{ display:block; padding:8px 10px; line-height:1; color:#fff; text-decoration:none; }
main, .container{ margin-top:0 !important; padding-top:0 !important; }

.notice-banner{
  background:#fff9c4; color:#7a5d00; border:1px solid rgba(0,0,0,.08);
  padding:10px 14px; border-radius:10px; margin:12px auto 16px; max-width:960px;
  box-shadow:0 2px 8px rgba(0,0,0,.06); font-weight:600; text-align:center;
}
.campfire-banner-wrap{ margin:10px 0 14px; text-align:center; }
.campfire-banner{ font-size:.9rem; display:inline-block; padding:12px 18px; border-radius:999px; text-decoration:none;
  border:2px dashed rgba(255,87,34,.85); background:rgba(255,241,234,.95); color:#c23a00; box-shadow:0 2px 10px rgba(0,0,0,.08); }

/* Lightbox fit to viewport */
#lightbox-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center; z-index:9999; }
#lightbox-overlay.active{ display:flex !important; }
#lightbox-overlay .lb-inner{ display:flex; flex-direction:row; gap:12px; align-items:center; justify-content:center; max-width:92vw; max-height:90vh; }
#lightbox-overlay img{ max-width:55%; max-height:86vh; width:auto; height:auto; object-fit:contain; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.5); }
#lightbox-overlay .lb-caption{ max-width:45%; max-height:86vh; overflow:auto; background:rgba(255,255,255,.95); color:#111; padding:12px; border-radius:8px; line-height:1.7; box-shadow:0 6px 16px rgba(0,0,0,.15); }
@media (max-width:767px){
  #lightbox-overlay .lb-inner{ flex-direction:column; max-width:94vw; max-height:92vh; }
  #lightbox-overlay img{ max-width:100%; max-height:58vh; }
  #lightbox-overlay .lb-caption{ max-width:100%; max-height:30vh; overflow:auto; }
}


/* === CHARACTER PAGE REPAIR === */
/* Banners inline and responsive */


.char-banner:hover, .char-banner.active{ filter:none; transform: translateY(-4px); }

/* Only the active character is shown */
.slider-track{ transform:none !important; width:auto !important; }
.char-detail{ display:none; gap:28px; justify-content:center; align-items:flex-start; margin: 16px 0 44px; }
.char-detail.active{ display:flex; }

/* Portrait and text layout */
.char-detail img.char-portrait{ height:540px; width:auto; object-fit:contain; object-position:center; border-radius:12px; border:2px solid rgba(255,255,255,0.9); box-shadow:0 2px 10px rgba(0,0,0,.18); cursor: zoom-in; }
@media (max-width:768px){ 
  .char-detail img.char-portrait{ 
    height:420px; /* モバイルでは元のサイズに戻す */
    width:auto; 
    margin: 0 auto; /* 中央配置を確実にする */
    display: block; /* ブロック要素として表示 */
  } 
}

/* Text panel */
.char-detail .char-text{ position:relative; text-align:center; min-width:min(90vw, 440px); max-width:min(60vw, 640px); }
@media (min-width:1280px){ .char-detail .char-text{ max-width:640px; min-width:520px; } }
@media (min-width:768px) and (max-width:1279px){ 
  .char-detail .char-text{ 
    max-width:560px; 
    min-width:480px; 
    /* padding-right: 8%; タブレット用右側パディングを削除 */
  } 
}
@media (max-width:767px){ 
  .char-detail .char-text{ 
    max-width:100%; 
    min-width:auto; 
    width: 100%; /* 幅を100%に設定 */
    text-align: center; /* スマホでは中央揃えに戻す */
    font-size: 0.9em; /* 文字サイズを少し小さく */
    /* padding削除 - 左右のパディングを解除 */
  } 
}

/* PC image left, text right */
@media (min-width:1024px){
  .char-detail.active{ flex-direction:row; }
  .char-detail.active img.char-portrait{ order:1; }
  .char-detail.active .char-text{ order:2; }
}
@media (max-width:1023px){ .char-detail.active{ flex-direction:column; } }

/* Readable white background reused */
.char-desc{ background: rgba(255,255,255,0.95); border-radius:10px; padding:18px 22px 22px; box-shadow:0 6px 24px rgba(0,0,0,0.08); }

/* Badge styles */
.badge-role{
  position:absolute; top:8px; right:8px;
  background:linear-gradient(180deg,#fff 0%,#f3f8ff 100%);
  color:#0b63b6; border:1px solid rgba(0,0,0,.1);
  border-radius:999px; padding:4px 10px; font-weight:700; font-size:.8rem;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.badge-role.npc{ color:#a4002d; background:linear-gradient(180deg,#fff7f9 0%,#ffe3ea 100%); border-color:rgba(164,0,45,.25); }

.banner-strip{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; align-items:center; padding:8px 10px 12px; }

.char-banner{
  flex:0 0 auto;
  width: clamp(96px, 12vw, 140px);
  height: clamp(128px, 16vw, 180px);
  aspect-ratio: 7/9;
  object-fit: cover;
  object-position: top center;
  display:block;
  border-radius:10px;
  border:2px solid rgba(255,255,255,0.9);
  box-shadow:0 1px 6px rgba(0,0,0,.15);
  filter:grayscale(100%);
  transition: filter .2s ease, transform .2s ease;
}
.char-banner:hover, .char-banner.active{ filter:none; transform: translateY(-4px); }

.char-detail{ display:none; gap:28px; justify-content:center; align-items:flex-start; margin: 16px 0 44px; }
.char-detail.active{ display:flex; }
@media (min-width:1024px){ .char-detail.active{ flex-direction:row; } }
@media (max-width:1023px){ .char-detail.active{ flex-direction:column; } }


/* === CHARACTER HARDEN (no scrollbars & uniform banners) === */
html, body{ overflow-x:hidden; }
.banner-strip{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px; }
.char-banner{
  flex:0 0 auto;
  width: clamp(96px, 12vw, 140px);
  height: clamp(128px, 16vw, 180px);
  aspect-ratio: 7/9;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
  filter: grayscale(100%);
  transition: filter .2s ease, transform .2s ease;
  cursor: pointer;
  display:block;
}
.char-banner:hover, .char-banner.active{ filter:none; transform: translateY(-4px); }

.slider-track{ transform:none !important; width:auto !important; overflow:visible !important; }
.char-detail{ display:none; gap:28px; justify-content:center; align-items:flex-start; margin:16px 0 44px; }
.char-detail.active{ display:flex; }
@media (min-width:1024px){ .char-detail.active{ flex-direction:row; } }
@media (max-width:1023px){ .char-detail.active{ flex-direction:column; } }

/* Portrait bounds (avoid horizontal overflow) */
.char-detail img{ max-width: min(42vw, 640px); height:auto; object-fit:contain; }
@media (max-width:1023px){ .char-detail img{ max-width:100%; } }

/* Overlay base ensure */
#lightbox-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center; z-index:9999; }
#lightbox-overlay.active{ display:flex !important; }
#lightbox-overlay .lb-inner{ display:flex; gap:12px; align-items:center; justify-content:center; max-width:92vw; max-height:90vh; }
#lightbox-overlay img{ max-width:55%; max-height:86vh; object-fit:contain; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.5); }
#lightbox-overlay .lb-caption{ max-width:45%; max-height:86vh; overflow:auto; background:rgba(255,255,255,.95); padding:12px; border-radius:8px; line-height:1.7; }
@media (max-width:767px){
  #lightbox-overlay .lb-inner{ flex-direction:column; max-width:94vw; max-height:92vh; }
  #lightbox-overlay img{ max-width:100%; max-height:58vh; }
  #lightbox-overlay .lb-caption{ max-width:100%; max-height:30vh; }
}

/* Banner uniform sizing (strict) */
.banner-strip img.char-banner,
.banner-strip .char-banner,
.char-banner{
  display:block !important;
  width: clamp(96px, 12vw, 140px) !important;
  height: clamp(128px, 16vw, 180px) !important;
  aspect-ratio: 7/9 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 10px !important;
  border: 2px solid rgba(255,255,255,0.9) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.15) !important;
  filter: grayscale(100%) !important;
  transition: filter .2s ease, transform .2s ease !important;
  cursor: pointer !important;
}
.banner-strip .char-banner:hover, .banner-strip .char-banner.active{ filter:none !important; transform: translateY(-4px) !important; }

/* === CHARACTER CORE (white panel, badge, overlay, banners) === */
.char-text.char-desc, .lb-caption.char-desc{
  background: rgba(255,255,255,0.95) !important;
  border-radius: 10px !important;
  padding: 16px 20px 20px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08) !important;
}
.badge-role{
  position:absolute; top:8px; right:8px;
  background:linear-gradient(180deg,#fff 0%,#f3f8ff 100%);
  color:#0b63b6; border:1px solid rgba(0,0,0,.1);
  border-radius:999px; padding:4px 10px; font-weight:700; font-size:.8rem;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.badge-role.npc{ color:#a4002d; background:linear-gradient(180deg,#fff7f9 0%,#ffe3ea 100%); border-color:rgba(164,0,45,.25); }

.char-detail{ display:none !important; gap:28px; justify-content:center; align-items:flex-start; margin:16px 0 44px; }
.char-detail.active{ display:flex !important; }
@media (min-width:1024px){ .char-detail.active{ flex-direction:row; } .char-detail.active img.char-portrait{ order:1; } .char-detail.active .char-text{ order:2; position:relative; } }
@media (max-width:1023px){ .char-detail.active{ flex-direction:column; } }

.banner-strip{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; align-items:center; }
.banner-strip img.char-banner, .banner-strip .char-banner, .char-banner{
  display:block !important;
  width: clamp(96px, 12vw, 140px) !important;
  height: clamp(128px, 16vw, 180px) !important;
  aspect-ratio: 7/9 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 10px !important;
  border: 2px solid rgba(255,255,255,0.9) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.15) !important;
  filter: grayscale(100%) !important;
  transition: filter .2s ease, transform .2s ease !important;
  cursor: pointer !important;
}
.banner-strip .char-banner:hover, .banner-strip .char-banner.active{ filter:none !important; transform: translateY(-4px) !important; }

.char-detail img.char-portrait{ max-width: min(42vw, 640px); height:auto; object-fit:contain; border-radius:12px; border:2px solid rgba(255,255,255,0.9); box-shadow:0 2px 10px rgba(0,0,0,.18); cursor: zoom-in; }
@media (max-width:1023px){ .char-detail img.char-portrait{ max-width:100%; } }

#lightbox-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center; z-index:9999; }
#lightbox-overlay.active{ display:flex !important; }
#lightbox-overlay .lb-inner{ display:flex; gap:12px; align-items:center; justify-content:center; max-width:92vw; max-height:90vh; }
#lightbox-overlay img{ max-width:55%; max-height:86vh; object-fit:contain; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.5); }
#lightbox-overlay .lb-close{ position:absolute; top:8px; left:8px; border:none; background:rgba(255,255,255,.9); border-radius:999px; width:32px; height:32px; font-size:18px; cursor:pointer; }
#lightbox-overlay .lb-caption{ max-width:45%; max-height:86vh; overflow:auto; }
@media (max-width:767px){
  #lightbox-overlay .lb-inner{ flex-direction:column; max-width:94vw; max-height:92vh; }
  #lightbox-overlay img{ max-width:100%; max-height:58vh; }
  #lightbox-overlay .lb-caption{ max-width:100%; max-height:30vh; }
}





/* 画像自体に枠サイズを適用（wrapperがなくても効く） */
.banner-strip img.char-banner,
.char-banner{
  display:block;
  width: min(28vw, 160px);   /* スマホでは縮み、PCでは最大160px */
  aspect-ratio: 7 / 9;       /* 幅から高さを自動計算 */
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
  filter: grayscale(100%);
  transition: filter .2s ease, transform .2s ease;
  cursor: pointer;
}
.banner-strip .char-banner:hover, .banner-strip .char-banner.active{
  filter:none; transform: translateY(-4px);
}

/* === Banner frame (exact uniform) === */
:root{ --banner-w:160px; --banner-ratio: calc(9/7); }
.banner-strip{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px; }
.banner-strip img.char-banner, .char-banner{
  box-sizing:border-box;
  display:block;
  width: var(--banner-w);
  height: calc(var(--banner-w) * var(--banner-ratio)); /* 160x205px */
  aspect-ratio: 7 / 9;
  object-fit: cover;
  object-position: top center;
  border-radius:10px;
  border:2px solid rgba(255,255,255,0.9);
  box-shadow:0 1px 6px rgba(0,0,0,.15);
  filter:grayscale(100%);
  transition: filter .2s ease, transform .2s ease;
  cursor:pointer;
}
@media (max-width: 480px){
  :root{ --banner-w: 28vw; } /* 小さい画面では自動縮小（比率維持） */
}
.banner-strip .char-banner:hover, .banner-strip .char-banner.active{ filter:none; transform: translateY(-4px); }

/* === Overlay readability improvements === */
#lightbox-overlay .lb-inner{ max-width:96vw; max-height:92vh; }
#lightbox-overlay img{ max-width:48%; max-height:88vh; }
#lightbox-overlay .lb-caption{
  max-width:52%; max-height:88vh; overflow:auto;
  background:rgba(255,255,255,.97);
  padding:16px 20px 18px;
  line-height:1.8;
  word-break:normal;
  overflow-wrap:anywhere;
  hyphens:auto;
}
@media (max-width: 767px){
  #lightbox-overlay .lb-inner{ flex-direction:column; }
  #lightbox-overlay img{ max-width:100%; max-height:58vh; }
  #lightbox-overlay .lb-caption{ max-width:100%; max-height:32vh; }
}


/* === Mobile Nav (collapsible) === */
.nav-toggle{
  display:none;
  margin:0 8px 0 10px;
  background:transparent;
  border:2px solid rgba(255,255,255,.85);
  color:#fff;
  font-size:20px;
  line-height:1;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
}
.nav-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.35);
  z-index: 99;
}

@media (max-width: 768px){
  nav{ position: sticky; top:0; z-index: 100; position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  margin: 0 !important; }
  .nav-toggle{ display:inline-block; }
  nav ul#site-nav{
    display:none;
    width:100%;
    padding:10px 12px;
  }
  body.nav-open nav ul#site-nav{ display:flex; flex-direction:column; gap:10px; }
  body.nav-open .nav-backdrop{ display:block; }
  .nav-backdrop[hidden]{ display:none; }
}



/* BG IMAGE RULE */
body.bg-image{
  background:
    url('../img/natsuzora_h1.jpg') no-repeat center / cover,
    linear-gradient(180deg,#aee1ff 0%, #d9f0ff 45%, #ffffff 100%);
  background-attachment: fixed, fixed;
}

/* NAV TRANSLUCENT RESTORE */
nav{
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
}

/* TAGLINE OUTLINE RESTORE */
.tagline{
  display:inline-block;
  color:#fff;
  text-shadow:
    -1px -1px 0 rgba(0,140,220,.98),
     1px -1px 0 rgba(0,140,220,.98),
    -1px  1px 0 rgba(0,140,220,.98),
     1px  1px 0 rgba(0,140,220,.98),
     0    0   10px rgba(0,140,220,.55);
}

.cf-banner {
  text-align: center;
  margin: 20px auto;
}

.cf-banner img {
  max-width: 10%;
  height: auto;
  border: 4px solid #fff; /* 白枠 */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.cf-banner img:hover {
  transform: scale(1.02);
}

/* === TOP background: keep aspect and show full image === */
.bg-top {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 100vw auto;
  height: calc(100vw * 1.413960);
  min-height: calc(100vw * 1.413960);
}


/* === Character overlay responsive layout === */
#lightbox-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9999; display:none; }
#lightbox-overlay.is-open{ display:block; }
#lightbox-overlay .lb-inner{
  margin: 4vh auto;
  max-width: min(94vw, 1400px);
  padding: 12px;
  box-sizing: border-box;
}
#lightbox-overlay img{
  display:block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
#lightbox-overlay .lb-caption{
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: visible;
  max-height: none;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.65;
}
#lightbox-overlay .lb-close{
  position: fixed;
  top: 12px; right: 16px;
  font-size: 28px; line-height: 1;
  color: #fff; cursor: pointer; user-select: none;
}
@media (min-width: 900px){
  #lightbox-overlay .lb-inner{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 38vw);
    gap: 20px;
    align-items: start;
  }
  #lightbox-overlay .lb-caption{ margin-top: 0; }
}
@media (max-width: 899px){
  #lightbox-overlay .lb-inner{ display: block; }
  #lightbox-overlay .lb-caption{ margin-top: 12px; }
}

.logo img { animation: none !important; }

.top-container .logo{ text-align:center; }
.top-container .logo img{ width:70vw; max-width:1200px; height:auto; display:inline-block; }

.top-container > h1{ 
    max-width:70vw; 
    margin:12px auto 0; 
    text-align:center; 
    font-size: clamp(2.2rem, 5.4vw, 4.5rem); 
    line-height:1.1; 
    animation: none !important;
    color: #1a365d !important; /* テキストカラーを濃い青に設定 */
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif !important; /* ゴシック体に変更 */
    font-weight: 900 !important; /* 文字を太くして見やすく */
    text-shadow: 
        /* 8方向の縁取り */
        -2px -2px 0 rgba(255, 255, 255, 1),
        0px -2px 0 rgba(255, 255, 255, 1),
        2px -2px 0 rgba(255, 255, 255, 1),
        2px 0px 0 rgba(255, 255, 255, 1),
        2px 2px 0 rgba(255, 255, 255, 1),
        0px 2px 0 rgba(255, 255, 255, 1),
        -2px 2px 0 rgba(255, 255, 255, 1),
        -2px 0px 0 rgba(255, 255, 255, 1),
        /* 滑らかさを向上させる追加の縁取り */
        -1px -1px 0 rgba(255, 255, 255, 1),
        1px -1px 0 rgba(255, 255, 255, 1),
        1px 1px 0 rgba(255, 255, 255, 1),
        -1px 1px 0 rgba(255, 255, 255, 1),
        /* ぼかし効果を重ねる */
        0 0 3px rgba(255, 255, 255, 1),
        0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(255, 255, 255, 0.5) !important;
}

.about-section .about-hero{ 
    white-space: pre-line; 
    text-align:center; 
    font-size: clamp(1.2rem, 2.8vw, 3.2rem); 
    line-height:1.35; 
    margin:0 auto 1rem; 
    color: #1a365d; /* 濃い青色 */
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.9),
        1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px 1px 0 rgba(255, 255, 255, 0.9),
        1px 1px 0 rgba(255, 255, 255, 0.9),
        0 0 8px rgba(255, 255, 255, 0.7); /* 白い縁取り */
}

/* about-bodyのスタイルも追加 */
.about-section .about-body {
    color: #1a365d; /* 濃い青色 */
    line-height: 1.6;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8),
        0 0 6px rgba(255, 255, 255, 0.6); /* 白い縁取り */
}

.responsive-16x9 { position: relative; width: 100%; padding-top: 56.25%; }
.responsive-16x9 > iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.after-video{
  background: linear-gradient(180deg,#aee1ff 0%,#d9f0ff 45%,#ffffff 100%) !important;
  background-image: none !important;
  border-radius: 12px; padding: 12px; margin-top: 12px;
}

@media (max-width:600px){ .menu-toggle{ display:none !important; } }

.bg-top {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0; /* 左パディングを0に設定 */
  padding-right: 0; /* 右パディングを0に設定 */
  background: url('../img/natsuzora_h1.jpg') no-repeat, linear-gradient(180deg,#aee1ff 0%,#d9f0ff 45%,#ffffff 100%);
  background-position: top left; /* 上端左揃えに変更 */
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 100vw auto; /* 画面横幅いっぱいに、高さは比率保持 */
  height: 100vh; /* PC画面の縦幅全体を使用 */
  min-height: 100vh;
  overflow: hidden; /* 下側をトリミング */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* ロゴを上寄りに配置 */
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: -56px; /* navの高さ分上に移動してnavの位置から表示 */
  padding-top: calc(40px + 56px); /* navの高さ分のパディングを追加 */
}

/* 16:9画面での最適化 */
@media (min-aspect-ratio: 16/9) {
    .bg-top {
        background-size: 100vw auto; /* 横幅いっぱい、下側をカット */
        background-position: top center; /* 上端揃え */
    }
}

/* 16:9より縦長の画面での調整 */
@media (max-aspect-ratio: 16/9) {
    .bg-top {
        background-size: 100vw auto; /* 横幅優先で表示 */
        background-position: top center; /* 上端揃え */
    }
}

/* モバイル表示での調整 */
@media (max-width: 768px) {
    .bg-top {
        height: auto; /* 自動高さで画像比率に合わせる */
        min-height: 60vh; /* 最小高さを設定 */
        max-height: 80vh; /* 最大高さを制限 */
        background-size: 100vw auto; /* 横幅100vw、高さは比率保持 */
        background-position: top left; /* 上端左揃えに変更 */
        justify-content: center;
        display: flex;
        flex-direction: column;
        padding-top: 15vh; /* 上部に余白を追加してコンテンツを調整 */
        padding-bottom: 0; /* 下部パディングを0に設定 */
        padding-left: 0; /* 左パディングを0に設定 */
        padding-right: 0; /* 右パディングを0に設定 */
        margin-bottom: 0; /* 下部マージンも0に設定 */
    }
}


#lightbox-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9999; display:none; }
#lightbox-overlay.is-open{ display:block; }
#lightbox-overlay .lb-inner{ margin:4vh auto; max-width:min(94vw,1400px); padding:12px; box-sizing:border-box; }
#lightbox-overlay img{ width:100%; height:auto; border-radius:12px; display:block; }
#lightbox-overlay .lb-caption{
  width:100%; margin-top:12px; padding:16px 20px;
  background:rgba(255,255,255,.98); border:1px solid rgba(0,0,0,.08);
  border-radius:14px; overflow:visible; max-height:none;
  font-size:clamp(0.95rem,1.3vw,1.05rem); line-height:1.65;
}
#lightbox-overlay .lb-close{ position:fixed; top:12px; right:16px; font-size:28px; line-height:1; color:#fff; cursor:pointer; user-select:none; }
@media (min-width:900px){
  #lightbox-overlay .lb-inner{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,38vw); gap:20px; align-items:start; }
  #lightbox-overlay .lb-caption{ margin-top:0; }
}
@media (max-width:899px){
  #lightbox-overlay .lb-inner{ display:block; }
  #lightbox-overlay .lb-caption{ margin-top:12px; }
}



@media (min-width: 900px){
  #lightbox-overlay .lb-inner{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    min-height: 50vh;
  }
  #lightbox-overlay img{
    width: 100%;
    height: 50vh;
    object-fit: contain;
  }
  #lightbox-overlay .lb-caption{
    margin-top: 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
  }
}


@media (min-width: 900px){
  #lightbox-overlay .lb-inner{
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 画像1 : 文字3 */
    gap: 20px;
    align-items: stretch;
    min-height: 80vh;
  }
  #lightbox-overlay img{
    width: 100%;
    height: 50vh;
    object-fit: contain;
  }
  #lightbox-overlay .lb-caption{
    margin-top: 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}


@media (max-width: 899px){
  #lightbox-overlay .lb-inner{ display:block; }
  #lightbox-overlay img{
    width: 33.333vw;    /* 1 */
    height: auto;
    margin: 0 auto;
  }
  #lightbox-overlay .lb-caption{
    width: 66.667vw;    /* 2 */
    margin: 12px auto 0;
  }
}

/*
/* Character overlay: fill viewport, desktop 1:3, mobile stacked full width */
#lightbox-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9999; display:none; overflow:auto; }
#lightbox-overlay.is-open{ display:block; }
#lightbox-overlay .lb-inner{
  margin: 0;
  max-width: 100vw;
  max-height: 100vh;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  padding: 24px;
}
#lightbox-overlay img{
  display:block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
#lightbox-overlay .lb-caption{
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: visible;
  max-height: none;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.65;
}
@media (min-width: 900px){
  #lightbox-overlay .lb-inner{
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 899px){
  #lightbox-overlay .lb-inner{
    display: block;
    height: auto;
    max-height: none;
    padding: 16px;
  }
  #lightbox-overlay img{
    width: 100vw;
    height: auto;
    margin: 0 calc(-50vw + 50%);
  }
  #lightbox-overlay .lb-caption{
    width: 100vw;
    margin: 12px calc(-50vw + 50%) 0;
  }
}
/* === Custom Fixes 2025-08-16 === */
main, .container {
    margin-top: var(--nav-h) !important;
    padding-top: 0 !important;
}

.static-copy {
    font-size: 2.2em; /* Larger font size */
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
    animation: none !important;
}

.about-section,
.about-hero {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .about-section,
    .about-hero {
        margin-bottom: 24px;
    }
}

.about-section {
    position: relative;
    z-index: 1;
    margin: 0 auto 120px; /* 上マージンを0に設定 */
    padding: 30px 40px; /* 60pxから30pxに縮小 */
    max-width: 1080px;
    width: 90%;
    text-align: center; /* 中央揃え */
    /* 白い背景削除 */
    background: none !important; /* content-panelの背景を上書き */
    border: none !important; /* content-panelのボーダーを削除 */
    box-shadow: none !important; /* content-panelの影を削除 */
    opacity: 0; /* 初期状態は非表示 */
    transform: translateY(30px); /* 少し下から開始 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* フェード効果 */
}

/* スクロールで表示されたときのクラス */
.about-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .about-section {
        margin: 0 auto 60px; /* 上マージンを0に設定 */
        padding: 25px 20px; /* 40pxから25pxに縮小 */
        width: 95%;
        text-align: center; /* モバイルでも中央揃え */
    }
}

.video-wrapper {
    position: relative;
    z-index: 0;
    margin: 48px auto 30px auto; /* 上48px、左右auto（中央揃え）、下30px */
    max-width: 800px; /* 最大幅を800pxに制限 */
    text-align: center; /* 子要素を中央揃え */
    width: 100%;
}
/* === BG-TOP larger and integrated about-section === */
.bg-top {
    min-height: 100vh; /* PC画面の縦幅全体を使用 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* ロゴを上寄りに配置 */
    padding-top: calc(40px + 56px); /* navの高さ分のパディングを追加 */
    padding-bottom: 40px;
    background: url('../img/natsuzora_h1.jpg') no-repeat;
    background-size: 100vw auto; /* 画面横幅いっぱいに、高さは比率保持 */
    background-position: top center; /* 上端揃え */
    overflow: hidden; /* 下側をトリミング */
    margin-top: -56px; /* navの高さ分上に移動してnavの位置から表示 */
}

.bg-top .logo {
    margin-bottom: 20px;
    margin-top: -40px; /* ロゴを上に移動 */
}

/* クラウドファンディングページの中央揃えスタイル */
.container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.container h2 {
    margin-bottom: 30px;
    text-align: center;
}

.container p {
    text-align: center;
    margin: 20px 0;
}

.cf-banner {
    margin: 30px 0;
    text-align: center;
}

.cf-banner img {
    max-width: 100%;
    height: auto;
}

/* 動画表示の修正 - 統一された中央揃えスタイル */
.video-wrapper {
    margin: 30px auto;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.video-wrapper video {
    display: block !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.reward-list {
    text-align: center;
    display: inline-block;
    margin: 30px 0;
    list-style: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* スマホ表示での画像と動画の調整 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .cf-banner img,
  .video-wrapper video {
    width: 90% !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
    
    .video-wrapper {
        text-align: center;
        padding: 0 5%;
    }
    
    .reward-list {
        width: 90%;
        margin: 20px auto;
    }
}

/* アーリーアクセス版セクションのスタイル */
.early-access-section {
    background: rgba(30, 60, 120, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 40px auto;
    padding: 30px;
    max-width: 900px;
    text-align: center;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    backdrop-filter: blur(10px);
}

.early-access-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.title-highlight {
    color: #ffeb3b;
    font-weight: 900;
    font-family: 'Noto Sans JP', sans-serif;
    font-style: normal;
}

.early-access-body {
    color: #ffffff;
    line-height: 1.8;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.early-access-body p {
    margin-bottom: 20px;
    text-align: left;
    color: #ffffff;
}

.early-access-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: #ffeb3b;
    margin: 25px 0 15px 0;
    font-size: 1.1em;
    text-align: left;
}

.early-access-content p {
    text-align: left;
    color: #ffffff;
}

.download-section {
    text-align: center;
    margin-top: 30px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    text-decoration: none;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #5CBF60 0%, #4CAF50 100%);
}

.download-icon {
    font-size: 2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.download-text {
    text-align: left;
}

.download-text strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
}

.download-text small {
    opacity: 0.9;
    font-size: 0.9em;
    color: #ffffff;
}

/* お問い合わせセクションのスタイル */
.contact-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-text {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
}

.contact-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.contact-text-button {
    color: #ffffff;
}

/* アーリーアクセス版セクションのスマホ表示調整 */
@media (max-width: 768px) {
    .early-access-section {
        margin: 20px auto;
        padding: 20px;
        max-width: 95%;
    }
    
    .early-access-title {
        font-size: 1.2em;
    }
    
    .early-access-body {
        text-align: left;
    }
    
    .early-access-body p {
        text-align: left;
    }
    
    .early-access-content h3,
    .early-access-content p {
        text-align: left;
    }
    
    .download-button {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .download-icon {
        font-size: 1.5em;
    }
    
    .download-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .contact-button {
        padding: 10px 16px;
        gap: 8px;
        font-size: 0.85em;
    }
    
    .contact-icon {
        font-size: 1em;
    }
}

/* フェード効果のクラス */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.fade-element.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.fade-element.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.early-access-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.early-access-section.fade-out {
    opacity: 0.3;
    transform: translateY(10px);
}