/* ============================================
   JAWHM TOP Page Modern CSS (PC)
   Author: JAWHM Dev Team
   Version: 1.0.0
   Last Updated: 2026-02-12
   ============================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --jawhm-blue: #0d3387;
    --jawhm-blue-light: #1a4db5;
    --jawhm-blue-pale: #f0f4ff;
    --jawhm-navy: #000033;
    --jawhm-orange: #ff8700;
    --jawhm-orange-hover: #e67a00;
    --jawhm-green: #28a745;
    --jawhm-red: #dc3545;
    --jawhm-gold: #ffcc00;
    --accent-primary: #0d3387; /* ADDED FIX FOR HOVER EFFECTS */
    --accent-secondary: #ff8700; /* ADDED FIX FOR SECONDARY COLORS */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888aa;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --bg-section: #f5f7fb;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(13, 51, 135, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ============================================
   GLOBAL OVERRIDES for TOP page
   ============================================ */
body.jawhm-modern-top {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override ALL legacy containers */
body.jawhm-modern-top #contentsbox {
    background: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
}

body.jawhm-modern-top #contentsbox-top,
body.jawhm-modern-top #contentsbox-top-left,
body.jawhm-modern-top #contentsbox-top-right {
    display: none !important;
}

/* Hide ALL legacy sidebars */
body.jawhm-modern-top #contents>.menubar,
body.jawhm-modern-top #contents>div[id="menubar"],
body.jawhm-modern-top #contents>div[class="menubar"],
body.jawhm-modern-top .menubar,
body.jawhm-modern-top #global-nav {
    display: none !important;
    width: 0 !important;
    float: none !important;
}

body.jawhm-modern-top #contents {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: visible !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

body.jawhm-modern-top #maincontent {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

body.jawhm-modern-top #top-main {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* ============================================
   HEADER / BANNER OVERRIDE
   ============================================ */
body.jawhm-modern-top #header {
    position: relative;
    z-index: 100;
    background: var(--jawhm-navy) !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
}

body.jawhm-modern-top #header #header_left {
    float: none !important;
    width: 100% !important;
    padding: 12px 24px;
    box-sizing: border-box;
    max-width: var(--max-width);
    margin: 0 auto;
}

body.jawhm-modern-top #header #logotext {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 4px 0;
    font-weight: normal;
}

body.jawhm-modern-top #header #topimg img {
    max-width: 480px;
    height: auto;
}

/* Hide legacy member button and utility-nav (replaced by jm-utility-bar) */
body.jawhm-modern-top #header > h2,
body.jawhm-modern-top #header .btnMemberTop,
body.jawhm-modern-top #header #utility-nav {
    display: none !important;
}

body.jawhm-modern-top #header #top-mainimg {
    max-width: 100%;
    height: auto;
}

/* ============================================
   GLOBAL MENU - MODERN STYLING
   ============================================ */
body.jawhm-modern-top #global-menu {
    /* Override headhootg-nav.css absolute positioning to flow below logo */
    position: static !important;
    width: 100% !important;
    background: var(--jawhm-navy) !important;
    padding: 0 !important;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    height: auto !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.jawhm-modern-top #global-menu.jm-sticky-menu-active {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    animation: jm-slidedown 0.3s ease-out forwards;
}

@keyframes jm-slidedown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

body.jawhm-modern-top #global-menu-list {
    display: flex !important;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: var(--max-width);
    height: auto !important;
}

body.jawhm-modern-top #global-menu-list li {
    float: none !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

body.jawhm-modern-top #global-menu-list li a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500;
    padding: 0 16px !important;
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    width: auto !important;
    height: 52px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
}

body.jawhm-modern-top #global-menu-list li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom-color: var(--jawhm-orange);
}

/* ============================================
   UTILITY BAR (Language + Login)
   ============================================ */
.jm-utility-bar {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-light);
    padding: 6px 0;
}

.jm-utility-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 16px;
}

.jm-lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.jm-lang-switch a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    padding: 6px 10px;
    transition: var(--transition);
}

.jm-lang-switch a.lang-active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.jm-lang-switch a:hover {
    color: var(--jawhm-blue);
}

.jm-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--jawhm-orange);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.jm-login-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ============================================
   FOOTER - ENSURE LARGE FOOTER SHOWS
   ============================================ */
body.jawhm-modern-top #footer {
    clear: both;
    position: relative;
    z-index: 1;
}

body.jawhm-modern-top #footer-box {
    background: var(--jawhm-navy);
    color: #ccc;
    padding: 32px 24px;
}

body.jawhm-modern-top #footer-box table {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

body.jawhm-modern-top #footer-box a,
body.jawhm-modern-top #footer-box .footer-link {
    color: #b0bec5 !important;
    transition: var(--transition);
}

body.jawhm-modern-top #footer-box a:hover,
body.jawhm-modern-top #footer-box .footer-link:hover {
    color: #fff !important;
}

body.jawhm-modern-top #footer-box td {
    color: #b0bec5;
}

body.jawhm-modern-top #footer-box b,
body.jawhm-modern-top #footer-box strong {
    color: #e0e0e0 !important;
}

body.jawhm-modern-top #footer-box font {
    color: #e0e0e0 !important;
}

body.jawhm-modern-top #copyright {
    text-align: center;
    padding: 16px;
    background: var(--jawhm-navy);
    color: #888;
    font-size: 12px;
}

