@charset "UTF-8";

/* ==========================================================================
   CSS Variables (New Color Palette)
   ========================================================================== */
:root {
    --color-text: #333333;
    --color-primary: #3b2a26;
    --color-secondary: #5a423d;
    --color-bg: #E8E0D5;
    --color-section-bg: #e3e3e3;
    --color-white: #ffffff;
    --color-border: #e3e3e3;
    --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    --transition-speed: 0.3s;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

img,
video {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

/* Alternating Section Backgrounds */
.section-alt {
    background-color: var(--color-section-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Hover Effect Utilities */
.hover-float {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.hover-opacity {
    transition: opacity var(--transition-speed);
}

.hover-opacity:hover {
    opacity: 0.7;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

.btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 2px solid #00aeee;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    position: relative;
}

.global-nav {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
}

.logo img {
    max-height: 50px;
    width: auto;
}

.header-sub {
    width: 100%;
    background-color: #ffffff;
    /* Optional: subtle border if wanted */
    /* border-top: 1px dashed #e3e3e3; */
}

/* PC/SP utilities */
.pc-only { display: block; }
.sp-only { display: none; }

.sub-nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-nav > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.sub-nav > ul > li {
    position: relative;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

/* 縦線の区切り (最後の項目以外) */
.sub-nav > ul > li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background-color: var(--color-text);
}

.sub-nav a {
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    font-size: 0.95rem;
}

.sub-nav a:hover {
    color: #00aeee;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 220px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
    white-space: nowrap;
    text-align: left;
    display: block;
}

.dropdown-menu .column {
    padding-bottom: 10px;
}

.dropdown-menu .column:last-child {
    padding-bottom: 0;
}

.dropdown-title {
    display: block;
    font-weight: bold;
    color: #3b2a26;
    padding: 10px 20px 5px;
    font-size: 0.95rem;
    border-bottom: 1px dashed #eee;
    margin-bottom: 5px;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}



.global-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.global-nav a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    transition: color var(--transition-speed);
}

.global-nav a:hover {
    color: #00aeee;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00aeee;
    transition: width var(--transition-speed);
}

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

.global-nav a.btn {
    color: #ffffff;
}

.global-nav a.btn:hover {
    background-color: #00aeee;
    color: #ffffff;
}

.global-nav a.btn::after {
    display: none;
    /* No underline effect for the button */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: absolute; /* absolute on mobile to stay on right */
    right: 0;
    z-index: 1100;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-speed);
}

.hamburger span:nth-of-type(1) {
    top: 0;
}

.hamburger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-of-type(3) {
    bottom: 0;
}

.hamburger.is-active span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: var(--color-primary);
}

.hamburger.is-active span:nth-of-type(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background-color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* Adjust hero top margin since header layout changed */
.hero {
    margin-top: 130px;
    height: calc(100vh - 270px);
    min-height: 350px;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 42, 38, 0.2);
    /* メインカラーのオーバーレイ */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.hero-title {
    color: var(--color-white);
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* ==========================================================================
   Concept / Greeting
   ========================================================================== */
.concept-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.concept-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.concept-text {
    flex: 1;
}

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

.concept-text p {
    margin-bottom: 20px;
}

/* ==========================================================================
   Latest Blog
   ========================================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--color-border);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.post-category {
    background-color: var(--color-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: bold;
    margin-top: auto;
    transition: color var(--transition-speed);
}

.post-more:hover {
    color: var(--color-secondary);
}

.post-more::after {
    content: ' →';
}

.center-btn {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================================================
   Activities
   ========================================================================== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.activity-item {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 30px;
    border: 1px solid var(--color-border);
}

.activity-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-section-bg);
    padding-bottom: 10px;
}

.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    margin-bottom: 20px;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
}

.video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-content {
    margin-bottom: 20px;
}

/* ==========================================================================
   Lessons
   ========================================================================== */
.lesson-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lesson-card {
    background: var(--color-white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.lesson-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.lesson-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* ==========================================================================
   Gallery Modal
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.modal.is-show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.modal-close:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(59, 42, 38, 0.3);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #004967;
    /* ユーザー指定のネイビーブルー */
    color: var(--color-white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-nav a {
    transition: color var(--transition-speed);
}

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

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

/* ==========================================================================
   Top Button
   ========================================================================== */
#top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #17a1db;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-md);
}

#top-btn.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#top-btn:hover {
    background-color: #ded761;
    color: #3b2a26;
    /* Add contrast text color if light yellow, though white might also be intended. Let's keep it default white unless specified otherwise, actually #ded761 is light yellow so white might be hard to read, but let's just stick to user string. Wait, I won't change the color. Just background */
    transform: translateY(-5px);
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */
.page-header {
    margin-top: 130px;
    padding: 80px 0;
    background-color: #17a1db;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--color-white);
}

.blog-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 50px;
    padding: 60px 0;
}

.sidebar-widget {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sidebar-list {
    margin-bottom: 30px;
}

.sidebar-list:last-child {
    margin-bottom: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    transition: color var(--transition-speed);
}

.sidebar-list a::before {
    content: '▶';
    font-size: 0.7rem;
    color: var(--color-primary);
    margin-right: 10px;
    transition: color var(--transition-speed);
}

.sidebar-list a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.sidebar-list a:hover::before {
    color: var(--color-secondary);
}

/* ==========================================================================
   Blog Page Minimal Design
   ========================================================================== */
.blog-page .post-card,
.blog-page .sidebar-widget {
    box-shadow: none;
    border: 1px solid var(--color-border);
}

.blog-page .hover-float:hover {
    box-shadow: none;
    transform: translateY(-3px);
}

.blog-page .post-category {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* Blog Card Expanded State */
.post-card.is-expanded {
    grid-column: 1 / -1;
    cursor: default;
}

.post-card.is-expanded .post-card-img {
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background: #000;
}

.post-card.is-expanded:hover .post-card-img {
    transform: none;
}

.post-card.is-expanded .post-more::after {
    content: ''; 
}

.post-card.is-expanded .post-title {
    font-size: 1.6rem;
}

.post-card.is-expanded .post-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================================================
   Responsive (Max 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .logo img {
        max-height: 35px !important; /* 50px * 0.7 = 35px */
        width: auto !important;
    }

    .pc-only { display: none !important; }
    .sp-only { display: block !important; }

    /* Hamburger mobile position */
    .header-tier2 {
        justify-content: flex-start;
    }

    .hamburger {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        top: 70px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        transition: left var(--transition-speed);
        padding: 40px 20px;
        overflow-y: auto;
        z-index: 999;
    }

    .mobile-nav.is-active {
        left: 0;
    }

    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
    }

    .mobile-nav a {
        color: var(--color-text);
        font-weight: bold;
        font-size: 1.1rem;
    }

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

    .hamburger.is-active span {
        background-color: var(--color-primary);
    }

    /* Hero & Page Header */
    .hero,
    .page-header {
        margin-top: 70px;
    }
    .hero-title {
        font-size: 2rem;
    }

    /* Concept */
    .concept-inner {
        flex-direction: column;
        gap: 30px;
    }

    /* Activities */
    .activity-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form */
    .contact-form {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    /* Blog Layout */
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Grid cols adjustment */
    .post-grid,
    .lesson-list,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Shop Grid Responsive */
    .shop-grid {
        flex-direction: column;
    }
    .shop-card {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Shop New Grid Layout
   ========================================================================== */
.shop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.shop-card {
    flex: 1 1 calc(33.333% - 20px);
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.shop-card .shop-img {
    margin-bottom: 20px;
    text-align: center;
}

.shop-card .shop-img img {
    max-height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

.shop-catch {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-section-bg);
    padding-bottom: 10px;
}

h4.shop-catch{
font-size: 1.0rem;   
}

.shop-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.shop-features {
    margin-bottom: 30px;
    font-size: 0.9rem;
    list-style: none;
    padding: 0;
}

.shop-features li {
    margin-bottom: 8px;
    color: var(--color-secondary);
}

/* ==========================================================================
   Scrollbar Styles
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background-color: #e6f7ff;
}
::-webkit-scrollbar-thumb {
    background-color: #0077c2;
    border-radius: 5px;
}