/*
Theme Name: BEACL School Guide
Theme URI: https://beacl.com/
Author: フィリピン留学BEACL
Description: フィリピン語学学校紹介サイト用テーマ。各学校のキーカラーをカスタムフィールドで個別設定可能。
Version: 1.0
License: Private
Text Domain: beacl-theme
*/

/* ============================================================
   CSS カスタムプロパティ（スクールカラー）
   学校固定ページの wp_head で --sc が上書きされます
   ============================================================ */
:root {
    --sc: #FFDD00;   /* デフォルト = BEACLイエロー */
}

/* ============================================================
   スクールカラー ユーティリティクラス
   学校ページのコンテンツ編集時に使用
   ============================================================ */
.sc-bg              { background-color: var(--sc) !important; }
.sc-text            { color: var(--sc) !important; }
.sc-border          { border-color: var(--sc) !important; }
.sc-shadow          { box-shadow: 8px 8px 0px 0px var(--sc) !important; }
.sc-shadow-lg       { box-shadow: 12px 12px 0px 0px var(--sc) !important; }
.sc-hover-text:hover { color: var(--sc) !important; }

/* ============================================================
   グローバルリセット & ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; color: #000; margin: 0; padding: 0; }
body.school-page { background-color: var(--sc); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ============================================================
   スクロールバー非表示
   ============================================================ */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   ナビゲーション
   ============================================================ */
.nav-school-name  { color: var(--sc); }
.nav-cta-btn {
    background-color: var(--sc);
    color: #000;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-cta-btn:hover { transform: scale(1.05); }
@media (min-width: 768px) { .nav-cta-btn { font-size: 0.875rem; padding: 8px 24px; } }

.nav-anchor {
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-anchor:hover { color: var(--sc); }
@media (min-width: 768px) { .nav-anchor { font-size: 0.875rem; } }

@media (max-width: 767px) {
    .nav-mask {
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
}

.white-logo { filter: brightness(0) invert(1); }

/* ============================================================
   FAQ アコーディオン
   ============================================================ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-content { max-height: 1000px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ============================================================
   アニメーション
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; opacity: 0; }

/* ============================================================
   コースカード
   ============================================================ */
.course-card { transition: all 0.3s ease; }
.course-card:hover { transform: translateY(-5px); border-color: var(--sc) !important; }

/* ============================================================
   フッターリンク
   ============================================================ */
.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--sc); text-decoration: underline; }

/* ============================================================
   トップページ（ダミー）
   ============================================================ */
.top-hero {
    background: #000;
    color: #fff;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 60px;
    position: relative;
    overflow: hidden;
}
.top-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(255,221,0,0.07), transparent 70%);
    pointer-events: none;
}
.top-hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #FFDD00;
    position: relative;
}
.top-hero p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 700;
    opacity: 0.8;
    max-width: 580px;
    line-height: 1.7;
    margin: 0 0 48px;
    position: relative;
}

/* 学校カードグリッド */
.schools-section {
    padding: 0 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}
.schools-section h2 {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    margin: 0 0 40px;
    color: #000;
    text-align: center;
    padding-top: 60px;
}
.school-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}
.school-card {
    border: 4px solid #000;
    border-radius: 2rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 8px 8px 0 0 rgba(0,0,0,1);
    transition: transform 0.3s;
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
}
.school-card:hover { transform: translateY(-8px); }
.school-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid #000;
}
.school-card-no-img {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 4px solid #000;
}
.school-card-body { padding: 24px 28px; flex: 1; }
.school-color-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    border: 2px solid #000;
    margin-bottom: 12px;
}
.school-card-body h3 {
    font-size: 1.2rem;
    font-weight: 900;
    font-style: italic;
    margin: 0 0 8px;
}
.school-card-body p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.school-card-footer {
    padding: 14px 28px;
    border-top: 3px solid #000;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
}

