@charset "UTF-8";

/* --- 基本設定 --- */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #D4F236; /* 元気なアクセントカラー */
    --gray-color: #f4f4f4;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; }

/* --- ヘッダー --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference; /* 背景によって文字色を反転 */
    color: #fff;
    box-sizing: border-box;
}

.logo { font-weight: 900; font-size: 1.2rem; letter-spacing: 0.1em; }
nav ul { display: flex; gap: 30px; }
nav li { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; }

/* --- ヒーローセクション（トップページ用） --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
    margin-bottom: 0; /* 下に隙間を作らない */
}

/* 背景動画の設定 */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 90%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

/* --- 下層ページ用ヘッダー（Aboutなど） --- */
.page-header {
    background: #111;
    color: #fff;
    padding: 150px 20px 80px; /* ヘッダーとかぶらないよう上に余白 */
    text-align: center;
}
.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}
.page-desc {
    font-size: 1rem;
    opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    header { padding: 20px; }
    nav { display: none; }
    .page-title { font-size: 2rem; }
}

/* --- 共通セクション設定 --- */
section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    border-bottom: 4px solid var(--accent-color);
    display: inline-block;
    line-height: 1;
}

/* --- Aboutページ詳細デザイン --- */
.profile-block {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 80px;
}
.profile-img {
    flex: 1;
    min-width: 300px;
}
.profile-img img {
    border-radius: 10px;
    width: 100%;
    box-shadow: 10px 10px 0 var(--accent-color);
}
.profile-info {
    flex: 2;
    min-width: 300px;
}
.profile-name {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    display: inline-block;
}
.profile-role {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* --- SERVICE (カードデザイン) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.service-card {
    background: var(--gray-color);
    padding: 40px;
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    background: var(--accent-color);
}
.service-card h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 15px;
}

/* --- WORKS (実績・事例) --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.work-item {
    background: #eee;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    font-weight: 700;
    color: #333;
    border: 1px solid #ddd;
}
.work-label { font-size: 0.8rem; color: #666; margin-bottom: 10px; display: block; }
.work-value { font-size: 1.4rem; font-weight: 900; color: #000; }

/* --- CONTACT --- */
.contact-area {
    text-align: center;
    background: #111;
    color: #fff;
    padding: 80px 20px;
}
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #111;
    padding: 20px 60px;
    font-weight: 900;
    border-radius: 50px;
    margin-top: 30px;
    font-size: 1.1rem;
}
.btn:hover { background: #fff; }

/* --- フッター --- */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.8rem;
    background: #111;
    color: #666;
}
.footer-logo {
    margin-bottom: 20px;
}
.footer-logo img {
    height: 40px;
    width: auto;
}
.footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.footer-sns a {
    display: inline-block;
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
    color: #fff;
}
.footer-sns a:hover {
    opacity: 0.7;
}
.footer-sns svg {
    width: 100%;
    height: 100%;
}

/* --- スクロールアニメーション用 --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 追加CSS: Serviceページのステップリスト --- */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.step-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    position: relative;
    padding-left: 100px; /* 番号用のスペース */
}
.step-num {
    position: absolute;
    top: 30px;
    left: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    opacity: 0.5;
}
.step-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- 追加CSS: Worksページの事例カード --- */
.case-card {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.case-img-placeholder {
    width: 100%;
    height: 200px;
    background: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 900;
}
.case-content {
    padding: 30px;
}
.case-image {
    width: 100%;
    overflow: hidden;
}
.case-image img {
    width: 100%;
    height: auto;
    display: block;
}
.case-cat {
    background: var(--accent-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}
.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.case-result {
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.case-desc {
    font-size: 0.95rem;
    color: #555;
}

/* --- 追加CSS: コンタクトフォーム --- */
.contact-form-wrapper {
    background: #f9f9f9;
    padding: 50px;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .step-item { padding-left: 20px; padding-top: 70px; }
    .contact-form-wrapper { padding: 20px; }
}

/* --- スマホ用ハンバーガーメニュー（style.cssの末尾に追加） --- */

/* ハンバーガーボタン（PCでは非表示） */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: 0.3s;
}

/* スマホ表示時の設定 */
@media (max-width: 768px) {
    /* ナビゲーションを隠すのではなく、スマホ用に変形させる */
    nav {
        display: block; /* 表示させる */
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面外（右）に隠す */
        width: 100%;
        height: 100vh;
        background: #000; /* 背景は黒 */
        transition: 0.3s;
        z-index: 150;
        padding-top: 100px; /* 上に余白 */
    }
    
    /* メニューが開いた時のクラス */
    nav.active {
        right: 0; /* 画面内に出てくる */
    }

    /* メニューリストを縦並びに */
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    nav li {
        font-size: 1.5rem; /* 文字を大きく */
    }

    /* ハンバーガーボタンを表示 */
    .hamburger {
        display: block;
    }

    /* メニューが開いている時のボタン（×印に変形） */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* --- Googleフォーム調整用 --- */
.form-container {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden; /* はみ出し防止 */
}

.form-container iframe {
    width: 100%; /* 親要素に合わせて伸縮 */
    max-width: 640px; /* PCで広がりすぎないように */
    border: none;
}

/* --- 実際に教えている様子 ギャラリー --- */
.teach-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.teach-gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    object-fit: cover;
}

/* --- About: 活動紹介 --- */
.about-highlight {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.about-item h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.about-lead {
    font-weight: 900;
    margin-bottom: 10px;
}
.about-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.about-photos figure {
    margin: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.about-photos img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    object-fit: cover;
    display: block;
}
.about-photos figcaption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
    line-height: 1.4;
}