@charset "UTF-8";
/*
Theme Name: Axenor Theme
Theme URI: https://example.com/
Description: 会員限定教材サイト用オリジナルテーマ。管理者負担を軽減する設計。
Version: 1.0.1
Author: DeepMind
Author URI: https://example.com/
Text Domain: axenor-theme
*/

/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #27AE60;        /* 緑（メインテーマカラー） */
    --color-primary-text: #1a4731;   /* Primaryの暗い版（テキスト用） */
    --color-primary-hover: #219150;  /* Primaryのホバー用 */
    --color-accent: #FF6B6B;         /* アクセント（警告・注目） */
    --color-bg: #FFFFFF;             /* 背景色 */
    --color-text: #333333;           /* メインテキスト */
    /* --color-white: #FFFFFF; (Removed duplicate: use --color-bg) */

    /* Spacing & Radius */
    --radius-md: 12px;
    --radius-lg: 20px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    /* --spacing-lg duplicate removed */

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-card: var(--shadow-sm); /* Alias for card shadow */
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* { box-sizing: border-box; }

body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-feature-settings: "palt";
    background-color: #FdfcF8; /* Warm light beige/off-white */
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.site-main {
    flex: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-content-wrapper {
    background-color: transparent;
    box-shadow: none;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: none;
}

.header-inner, .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background: var(--color-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img { height: 40px; }

/* Header Navigation Icons (Round Buttons) */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #555;
    transition: background-color 0.2s, color 0.2s;
}
.nav-icon-btn:hover {
    background-color: #f5f5f5;
    color: var(--color-primary);
}

/* Icon + Text Link (Terms) - Stacked Layout */
.nav-item-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #555;
    transition: color 0.2s;
    min-width: 40px;
    height: 40px;
}
.nav-item-text:hover {
    color: var(--color-primary);
    opacity: 1;
}
.nav-item-text svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
}
.nav-item-text span {
    font-size: 9px;
    font-weight: bold;
    line-height: 1;
}

/* Header Logo & Branding Text (Single Page) */
.site-branding .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.site-branding .site-logo {
    height: 40px;
    width: auto;
}
.site-title-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    color: #333;
}
.org-type {
    font-size: 11px;
    font-weight: normal;
    color: #555;
}
.org-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-bg);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: 14px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}
.footer-btn {
    display: inline-block;
    background: var(--color-bg);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-weight: bold;
}

/* ==========================================================================
   6. BUTTONS (CONSOLIDATED)
   ========================================================================== */
