@charset "utf-8";

/* =========================================================
東方Project × RED° TOKYO TOWER
統合CSSファイル
========================================================= */

/* フォント・アイコン */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Kaisei+Decol:wght@400;700&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/* =========================================================
アニメーション定義
========================================================= */
@keyframes opa1 {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.1) rotate(-30deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
リセット・基本設定
========================================================= */
html, body {
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
}

/* Adobe Fonts 読み込み中は new-template の中身を隠す */
html.wf-loading .new-template {
    opacity: 0;
}

/* 読み込み完了 or タイムアウトしたら表示＆ふわっとフェードイン */
html.wf-active .new-template,
html.wf-inactive .new-template {
    opacity: 1;
    transition: opacity .3s ease;
}

.touhou {
    font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
        "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    line-height: 1.8;
    letter-spacing: 0.03em;
    color: #333;
    position: relative;
    isolation: isolate; /* .touhou-bg のスタッキングコンテキストを .touhou 内に閉じ込める */
}

/* =========================================================
背景専用レイヤー（position:fixedの実体要素）
PC・スマホともにこの要素だけで背景固定を実現する。
background-attachment: fixed は使わない（モバイルでの
スクロール阻害・描画崩れの原因になるため）。
========================================================= */
.touhou-bg {
    position: fixed !important;
    inset: 0;
    z-index: -1 !important;
    background: url("images/tower-toho.webp") center center / cover no-repeat;
    pointer-events: none;
}

.touhou-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/hirahira02.png") center top / 70% auto no-repeat;
    opacity: 0.9;
    pointer-events: none;
}

/* 子要素を背景の上に表示 */
.touhou > * {
    position: relative;
    z-index: 1;
}

/* new-template クラスのスタイル */
.new-template {
    --primary-color: #F8F6F3;
    --primary-inverse-color: #725A4C;
    --secondary-color: #544538;
    --secondary-inverse-color: #fff;
    --accent-color: #BF920B;
    --accent-inverse-color: #fff;
    --global-space: 20px;
    
    font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
        "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    line-height: 2.5;
    color: var(--primary-inverse-color);
}

.touhou *,
.touhou *::before,
.touhou *::after,
.new-template *,
.new-template *::before,
.new-template *::after {
    box-sizing: border-box;
}

.touhou img,
.new-template img {
    border: none;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.touhou a,
.new-template a {
    color: inherit;
    transition: 0.3s;
    /* text-decoration: none; */
}

.touhou a:hover,
.new-template a:hover {
    text-decoration: none;
}

.touhou ul,
.new-template ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* new-template固有のリスト設定 */
.new-template ul {
    padding: 0;
}

/* =========================================================
ページローダー
========================================================= */
/* .touhou #page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    opacity: 1;
    transition: opacity .6s ease;
}

.touhou #page-loader.hide {
    opacity: 0;
    pointer-events: none;
} */

/* =========================================================
ページ本体フェードイン
========================================================= */
/* .touhou #ip-page-all {
    opacity: 0;
    transition: opacity .6s ease;
}

.touhou #ip-page-all.show {
    opacity: 1;
} */

/* =========================================================
左サイドロゴ（PC表示）
========================================================= */
.touhou #side-logo {
    display: none;
}

@media screen and (min-width: 1201px) {
    .touhou #side-logo {
        display: block;
        position: fixed;
        z-index: 1;
        left: calc(25% - 192px);
        transform: translateX(-50%);
        top: 80px;
        max-width: 133px;
    }

    .touhou #side-logo img {
        width: 100%;
        height: auto;
    }
    
    /* new-template内のロゴ */
    .new-template .touhou #side-logo {
        max-width: 180px;
        left: calc(25% - 200px);
    }
    
    /* new-template内のヘッダーメニュー */
    .new-template #header-menu li a {
        max-width: 140px;
        width: 140px;
    }
}

/* =========================================================
ヘッダーナビゲーション（PC表示）
========================================================= */
.touhou #header-menu {
    display: none;
}

