:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #404040;
    --header-height: 73px; /* ヘッダーの高さ */
}

/* 全体のスタイル */
html {
    scroll-behavior: smooth; /* スムーススクロールを有効化 */
}

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

/* ヘッダー */
.header {
    height: var(--header-height);
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

.header-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: gray;
    transition: width 0.3s ease;
}

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

/* フッター */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
}

/* セクション共通スタイル */
section {
    padding-top: calc(var(--header-height) + 20px); /* ヘッダーの高さ + 余白 */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--header-height);
}

section:first-of-type {
    padding-bottom: 0px;
}

/* 偶数セクションの背景色 */
section:nth-of-type(even) {
    background-color: #ffffff;
}

/* 奇数セクションの背景色 */
section:nth-of-type(odd) {
    background-color: #f8f9fa;
}

/* セクションタイトル共通スタイル */
.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #0066cc;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

/* 各セクションのコンテンツ幅を統一 */
.program-content,
.instructor-content,
.about-content,
.timetable-content,
.application-content,
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* カード要素の共通スタイル */
.program-item,
.instructor-profile,
.about-item,
.about-description,
.timetable-item,
.step,
.contact-form {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* ホバーエフェクト */
.program-item:hover,
.about-item:hover,
.step:hover {
    transform: translateY(-5px);
}

.timetable-item:hover {
    transform: translateX(5px);
}

/* 講師セクション */
.instructor {
    background-color: #fff5f0;
}

.instructor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(204,102,0,0.05) 0%, rgba(204,102,0,0) 100%);
    z-index: 1;
}

.instructor-content {
    position: relative;
    z-index: 2;
}

.instructor-profile {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(204,102,0,0.1);
}

.instructor-image {
    flex: 0 0 300px;
}

.instructor-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}

.instructor-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-top: 20px;
}

.instructor-position {
    color: #666;
    margin-bottom: 20px;
}

.instructor-description {
    line-height: 1.8;
}

/* セミナーについてセクション */
.about {
    background-color: #f0fff5;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,204,102,0.05) 0%, rgba(0,204,102,0) 100%);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.about-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,204,102,0.1);
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item h3 {
    font-weight: bold;
    margin-bottom: 10px;
}

.about-description {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0,204,102,0.1);
}

.about-description h3 {
    font-weight: bold;
    margin-bottom: 20px;
}

.about-description ul {
    list-style: disc;
    padding-left: 20px;
}

.about-description li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* タイムテーブルセクション */
.timetable {
    background-color: #f0f0ff;
}

.timetable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102,0,204,0.05) 0%, rgba(102,0,204,0) 100%);
    z-index: 1;
}

.timetable-content {
    position: relative;
    z-index: 2;
}

.timetable-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(102,0,204,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.timetable-item:hover {
    transform: translateX(5px);
}

.time {
    flex: 0 0 150px;
    font-weight: bold;
}

.session h3 {
    font-weight: bold;
    margin-bottom: 10px;
}

/* 申込方法セクション */
.application {
    background-color: #fff0f5;
}

.application::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(204,0,102,0.05) 0%, rgba(204,0,102,0) 100%);
    z-index: 1;
}

.application-content {
    position: relative;
    z-index: 2;
}

.application-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.step {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(204,0,102,0.1);
    transition: transform 0.3s ease;
}

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

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    margin-bottom: 15px;
    text-align: center;
}

.application-button {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0052a3;
}

/* お問い合わせセクション */
.contact {
    background-color: #f0f8ff;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,102,204,0.05) 0%, rgba(0,102,204,0) 100%);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-description {
    text-align: center;
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    height: 150px;
}

.form-button {
    text-align: center;
}

.btn-submit {
    padding: 15px 40px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #0052a3;
}

/* キービジュアルセクション */
.kv-content {
    max-width: 823px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.kv-content img {
    width: 100%;
    height: auto;
    display: block;
}

.kv-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #404040;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.kv-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.kv-subtitle {
    font-size: 24px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* プログラムセクション */
.program {
    background-color: #f0f5ff; /* 薄い青色の背景 */
    position: relative;
    overflow: hidden;
}

.program::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,102,204,0.05) 0%, rgba(0,102,204,0) 100%);
    z-index: 1;
}

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

.program-item {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 20px rgba(0,102,204,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,102,204,0.15);
}

.program-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.program-number {
    font-size: 28px;
    font-weight: bold;
    color: #0066cc;
    margin-right: 20px;
    background: rgba(0,102,204,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.program-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.program-item-body p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* KVセクションの調整 */
.kv {
    padding-top: var(--header-height);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 300;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #333;
    position: absolute;
    transition: all 0.3s;
}

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

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* ハンバーガーメニューがアクティブ時 */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ヘッダーテキスト */
.header-text {
    display: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* ====================
   レスポンシブ対応
   ==================== */
   @media (max-width: 880px) {
    /* ヘッダー内の配置調整 */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    .header-text {
        display: block;
        flex: 1;
        text-align: center;
        margin: 0 15px;
    }

    /* ハンバーガーメニューの表示 */
    .hamburger {
        display: block;
        flex: 0 0 auto;
        margin-left: 60px;
        margin-right: 20px;
    }

    /* ナビゲーションメニュー */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        transition: all 0.3s;
        padding-top: var(--header-height);
        z-index: 200;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
    }

    .nav-list li {
        margin: 15px 0;
    }

    /* キービジュアル */
    .kv-content {
        width: 90%;
    }

    .kv-title {
        font-size: 32px;
    }
    
    .kv-subtitle {
        font-size: 18px;
    }

    /* セクション共通 */
    .section-title {
        font-size: 28px;
    }

    /* プログラム */
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    /* カード要素の共通スタイル */
    .program-item,
    .instructor-profile,
    .about-item,
    .about-description,
    .timetable-item,
    .step,
    .contact-form {
        padding: 20px;
    }

    /* Aboutセクション */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* 申込方法セクション */
    .application-steps {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .step {
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .application-content {
        width: 100%;
        box-sizing: border-box;
    }
}