
/* COLOR
-------------------------------------------------- */
/* 特設ページ
  #E63E76　フューチャーピンク
  #F5F5F7　クールグレー
  #2C2E3E　ミッドナイトネイビー
  #FF8A5C　サンセットオレンジ
  #A8E6CF　フレッシュミント
  #FFFFFF　ホワイト
*/

:root {
  --bg-color-main: #E63E76;
  --bg-color-sub: #2C2E3E;
  --bg-color-act: #FF8A5C;
  --bg-color-white: #FFFFFF;
  --bg-color-gray: #F5F5F7;
  --text-color-main: #E63E76;
  --text-color-sub: #2C2E3E;
  --text-color-white: #FFFFFF;
}

a {
    color: #FF8A5C;
    text-decoration: underline;
}

/* HTML, BODY
-------------------------------------------------- */
html, body {
    margin: 0px;
    padding: 0px;
    padding-bottom: 0px;
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

body {
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: auto;
    background-color: #F5F5F7;
    background-image: url(/special/shiopan2026/common/images/noise.webp);
    background-size: 100px auto;
    background-attachment: fixed;
}

body.lang-jp {
    line-height: 2.25;
    font-size: 16px;
    --font-bold: Zen Kaku Gothic New, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W6, ヒラギノ角ゴシック, Hiragino Sans, メイリオ, Meiryo, ＭＳ Ｐゴシック, MS PGothic, sans-serif;
    --font-medium: Zen Kaku Gothic New, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W6, ヒラギノ角ゴシック, Hiragino Sans, メイリオ, Meiryo, ＭＳ Ｐゴシック, MS PGothic, sans-serif;
    --font-regular: Zen Kaku Gothic New, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, ヒラギノ角ゴシック, Hiragino Sans, メイリオ, Meiryo, ＭＳ Ｐゴシック, MS PGothic, sans-serif;
}

/* SITE TOP
-------------------------------------------------- */
.site-top {

}

.site-footer {
    position: relative;    
    width: 100%;
    text-align: right;
    z-index:1;
    margin-top: 3.0em;
    overflow: hidden;
}

.background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width:97%;
}

.background-shape-footer {
    position: absolute;
    top: 0;
    right: 0;

}

/* HEADER
-------------------------------------------------- */
header {
    position: relative;
    color: var(--text-color-white);
    width:100%;

}

header #header-inner {
    display: flex;
    justify-content: space-between; /* ロゴを左、メニューを右に配置 */
    align-items: center;            /* 上下中央揃え */
    padding: 15px 0;
}

.top-images {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: -99;
}

header #logo-area {
    flex: 0 0 auto;
}

header #logo-area img {
    max-width: 150px; /* ロゴの幅に合わせて調整してください（例: 150px〜220px） */
    height: auto;
    display: block;
}
.header-nav {
    flex: 0 0 auto;       /* メニューも必要な幅だけ確保 */
    /* もし右側に寄せ切りたい場合は flex: 1; と margin-left: auto; でもOKです */
}
.header-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;            /* メニュー同士の間隔（狭くしたい場合は 15px などに小さく） */
    white-space: nowrap;  /* ★重要: 文字の途中で折り返さない設定 */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* メニューのリンク文字 */
.header-nav a {
    color: #ffffff;     /* 背景画像の上で見やすい色（黒系なら #333 に変更） */
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: opacity 0.3s;
}

/* ホバー時の効果 */
.header-nav a:not(.btn-entry):hover {
    opacity: 0.7;
}

/* --- エントリーボタン風の装飾 --- */
.header-nav a.btn-entry {
    background-color: #e60012; /* 目立つ色を指定（赤・オレンジ等） */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;       /* 角丸ボタン */
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
}

.header-nav a.btn-entry:hover {
    background-color: #c40010;
    transform: translateY(-2px); /* 少し浮き上がる効果 */
}

header #msg-area {
    position: relative;
    text-align: left;
    width: 100%;
    z-index: 2;
}

header #msg-area img {
    width: 45%;
    -webkit-filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.8));
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.5)); 
}

header #countdown-area {
    position: relative;
    left: 0;
    text-align: left;
    width: 100%;
    z-index: 2;
    line-height: 300%;
    margin: 2.0em 1.5em;
    font-size: 1.2em;
}

