/* ロゴの黄色#FFE500をベースにしたカラーパレット */
:root {
    /* メインカラー（ロゴベース） */
    --primary: #FFE500;      /* ロゴの正確な黄色 */
    --primary-light: #FFF200; /* より明るい黄色 */
    --secondary: #FFC107;    /* 明るいオレンジ */
    --accent: #FF9800;       /* アクセント用オレンジ */
    --neutral: #555;         /* ソフトグレー */
    
    /* 基本色 */
    --white: #fff;
    --black: #222;
    --light: #fafafa;
    --border: #e8e8e8;
    
    /* 透明度 */
    --alpha-light: rgba(255, 229, 0, 0.15);
    --alpha-shadow: rgba(0, 0, 0, 0.08);
    
    /* グラデーション（ロゴ色ベース） */
    --gradient-main: linear-gradient(135deg, var(--primary-light), var(--primary));
    --gradient-button: linear-gradient(135deg, var(--secondary), var(--accent));
    
    /* 統一フォントサイズ（文字階層明確化） */
    --text-hero-main: 2.8rem;    /* 「好きが学びに変わる」専用 */
    --text-hero-sub: 1.2rem;     /* 「マンツーマン体験レッスン」統一サイズ */
    --text-title: 1.6rem;
    --text-subtitle: 1.2rem;
    --text-body: 1rem;
    --text-small: 0.9rem;
    --text-xs: 0.8rem;
    
    /* 統一スペーシング */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', '游ゴシック Medium', 'Yu Gothic Medium', sans-serif;
    line-height: 1.7;
    color: var(--black);
    font-size: var(--text-body);
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ヘッダー - SP最適化 */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px var(--alpha-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    height: 36px;
    width: auto;
}

.cta-button-header {
    background: var(--gradient-button);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-small);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--alpha-light);
    white-space: nowrap;
}

.cta-button-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--alpha-light);
}

/* メインビジュアル - 中央揃え完全修正版 */
.hero {
    background: var(--gradient-main);
    color: var(--black);
    padding: 80px 0 var(--space-xl);
    overflow: hidden;
    width: 100%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
    justify-items: center;
    align-items: center;
}

/* 画像を最初に表示 */
.hero-image {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-text {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 32px var(--alpha-shadow);
    display: block;
    margin: 0 auto;
}

.hero-badge {
    background: var(--alpha-light);
    color: var(--black);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: var(--text-small);
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--space-sm);
    text-align: center;
}

/* メインタイトル「好きが学びに変わる」- 中央揃え強化 */
.hero-title {
    font-size: var(--text-hero-main);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--black);
    letter-spacing: 0.01em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-title .highlight {
    color: var(--accent);
    white-space: nowrap;
}

/* サブタイトル「マンツーマン体験レッスン」- 中央揃え */
.hero-subtitle {
    font-size: var(--text-hero-sub);
    margin-bottom: var(--space-md);
    color: var(--black);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    word-break: keep-all;
}

.hero-subtitle .large {
    font-size: var(--text-hero-sub);
    display: block;
    font-weight: 600;
}

.hero-features {
    margin-bottom: var(--space-lg);
    width: 100%;
    text-align: center;
}

.feature-item {
    margin-bottom: var(--space-xs);
    font-size: var(--text-body);
    color: var(--black);
    font-weight: 500;
    text-align: center;
}

/* 「完全無料」の改行問題解決 */
.hero-subtitle strong {
    font-weight: 500;
    white-space: nowrap;
}

.hero-cta {
    width: 100%;
    text-align: center;
}

.cta-button-main {
    background: var(--gradient-button);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-subtitle);
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--alpha-light);
    min-width: 280px;
    text-align: center;
}

.cta-button-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px var(--alpha-light);
}

.cta-note {
    font-size: var(--text-small);
    margin-top: var(--space-sm);
    color: var(--black);
    opacity: 0.8;
    text-align: center;
}

/* セクション共通 - SP最適化 */
section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-size: var(--text-title);
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--black);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.section-title::after {
    content: '';
    width: 48px;
    height: 3px;
    background: var(--gradient-main);
    display: block;
    margin: var(--space-sm) auto 0;
    border-radius: 2px;
}

