:root {
    /* Color Palette */
    --primary-color: #2c3e50;
    /* Deep Blue/Gray for text */
    --accent-color: #e67e22;
    /* Warm Orange/Amber simulating light */
    --accent-secondary: #27ae60;
    /* Natural Green */
    --bg-color: #fcfcfc;
    /* Off-white background */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;

    /* Typography */
    --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-heading: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS明朝E", "MS P明朝", "MS PMincho", serif;
    /* Elegant serif for headings */

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --blur-amt: 12px;
}

/* Page Header (Common) */
.page-header {
    background-image: url('../assets/images/workshop.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    padding-top: 80px;
    /* Offset for fixed header to ensuring optical centering */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    text-align: center !important;
    width: 100%;
    margin: 0;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('../assets/images/glass_texture_bg.png');
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amt));
    -webkit-backdrop-filter: blur(var(--blur-amt));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    padding: var(--spacing-lg);
}

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #d35400);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Navigation Styles */
.desktop-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none !important;
}

/* Responsive Navigation */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block !important;
        gap: 30px !important;
    }

}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* New Section Layouts for Top Page */
@media (max-width: 768px) {
    .section-row {
        flex-direction: column !important;
        gap: 30px !important;
    }

}

/* Philosophy Section Enhancements */
.philosophy-panel {
    padding: 60px 40px;
    margin-bottom: 80px;
    text-align: center;
    /* Ensure centering */
}

@media (min-width: 768px) {
    .service-card {
        flex-direction: row;
        /* min-height removed to let content dictate height, but flex stretches image */
    }

    .service-img {
        width: 40%;
        min-height: 300px;
    }

    .service-content {
        width: 60%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.service-img {
    background-color: #eee;
    background-size: cover;
    background-position: center;
    min-height: 250px;
    position: relative;
    height: auto;
    /* Ensure it fills height in flex */
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    /* Removed border-bottom */
}

.service-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .philosophy-panel {
        padding: 40px 20px;
    }
}

.text-highlight {
    background: linear-gradient(transparent 70%, rgba(230, 126, 34, 0.2) 70%);
    font-weight: 500;
    padding: 0 4px;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.concept-item {
    text-align: center;
    padding: 2px;
}

.concept-item h4 {
    margin-bottom: 15px;
    font-size: 1.15rem;
    color: var(--primary-color);
    display: inline-block;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.concept-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    text-align: center;
}

/* News List Styles (New) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Subtle base shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smooth spring-like ease */
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.news-item:hover {
    transform: translateY(-8px);
    /* Float effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Deep shadow on hover */
}

.news-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.news-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 120px;
    margin-right: 30px;
}

.news-date {
    font-size: 1rem;
    color: #888;
    font-family: 'Georgia', serif;
    font-weight: 500;
}

.news-title {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
    line-height: 1.5;
}

.news-arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-left: 20px;
}

.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .news-item {
        flex-direction: column;
        /* Stack vertically on mobile */
        align-items: flex-start;
    }

    .news-meta {
        flex-direction: row;
        /* Horizontal meta on mobile */
        align-items: center;
        margin-bottom: 10px;
        gap: 15px;
        width: 100%;
    }

    .news-category {
        margin-top: 0;
    }

    .news-arrow {
        display: none;
        /* Hide arrow on mobile to save space */
    }
}

/* School Page Styles */
.school-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.school-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.school-card:hover {
    transform: translateY(-5px);
}

.school-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    text-align: center;
}

/* Modern Schedule Table */
.schedule-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.schedule-table-modern th {
    text-align: left;
    padding: 10px;
    color: #888;
    font-weight: normal;
    font-size: 0.9rem;
}

.schedule-table-modern td {
    background: #fcfcfc;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid #eee;
}

.schedule-time {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Pricing List Styled */
.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.pricing-label {
    font-weight: bold;
    color: #555;
    font-size: 1rem;
}

.pricing-value {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    line-height: 1.4;
}

/* Workshop Flow Styles */
.flow-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.flow-card {
    background: white;
    border-radius: 12px;
    padding: 30px 30px 30px 100px;
    /* Add Left Padding for number */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: left;
    /* Left align text */
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.flow-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.flow-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.flow-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}