/* -------------------------------------------------------------------
   1. Font & Variables: フォントと色の定義
------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    /* メインカラー定義 */
    --primary-color: #00c6ff;     /* 鮮やかなシアン */
    --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #005bea 100%); 
    --accent-color: #005bea;      /* 濃い青 */
    --text-dark: #1a2a3a;         /* テキスト色（濃紺） */
    --text-gray: #556b82;         /* 補足テキスト色 */
    
    /* 背景色設定（カードを目立たせるため少し濃い青グレーに） */
    --bg-color: #e6f0fa;          
    --white: #ffffff;

    /* 影の設定（浮遊感を出すため強めに） */
    --shadow-card: 0 15px 40px rgba(0, 91, 234, 0.15); 
    --shadow-hover: 0 15px 40px rgba(0, 198, 255, 0.25);
    
    /* 角丸とヘッダーの高さ */
    --radius-lg: 20px;
    --radius-md: 12px;
    --header-height: 70px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden; /* 横スクロール防止 */
}

/* 英数字は見出し用フォント(Montserrat)を適用 */
h1, h2, h3, .hero-subtitle, .feature-number, span.en, .cta-button, nav a, .tech-badge {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* -------------------------------------------------------------------
   2. Header: ヘッダーとナビゲーション
------------------------------------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);         /* すりガラス効果 */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 198, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 198, 255, 0.05);
}

#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    display: flex;
    align-items: center;
}

header h1 a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

/* ロゴアイコンの色設定 */
header h1 a i {
    margin-right: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

nav li a {
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    font-size: 0.95rem;
    padding: 5px 0;
}

/* ナビゲーションの下線アニメーション */
nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 198, 255, 0.4);
}

nav li a:hover::after {
    width: 100%;
}
nav li a:hover {
    color: var(--primary-color);
}

/* -------------------------------------------------------------------
   3. Hero Section: メインビジュアル
------------------------------------------------------------------- */
.hero {
    position: relative;
    margin-top: calc(var(--header-height) * -1); /* ヘッダーの裏に潜り込ませる */
    padding-top: calc(var(--header-height) + 120px);
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #eef9ff;
    overflow: hidden;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: var(--shadow-card);
}

/* 背景画像設定 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.png'); /* 画像パス */
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.15; /* 画像の濃さ */
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 1; 
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(0, 198, 255, 0.12);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: var(--text-dark);
    background: linear-gradient(135deg, #1a2a3a 0%, #005bea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 500;
}

/* -------------------------------------------------------------------
   4. Components: ボタン・カード・共通パーツ
------------------------------------------------------------------- */
/* 水色ボタン */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 198, 255, 0.5);
    color: white;
}

/* セクション設定 */
.content-block {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-bg {
    /* 背景色設定がある場合はカードとのコントラストを調整 */
    background-color: transparent; 
}

.text-center { text-align: center; }

.content-block h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* ★NEW: コンテンツを包む白いカード（背景付き） */
.content-card-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 198, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 黄色い強調ボックス */
.emphasis-box {
    background: #fff;
    border: 2px solid #ffcc00;
    padding: 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* グリッドカード（Features等） */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 198, 255, 0.1);
    position: relative; /* 擬似要素のために追加 */
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 198, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* 概要テーブル */
.overview-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    /* content-card-wrapper内に入れる場合は影を消しても良いが、単体使用も考慮して残す */
    /* box-shadow: var(--shadow-card); */
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #f0f5fa;
}

.overview-table dl {
    display: flex;
    border-bottom: 1px solid #f0f5fa;
    padding: 25px 30px;
    margin: 0;
}
.overview-table dl:last-child { border-bottom: none; }

.overview-table dt {
    width: 30%;
    font-weight: 700;
    color: var(--accent-color);
}
.overview-table dd {
    width: 70%;
    margin: 0;
    font-weight: 500;
}

/* スケジュールリスト */
.schedule-steps {
    list-style: none;
    padding: 0;
}
.schedule-steps li {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* カード内なので少し控えめに */
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    border: 1px solid #f0f5fa;
}
.schedule-steps li span {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.3);
}

/* Serviceページ用：左右レイアウト */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}
.showcase-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.15);
    transition: transform 0.3s;
    margin-bottom: 20px;
}
.showcase-img:hover {
    transform: scale(1.02);
}
.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00c6ff 0%, #005bea 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.3);
}

/* お問合せページ用 */
.contact-info {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
}
.contact-info a {
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
    font-weight: 500;
}
.contact-info a:hover {
    color: var(--primary-color);
}
.contact-info .icon {
    font-size: 1.4em;
    margin-right: 10px;
    color: var(--primary-color);
}

