@charset "UTF-8";

/* ==========================================================
   Variables - Japanese Modern Theme
   ========================================================== */
:root {
    /* Colors */
    --color-sumi: #1a1a1a;
    /* Ink Black */
    --color-sumi-light: #2c2c2c;
    --color-gold: #d4af37;
    /* Gold */
    --color-gold-dark: #b5952f;
    --color-shu: #c32126;
    /* Vermillion Red */
    --color-shu-dark: #8f191d;

    --bg-light: #fdfbf7;
    /* Washi paper white */
    --bg-dark: #121212;
    --color-bg: var(--bg-light); /* Added to fix undefined variable error */
    --text-main: #222222;
    --text-inverse: #fdfbf7;

    /* Typography */
    --font-mincho: 'Noto Serif JP', serif;
    --font-mincho-accent: 'Shippori Mincho', serif;
    --font-brush: 'Yuji Syuku', serif;
    --font-gothic: 'Zen Kaku Gothic New', sans-serif;

    /* Spacing & Sizes */
    --header-height: 80px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================
   Reset & Base
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-gothic);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

/* Language specific fonts */
html[lang="zh"] body {
    font-family: 'Noto Sans SC', 'Zen Kaku Gothic New', sans-serif;
}

html[lang="hi"] body {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

html[lang="ja"] body {
    font-family: var(--font-mincho), var(--font-mincho-accent), serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-mincho);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================
   Typography Helpers
   ========================================================== */
.section-en {
    display: block;
    font-family: var(--font-gothic);
    font-size: 1.05rem;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-ja {
    font-family: var(--font-mincho-accent), var(--font-mincho), serif;
    font-size: 3.3rem;
    color: var(--color-sumi);
    letter-spacing: 0.15em;
    font-weight: 700;
}

.heading-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-shu);
    margin: 1.5rem auto 3rem;
}

.bg-dark .section-ja,
.bg-dark .activity-text,
.bg-dark .activity-text p,
.bg-dark .activity-text li {
    color: var(--text-inverse);
}

/* ==========================================================
   Layout Helpers
   ========================================================== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.container-wide {
    width: 95%;
    max-width: 1350px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* ==========================================================
   Header & Navigation
   ========================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: background-color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header.scrolled .logo,
.header.scrolled .global-nav a {
    color: var(--text-inverse);
}

.header.scrolled .lang-switch button {
    color: rgba(255, 255, 255, 0.6);
}

.header.scrolled .lang-switch button.active {
    color: var(--color-gold);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 3%;
}

.header-logo-placeholder,
.lang-switch {
    flex: 1;
}

.lang-switch {
    display: flex;
    justify-content: flex-end;
}

.global-nav {
    flex: 2;
    display: flex;
    justify-content: center;
}

.logo {
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--text-inverse);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo span {
    font-size: 1.1rem;
    color: var(--color-gold);
    display: block;
    margin-top: -5px;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-switch button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.lang-switch button.active {
    background: var(--color-gold);
    color: var(--color-bg);
    border-color: var(--color-gold);
    font-weight: 700;
}

.lang-switch button:hover:not(.active) {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.global-nav ul {
    display: flex;
    gap: clamp(0.6rem, 2vw, 2rem);
    flex-wrap: nowrap;
}

.global-nav a {
    color: var(--text-inverse);
    font-size: clamp(0.78rem, 1.8vw, 1.1rem);
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.global-nav a:hover::after {
    width: 100%;
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-inverse);
    transition: var(--transition-fast);
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
}

#hero-v1,
#hero-v2 {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(1.25);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
    z-index: 2;
    /* オーバレイを動画の上に */
}