.jm-login-btn.jm-login-loggedin {
    background: var(--jawhm-green);
}

/* ============================================
   HERO SECTION
   ============================================ */
.jm-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(22, 33, 62, 0.6) 50%, rgba(15, 52, 96, 0.7) 100%), url(/images/top/jm-hero-bg.png) center center / cover no-repeat;
    padding: 40px 24px 50px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    clear: both;
}

/* Speech Bubbles */
.jm-hero-bubbles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.jm-bubble {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: var(--jawhm-navy);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    animation: bubbleFloat 3s ease-in-out infinite;
}

.jm-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
}

.jm-bubble.bubble-1 {
    animation-delay: 0s;
}

.jm-bubble.bubble-2 {
    animation-delay: 0.5s;
}

.jm-bubble.bubble-3 {
    animation-delay: 1s;
}

@keyframes bubbleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.jm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,218.7C1248,245,1344,235,1392,229.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom / cover;
    pointer-events: none;
}

.jm-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.jm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.95);
}

.jm-hero-badge .badge-icon {
    font-size: 16px;
}

.jm-hero h1,
.jm-hero h2 {
    font-size: 38px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    word-break: keep-all;
    overflow-wrap: break-word;
    /* Override headhootg-nav.css global h2 { float:right; width:180px; height:30px } */
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
}

.jm-hero h2 .hero-accent {
    background: linear-gradient(135deg, var(--jawhm-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jm-hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Guide Title --- */
.jm-hero-guide {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- 3-Entrance Cards --- */
.jm-entrance-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.jm-entrance-card {
    flex: 1;
    max-width: 280px;
    border-radius: var(--radius-lg);
    padding: 0 20px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.jm-entrance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* タイプラベル（吹き出し風） */
.jm-entrance-card .card-type-label {
    display: block;
    width: calc(100% + 40px);
    margin: 0 -20px 18px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
    letter-spacing: 0.03em;
}

/* カテゴリ別カラー */
.jm-entrance-card.card-app {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    border: 1px solid rgba(66, 165, 245, 0.3);
}

.jm-entrance-card.card-seminar {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    border: 1px solid rgba(102, 187, 106, 0.3);
}

.jm-entrance-card.card-consult {
    background: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 100%);
    border: 1px solid rgba(171, 71, 188, 0.3);
}

.jm-entrance-card .card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.jm-entrance-card .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.jm-entrance-card .card-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 16px;
}

.jm-entrance-card .card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.jm-entrance-card:hover .card-btn {
    background: rgba(255, 255, 255, 0.4);
}

.jm-entrance-card .card-stores {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
}

/* --- Career Support Banner (LeaPNavi) --- */
.jm-career-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 28px auto 0;
    padding: 20px 36px;
    background: linear-gradient(135deg, rgba(255, 135, 0, 0.6), rgba(255, 87, 34, 0.45));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 200, 100, 0.4);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.jm-career-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.jm-career-banner:hover {
    background: linear-gradient(135deg, rgba(255, 135, 0, 0.75), rgba(255, 87, 34, 0.6));
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 135, 0, 0.3);
    border-color: rgba(255, 200, 100, 0.6);
}

.jm-career-banner:hover::before {
    left: 120%;
}

.jm-career-banner .career-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.jm-career-banner .career-text {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.jm-career-banner .career-main {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.jm-career-banner .career-sub {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.92;
    transition: var(--transition);
}

.jm-career-banner:hover .career-sub {
    letter-spacing: 0.04em;
}


/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.jm-main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.jm-main-wrapper:first-of-type {
    padding-bottom: 10px;
}

body.jawhm-modern-top #local-nav {
    float: none !important;
    width: 100% !important;
    padding: 0;
    margin: 0;
}

/* ============================================
   2-COLUMN: MAIN + SIDE
   ============================================ */
.jm-two-col {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.jm-col-main {
    flex: 1;
    min-width: 0;
}

.jm-col-side {
    width: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.jm-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--jawhm-blue);
    line-height: 1.4;
}

.jm-section-title .section-icon {
    font-size: 24px;
}

.jm-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

/* ============================================
   NEWS SECTION (WP Feed)
   ============================================ */
.jm-news-section {
    margin-bottom: 40px;
}

/* News Feed Container */
.jm-news-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* News Card */
.jm-news-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.jm-news-card:first-child {
    border-top: 1px solid var(--border-light);
}

.jm-news-card:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(37, 99, 235, 0.06));
    padding-left: 28px;
}

/* Date Badge */
.jm-news-card .news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--jawhm-navy), var(--jawhm-blue));
    border-radius: var(--radius-md);
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.jm-news-card .news-date-month {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.jm-news-card .news-date-day {
    font-size: 24px;
    font-weight: 800;
    margin-top: 2px;
}

/* News Body */
.jm-news-card .news-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.jm-news-card .news-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    transition: var(--transition);
}

.jm-news-card:hover .news-title {
    color: var(--jawhm-blue);
}

.jm-news-card .news-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow */
.jm-news-card .news-arrow {
    font-size: 18px;
    color: var(--jawhm-blue);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
    flex-shrink: 0;
}

.jm-news-card:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* More Link */
.jm-news-more {
    text-align: right;
    margin-top: 12px;
}

