/* ============================================
   共通CSSスタイル - Ouraid
   ============================================ */

/* ============================================
   1. カラーパレット
   ============================================ */
:root {
    --primary-blue: #7dd3fc;
    --light-blue: #bae6fd;
    --pale-pink: #fbcfe8;
    --light-pink: #fce7f3;
    --soft-purple: #e9d5ff;
    --soft-green: #bbf7d0;
    --soft-yellow: #fef08a;
    --white: #ffffff;
    --text-dark: #334155;
    --text-gray: #64748b;
    --bg-light: #f8f9fa;
}

/* ============================================
   2. ナビゲーション
   ============================================ */
.site-logo {
    display: block !important;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block !important;
}

.sp_top_img {
    display: block !important;
}

#navigation {
    margin-bottom: 0;
    padding: 15px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   3. ページヘッダー
   ============================================ */
.page-header {
    margin-top: 100px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #bae6fd 0%, #e9d5ff 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.page-header .subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    position: relative;
}

.page-header .description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 1000px;
    line-height: 1.8;
    position: relative;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
}

.breadcrumb-custom a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-custom a:hover {
    color: var(--primary-blue);
}

/* ============================================
   4. コンテンツエリア
   ============================================ */
.content-area {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* ============================================
   5. セクションタイトル
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--pale-pink));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
}

/* ============================================
   6. イントロカード
   ============================================ */
.intro-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--primary-blue);
}

.intro-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.intro-card p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 15px;
}

/* ============================================
   7. インフォボックス
   ============================================ */
.info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3f9 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.info-box h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.info-box h5 i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.info-box p {
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.8;
}

/* ============================================
   8. 警告ボックス
   ============================================ */
.warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border-left: 5px solid #f97316;
}

.warning-box h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.warning-box h5 i {
    margin-right: 10px;
    color: #f97316;
}

.warning-box p {
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.8;
}

/* ============================================
   9. 比較セクション・グリッド
   ============================================ */
.comparison-section,
.comparison-box {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.comparison-box {
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comparison-box h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.comparison-card,
.comparison-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3f9 100%);
    border-radius: 12px;
    padding: 25px;
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s;
}

.comparison-item {
    border-radius: 10px;
    padding: 20px;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 211, 252, 0.2);
}

.comparison-card h4,
.comparison-item h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.comparison-item h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.comparison-card h4 i,
.comparison-item h5 i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.comparison-card ul,
.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-card ul li,
.comparison-item ul li {
    padding: 10px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.comparison-item ul {
    margin: 0;
}

.comparison-item ul li {
    padding: 5px 0;
    padding-left: 20px;
}

.comparison-card ul li::before,
.comparison-item ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

.comparison-item ul li::before {
    content: "•";
}

/* ============================================
   10. タイムラインセクション
   ============================================ */
.timeline-section {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.timeline-section h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    max-width: 100%;
    margin: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    align-items: start;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-marker {
    background: linear-gradient(135deg, var(--primary-blue), var(--pale-pink));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(125, 211, 252, 0.3);
    line-height: 1.3;
    word-break: keep-all;
}

.timeline-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3f9 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.timeline-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   11. 薬物カテゴリカード
   ============================================ */
.drug-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.drug-category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.drug-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(125, 211, 252, 0.3);
}

.drug-category-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--pale-pink));
    color: white;
    text-align: center;
}

.drug-category-header i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.drug-category-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.drug-category-body {
    padding: 30px;
}

.drug-category-body p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.drug-category-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drug-category-features li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.drug-category-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ============================================
   12. 作用機序セクション
   ============================================ */
.mechanism-section {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.mechanism-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3f9 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.mechanism-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(125, 211, 252, 0.2);
}

.mechanism-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.mechanism-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.mechanism-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   13. カテゴリーカード
   ============================================ */
.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border-left: 5px solid var(--primary-blue);
    scroll-margin-top: 110px;
}

.category-card.applied {
    border-left: 5px solid var(--pale-pink);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 211, 252, 0.2);
}

.category-card.applied:hover {
    box-shadow: 0 10px 30px rgba(251, 207, 232, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7dd3fc 0%, #fbcfe8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.category-icon i {
    color: white;
    font-size: 28px;
}

.category-title {
    flex: 1;
}

.category-title h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.category-title h3 a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    position: relative;
    padding-right: 40px;
    transition: color 0.3s;
}