@media screen and (min-width: 1201px) {
    .touhou #header-menu {
        display: block;
        position: fixed;
        z-index: 1;
        left: calc(75% + 192px);
        transform: translateX(-50%);
        top: 80px;
    }

    .touhou #header-menu li {
        list-style: none;
        margin-bottom: 8px;
    }

    .touhou #header-menu li a {
        text-decoration: none;
        letter-spacing: 0.03rem;
        font-weight: 700;
        display: inline-block;
        background: transparent;
        color: #fff;
        width: 160px;
        line-height: 1.8;
        border-radius: 0;
        padding: 0;
        text-align: center;
        transition: all 0.3s ease;
        font-family: "kozuka-mincho-pr6n", serif;
        -webkit-text-stroke: 0.8px #fff;
        text-stroke: 1px #fff;
        position: relative;
        white-space: nowrap;
    }

    .touhou #header-menu li a:hover {
        background: transparent;
        transform: scale(1.05);
    }
    
    /* スクロール位置に応じたアイコン表示 */
    .touhou #header-menu li a::before {
        content: "";
        position: absolute;
        left: -28px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background: url("images/sakura-icon.png") center / contain no-repeat;
        opacity: 0;
        transition: opacity .25s ease;
    }
    
    /* アクティブなセクションのアイコンを表示 */
    .touhou #header-menu li.active a::before {
        opacity: 1;
    }
    
    /* ホバー時もアイコン表示 */
    .touhou #header-menu li a:hover::before {
        opacity: 1;
    }

    .touhou #header-menu li.active a {
        opacity: 1;
    }
}

/* =========================================================
メインコンテンツ
========================================================= */
.touhou main,
.new-template main {
    position: relative;
}

.touhou .touhou-main {
    max-width: 768px;
    margin: 0 auto;
    padding: 0;
}

.touhou .all-center-con {
    max-width: 768px;
    margin: 0 auto;
    border-left: none;
    border-right: none;
    
    /* ボーダーグラデーション */
    border-image: linear-gradient(
        to bottom,
        #fcf5d9 0%,
        #f2d78f 25%,
        #f8f0e4 50%,
        #f2d78f 75%,
        #fcf5d9 100%
    ) 1;
    
    /* 背景のぼかし効果 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(12px);
    
    /* グラデーション背景 */
    background: linear-gradient(
        to right,
        rgba(255, 255, 220, 0.18) 0%,
        rgba(0, 0, 0, 0.8) 22%,
        rgba(0, 0, 0, 0.8) 78%,
        rgba(255, 255, 220, 0.12) 100%
    );
}

@media (max-width: 768px) {
    .touhou .touhou-main {
        max-width: 768px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    /* スマホではblurが重いので軽量化 */
    .touhou .all-center-con {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

/* new-template の中央カラム全体のフレーム */
.new-template #page-frame {
    max-width: 768px;
    margin: 0 auto;
    box-shadow: 0 0 0 rgba(178, 145, 23, 0);
    background: transparent;
    transition: box-shadow 3s ease;
}

#page-frame.main-visible {
    box-shadow: 0 0 40px rgba(178, 145, 23, 0.35) !important;
}

@media (max-width: 768px) {
    #page-frame.main-visible {
        box-shadow: 0 0 10px rgba(178, 145, 23, 0.1) !important;
    }
}

.touhou .contents,
.new-template .contents {
    background-color: transparent;
    color: #333;
    padding: 20px;
    position: relative;
    /* overflow-x: hidden; */
    transition: background-color 3s ease;
}

@media screen and (min-width: 600px) {
    .touhou .contents,
    .new-template .contents {
        max-width: 768px;
        margin: 0 auto;
        /* overflow-x: visible; */
    }
}

/* new-template のコンテンツ背景のフェードイン */
body.main-visible .new-template main .contents {
    background-color: #fff;
}

.touhou .section,
.new-template .section {
    position: relative;
}