.jm-news-more a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jawhm-blue);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.jm-news-more a:hover {
    background: rgba(37, 99, 235, 0.08);
}

/* Empty State */
.jm-news-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.jm-news-empty a {
    color: var(--jawhm-blue);
    font-weight: 600;
}

body.jawhm-modern-top .top-sec01 {
    float: none !important;
    width: 100% !important;
    padding: 0;
    margin: 0 0 24px 0 !important;
}

body.jawhm-modern-top .top-sec01 h2 {
    display: none;
}

/* ============================================
   ONLINE SEMINAR SCHEDULE
   ============================================ */
.jm-schedule-section {
    margin-bottom: 40px;
}

.jm-schedule-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.jm-schedule-subtitle strong {
    color: var(--jawhm-orange);
    font-weight: 700;
}

/* Schedule List */
.jm-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Schedule Item */
.jm-schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.jm-schedule-item:first-child {
    border-top: 1px solid var(--border-light);
}

.jm-schedule-item:hover {
    background: linear-gradient(135deg, rgba(255, 135, 0, 0.03), rgba(255, 135, 0, 0.06));
    padding-left: 24px;
}

/* Date Badge */
.jm-schedule-item .schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 64px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    line-height: 1;
    position: relative;
}

.jm-schedule-item .schedule-weekday {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    position: absolute;
    top: 6px;
}

.jm-schedule-item .schedule-day {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
}

.jm-schedule-item .schedule-month {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    position: absolute;
    bottom: 6px;
}


/* Schedule Info */
.jm-schedule-item .schedule-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.jm-schedule-item .schedule-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--jawhm-orange);
    letter-spacing: 0.02em;
}

.jm-schedule-item .schedule-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    transition: var(--transition);
}

.jm-schedule-item:hover .schedule-title {
    color: var(--jawhm-blue);
}

/* Tags */
.jm-schedule-item .schedule-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 0.02em;
}

.schedule-tag.tag-beginner {
    background: rgba(37, 99, 235, 0.1);
    color: var(--jawhm-blue);
}

