@charset "UTF-8";

/* =========================================
   1. 基本設定
   ========================================= */
:root {
    --main-yellow: #FFC800;
    --sub-yellow: #FFF3CD;
    --accent-color: #4A3F35;
    --white: #FFFFFF;
    --gray-bg: #F9F9F9;
    --footer-bg: #332A24;
    --pink: #FF85A2;
    --blue: #4FC3F7;
    --green: #81C784;
    --spring: #FF85A2;
    --summer: #4FC3F7;
    --autumn: #FF9800;
    --winter: #90A4AE;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--accent-color);
    margin: 0; padding: 0; line-height: 1.8;
    background-color: var(--white); overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
h1, h2, h3, h4, p { margin-top: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.container-fluid { width: 100%; padding: 0 5%; margin: 0 auto; position: relative; z-index: 2; }

/* ボタン */
.btn {
    display: inline-block; background-color: var(--main-yellow); color: var(--accent-color);
    padding: 15px 50px; border-radius: 50px; font-weight: 900; letter-spacing: 0.05em;
    box-shadow: 0 10px 20px -10px rgba(255, 200, 0, 0.5); position: relative; overflow: hidden; z-index: 1;
    white-space: nowrap; border: 2px solid transparent;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--white); z-index: -1; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn:hover {
    color: var(--accent-color); transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(255, 200, 0, 0.7); border-color: var(--main-yellow);
}
.btn:hover::before { width: 100%; }

/* セクション見出し (タイトル左の丸装飾) */
.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    font-weight: 900; 
    margin-bottom: 60px; 
    position: relative; 
    display: inline-block; 
    z-index: 1; 
}
.section-title.align-left { text-align: left; left: 0; transform: none; margin-bottom: 30px; }

/* 装飾の丸 */
.section-title::before { 
    content: ''; 
    position: absolute; 
    top: -10px; 
    left: -15px; 
    width: 60px; 
    height: 60px; 
    background: var(--main-yellow); 
    opacity: 0.4; 
    border-radius: 50%; 
    z-index: -1; 
}

section { padding: 100px 0; position: relative; }
.bg-gray { background-color: var(--gray-bg); }


/* =========================================
   2. ヘッダー
   ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    padding: 25px 40px; pointer-events: none; transition: 0.3s ease;
}
header.scrolled { background: transparent; padding: 15px 40px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: none; padding: 0; }
.logo {
    pointer-events: auto; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 0px 15px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; align-items: center;
}
.logo img { height: 80px; width: auto; }
.hamburger { display: none; pointer-events: auto; }
.nav-menu { pointer-events: auto; }
.nav-menu ul {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 18px 35px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; gap: 30px; align-items: center;
}
.nav-menu li a { font-weight: 700; font-size: 1rem; color: var(--accent-color); position: relative; padding-bottom: 5px; }
.nav-menu li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px; background-color: #F57C00; border-radius: 2px; transition: width 0.3s ease-in-out; }
.nav-menu li a:hover::after { width: 100%; }
.header-tel { font-weight: 900 !important; font-size: 1.5rem !important; color: #F57C00 !important; display: flex; align-items: center; gap: 5px; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.nav-menu li a.header-tel::after { display: none; }


/* =========================================
   3. Aboutページ コンテンツ
   ========================================= */

/* --- 1. Hero --- */
.about-hero {
    position: relative; width: 100%; height: 80vh; 
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-top: 0;
}
.about-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: -1; filter: brightness(0.9);
}
.about-hero-content { text-align: center; color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.3); position: relative; z-index: 2; }
.hero-subtitle {
    display: inline-block; background: var(--main-yellow); color: var(--accent-color);
    padding: 5px 20px; border-radius: 50px; font-weight: 900; margin-bottom: 20px;
    letter-spacing: 0.1em;
}
.hero-title { font-size: 4rem; font-weight: 900; line-height: 1.4; margin: 0; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.hero-wave svg { display: block; width: 100%; height: 150px; }

/* --- 2. Classes --- */
.classes-section { padding: 100px 0; background: #fff; position: relative; }
.section-header { margin-bottom: 80px; }
.section-header.center { text-align: center; }
.en-title {
    display: block; font-family: 'Zen Maru Gothic', sans-serif; 
    font-weight: 900; color: var(--main-yellow); 
    font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 10px;
}
.en-title.white { color: #fff; }

.class-row {
    display: flex; align-items: center; gap: 80px;
    max-width: 1200px; margin: 0 auto 120px auto; padding: 0 40px;
}
.class-row.reverse { flex-direction: row-reverse; }

.class-visual { flex: 1; position: relative; }
.blob-mask img {
    width: 100%; height: 400px; object-fit: cover;
    border-radius: 64% 36% 47% 53% / 43% 40% 60% 57%; transition: 0.5s; display: block;
}
.blob-mask.type-2 img { border-radius: 36% 64% 53% 47% / 57% 60% 40% 43%; }
.blob-mask.type-3 img { border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; }
.class-visual:hover img { transform: scale(1.03); }

.class-info { flex: 1; }
.class-name {
    display: block; 
    font-size: 1.8rem; 
    font-weight: 900; margin-bottom: 10px;
    position: relative; padding-left: 18px; 
    line-height: 1.2;
}
.class-name::before {
    content: ''; position: absolute; left: 0; top: 0;
    width: 8px; height: 100%; border-radius: 4px;
}
.class-name.pink { color: var(--pink); }
.class-name.pink::before { background: var(--pink); }
.class-name.yellow { color: #FBC02D; }
.class-name.yellow::before { background: #FBC02D; }
.class-name.blue { color: var(--blue); }
.class-name.blue::before { background: var(--blue); }

.class-info h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: 20px; line-height: 1.4; color: #444; }
.class-info p { font-size: 1rem; color: #666; line-height: 1.9; }

/* --- 3. Lunch --- */
.lunch-section { 
    padding: 150px 0; 
    background-color: #fff; 
    position: relative; 
    overflow: hidden; 
}
/* ★修正：斜めグレー装飾を削除 */
.lunch-section::before { display: none; }

.lunch-wrapper {
    display: flex; align-items: center; /* 垂直中央 */
    max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1;
}

.lunch-image {
    width: 60%; 
    height: 550px;
    background-size: cover; background-position: center;
    border-radius: 30px;
    /* 影 */
    box-shadow: 20px 30px 60px rgba(0,0,0,0.15);
}

.lunch-desc {
    width: 50%; /* カード幅 */
    padding: 70px;
    background: var(--white); /* 白いカード */
    border-radius: 20px;
    margin-left: -10%; /* 重ねる */
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    display: flex; flex-direction: column; justify-content: center;
}

/* カード内の装飾アクセント */
.lunch-desc::before {
    content: ''; position: absolute; top: 40px; left: 40px;
    width: 60px; height: 6px; background-color: var(--main-yellow); border-radius: 3px;
}

.lunch-desc h3 {
    font-size: 1.8rem; font-weight: 900; margin-bottom: 30px;
    line-height: 1.4; color: var(--accent-color);
    margin-top: 20px;
}

.lunch-desc p {
    font-size: 1.05rem; line-height: 2; margin: 0; color: #666;
}


/* --- 4. Events --- */
.events-section { padding: 120px 0; background-color: var(--gray-bg); }
.events-container {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.event-box {
    background: #fff; padding: 50px; border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative; overflow: hidden; transition: 0.3s;
    min-height: 450px; display: flex; flex-direction: column;
}
.event-box:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); }

.event-bg-text {
    position: absolute; top: -10px; right: -10px;
    font-size: 5rem; font-weight: 900; opacity: 0.1;
    font-family: sans-serif; pointer-events: none; line-height: 1;
}
.event-box.spring .event-bg-text { color: var(--spring); }
.event-box.spring .event-head { border-bottom-color: var(--spring); }
.event-box.summer .event-bg-text { color: var(--summer); }
.event-box.summer .event-head { border-bottom-color: var(--summer); }
.event-box.autumn .event-bg-text { color: var(--autumn); }
.event-box.autumn .event-head { border-bottom-color: var(--autumn); }
.event-box.winter .event-bg-text { color: var(--winter); }
.event-box.winter .event-head { border-bottom-color: var(--winter); }

.event-head { margin-bottom: 20px; border-bottom: 3px solid #eee; padding-bottom: 15px; position: relative; z-index: 2; }
.event-head h3 { font-size: 2rem; font-weight: 900; margin: 0; color: var(--accent-color); }

.event-items { list-style: none; padding: 0; margin-bottom: 30px; position: relative; z-index: 2; }
.event-items li { display: flex; align-items: center; margin-bottom: 10px; font-size: 1rem; font-weight: 700; }
.month-tag {
    display: inline-block; width: 45px; background: #eee; 
    text-align: center; border-radius: 6px; margin-right: 15px;
    font-size: 0.85rem; padding: 3px 0; color: #666;
}

.event-photos {
    display: flex; justify-content: center; position: relative; z-index: 1; margin-top: auto;
}
.event-photos img {
    width: 48%; height: 160px; object-fit: cover;
    border-radius: 12px; border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.event-photos img:nth-child(1) { transform: rotate(-3deg) translateY(0); z-index: 2; }
.event-photos img:nth-child(2) { transform: rotate(3deg) translateY(15px) translateX(-10px); z-index: 1; }


/* --- 5. History & Outline --- */
.history-section { padding: 120px 0; }

.history-timeline {
    max-width: 800px; margin: 0 auto 80px auto;
    border-left: 4px solid var(--sub-yellow); padding-left: 40px;
}
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item::before {
    content: ''; position: absolute; top: 0; left: -50px;
    width: 16px; height: 16px; background: var(--main-yellow);
    border-radius: 50%; border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--sub-yellow);
}
.timeline-year { font-size: 1.2rem; font-weight: 900; color: var(--main-yellow); margin-bottom: 8px; }
.timeline-content h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.timeline-content p { font-size: 1rem; color: #666; }

.history-table-wrapper { max-width: 900px; margin: 0 auto; }
.history-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.history-table th, .history-table td { padding: 25px 30px; text-align: left; border-bottom: 1px solid #eee; }
.history-table th { background: var(--sub-yellow); width: 30%; font-weight: 900; white-space: nowrap; }
.history-table tr:last-child th, .history-table tr:last-child td { border-bottom: none; }


/* =========================================
   4. フッター & ローディング
   ========================================= */
#footer { background-color: var(--footer-bg); color: var(--white); padding: 80px 0 30px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 60px; }
.footer-logo { font-size: 1.3rem; font-weight: 900; margin-bottom: 20px; }
.footer-address { font-style: normal; font-size: 0.95rem; line-height: 1.8; opacity: 0.8; }
.footer-nav ul { display: flex; flex-direction: column; gap: 15px; }
.footer-nav li a { color: rgba(255,255,255,0.8); font-size: 0.95rem; transition: 0.3s; }
.footer-nav li a:hover { color: var(--main-yellow); padding-left: 5px; }
.social-label { font-weight: 700; margin-bottom: 15px; opacity: 0.7; font-size: 0.9rem; }
.insta-link { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 50px; color: #fff; font-weight: 700; transition: 0.3s; }
.insta-link:hover { background: #E1306C; color: #fff; transform: translateY(-3px); }
.copyright { text-align: center; font-size: 0.8rem; opacity: 0.5; }

#loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--sub-yellow); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
#loading.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { text-align: center; color: var(--accent-color); }
.loading-sun { font-size: 4rem; color: var(--main-yellow); margin-bottom: 10px; animation: sunSpin 4s linear infinite; }
.loading-text { font-weight: 900; font-size: 1.2rem; letter-spacing: 0.1em; animation: textPulse 2s ease-in-out infinite; }
@keyframes sunSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes textPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }


/* =========================================
   5. スマホ対応 (Mobile)
   ========================================= */
@media (max-width: 768px) {
    header { padding: 10px 0; pointer-events: auto; }
    .header-btn { display: none; }
    .hamburger { display: block; width: 30px; height: 25px; position: relative; cursor: pointer; z-index: 1001; margin-right: 20px; }
    .hamburger span { position: absolute; left: 0; width: 100%; height: 3px; background-color: var(--accent-color); border-radius: 3px; transition: 0.3s; }
    .hamburger span:nth-child(1) { top: 0; } .hamburger span:nth-child(2) { top: 11px; } .hamburger span:nth-child(3) { bottom: 0; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 11px; background-color: var(--white); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg); bottom: 11px; background-color: var(--white); }

    .logo { background: transparent; padding: 0; box-shadow: none; border-radius: 0; backdrop-filter: none; margin-left: 20px; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background-color: var(--accent-color); display: flex; flex-direction: column; justify-content: center; transition: 0.4s ease; z-index: 1000; padding: 20px; }
    .nav-menu.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.2); }
    .nav-menu ul { display: flex; flex-direction: column; gap: 30px; width: 100%; text-align: center; background: transparent; padding: 0; box-shadow: none; }
    .nav-menu li a { color: var(--white); display: block; padding: 10px; }
    .header-tel { color: var(--white) !important; justify-content: center; }

    .hero-title { font-size: 2.5rem; }
    
    .classes-section { padding: 60px 0; }
    .class-row { flex-direction: column; padding: 0 20px; gap: 30px; margin-bottom: 60px; }
    .class-row.reverse { flex-direction: column; }
    .blob-mask img { height: 250px; }
    .class-info h3 { font-size: 1.6rem; }
    
    .lunch-section { padding: 100px 0; }
    .lunch-wrapper { flex-direction: column; padding: 0 20px; }
    .lunch-image { width: 100%; height: 300px; border-radius: 20px 20px 0 0; box-shadow: none; margin-bottom: -30px; z-index: 1; }
    /* スマホではカードを下に配置し、少し重ねる */
    .lunch-desc { 
        width: 100%; margin-left: 0; padding: 50px 30px 40px 30px; 
        border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
        z-index: 2; 
    }
    .lunch-desc h3 { font-size: 1.6rem; }
    .lunch-desc::before { top: 25px; left: 30px; }
    
    .events-container { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
    
    .history-timeline { border-left: 4px solid var(--sub-yellow); padding-left: 30px; margin-left: 20px; }
    .history-table th, .history-table td { display: block; width: 100%; }
    .history-table th { background: #fffbe6; padding-bottom: 5px; }
    .history-table td { padding-top: 5px; padding-bottom: 25px; border-bottom: 1px solid #eee; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .footer-nav ul { align-items: flex-start; }
}