/*
Theme Name: AI活用推進機構 Theme
Description: AI活用推進機構用のカスタムテーマ
Author: AI Assistant
Version: 1.0
*/

/* 基本のリセットと全体のスタイル */
:root {
    --primary-color: #0d47a1;
    /* 信頼感のある濃い青 */
    --secondary-color: #1976d2;
    --accent-color: #ff9800;
    /* 行動を促すオレンジ */
    --text-color: #333333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* 共通コンポーネント */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* 軽い影をつける */
}

/* ヘッダー内部のレイアウト（ロゴとメニューを左右に分ける） */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    /* メニューが増えたためヘッダーだけ幅を広げる */
    width: 96%;
}

/* ロゴ周辺のスタイル */
.site-branding {
    display: flex;
    align-items: center;
}

/* カスタムロゴ画像（ユーザーがアップロードした画像） */
.custom-logo {
    max-width: 280px;
    height: auto;
    display: block;
}

/* カスタムロゴが設定されていない場合のテキストロゴ */
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-title a:hover {
    opacity: 0.8;
}

.site-description {
    font-size: 0.8rem;
    color: #666;
    margin: 4px 0 0 0;
}

/* メニューのスタイル（トップレベルのulのみに横並び適用） */
.main-navigation>ul,
.main-navigation div>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    /* 余白をさらに縮小してはみ出しを防止 */
    /* メニュー項目間の余白を少し縮小 */
    align-items: center;
    flex-wrap: nowrap;
    /* 強制的に1行に収める */
}

/* 親メニューのリスト項目（相対配置の基準にする） */
.main-navigation ul li {
    position: relative;
}

/* トップレベルのliのみ、幅を縮めさせない設定 */
.main-navigation>ul>li,
.main-navigation div>ul>li {
    flex: 0 0 auto;
}

/* -------------------------------------
 * ヘッダーメニュー（通常時・表示設定）
 * ------------------------------------- */

.main-navigation ul li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    /* はみ出し防止のためフォントサイズを微調整 */
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 8px 8px;
    /* パディングを少し縮小 */
    white-space: nowrap;
    /* トップレベルのメニューが縦並びになるのを防ぐ */
}

.main-navigation ul li a:hover {
    color: var(--accent-color);
    /* アクセントカラー（オレンジ）にホバー */
}

/* -------------------------------------
 * ログイン・新規登録ボタン風の装飾
 * ------------------------------------- */