.schedule-tag.tag-step2 {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.schedule-tag.tag-popular {
    background: rgba(255, 135, 0, 0.1);
    color: var(--jawhm-orange);
}

.schedule-tag.tag-free {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.schedule-tag.tag-new {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.schedule-tag.tag-workshop {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
}

/* More Link */
.jm-schedule-more {
    text-align: right;
    margin-top: 12px;
}

.jm-schedule-more a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jawhm-blue);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.jm-schedule-more a:hover {
    background: rgba(37, 99, 235, 0.08);
}

/* ============================================
   POPULAR CONTENT CARDS (OFF-WORK)
   ============================================ */
.jm-popular-section {
    margin-bottom: 40px;
    clear: both;
    overflow: hidden;
}

body.jawhm-modern-top .off-work {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Override legacy: width:427px; height:424px; float:left */
    float: none !important;
    width: 100% !important;
    height: auto !important;
}

body.jawhm-modern-top .title-offday {
    display: none;
}

body.jawhm-modern-top .content-offday {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

body.jawhm-modern-top .content-offday .sec01 {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
}

/* Override legacy fixed heights */
body.jawhm-modern-top .sec01 .content-sec01 {
    height: auto !important;
    background: none !important;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
}

body.jawhm-modern-top .sec01 .sec01_01 {
    height: auto !important;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
}

body.jawhm-modern-top .sec01 .title-sec01 p {
    float: none !important;
}

body.jawhm-modern-top .sec01 .content-sec01 p {
    font-size: 13px !important;
    line-height: 1.7 !important;
}

body.jawhm-modern-top .content-offday .sec01:hover {
    border-color: var(--jawhm-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

body.jawhm-modern-top .content-offday .title-sec01 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    background: none;
    padding: 0;
    border: none;
}

body.jawhm-modern-top .content-offday .title-sec01 span {
    font-size: 15px;
    font-weight: 700;
    color: var(--jawhm-blue);
    line-height: 1.4;
}

body.jawhm-modern-top .content-offday .title-sec01 span p {
    display: inline;
    font-size: 12px;
    font-weight: 700;
    color: var(--jawhm-orange);
    margin-right: 6px;
}

body.jawhm-modern-top .content-offday .title-sec01 img {
    display: none;
}

body.jawhm-modern-top .content-offday .content-sec01 {
    flex: 1;
}

body.jawhm-modern-top .content-offday .content-sec01 p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

body.jawhm-modern-top .content-offday .sec01_01 .content-sec01 p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   SEMINAR GRID
   ============================================ */
.jm-seminar-section {
    margin-bottom: 10px;
}

body.jawhm-modern-top .section02 {
    margin: 0 !important;
    padding: 0;
    float: none !important;
    width: 100% !important;
}

body.jawhm-modern-top .title-section02 {
    display: none;
}

body.jawhm-modern-top .content-section02 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

body.jawhm-modern-top .content-section02 .item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-align: center;
    min-height: 56px;
    position: relative;
    background-image: none;
    width: auto;
    height: auto;
    margin: 0;
    float: none;
}

body.jawhm-modern-top .content-section02 .item:hover {
    border-color: var(--jawhm-blue);
    background: var(--jawhm-blue-pale);
    color: var(--jawhm-blue);
    box-shadow: var(--shadow-sm);
}

body.jawhm-modern-top .content-section02 .item span {
    margin: 0 !important;
    padding: 0;
    position: static;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

body.jawhm-modern-top .content-section02 .item img {
    display: none;
}

/* ============================================
   AD BANNERS
   ============================================ */
.jm-banners-section {
    margin-bottom: 40px;
    margin-top: 10px;
}

/* AD Banner Row: 2 banners side by side */
body.jawhm-modern-top .jm-ad-banner-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 16px;
    align-items: stretch;
}

body.jawhm-modern-top .jm-ad-banner-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

body.jawhm-modern-top .jm-ad-banner-item a {
    display: block;
    width: 100%;
    height: 100%;
}

body.jawhm-modern-top .jm-ad-banner-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
}

body.jawhm-modern-top .jm-ad-banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}


body.jawhm-modern-top .jm-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

body.jawhm-modern-top .jm-ad-grid>div {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

body.jawhm-modern-top .jm-ad-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* AD Combo Layout: large left + 3 small stacked right */
body.jawhm-modern-top .jm-ad-combo {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

body.jawhm-modern-top .jm-ad-combo-large {
    /* 大バナー: 585x295 = 1.983:1
       比率計算: 457px幅 → 高さ230.5px
       小バナー3枚: 299/4.028*3 + gap4*2 = 230.6px → 完全一致 */
    flex: 457;
    min-width: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

body.jawhm-modern-top .jm-ad-combo-large img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

body.jawhm-modern-top .jm-ad-combo-small {
    /* 小バナー: 584x145 = 4.028:1 × 3枚 + gap4px×2 */
    flex: 299;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.jawhm-modern-top .jm-ad-combo-small>div {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

body.jawhm-modern-top .jm-ad-combo-small img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* AD配信スクリプトが生成する内部divを枠いっぱいに広げ、中央揃え */
body.jawhm-modern-top .jm-ad-combo-large>div,
body.jawhm-modern-top .jm-ad-combo-small>div>div {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: auto !important;
}

/* AD Hero (legacy - kept for other uses) */
body.jawhm-modern-top .jm-ad-hero {
    text-align: center;
}

body.jawhm-modern-top .jm-ad-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* ============================================
   POPULAR CONTENT GRID
   ============================================ */
body.jawhm-modern-top .jm-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 8px 4px;
}

body.jawhm-modern-top .jm-popular-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 12px 44px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

body.jawhm-modern-top .jm-popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 87, 154, 0.05) 0%, rgba(43, 87, 154, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

body.jawhm-modern-top .jm-popular-card:hover::before {
    opacity: 1;
}

body.jawhm-modern-top .jm-popular-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(43, 87, 154, 0.18);
    border-color: var(--accent-primary);
}

body.jawhm-modern-top .jm-popular-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 12px rgba(43, 87, 154, 0.12);
}

body.jawhm-modern-top .popular-icon {
    font-size: 56px;
    line-height: 1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

body.jawhm-modern-top .jm-popular-card:hover .popular-icon {
    transform: scale(1.15);
}

body.jawhm-modern-top .popular-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

body.jawhm-modern-top .popular-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 36px;
    position: relative;
    z-index: 1;
}

/* ============================================
   ABOUT SECTION - COMPACT
   ============================================ */
body.jawhm-modern-top .jm-about-compact {
    padding: 14px 40px;
    font-size: 13px;
    line-height: 1.7;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    text-align: right;
}

body.jawhm-modern-top .jm-about-compact h3 {
    display: none;
}

body.jawhm-modern-top .jm-about-compact p {
    margin: 0;
}

body.jawhm-modern-top .jm-about-compact a {
    color: var(--accent-primary);
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   SEMINAR SECTION - MODERN BUTTONS
   ============================================ */
body.jawhm-modern-top .jm-seminar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

body.jawhm-modern-top .jm-seminar-btn.jm-seminar-main {
    grid-column: span 3;
    padding: 24px 12px;
    font-size: 14px;
}

body.jawhm-modern-top .jm-seminar-btn.jm-seminar-main .seminar-icon {
    font-size: 34px;
}

body.jawhm-modern-top .jm-seminar-grid .jm-seminar-btn:not(.jm-seminar-main) {
    grid-column: span 2;
}

body.jawhm-modern-top .jm-seminar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f6 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    transition: all 0.25s ease;
    text-align: center;
    cursor: pointer;
}

body.jawhm-modern-top .jm-seminar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #fff 0%, #f0f4ff 100%);
    border-color: var(--accent-primary);
}

body.jawhm-modern-top .jm-seminar-btn .seminar-icon {
    font-size: 26px;
    line-height: 1;
}

body.jawhm-modern-top .jm-seminar-btn .seminar-label {
    line-height: 1.3;
}

body.jawhm-modern-top .jm-seminar-btn.jm-seminar-online {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1a5fc7 100%);
    color: #fff;
    border-color: transparent;
}

body.jawhm-modern-top .jm-seminar-btn.jm-seminar-online:hover {
    background: linear-gradient(135deg, #1a5fc7 0%, var(--accent-primary) 100%);
    color: #fff;
}

body.jawhm-modern-top .jm-seminar-btn.jm-seminar-event {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border-color: #ffc078;
    color: #d46b08;
}

body.jawhm-modern-top .jm-seminar-btn.jm-seminar-event:hover {
    background: linear-gradient(135deg, #ffe8cc 0%, #ffd8a8 100%);
}

/* ============================================
   NAVIGATION LINKS SECTION
   ============================================ */
body.jawhm-modern-top .jm-nav-links-section {
    margin-bottom: 40px;
}

body.jawhm-modern-top .jm-nav-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

body.jawhm-modern-top .jm-nav-category {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent-primary);
    padding: 16px 18px;
    transition: box-shadow 0.3s ease;
}

body.jawhm-modern-top .jm-nav-category:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* カテゴリ別カラー */
body.jawhm-modern-top .jm-nav-category:nth-child(1) {
    border-top-color: #2b579a;
    background: linear-gradient(180deg, rgba(43, 87, 154, 0.04) 0%, #fff 100%);
}

body.jawhm-modern-top .jm-nav-category:nth-child(2) {
    border-top-color: #2e7d32;
    background: linear-gradient(180deg, rgba(46, 125, 50, 0.04) 0%, #fff 100%);
}

body.jawhm-modern-top .jm-nav-category:nth-child(3) {
    border-top-color: #6a1b9a;
    background: linear-gradient(180deg, rgba(106, 27, 154, 0.04) 0%, #fff 100%);
}

body.jawhm-modern-top .jm-nav-category:nth-child(4) {
    border-top-color: #e65100;
    background: linear-gradient(180deg, rgba(230, 81, 0, 0.04) 0%, #fff 100%);
}

body.jawhm-modern-top .jm-nav-category:nth-child(5) {
    border-top-color: #00838f;
    background: linear-gradient(180deg, rgba(0, 131, 143, 0.04) 0%, #fff 100%);
}

body.jawhm-modern-top .jm-nav-category:nth-child(6) {
    border-top-color: #c62828;
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.04) 0%, #fff 100%);
}

body.jawhm-modern-top .jm-nav-cat-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-primary);
    color: var(--text-primary);
}

body.jawhm-modern-top .jm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.jawhm-modern-top .jm-nav-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

body.jawhm-modern-top .jm-nav-list li:last-child {
    border-bottom: none;
}

body.jawhm-modern-top .jm-nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

body.jawhm-modern-top .jm-nav-list a:hover {
    color: var(--accent-primary);
}

body.jawhm-modern-top .jm-nav-list a {
    display: flex;
    flex-direction: column;
}

body.jawhm-modern-top .jm-nav-list .nav-desc {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-top: 1px;
    line-height: 1.4;
}

/* ============================================
   CUSTOMER VOICE SECTION
   ============================================ */
body.jawhm-modern-top .jm-voice-section {
    margin-bottom: 40px;
}

body.jawhm-modern-top .jm-voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

body.jawhm-modern-top .jm-voice-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 24px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.jawhm-modern-top .jm-voice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.jawhm-modern-top .voice-avatar {
    margin: -24px -18px 12px -18px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

body.jawhm-modern-top .voice-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    font-size: 48px;
}

body.jawhm-modern-top .voice-avatar-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

body.jawhm-modern-top .voice-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

body.jawhm-modern-top .voice-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

body.jawhm-modern-top .voice-country {
    font-size: 12px;
    color: var(--text-muted);
}

body.jawhm-modern-top .voice-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

body.jawhm-modern-top .jm-voice-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

body.jawhm-modern-top .jm-voice-link,
body.jawhm-modern-top .jm-voice-reserve {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.jawhm-modern-top .jm-voice-link {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

body.jawhm-modern-top .jm-voice-link:hover {
    background: #1a5fc7;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

body.jawhm-modern-top .jm-voice-reserve {
    background: #fff;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.jawhm-modern-top .jm-voice-reserve:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ============================================
   HERO GUIDE TEXT
   ============================================ */
body.jawhm-modern-top .jm-hero-guide {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

/* ============================================
   SIDE: VISA COUNTRIES
   ============================================ */
.jm-visa-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.jm-visa-section .jm-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--jawhm-blue);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jawhm-blue);
}

body.jawhm-modern-top #menu-country {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.jawhm-modern-top #menu-country li {
    background: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

body.jawhm-modern-top #menu-country li:not(.menu-visa) {
    display: none;
}

body.jawhm-modern-top #menu-country li.menu-visa {
    display: block;
}

body.jawhm-modern-top #menu-country li.menu-visa a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    background-position: 12px center;
    background-repeat: no-repeat;
    background-size: 24px 16px;
    line-height: 1;
    min-height: auto;
    height: auto;
}

body.jawhm-modern-top #menu-country li.menu-visa a:hover {
    background-color: var(--jawhm-blue-pale);
    color: var(--jawhm-blue);
}

/* ============================================
   SIDE: GENERAL CARDS
   ============================================ */
.jm-side-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.jm-side-card img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
}

/* 関連リンク: バナー間の余白 */
.jm-side-card>div {
    margin-bottom: 16px !important;
    float: none !important;
    clear: both !important;
    text-align: center !important;
}

.jm-side-card>div:last-child {
    margin-bottom: 0 !important;
}

/* ICEF Badge 中央揃え */
.jm-side-card #iasBadge {
    display: flex !important;
    justify-content: center !important;
}

