/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-color: #2c5e2e;
    --secondary-color: #4a8f4f;
    --accent-color: #7bc97e;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ローディング画面 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.logo-container {
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.loading-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 0 20px;
    z-index: 2;
    animation: fadeInLeft 1s ease 0.5s both;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 100vh;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.element-image {
    width: 70%;
    height: 70%;
    object-fit: contain;
    opacity: 0.7;
    filter: brightness(1.5) contrast(0.8);
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 40%;
    animation-delay: 4s;
}

/* セクション共通スタイル */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

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

/* 事業概要セクション */
.about {
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-features {
    display: grid;
    gap: 30px;
}

.feature {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
}

/* 経営理念セクション */
.philosophy {
    background: var(--white);
}

.philosophy-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.philosophy-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.philosophy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.philosophy-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* カリキュラムセクション */
.curriculum {
    background: var(--background-light);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.curriculum-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    /* height: 180px; */
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.curriculum-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}

.curriculum-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
}

.curriculum-card p.subtitle {
    font-weight: 500;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.course-details li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-details li i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.card-footer button {
    grid-column: span 2;
    margin-top: 10px;
}

.price, .sessions {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.book-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.book-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* フッター */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin: 15px 0 10px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.footer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 2001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
}

.close {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    display: block;
}

/* コース詳細情報 */
.course-details {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.course-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.course-info p {
    margin: 0;
    font-size: 1rem;
}

.course-description {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.course-description p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

#calendar-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* カレンダー */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    visibility: visible !important;
}

.calendar-header button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.calendar-header button:hover {
    background: var(--secondary-color);
}

.calendar-header h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
    visibility: visible !important;
    opacity: 1 !important;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    background: var(--white);
    min-height: 40px;
    position: relative;
    z-index: 2002;
    visibility: visible !important;
}

.calendar-day:hover {
    background: var(--background-light);
}

.calendar-day.available {
    background: var(--accent-color);
    color: black;
}

.calendar-day.available:hover {
    background: var(--secondary-color);
}

.calendar-day.unavailable {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.calendar-day.header {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    cursor: default;
}

.day-number {
    font-weight: 600;
    margin-bottom: 2px;
}

.available-slots {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* 時間選択 */
#time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    color: var(--primary-color);
}

.time-slot:hover,
.time-slot.selected {
    background: var(--primary-color);
    color: var(--white);
}

/* 予約フォーム */
.booking-form {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.booking-form input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.booking-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#confirm-booking {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#confirm-booking:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content,
    .hero-visual {
        flex: none;
        width: 100%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 50px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 10px;
    }
    
    #time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}