/* 価値提案セクション - SP最適化 */
.value-proposition {
    background: var(--light);
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.value-item {
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px var(--alpha-shadow);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px var(--alpha-light);
}

.value-icon {
    font-size: 2.4rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.value-title {
    font-size: var(--text-subtitle);
    margin-bottom: var(--space-sm);
    color: var(--black);
    font-weight: 600;
    line-height: 1.4;
}

.value-description {
    color: var(--neutral);
    line-height: 1.7;
    font-size: var(--text-body);
}

/* 体験内容 - SP最適化 */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.experience-item {
    background: var(--gradient-main);
    color: var(--black);
    padding: var(--space-md);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 16px var(--alpha-light);
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--alpha-light);
}

.experience-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.experience-item h3 {
    font-size: var(--text-subtitle);
    margin-bottom: var(--space-xs);
    color: var(--black);
    font-weight: 600;
}

.experience-item p {
    font-size: var(--text-body);
    color: var(--neutral);
    line-height: 1.6;
}

/* 比較セクション - SP専用カード */
.comparison {
    background: var(--light);
}

.comparison-mobile {
    display: block;
}

.comparison-table {
    display: none;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.comparison-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--alpha-shadow);
}

.comparison-card-header {
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    font-size: var(--text-subtitle);
    text-align: center;
    color: var(--white);
}

.comparison-card-header.general {
    background: var(--neutral);
}

.comparison-card-header.procale {
    background: var(--gradient-main);
    color: var(--black);
}

.comparison-card-body {
    padding: 0;
}

.comparison-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.comparison-feature:last-child {
    border-bottom: none;
}

.comparison-feature-label {
    font-weight: 600;
    color: var(--black);
    font-size: var(--text-body);
}

.comparison-feature-value {
    color: var(--neutral);
    font-size: var(--text-body);
    text-align: right;
}

.comparison-feature-value.highlight {
    color: var(--accent);
    font-weight: 600;
}

.comparison-feature-value.highlight::after {
    content: " ✓";
    color: var(--primary);
}

/* プログラミング効果 - SP最適化 */
.effects-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.effects-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--alpha-shadow);
}

.effect-item {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--alpha-shadow);
    border-left: 4px solid var(--primary);
}

.effect-item h3 {
    font-size: var(--text-subtitle);
    margin-bottom: var(--space-xs);
    color: var(--black);
    font-weight: 600;
}

.effect-item p {
    color: var(--neutral);
    line-height: 1.7;
    font-size: var(--text-body);
}

/* 講師紹介 - SP最適化 */
.instructor {
    background: var(--light);
}

.instructor-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
}

.instructor-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 8px 24px var(--alpha-shadow);
}

.instructor-name {
    font-size: var(--text-title);
    margin-bottom: var(--space-xs);
    color: var(--black);
    font-weight: 700;
}

.instructor-title {
    font-size: var(--text-body);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.instructor-profile {
    color: var(--neutral);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    text-align: left;
    font-size: var(--text-body);
}

.instructor-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.feature {
    color: var(--accent);
    font-weight: 600;
    font-size: var(--text-body);
    text-align: left;
}

.instructor-message {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 16px var(--alpha-shadow);
    text-align: left;
}

.instructor-message h4 {
    color: var(--black);
    font-size: var(--text-subtitle);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.instructor-message p {
    color: var(--neutral);
    line-height: 1.7;
    font-style: italic;
    font-size: var(--text-body);
}

/* お客様の声 - SP最適化 */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.testimonial-item {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 16px;
    box-shadow: 0 6px 20px var(--alpha-shadow);
    position: relative;
    border-top: 3px solid var(--primary);
}

.testimonial-item::before {
    content: '"';
    font-size: 2.4rem;
    color: var(--primary);
    position: absolute;
    top: var(--space-xs);
    left: var(--space-sm);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    font-size: var(--text-body);
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent);
    text-align: right;
    font-size: var(--text-body);
}

/* CTAセクション - SP最適化 */
.cta-section {
    background: var(--gradient-main);
    color: var(--black);
    padding: var(--space-xl) 0;
}

.cta-content {
    text-align: center;
    padding: 0 var(--space-sm);
}

.cta-title {
    font-size: var(--text-title);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--black);
    line-height: 1.4;
}