.jm-side-card #iasBadge img {
    display: block !important;
    margin: 0 auto !important;
}

.jm-side-card .jm-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--jawhm-blue);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jawhm-blue);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.jm-about-section {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    margin-bottom: 40px;
    clear: both;
    position: relative;
    z-index: 1;
}

.jm-about-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--jawhm-blue);
    margin-bottom: 16px;
}

.jm-about-section p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* ============================================
   EXTERNAL LINKS / FOOTER BANNERS
   ============================================ */
.jm-footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.jm-footer-links .advbox02 {
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.jm-footer-links .advbox02:hover {
    box-shadow: var(--shadow-sm);
}

.jm-footer-links .advbox02 img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CTA FLOATING BUTTON
   ============================================ */
.jm-cta-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.jm-cta-float a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.jm-cta-float .cta-counseling {
    background: #f5a623;
    color: #fff;
}

.jm-cta-float .cta-counseling:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.4);
    filter: brightness(1.1);
}

.cta-float-close {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cta-float-close:hover {
    background: rgba(0,0,0,0.8);
}

/* ============================================
   TWITTER EMBED
   ============================================ */
body.jawhm-modern-top .twitter-timeline {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ============================================
   HIDE LEGACY AD ZONES (inline floats)
   ============================================ */
body.jawhm-modern-top .top-sec01>div[style*="float"] {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
}

/* ============================================
   BREADCRUMBS OVERRIDE
   ============================================ */
body.jawhm-modern-top p#topicpath,
body.jawhm-modern-top #top-main p#topicpath,
body.jawhm-modern-top #top-main #topicpath {
    float: none !important;
    max-width: 1100px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 12px 24px !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    background-color: transparent !important;
    height: auto !important;
    box-sizing: border-box;
    display: block !important;
}

body.jawhm-modern-top #top-main {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* ============================================
   MISC OVERRIDES
   ============================================ */
body.jawhm-modern-top .sec-title-top {
    font-size: 18px;
    font-weight: 700;
    color: var(--jawhm-blue);
    margin: 32px 0 16px !important;
    padding: 0;
}

body.jawhm-modern-top .right_side {
    display: none;
}

/* FB widget styling */
body.jawhm-modern-top #fb-0001 {
    max-height: 300px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
}