/* スクロールフェードイン用 */
.touhou .section .contents,
.new-template .section .contents {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.touhou .section.fade-in .contents,
.new-template .section.fade-in .contents {
    opacity: 1;
    transform: translateY(0);
}

/* 既に表示されている要素（初期状態） */
.touhou .touhou-kv,
.touhou-kv.contents {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =========================================================
見出しスタイル
========================================================= */
.touhou h2,
.new-template .contents h2 {
    margin: 0 0 30px 0;
    padding: 50px 0 0;
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.8;
}

.touhou h2.first,
.new-template .contents h2.first {
    padding-top: 0;
}

.touhou h2 img,
.new-template .contents h2 img {
    max-width: 100%;
    height: auto;
}

.new-template .contents h2 span.hosoku {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

/* new-template .touhou 専用の見出しスタイル */
.new-template .touhou .contents h2 {
    color: #fff;
    position: relative;
    margin: 5rem auto 1rem;
    width: 65%;
    background: linear-gradient(to right, rgba(55,55,55, 0) 0%, rgba(55,55,55, 0.2) 10%, rgba(55,55,55, 0.2) 90%, rgba(55,55,55, 0) 100%);
    padding: 0.5rem;
    padding-bottom: 0.7rem;
}

.new-template .touhou .contents h2.first {
    margin: 0rem auto 1rem;
}

@media (max-width: 768px) {
    .new-template .touhou .contents h2 {
        width: 100%;
        margin: 24px 0 20px 0;
        line-height: 1.8;
        font-size: 1.4rem;
        padding: 10px 0 0;
    }
}

/* =========================================================
テーブル風のdl要素
========================================================= */
.touhou dl.table,
.new-template dl.table {
    display: grid;
    grid-template-columns: 160px auto;
    margin-bottom: 0;
    line-height: 1.8;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    gap: 0;
}

.touhou dl.table dt,
.touhou dl.table dd,
.new-template dl.table dt,
.new-template dl.table dd {
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.touhou dl.table dt,
.new-template dl.table dt {
    background: transparent;
    font-weight: 500;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.touhou dl.table dd,
.new-template dl.table dd {
    font-weight: 400;
    color: #333;
    padding-left: 24px;
}

.touhou dl.table dt:last-of-type,
.touhou dl.table dd:last-of-type,
.new-template dl.table dt:last-of-type,
.new-template dl.table dd:last-of-type {
    border-bottom: none;
}

.new-template dl.table dt.full-row {
    padding-bottom: 4px;
    border-bottom: none;
    font-size: 0.9rem;
    color: #888;
}

.new-template dl.table dd.full-row {
    padding-top: 4px;
    padding-left: 0;
}

/* new-template .touhou 専用のテーブルスタイル */
.new-template .touhou dl.table {
    gap: 3rem 3rem;
    margin-top: 0;
}

.new-template .touhou dl.table dt {
    background: transparent;
    text-align: center;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "游明朝", "YuMincho", "MS PMincho", "MS 明朝", serif !important;
    font-weight: 600;
    letter-spacing: .12em;
    font-size: 15px;
    color: #fff6f8;
    
    /* ふんわりピンク発光 */
    text-shadow:
        0 0 6px rgba(255, 200, 220, .8),
        0 0 12px rgba(255, 170, 210, .6),
        0 0 24px rgba(255, 150, 200, .4);
}

.new-template .touhou dl.table dd {
    color: #fff;
}

.new-template .touhou dl.table dt,
.new-template .touhou dl.table dd {
    border-bottom: none !important;
    padding: 0;
}

.new-template .touhou dl.table dd.full-row {
    padding-top: 4px;
    margin-bottom: 1rem;
    padding-left: 0;
    margin-top: 1rem;
}

.new-template .touhou main > .section:nth-of-type(even) dl.table dt,
.new-template .touhou #mystery dl.table dt {
    background-image: none;
}

@media screen and (max-width: 768px) {
    .touhou dl.table,
    .new-template dl.table {
        grid-template-columns: 1fr;
    }

    .touhou dl.table dt,
    .touhou dl.table dd,
    .new-template dl.table dt,
    .new-template dl.table dd {
        padding: 14px 0;
    }

    .touhou dl.table dt,
    .new-template dl.table dt {
        border-bottom: none;
        padding-bottom: 6px;
        font-size: 0.85rem;
    }

    .touhou dl.table dd,
    .new-template dl.table dd {
        padding-top: 6px;
        padding-left: 0;
    }

    .new-template dl.table dt.full-row,
    .new-template dl.table dd.full-row {
        grid-column: 1 / -1;
    }
    
    /* new-template .touhou のレスポンシブ */
    .new-template .touhou dl.table {
        margin-top: 0.5rem;
        gap: 16px 28px;
    }
    
    .new-template .touhou dl.table dt,
    .new-template .touhou dl.table dd {
        text-align: center;
        margin: 0;
        font-size: 0.8em;
    }
    
    .new-template .touhou dl.table dt {
        max-width: 100%;
        text-align: center;
        margin: 1rem auto 0;
    }
    
    .new-template .touhou dl.table dd.full-row {
        padding-top: 0px !important;
        padding-left: 0;
        margin: 0;
    }
}

/* =========================================================
背景エリア
========================================================= */
.touhou .bg1,
.new-template .bg1 {
    background: transparent;
    padding: 20px;
    margin: 0 -20px;
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .touhou .bg1,
    .new-template .bg1 {
        padding: 20px;
        margin-top: 0;
    }
}

/* kodawari セクション固有 */
.new-template #kodawari .bg1 {
    background: #F0ECE5;
    padding: 20px 60px;
    margin: 0 calc(-1 * var(--global-space));
}

.new-template #kodawari .event-lead {
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 500;
    text-align: left;
    text-indent: 0;
}

.new-template #kodawari .event-lead p {
    margin: 0 0 0.8em 0;
}

.new-template #kodawari .event-lead p:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 900px) {
    .new-template #kodawari .event-lead {
        max-width: 42em;
        margin: 0 auto;
        text-align: center;
    }
}