/* ログイン（旧サインイン） */
.main-navigation ul li a[href*="wp-login.php"] {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 6px 16px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.main-navigation ul li a[href*="wp-login.php"]:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 新規登録（旧サインアップ） */
.main-navigation ul li a[href*="action=register"] {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    /* ← 枠線を明示的に削除 */
    border-radius: 50px;
    padding: 8px 20px;
    margin-left: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-navigation ul li a[href*="action=register"]:hover {
    background-color: #f57c00;
    /* 少し暗めのレイヤー */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------
 * メニューアイコン（絵文字）の装飾
 * ------------------------------------- */

.main-navigation ul li a::before {
    margin-right: 6px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* 各メニューへの絵文字割り当て（URL部分一致） */
.main-navigation ul li a[href="/"]::before,
.main-navigation ul li a[href="http://localhost:8000/"]::before,
.main-navigation ul li a[href="http://192.168.100.16:8000/"]::before {
    content: "🏠";
}

.main-navigation ul li a[href*="news"]::before {
    content: "📢";
}

.main-navigation ul li a[href*="events"]::before {
    content: "🎓";
}

.main-navigation ul li a[href*="service"]::before {
    content: "💼";
}

.main-navigation ul li a[href*="implementation"]::before {
    content: "🚀";
}

.main-navigation ul li a[href*="recruitment"]::before {
    content: "🤝";
}

.main-navigation ul li a[href*="marketing"]::before {
    content: "📈";
}

.main-navigation ul li a[href*="membership"]::before {
    content: "🤝";
}

.main-navigation ul li a[href*="about"]::before {
    content: "🏢";
}

.main-navigation ul li a[href*="privacy"]::before {
    content: "🛡️";
}

.main-navigation ul li a[href*="legal"]::before {
    content: "⚖️";
}

.main-navigation ul li a[href*="case-stud"]::before {
    content: "💡";
}

.main-navigation ul li a[href*="contact"]::before {
    content: "📧";
}

.main-navigation ul li a[href*="creative-lab"]::before {
    content: "🎨";
}

.main-navigation ul li a[href*="3d%e3%83%a2%e3%83%87%e3%83"]::before,
.main-navigation ul li a[href*="3dモデリング"]::before,
.main-navigation ul li a[href*="creative-category/3d"]::before {
    content: "🖨️";
}

.main-navigation ul li a[href*="ai%e6%98%a0%e5%83%8f"]::before,
.main-navigation ul li a[href*="ai映像"]::before,
.main-navigation ul li a[href*="creative-category/ai"]::before {
    content: "🎬";
}

/* ログインと新規登録のアイコン */
/* href*="wp-login.php" には新規登録のURLも含まれかねないので、詳細度や順序でカバーするか、以下の通り個別指定を後にする */
.main-navigation ul li a[href*="wp-login.php"]::before {
    content: "🚪";
}

.main-navigation ul li a[href*="action=register"]::before {
    content: "📝";
}

/* ドロップダウンがある項目の矢印インジケーター */
.main-navigation ul li.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.7em;
    vertical-align: middle;
    color: inherit;
}

/* -------------------------------------
 * サブメニュー（ドロップダウン）の設定
 * ------------------------------------- */
.main-navigation ul li ul.sub-menu {
    display: none;
    /* 初期状態では隠す */
    position: absolute;
    /* 親メニューを基準にして配置 */
    top: 100%;
    /* 親メニューのすぐ下に表示 */
    left: 0;
    min-width: 220px;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 0;
    margin: 0;
    flex-direction: column;
    /* 縦並び */
}

/* クリック/タップで展開（PC・スマホ共通） */
.main-navigation ul li.sub-menu-open > ul.sub-menu {
    display: flex;
}

/* サブメニュー内のリスト項目の設定 */
.main-navigation ul li ul.sub-menu li {
    width: 100%;
}

/* サブメニュー内のリンクの設定 */
.main-navigation ul li ul.sub-menu li a {
    padding: 12px 15px;
    font-weight: normal;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
    /* 長いテキストは折り返し */
}

/* 最後の項目の下線を消す */
.main-navigation ul li ul.sub-menu li:last-child a {
    border-bottom: none;
}

/* サブメニューのリンクにマウスを乗せた時 */
.main-navigation ul li ul.sub-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* サブメニュー内のアイテムは、個別の非表示クラス（hide-menu-item等）があっても強制的に表示する */
.main-navigation ul li ul.sub-menu .hide-menu-item {
    display: block !important;
}

/* -------------------------------------
 * WordPress管理画面（表示オプション）用の隠しクラス
 * ------------------------------------- */

/* メニューから項目を隠す汎用クラス */
.hide-menu-item {
    display: none !important;
}

/* -------------------------------------
 * レスポンシブ対応（ハンバーガーメニュー含む）
 * ------------------------------------- */

/* ハンバーガーボタン（通常時は非表示） */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* メニュー展開時のバツ印アニメーション */
.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .header-container {
        flex-direction: row;
        /* ロゴとボタンを横並びに */
        flex-wrap: wrap;
        /* ナビゲーション用に折り返し */
        padding: 15px 15px;
    }

    .site-branding {
        flex: 1;
        /* ロゴ部分を広げる */
    }

    .menu-toggle {
        display: block;
        /* スマホやタブレットで表示 */
    }

    /* 初期状態は非表示（JSで .toggled が付くと表示） */
    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 15px;
        background-color: #fff;
        border-top: 1px solid #eee;
    }

    /* 展開時 */
    .main-navigation.toggled {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }

    .main-navigation>ul,
    .main-navigation div>ul {
        display: flex;
        flex-direction: column;
        /* 縦並びにする */
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }

    .main-navigation ul li a {
        padding: 15px 20px;
        font-size: 1.1rem;
        /* スマホでタップしやすい大きさに */
    }

    /* ログイン等ボタンの余白リセット表示 */
    .main-navigation ul li a[href*="wp-login.php"],
    .main-navigation ul li a[href*="action=register"],
    .main-navigation ul li a.btn-signin,
    .main-navigation ul li a.btn-signup {
        margin: 10px 20px;
        text-align: center;
        display: block;
    }

    /* サブメニューの初期表示（縦展開に合わせる） */
    .main-navigation ul li ul.sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--light-bg);
        border-left: 3px solid var(--accent-color);
        padding-left: 0;
    }

    .main-navigation ul li.sub-menu-open > ul.sub-menu {
        display: flex;
        /* タップ/クリックで開く */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. ヒーローエリア */
.hero {
    position: relative;
    background: url('/wp-content/themes/aeo-theme/assets/images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    /* 白文字を指定 */
    padding: 100px 20px;
    height: 384px;
    max-height: 384px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
}

/* ヒーロー画像のオーバーレイ（半透明の濃いブルー） */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.75);
    /* --primary-color をベースにした半透明黒/青 */
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pain-points {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.pain-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.pain-card {
    flex: 1;
    background: var(--white);
    padding: 0;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 4px solid var(--accent-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pain-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.pain-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.pain-card h3 {
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.75rem;
    color: var(--text-color);
}

.pain-card p {
    margin: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
}

.pain-icon {
    display: none;
}

/* 3. 選ばれる理由 */
.reasons {
    padding: 5rem 0;
}

.reason-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.reason-item:nth-child(even) {
    flex-direction: row-reverse;
}

.reason-content {
    flex: 1;
}

.reason-image {
    flex: 1;
    background: var(--light-bg);
    height: 250px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.reason-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 4. 事業概要 */
.services {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 100%;
    height: 200px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    background-color: var(--light-bg);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3,
.service-card h4 {
    color: var(--primary-color);
    margin: 1.5rem 1.5rem 0.75rem;
    font-size: 1.2rem;
}

.service-card p {
    margin: 0 1.5rem 0.5rem;
    font-size: 0.95rem;
}

.service-link {
    display: inline-block;
    margin: 1rem 1.5rem 2rem;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 5. 会員制度の概要 */
.membership-summary {
    padding: 5rem 0;
}

.membership-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.membership-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.membership-table th,
.membership-table td {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.membership-table th {
    background-color: var(--light-bg);
    font-weight: bold;
}

.feature-check {
    color: #4caf50;
    font-weight: bold;
}

.feature-cross {
    color: #e0e0e0;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.plan-price-annual {
    font-size: 0.8rem;
    font-weight: normal;
    color: #888;
}

.plan-discount {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    margin-top: 0.3rem;
}

.table-footer {
    text-align: center;
}

/* 6. 直近のセミナー */
.recent-seminars {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.seminar-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.seminar-date {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.seminar-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.seminar-meta {
    font-size: 0.9rem;
    color: #666;
}

/* 7. 導入事例 */
.cases {
    padding: 5rem 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.case-img {
    height: 180px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.case-content {
    padding: 1.5rem;
}

.case-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--light-bg);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #666;
}

.case-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.case-detail {
    font-size: 0.9rem;
    color: #666;
}

/* 8. 理事紹介（簡易） */
.board-summary {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.board-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.member-img {
    overflow: hidden;
    width: 120px;
    height: 120px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.member-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.member-msg {
    font-size: 0.9rem;
    color: #555;
    text-align: left;
}

/* 9. FAQ（抜粋） */
.faq-summary {
    padding: 5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-q {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.faq-q::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.faq-a {
    padding-left: 2rem;
    position: relative;
    color: #555;
}

.faq-a::before {
    content: 'A.';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.faq-footer {
    text-align: center;
    margin-top: 2rem;
}

/* 10. CTA帯 */
.cta-band {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-band h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-band p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-line {
    background-color: #06C755;
    color: white;
    font-weight: bold;
}

.btn-line:hover {
    background-color: #05a044;
    color: white;
}

.btn-facebook {
    background-color: #1877F2;
    color: white;
    font-weight: bold;
}

.btn-facebook:hover {
    background-color: #0f5fc7;
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* モバイルヒーロー：スライダー非表示・静的JPEG背景に切り替え（LCP改善） */
    .hero-mobile {
        background-image: url('/wp-content/uploads/2026/03/hero-slide-1.jpg');
        background-position: center center;
        background-size: cover;
        height: 460px;
        max-height: 460px;
    }
    .hero-mobile .hero-slider-bg {
        display: none;
    }
    .hero-mobile .hero-overlay {
        display: none;
    }
    .hero-mobile::before {
        background-color: rgba(8, 40, 110, 0.72);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .pain-cards {
        flex-direction: column;
    }

    .reason-item,
    .reason-item:nth-child(even) {
        flex-direction: column;
    }

    .seminar-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-btns,
    .cta-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* -------------------------------------
 * お知らせ（News）カード型レイアウト
 * ------------------------------------- */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.news-card-thumb {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

.placeholder-icon {
    font-size: 3rem;
    color: #ced4da;
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    font-size: 1rem;
    /* 曜日・時間を見やすくするため約2pt拡大（元0.85rem） */
    color: var(--primary-color);
    /* 日時情報を目立たせるため色を追加 */
    font-weight: 600;
    /* 色付きで少し細く見えるのを防ぐため軽く太字に */
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-card-cat {
    background: var(--light-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.news-card-title {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.news-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* -------------------------------------
 * イベント（セミナー・研修）専用バッジ
 * ------------------------------------- */
.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-seminar {
    background-color: var(--primary-color);
    /* メインカラー（青系など） */
}

.badge-training {
    background-color: var(--accent-color);
    /* アクセントカラー（オレンジ系など） */
}
/* 理事紹介ページ レイアウト */
.board-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  align-items: flex-start;
}
.board-card.representative {
  border-left: 5px solid #e8930c;
}
.board-card.director {
  border-left: 5px solid #1a3a7a;
}
.board-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
}
.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board-info {
  flex: 1;
}
.board-role-badge {
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}
.board-role-badge.representative { background: #e8930c; }
.board-role-badge.director { background: #1a3a7a; }
.board-name {
  font-size: 1.5rem;
  color: #1a3a7a;
  margin: 0.5rem 0;
}
.board-name .age {
  font-size: 0.9rem;
  color: #888;
  margin-left: 0.5rem;
}
.board-assignment {
  font-size: 1.05rem;
  font-weight: bold;
  color: #1a3a7a;
  margin: 0.8rem 0 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid #e8930c;
  display: inline-block;
}
.board-desc {
  line-height: 1.8;
  color: #555;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .board-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .board-photo {
    width: 150px;
    height: 150px;
  }
}


/* カスタムCSSは WordPress カスタマイザー > 追加CSS で管理しています */

/* ============================================================
   AIワンポイントヒント セクション（トップページ）
   ============================================================ */
.fp-hints-section {
  padding: 3rem 0;
  background: #fff;
}
.section-subtitle {
  text-align: center;
  color: #666;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.fp-hints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}
.fp-hint-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e8f0fe;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fp-hint-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.fp-hint-image {
  position: relative;
  aspect-ratio: 20 / 13;
  overflow: hidden;
}
.fp-hint-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.fp-hint-step {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  color: #1a73e8;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.fp-hint-lock-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #06c755;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.fp-hint-body { padding: 1.1rem 1.3rem 1.4rem; }
.fp-hint-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}
.fp-hint-title {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.fp-hint-read {
  color: #1a73e8;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
}
.fp-hint-read:hover { text-decoration: underline; }
.fp-hint-line-only {
  font-size: 0.9rem;
  color: #06c755;
  font-weight: bold;
}
.fp-hints-empty {
  text-align: center;
  color: #888;
  padding: 0.5rem 0;
  margin-bottom: 0;
}
.fp-hints-empty p {
  margin: 0.3rem 0;
}
@media (max-width: 640px) {
  .fp-hints-grid { grid-template-columns: 1fr; }
}