/* ブログ記事プレビュー（トップ）*/
.top-blog-section {
    background: #111;
    padding: 60px 24px 80px;
}
.top-blog-section h2 {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    color: #FFDD00;
    text-align: center;
    margin: 0 0 40px;
}
.top-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.top-blog-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 1.2rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.top-blog-card:hover { border-color: #FFDD00; transform: translateY(-4px); }
.top-blog-card img { width: 100%; height: 160px; object-fit: cover; }
.top-blog-card-body { padding: 16px 20px; flex: 1; }
.top-blog-card-body h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.top-blog-card-body .date { font-size: 0.7rem; opacity: 0.5; font-weight: 700; }

/* ============================================================
   ブログ 記事一覧
   ============================================================ */
.blog-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    background: #fff;
    min-height: 100vh;
}
.blog-wrap h1 {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    margin: 0 0 48px;
    color: #000;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}
.blog-card {
    background: #fff;
    border: 4px solid #000;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 8px 8px 0 0 rgba(0,0,0,1);
    transition: transform 0.3s;
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 4px solid #000; }
.blog-card-no-thumb { width:100%; height:200px; background:#f0f0f0; border-bottom:4px solid #000; display:flex; align-items:center; justify-content:center; font-size:3rem; }
.blog-card-body { padding: 24px; flex: 1; background: #FFDD00; }
.blog-card-body .cat-badge { font-size:0.65rem; font-weight:900; text-transform:uppercase; letter-spacing:0.1em; background:#000; color:#FFDD00; display:inline-block; padding:3px 12px; border-radius:999px; margin-bottom:10px; }
.blog-card-body h2 { font-size:1rem; font-weight:900; margin:0 0 10px; line-height:1.4; }
.blog-card-body .post-date { font-size:0.75rem; opacity:0.6; font-weight:700; }

/* ============================================================
   ブログ 記事個別
   ============================================================ */
.single-wrap { max-width:860px; margin:0 auto; padding:140px 24px 80px; background:#fff; min-height:100vh; }
.single-cat { font-size:0.75rem; font-weight:900; text-transform:uppercase; background:#FFDD00; color:#000; border:2px solid #000; padding:4px 16px; border-radius:999px; display:inline-block; margin-bottom:16px; }
.single-wrap h1 { font-size:1.8rem; font-weight:900; line-height:1.35; margin:0 0 12px; color:#000; }
.single-meta { font-size:0.8rem; color:#666; font-weight:700; margin-bottom:32px; }
.single-thumb { width:100%; border-radius:1.5rem; border:4px solid #000; margin-bottom:40px; object-fit:cover; }
.article-body { font-size:1rem; line-height:1.9; color:#222; }
.article-body h2 { font-size:1.4rem; font-weight:900; margin:40px 0 16px; padding-left:16px; border-left:5px solid #FFDD00; }
.article-body h3 { font-size:1.15rem; font-weight:900; margin:28px 0 10px; }
.article-body p { margin-bottom:20px; }
.article-body img { border-radius:1rem; border:3px solid #000; margin:20px 0; }
.article-body a { color:#000; font-weight:700; text-decoration:underline; text-decoration-color:#FFDD00; text-decoration-thickness:3px; }
.article-body ul, .article-body ol { padding-left:1.5em; margin-bottom:20px; }
.article-body blockquote { border-left:4px solid #FFDD00; padding-left:20px; margin:20px 0; font-style:italic; color:#555; }

.article-line-cta { margin-top:60px; padding:40px; background:#FFDD00; border:4px solid #000; border-radius:2rem; text-align:center; box-shadow:8px 8px 0 0 #000; }
.article-line-cta p { font-size:1.2rem; font-weight:900; margin-bottom:20px; font-style:italic; }
.article-line-cta a { display:inline-flex; align-items:center; gap:12px; background:#000; color:#FFDD00; padding:16px 36px; border-radius:1rem; font-weight:900; font-size:1rem; text-decoration:none; }

.post-nav { margin-top:48px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.post-nav a { flex:1; min-width:200px; padding:16px 20px; border:3px solid #000; border-radius:1rem; font-weight:900; text-decoration:none; color:#000; background:#fff; transition:background 0.2s; font-size:0.9rem; }
.post-nav a:hover { background:#FFDD00; }
.post-nav .nav-next { text-align:right; }
.back-to-list { display:inline-block; margin-top:40px; background:#FFDD00; color:#000; border:3px solid #000; padding:14px 36px; border-radius:999px; font-weight:900; text-decoration:none; font-size:0.95rem; }

/* ページネーション */
.pagination { margin-top:60px; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.pagination a, .pagination span { padding:10px 20px; border:3px solid #000; border-radius:999px; font-weight:900; font-size:0.9rem; text-decoration:none; color:#000; background:#fff; transition:background 0.2s; }
.pagination .current, .pagination a:hover { background:#FFDD00; }

/* ============================================================
   汎用固定ページ
   ============================================================ */
.page-wrap { max-width:860px; margin:0 auto; padding:140px 24px 80px; background:#fff; min-height:100vh; }
.page-wrap h1 { font-size:2rem; font-weight:900; margin:0 0 32px; padding-bottom:16px; border-bottom:4px solid #000; }
.page-content { font-size:1rem; line-height:1.9; color:#222; }
.page-content h2 { font-size:1.4rem; font-weight:900; margin:40px 0 16px; padding-left:16px; border-left:5px solid #FFDD00; }
.page-content p { margin-bottom:20px; }
.page-content a { color:#000; font-weight:700; text-decoration:underline; text-decoration-color:#FFDD00; }