/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    color: white;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn-primary { background-color: var(--color-primary); }
.btn-accent { background-color: var(--color-accent); }
.btn-secondary { background-color: #A0AEC0; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: var(--spacing-sm); }

/* Icon Only Button (List) */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn-dl { background-color: #4A90E2; }
.btn-dl:hover { background-color: #357ABD; transform: scale(1.1); }
.btn-video { background-color: #E53E3E; }
.btn-video:hover { background-color: #C53030; transform: scale(1.1); }

/* Monochrome Icon Button (Single Page / Archive List) */
.btn-mono-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s, transform 0.2s;
    min-width: 80px;
}
.btn-mono-icon:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}
.btn-mono-icon-sm {
    min-width: 60px;
}
.btn-mono-icon-sm .icon-circle svg {
    width: 24px;
    height: 24px;
}
.btn-mono-icon-sm .btn-text {
    font-size: 10px;
    line-height: 1.2;
}
.btn-mono-icon-sm .btn-text span {
    display: block;
}

/* Back Link Pill (Single Footer) */
.back-link-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: #fff;
    border-radius: 99px;
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.back-link-pill:hover {
    color: #2d3748;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Icon Circle Helper */
.icon-circle {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-circle svg {
    width: 48px;
    height: 48px;
}
.btn-text {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   7. FORMS & INPUTS
   ========================================================================== */
.form-group, .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input[type="submit"],
button[type="submit"],
.wpcf7-submit {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    text-align: center;
    margin-top: 10px;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: #219150;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* CF7 Specific */
.wpcf7-response-output {
    border-radius: 8px;
    padding: 15px !important;
    font-size: 14px;
    margin: 20px 0 !important;
}
.wpcf7-not-valid-tip {
    font-size: 12px;
    color: var(--color-accent);
    margin-top: 5px;
    display: block;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary);
    transform: scale(1.2);
    margin-right: 8px;
}

/* ==========================================================================
   8. MATERIAL COMPONENTS (BASE)
   ========================================================================== */
/* Filter Tabs */
.tab-nav {
    display: flex;
    gap: 12px;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}
.tab-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.section-title-sm {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text);
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid var(--color-primary);
    line-height: 1.2;
}

/* Material List Item - Base Styles */
/* Note: Desktop-specific styles are in Section 15 */
.material-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    /* border: none; Removed to allow border-left */
    border-radius: var(--radius-md);
    border-left: 6px solid var(--color-primary); /* New Accent */
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.material-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Link Overlay */
.material-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: var(--radius-md);
}

/* Thumbnail */
.material-thumb {
    width: 120px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    flex-shrink: 0;
}

/* Info & Content */
.material-info {
    flex: 1;
    min-width: 0; /* Essential for ellipsis */
}
.material-info h3 { 
    margin: 0 0 5px; 
    font-size: 18px; 
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.material-meta { 
    font-size: 12px; 
    color: #777; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tags (Small) */
.material-tag {
    background: #f0f4f8;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* Tags (Large Style) */
.material-tag-lg {
    display: inline-block;
    padding: 0 0 4px 0;
    margin-bottom: 8px;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
}

/* Actions (Buttons) */
.material-actions { 
    display: flex; 
    gap: 10px; 
    flex-shrink: 0; 
    align-items: center;
    align-self: center;
    position: relative;
    z-index: 2; /* Sit above card link */
}

/* ==========================================================================
   9. SLIDER COMPONENTS
   ========================================================================== */
.new-arrival-slider {
    margin-bottom: 60px;
    position: relative;
}
.new-arrival-slider .slider-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 4px solid var(--color-primary);
}
.slider-track {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

/* Custom Scrollbar for Slider */
.slider-track::-webkit-scrollbar {
    height: 8px;
}
.slider-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.slider-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.slider-track::-webkit-scrollbar-thumb:hover {
    background: #999;
}
.slider-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
}
.slider-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.slider-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}
.slider-thumb {
    width: 100%;
    height: 157px; /* 16:9 approx */
    object-fit: cover;
}
.slider-thumb-placeholder {
    width: 100%;
    height: 157px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}
.slider-title {
    font-size: 14px;
    font-weight: bold;
    padding: 12px 16px 4px;
    margin: 0;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.slider-desc {
    font-size: 12px;
    color: #666;
    padding: 0 16px 12px;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   10. SINGLE MATERIAL PAGE
   ========================================================================== */
.split-hero-section {
    padding: 30px 0 80px;
    position: relative;
}
.split-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Left Content */
.hero-tags { margin-bottom: 20px; }
.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.hero-meta { margin-bottom: 40px; }
.hero-date { color: #888; font-size: 14px; }

/* Right Visual */
.split-hero-visual { position: relative; }
.hero-thumb-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}
.btn-hero-action {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-hero-action .icon-box {
    margin-right: 16px;
    display: flex;
    align-items: center;
}
.btn-hero-action .action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.btn-hero-action .label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 2px;
}
.btn-hero-action .main { font-size: 16px; }

/* Action Button Variants */
.btn-download {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #2d3748;
}
.btn-download:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

/* Play Icon Overlay */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}
.play-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.play-icon-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}
.play-icon-overlay:hover .play-icon-circle {
    transform: scale(1.05);
    background: var(--color-primary);
    color: #fff;
}

/* Single Body Content */
.single-body-section {
    background: transparent;
    padding-bottom: 80px;
}
.single-content-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 60px 80px;
    max-width: 960px;
    margin: 0 auto;
}

/* Footer Nav */
.single-footer-nav {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

/* ==========================================================================
   11. LOGIN PAGE (WP-MEMBERS)
   ========================================================================== */
.login-page-wrapper {
    max-width: 480px;
    margin: 80px auto;
    padding: 20px;
}
.login-page-wrapper .card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Error Message */
.wpmem_msg {
    background-color: #fff2f2;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    list-style: none;
}
.wpmem_msg br { display: block; margin-bottom: 5px; }

/* WP-Members Overrides */
#wpmem_login {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
}
#wpmem_login fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px;
    width: 100%;
}
#wpmem_login legend { display: none; }

#wpmem_login label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-text);
    font-size: 14px;
}
#wpmem_login input[type="text"],
#wpmem_login input[type="password"],
#wpmem_login input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background: #f9f9f9;
}
#wpmem_login input[type="text"]:focus,
#wpmem_login input[type="password"]:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

/* Remember Me & Links (Hide Remember Me) */
.wpmem_login_links { margin-top: 20px; text-align: center; font-size: 14px; }
.wpmem_login_links a { color: var(--color-primary); text-decoration: none; }
#wpmem_login .place-right, 
#wpmem_login .keep, 
#wpmem_login label[for="rememberme"], 
#wpmem_login #rememberme {
    display: none !important;
}

/* Submit */
.buttons { text-align: center; margin-top: 20px; }
#wpmem_login input[type="submit"] {
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 100%;
}
#wpmem_login input[type="submit"]:hover { opacity: 0.9; }