header #countdown-area span {
    font-size: 8.0em;
    font-weight: bold;
    line-height: 1.0em;
    margin: 0 0.25em;
}

@media (max-width: 768px) {
    header #logo-area img {
        max-width: 100px; /* ロゴの幅に合わせて調整してください（例: 150px〜220px） */
    }
    header #countdown-area {
        line-height: 300%;
        margin: 1.5em 1.0em;
        font-size: 0.8em;
    }

    header #countdown-area span {
        font-size: 4.0em;
    }
}

@media (max-width: 430px) {
    header #logo-area img {
        max-width: 80px; /* ロゴの幅に合わせて調整してください（例: 150px〜220px） */
    }
    header #countdown-area {
        line-height: 300%;
        margin: 0em 1.0em;
        font-size: 0.8em;
    }

    header #countdown-area span {
        font-size: 5.0em;
        line-height: 0.8em;
    }
}


/* ハンバーガーボタン
-------------------------------------------------- */
/* ==========================================
   1. PC表示（769px以上）のときの設定
   ========================================== */
/* PC画面ではハンバーガーボタン本体と中の線を非表示 */
.hamburger-btn,
.hamburger-btn span {
    display: none !important;
}


/* ==========================================
   2. スマホ表示（768px以下）のときの設定
   ========================================== */
@media (max-width: 768px) {
    
    /* 背景や親要素がメニューをカットしてしまうのを防止 */
    .site-top, header, #header-inner {
        overflow: visible !important;
    }

    /* メニュー開いてる間は背景の画面スクロールを禁止 */
    body.nav-open {
        overflow: hidden !important;
        height: 100vh !important;
    }

    /* --- ハンバーガーボタン（右上に固定・黒透過の丸背景） --- */
    .hamburger-btn {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 44px !important;
        height: 44px !important;
        padding: 12px 10px !important;
        background-color: rgba(0, 0, 0, 0.6) !important; /* 黒透過背景 */
        border-radius: 50% !important;                  /* 丸ボタン */
        border: none;
        cursor: pointer;
        z-index: 10000 !important;                      /* 最前面表示 */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        box-sizing: border-box !important;
    }

    /* 三本線 */
    .hamburger-btn span {
        display: block !important;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* ボタン開閉時のアニメーション（三本線 → ×印） */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- スマホ用スライドメニュー本体 --- */
    header .header-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background-color: #111111 !important;           /* 暗め背景 */
        padding: 80px 20px 40px !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 9999 !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;                    /* メニュー内スクロール許可 */
        
        /* 初期状態：画面右の外側に退避 */
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
    }

    /* メニューが開いた状態（画面内にスライド） */
    header .header-nav.active {
        transform: translateX(0) !important;
    }

    /* --- メニュー内のレイアウト --- */
    header .header-nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 24px !important;
        white-space: normal !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .header-nav a {
        font-size: 18px !important;
        color: #ffffff !important;
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
    }

    header .header-nav a.btn-entry {
        text-align: center !important;
        margin-top: 10px !important;
    }
}



/* ABOUT
-------------------------------------------------- */

/* --- セクション全体 --- */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

