/* 全体のスタイル */
:root {
    /* モダンなカラースキーム */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --text-color: #334155;
    --text-light: #94a3b8;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    
    /* モダンなフォント */
    --body-font: 'Inter', 'Noto Sans JP', sans-serif;
    --heading-font: 'Inter', 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--light-color);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-dark);
}

/* コンテナとセクションの余白 */
.container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

section {
    margin-bottom: 4rem;
}

section:last-child {
    margin-bottom: 2rem;
}

h1, h2 {
    margin-bottom: 1.75rem;
}

h3, h4, h5 {
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-body {
    padding: 2rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ヘッダーとナビゲーション */
.navbar {
    transition: all 0.3s ease;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.navbar-scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--dark-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* フッター */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
    background-color: var(--light-color);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* セクションのスタイル */
section {
    padding: 5rem 0;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
}

section h2.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* アイコンスタイル */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 1rem;
}

/* 研究分野カード */
.research-card .card-body {
    text-align: center;
    padding: 2rem;
}

/* ページタイトル */
.page-title {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ボタンのスタイル */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

/* メンバーカード */
.member-card {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    height: 100%;
    border-top: 4px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.member-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 4px solid transparent;
}

.member-card:hover .member-img {
    transform: scale(1.05);
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* メンバーリンクスタイル */
.member-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.member-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.member-links a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* モーダルスタイル */
.member-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.member-modal .modal-header {
    color: white;
    border-bottom: none;
}

.member-detail-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.member-detail-title {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.member-info-section {
    margin-bottom: 2rem;
}

.member-info-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.member-info-section p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 研究プロジェクトのスタイル */
.research-project {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.research-project:last-child {
    margin-bottom: 0;
}

.research-project h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}

/* 論文リスト */
.publication-item {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.publication-item li {
    margin-bottom: 1.25rem;
}

.publication-item li:last-child {
    margin-bottom: 0;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-authors {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.publication-journal {
    color: var(--secondary-color);
}

/* お問い合わせフォーム */
.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 5px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ニュースカード */
.news-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    margin-right: 1rem;
}

.news-date-badge .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* レスポンシブ調整 */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .member-card img {
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* ホームページ専用のスタイル */
.home-section {
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.home-section .container {
    position: relative;
    z-index: 2;
}

/* アクセシビリティ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* スクロールアニメーション */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* コンタクトページのアイコン */
.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 1rem;
}

/* ブログスタイル */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.75rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
    padding-bottom: 0.75rem;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.blog-content p {
    margin-bottom: 1.75rem;
    line-height: 1.9;
    font-size: 1.1rem;
}

.blog-content ul,
.blog-content ol {
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-content blockquote {
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.blog-content pre {
    background-color: #f5f5f5;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.blog-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

/* 記事カードのスタイル */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.article-card .card-title {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-card .card-text {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-card .card-footer {
    background-color: white;
    border-top: none;
    padding-top: 0;
}

/* 公開日や著者情報のスタイル */
.post-meta {
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

/* モバイル調整 */
@media (max-width: 767.98px) {
    .blog-content {
        padding: 1rem 0;
    }
    
    .blog-content h2 {
        margin-top: 2rem;
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        margin-top: 1.5rem;
        font-size: 1.3rem;
    }
    
    .blog-content p,
    .blog-content li {
        font-size: 1rem;
    }
    
    .blog-content blockquote {
        padding: 1rem 1.5rem;
    }
}

/* コンテンツページのスタイル */
.blog-content p,
.research-project p,
.publication-item p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.timeline {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.timeline-item {
    margin-bottom: 2rem;
}

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

/* 研究室メンバーページのスタイル */
.member-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ニュースページのスタイル */
.news-list .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.news-list .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* 共通の装飾 */
.border-bottom {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* モバイル調整 */
@media (max-width: 767.98px) {
    .container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    section {
        margin-bottom: 2.5rem;
    }
    
    .research-project {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* アクセシビリティとUX向上のための調整 */
a:focus, button:focus, input:focus, textarea:focus, select:focus, .btn:focus {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
    box-shadow: none;
}

.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ページ送りボタンの調整 */
.pagination .page-link {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    border-radius: 0.25rem;
}

/* テーブルの視認性向上 */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: rgba(13, 110, 253, 0.05);
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

/* フォーム要素の改善 */
.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* レスポンシブなテキストサイズ */
@media (max-width: 767.98px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
} 