@keyframes zoomOut {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-content {
    text-align: center;
    color: var(--text-inverse);
    z-index: 10;
    /* 繝・く繧ｹ繝医ｒ譛€蜑埼擇縺ｫ */
    width: 90%;
    max-width: 1200px;
}

.hero-main-title {
    font-family: var(--font-mincho-accent), var(--font-mincho), serif;
    font-size: 4.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 3.5rem;
    color: var(--color-gold);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    white-space: nowrap;
}

.hero-catchphrase {
    font-size: 2rem;
    letter-spacing: 0.5em;
    margin-bottom: 2.2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    font-family: var(--font-mincho-accent), var(--font-mincho), serif;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.hero-subtitle {
    font-family: var(--font-mincho-accent), var(--font-mincho), serif;
    font-size: 1.4rem;
    letter-spacing: 0.25em;
    opacity: 0.95;
}

.hero-side-copy {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-brush);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    display: none;
}

html[lang="ja"] .hero-side-copy {
    display: block;
}

/* Scroll indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-inverse);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.scroll-down .line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-down .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--color-gold);
    animation: scrollDrop 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes scrollDrop {
    0% {
        top: -50%;
    }

    100% {
        top: 100%;
    }
}

/* ==========================================================
   About Section
   ========================================================== */
.about {
    background-color: var(--bg-light);
    position: relative;
}

/* Washi texture overlay */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/papyrus.png');
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 4rem;
}

.about-text p {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: var(--color-sumi);
    display: block;
    font-weight: 400;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-text p {
        font-size: 1.25rem;
    }
}

/* Soke Box Styling */
.soke-box {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-gold);
    position: relative;
    text-align: center; /* Changed to center */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.soke-box::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

.soke-title {
    font-family: var(--font-mincho-accent), var(--font-mincho), serif;
    font-size: 2.2rem; /* Slightly larger */
    color: var(--color-sumi);
    margin-bottom: 2.5rem;
    text-align: center;
    display: block; /* Simpler centering */
    width: 100%;
}

.soke-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-shu);
}

.soke-text p {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
    text-align: center;
    text-wrap: balance; /* Automatically balances line lengths */
}

/* ==========================================================
   Performances Section
   ========================================================== */
.bg-dark {
    background-color: var(--bg-dark);
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1180px) {
    .perf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .perf-grid {
        grid-template-columns: 1fr;
    }
}

.perf-card {
    background-color: var(--color-sumi-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* faint gold border */
    transition: var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.perf-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.activity-photo-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease, box-shadow 0.4s ease;
    filter: brightness(0.9);
}

.activity-photo-item:hover {
    transform: scale(1.05);
    outline: 5px solid #ffffff;
    outline-offset: -5px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
    z-index: 5;
}

.perf-img-placeholder {
    height: 240px;
    background-color: var(--color-sumi);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .perf-img-placeholder {
        height: 200px;
    }
}

.perf-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* 貍皮岼逕ｻ蜒丞・縺ｮ陬・｣ｾ諢丞権・亥・逵溘・閭碁擇縺ｫ驟咲ｽｮ・・*/
.perf-img-placeholder {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.perf-card img {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.perf-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    transition: var(--transition-normal);
}

/* 1. 譬ｼ蠑上≠繧・(繝励Ξ繝溘い繝髱呈ｵｷ豕｢) */
.motif-prestigious {
    background-image: url("images/bg_prestigious.png");
    background-size: cover;
    background-position: center;
}

/* 2. 闖ｯ繧・°縺ｫ (繝励Ξ繝溘い繝謨｣繧頑｡・ */
.motif-showy {
    background-image: url("images/bg_showy.png");
    background-size: cover;
    background-position: center;
}

/* 3. 螽∝宍縺後≠繧・(繝励Ξ繝溘い繝髮ｷ髮ｲ) */
.motif-dignified {
    background-image: url("images/bg_dignified.png");
    background-size: cover;
    background-position: center;
}

.perf-card:hover .perf-decoration {
    opacity: 0.5;
    transform: scale(1.1);
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mincho);
    letter-spacing: 0.1em;
}

.perf-info {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.perf-info h3 {
    color: var(--color-gold);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
    text-align: center;
}

.perf-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    word-break: normal;
    line-break: strict;
    text-wrap: balance;
}

/* ==========================================================
   Contact Section
   ========================================================== */
.contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-top: 4px solid var(--color-shu);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-lead {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-mincho);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-sumi);
}