/* --- 横並びレイアウト（Flexbox） --- */
.about-container {
    display: flex;
    align-items: center;         /* 上下の中央で揃える */
    justify-content: space-between;
    gap: 48px;                   /* テキストと写真の間の余白 */
    max-width: 1100px;           /* 左右並びにするため幅を広めに設定 */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 左側：テキストエリア --- */
.about-text-area {
    flex: 1;                     /* 左右均等に幅を分ける */
}

.section-title-area {
    margin-bottom: 20px;
}

.section-title-area .sub-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #e60012;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.section-title-area .main-title {
    font-size: 30px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.about-content p {
    font-size: 15px;
    line-height: 1.85;
    color: #444444;
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* --- 右側：写真エリア --- */
.about-image-area {
    flex: 1;                     /* 左右均等に幅を分ける */
}

.about-image-area img {
    width: 100%;
    height: auto;
    display: block;
    
}

@media (max-width: 930px) {
    .about-container {
        flex-direction: column;  /* スマホでは縦並び（文章が先、写真が後）に変更 */
        gap: 32px;
    }

    .about-section {
        padding: 48px 0;
    }

    .section-title-area .main-title {
        font-size: 24px;
    }

    .about-image-area {
        width: 100%;
    }
}


/* SLIDE SHOW
-------------------------------------------------- */

.slideshow-slide {
  position: absolute;
  max-width: 60%;
  width: 960px;
  height: 720px;
  overflow: hidden;
  padding: 0;
  top: 30px;
  right: 0;
  z-index:1;
  transform: translateX(-10%) rotate(5deg);
}

.slideshow-slide li {
  list-style: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s;
  opacity: 0;
  z-index: 1;
}

.slideshow-slide li.slide {
  opacity: 1;
  z-index: 2;
}

.slideshow-slide li img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  border-radius: 10px;
}

.slideinLeft {
  animation: slideinLeft 3s;
}

@keyframes slideinLeft {
  0% {
    transform: translateX(100%) rotate(-5deg);
  }
  100% {
    transform: translateX(-10%) rotate(5deg);
  }
}

/* MAIN
-------------------------------------------------- */
main {
    position: relative;
    color: var(--text-color-sub);
    width:100%;
}

/* TITLE
-------------------------------------------------- */
h2 {
    color: #E63E76;
    margin: 1.0em;
    text-align: center;
    display: block;
    font-weight: bold;
}

/* BUTTON
-------------------------------------------------- */
.btn-area {
    position: relative;
    text-align: center;
    z-index:3;
}

.btn-lrsk {
    font-size: 2.0em;
    padding: 1.0em;
    margin: 1.0em;
    background-color: var(--bg-color-act);
    color: var(--text-color-white);
    font-weight: bold;
    width: 500px;
    max-width: 100%;
    border-radius: 0.6em;
    border: 3px solid #FFFFFF;
    -webkit-filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.8));
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.5)); 
}

.btn-lrsk:hover {
    background-color: #A8E6CF;    
    border: 3px solid #A8E6CF;
}

.btn-lrsk2 {
    font-size: 2.0em;
    padding: 1.0em;
    margin: 1.0em;
    background-color: var(--bg-color-main);
    color: var(--text-color-white);
    font-weight: bold;
    width: 500px;
    max-width: 40%;
    border-radius: 0.6em;
    border: 3px solid #FFFFFF;
    -webkit-filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.8));
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.5)); 
}

.btn-lrsk2:hover {
    background-color: #A8E6CF;    
    border: 3px solid #A8E6CF;
}

@media (max-width: 768px) {
    .btn-lrsk, .btn-lrsk2 {
        max-width: 85%;
        font-size: 1.5em;
        margin: 0.33em;
        padding: 0.8em;
    }
}

/* CARD
-------------------------------------------------- */
.contents-card1 {
    background-color: var(--bg-color-white);
    border-radius: 1.0em;
    margin: 2.0em 1.0em;
    padding: 2.0em 1.0em;
}

.contents-card2 {
    background-color: var(--bg-color-white);
    margin: 2.0em 0.0em;
    padding: 2.0em 1.0em;
    width: 100%;
}

.contents-card3 {
    margin: 2.0em 1.0em;
    padding: 2.0em 1.0em;
}

.text-contents h3 {
    display: block;
    color: #888;
    font-weight: bold;
    font-size: 1.33em;
    border-left: 0.75em solid var(--bg-color-main);
    border-bottom: 1px solid var(--bg-color-main);
    padding: 0.2em 1.0em;
    line-height: 1.5em;
}

.text-contents p.out {
    display: block;
    font-size: 1.25em;    
    padding: 0 1.0em 1.0em;
    margin-bottom: 1.0em;
}

.text-contents p.in {
    display: block;
    font-size: 1.25em;    
    padding: 0 1.0em 1.0em;
    margin-bottom: 1.0em;
}

.text-contents .title {
    display: block;
    color: #555;
    font-weight: bold;
    font-size: 2.0em;
    padding: 0.2em 1.0em;
    line-height: 1.5em;
    border-top: 2px solid var(--bg-color-main);
}