.category-title h3 a::after {
    content: "›";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.category-card.applied .category-title h3 a::after {
    color: var(--pale-pink);
}

.category-title h3 a:hover {
    color: var(--primary-blue);
}

.category-card.applied .category-title h3 a:hover {
    color: #f472b6;
}

.category-title h3 a:hover::after {
    transform: translateY(-50%) translateX(5px);
}

.category-title .subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

.category-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.disorder-list,
.topic-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.disorder-item,
.topic-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
}

.disorder-item:last-child,
.topic-item:last-child {
    border-bottom: none;
}

.disorder-item::before,
.topic-item::before {
    content: "▸";
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.category-card.applied .topic-item::before {
    color: var(--pale-pink);
}

.disorder-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 8px;
}

.disorder-desc,
.topic-item span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.disorder-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.disorder-link:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

/* ============================================
   14. 目次（TOC）
   ============================================ */
.toc-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 16px;
    margin: 20px 0 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 520px;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

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

.toc-list li {
    border-bottom: 1px solid #e5e7eb;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-link {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.toc-link:hover {
    background: rgba(125, 211, 252, 0.15);
    color: var(--primary-blue);
}

.toc-link.active {
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.2) 0%, rgba(125, 211, 252, 0) 100%);
    color: var(--primary-blue);
    font-weight: 600;
}

.toc-link.active .toc-num {
    color: var(--primary-blue);
    font-weight: 700;
}

.toc-link.active .toc-text {
    color: var(--primary-blue);
    font-weight: 600;
}

.toc-num {
    flex: 0 0 auto;
    min-width: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.4;
}

.toc-text {
    flex: 1;
    color: var(--text-gray);
    line-height: 1.4;
}

.toc-link:hover .toc-text {
    color: var(--text-dark);
}

/* ============================================
   15. 2カラムレイアウト
   ============================================ */
.dsm-layout,
.psychology-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.dsm-left,
.psychology-left {
    flex: 0 0 260px;
    position: sticky;
    top: 110px;
}

.dsm-right,
.psychology-right {
    flex: 1;
    min-width: 0;
}

/* ============================================
   16. トピックカード
   ============================================ */
.topic-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border-left: 5px solid var(--primary-blue);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 211, 252, 0.2);
}

.topic-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.topic-card h3 i {
    margin-right: 15px;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.topic-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.topic-card p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 15px;
}

.topic-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.topic-card ul li {
    padding: 10px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 30px;
}

.topic-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   17. テーブル
   ============================================ */
.drug-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.drug-table th {
    background: linear-gradient(135deg, #7dd3fc 0%, #fbcfe8 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: left;
}

.drug-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-gray);
}

.drug-table tr:last-child td {
    border-bottom: none;
}

.drug-table tr:hover {
    background: #f8f9fa;
}

/* ============================================
   18. 実践例カード
   ============================================ */
.example-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px dashed var(--light-blue);
    transition: all 0.3s;
}

.example-card:hover {
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

.example-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.example-card p {
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ============================================
   19. ラインマーカーエフェクト
   ============================================ */
/* ============================================
   20. CTAセクション
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #7dd3fc 0%, #fbcfe8 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.cta-section p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: var(--primary-blue);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.cta-btn:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   21. ナビゲーションボタン
   ============================================ */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    gap: 20px;
}

.nav-btn {
    flex: 1;
    display: block;
    padding: 20px 30px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(125, 211, 252, 0.2);
}

.nav-btn .btn-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.nav-btn .btn-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   22. フッター
   ============================================ */
.footer {
    background: linear-gradient(to right, #bae6fd 0%, #fce7f3 100%) !important;
}

.footer a {
    transition: color 0.3s;
}

.footer a:hover {
    color: #0ea5e9;
}

/* ============================================
   23. レスポンシブデザイン
   ============================================ */
@media (max-width: 992px) {

    .dsm-layout,
    .psychology-layout {
        flex-direction: column;
    }

    .dsm-left,
    .psychology-left {
        position: static;
        flex: 0 0 auto;
        width: 100%;
    }

    .category-card {
        scroll-margin-top: 90px;
    }

    .toc-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 80px;
        padding: 50px 0 40px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header .subtitle {
        font-size: 1.1rem;
    }

    .category-card {
        padding: 20px;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .category-title h3 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .intro-card,
    .comparison-section,
    .timeline-section,
    .mechanism-section,
    .topic-card {
        padding: 30px 25px;
    }

    .cta-section {
        padding: 40px 25px;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .comparison-grid,
    .drug-category-grid,
    .mechanism-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 100px 1fr;
        gap: 20px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .timeline-marker {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
    }

    .drug-table {
        font-size: 0.9rem;
    }

    .drug-table th,
    .drug-table td {
        padding: 10px;
    }
}