/* =========================================
   1. 基本設定 & 共通変数
   ========================================= */
:root {
    --brand-orange: #F54927;
    --brand-orange-hover: #ff8066;
    --light-brown: #F9CB9C;
    --dark-brown: #594C4D;
    --bg-cream: #F9F7F2;
  /*--blue-accent: #3D59F8;  */
}

html { scroll-behavior: smooth; }

body { 
    margin: 0; 
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background: var(--bg-cream); 
    overflow-x: hidden; 
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
    box-sizing: border-box; 
}

/* =========================================
   2. 汎用パーツ（ユーティリティ）
   ========================================= */
.section { padding: 80px 0; }

/* 背景色 */
.bg-Blue { background: var(--blue-accent); }
.bg-dark { background: var(--dark-brown); }
.bg-LightBrown { background: var(--light-brown); }
.bg-Light { background: var(--bg-cream); }

/* テキスト色 */
.white-text { color: var(--bg-cream) !important; }
.TEXT-left { text-align: left !important; }

/* タイトル設定 */
.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
    font-size: 2rem; 
    font-weight: bold; 
    color: var(--dark-brown); 
}

/* 暗い背景の上のタイトルは自動的に白くする */
.bg-dark .section-title,
.bg-Blue .section-title {
    color: var(--bg-cream);
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--brand-orange);
    margin-top: -20px; /* 重なりすぎ防止のため微調整 */
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.3em;
}



/* PCでは改行を隠す */
.sp-only {
    display: none;
}

/* スマホ（768px以下）では改行を表示する */
@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}



.border-top { border-top: 1px solid #ddd; }



/* =========================================
   3. ヘッダー & ハンバーガーメニュー
   ========================================= */
/* --- ヘッダー・ナビゲーション（崩れ防止版） --- */
header { 
    background: var(--brand-orange); 
    color: white; 
    padding: 10px 0; /* 15pxから10pxに微調整 */
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1100px; /* ロゴが長くなった分、幅を少し広げて余裕を確保 */
    margin: 0 auto;
    padding: 0 20px;
}

/* ロゴエリアの調整 */
.logo { 
    flex-shrink: 0; /* ロゴがメニューに押されて潰れないように固定 */
}

/* メニュー全体の調整 */
.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
    margin: 0; 
    padding: 0; 
}

/* 各メニューの間隔（PC表示で重ならないよう調整） */
.nav-links li { 
    margin-left: 12px; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.85rem; 
    white-space: nowrap; /* メニュー内で絶対に改行させない */
    transition: 0.3s; 
}

