@charset "UTF-8";


/*======================================================================================================================
========================================================================================================================

consultation.css

補完代替療法に関する患者相談対応の手引き

========================================================================================================================
======================================================================================================================*/

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Hiragino Maru Gothic Pro', 'Rounded Mplus 1c', 'M PLUS Rounded 1c', 'Kosugi Maru', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f9fafb;
        }
        
        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 24px;
        }
        
        .nav-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            flex-wrap: wrap;
            gap: 16px;
        }
        
        .nav-button {
            background-color: white;
            border: 2px solid #fecaca;
            color: #dc2626;
            font-weight: bold;
            padding: 12px 24px;
            border-radius: 9999px;
            text-decoration: none;
            transition: background-color 0.3s;
        }
        
        .nav-button:hover {
            background-color: #fef2f2;
        }
        
        .current-page {
            background-color: white;
            border: 2px solid #dbeafe;
            color: #2563eb;
            font-weight: bold;
            padding: 12px 24px;
            border-radius: 9999px;
        }
        
        .tabs-container {
            width: 100%;
            margin-bottom: 40px;
        }
        
        .tabs-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 40px;
        }
        
        /* Mobile carousel styles */
        @media (max-width: 768px) {
            .nav-header {
                flex-direction: column;
                gap: 12px;
            }
            
            .current-page,
            .nav-button {
                width: 100%;
                text-align: center;
                padding: 12px 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 14px;
                box-sizing: border-box;
                height: 80%;
                line-height: 1.2;
            }
            
            .tabs-list {
                display: flex;
                overflow-x: auto;
                gap: 12px;
                margin-bottom: 40px;
                padding: 0 12px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            
            .tabs-list::-webkit-scrollbar {
                display: none;
            }
            
            .tab-button {
                flex: 0 0 auto;
                width: calc(209vw / 4 - 12px);
                min-width: 210px;
                max-width: 280px;
                padding: 4px 1px;
                white-space: normal;
                text-align: center;
                height: 90%;
                font-size: 12px;
                font-weight: bold;
                line-height: 1.1;
                overflow: hidden;
                word-wrap: break-word;
            }
            
            .section-title {
                font-size: 80%;
                line-height: 1.1;
                height: 80%;
            }
            
            .main-title {
                font-size: 80%;
                line-height: 1.1;
                height: 80%;
            }
            
            .section-number {
                font-size: 90%;
                width: 36px;
                height: 36px;
                min-width: 36px;
                min-height: 36px;
                flex-shrink: 0;
            }
            
            .section-header {
                height: 90%;
            }
            
            .navigation-section {
                flex-direction: column;
                gap: 16px;
                align-items: center;
            }
            
            .nav-link-button {
                width: 80%;
                max-width: 300px;
                text-align: center;
                margin: 0 auto;
            }
            
            .container {
                padding: 40px 12px;
            }
            
            .card-content {
                padding-left: 8px;
                padding-right: 8px;
            }
            
            .intro-box {
                padding: 16px 8px;
            }
            
            .reference-box {
                padding: 12px 8px;
            }
            
            .subsection-content,
            .space-y-6 {
                padding-left: 0;
                padding-right: 0;
            }
        }
        
        .tab-button {
            background-color: white;
            border: 2px solid #dbeafe;
            color: #2563eb;
            padding: 16px;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            text-decoration: none;
        }
        
        .tab-button:hover {
            background-color: #eff6ff;
        }
        
        .tab-button.active {
            background-color: #2563eb;
            color: white;
        }
        
        .tab-number {
            background-color: white;
            color: #2563eb;
            border: 2px solid #2563eb;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 20px;
        }
        
        .tab-button.active .tab-number {
            border-color: white;
            background-color: white;
            color: #2563eb;
        }
        
        .tab-label {
            font-size: 14px;
            text-align: center;
            padding: 0 8px;
        }
        
        .title-section {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .main-title {
            font-size: 36px;
            font-weight: bold;
            color: #2563eb;
            margin-bottom: 24px;
            line-height: 1.2;
        }
        
        @media (max-width: 768px) {
            .main-title {
                font-size: 28px;
                line-height: 1.2;
                width: 100%;
                max-width: 100%;
                padding: 0 8px;
                box-sizing: border-box;
                word-wrap: break-word;
                overflow-wrap: break-word;
                letter-spacing: 0.5px;
            }
            
            .subtitle-badge {
                padding: 11px 32px;
            }
            
            .section-number {
                font-size: 90% !important;
                width: 36px !important;
                height: 36px !important;
                min-width: 36px !important;
                min-height: 36px !important;
                flex-shrink: 0;
            }
            
            .title-section {
                width: 100%;
                max-width: 100%;
                padding: 0;
                margin: 0 0 40px 0;
            }
        }
        
        @media (max-width: 480px) {
            .main-title {
                font-size: 24px;
                letter-spacing: 0.3px;
                padding: 0 4px;
            }
        }
        
        .subtitle-badge {
            background-color: #2563eb;
            color: white;
            padding: 16px 32px;
            border-radius: 9999px;
            display: inline-block;
            font-size: 20px;
        }
        
        .intro-box {
            border: 1px solid #dbeafe;
            padding: 32px;
            border-radius: 16px;
            margin-bottom: 40px;
            background-color: white;
        }
        
        .main-image {
            margin-top: 32px;
            display: flex;
            justify-content: center;
        }
        
        .main-image img {
            max-width: 480px;
            width: 100%;
            height: auto;
            border-radius: 12px;
        }
        
        .intro-text {
            color: #2563eb;
            line-height: 1.8;
        }
        
        .content-card {
            border: 2px solid #dbeafe;
            border-radius: 16px;
            overflow: hidden;
            background-color: white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        .card-content {
            padding: 32px;
        }
        
        .tab-content {
            display: none;
            animation: fadeIn 0.6s ease-in-out;
        }
        
        .tab-content.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .section-header {
            display: flex;
            align-items: center;
            background-color: #2563eb;
            color: white;
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 32px;
        }
        
        .section-number {
            font-size: 36px;
            font-weight: bold;
            margin-right: 16px;
            background-color: white;
            color: #2563eb;
            border-radius: 50%;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .section-title {
            font-size: 24px;
            font-weight: bold;
        }
        
        .toc-box {
            background-color: #f0f8ff;
            padding: 24px;
            border-radius: 12px;
            border: 1px solid #dbeafe;
            margin-bottom: 32px;
        }
        
        .toc-list {
            list-style: none;
        }
        
        .toc-item {
            margin-bottom: 8px;
        }
        
        .toc-link {
            color: #2563eb;
            text-decoration: none;
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        
        .toc-link:hover {
            text-decoration: underline;
        }
        
        .toc-bullet {
            margin-right: 12px;
        }
        
        .subsection-header {
            display: flex;
            align-items: center;
            margin-bottom: 24px;
            margin-top: 32px;
        }
        
        .subsection-bar {
            background-color: #2563eb;
            width: 8px;
            height: 48px;
            margin-right: 16px;
            border-radius: 4px;
        }
        
        .subsection-title {
            font-weight: bold;
            color: #1e40af;
            font-size: 20px;
        }
        
        .info-box {
            background-color: #eff6ff;
            padding: 20px;
            border-radius: 12px;
            margin-top: 24px;
            border: 1px solid #dbeafe;
        }
        
        .info-title {
            font-weight: bold;
            color: #1e40af;
            margin-bottom: 12px;
        }
        
        .info-list {
            list-style: disc;
            padding-left: 32px;
            margin-top: 12px;
        }
        
        .info-list li {
            margin-bottom: 12px;
            line-height: 1.8;
        }
        
        .highlight-text {
            font-weight: 600;
            color: #2563eb;
        }
        
        .reference-box {
            background-color: #e5e7eb;
            border: 1px solid #d1d5db;
            padding: 20px;
            border-radius: 12px;
            text-align: left;
            font-size: 14px;
            margin-top: 24px;
        }
        
        .reference-title {
            font-weight: bold;
            color: #374151;
            margin-bottom: 12px;
        }
        
        .leading-relaxed {
            line-height: 1.8;
            margin-bottom: 16px;
        }
        
        .ml-2 {
            margin-left: 8px;
        }
        
        .ml-8 {
            margin-left: 32px;
        }
        
        .mt-3 {
            margin-top: 12px;
        }
        
        .mt-6 {
            margin-top: 24px;
        }
        
        .mb-3 {
            margin-bottom: 12px;
        }
        
        .mb-4 {
            margin-bottom: 16px;
        }
        
        .space-y-2 > * + * {
            margin-top: 8px;
        }
        
        .space-y-3 > * + * {
            margin-top: 12px;
        }
        
        .space-y-4 > * + * {
            margin-top: 16px;
        }
        
        .space-y-6 > * + * {
            margin-top: 24px;
        }
        
        .space-y-8 > * + * {
            margin-top: 32px;
        }
        
        .flex {
            display: flex;
        }
        
        .items-center {
            align-items: center;
        }
        
        .pl-8 {
            padding-left: 32px;
        }
        
        sup {
            vertical-align: super;
            font-size: smaller;
        }
        
        .navigation-section {
            display: flex;
            justify-content: space-between;
            padding: 24px;
            margin-top: 32px;
        }
        
        .nav-link-button {
            background-color: #2563eb;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            display: inline-block;
            transition: background-color 0.3s;
            cursor: pointer;
            width: 240px;
            text-align: center;
            font-size: 120%;
        }
        
        .nav-link-button:hover {
            background-color: #1d4ed8;
        }

        .download-section {
            margin-top: 40px;
            background-color: #eff6ff;
            border: 2px solid #dbeafe;
            padding: 24px;
            text-align: center;
            border-radius: 16px;
        }
        
        .download-button {
            background-color: #2563eb;
            color: white;
            padding: 12px 32px;
            font-weight: bold;
            border-radius: 9999px;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 12px;
        }
        
        .download-button:hover {
            background-color: #1d4ed8;
        }
        
        .link-button {
            display: block;
            background-color: #6b7280;
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            font-size: 80%;
            transition: background-color 0.3s;
            margin-top: 12px;
            text-align: center;
            width: fit-content;
            margin-left: auto;
            margin-right: 0;
        }
        
        .link-button:hover {
            background-color: #4b5563;
        }
        
        /* Image zoom modal styles */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
        }
        
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 95%;
            max-height: 95%;
        }
        
        .modal-image {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }
        
        .close-modal {
            position: absolute;
            top: 10px;
            right: 20px;
            color: white;
            font-size: 30px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
        }
        
        .close-modal:hover {
            opacity: 0.7;
        }
        
        .zoomable-image {
            cursor: pointer;
        }
        
        @media (max-width: 768px) {
            .zoomable-image {
                cursor: pointer;
            }
        }
        
        .text-blue-700 {
            color: #1d4ed8;
        }

/*追加
------------------------------------------------------------------------------*/
#topicpath a,
#header a, 
#footer a {
color: #333;
}
#pagetop a {
color: #fff;
}
.download-button a {
color: #fff;
text-decoration: none;
}

@media only screen and (max-width: 768px) {
    #consultation #pagetop_sp a {
        color: #fff;
        text-decoration: none;
    }
}


    #consultation .bottom-sticky-nav ul li a{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        height: 71px;
        padding: 11px 3px 10px 3px;
        color: #ffffff;
        text-decoration: none;
    }
    }
	
	
	
	