body.jawhm-modern-top .title-comment {
    background: var(--jawhm-blue) !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 15px !important;
    margin: 0 !important;
}

/* ============================================
   COUNTRY CARDS (Featured 8)
   ============================================ */
.jm-country-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.jm-visa-section {
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.jm-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    color: var(--text-primary);
    text-align: center;
    min-height: 70px;
}

.jm-country-card:hover {
    border-color: var(--jawhm-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.jm-country-card .country-flag-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jm-country-card .country-name {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    margin-top: 2px;
}

.jm-country-card .country-visa-link {
    font-size: 10px;
    color: var(--jawhm-blue);
    text-decoration: underline;
    white-space: nowrap;
}

/* Country More (details/summary) */
.jm-country-more {
    margin-top: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.jm-country-more summary {
    padding: 12px 14px;
    background: var(--bg-section);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
}

.jm-country-more summary::before {
    content: '▶ ';
    font-size: 12px;
    color: var(--primary-color);
}

.jm-country-more[open] summary::before {
    content: '▼ ';
}

.jm-country-list-compact {
    list-style: none;
    padding: 12px 14px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.jm-country-list-compact li a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 4px;
    display: block;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.jm-country-list-compact li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.jm-country-list-compact li a:hover {
    color: var(--jawhm-blue);
}

/* Outline Button */
.jm-btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--jawhm-blue);
    border-radius: var(--radius-md);
    color: var(--jawhm-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.jm-btn-outline:hover {
    background: var(--jawhm-blue);
    color: #fff;
}

/* ============================================
   YOUTUBE EMBED SECTION
   ============================================ */
.jm-youtube-section {
    background: var(--bg-section);
    padding: 48px 24px;
    text-align: center;
    clear: both;
}

.jm-youtube-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.jm-youtube-section .jm-section-title {
    margin-bottom: 24px;
}

.jm-youtube-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    margin: 0 auto;
}

.jm-youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lead Text */
.jm-youtube-lead {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.jm-youtube-lead strong {
    color: var(--jawhm-orange);
    font-size: 17px;
}

/* CTA Buttons */
.jm-youtube-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.yt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.yt-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.yt-cta-btn.cta-app {
    background: linear-gradient(135deg, var(--jawhm-navy), var(--jawhm-blue));
    color: #fff;
}

.yt-cta-btn.cta-seminar {
    background: linear-gradient(135deg, var(--jawhm-orange), #ff9a3c);
    color: #fff;
}

.yt-cta-btn.cta-booking {
    background: #fff;
    color: var(--jawhm-blue);
    border: 2px solid var(--jawhm-blue);
}

.yt-cta-btn.cta-booking:hover {
    background: var(--jawhm-blue);
    color: #fff;
}

/* Video A/B Test CTA Button */
.video-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 360px;
    max-width: 90%;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--jawhm-orange), #ff9a3c);
    color: #fff !important;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
    letter-spacing: 0.05em;
}

.video-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.6);
    filter: brightness(1.1);
}

/* ============================================
   POPULAR CONTENT - STYLISH CARDS
   ============================================ */
body.jawhm-modern-top .jm-popular-section .sec01 {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px !important;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

body.jawhm-modern-top .jm-popular-section .sec01:hover {
    border-color: var(--jawhm-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

body.jawhm-modern-top .jm-popular-section .sec01::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--jawhm-blue), var(--jawhm-orange));
}

body.jawhm-modern-top .jm-popular-section .sec01 a {
    color: var(--jawhm-blue);
    font-weight: 700;
    text-decoration: none;
}

body.jawhm-modern-top .jm-popular-section .sec01 a:hover {
    text-decoration: underline;
}

/* ============================================
   OFFICE LINKS SECTION
   ============================================ */
.jm-office-section {
    background: var(--bg-white);
    padding: 48px 24px;
    text-align: center;
    clear: both;
}

.jm-office-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.jm-office-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.jm-office-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    min-width: 120px;
}

