/*
Theme Name: Threepeat Basketball Team
Description: A modern, responsive WordPress theme for basketball teams. Features a clean design with orange and black color scheme, smooth animations, and mobile-first approach.
Version: 1.0.0
Author: Threepeat Team
Text Domain: threepeat
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0A0A0A;
    --accent: #FF4500;
    --gray: #8A8A8A;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--white);
    overflow-x: hidden;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.5s 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loader-ball {
    width: 80px;
    height: 80px;
    position: relative;
    animation: bounce 0.6s infinite alternate;
}

.basketball-svg {
    width: 100%;
    height: 100%;
}

@keyframes bounce {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-30px) rotate(90deg); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 50px 40px 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 30px 32px 12px 32px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Hide site description when scrolled */
nav.scrolled .site-description { display: none; }

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-description {
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0.5px;
    margin: 0;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .site-description {
    top: -20px;
    font-size: 11px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column;
    text-align: center;
}

.logo-image {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.mobile-logo {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-main {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 2px;
}

.logo-sub {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.logo-mark {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Three Crowns */
.logo-crowns {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 2px;
}

.crown {
    width: 8px;
    height: 6px;
    background: var(--primary);
    position: relative;
    border-radius: 1px;
}

.crown.center {
    height: 8px;
    width: 10px;
}

.crown::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 3px solid var(--primary);
}

.crown.center::before {
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 4px solid var(--primary);
}

/* Basketball */
.logo-basketball {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    margin-top: 1px;
}

.logo-basketball::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--primary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.logo-basketball::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: var(--primary);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-jp {
    font-size: 10px;
    letter-spacing: 0;
    opacity: 0.6;
    font-weight: 400;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

/* Shrink elements when scrolled */
nav.scrolled .logo-image { max-height: 72px; }
nav.scrolled .nav-menu a { font-size: 13px; }
nav.scrolled .nav-menu { gap: 28px; }

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255, 69, 0, 0.03) 100px,
            rgba(255, 69, 0, 0.03) 200px
        );
}

.hero-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.hero-bg-video {
    opacity: 1;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(60px, 12vw, 140px);
    font-weight: 900;
    letter-spacing: -3px;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title-image {
    margin: 0 auto 20px auto;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: fadeInUp 1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-description {
    font-size: clamp(16px, 2.5vw, 24px);
    color: var(--white);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    animation: fadeInUp 1s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Common */
.section {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-jp {
    font-size: 11px;
    letter-spacing: 0;
    color: var(--gray);
    font-weight: 400;
    text-transform: none;
}

.label-jp::after {
    content: '/';
    margin-left: 10px;
    color: var(--gray);
    opacity: 0.3;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    line-height: 1.8;
}

/* Philosophy */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.philosophy-item {
    padding: 40px 30px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.philosophy-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.philosophy-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.2;
    margin-bottom: 20px;
}

.philosophy-item:hover .philosophy-number {
    opacity: 1;
}

.philosophy-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.philosophy-text {
    color: var(--gray);
    line-height: 1.8;
}

/* Goals */
.goals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.goal-card {
    position: relative;
    padding: 60px 40px;
    background: var(--primary);
    color: var(--white);
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.goal-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.goal-label .label-jp {
    color: rgba(255, 255, 255, 0.8);
}

.goal-label .label-jp::after {
    opacity: 0.3;
}

.goal-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
}

.age-range {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.goal-list {
    list-style: none;
}

.goal-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    line-height: 1.8;
    position: relative;
    padding-left: 30px;
}

.goal-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Organization */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.org-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.org-card:hover {
    background: var(--primary);
    color: var(--white);
}

.org-role {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.org-name {
    font-size: 18px;
    font-weight: 700;
}

.org-card:hover .org-name {
    color: var(--white);
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.info-content p {
    color: var(--gray);
    font-size: 24px;
    font-weight: 700;
}

/* Sponsors Section */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    padding: 60px 40px;
    background: var(--light-gray);
    border-radius: 0;
}

.sponsor-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.sponsor-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.sponsor-logo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sponsor-logo-item:hover::before {
    opacity: 0.05;
}

.sponsor-logo-placeholder {
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.3;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.sponsor-logo-item img {
    max-width: 160px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s;
}

.sponsor-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.individual-supporters {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border: 2px solid var(--primary);
}

.supporters-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.supporters-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.supporters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.supporter-name {
    font-size: 16px;
    color: var(--primary);
    padding: 10px 20px;
    background: var(--light-gray);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.supporter-name:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sponsor */
.sponsor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.sponsor-card {
    padding: 60px 40px;
    background: var(--white);
    border: 2px solid var(--primary);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sponsor-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.sponsor-badge {
    position: absolute;
    top: -15px;
    left: 40px;
    background: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-jp {
    font-size: 11px;
    letter-spacing: 0;
    font-weight: 400;
    text-transform: none;
}

.badge-jp::after {
    content: '/';
    margin-left: 8px;
    opacity: 0.5;
}

.sponsor-type {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary);
}

.sponsor-price {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
}

.sponsor-unit {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 30px;
}

.sponsor-benefits {
    list-style: none;
}

.sponsor-benefits li {
    padding: 10px 0;
    color: var(--gray);
    position: relative;
    padding-left: 25px;
}

.sponsor-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* CTA */
.cta {
    padding: 120px 40px;
    background: var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-label .label-jp {
    color: rgba(255, 255, 255, 0.6);
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 30px;
}

.cta-text {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-highlight {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    margin: -24px 0 28px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 60px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.button-jp {
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 400;
}

.button-jp::after {
    content: '/';
    margin-left: 15px;
    opacity: 0.5;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.3);
}

/* LINE Button */
.line-button {
    background: #06C755;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.line-button:hover {
    background: #05B048;
    box-shadow: 0 20px 40px rgba(6, 199, 85, 0.4);
    transform: translateY(-4px);
}

.line-icon {
    font-size: 20px;
    display: inline-block;
}

/* Constitution Link */
.constitution-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent), #ff6b35);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2);
}

.constitution-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.link-icon {
    font-size: 20px;
}

.link-text {
    letter-spacing: 0.5px;
}

/* Parent Note */
.parent-note {
    margin-top: 60px;
    padding: 30px;
    text-align: center;
    border-left: 3px solid var(--accent);
    background: rgba(255, 69, 0, 0.02);
}

.parent-note p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

.parent-note strong {
    color: var(--primary);
    font-weight: 700;
}

/* Footer */
footer {
    padding: 60px 40px;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-logo-image {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-text {
    align-items: flex-start;
}

.footer-logo .logo-main {
    font-size: 20px;
    margin-bottom: 2px;
}

.footer-logo .logo-sub {
    font-size: 7px;
}

.footer-text {
    text-align: left;
}

.footer-text p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-text a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    /* Mobile: Always use compact header (like scrolled state) */
    nav,
    nav.scrolled {
        padding: 18px 16px 10px 16px !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hide site description on mobile */
    nav .site-description,
    nav.scrolled .site-description {
        display: none !important;
    }

    .logo {
        flex-direction: row;
        gap: 8px;
    }

    /* Smaller logo on mobile */
    nav .logo-image,
    nav.scrolled .logo-image {
        max-height: 36px !important;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    /* Mobile menu dropdown when active */
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 12px 16px;
        border-top: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 6px 24px rgba(0,0,0,0.08);
        z-index: 1001;
    }

    .nav-menu.active li + li { border-top: 1px solid rgba(0,0,0,0.06); }
    .nav-menu.active a { padding: 12px 4px; align-items: flex-start; }

    .logo-text {
        align-items: flex-start;
    }

    .logo-main {
        font-size: 20px;
    }

    .logo-sub {
        font-size: 7px;
    }

    .hero-title {
        font-size: 60px;
    }

    .section {
        padding: 80px 20px;
    }

    .footer-content {
        justify-content: center;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-text {
        text-align: center;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Contact Form (CF7) – styled for dark hero section ===== */
#contact .wpcf7 {
    max-width: 640px;
    margin: 30px auto 0;
}

#contact .wpcf7-form p {
    margin-bottom: 16px;
}

#contact .wpcf7 label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#contact .wpcf7 input[type="text"],
#contact .wpcf7 input[type="email"],
#contact .wpcf7 input[type="tel"],
#contact .wpcf7 select,
#contact .wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    min-height: 48px; /* unify control height */
    line-height: 1.4;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Tighten tel input specifically (some UA styles add extra space) */
#contact .wpcf7 input[type="tel"] {
    padding-top: 12px;
    padding-bottom: 12px;
    -webkit-appearance: none;
    appearance: textfield;
}

#contact .wpcf7 input::placeholder,
#contact .wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

#contact .wpcf7 input:focus,
#contact .wpcf7 select:focus,
#contact .wpcf7 textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.18);
    background: rgba(255, 255, 255, 0.09);
}

#contact .wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

/* Submit button */
#contact .wpcf7 .wpcf7-submit {
    display: block; /* center with auto margins */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 44px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#contact .wpcf7 p .wpcf7-submit,
#contact .wpcf7 .wpcf7-submit {
    margin: 8px auto 0; /* center button */
}

/* Normalize CF7 wrap to avoid odd inline spacing (e.g., tel field) */
#contact .wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin: 0; /* prevent wrap adding extra space */
}

#contact .wpcf7 .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 69, 0, 0.35);
}

#contact .wpcf7 .wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(255, 69, 0, 0.25);
}

/* Validation messages */
#contact .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 12px;
    color: var(--accent);
}

#contact .wpcf7 .wpcf7-response-output {
    margin-top: 16px;
    padding: 14px 16px;
    border: none;
    border-left: 3px solid var(--accent);
    background: rgba(255, 69, 0, 0.12);
    color: #fff;
}

/* Make selects nicer on WebKit */
#contact .wpcf7 select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%),
                      linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: #fff;
}

/* Dropdown panel items */
#contact .wpcf7 select option,
#contact .wpcf7 select optgroup {
    color: #fff;
    background: #1a1a1a; /* dark panel */
}

#contact .wpcf7 select option:checked,
#contact .wpcf7 select option:hover {
    background: var(--accent) !important;
    color: #fff;
}

@media (max-width: 768px) {
    #contact .wpcf7 { margin-top: 24px; }
    #contact .wpcf7 textarea { min-height: 140px; }
}

/* ===== Recruitment Floating Button (新規部員募集) ===== */
.recruitment-float {
    position: fixed;
    bottom: 200px;
    right: 20px;
    z-index: 1000;
    animation: floatBounce 3s ease-in-out infinite 2s;
}

.recruitment-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recruitment-image {
    max-width: 240px;
    height: auto;
    display: block;
    border-radius: 12px;
    /* 透過PNGの輪郭に沿ったシャドウを使用 */
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.recruitment-link:hover .recruitment-image {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
}

/* PC版とスマホ版で画像を切り替え */
.recruitment-image-mobile {
    display: none;
}

.recruitment-label {
    display: none;
}

/* ===== Calendar Floating Button ===== */
.calendar-float {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 1000;
    animation: floatBounce 3s ease-in-out infinite 1.5s;
}

.calendar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(45deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.calendar-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    color: white;
}

.calendar-icon {
    font-size: 16px;
}

.calendar-text {
    white-space: nowrap;
}

/* ===== Instagram Floating Button ===== */
.instagram-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    animation: floatBounce 3s ease-in-out infinite 0.75s;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
    color: white;
}

.instagram-icon {
    font-size: 16px;
}

.instagram-glyph {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.instagram-text {
    white-space: nowrap;
}

.instagram-label {
    display: none;
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    /* Mobile: 3分割レイアウト - 左から練習日程、Instagram、新規部員募集 */
    .calendar-float,
    .instagram-float,
    .recruitment-float {
        position: fixed;
        bottom: 0;
        width: calc(33.333% - 2px);
        z-index: 1000;
        animation: none;
        margin: 0;
    }
    
    /* 練習日程（左） */
    .calendar-float {
        left: 0;
        right: auto;
    }
    
    /* Instagram（中央） */
    .instagram-float {
        left: 33.333%;
        right: auto;
        transform: none;
    }
    
    /* 新規部員募集（右） */
    .recruitment-float {
        left: 66.666%;
        right: 0;
    }
    
    /* すべてのフローティングボタンのコンテナを統一 */
    .calendar-float,
    .instagram-float,
    .recruitment-float {
        height: 70px;
    }
    
    /* 練習日程ボタン - 文字を増やす */
    .calendar-link {
        width: 100%;
        padding: 12px 8px;
        font-size: 12px;
        height: 70px;
        flex-direction: column;
        justify-content: center;
        border-radius: 0;
        gap: 4px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    
    .calendar-text {
        display: block !important;
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }
    
    .calendar-icon {
        font-size: 20px;
        flex-shrink: 0;
    }
    
    /* Instagramボタン */
    .instagram-link {
        width: 100%;
        padding: 12px 8px;
        font-size: 12px;
        height: 70px;
        flex-direction: column;
        justify-content: center;
        border-radius: 0;
        gap: 4px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    
    .instagram-text {
        display: none;
    }
    
    .instagram-label {
        display: block;
        font-size: 11px;
        color: white;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
    }
    
    .instagram-glyph {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    /* 新規部員募集ボタン - 他のボタンと同じデザインスタイル */
    .recruitment-link {
        width: 100%;
        padding: 12px 8px;
        font-size: 12px;
        height: 70px;
        flex-direction: column;
        justify-content: center;
        border-radius: 0;
        gap: 4px;
        background: #06C755;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    
    /* PC版の画像を非表示 */
    .recruitment-image-pc {
        display: none;
    }
    
    /* スマホ版のLINEアイコンを表示 */
    .recruitment-image-mobile {
        display: block;
        width: 40px;
        height: 40px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    /* テキストラベルを表示 */
    .recruitment-label {
        display: block;
        font-size: 11px;
        color: white;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
    }
}

/* ===== Header logo sizing overrides ===== */
nav .logo-image {
    max-height: 96px; /* larger desktop logo (1.5x) */
    width: auto;
}

@media (max-width: 768px) {
    nav .mobile-logo { max-height: 44px; }
    .nav-container { position: relative; justify-content: center; }
    .logo { margin: 0 auto; }
    .menu-toggle { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
}

/* WordPress specific styles */
.wp-block-group {
    margin-bottom: 0;
}

.wp-block-image {
    margin-bottom: 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Content styles */
.entry-content {
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Button styles */
.wp-block-button__link {
    background: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s;
}

.wp-block-button__link:hover {
    background: #e03d00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.3);
}