/* =========================================================
注意事項アコーディオン
========================================================= */
.touhou .notice-accordion,
.new-template .notice-accordion {
    margin-top: 2rem;
}

.touhou .notice-accordion h3.openclose,
.new-template .notice-accordion h3.openclose {
    margin: 0;
    padding: 16px 50px 16px 20px;
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
    background: #fff;
    color: #544538;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #BF920B;
    border-radius: 6px;
    font-weight: 500;
}

.touhou .notice-accordion h3.openclose:hover,
.new-template .notice-accordion h3.openclose:hover {
    background: #fafafa;
}

.touhou .notice-accordion h3.openclose::before,
.new-template .notice-accordion h3.openclose::before {
    content: '⚠';
    margin-right: 8px;
    color: #BF920B;
}

.touhou .notice-accordion h3.openclose::after,
.new-template .notice-accordion h3.openclose::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s ease;
}

.touhou .notice-accordion h3.openclose.active::after,
.new-template .notice-accordion h3.openclose.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.touhou .notice-content,
.new-template .notice-content {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin-top: -6px;
    display: none;
}

.touhou .notice-content p,
.new-template .notice-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #555;
}

.touhou .notice-content p:last-child,
.new-template .notice-content p:last-child {
    margin-bottom: 0;
}

.new-template .notice-content strong {
    color: var(--primary-inverse-color);
    font-weight: 600;
}

/* new-template .touhou 専用の注意事項アコーディオン */
.new-template .touhou .notice-accordion h3.openclose {
    margin: 0;
    padding: 16px 50px 16px 20px;
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 0.5px solid rgba(196, 143, 48, 0.5) !important;
    border-radius: 6px;
    font-weight: 500;
}

.new-template .touhou .notice-content {
    margin-top: 0 !important;
    border: 0.5px solid rgba(196, 143, 48, 0.5) !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 36px 24px;
}

.new-template .touhou .notice-content p {
    color: #fff;
}

.new-template .touhou .notice-content strong {
    color: #BF920B;
}

.new-template .touhou .notice-content a {
    color: #BF920B !important;
}

@media (max-width: 768px) {
    .new-template .touhou .notice-accordion h3.openclose {
        font-size: 0.8rem;
        padding: 12px 50px 12px 20px;
    }
    
    .new-template .touhou .notice-content p {
        font-size: 0.8rem;
    }
}

/* =========================================================
FAQアコーディオン
========================================================= */
.touhou .faq-container,
.new-template .faq-container {
    margin: 20px 0;
}

.touhou .faq-item,
.new-template .faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.touhou .faq-item h3.openclose,
.new-template .faq-item h3.openclose {
    margin: 0;
    padding: 16px 50px 16px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    background: #F8F6F3;
    color: #544538;
    position: relative;
    transition: all 0.3s ease;
}

.touhou .faq-item h3.openclose:hover,
.touhou .faq-item h3.openclose.active,
.new-template .faq-item h3.openclose:hover,
.new-template .faq-item h3.openclose.active {
    background: rgba(191, 146, 11, 0.1);
}