/* ==========================================================================
   12. GENERIC WHITE BOX LAYOUT
   ========================================================================== */
.content-white-box {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 60px 80px;
    margin-top: 40px;
    margin-bottom: 60px;
}
.content-white-box a { color: var(--color-primary); }
.content-white-box .page-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

/* ==========================================================================
   13. HAMBURGER MENU
   ========================================================================== */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger-btn span {
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 60px 20px 20px;
    overflow-y: auto;
}
.side-menu.active { right: 0; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 5px;
}
.menu-close-btn svg { width: 30px; height: 30px; }

.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { border-bottom: 1px solid #eee; }
.menu-list li a {
    display: block;
    padding: 15px 10px;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.menu-list li a:hover {
    background: #f9f9f9;
    color: var(--color-primary);
}
body.menu-open { overflow: hidden; }

/* ==========================================================================
   14. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout Adjustments */
    .container { padding: 0 var(--spacing-sm); }
    .main-content-wrapper {
        padding: var(--spacing-md);
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    /* Header Adjustments */
    .header-inner {
        flex-direction: row;
        gap: 0;
        padding: 10px 0;
    }
    .header-left { gap: 8px !important; }
    .header-nav-right {
        gap: 8px !important;
        padding-right: 12px;
    }
    .logo { padding-left: 5px; }
    .logo img { height: 28px; }
    .nav-item-text span { font-size: 11px; }

    /* Footer Adjustments */
    .site-footer { padding: 20px 0; margin-top: 20px; }
    .footer-links { flex-direction: column; gap: 10px; align-items: center; }
    .footer-btn { width: 80%; padding: 10px; text-align: center; display: block; }
    
    /* Slider Adjustments */
    .new-arrival-slider { margin-bottom: 20px; }
    .new-arrival-slider .slider-heading {
        font-size: 14px;
        margin-bottom: 8px;
        padding-bottom: 4px;
        border-bottom: 2px solid var(--color-primary);
    }
    .new-arrival-slider .slider-track { gap: 10px; padding-bottom: 5px; }
    .new-arrival-slider .slider-item { flex: 0 0 130px; border-radius: 8px; }
    .new-arrival-slider .slider-thumb { height: 80px; }
    .new-arrival-slider .slider-title {
        font-size: 11px;
        padding: 4px 6px 0;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    /* Material List: Compact & Single Row override */
    .material-item {
        padding: 10px;
        gap: 8px;
        align-items: flex-start !important; /* Override Base/Desktop */
        flex-wrap: nowrap;
        flex-direction: row !important; /* Force row override */
        display: flex !important;
    }
    .material-item .material-thumb { display: none; }
    
    .material-item .material-info {
        flex: 1 1 0;
        min-width: 0;
        margin-right: 4px;
    }
    
    /* Smaller Fonts & Reset Truncation */
    .material-item .material-info h3 {
        font-size: 13px !important;
        margin-bottom: 4px;
        line-height: 1.4;
        color: #333 !important;
        display: block !important;
        visibility: visible !important;
        /* Force single line truncation */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Tag Styles (Minimal like Desktop) */
    .material-info .material-tag {
        font-size: 10px;
        padding: 0 0 1px 0;
        margin-bottom: 4px;
        background: transparent;
        color: #666;
        border-radius: 0;
        border-bottom: 1px solid var(--color-primary);
        display: inline-block;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .material-item .material-meta {
        font-size: 10px;
        line-height: 1.3;
        color: #666 !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Actions: Horizontal Row on Right */
    .material-actions {
        width: auto;
        flex-direction: row !important; /* Horizontal alignment */
        flex-wrap: wrap; /* Allow wrap if space is tight */
        justify-content: center;
        align-items: center;
        border-top: none;
        margin-top: 0;
        padding-top: 0;
        margin-left: 4px;
        gap: 2px;
        flex-shrink: 0;
        max-width: none; /* remove constraint to allow flexibility */
    }
    
    /* Smaller Buttons */
    .material-actions .btn-mono-icon-sm {
        min-width: 44px;
        padding: 0;
    }
    .material-actions .btn-mono-icon-sm .icon-circle { margin-bottom: 1px; }
    .material-actions .btn-mono-icon-sm .icon-circle svg { width: 22px; height: 22px; }
    .material-actions .btn-mono-icon-sm .btn-text { font-size: 9px; line-height: 1.1; }

    /* Single Material Page Adjustments */
    .entry-title { font-size: 22px !important; }
    .single-material-container .entry-title {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }
    .single-material-container .single-thumbnail {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
    .single-material-container .entry-content {
        margin-bottom: 20px !important;
        font-size: 14px;
    }
    .single-actions { gap: 20px; }
    
    /* White Box Mobile */
    .content-white-box {
        padding: 40px 24px;
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    /* MyPage Mobile */
    .mypage-hero {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        border-radius: 20px;
        margin-bottom: 40px;
    }
    .hero-greeting { max-width: 100%; margin-bottom: 30px; }
    .hero-greeting h2 { font-size: 24px; }
    .hero-search-widget { width: 100%; padding: 25px; }
    .material-grid { grid-template-columns: 1fr; gap: 20px; }
    .card-title { font-size: 18px; }
    .btn-action-new { padding: 12px 0; font-size: 13px; }
    
    /* Branding Mobile */
    .site-branding .logo-link { gap: 8px; }
    .site-branding .site-logo { height: 32px; }
    .org-type { font-size: 10px; }
    .org-name { font-size: 12px; }
}

/* ==========================================================================
   15. DESKTOP SPECIFIC (min-width: 769px)
   ========================================================================== */
@media (min-width: 769px) {
    .material-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* Detail refinements for desktop cards */
    .material-item {
        display: flex;
        align-items: center; /* Vertically center content */
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        padding: 16px 24px;
        transition: transform 0.2s, box-shadow 0.2s;
        position: relative;
        overflow: hidden;
    }
    .material-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    /* Thumbnail overrides */
    .material-item .material-thumb {
        width: 200px; /* Larger on desktop */
        height: 112px;
        flex-shrink: 0;
        margin-right: 30px;
        border-radius: 8px;
        object-fit: cover;
    }
    /* Fallback for no-image */
    .material-item div.material-thumb {
        background: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #999;
    }

    /* Info Area */
    .material-item .material-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: 20px;
    }

    /* Stylish Tags (Minimal Style for Desktop) */
    .material-tag {
        display: inline-block;
        font-size: 12px;
        font-weight: 600;
        color: #666;
        border-bottom: 2px solid var(--color-primary);
        padding-bottom: 2px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: transparent; /* Override base background */
        border-radius: 0; /* Override base radius */
        padding: 0; /* Override base padding */
    }

    /* Title Enforce Styles */
    .material-item .material-info h3 {
        font-size: 18px !important;
        margin-bottom: 8px;
        color: #333 !important;
        display: block !important;
        visibility: visible !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Meta */
    .material-item .material-meta {
        font-size: 14px;
        color: #666;
        line-height: 1.5;
    }

    /* Actions */
    .material-actions {
        display: flex;
        flex-direction: row;
        gap: 4px;
        align-items: center;
        flex-shrink: 0;
    }
    
    /* YouTube Embed Wrapper (Preserved) */
    .youtube-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .youtube-wrapper iframe {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 1;
    }
}

/* ==========================================================================
   16. SPECIFIC RESPONSIVE BREAKPOINTS
   ========================================================================== */
/* Single Page Split Hero Breakpoint */
@media screen and (max-width: 900px) {
    .site-decoration-left, .site-decoration-right, 
    .single-material .site-decoration-left, 
    .single-material .site-decoration-right {
        display: none;
    }
    
    .split-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .split-hero-content { display: contents; }
    
    /* Reorder: Tags -> Visual -> Actions -> Title -> Meta */
    .hero-tags { order: 1; margin-bottom: 10px; text-align: center; }
    .split-hero-visual { order: 2; margin-bottom: 15px; padding: 0; }
    .hero-actions { order: 3; width: 100%; margin-top: 10px; margin-bottom: 20px; }
    
    .hero-title {
        order: 4;
        font-size: 24px;
        text-align: left;
        margin-bottom: 10px;
    }
    .hero-meta {
        order: 5;
        margin-bottom: 10px;
        text-align: left;
    }

    .btn-hero-action { justify-content: center; }
    .single-content-card { padding: 40px 24px; border-radius: 20px; }
    .split-hero-section { padding: 20px 0 40px; }
}

/* WP-Members Mobile Specific */
@media screen and (max-width: 480px) {
    #wpmem_login { padding: 0 5px; }
    
    /* Force full width on mobile inputs */
    #wpmem_login input[type="text"],
    #wpmem_login input[type="password"],
    #wpmem_login input[type="email"],
    #wpmem_login input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    #wpmem_login fieldset {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #wpmem_login label {
        width: 100% !important;
    }
}

/* ==========================================================================
   17. UNUSED CANDIDATES (COMMENTED OUT)
   ========================================================================== */
/*
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.material-card-new { ... }
.card-header, .cat-badge, .new-badge { ... }
.card-thumb-area, .new-card-thumb { ... }
.mypage-hero { ... }
.hero-greeting { ... }
*/