.text-contents img {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.text-record .row {
    border-bottom: 1px solid #ccc;
    font-size: 1.25em;
}

.text-record .col {
    padding: 0.5em 0;
}

.text-record .photo img {
    max-width: 200px;
    width: 100%;
    margin: 1.0em;
}

.text-record .photo img:hover {
    opacity: 0.8;
}

.text-record .date {
    font-weight: bold;
}

.text-record .text {
    
}

@media (max-width: 768px) {
    
    .contents-card1 {
        margin: 2.0em 0.0em;
        padding: 2.0em 0.0em;
    }

    .contents-card2 {
        margin: 2.0em 0.0em;
        padding: 2.0em 0.0em;
    }

    .contents-card3 {
        margin: 2.0em 0.0em;
        padding: 2.0em 1.0em;
    }

    .text-contents {
        padding: 0.2em 0.2em;
    }

    .text-contents h3 {
        font-size: 1.3em;
        line-height: 1.5em;
    }
    
    .text-contents .title {
        font-weight: bold;
        font-size: 2.0em;
    }

    .text-contents p.out {
        font-size: 1.3em;
        line-height: 1.5em;
    }
    
    .text-contents p.in {
        font-size: 1.3em;
        line-height: 1.5em;
        padding: 0em 0em;
    }
    
    .text-contents ul {
        font-size: 1.25em;
    }

    .text-contents li {
        margin-bottom: 1.0em;
        line-height: 1.5em;
    }

    .text-contents th {
        line-height: 1.0em;
    }

    .text-record .row {
        border-bottom: 1px solid #ccc;
        margin-bottom: 1.5em;
    }
    
    .text-record .date {
        font-size: 1.25em;
    }
    
}



/* SPONSOR
-------------------------------------------------- */
.coop-area {
    padding: 2.0em 0;
    text-align: center;
}

.coop-area span {
    font-size: 0.8em;;
}

.coop-area a {
    color: var(--text-color-sub);
    display: block;
}

.coop-area a:hover {
    opacity: 0.6;
}

.coop-area .rank h3 {
    font-size: 2.5em;
    text-align: center;
    color: #ccc;
    margin-bottom: 1.2em;
}

.coop-area .gold img {
	width: 100%;
	max-width: 500px;
}

.coop-area .silver img {
	width: 100%;
	max-width: 300px;
}

.coop-area .gold, .coop-area .silver {
        margin-bottom: 2.5em;
        line-height: 1.0em;
}
.coop-area .gold a, .coop-area .silver a {
        color: #AAAAAA;
}
.coop-area .gold span, .coop-area .silver span{
        margin-top: 1.5em;
        display: block;
}
.coop-area .bronze {
        margin-bottom: 2.0em;
        display: block;
        text-align: center;
        font-size: 1.25em;
        line-height: 1.0em;
}
.coop-area .bronze a, .coop-area .bronze span {
        font-size: 0.9em;
}

@media (max-width: 768px) {
    .coop-area .gold img {
        margin-bottom: 2.0em;
        max-width: 80%;
    }

    .coop-area .silver img {
        margin-bottom: 2.0em;
    }
    .coop-area .rank h3 {
        font-size: 1.5em;
        margin-top:0;
        margin-bottom: 1.2em;
    }
    .coop-area .bronze {
        margin-bottom: 0.8em;
        font-size: 1.2em;
    }
    .coop-area .gold span, .coop-area .silver span{
            margin-top: 0em;
    }

}

    

/* CHEERED MESSAGE
-------------------------------------------------- */
#cheered-area {
    
}

#cheered-area .row {
    border-bottom: 1px dashed #ccc;    
}

#cheered-area .cheers {
    text-align: center;
    vertical-align: middle;
    width: 160px;
    height: 160px;
    line-height: 160px;
    margin: 1.0em 0;
    overflow: hidden;
}

#cheered-area .coop-logo {

}

#cheered-area .coop-logo img {
    width: 100%;
}


#cheered-area .user-icon {
    background-color: var(--bg-color-gray);
    border-radius: 50%;
}

#cheered-area .user-icon img {
    width: 50%;
    height: 50%;
}

#cheered-area p {
    margin: 0.5em 0;
    padding: 0.5em;
}

#cheered-area span {
    display: block;
    text-align: right;
    font-size: 1.0em;
    font-weight: bold;
    color: #999;
}

@media (max-width: 768px) {
    
    #cheered-area .cheers {
        width: 100px;
        height: 100px;
        line-height: 100px;
        margin-bottom:0px;
    }

    #cheered-area p {
        margin: 0 0 0.5em;
        padding: 1.0em;
    }
    
     #cheered-area .cheers-outer {
        padding: 1.0em 0 0 1.0em;
    }

}