.touhou .faq-item h3.openclose::after,
.new-template .faq-item h3.openclose::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #BF920B;
    transition: transform 0.3s ease;
}

.touhou .faq-item h3.openclose.active::after,
.new-template .faq-item h3.openclose.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.touhou .faq-answer,
.new-template .faq-answer {
    padding: 0 20px;
    background: #fff;
    display: none;
}

.touhou .faq-answer p,
.new-template .faq-answer p {
    padding: 15px 0;
    margin: 0;
    line-height: 1.8;
    color: #555;
    font-size: 0.9rem;
}

/* new-template .touhou 専用のFAQスタイル */
.new-template .touhou .faq-item {
    background: transparent !important;
    border: none;
    border-radius: 0;
}

.new-template .touhou .faq-item h3.openclose {
    margin: 0;
    padding: 16px 50px 16px 20px;
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2) !important;
    color: #fff;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    border: 0.5px solid rgba(196, 143, 48, 0.5) !important;
    border-radius: 6px;
    font-weight: 500;
}

.new-template .touhou .faq-item h3.openclose::after {
    color: #BF920B !important;
}

.new-template .touhou .faq-answer {
    background: transparent !important;
}

.new-template .touhou .faq-answer p {
    color: #fff;
}

@media (max-width: 768px) {
    .new-template .touhou .faq-item h3.openclose {
        font-size: 0.8rem !important;
    }
    
    .new-template .touhou .faq-answer p {
        font-size: 0.8rem;
    }
}

h3.openclose::before{
    content: "Q. ";
}

.faq-answer p::before{
    content: "A. ";
}

/* =========================================================
購入ボタン
========================================================= */
.buy-btn {
    display: block;
    width: 60%;
    margin: 40px auto 50px;
    text-align: center;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #7c1414 0%,
        #b02020 50%,
        #7c1414 100%
    );
    border: 1px solid rgba(255, 215, 120, .6);
    border-radius: 999px;
    box-shadow:
        0 0 20px rgba(160, 30, 30, .5),
        inset 0 0 12px rgba(255, 200, 120, .2);
    transition: .35s ease;
}

.buy-btn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 30px rgba(180, 40, 40, .6),
        inset 0 0 16px rgba(255, 220, 140, .3);
}

/* new-template .touhou 専用の購入ボタン */
.new-template .touhou .buy-btn {
    display: block;
    width: 60%;
    margin: 40px auto 50px;
    text-align: center;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .15em;
    text-decoration: none;
    color: #fff !important;
    position: relative;
    
    /* 夜桜グラデーション */
    background: linear-gradient(135deg, #1b1f3a 0%, #2b1f45 50%, #15192e 100%);
    
    border: 1px solid rgba(255, 215, 140, .5);
    border-radius: 999px;
    
    box-shadow:
        0 0 20px rgba(255, 200, 120, .25),
        inset 0 0 18px rgba(255, 220, 160, .08);
    
    transition: all .4s ease;
    overflow: hidden;
}

@media (max-width: 768px) {
    .new-template .touhou .buy-btn {
        width: 80%;
        margin: 30px auto;
        padding: 16px 0;
        font-size: 15px;
        letter-spacing: .1em;
    }
    
    .new-template .touhou .buy-btn:active {
        transform: scale(.96);
    }
}

@media (max-width: 768px) {
    .buy-btn {
        width: 100%;
        margin: 30px auto;
        padding: 14px 0;
        font-size: 14px;
        letter-spacing: .08em;
        border-radius: 999px;
    }

    .buy-btn:active {
        transform: scale(.97);
    }
}

/* =========================================================
フッター
========================================================= */
.touhou footer {
    background: transparent;
    padding: 30px 20px;
}

.touhou .copy-touhou {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* =========================================================
ハンバーガーメニュー - メニューブロック設定
========================================================= */
#menubar {
    display: none;
}

#menubar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menubar a {
    display: block;
    text-decoration: none;
}

#menubar li a {
    text-align: center;
    color: #fff !important;
    font-family: "Kaisei Decol", serif;
}

#menubar li a span {
    font-size: 0.5rem;
    display: block;
    line-height: 1;
}

.large-screen #menubar {
    display: none;
}

.small-screen #menubar.display-block {
    display: block;
}

#menubar_hdr.display-none {
    display: none !important;
}

