/* Subpage Common Styles (Light Theme) */

:root {
    --bg-light: #ffffff;
    --bg-light-alt: #f8f9fa;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border-light: #e5e5e5;
    --accent-blue: #0058a5;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* Header (Light) */
header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid var(--border-light);
    mix-blend-mode: normal !important;
    color: var(--text-main) !important;
}

.logo {
    font-family: 'Michroma', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0058a5 !important;
    letter-spacing: 0.05em;
}

nav a {
    color: #0058a5 !important;
    opacity: 0.7;
    transition: opacity 0.3s ease, font-weight 0.3s ease;
}

nav a:hover {
    opacity: 1;
    font-weight: 600;
}

nav a.active {
    color: #0058a5 !important;
    opacity: 1;
    font-weight: 700;
}

.btn-nav {
    border-color: var(--accent-blue) !important;
    color: var(--accent-blue) !important;
}

.btn-nav:hover,
.btn-nav.active {
    border-color: var(--accent-blue) !important;
    color: #fff !important;
    background: var(--accent-blue) !important;
}

/* Nav Menu - Desktop Layout */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 1.5rem 0;
}

.nav-item > a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

/* Dropdown Styles for Subpages */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: left;
    list-style: none;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.dropdown li:last-child {
    margin-bottom: 0;
}

.dropdown a {
    color: #333 !important;
    font-size: 0.85rem;
    display: block;
    white-space: nowrap;
    opacity: 0.8;
    transition: 0.2s;
    font-weight: 500;
}

.dropdown a:hover {
    opacity: 1;
    color: var(--accent-blue) !important;
    transform: translateX(5px);
}

/* Footer (Light) */
footer {
    background: var(--bg-light-alt);
    border-top: 1px solid var(--border-light);
}

.footer-logo {
    font-family: 'Michroma', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0058a5;
    letter-spacing: 0.05em;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.copyright {
    color: var(--text-muted);
}

/* Common Buttons (Light) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-blue);
    color: #fff;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 88, 165, 0.3);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
}

/* Common Section Styles */
.section {
    padding: 100px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    font-family: var(--font-en);
    letter-spacing: 0.2em;
    color: var(--accent-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
}

/* Common Page Hero */
.page-hero {
    padding: 180px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.page-label {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 24px;
    font-weight: 600;
}

.page-title {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 32px;
    color: var(--text-main);
}

.page-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Custom Cursor for Subpages (Red Circle) */
body {
    cursor: none;
}

.cursor-follower {
    position: fixed;
    width: 16px;
    height: 16px;
    background: #ff0000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

a, button {
    cursor: none;
}

/* ========================================
   RESPONSIVE DESIGN FOR SUBPAGES
======================================== */

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-follower {
        display: none !important;
    }
    body, a, button {
        cursor: auto;
    }
}

/* Tablet: 1024px以下 */
@media (max-width: 1024px) {
    .page-hero {
        padding: 140px 0 80px;
    }
    
    .page-lead {
        padding: 0 20px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-head {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile: 768px以下 */
@media (max-width: 768px) {
    /* Header for subpages */
    header {
        padding: 1rem 1.5rem;
        mix-blend-mode: normal;
    }
    
    .menu-toggle span {
        background: var(--text-main);
    }
    
    .menu-toggle.active span {
        background: #fff;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-item {
        padding: 0;
        text-align: center;
    }
    
    .nav-item > a {
        font-size: 1.3rem;
        color: #fff !important;
    }
    
    .nav-item > a:hover,
    .nav-item > a.active {
        color: #fff !important;
        opacity: 0.7;
    }
    
    /* Mobile Dropdown */
    .dropdown {
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0.5rem 0;
        opacity: 1;
        visibility: visible;
        text-align: center;
        min-width: auto;
    }
    
    .dropdown a {
        color: #aaa !important;
        font-size: 0.9rem;
    }
    
    .dropdown a:hover {
        transform: none;
    }
    
    .btn-nav {
        border-color: #fff !important;
        color: #fff !important;
        margin-top: 1rem;
    }
    
    .btn-nav.active {
        background: var(--accent-blue) !important;
        border-color: var(--accent-blue) !important;
        color: #fff !important;
    }
    
    /* Page Hero */
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-label {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }
    
    .page-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 24px;
    }
    
    .page-lead {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .page-lead br {
        display: none;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-head {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

/* Small Mobile: 480px以下 */
@media (max-width: 480px) {
    .page-hero {
        padding: 100px 0 40px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-lead {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    nav ul li a {
        font-size: 1.1rem;
    }
}