/*********************************************************/

#cheered-area2 {

}

#cheered-area2 .card-wrap {
    display: flex;
}

#cheered-area2 .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    padding-bottom: 2.0em;
}

#cheered-area2 .cheers {
    text-align: center;
    vertical-align: middle;
}

#cheered-area2 .coop-logo {

}

#cheered-area2 .coop-logo img {
    width: 100%;
}


#cheered-area2 .user-icon {
    background-color: var(--bg-color-gray);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0.75em;
    overflow: hidden;
}

#cheered-area2 .user-icon img {
    height: 50%;
}

#cheered-area2 p {
    margin: 0;
    padding: 0;
    font-size: 0.85em;
    line-height: 1.5em;
    display: block;
    width: 100%;
    word-break: break-word;       /* 単語の途中で改行可（日本語向け） */
    line-break: strict;           /* 禁則処理を有効にする（句読点など） */
    overflow-wrap: break-word;    /* 長い単語の折り返し */
    white-space: normal;          /* 通常の改行処理 */
}

#cheered-area2 span {
    display: block;
    text-align: right;
    font-size: 0.9em;
    font-weight: bold;
    color: #999;
    width: 100%;
    padding: 0.5em 1.0em 1.0em;
    position: absolute;
    left: 0px;
    bottom: 0px;
    line-height: 0.9em;
}

@media (max-width: 768px) {
    #cheered-area2 span {
        font-size: 0.7em;
    }
}


/* ANIMATION
-------------------------------------------------- */

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%   { transform: rotate(0deg) translateX(0); }
  20%  { transform: rotate(-2deg) translateX(-2px); }
  40%  { transform: rotate(2deg) translateX(2px); }
  60%  { transform: rotate(-2deg) translateX(-2px); }
  80%  { transform: rotate(2deg) translateX(2px); }
  100% { transform: rotate(0deg) translateX(0); }
}

.card.pulse {
  animation: pulse 0.6s ease-in-out;
}

.card.shake {
  animation: shake 0.6s ease-in-out;
}



/* MOVIE
-------------------------------------------------- */
.movie-link {
    margin-bottom: 1.0em;
    display:inline-block;
}
.movie-link:hover {
    opacity: 0.8;
}

/* PAGE TOP
-------------------------------------------------- */
.pagetop {
  position: fixed;
  bottom: 1.0em;
  right: 1.0em;
  text-align: center;
  z-index: 99999;
}

.pagetop a {
  display: block;
  text-decoration: none;
  width: 44px;
  height: 44px;
  background-color: #000;
  opacity: 0.5 ;
  color: #fff;
  border-radius: 3px;
  line-height: 44px;
}


/* スライドショー
-------------------------------------------------- */



/* =========================
   カラーパレット／基本
   ========================= */
:root {
  --bg: #0d0f12;
  --fg: #666666;
  --muted: #9aa0a6;
  --accent: #4ea1ff;
  --panel: #ffffff;
  --border: #2a2f37;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

/* =========================
   ページヘッダー
   ========================= */
.page-header {
  padding: 24px 0px;
  border-bottom: 1px solid #ffffff;
}
.page-header h1 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.4rem;
}

/* =========================
   アルバム（見出し＋グリッド）
   ========================= */
.albums {
  display: grid;
  gap: 28px;
}
.album {
  border: 0px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.0em;
}
.album__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.album__cover {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.album__title {
  margin: 0;
  font-size: 1.1rem;
}
.album__count {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   サムネイルグリッド（imgクリック）
   ========================= */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  padding: 12px;
}
.thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #12161c; /* ロード失敗時でも黒ベタに見えづらく */
}
.thumb-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: transparent;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 1; /* ラベルより前面へ */
}
.thumb-img:focus,
.thumb-img:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border-color: var(--accent);
}
.thumb__label {
  position: absolute;
  inset: auto 6px 6px 6px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.8rem;
  z-index: 0;
  pointer-events: none; /* ← ラベルがクリックを奪わない */
}

/* =========================
   Lightbox（モーダル）
   ========================= */
.lightbox.hidden { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;                 /* 画面中央へ */
  align-items: center;
  justify-content: center;
  overflow: hidden;              /* はみ出し防止 */
}

