* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}
header {
    background: url('../img/img002.jpg') center top/contain no-repeat;
    background-size: contain;
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.header-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0 auto;
    margin-top: auto;
    width: fit-content;
}
.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    header {
        padding: 1.5rem 0;
        min-height: 200px;
        background-size: contain;
    }
}
.social-links {
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: background 0.3s;
    padding: 8px;
}
.social-links a:hover {
    background: rgba(255,255,255,0.3);
}
.social-links svg {
    width: 100%;
    height: 100%;
    fill: white;
}
nav {
    background: #333;
    padding: 1rem;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
nav::-webkit-scrollbar {
    height: 4px;
}
nav::-webkit-scrollbar-track {
    background: #444;
}
nav::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}
nav::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    display: inline-block;
}
nav a:hover {
    background: #555;
    border-radius: 4px;
}
@media (max-width: 768px) {
    nav {
        padding: 0.5rem;
    }
    nav a {
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        font-size: 0.9rem;
    }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
}
section {
    margin-bottom: 3rem;
}
h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}
@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
.info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.info-card h3 {
    color: #764ba2;
    margin-bottom: 1rem;
}
.calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.calendar-header {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    gap: 1rem;
}
.calendar-nav span {
    flex: 1;
    text-align: center;
}
.calendar-nav button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}
.calendar-nav button:hover {
    background: #764ba2;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
}
.calendar-day-header {
    background: #764ba2;
    color: white;
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    .calendar-day-header {
        padding: 0.5rem;
        font-size: 1rem;
    }
}
.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.25rem;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .calendar-day {
        min-height: 150px;
        padding: 0.5rem;
    }
}
.calendar-day.other-month {
    background: #f8f9fa;
    color: #999;
}
.calendar-day-number {
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}
@media (min-width: 768px) {
    .calendar-day-number {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}
.event {
    background: white;
    color: #333;
    padding: 0.4rem;
    margin: 0.2rem 0;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: normal;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.3;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.event:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}
.event-time {
    font-weight: bold;
    color: #667eea;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}
.event-title {
    font-weight: 600;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}
.event-theme {
    font-size: 0.6rem;
    color: #666;
    opacity: 0.9;
}
@media (min-width: 768px) {
    .event {
        padding: 0.5rem;
        margin: 0.3rem 0;
        border-radius: 8px;
        font-size: 0.8rem;
    }
    .event-time {
        font-size: 0.85rem;
    }
    .event-theme {
        font-size: 0.7rem;
    }
}
.event.beginner_basic {
    border-left: 4px solid #38a169;
}
.event.beginner {
    border-left: 4px solid #48bb78;
}
.event.beginner_to_beginner_intermediate {
    border-left: 4px solid #38d9a9;
}
.event.beginner_to_advanced {
    border-left: 4px solid #4fd1c7;
}
.event.beginner_intermediate {
    border-left: 4px solid #2f855a;
}
.event.beginner_intermediate_to_intermediate {
    border-left: 4px solid #68d391;
}
.event.beginner_intermediate_to_intermediate_advanced {
    border-left: 4px solid #9ae6b4;
}
.event.intermediate {
    border-left: 4px solid #ed8936;
}
.event.intermediate_to_intermediate_advanced {
    border-left: 4px solid #fbb040;
}
.event.intermediate_to_advanced {
    border-left: 4px solid #ff8c00;
}
.event.intermediate_advanced {
    border-left: 4px solid #f56500;
}
.event.advanced {
    border-left: 4px solid #e53e3e;
}
.event.morning_mens_singles {
    border-left: 4px solid #9f7aea;
}
.event.j1_1 {
    border-left: 4px solid #ff6b9d;
}
.event.j1_2 {
    border-left: 4px solid #c44569;
}
.event.j2_1 {
    border-left: 4px solid #ffa502;
}
.event.j2_2 {
    border-left: 4px solid #ff6348;
}
.event.singles_mens {
    border-left: 4px solid #805ad5;
}
.event.singles_womens {
    border-left: 4px solid #d53f8c;
}
.event.multiple-class {
    border-left: 4px solid #ffd700;
}
.event.open {
    border-left: 4px solid #00bcd4;
}
.event.manual-entry {
    background: #e3f2fd;
}
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}
footer .logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}
footer .social-links {
    margin-bottom: 1rem;
}
footer .social-links a {
    color: white;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.gallery img:hover {
    transform: scale(1.05);
}
#class-info .gallery img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
#event-info .gallery img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
#private-lessons .gallery img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
#shop-info .gallery img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
.schedule-info {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.schedule-info h3 {
    color: #667eea;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}
.schedule-table th,
.schedule-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.schedule-table th {
    background: #f8f9fa;
    color: #764ba2;
    font-weight: bold;
    width: 100px;
}
.lesson-category, .shop-category, .private-category {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}
.theme-table, .match-table, .shop-table, .private-table, .cancel-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.cancel-table {
    min-width: 400px;
}
@media (max-width: 768px) {
    .table-container {
        -webkit-overflow-scrolling: touch;
    }
}
.theme-table th, .theme-table td,
.match-table th, .match-table td,
.shop-table th, .shop-table td,
.private-table th, .private-table td,
.cancel-table th, .cancel-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}
.theme-table th, .match-table th, .shop-table th, .private-table th, .cancel-table th {
    background: #667eea;
    color: white;
    font-weight: bold;
}
.theme-table tr:nth-child(even), .match-table tr:nth-child(even),
.shop-table tr:nth-child(even), .private-table tr:nth-child(even),
.cancel-table tr:nth-child(even) {
    background: #f8f9fa;
}
.lesson-info {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}
.lesson-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lesson-info-label {
    font-weight: bold;
    color: #1976d2;
}
.lesson-info-value {
    color: #333;
}
.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}
.review-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.review-comment {
    line-height: 1.6;
    margin-bottom: 1rem;
}
.review-author {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}
.notice-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}
.notice-card.important {
    border-left-color: #e53e3e;
    background: #fff5f5;
}
.notice-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.notice-content {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}
.notice-date {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}
.notice-important {
    color: #e53e3e;
    font-weight: bold;
    margin-right: 0.5rem;
}
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    section {
        margin-bottom: 2rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .gallery {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .lesson-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    .theme-scroll-container,
    .private-scroll-container {
        gap: 1rem;
    }
    .lesson-category,
    .private-category,
    .shop-category {
        padding: 1rem;
        min-width: 320px !important;
    }
    .private-table,
    .theme-table,
    .match-table,
    .shop-table {
        font-size: 0.75rem;
    }
    .private-table th,
    .private-table td,
    .theme-table th,
    .theme-table td,
    .match-table th,
    .match-table td,
    .shop-table th,
    .shop-table td {
        padding: 0.4rem 0.2rem;
        text-align: center;
    }
    .private-table th:first-child,
    .private-table td:first-child,
    .theme-table th:first-child,
    .theme-table td:first-child,
    .match-table th:first-child,
    .match-table td:first-child,
    .shop-table th:first-child,
    .shop-table td:first-child {
        text-align: left;
        min-width: 60px;
    }
    .theme-table th:first-child,
    .theme-table td:first-child {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        font-size: 0.6rem !important;
        text-align: center !important;
        padding: 0.2rem 0.1rem !important;
    }
    .theme-table th:nth-child(2),
    .theme-table td:nth-child(2),
    .theme-table th:nth-child(3),
    .theme-table td:nth-child(3) {
        text-align: left;
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        font-size: 0.6rem;
        padding: 0.2rem 0.1rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .theme-table th:nth-child(2),
    .theme-table th:nth-child(3) {
        text-align: center !important;
    }
    .theme-table th {
        text-align: center;
    }
    .social-links a {
        width: 35px;
        height: 35px;
        margin: 0 0.25rem;
    }
    .calendar-day {
        min-height: 60px;
        padding: 0.15rem;
    }
    .event {
        font-size: 0.55rem;
        padding: 0.1rem;
        margin: 0.1rem 0;
    }
    #staff .info-card ul {
        padding-left: 1rem;
        font-size: 0.9rem;
    }
    #staff .info-card li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.6;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0.25rem;
    }
    header h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .lesson-category,
    .private-category,
    .shop-category {
        min-width: 280px !important;
        padding: 0.75rem;
    }
    .private-table,
    .theme-table,
    .match-table,
    .shop-table,
    .cancel-table {
        font-size: 0.65rem;
    }
    .private-table th,
    .private-table td,
    .theme-table th,
    .theme-table td,
    .match-table th,
    .match-table td,
    .shop-table th,
    .shop-table td,
    .cancel-table th,
    .cancel-table td {
        padding: 0.3rem 0.1rem;
    }
    .theme-nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    .social-links a {
        width: 30px;
        height: 30px;
    }
    .calendar-day {
        min-height: 50px;
    }
    .event {
        font-size: 0.5rem;
    }
    nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
.theme-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.theme-nav-btn {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.theme-nav-btn:hover {
    background: #667eea;
    color: white;
}
.theme-nav-btn.active {
    background: #667eea;
    color: white;
}
@media (max-width: 768px) {
    .theme-nav-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

.private-scroll-container {
    overflow-x: auto;
    scroll-behavior: smooth;
}
.private-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.private-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.private-scroll-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}
.private-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
.desktop-only {
    display: inline;
}
.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: inline;
    }
}
.mobile-schedule {
    display: none;
}
.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    gap: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.mobile-nav span {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: #667eea;
}
.mobile-nav button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}
.mobile-nav button:hover {
    background: #764ba2;
}
@media (max-width: 768px) {
    .calendar {
        display: none;
    }
    .mobile-schedule {
        display: block;
    }
    .private-table {
        min-width: 800px;
    }
    .cancel-table {
        min-width: 600px;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}
.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