/* =========================================================
開閉メニュー（スマホ）
========================================================= */
.small-screen #menubar.display-block {
    position: fixed;
    overflow: auto;
    z-index: 100;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 100px 10vw 50px;
    background: #1a0f0f;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: opa1 1s both;
}

@media (max-width: 768px) {
    .small-screen #menubar.display-block {
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        background: #1a0f0f;
    }
}

.small-screen #menubar nav ul li {
    margin: 1rem 0;
}

.small-screen #menubar a {
    max-width: 220px;
    margin: 0 auto;
}

.small-screen #menubar a img {
    max-width: 220px;
    margin: 0 auto;
}

/* =========================================================
ハンバーガーアイコン
========================================================= */
#menubar_hdr {
    animation: opa1 0s 0.2s both;
    position: fixed;
    z-index: 101;
    cursor: pointer;
    right: 10px;
    top: 10px;
    padding: 16px 14px;
    width: 46px;
    height: 46px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    transform: scale(1);
    transform-origin: right top;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

@media screen and (max-width: 1200px) {
    #menubar_hdr {
        display: flex;
    }
}

#menubar_hdr span {
    display: block;
    transition: 0.3s;
    border-top: 1px solid #333;
}

#menubar_hdr.ham {
    background: rgba(255, 255, 255, 0.4);
}

#menubar_hdr.ham span:nth-of-type(1),
#menubar_hdr.ham span:nth-of-type(3) {
    transform-origin: center center;
    width: 20px;
}

#menubar_hdr.ham span:nth-of-type(1) {
    transform: rotate(45deg) translate(3.8px, 5px);
}

#menubar_hdr.ham span:nth-of-type(3) {
    transform: rotate(-45deg) translate(3.8px, -5px);
}

#menubar_hdr.ham span:nth-of-type(2) {
    display: none;
}

/* =========================================================
レスポンシブ - ユーティリティクラス
========================================================= */
.pc {
    display: inline;
}

.sp {
    display: none;
}

@media screen and (max-width: 768px) {
    .pc {
        display: none;
    }

    .sp {
        display: inline;
    }
}

/* =========================================================
画像表示
========================================================= */
.touhou .section-image,
.touhou .dm-about,
.touhou .dm-goods,
.touhou .dm-goodsbene,
.touhou .dm-tenji,
.touhou .dm-ticket,
.new-template .section-image,
.new-template .dm-about,
.new-template .dm-goods,
.new-template .dm-goodsbene,
.new-template .dm-tenji,
.new-template .dm-ticket {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 2px;
}

/* KV（キービジュアル）のpadding削除 */
.touhou-kv {
    padding: 0 !important;
    margin: 0 auto !important;
}

/* toho-lead画像のレスポンシブ対応 */
.toho-lead-pc {
    display: block;
}

.toho-lead-sp {
    display: none;
}

@media (max-width: 768px) {
    .toho-lead-pc {
        display: none;
    }
    
    .toho-lead-sp {
        display: block;
    }
}

/* テキストのフェードイン（.fade-in-text 用） */
.new-template .fade-in-text {
    visibility: hidden;
}

.new-template .char {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.2s linear both;
}

/* =========================================================
WordPress用クラス
========================================================= */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.size-large,
.size-full {
    max-width: 100%;
    height: auto;
}

span.toho-ticket-btn{
    margin: 0;
    padding: 1rem 2rem;
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
    background: rgb(0 0 0 / 45%);
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
    text-align: right;
    letter-spacing: 3px;
}

span.toho-goods-att{
    display: inline-block;
    padding: 1rem;
    background: rgb(104 104 104 / 37%);
    margin-top: 0.5rem;
}