/* 背景：半透明の黒（ぼかしは使わない） */
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* パネル：Flex縦配置、最大サイズは画面に合わせる */
.lightbox__panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  /* 画面に収まる最大サイズ（安全域込み） */
  width: clamp(280px, 96vw, 1200px);
  max-height: calc(100svh - 24px - env(safe-area-inset-bottom));
  overflow: hidden;             /* 内部で制御 */
}

/* ヘッダー／フッターは固定高、本文が残り */
.lightbox__header, .lightbox__footer {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.lightbox__footer { border-top: 1px solid var(--border); border-bottom: none; }
.lightbox__title { margin: 0; font-size: 1.1rem; }

/* Lightbox 専用ボタン（競合回避済みクラス） */
.lightbox .lb-btn {
  border: 0px;
  color: #ffffff;
  cursor: pointer;
}
.lightbox .lb-btn:hover{
    opacity: 0.8;
}
.lb-close {
    position: absolute;
    z-index: 1001;
    right: 0;
    top: 0;
    background-color: rgba(255,0,0,0.3);
    padding: 1.0em;
}
.lb-prev {
    background-color: rgba(0,0,0,0.3);
    position: absolute;
    z-index: 1001;
    left: 0;
    top: calc(50% - 40px);
    vertical-align: middle;
    width: 44px;
    height: 80px;
    padding: 0.7em 1.0em;
}
.lb-next {
    background-color: rgba(0,0,0,0.3);
    position: absolute;
    z-index: 1001;
    right: 0;
    top: calc(50% - 40px);
    vertical-align: middle;
    width: 44px;
    height: 80px;
    padding: 0.7em 1.0em;
}

.dli-chevron-left {
  display: inline-block;
  vertical-align: middle;
  color: #ffffff;
  line-height: 1;
  width: 1em;
  height: 1em;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateX(25%) rotate(-135deg);
}

.dli-chevron-right {
  display: inline-block;
  vertical-align: middle;
  color: #ffffff;
  line-height: 1;
  width: 1em;
  height: 1em;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateX(-25%) rotate(45deg);
}

.dli-close {
  display: inline-block;
  vertical-align: middle;
  color: #ffffff;
  line-height: 1;
  width: 1em;
  height: 0.1em;
  background: currentColor;
  border-radius: 0.1em;
  position: relative;
  transform: rotate(45deg);
}

.dli-close::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}

/* 本文は残り高さをフル使用。はみ出す場合は中だけスクロール可 */
.lightbox__body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 6px;
  overflow: hidden;      /* ステージ内で制御 */
}

/* スライド表示領域：本文の中で100%活用 */
.slide-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0b0e12;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

/* スライド画像 */
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none; /* ロード完了後に表示（JS側で show） */
}

/* スピナー（テキスト表示） */
.spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.spinner::after {
  content: "読み込み中…";
  font-size: 0.95rem;
}

/* コントロール */
.controls { display: flex; gap: 8px; align-items: center; }
.status   { color: var(--muted); }
.playing  { color: var(--accent); }

/* =========================
   スマホ最適化（安全域）
   ========================= */
@media (max-width: 768px) {
  .lightbox__footer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* ホームバー回避 */
  }
}
@media (max-width: 768px) {
    .lb-close {
        padding: 0.5em;
    }
    .lb-prev {
        width: 44px;
        height: 80px;
    }
    .lb-next {
        width: 44px;
        height: 80px;
    }
}

/* さらに小さい端末（任意） */
@media (max-width: 420px) {
  .thumb-img { height: 100px; }
  .lightbox .lb-btn { padding: 0.6em 0.9em; font-size: 15px; }
}


/* ACCESS
-------------------------------------------------- */


/* FOOTER
-------------------------------------------------- */
footer {
    position: relative;
    margin: 0px;
    padding: 0px;
}

footer .contents {
    position: relative;
    top: 10em;
    left: 0;
    text-align: left;
    z-index:2;
}

footer #logo-area2 {
    position: relative;
    text-align: left;
    width:100%;
    vertical-align: middle;
    font-size: 1.5em;
    font-weight: bold;
}

footer #logo-area2 img {
    max-width: 140px;
}

footer #logo-area2 span {
}

.copyright {
    font-size: 0.8em;
    text-align: center;
    background-color: var(--bg-color-main);
    color: var(--text-color-white);
    padding: 0.25em;
}