.required {
    background-color: var(--color-shu);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 10px;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-gothic);
    font-size: 1rem;
    background-color: #fafafa;
    transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background-color: var(--color-sumi);
    color: var(--text-inverse);
    border: none;
    font-family: var(--font-mincho);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-shu);
    transition: var(--transition-normal);
    z-index: 1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn span {
    position: relative;
    z-index: 2;
}

/* (Updated button style to not use span inside the button just yet in HTML, so we rely on background color change for simplicity, or we can use the original hover) */
.submit-btn:hover {
    background-color: var(--color-shu);
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
    background-color: var(--color-sumi);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mincho);
    font-size: 1.5rem;
    color: var(--text-inverse);
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* ==========================================================
   Animations & Interactivity
   ========================================================== */
.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.fade-in.is-visible {
    opacity: 1;
}

.fade-in-up {
    opacity:  1;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ==========================================================
   Media Queries
   ========================================================== */
@media screen and (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .hero-bg {
        width: 100%;
        height: 100%;
        background-color: #000;
    }

    #hero-v1,
    #hero-v2 {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .hero-content {
        width: 95%;
        padding: 0 10px;
    }

    .hero-main-title {
        font-size: 1.8rem !important;
        letter-spacing: 0.1em;
        line-height: 1.4;
        word-break: keep-all;
    }

    .hero-catchphrase {
        font-size: 1.05rem !important;
        letter-spacing: 0.08em;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
    }

    .section-ja {
        font-size: 2rem;
    }

    .activity-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .activity-photos {
        order: -1;
        /* 繧ｹ繝槭・縺ｧ縺ｯ蜀咏悄繧貞・縺ｫ陦ｨ遉ｺ */
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-sumi);
        transition: right var(--transition-normal);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .global-nav.is-active {
        right: 0;
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .global-nav a {
        font-size: 1.2rem;
        color: var(--color-gold);
    }

    .hamburger {
        display: flex;
    }

    .lang-switch {
        margin-left: auto;
        margin-right: 1.5rem;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
    }
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-modal.is-active {
    display: flex;
    opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* 画像のダウンロード・コピー防止策 */
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    /* クリックイベントは許可 */
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 透明なカバーを重ねて右クリックを防止 */
}

.photo-modal-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 75vh;
    border: 1px solid gold;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.modal-caption {
    margin-top: 1rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .modal-close {
        top: -40px;
        font-size: 2.5rem;
    }

    .modal-caption {
        font-size: 0.9rem;
    }
}

.activity-container,
.activity-text {
    color: #ffffff !important;
}

.activity-text h3 {
    color: #d4af37 !important;
}

.activity-text p,
.activity-text li {
    color: #ffffff !important;
}

.modal-caption {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border-left: 4px solid #d4af37;
    padding: 1rem 1.5rem !important;
}

/* Activity Photo Interaction */
.activity-photo-item {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, filter 0.4s ease !important;
    position: relative;
    overflow: hidden;
    filter: brightness(0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-photo-item:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.1);
    border-color: #d4af37 !important;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.activity-photo-item img {
    transition: transform 0.6s ease;
}

.activity-photo-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================
   Orientation Notice Overlay (Mobile Portrait Lock)
   ========================================================== */
.orientation-notice {
    display: none;
}

@media screen and (max-width: 900px) and (orientation: portrait) {
    body {
        overflow: hidden !important;
    }

    .orientation-notice {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: #0f0f0f !important;
        color: #fff !important;
        z-index: 9999999 !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }

    .notice-content {
        max-width: 320px;
        border: 1px solid var(--color-gold);
        padding: 2.5rem 1.5rem;
        background: rgba(26, 26, 26, 0.98);
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    }

    .phone-icon-rotate {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
        animation: rotatePhone 2.5s infinite ease-in-out;
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
    }
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-modal.is-active {
    display: flex;
    opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* 画像のダウンロード・コピー防止策 */
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    /* クリックイベントは許可 */
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 透明なカバーを重ねて右クリックを防止 */
}

.photo-modal-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 75vh;
    border: 1px solid gold;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.modal-caption {
    margin-top: 1rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .modal-close {
        top: -40px;
        font-size: 2.5rem;
    }

    .modal-caption {
        font-size: 0.9rem;
    }
}

.activity-container,
.activity-text {
    color: #ffffff !important;
}

.activity-text h3 {
    color: #d4af37 !important;
}

.activity-text p,
.activity-text li {
    color: #ffffff !important;
}

.modal-caption {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border-left: 4px solid #d4af37;
    padding: 1rem 1.5rem !important;
}

/* Activity Photo Interaction */
.activity-photo-item {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, filter 0.4s ease !important;
    position: relative;
    overflow: hidden;
    filter: brightness(0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-photo-item:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.1);
    border-color: #d4af37 !important;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.activity-photo-item img {
    transition: transform 0.6s ease;
}

.activity-photo-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================
   Orientation Notice Overlay (Mobile Portrait Lock)
   ========================================================== */
.orientation-notice {
    display: none;
}

@media screen and (max-width: 900px) and (orientation: portrait) {
    body {
        overflow: hidden !important;
    }

    .orientation-notice {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: #0f0f0f !important;
        color: #fff !important;
        z-index: 9999999 !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }

    .notice-content {
        max-width: 320px;
        border: 1px solid var(--color-gold);
        padding: 2.5rem 1.5rem;
        background: rgba(26, 26, 26, 0.98);
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    }

    .phone-icon-rotate {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
        animation: rotatePhone 2.5s infinite ease-in-out;
    }

    @keyframes rotatePhone {
        0%, 15% { transform: rotate(0deg); }
        45%, 65% { transform: rotate(-90deg); }
        90%, 100% { transform: rotate(0deg); }
    }

    .notice-content h3 {
        font-family: var(--font-mincho);
        color: var(--color-gold);
        font-size: 1.25rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .notice-content p {
        font-size: 0.88rem;
        line-height: 1.7;
        color: #ddd;
    }
}

/* ==========================================================
   モバイル・スマホ画面限定の最適化（PC表示には一切影響を与えません）
   ========================================================== */
@media screen and (max-width: 768px) {
    .hero-main-title {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.2rem !important;
        white-space: nowrap !important;
    }

    .hero-catchphrase {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        letter-spacing: 0.2em !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
    }

    .scroll-down {
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
    }

    .scroll-down .line {
        height: 28px !important;
        margin-top: 4px !important;
    }
}

/* 画面高さが低いスマホでは文字被りを防ぐため自動非表示 */
@media screen and (max-height: 550px) {
    .scroll-down {
        display: none !important;
    }
}


/* X Tweet Webview Landscape Fix */
html.is-x-tweet-webview @media screen and (orientation: landscape) {
    html, body { overflow-y: auto !important; overflow-x: hidden !important; }
    .hero { min-height: 100vh !important; height: auto !important; padding-top: 80px !important; padding-bottom: 30px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
    .hero-content { padding-top: 10px !important; padding-bottom: 10px !important; width: 95% !important; max-width: 95vw !important; margin: 0 auto !important; }
    .hero-catchphrase { font-size: clamp(0.85rem, 2.6vw, 1.15rem) !important; letter-spacing: 0.15em !important; margin-bottom: 0.3rem !important; }
    .hero-main-title { font-size: clamp(1.15rem, 4.2vw, 1.8rem) !important; letter-spacing: 0.04em !important; margin-bottom: 0.4rem !important; white-space: nowrap !important; max-width: 100% !important; }
    .hero-subtitle { font-size: clamp(0.7rem, 2.1vw, 0.95rem) !important; letter-spacing: 0.06em !important; margin-bottom: 0.4rem !important; }
    .scroll-down { display: none !important; }
}