.jm-office-card:hover {
    border-color: var(--jawhm-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.jm-office-card .office-icon {
    font-size: 28px;
}

.jm-office-card .office-name {
    font-size: 14px;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .jm-hero h1,
    .jm-hero h2 {
        font-size: 32px;
    }

    .jm-entrance-cards {
        flex-direction: column;
        align-items: center;
    }

    .jm-entrance-card {
        max-width: 400px;
        width: 100%;
    }

    .jm-two-col {
        flex-direction: column;
    }

    .jm-col-side {
        width: 100%;
    }

    body.jawhm-modern-top .content-section02 {
        grid-template-columns: repeat(2, 1fr);
    }

    .jm-footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .jm-page-nav-inner {
        flex-direction: column;
        padding: 8px 16px;
    }

    .jm-page-nav-links {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
    }

    .jm-page-nav-actions {
        width: 100%;
        justify-content: flex-end;
        padding: 4px 0;
    }

    .jm-hero-bubbles {
        flex-wrap: wrap;
        gap: 10px;
    }

    .jm-country-featured {
        grid-template-columns: 1fr;
    }

    .jm-office-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   HERO SINGLE CTA BUTTON (Pattern B)
   ============================================ */
.jm-hero-cta {
    display: inline-block;
    min-width: 320px;
    height: 56px;
    line-height: 56px;
    background: #f5a623;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 28px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
    letter-spacing: 0.03em;
}

.jm-hero-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 166, 35, 0.5);
}

/* ============================================
   LeaPNavi BANNER SECTION (Pattern B)
   ============================================ */
.jm-leapnavi-banner-section {
    background: var(--bg-section);
    padding: 24px;
}

.jm-leapnavi-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.jm-leapnavi-banner-section .jm-career-banner {
    margin: 0 auto;
}

/* ============================================
   ワーホリナビ SECTION (Pattern B) ★
   ============================================ */
.wn-section {
    background: #f0f4ff;
    padding: 48px 24px 56px;
    clear: both;
}

.wn-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.wn-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    float: none !important;
    width: auto !important;
    height: auto !important;
}

.wn-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

/* --- タブ --- */
.wn-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0;
}

.wn-tab {
    background: none;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}

.wn-tab:hover {
    color: var(--jawhm-blue);
    background: rgba(13, 51, 135, 0.04);
}

.wn-tab.wn-tab-active {
    color: var(--jawhm-blue);
    border-bottom-color: var(--jawhm-blue);
    font-weight: 700;
}

/* --- パネル --- */
.wn-content {
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.wn-panel {
    padding: 32px;
}

.wn-panel-lead {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- 比較表 --- */
.wn-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.wn-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wn-compare-table th {
    background: var(--jawhm-navy);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.wn-compare-table th:hover {
    background: var(--jawhm-blue);
}

.wn-sort-icon {
    font-size: 11px;
    opacity: 0.6;
    margin-left: 4px;
}

.wn-compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.wn-compare-table tbody tr:hover {
    background: rgba(13, 51, 135, 0.04);
}

.wn-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 2px;
}

/* --- 結果CTA --- */
.wn-result-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.wn-cta-primary {
    display: inline-block;
    min-width: 280px;
    height: 48px;
    line-height: 48px;
    background: #f5a623;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    padding: 0 24px;
    box-sizing: border-box;
}

.wn-cta-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.wn-cta-secondary {
    display: inline-block;
    min-width: 280px;
    height: 48px;
    line-height: 48px;
    background: #fff;
    color: #333 !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
    transition: var(--transition);
    padding: 0 24px;
    box-sizing: border-box;
}

.wn-cta-secondary:hover {
    background: #f8f8f8;
    transform: translateY(-1px);
}

.wn-cta-insurance {
    display: block;
    width: 100%;
    text-align: center;
    color: #666 !important;
    font-size: 12px;
    text-decoration: none;
    margin-top: 8px;
}

.wn-cta-insurance:hover {
    color: var(--jawhm-blue) !important;
    text-decoration: underline;
}

/* --- ワーホリナビ アプリCTA --- */
.navi-app-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #CCCCCC;
    text-align: center;
}

.navi-app-lead {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
}

.navi-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #F7F9FC;
    border: 1px solid #B0C8E4;
    border-radius: 6px;
    text-decoration: none;
    color: #1B3A5C;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
}

.navi-app-btn:hover {
    background: #E4EEF8;
}

