/* ===================================
   晴川株式会社 - メインスタイルシート
   =================================== */

/* カラーパレット
   Primary: #F59E0B (明るいオレンジ)
   Secondary: #B45309 (濃いオレンジ)
   Accent: #FCD34D (明るい黄色)
   Light Yellow: #FCE8A3 (ライトイエロー)
   Mid Yellow: #FCD75E (ミディアムイエロー)
   Text: #1f2937 (ダークグレー)
   Light: #FFFBEB (極薄イエロー)
   White: #ffffff
*/

@charset "UTF-8";

:root {
    --primary-color: #F59E0B;
    --secondary-color: #B45309;
    --accent-color: #FCD34D;
    --light-yellow: #FCE8A3;
    --mid-yellow: #FCD75E;
    --text-color: #1f2937;
    --text-light: #78716c;
    --bg-light: #FFFBEB;
    --bg-white: #ffffff;
    --bg-perl-white: #F7F6F5;
    --border-color: #FDE68A;
    --shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
    --shadow-lg: 0 10px 25px rgba(245, 158, 11, 0.15);
    
    /* ニュートラルカラー */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* フォント設定 */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* スペーシング */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* ボーダーラディアス */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* ===================================
   リセット & 基本設定
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   コンテナ & レイアウト
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===================================
   ヘッダー & ナビゲーション
   =================================== */

header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo:hover {
    color: var(--secondary-color);
}

/* ナビゲーション */
nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
}

nav > ul > li {
    position: relative;
}

nav > ul > li > a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav > ul > li > a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ドロップダウンメニュー */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '\25BC';
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    flex-direction: column;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===================================
   ヒーローセクション
   =================================== */

.hero {
    background: linear-gradient(135deg, #FCD34D, #F59E0B, #B45309);
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(252, 231, 163, 0.3), transparent 50%),
                radial-gradient(circle at bottom left, rgba(252, 215, 94, 0.3), transparent 50%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ===================================
   ボタン
   =================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--bg-perl-white);
    color: var(--secondary-color);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--light-yellow);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(180, 83, 9, 0.2);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(180, 83, 9, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ===================================
   セクション見出し
   =================================== */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===================================
   カードコンポーネント
   =================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom:40px;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   特徴セクション
   =================================== */

.features-section {
    background: var(--bg-light);
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-content p {
    color: var(--text-light);
}

/* ===================================
   TOPへ戻るボタン
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===================================
   フッター
   =================================== */

footer {
    background: var(--text-color);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-3xl);
}

.course-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.course-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: var(--spacing-lg);
    text-align: center;
}

.course-level {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.25rem var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.course-header h3 {
    margin-bottom: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.course-content {
    padding: var(--spacing-xl);
}

.course-description {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.course-features h4 {
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.course-features ul {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.course-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.course-features i {
    color: var(--accent-color);
    font-size: var(--font-size-xs);
}

.course-info {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-color);
    width: 16px;
}

.lms-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.lms-features .feature-icon,.benefit .benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem;
    color: var(--white);
}

.lms-features h3,.benefit h3,.examples h3 {
	text-align: center;
}

.example-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F59E0B, #B45309);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.example-icon i {
    font-size: 1.5rem;
    color: white;
}

.example-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tech-tag {
    background: var(--light-yellow);
    color: #2d3748;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.tech-tag:hover {
    background: var(--accent-color);
    cursor: default;
}

.examples .card {
	align-items: center;
	flex-direction: column;
	display: flex;
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 768px) {
	/* 変数の再定義 */
    :root {
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --spacing-4xl: 4rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }
    
    /* ナビゲーション */
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 2000;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px;
    }

    nav > ul > li {
        width: 100%;
    }

    nav > ul > li > a {
        padding: 15px 30px;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-toggle::after {
        float: right;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* ヒーロー */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* セクション */
    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* カード */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* TOPへ戻るボタン */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* フッター */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
	/* 変数の再定義 */
    :root {
        --font-size-5xl: 1.5rem;
        --font-size-4xl: 1.25rem;
        --font-size-3xl: 1.125rem;
        --spacing-md: 0.5rem;
        --spacing-lg: 0.75rem;
        --spacing-xl: 0.75rem;
        --spacing-2xl: 1rem;
        --spacing-3xl: 1.5rem;
        --spacing-4xl: 2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* ===================================
   ユーティリティクラス
   =================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}