.nav-links a:hover { color: #ffd966; }

.nav-btn { 
    background: #FFFFFF; 
    color: var(--brand-orange) !important; 
    padding: 6px 12px; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: 0.3s;
}

.nav-btn:hover { 
    background: var(--brand-orange-hover) !important; 
    color: #FFFFFF !important; 
    transform: translateY(-2px); 
}

/* スマホメニュー用ボタン */
.menu-toggle { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px; 
    flex-shrink: 0;
}

.bar { width: 25px; height: 3px; background: white; border-radius: 2px; transition: 0.3s; }

/* レスポンシブ：1024px以下でハンバーガーメニューに切り替え */
/* 768pxだと今のスクール名ではメニューと衝突するため、早めに切り替えます */
@media (max-width: 1024px) {
    header { padding: 8px 0; }
    
    .menu-toggle { display: flex; z-index: 1001; }
    
    .nav-links {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 70%; 
        height: 100vh;
        background: var(--brand-orange); 
        flex-direction: column; 
        justify-content: center;
        transition: 0.4s ease; 
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links li { 
        margin: 15px 0; 
        margin-left: 0; 
    }
    
    .nav-links a { font-size: 1.1rem; }
    
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* =========================================
   4. ヒーローエリア
   ========================================= */
.hero {
    position: relative;
    height: 500px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #313131;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    animation: crossfade 16s infinite; 
}

.slide:nth-child(1) { animation-name: first-slide-fade; opacity: 1; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }

@keyframes crossfade {
    0%   { opacity: 0; z-index: 1; }
    15%  { opacity: 1; z-index: 2; }
    30%  { opacity: 1; z-index: 2; }
    45%  { opacity: 0; z-index: 1; }
    100% { opacity: 0; z-index: 0; }
}

@keyframes first-slide-fade {
    0%, 25%  { opacity: 1; z-index: 2; }
    40%      { opacity: 0; z-index: 1; }
    85%      { opacity: 1; z-index: 1; } 
    100%     { opacity: 1; z-index: 2; }
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.hero-content { position: relative; z-index: 10; padding: 0 20px; }
/* --- ヒーローエリアの文字（サイズ維持＋視認性アップ） --- */
.hero-content h1 {
    /* 元々のサイズ指定を維持 */
    font-size: clamp(1.8rem, 5vw, 3rem); 
    margin: 0;
    /* 視認性を高める設定 */
    text-shadow: 0 4px 15px rgba(0,0,0,0.8); /* 影を少し広げて濃く */
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* ついでに、その下の「アレンジで差をつける...」の文字も少し太くして読みやすくします */
.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    margin-top: 15px;
}

@media (max-width: 768px) {
    .hero { height: 400px; }
}

/* =========================================
   5. コンテンツパーツ（カード・グリッド）
   ========================================= */
.grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* カードの「形」共通設定 */
.feature-card, .card { 
    padding: 30px; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

/* --- 茶色の上線設定（PC・スマホ共通） --- */
#features .grid > div:nth-child(2),
#lessons .grid > div:nth-child(2) {
    border-top: 5px solid var(--dark-brown) !important;
    position: relative;
    z-index: 1;
}

/* PC時のみの微調整 */
@media (min-width: 901px) {
    #features .grid > div:nth-child(2),
    #lessons .grid > div:nth-child(2) {
        margin-top: -5px;
    }
}

/* 色バリエーション */
.is-LightBrown, .bg-LightBrown { background: var(--light-brown); }
.is-LightOrange, .bg-LightOrange { background: #FAC8A5; }
.is-White { background: #FFFFFF; }



/* 左に詰めたいリスト専用のクラス */
.list-compact {
    padding-left: 1.2em !important; /* 標準の40pxから1.2文字分まで減らす */
    margin-left: 0 !important;
    list-style-position: outside;   /* 「・」を文字の外に出して揃える */
}

/* 念のため、1行ごとの間隔も調整したい場合（任意） */
.list-compact li {
    margin-bottom: 4px;
}



/* 三段組カードをリッチにする追加スタイル */
.feature-card-rich {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card-rich:hover { transform: translateY(-10px); }

/* 真ん中のカードだけ少し目立たせる（リッチ版） */
.feature-card-rich.active {
    border-top: 5px solid var(--brand-orange);
}

.feature-icon-wrapper {
    width: 80px; height: 80px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon { font-size: 2.5rem; }

.feature-card-rich h3 {
    color: var(--dark-brown);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-card-rich p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
}



/* プロフィール */
.profile-card { 
    background: #FFFFFF; 
    padding: 40px; 
    border-radius: 15px; 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.profileContent { text-align: left; }
.profile-icon { font-size: 60px; margin-bottom: 20px; display: block; }
.profile-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--brand-orange); }

/* 料金システム */
.price-table { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.price-item { 
    background: white; padding: 30px; border-radius: 10px; width: 280px; 
    text-align: center; border: 1px solid #ddd; position: relative; box-sizing: border-box;
}
.price-item.popular { border: 3px solid var(--brand-orange); transform: scale(1.05); }
.price-item ul { 
    text-align: left; 
    display: inline-block; 
    padding-left: 1.2em; 
    margin: 20px 0; 
}
.price { font-size: 2rem; font-weight: bold; color: var(--brand-orange); margin: 10px 0; }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--brand-orange); color: #ffffff; padding: 4px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

/* 価格横の(税込)をスマートに見せる */
.tax-label {
    font-size: 0.9rem;       /* 数字より一回り小さく */
    font-weight: normal;     /* 数字より細くして強弱をつける */
    color: var(--dark-brown); /* 少し落ち着いた色にする */
    margin-left: 5px;        /* 数字との間に少し隙間を作る */
    vertical-align: baseline; /* 数字の底辺に合わせる */
}

@media (max-width: 768px) {
    .tax-label {
        font-size: 0.8rem;
    }
}

/* スマホで文字が詰まって見える場合の微調整 */
@media (max-width: 768px) {
    .tax-vertical {
        font-size: 0.55rem;
    }
}

@media (max-width: 768px) {
    .price-item { width: 100%; max-width: 320px; }
    .price-item.popular { transform: scale(1); margin-top: 10px; }
}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #ffffff; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.faq-question { font-size: 1.1rem; color: var(--brand-orange); margin-bottom: 10px; font-weight: bold; }
.faq-answer { line-height: 1.7; color: #333; }

/* =========================================
   6. ブログ・フォーム・ボタン
   ========================================= */
.blog-card { background: #FFFFFF; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.blog-img { height: 180px; background-size: cover; background-position: center; }
.blog-content { padding: 20px; }
.blog-category { background: var(--brand-orange); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 3px; margin-bottom: 10px; display: inline-block; }

/* ボタン */
.btn { 
    display: inline-block; 
    background: var(--brand-orange); 
    color: #FFFFFF; 
    padding: 15px 30px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    border: none;
    cursor: pointer;
    transition: 0.3s; 
}
.btn:hover { background: var(--brand-orange-hover); transform: translateY(-2px); }

/* フォーム */
.contact-form { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { 
    padding: 15px; border: 1px solid #ccc; border-radius: 5px; width: 100%; box-sizing: border-box; font-size: 1rem;
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { 
    outline: 2px solid #007bff !important; 
    border-color: #007bff !important;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4) !important;
}


	/* スマホ表示の窮屈さを解消するための追記 */
@media (max-width: 600px) {
    .success-box {
        width: 92% !important;
        padding: 30px 15px !important; /* 左右の余白を削って文字幅を確保 */
    }
    .success-box .section-title {
        font-size: 1.5rem !important; /* タイトルを少し小さく */
    }
    .success-box p {
        font-size: 0.9rem !important; /* 本文を少し小さく */
    }
    /* 「今後の流れ」のグレーの箱の余白を調整 */
    .success-box div[style*="background: var(--bg-cream)"] {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
}


/* フッター */
footer { text-align: center; padding: 60px 20px; background: var(--dark-brown); color: var(--bg-cream); font-size: 0.8rem; }