.navi-app-icon { font-size: 16px; }
.navi-app-arrow { font-size: 14px; color: #2E75B6; }

.navi-app-sub {
    font-size: 11px;
    color: #999;
    margin: 8px 0 0;
}

/* --- 費用計算 --- */
.wn-cost-form {
    margin-bottom: 24px;
}

.wn-cost-selects {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.wn-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.wn-select-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.wn-select-group select {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
}

.wn-cost-calc-btn {
    background: var(--jawhm-blue);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
    height: 42px;
}

.wn-cost-calc-btn:hover {
    background: var(--jawhm-blue-light);
    transform: translateY(-1px);
}

.wn-cost-result {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wn-cost-result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    float: none !important;
    width: auto !important;
    height: auto !important;
}

.wn-cost-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.wn-cost-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--jawhm-blue);
    margin-bottom: 12px;
}

.wn-cost-table {
    width: 100%;
    border-collapse: collapse;
}

.wn-cost-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.wn-cost-table td:last-child {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.wn-cost-subtotal td {
    font-weight: 700 !important;
    background: var(--bg-section);
    border-bottom: 2px solid var(--border-light);
}

.wn-cost-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--jawhm-navy), var(--jawhm-blue));
    border-radius: var(--radius-md);
    color: #fff;
    margin-bottom: 20px;
}

.wn-cost-total-label {
    font-size: 16px;
    font-weight: 600;
}

.wn-cost-total-amount {
    font-size: 28px;
    font-weight: 900;
}

.wn-cost-discount-msg {
    margin: 15px 0 25px 0;
    padding: 24px 20px;
    background: #fffdf5;
    border: 3px solid #ffca28;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 6px 16px rgba(255, 202, 40, 0.2);
}

.wn-cdm-lead {
    font-size: 22px;
    font-weight: 800;
    color: #e65100;
    margin-bottom: 12px;
    line-height: 1.4;
}

.wn-cdm-sub {
    font-size: 16px;
    color: #4e342e;
    line-height: 1.6;
}

.wn-cdm-sub strong {
    color: #d32f2f;
    font-size: 18px;
    border-bottom: 2px solid #ffcdd2;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .wn-cost-discount-msg {
        padding: 16px;
    }
    .wn-cdm-lead {
        font-size: 18px;
    }
    .wn-cdm-sub {
        font-size: 14px;
    }
    .wn-cdm-sub strong {
        font-size: 16px;
    }
}

.wn-alert-msg {
    margin: 25px 0 25px 0;
    padding: 24px 20px;
    background: #fff5f5;
    border: 3px solid #f44336;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.2);
}

.wn-alert-lead {
    font-size: 22px;
    font-weight: 800;
    color: #c62828;
    margin-bottom: 12px;
    line-height: 1.4;
}

.wn-alert-sub {
    font-size: 16px;
    color: #4e342e;
    line-height: 1.6;
}

.wn-alert-sub strong {
    color: #b71c1c;
    font-size: 18px;
    border-bottom: 2px solid #ffcdd2;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .wn-alert-msg {
        padding: 16px;
    }
    .wn-alert-lead {
        font-size: 18px;
    }
    .wn-alert-sub {
        font-size: 14px;
    }
    .wn-alert-sub strong {
        font-size: 16px;
    }
}


.wn-cost-chart {
    margin-bottom: 16px;
}

.wn-cost-note {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

/* --- チェックリスト --- */
.wn-checklist-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.wn-progress-bar {
    flex: 1;
    height: 12px;
    background: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.wn-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--jawhm-blue), #2196F3);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.wn-progress-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--jawhm-blue);
    white-space: nowrap;
}

.wn-phase {
    margin-bottom: 24px;
}

.wn-phase-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.wn-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-primary);
}

.wn-check-item:hover {
    background: rgba(13, 51, 135, 0.04);
}

.wn-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--jawhm-blue);
    cursor: pointer;
    flex-shrink: 0;
}

/* --- 手続きガイド --- */
.wn-procedure-select {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wn-procedure-select label {
    font-size: 14px;
    font-weight: 600;
}

.wn-procedure-select select {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.wn-procedure-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wn-procedure-group h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.wn-procedure-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wn-procedure-list li {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    position: relative;
    padding-left: 24px;
}

.wn-procedure-list li::before {
    content: '▸';
    position: absolute;
    left: 8px;
    color: var(--jawhm-blue);
    font-weight: 700;
}

/* --- フォールバック --- */
.wn-fallback {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 24px;
}

.wn-fallback-card {
    padding: 20px 32px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
}

.wn-fallback-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* --- ワーホリナビ レスポンシブ --- */
@media (max-width: 960px) {
    .wn-tabs {
        flex-wrap: wrap;
    }
    .wn-tab {
        flex: 1;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 13px;
    }
    .wn-panel {
        padding: 20px 16px;
    }
    .wn-cost-columns {
        grid-template-columns: 1fr;
    }
    .wn-procedure-content {
        grid-template-columns: 1fr;
    }
    .wn-cost-selects {
        flex-direction: column;
    }
    .wn-result-cta {
        flex-direction: column;
        align-items: center;
    }
    .wn-cta-primary,
    .wn-cta-secondary {
        min-width: unset;
        width: 100%;
        max-width: 400px;
    }
    .jm-hero-cta {
        min-width: 280px;
        font-size: 16px;
    }
}