.toho-mdlBtnBox{
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
@media (max-width: 768px){
    .toho-mdlBtnBox{
        flex-flow: column;
        gap: 0.5rem;
    }
}

.toho-mdlBtnBox a {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 30%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 4px 0;
    letter-spacing: 1px;
    background: rgb(104 104 104 / 37%);
    color: #fff;
    border: 0.5px solid rgba(196, 143, 48, 0.5) !important;
    border-radius: 6px;
    text-decoration: none;
}
@media (max-width: 768px){
    .toho-mdlBtnBox a{
        width: 100%;
    }
}

.touhou .ip-att-txt-item{
    font-weight: normal;
}

/* =========================================================
チケットタブ切り替え
========================================================= */
.new-template .touhou .toho-ticket-tabs {
    display: flex;
    gap: 8px;
    margin: 2rem 0 1rem;
}

.new-template .touhou .toho-ticket-tab {
    flex: 1;
    padding: 14px 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    border: 0.5px solid rgba(196, 143, 48, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: all .3s ease;
    font-family: inherit;
}

.new-template .touhou .toho-ticket-tab.is-active {
    background: rgba(196, 143, 48, 0.5);
}

.new-template .touhou .toho-ticket-panel {
    display: none;
}

.new-template .touhou .toho-ticket-panel.is-active {
    display: block;
}

@media (max-width: 768px) {
    .new-template .touhou .toho-ticket-tab {
        font-size: 0.8rem;
        padding: 10px 0;
    }
}

.toho-ticket-bottom-att{
    border: 0.5px solid rgba(196, 143, 48, 0.5) !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 36px 24px;
    color: #fff;
    font-size: 0.9rem;
}
@media (max-width: 768px){
    .toho-ticket-bottom-att{
        font-size: 0.7rem;
        line-height: 1.6;
    }
}
.toho-ticket-bottom-att p{
    margin: 0;
}
@media (max-width: 768px){
    .toho-ticket-bottom-att p{
        margin: 1rem 0;
    }
}

small.toho-small{
        color: #fff;
    text-align: center;
    display: block;
    font-size: 0.7rem;
    margin: 2rem 0 1rem
}
@media (max-width: 768px){
    small.toho-small{
        font-size: 0.5rem;
    }
}

.toho-top-att1{
    border: 0.5px solid rgba(196, 143, 48, 0.5) !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 36px 24px;
    color: #fff;
    font-size: 0.9rem;
    margin: 2rem 1rem;
}
@media (max-width: 768px){
    .toho-top-att1{
        font-size: 0.65rem;
    }
}

.toho-top-att1 h2{
    padding: 0;
    color: #fff;
    font-size: 1.5rem;
}
@media (max-width: 768px){
    .toho-top-att1 h2{
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-decoration: underline;
    }
}


.toho-end-title{
    border: 0.5px solid rgba(196, 143, 48, 0.5) !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    margin: 2rem 1rem;
    text-align: center;
    line-height: 2;
}

/* =========================================================
フロアマップ アコーディオン
========================================================= */
.touhou .map-text {
    color: #fff;
    text-align: center;
    margin: 2rem 0;
    line-height: 1.8;
}

.touhou .map-acc {
    margin-bottom: 1rem;
}

.touhou .map-acc .map-title {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .1em;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    border: 0.5px solid rgba(196, 143, 48, 0.5);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background .3s ease;
}

.touhou .map-acc .map-title:hover,
.touhou .map-acc.is-open .map-title {
    background: rgba(196, 143, 48, 0.25);
}

/* ＋／− アイコン */
.touhou .map-acc .map-title::before,
.touhou .map-acc .map-title::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 14px;
    height: 2px;
    margin-top: -1px;
    background: #BF920B;
    transition: transform .3s ease;
}
.touhou .map-acc .map-title::after {
    transform: rotate(90deg);
}
.touhou .map-acc.is-open .map-title::after {
    transform: rotate(0deg);
}

/* 開閉アニメーション */
.touhou .map-acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s ease;
}
.touhou .map-acc.is-open .map-acc-body {
    grid-template-rows: 1fr;
}
.touhou .map-acc-inner {
    overflow: hidden;
    min-height: 0;
}
.touhou .map-acc-inner img {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.touhou .map-acc .map-title:focus-visible {
    outline: 2px solid #BF920B;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .touhou .map-acc .map-title {
        font-size: 0.85rem;
        padding: 12px 44px 12px 16px;
    }
}

.toho-map #n01{
    margin: 0 !important;
    padding: 1rem;
}

.toho-map small.toho-small{
    margin: 1.5rem 0 0 0;
}

.toho-att{
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
}

h3.att-koukan{
    margin: 1rem 0 0 0;
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 0px 0px 4px rgba(196, 143, 48, 0.5);
}

h3.att-koukan:before{
    content: "■ ";
}

.toho-att-text{
    line-height: 1.6;
    font-size: 0.8rem;
}