/* Custom CSS for Chameleon Theater */

/* Gradient Animation for Text or Border if needed */
.text-gradient-chameleon {
    background: linear-gradient(90deg, #2E8B57, #4169E1, #7B68EE, #E91E8C, #E53935, #FF6D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-flow 5s ease infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* 共通: 可視時は不透明に */
.is-visible {
    opacity: 1;
}

/* fade-up のみ transform をリセット（fade-in には transform を当てない =
   親要素の Tailwind transform 例: -translate-x-1/2 を破壊しないため） */
.fade-up.is-visible {
    transform: translateY(0);
}

/* Delay classes */
[data-delay="100"] {
    transition-delay: 0.1s;
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="300"] {
    transition-delay: 0.3s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="500"] {
    transition-delay: 0.5s;
}

/* Hand-drawn / Cute decorations */
.underline-marker {
    background: linear-gradient(transparent 70%, rgba(255, 235, 59, 0.4) 70%);
}

.font-cute {
    font-family: 'Zen Maru Gothic', sans-serif;
}

.font-serif-cute {
    font-family: 'Kiwi Maru', serif;
}

/* Hamburger Menu Animation */
#menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#menu-btn.open span:nth-child(2) {
    opacity: 0;
}

#menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
/* ============================================
   WP-PageNavi (theme integration)
   ============================================ */
.wp-pagenavi {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #333333;
}

.wp-pagenavi a:hover {
    border-color: #FF6D00;
    color: #FF6D00;
    transform: translateY(-1px);
}

.wp-pagenavi span.current {
    background: #FF6D00;
    color: #ffffff;
    border-color: #FF6D00;
    box-shadow: 0 4px 8px rgba(255, 109, 0, 0.25);
}

.wp-pagenavi span.extend {
    border: none;
    background: transparent;
    color: #9ca3af;
    width: auto;
    padding: 0 0.5rem;
}

.wp-pagenavi .pages {
    display: none; /* "ページ X / Y" 表記を非表示にして数字ページャー優先 */
}

/* ============================================
   Contact Form 7 (theme integration)
   ============================================ */
.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form-control:not([type="submit"]):not(.wpcf7-list-item-label) {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
    color: #333333;
}

.wpcf7-form-control:not([type="submit"]):focus {
    outline: none;
    border-color: #FF6D00;
    box-shadow: 0 0 0 2px rgba(255, 109, 0, 0.5);
}

.wpcf7-form-control.wpcf7-textarea {
    resize: vertical;
    min-height: 8rem;
}

.wpcf7-form-control.wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 280px;
    height: 56px;
    text-align: center;
    margin: 1rem auto 0;
    background: #1A1A2E;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wpcf7-form-control.wpcf7-submit:hover {
    background: #2D2D44;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.wpcf7 form .wpcf7-response-output {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ============================================
   投稿本文 (.prose) - 公演詳細・お知らせ・固定ページ用
   ============================================ */
.prose {
    color: #333333;
    line-height: 1.95;
    font-size: 1rem;
}
.prose > * + * {
    margin-top: 1.5em;
}
.prose > p {
    margin: 1.5em 0;
}

/* 見出し */
.prose h2 {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #FF6D00;
    position: relative;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.prose h2::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2E8B57;
}

.prose h3 {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 5px solid #FF6D00;
    line-height: 1.5;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .prose h2 { font-size: 2rem; margin-top: 3.5rem; }
    .prose h3 { font-size: 1.5rem; margin-top: 3rem; }
}

/* 段落 */
.prose p {
    margin-bottom: 1.5em;
    line-height: 1.95;
}
.prose strong {
    color: #1A1A2E;
    font-weight: 700;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 109, 0, 0.18) 60%);
    padding: 0 2px;
}
.prose em {
    font-style: normal;
    color: #FF6D00;
    font-weight: 500;
}

/* リンク */
.prose a {
    color: #FF6D00;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 109, 0, 0.4);
    transition: all 0.2s;
    word-break: break-all;
}
.prose a:hover {
    color: #d65a00;
    text-decoration-color: #FF6D00;
    text-decoration-thickness: 2px;
}

/* リスト */
.prose ul,
.prose ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.75em;
    line-height: 1.85;
}
.prose ul > li::before {
    content: "";
    position: absolute;
    left: 0.25em;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background: #FF6D00;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.15);
}
.prose ol {
    list-style: none;
    counter-reset: ol-counter;
    padding-left: 0;
}
.prose ol > li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 0.75em;
    line-height: 1.85;
    counter-increment: ol-counter;
}
.prose ol > li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75em;
    height: 1.75em;
    background: #FF6D00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875em;
}
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin: 0.75em 0;
}

/* 引用 */
.prose blockquote {
    margin: 2em 0;
    padding: 1.75em 2em;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFAF3 100%);
    border-left: 5px solid #FF6D00;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    font-family: 'Kiwi Maru', serif;
    color: #4a4a5e;
}
.prose blockquote::before {
    content: """;
    position: absolute;
    top: -8px;
    right: 16px;
    font-size: 4em;
    line-height: 1;
    color: rgba(255, 109, 0, 0.2);
    font-family: Georgia, serif;
}
.prose blockquote p {
    margin: 0.5em 0;
}
.prose blockquote p:first-child { margin-top: 0; }
.prose blockquote p:last-child { margin-bottom: 0; }

/* テーブル */
.prose table {
    width: 100%;
    margin: 2em 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1ebde;
}
.prose th,
.prose td {
    padding: 0.875em 1.25em;
    text-align: left;
    line-height: 1.7;
    vertical-align: top;
}
.prose thead th {
    background: #1A1A2E;
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}
.prose tbody tr {
    border-top: 1px solid #f1ebde;
}
.prose tbody tr:first-child {
    border-top: none;
}
.prose tbody tr:hover {
    background: #FFF8F0;
}
.prose tbody th {
    background: #FFF8F0;
    color: #1A1A2E;
    font-weight: 700;
    width: 8em;
    border-right: 2px solid #FF6D00;
}
@media (max-width: 640px) {
    .prose tbody th {
        width: 6em;
        font-size: 0.875em;
    }
    .prose th, .prose td {
        padding: 0.75em 0.875em;
    }
}

/* 区切り線 */
.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #FF6D00 50%, transparent);
    margin: 3em 0;
}

/* コード */
.prose code {
    background: #FFF8F0;
    color: #d65a00;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 109, 0, 0.15);
    font-family: 'Courier New', monospace;
}
.prose pre {
    background: #1A1A2E;
    color: #FFF8F0;
    padding: 1.25em 1.5em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.7;
}
.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.9em;
}

/* 画像 */
.prose img {
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2em auto;
    max-width: 100%;
    height: auto;
}

/* もくじ的な内部リンクを軽く装飾 */
.prose a[href^="#"] {
    word-break: keep-all;
}

/* 強調表示用 figure */
.prose figcaption {
    text-align: center;
    color: #666666;
    font-size: 0.875em;
    margin-top: 0.5em;
}
