:root {
    --primary-color: #00A0E9;
    --secondary-color: #4CAF50;
    --accent-color: #FF6B6B;
    --bg-color: #F5F5F5;
    --white: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-medium: 0 6px 16px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-focus: 0 0 0 3px rgba(0,160,233,0.2);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* アクセシビリティ - フォーカススタイル */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.main-header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: visible; /* メガメニューがヘッダー外に表示されるように */
}

.navbar {
    padding: 0;
    overflow: visible; /* メガメニューが表示されるように */
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    overflow-x: hidden;
    overflow-y: visible; /* メガメニューが縦方向に表示されるように */
    width: 100%;
    max-width: 100%;
}

.navbar-brand {
    flex-shrink: 0;
    max-width: 50%;
    min-width: 0;
}

.navbar-brand .brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
}

.navbar-brand .brand-link i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.navbar-brand .brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-menu {
    display: flex;
    overflow: visible; /* メガメニューが表示されるように */
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    overflow: visible; /* メガメニューが表示されるように */
    min-width: 0;
    flex-shrink: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.nav-link.cta-nav {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.nav-link.cta-nav::after {
    display: none;
}

.nav-link.cta-nav:hover {
    background-color: #e55555;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
}

.nav-link i {
    margin-right: 0.5rem;
}

.navbar-burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
}

.navbar-burger span {
    height: 2px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* ドロップダウンメニュー */
.nav-dropdown {
    position: relative;
    z-index: 1001;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-toggle span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-toggle .fas.fa-chevron-down {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-toggle .fas.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.3s ease, visibility 0.2s;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.875rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.dropdown-link i {
    margin-right: 0.5rem;
    width: 16px;
    color: var(--primary-color);
}

/* メインコンテンツ */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,160,233,0.3);
}

.btn-primary:hover {
    background-color: #0088c7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,160,233,0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,160,233,0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

.btn-secondary:hover {
    background-color: #43a047;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(76,175,80,0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

.btn-accent:hover {
    background-color: #e55555;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.btn-accent:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255,107,107,0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* カード */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,160,233,0.02) 0%, rgba(76,175,80,0.02) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,160,233,0.1);
}

.card:hover::after {
    opacity: 1;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #fafafa;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.lp-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.5;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 3);
    padding-right: 0;
    margin-right: 0;
}

.lp-card-body {
    padding: 1.5rem;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lp-card-header {
    padding: 1rem 1.5rem 0.5rem;
}

.lp-card-footer {
    padding: 1rem 1.5rem;
    margin-top: auto;
}

.lp-card-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-shrink: 0;
}

.lp-card-meta {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.lp-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lp-card-meta i {
    font-size: 0.875rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ランキングバッジ */
.lp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ranking-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 3px solid var(--white);
}

.ranking-badge.ranking-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.ranking-badge.ranking-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.ranking-badge.ranking-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.rank-number {
    font-size: 1.5rem;
    line-height: 1;
}

/* セクション */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,160,233,0.2));
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* グリッド */
.grid {
    display: grid;
    gap: 2.5rem;
}

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

/* グリッドアイテムのスムーズな表示 */
.grid > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.grid > *:nth-child(1) { animation-delay: 0.1s; }
.grid > *:nth-child(2) { animation-delay: 0.2s; }
.grid > *:nth-child(3) { animation-delay: 0.3s; }
.grid > *:nth-child(4) { animation-delay: 0.4s; }
.grid > *:nth-child(5) { animation-delay: 0.5s; }
.grid > *:nth-child(6) { animation-delay: 0.6s; }

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

/* 固定CTAボタン */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
}

.fixed-cta-button {
    display: flex;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.fixed-cta-button:hover {
    background-color: #e55555;
    transform: scale(1.05);
}

.fixed-cta-button i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* フッター */
.main-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
}

.footer-disclaimer {
    background-color: #444;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.footer-disclaimer i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.footer-copy {
    text-align: center;
    color: #cccccc;
}

.affiliate-notice {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* レスポンシブ */
@media (max-width: 1200px) {
    .navbar .container {
        padding: 1rem 15px;
    }
    
    .navbar-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.6rem;
    }
    
    .nav-link.cta-nav {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }

    .navbar-brand .brand-link {
        font-size: 1.125rem;
    }

    .navbar-brand .brand-link i {
        font-size: 1.25rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 1rem;
    }
    
    .dropdown-toggle span {
        font-size: 0.875rem;
    }
    
    .dropdown-toggle .fas.fa-chevron-down {
        font-size: 0.7rem;
    }
}

@media (max-width: 1023px) {
    .navbar .container {
        padding: 1rem 12px;
    }
    
    .navbar-nav {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    .nav-link.cta-nav {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .navbar-brand .brand-link {
        font-size: 0.95rem;
    }
    
    .navbar-brand .brand-link i {
        font-size: 1.125rem;
        margin-right: 0.375rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.875rem;
    }
    
    .dropdown-toggle span {
        font-size: 0.8rem;
    }
    
    .dropdown-toggle .fas.fa-chevron-down {
        font-size: 0.65rem;
    }

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

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar-brand .brand-link {
        font-size: 0.875rem;
    }
    
    .navbar-brand .brand-link i {
        font-size: 1rem;
        margin-right: 0.25rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.75rem;
    }
    
    .dropdown-toggle span {
        font-size: 0.75rem;
    }
    
    .dropdown-toggle .fas.fa-chevron-down {
        font-size: 0.6rem;
        margin-left: 0.2rem;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 1rem 20px;
        border-radius: 0;
    }
    
    .navbar-burger {
        display: flex;
    }
    
    .navbar-burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .fixed-cta {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ユーティリティ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-flex { display: flex; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* メガメニュー */
.mega-menu {
    position: fixed; /* fixedに変更してヘッダーの外に表示 */
    top: 80px; /* ヘッダーの高さ分下に配置 */
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    min-width: 800px;
    max-width: 90vw; /* 画面幅の90%を超えないように */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.3s ease, visibility 0.2s;
    z-index: 1003; /* ヘッダーのz-indexより高く設定 */
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-top: 0; /* margin-topを削除 */
}

/* デスクトップ: マウスオーバーでメニューを表示 */
@media (min-width: 768px) {
    .nav-dropdown-mega:hover .mega-menu,
    .nav-dropdown-mega.active .mega-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 800px !important;
        display: flex !important;
    }
    
    /* デスクトップではクリックイベントを無効化（マウスオーバーのみ） */
    .nav-dropdown-mega .dropdown-toggle {
        pointer-events: auto;
    }
}

/* モバイル: クリックのみでメニューを表示 */
@media (max-width: 767px) {
    .nav-dropdown-mega.active .mega-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 800px !important;
        display: flex !important;
    }
    
    .nav-dropdown-mega:hover .mega-menu:not(.active) {
        display: none !important;
    }
}

.mega-menu-header {
    display: flex;
    width: 100%;
    border-bottom: 2px solid var(--primary-color);
}

.menu-column {
    flex: 1;
    border-right: 1px solid var(--border-color);
}

.menu-column:last-child {
    border-right: none;
}

.mega-menu-content {
    width: 100%;
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
    padding: 0;
}

.mega-menu-content.active {
    display: block;
    max-height: 1000px;
    padding: 0;
}

.menu-column-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.menu-column-title:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.menu-column-title span {
    flex: 1;
    white-space: nowrap;
}

.menu-column-icon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.menu-column.active .menu-column-icon,
.mega-menu-header .menu-column.active .menu-column-icon {
    transform: rotate(180deg);
}

.mega-menu-header .menu-column.active .menu-column-title {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.menu-column-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 1.5rem;
}

.menu-column-list li {
    margin-bottom: 0;
}

.menu-column-list .dropdown-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
}

.menu-column-list .dropdown-link i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.menu-column-list .dropdown-link:hover {
    background-color: var(--bg-color);
}

/* モバイル対応 - メガメニュー */
@media (max-width: 1023px) {
    .mega-menu {
        min-width: 500px;
        font-size: 0.875rem;
    }

    .menu-column-title {
        font-size: 0.8rem;
        padding: 0.875rem 1rem;
    }

    .menu-column-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        padding: 1rem;
    }

    .menu-column-list .dropdown-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .nav-dropdown-mega {
        position: relative;
    }

    .nav-dropdown-mega .mega-menu {
        position: static; /* モバイルではstaticのまま */
        min-width: auto;
        width: 100%;
        left: 0;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0;
        border-top: 1px solid var(--border-color);
        top: auto; /* モバイルではtopをautoに */
    }

    .nav-dropdown-mega.active .mega-menu {
        display: flex;
        flex-direction: column;
    }

    /* モバイルではホバーを無効化（クリックのみ） */
    .nav-dropdown-mega:hover .mega-menu:not(.active) {
        display: none;
    }

    .mega-menu-header {
        flex-direction: column;
        border-bottom: none;
        width: 100%;
    }

    .menu-column {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .menu-column:last-child {
        border-bottom: none;
    }

    .menu-column-title {
        padding: 1rem;
        font-size: 0.875rem;
        width: 100%;
        border-bottom: 2px solid var(--primary-color);
        box-sizing: border-box;
    }

    .mega-menu-content {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        display: none;
        padding: 0;
    }

    .mega-menu-content.active {
        display: block;
        max-height: 2000px;
        padding: 0;
    }

    .menu-column-list {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.5rem;
    }

    .menu-column-list .dropdown-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .menu-column-list .dropdown-link span {
        white-space: normal;
    }
}

/* ========================================
   診療メニューから探す - グループリスト型
   ======================================== */

.medical-fields-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.medical-field-group {
    margin-bottom: 3rem;
}

.medical-field-group:last-child {
    margin-bottom: 0;
}

.group-header {
    margin-bottom: 1.5rem;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.group-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.2;
}

.group-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.field-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.field-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(8px);
}

.field-item:hover::before {
    transform: scaleY(1);
}

.field-item-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.field-icon-wrapper {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.field-item:hover .field-icon-wrapper {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 160, 233, 0.3);
}

.field-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.field-count {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.field-count::before {
    content: '\f15c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 0.75rem;
}

.field-item-right {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: var(--transition);
}

.field-item:hover .field-item-right {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .medical-fields-wrapper {
        max-width: 100%;
    }

    .medical-field-group {
        margin-bottom: 2rem;
    }

    .group-title {
        font-size: 1.1rem;
    }

    .field-item {
        padding: 1rem;
    }

    .field-item:hover {
        transform: translateX(4px);
    }

    .field-icon-wrapper {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.25rem;
    }

    .field-item-left {
        gap: 1rem;
    }

    .field-name {
        font-size: 1rem;
    }

    .field-count {
        font-size: 0.8rem;
    }

    .field-item-right {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand .brand-link {
        font-size: 0.75rem;
    }
    
    .navbar-brand .brand-link i {
        font-size: 0.875rem;
        margin-right: 0.25rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.625rem;
    }
    
    .dropdown-toggle span {
        font-size: 0.625rem;
    }
    
    .dropdown-toggle .fas.fa-chevron-down {
        font-size: 0.5rem;
        margin-left: 0.15rem;
    }
    
    .field-item {
        padding: 0.875rem;
    }

    .field-icon-wrapper {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

    .field-item-left {
        gap: 0.75rem;
    }

    .field-name {
        font-size: 0.95rem;
    }

    .field-count {
        font-size: 0.75rem;
    }
}