/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 基本設定 */
:root {
    --primary: #F97316;
    --accent: #FB923C;
    --deep: #C2410C;
    --gradient: linear-gradient(135deg, #F97316, #EF4444);
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --border-radius: 12px;
    --border-radius-full: 9999px;
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --card-border: 1px solid rgba(251, 146, 60, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
}

/* レスポンシブ改行制御 */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

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

/* モバイルナビゲーション */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .nav {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.85;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-cta {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding-top: 120px;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ボタン */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active {
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
}

/* セクション共通 */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-900);
    line-height: 1.3;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
}

/* お悩みセクション */
.problems {
    background: var(--gray-50);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: var(--card-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.problem-item p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .problem-item {
        padding: 1.5rem;
    }
    
    .problem-icon {
        font-size: 2.5rem;
    }
}

/* サービス紹介 */
.service-intro {
    background: var(--white);
}

.service-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* 講座紹介 */
.courses {
    background: var(--gray-50);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: var(--card-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.4;
}

.course-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.course-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: var(--border-radius);
    margin-top: auto;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-content {
        padding: 1.5rem;
    }
    
    .course-title {
        font-size: 1.25rem;
    }
}

/* 特徴・強み */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon img {
    width: 2rem;
    height: 2rem;
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.4;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
}

/* メッセージ */
.message {
    background: var(--gray-50);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.message-text {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* CTA */
.cta {
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.3;
}

.cta-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta .cta-button {
    background: var(--white);
    color: var(--primary);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta .cta-button:hover {
    background: var(--gray-100);
    color: var(--deep);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cta .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* フッター */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.company-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.company-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .company-info h3 {
        font-size: 1.125rem;
    }
    
    .company-info p {
        font-size: 0.9rem;
    }
}

/* 追加のレスポンシブ調整 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .hero {
        min-height: 450px;
        padding-top: 140px;
    }
    
    .problems-grid {
        gap: 1rem;
    }
    
    .courses-grid {
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* スクロール時のアニメーション */
.problem-item,
.course-card,
.feature-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-item.animate,
.course-card.animate,
.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* フォーカス状態 */
.cta-button:focus,
.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 印刷用スタイル */
@media print {
    .header,
    .cta,
    .footer {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-overlay {
        opacity: 0.3;
    }
}
