/* ========================================
   上野ダルク - 現行サイト再現スタイルシート
   ======================================== */

/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f5f5;
    font-size: 14px;
}

a {
    color: #2489e2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ========================================
   トップバー
   ======================================== */
.top-bar {
    background-color: #333;
    color: white;
    font-size: 12px;
    padding: 5px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: white;
    margin: 0 10px;
}

/* ========================================
   ヘッダー
   ======================================== */
header {
    background-color: white;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.site-title-text {
    display: flex;
    flex-direction: column;
}

.site-title-main {
    font-size: 28px;
    font-weight: bold;
    color: #2489e2;
    line-height: 1.2;
}

.site-title-sub {
    font-size: 14px;
    color: #2489e2;
}

.header-contact {
    text-align: right;
}

.header-contact p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.header-phone {
    font-size: 24px;
    font-weight: bold;
    color: #2489e2;
}

/* ========================================
   ナビゲーション
   ======================================== */
nav {
    background-color: white;
    border-bottom: 3px solid #2489e2;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

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

/* 全メニュー項目の▲マーク */
.nav-menu li::after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #ccc;
}

.nav-menu a {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.nav-menu .menu-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.nav-menu .menu-label-en {
    display: block;
    font-size: 11px;
    color: #2489e2;
    margin-top: 2px;
}

/* アクティブなページの下線 */
.nav-menu li.active {
    border-bottom: 3px solid #2489e2;
    margin-bottom: -3px;
}

/* アクティブページの▲マークは青色 */
.nav-menu li.active::after {
    border-bottom-color: #2489e2;
    bottom: 0;
}

/* ========================================
   メインコンテンツ
   ======================================== */
main {
    background-color: white;
    min-height: 500px;
}

.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 30px 20px;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

/* ページタイトル */
.page-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.breadcrumb {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #2489e2;
}

/* コンテンツセクション */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-left: 15px;
    padding-bottom: 10px;
    border-left: 4px solid #2489e2;
    border-bottom: 1px dotted #ccc;
    line-height: 1.4;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.9;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

/* DARC の強調表示 */
.darc-highlight {
    color: #CC0000;
    font-weight: bold;
}

.rehabilitation-highlight {
    color: #CC0000;
}



/* ========================================
   サイドバー
   ======================================== */
.search-box {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.search-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.search-form {
    display: flex;
    gap: 5px;
}

.search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.search-button {
    padding: 8px 15px;
    background-color: #2489e2;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.search-button:hover {
    background-color: #1a6bc0;
}

/* ========================================
   フッター
   ======================================== */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 20px;
}

.footer-nav a {
    color: white;
    font-size: 13px;
}

.footer-nav a:hover {
    color: #2489e2;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* ========================================
   連絡先ボックス
   ======================================== */
.contact-info {
    background-color: #f0f8ff;
    border: 2px solid #2489e2;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.contact-info p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.contact-info .phone {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #2489e2;
    margin-top: 5px;
}

/* ========================================
   PDFビューアー
   ======================================== */
.pdf-viewer {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-viewer iframe {
    display: block;
    width: 100%;
    min-height: 800px;
}

/* ========================================
   書籍グリッド
   ======================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.book-item {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}

.book-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-cover {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.book-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.book-publisher {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.book-price {
    font-size: 13px;
    color: #2489e2;
    font-weight: bold;
}

/* ========================================
   動画グリッド
   ======================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.video-item {
    background-color: #fff;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 4px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    font-size: 13px;
    color: #333;
    margin-top: 10px;
    line-height: 1.5;
    text-align: left;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .site-title-main {
        font-size: 22px;
    }
    
    .header-phone {
        font-size: 20px;
    }
    
    /* モバイルメニュー */
    .menu-toggle {
        display: block;
        width: 100%;
        background-color: #2489e2;
        color: white;
        border: none;
        padding: 15px;
        font-size: 16px;
        cursor: pointer;
        text-align: left;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    /* メインコンテンツ */
    .main-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    /* 書籍グリッド */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 動画グリッド */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .site-title-main {
        font-size: 18px;
    }
    
    .nav-menu .menu-label {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 16px;
    }
}
