/* ヘッダー */
.header .container {
    padding-left: 16px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.95) 0%, rgba(var(--color-secondary-rgb), 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.15rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-logo:hover {
    opacity: 0.8;
}

.header-logo-img {
    display: block;
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    opacity: 0.9;
}

/* ヘッダー「お問い合わせ」＝フッターと同様の赤いCTA */
.nav-menu a.nav-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.4);
}
.nav-menu a.nav-cta::after {
    display: none;
}
.nav-menu a.nav-cta:hover {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.5);
    transform: translateY(-1px);
}

/* お知らせプルダウン */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* お知らせのラベル部分にホバーで下線アニメーション（講師・レッスンプランと同じ） */
.nav-dropdown-toggle-text {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle-text::after {
    width: 100%;
}

/* 詳細度を .nav-menu a::after より高くして下三角を確実に表示 */
.nav-menu .nav-dropdown .nav-dropdown-toggle::after {
    content: '▼';
    position: static;
    width: auto;
    height: auto;
    bottom: auto;
    left: auto;
    background: none;
    font-size: 0.55em;
    opacity: 0.95;
    margin-left: 0.25em;
    vertical-align: 0.15em;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 180px;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #2c3e50;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-dropdown-menu a::after {
    display: none;
}

/* 固定CTAボタン */
.fixed-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: fadeInUp 0.6s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fixed-cta-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fixed-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.fixed-cta-icon {
    font-size: 1.5rem;
    display: block;
}

.fixed-cta-text {
    line-height: 1.3;
    text-align: left;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0.75rem 20px 0.75rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    padding: 0 20px;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.45);
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.55);
}

.footer-cta-icon {
    font-size: 1.5rem;
}

.footer-cta-text {
    white-space: nowrap;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.footer-contact-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    display: block;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.footer-contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.2);
}

/* 画像拡大モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px 20px;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    display: block;
    width: min(92vw, 1100px);
    max-width: 92vw;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
    animation: zoomIn 0.3s ease-in-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* クリック可能な画像にカーソルを追加 */
.gallery-image,
.event-image,
.instructor-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-image:hover,
.event-image:hover,
.instructor-image:hover {
    transform: scale(1.02);
}

/* ============================================
   表紙アニメーション（TRINITY風・ロゴ登場）
   ============================================ */
.cover-animation {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
    visibility: visible;
}

.cover-animation.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.cover-visible {
    overflow: hidden;
    height: 100vh;
}

.cover-animation-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

.cover-logo {
    max-width: min(320px, 80vw);
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.7);
    animation: coverLogoAppear 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes coverLogoAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