.cta-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.benefit {
    font-size: var(--text-body);
    background: var(--alpha-light);
    color: var(--black);
    padding: var(--space-sm) var(--space-md);
    border-radius: 24px;
    font-weight: 600;
    border: 2px solid var(--alpha-light);
}

.cta-button-wrapper {
    margin-top: var(--space-lg);
}

.cta-button-large {
    background: var(--gradient-button);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-subtitle);
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px var(--alpha-light);
    margin-bottom: var(--space-sm);
    width: 100%;
    max-width: 320px;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--alpha-light);
}

.cta-section .cta-note {
    font-size: var(--text-small);
    color: var(--black);
    margin-top: var(--space-sm);
    opacity: 0.8;
}

/* アクセス - SP最適化 */
.access {
    background: var(--light);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.access-info h3 {
    font-size: var(--text-title);
    margin-bottom: var(--space-sm);
    color: var(--black);
    font-weight: 600;
}

.address {
    font-size: var(--text-body);
    margin-bottom: var(--space-xs);
    color: var(--black);
}

.parking {
    color: var(--neutral);
    margin-bottom: var(--space-md);
    font-size: var(--text-body);
}

.map-link {
    margin-bottom: var(--space-md);
}

.map-button {
    background: var(--gradient-main);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-body);
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--alpha-light);
}

.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--alpha-light);
}

.google-map {
    width: 100%;
    height: 240px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--alpha-shadow);
}

/* フッター - SP最適化 */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-sm);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    height: 24px;
    width: auto;
}

.footer-info p {
    margin-bottom: var(--space-xs);
    font-size: var(--text-body);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-sm);
    border-top: 1px solid #444;
    font-size: var(--text-small);
    color: #ccc;
}

/* PC用のみのスタイル（769px以上） */
@media (min-width: 769px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        justify-items: stretch;
        align-items: center;
    }
    
    .hero-image {
        order: 2;
        display: flex;
        justify-content: center;
    }
    
    .hero-text {
        order: 1;
        text-align: left;
        align-items: flex-start;
    }
    
    .hero-title {
        text-align: left;
    }
    
    .hero-subtitle {
        text-align: left;
    }
    
    .hero-features {
        text-align: left;
    }
    
    .feature-item {
        text-align: left;
    }
    
    .hero-cta {
        text-align: left;
    }
    
    .cta-note {
        text-align: left;
    }
    
    .comparison-table {
        display: block;
        background: var(--white);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 24px var(--alpha-shadow);
    }
    
    .comparison-mobile {
        display: none;
    }
    
    .comparison-header, .comparison-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .comparison-header {
        background: var(--black);
        color: var(--white);
        font-weight: 600;
    }
    
    .comparison-header > div {
        padding: var(--space-md);
        text-align: center;
    }
    
    .comparison-procale {
        background: var(--gradient-main);
        color: var(--black);
    }
    
    .comparison-row {
        border-bottom: 1px solid var(--border);
    }
    
    .comparison-row:last-child {
        border-bottom: none;
    }
    
    .comparison-label {
        background: var(--light);
        font-weight: 600;
        padding: var(--space-md);
        display: flex;
        align-items: center;
    }
    
    .comparison-cell {
        padding: var(--space-md);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .comparison-cell.highlight {
        background: var(--alpha-light);
        font-weight: 600;
        color: var(--accent);
    }
    
    .value-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .effects-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .instructor-content {
        grid-template-columns: 300px 1fr;
        text-align: left;
    }
    
    .instructor-img {
        width: 100%;
        height: 300px;
        border-radius: 16px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .cta-benefits {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta-button-large {
        width: auto;
    }
    
    .access-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-info {
        text-align: right;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
}

/* より小さい画面での調整 */
@media (max-width: 480px) {
    .hero-content {
        padding: 0 var(--space-sm);
        gap: var(--space-md);
    }
    
    .hero-img {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.4rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .cta-button-main {
        width: 100%;
        max-width: 300px;
    }
}

/* 極小画面対応（380px以下） */
@media (max-width: 380px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
}