/* -------------------------------------------------------------------
   5. Animations: スクロール時の動き
------------------------------------------------------------------- */
.animate-block {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 左から */
.fade-from-left { transform: translateX(-50px); }
/* 右から */
.fade-from-right { transform: translateX(50px); }
/* 下から */
.fade-from-up { transform: translateY(30px); }

/* 表示状態 */
.animate-block.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* -------------------------------------------------------------------
   6. Footer
------------------------------------------------------------------- */
footer {
    background: #1a2a3a;
    color: rgba(255,255,255,0.7);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------
   7. Responsive: スマホ・タブレット対応
------------------------------------------------------------------- */
/* ハンバーガーボタン */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 6px 0;
    transition: all 0.3s;
}
/* 開閉時のアニメーション */
.hamburger-btn.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 768px) {
    .hamburger-btn { display: block; }

    #global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    #global-nav.is-open { transform: translateX(0); }

    #global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    #global-nav li a {
        font-size: 1.2rem;
    }

    /* スマホでの各要素調整 */
    .hero h1 { font-size: 2.2rem; }
    .hero {
        margin-top: 0;
        padding-top: 60px;
        border-radius: 0 0 30px 30px;
    }
    
    .content-card-wrapper {
        padding: 30px 20px; /* カード余白を狭く */
    }

    .split-layout, .split-layout.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .overview-table dl {
        flex-direction: column;
        gap: 10px;
    }
    .overview-table dt, .overview-table dd { width: 100%; }
    
    .schedule-steps li { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
}

/* =========================================
   8. 追加スタイル：背景画像設定（共通化）
========================================= */

/* ① テック背景（problem-bg.png）を適用するセクション一覧 */
/* ・なぜ今？(#problem)
   ・コース概要/募集要項(#overview)
   ・制作事例(#case-study)
   ・ロードマップ(#roadmap) */
#problem .content-card-wrapper,
#overview .content-card-wrapper,
#case-study .content-card-wrapper,
#roadmap .content-card-wrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.85); /* 半透明にして奥行きを出す */
    border: 1px solid rgba(0, 198, 255, 0.3);
}

#problem .content-card-wrapper::before,
#overview .content-card-wrapper::before,
#case-study .content-card-wrapper::before,
#roadmap .content-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 背景画像のパス */
    background-image: url('images/problem-bg.png'); 
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* 読みやすくするための調整 */
    opacity: 0.25;
    filter: hue-rotate(10deg) saturate(1.5); 
}

/* ② パートナーロゴ背景の設定 */
/* ロゴが見えるように、カード自体の白背景を少し透かす */
.feature-card.partner-card-sc,
.feature-card.partner-card-gua {
    background-color: rgba(255, 255, 255, 0.92);
}

.partner-card-sc::before,
.partner-card-gua::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 真ん中に配置 */
    width: 80%;  /* ロゴの大きさ */
    height: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* はみ出さないように収める */
    z-index: -1;
    opacity: 0.15; /* 非常に薄く表示 */
    filter: grayscale(0%); /* 必要ならグレイスケールにしてもおしゃれ */
}

/* しずおかコネクトのロゴ */
.partner-card-sc::before {
    background-image: url('images/logo.png');
}

/* Grow Up Academyのロゴ */
.partner-card-gua::before {
    background-image: url('images/growuplogo.jpg');
}
/* =========================================
   9. 追加スタイル：サブページのヘッダー背景共通化
========================================= */
/* 運営体制(#about-hero)、お問合せ(#contact-hero)、コース詳細(#service-hero)、スケジュール(#schedule-hero)のトップセクション */
#about-hero,
#contact-hero,
#service-hero,
#schedule-hero {
    position: relative;
    /* ヘッダーの下に潜り込ませるための設定（.heroと同じ手法） */
    margin-top: calc(var(--header-height) * -1);
    /* heroよりは少し控えめなパディング設定でバランスを取る */
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
    text-align: center;
    /* 角丸を少し小さめに設定 */
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: var(--shadow-card);
    background-color: #eef9ff; /* 画像ロード前のベース色 */
    margin-bottom: 60px; /* 次のセクションとの間隔 */
}

/* 背景画像を擬似要素で配置（.heroと全く同じ設定） */
#about-hero::before,
#contact-hero::before,
#service-hero::before,
#schedule-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.png'); /* トップページと同じ画像を使用 */
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.15; /* 同じ濃さ */
    mix-blend-mode: multiply; /* 背景色と馴染ませる */
}

/* コンテンツ（文字など）を背景より前に出す */
#about-hero > *,
#contact-hero > *,
#service-hero > *,
#schedule-hero > * {
    position: relative;
    z-index: 1;
}

/* スマホでの調整 */
@media (max-width: 768px) {
    #about-hero,
    #contact-hero,
    #service-hero,
    #schedule-hero {
        margin-top: 0; /* スマホでは潜り込ませない */
        padding-top: 60px;
        border-radius: 0 0 20px 20px;
    }
}
/* =========================================
   10. 追加スタイル：カレンダー埋め込み用
========================================= */
.responsive-calendar-wrapper {
    position: relative;
    padding-bottom: 75%; /* カレンダーの縦横比（4:3くらい）に合わせて調整 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f0f0f0; /* 読み込み中の背景色 */
    border-radius: var(--radius-md);
}

.responsive-calendar-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* スマホのときは縦長に見えるように比率を変える */
@media (max-width: 768px) {
    .responsive-calendar-wrapper {
        padding-bottom: 120%; /* スマホでは縦長に */
    }
}