/* 全体設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #4a7c59;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #3a6149;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ヘッダー */
header {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 8px;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
    object-fit: contain;
    max-width: 200px;
    display: block;
    min-height: 40px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.logo-text h1 a {
    color: #333;
    text-decoration: none;
}

.logo-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* ナビゲーション */
.main-nav {
    background: linear-gradient(to bottom, #5a8c69, #4a7c59);
    padding: 10px 0;
    position: relative;
    z-index: 99;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* メインビジュアル */
.hero-banner {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.hero-banner:hover img {
    transform: scale(1.02);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    padding: 30px 20px 20px;
}

.hero-content h2 {
    margin-bottom: 10px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    font-size: 1.8rem;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    max-width: 800px;
}

/* セクションスタイル */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #4a7c59;
    margin: 10px auto 0;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
}

/* セクションプレビュー */
.section-preview {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.more-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(to bottom, #5a8c69, #4a7c59);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 500;
}

.more-link:hover {
    background: linear-gradient(to bottom, #3a6149, #2a5139);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

/* 研究内容（従来版） */
.featured-research {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.research-item {
    flex: 1 1 300px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.research-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.research-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

.research-item:hover img {
    transform: scale(1.05);
}

.research-content {
    padding: 20px;
}

.research-item h3 {
    margin-bottom: 10px;
    color: #333;
    position: relative;
    padding-bottom: 8px;
}

.research-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a7c59;
}

/* SVGアイコン用のスタイル */
.icon-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.research-icon {
    width: 100%;
    height: 100%;
    max-width: 50px;
    max-height: 50px;
    display: block;
}

/* 研究項目のレイアウト調整（SVG用） - 修正版 */
.research-item-svg {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.research-item-svg:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ニュース */
.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.news-date {
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.news-item h4 {
    margin-bottom: 5px;
}

/* 論文リスト */
.publication-item {
    margin-bottom: 20px;
}

.publication-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.publication-authors {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 3px;
}

.publication-journal {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* 教授紹介ページ専用スタイル */
.professor-profile {
    background-color: #fff;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-width: 1000px;
}

.professor-section {
    margin-bottom: 40px;
    padding: 0 20px;
}

.research-section {
    background: linear-gradient(135deg, #fdfffe 0%, #f0f8ff 100%);
    border: 2px solid #4a7c59;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 20px;
    position: relative;
    overflow: hidden;
}

.research-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(90deg, #5a8c69, #4a7c59, #5a8c69);
    border-radius: 12px 12px 0 0;
}

.research-section h4 {
    color: #2d5a3d;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #4a7c59;
    padding-bottom: 8px;
    display: inline-block;
}

.research-section .research-topics {
    margin: 20px 0;
    padding: 0 10px;
}

.research-section .research-topics ol {
    padding-left: 0;
    list-style: none;
    counter-reset: research-counter;
}

.research-section .research-topics li {
    counter-increment: research-counter;
    margin-bottom: 15px;
    padding: 12px 0 12px 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px 20px 12px 50px;
    border-left: 4px solid #4a7c59;
}

.research-section .research-topics li::before {
    content: counter(research-counter) ".";
    position: absolute;
    left: 15px;
    top: 12px;
    color: #4a7c59;
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(74, 124, 89, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    margin: 15px 0;
    padding: 0 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 12px;
    padding: 8px 0 8px 25px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: #4a7c59;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 20px;
    width: 2px;
    height: calc(100% + 4px);
    background: #ddd;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    min-width: 140px;
    color: #666;
    font-size: 0.85rem;
    margin-right: 20px;
    font-weight: 500;
}

.timeline-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.publications-list {
    margin-top: 30px;
    padding: 0 20px;
}

/* シンプルな論文アイテムスタイル */
.publication-item-detailed {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.publication-item-detailed:last-child {
    border-bottom: none;
}

.publication-title-detailed {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.publication-authors-detailed {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.publication-journal-detailed {
    color: #777;
    font-style: italic;
    font-size: 0.85rem;
}

.show-more-button {
    background: #f8f9fa;
    border: 2px solid #4a7c59;
    color: #4a7c59;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin: 20px auto;
    display: block;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    width: fit-content;
}

.show-more-button:hover {
    background: #4a7c59;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.external-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.external-link {
    background: linear-gradient(to bottom, #5a8c69, #4a7c59);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.external-link:hover {
    background: linear-gradient(to bottom, #3a6149, #2a5139);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.professor-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.professor-image {
    flex: 1;
    max-width: 280px;
}

.professor-details {
    flex: 2;
}

.professor-details h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.professor-title {
    font-size: 1.1rem;
    color: #666;
    margin-left: 15px;
    font-weight: normal;
}

.professor-academic {
    color: #888;
    margin-bottom: 25px;
    font-size: 1rem;
}

.professor-info {
    margin-bottom: 25px;
    line-height: 1.6;
}

.professor-info p {
    margin-bottom: 10px;
}

.professor-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #4a7c59;
    padding-bottom: 8px;
    display: inline-block;
}

.professor-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.message-section {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
    border: 2px solid #4a7c59;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 20px;
    position: relative;
    overflow: hidden;
}

.message-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(90deg, #4a7c59, #5a8c69, #4a7c59);
    border-radius: 12px 12px 0 0;
}

.message-section h4 {
    color: #2d5a3d;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #4a7c59;
    padding-bottom: 8px;
    display: inline-block;
}

.message-section p {
    line-height: 1.7;
    margin-bottom: 15px;
}

/* メンバー（写真なし・3列レイアウト） */
.member-category {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #333;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 5px;
    display: inline-block;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    justify-items: start;
}

.member-card-no-photo {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.member-card-no-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.member-info {
    padding: 20px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.member-position {
    color: #4a7c59;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.member-specialty {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.member-contact {
    color: #555;
    font-size: 0.85rem;
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: auto;
}

/* 共同研究者グリッド */
.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.collaborator-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
}

.collaborator-item h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.collaborator-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* トップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(to bottom, #5a8c69, #4a7c59);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-logo {
    flex: 1 1 300px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-links {
    flex: 1 1 300px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links li {
    margin: 0 15px 10px;
}

.footer-links a {
    color: #ddd;
    padding: 5px 0;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* ===== インラインスタイル削除のための追加クラス ===== */

/* セクションスタイル */
.section-border-green {
    border-left: 4px solid #4a7c59;
}

.section-title-underline {
    margin-bottom: 20px;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 5px;
}

.section-title-underline-8px {
    margin-bottom: 20px;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 8px;
}

/* 情報ボックス */
.info-box-primary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #4a7c59;
}

.info-box-secondary {
    background: #f0f8f5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e8e5;
}

.info-box-tertiary {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e8f0;
}

.info-box-warning {
    background: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f0e68c;
}

/* グリッドレイアウト */
.grid-two-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.grid-equal-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* フレックスレイアウト */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.flex-gap-10 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 位置とサイズ */
.position-relative {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.margin-top-10 {
    margin-top: 10px;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-top-25 {
    margin-top: 25px;
}

.margin-top-30 {
    margin-top: 30px;
}

.margin-top-40 {
    margin-top: 40px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

.margin-bottom-12 {
    margin-bottom: 12px;
}

.margin-bottom-15 {
    margin-bottom: 15px;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-bottom-25 {
    margin-bottom: 25px;
}

.line-height-1-3 {
    line-height: 1.3;
}

.line-height-1-6 {
    line-height: 1.6;
}

/* カラー */
.color-green {
    color: #2d5a3d;
}

.color-dark-green {
    color: #4a7c59;
}

.color-medium-green {
    color: #5a8c69;
}

.color-light-green {
    color: #6b9a79;
}

.color-gray {
    color: #666;
}

.color-light-gray {
    color: #6c757d;
}

/* フォントサイズ */
.font-size-18 {
    font-size: 1.8rem;
}

.font-size-14 {
    font-size: 1.4rem;
}

.font-size-12 {
    font-size: 1.2rem;
}

.font-size-11 {
    font-size: 1.1rem;
}

.font-size-10 {
    font-size: 1rem;
}

.font-size-095 {
    font-size: 0.95rem;
}

.font-size-09 {
    font-size: 0.9rem;
}

/* フォントウェイト */
.font-weight-600 {
    font-weight: 600;
}

.font-weight-500 {
    font-weight: 500;
}

/* 背景とボーダー */
.bg-light-gray {
    background: #f8faf9;
}

.bg-center-gray {
    background: #f8f9fa;
}

.bg-light-blue {
    background: #f0f8ff;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #fdfffe 0%, #f0f8ff 100%);
}

.bg-white-80 {
    background: rgba(255, 255, 255, 0.8);
}

.border-radius-8 {
    border-radius: 8px;
}

.border-radius-6 {
    border-radius: 6px;
}

.border-radius-12 {
    border-radius: 12px;
}

.border-radius-50 {
    border-radius: 50%;
}

.border-2-green {
    border: 2px solid #4a7c59;
}

.border-1-eaeaea {
    border: 1px solid #eaeaea;
}

.border-1-e0e8e5 {
    border: 1px solid #e0e8e5;
}

.border-1-e5e8f0 {
    border: 1px solid #e5e8f0;
}

.border-1-f0e68c {
    border: 1px solid #f0e68c;
}

.border-1-e8f0ed {
    border: 1px solid #e8f0ed;
}

/* パディング */
.padding-20 {
    padding: 20px;
}

.padding-25 {
    padding: 25px;
}

.padding-35 {
    padding: 35px;
}

.padding-12 {
    padding: 12px;
}

.padding-6-16 {
    padding: 6px 16px;
}

.padding-10px {
    padding: 10px;
}

.padding-15px {
    padding: 15px;
}

.padding-8px {
    padding: 8px;
}

.padding-4-12 {
    padding: 4px 12px;
}

/* テキスト配置 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* 表示制御 */
.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

/* 特定の要素用 */
.logo-image-style {
    width: auto;
    height: 50px;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

/* members.html 用の追加クラス */
.preparation-box {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
    border: 2px solid #4a7c59;
    border-radius: 12px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #4a7c59;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #4a7c59;
    text-align: left;
}

.preparation-content {
    max-width: 600px;
    margin: 0 auto;
}

.preparation-title {
    color: #2d5a3d;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.preparation-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* professor.html 用の追加クラス */
.professor-image-style {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.two-column-list {
    columns: 2;
    column-gap: 30px;
    padding-left: 20px;
}

.publication-note {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* index.html 用の追加クラス */
.hero-flex {
    display: flex;
    gap: 30px;
    align-items: center;
}

.hero-image {
    flex: 1;
}

.hero-content-text {
    flex: 2;
}

.research-flex-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
}

/* research.html 用の追加クラス */
.absolute-badge {
    position: absolute;
    top: -5px;
    right: 15px;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: #4a7c59;
}

.badge-secondary {
    background: #5a8c69;
}

.badge-tertiary {
    background: #6b9a79;
}

.achievement-highlight h4 {
    color: inherit;
    margin-bottom: 12px;
    font-size: 1rem;
}

.achievement-highlight p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.recent-publications h4 {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.publication-item-small {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.year-badge {
    background: #4a7c59;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
    font-weight: 500;
}

.expectation-box {
    text-align: center;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
}

.expectation-box-primary {
    background: #4a7c59;
}

.expectation-box-secondary {
    background: #5a8c69;
}

.expectation-box-tertiary {
    background: #6b9a79;
}

.preparation-center-box {
    text-align: center;
    padding: 35px;
    background: #f8faf9;
    border-radius: 6px;
    border: 1px solid #e8f0ed;
}

.preparation-badge {
    background: #5a8c69;
    color: white;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 18px;
    display: inline-block;
}

/* width制御 */
.width-100 {
    width: 100%;
}

.width-auto {
    width: auto;
}

.max-width-600 {
    max-width: 600px;
}

.max-width-800 {
    max-width: 800px;
}

/* margin制御 */
.margin-0 {
    margin: 0;
}

.margin-0-auto {
    margin: 0 auto;
}

.margin-0-0-15-0 {
    margin: 0 0 15px 0;
}

.margin-0-0-10-0 {
    margin: 0 0 10px 0;
}

/* gap制御 */
.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.gap-25 {
    gap: 25px;
}

.gap-30 {
    gap: 30px;
}

/* contact.html専用クラス */
.contact-highlight-box {
    color: #4a7c59;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-info-text {
    margin-bottom: 10px;
}

.contact-info-note {
    color: #666;
    font-size: 0.9rem;
}

.contact-info-keywords {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-category-title {
    color: #4a7c59;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-category-text {
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-category-note {
    color: #666;
    font-size: 0.9rem;
}

.contact-request-title {
    color: #4a7c59;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-request-list {
    padding-left: 20px;
    line-height: 1.6;
}

/* publications.html専用クラス */
.filter-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* news.html専用クラス */
.news-month-title {
    margin-bottom: 20px;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 5px;
}

/* レスポンシブ対応の追加 */
@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 15px;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav.active ul {
        display: flex;
    }
    
    .main-nav li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        padding: 10px;
    }
    
    .hero-banner {
        height: 250px;
    }
    
    .section-preview {
        padding: 15px;
    }
    
    .section-preview > div {
        flex-direction: column !important;
    }
    
    .section-preview > div > div {
        width: 100% !important;
        flex: none !important;
    }
    
    .professor-grid {
        flex-direction: column;
    }
    
    .professor-image {
        max-width: 100%;
    }
    
    .professor-profile {
        margin: 20px auto;
        padding: 25px;
    }
    
    .professor-section {
        padding: 0 10px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 25px;
    }
    
    .timeline-date {
        min-width: auto;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .publications-list,
    .timeline,
    .research-topics {
        padding: 0 10px;
    }
    
    .research-item-svg {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .icon-container {
        width: 60px;
        height: 60px;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .research-icon {
        max-width: 40px;
        max-height: 40px;
    }
    
    .grid-equal-cols {
        grid-template-columns: 1fr;
    }
    
    .hero-flex {
        flex-direction: column;
    }
    
    .hero-image,
    .hero-content-text {
        flex: none;
        width: 100%;
    }
    
    .two-column-list {
        columns: 1;
    }
    
    .preparation-box {
        padding: 40px 20px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card-no-photo {
        min-height: 150px;
    }
    
    .member-info {
        padding: 15px;
    }
    
    .collaborators-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-banner {
        height: 200px;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .featured-research {
        gap: 15px;
    }
    
    .research-item img {
        height: 150px;
    }
    
    .section-preview {
        padding: 10px;
        margin-bottom: 30px;
    }
}

/* セキュリティ強化のためのCSS対策 */
input, textarea, select, button {
    box-sizing: border-box;
    max-width: 100%;
}

iframe {
    border: 0;
}

/* アクセシビリティ改善 */
:focus {
    outline: 3px solid rgba(74, 124, 89, 0.5);
    outline-offset: 1px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* 指導教員情報ボックス専用のスタイル */
/*.supervisor-info {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
    border: 1px solid #c6f6d5;
    border-left: 4px solid #4a7c59;
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
}

.supervisor-label {
    font-weight: bold;
    color: #2d5a3d;
    margin-bottom: 4px;
    font-size: 13px;
}

.supervisor-name {
    color: #4a7c59;
    font-weight: 500;
}*/

/* professor.html専用の追加スタイル */
.professor-title {
    font-size: 1.1rem;
    color: #666;
    margin-left: 15px;
    font-weight: normal;
}

.professor-academic {
    color: #888;
    margin-bottom: 25px;
    font-size: 1rem;
}

.professor-info {
    margin-bottom: 25px;
    line-height: 1.6;
}

.professor-info p {
    margin-bottom: 10px;
}

.external-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.external-link {
    background: linear-gradient(to bottom, #5a8c69, #4a7c59);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.external-link:hover {
    background: linear-gradient(to bottom, #3a6149, #2a5139);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.professor-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #4a7c59;
    padding-bottom: 8px;
    display: inline-block;
}

.professor-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.research-topics {
    margin: 20px 0;
    padding: 0 10px;
}

.research-topics ol {
    padding-left: 0;
    list-style: none;
    counter-reset: research-counter;
}

.research-topics li {
    counter-increment: research-counter;
    margin-bottom: 15px;
    padding: 12px 20px 12px 50px;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border-left: 4px solid #4a7c59;
}

.research-topics li::before {
    content: counter(research-counter) ".";
    position: absolute;
    left: 15px;
    top: 12px;
    color: #4a7c59;
    font-weight: bold;
    background: rgba(74, 124, 89, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: #4a7c59;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 20px;
    width: 2px;
    height: calc(100% + 4px);
    background: #ddd;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    min-width: 140px;
    color: #666;
    font-size: 0.85rem;
    margin-right: 20px;
    font-weight: 500;
}

.timeline-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.two-column-list {
    columns: 2;
    column-gap: 30px;
    padding-left: 20px;
}

.two-column-list li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.publications-list {
    margin-top: 30px;
    padding: 0 20px;
}

.publication-item-detailed {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.publication-item-detailed:last-child {
    border-bottom: none;
}

.publication-title-detailed {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.publication-authors-detailed {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.publication-journal-detailed {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.researchmap-link {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    text-align: center;
}

.researchmap-link h5 {
    color: #0c4a6e;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.researchmap-link p {
    margin-bottom: 15px;
    color: #374151;
}

.researchmap-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.researchmap-button:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    color: white;
}

.publication-note {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fef7cd 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.publication-note strong {
    color: #92400e;
}

.publication-note a {
    color: #d97706;
    text-decoration: underline;
}

.publication-note a:hover {
    color: #92400e;
}

/* research.html専用の追加スタイル */
.section-title-underline {
    margin-bottom: 20px;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 5px;
}

.section-border-green {
    border-left: 4px solid #4a7c59;
}

.section-no-border {
    border-left: none !important;
}

.position-relative {
    position: relative;
}

.achievement-highlight {
    margin-bottom: 20px;
}

.research-category-title-primary,
.research-category-title-secondary,
.research-category-title-tertiary {
    margin-bottom: 12px;
    font-size: 1rem;
}

.research-category-title-primary {
    color: #4a7c59;
}

.research-category-title-secondary {
    color: #5a8c69;
}

.research-category-title-tertiary {
    color: #6b9a79;
}

.research-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.research-subsection-title-primary,
.research-subsection-title-secondary,
.research-subsection-title-tertiary {
    color: #4a7c59;
    margin-bottom: 10px;
}

.research-subsection-title-secondary {
    color: #5a8c69;
}

.research-subsection-title-tertiary {
    color: #6b9a79;
}

.recent-publications {
    margin-top: 20px;
}

.publication-section-title-primary,
.publication-section-title-secondary,
.publication-section-title-tertiary {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.publication-section-title-primary {
    color: #4a7c59;
}

.publication-section-title-secondary {
    color: #5a8c69;
}

.publication-section-title-tertiary {
    color: #6b9a79;
}

.future-prospect-title-primary,
.future-prospect-title-secondary {
    color: #4a7c59;
    margin-bottom: 12px;
}

.future-prospect-title-secondary {
    color: #5a8c69;
}

.future-prospect-text {
    line-height: 1.6;
}

.collaboration-title {
    color: #4a7c59;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.collaboration-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.collaboration-contact {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.research-subsection {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #4a7c59;
}

.logo-image-style {
    width: auto;
    height: 50px;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    object-fit: contain;
    max-width: 150px;
    display: block;
    margin: 0 auto !important;
}

/* 特別なレスポンシブ対応（研究ページ用） */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    /* ロゴのレスポンシブ対応 - サイズを大きく調整 */
    header .container .logo-container .logo-img,
    .logo-container .logo-img,
    img.logo-img {
        height: 50px !important;
        max-width: 250px !important;
        margin: 0 auto !important;
        width: auto !important;
    }
    
    .logo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 0;
    }
    
    .logo-image-style,
    footer .logo-image-style,
    img.logo-image-style {
        height: 60px !important;
        max-width: 200px !important;
        margin: 0 auto !important;
        width: auto !important;
    }
}

/* さらに小さいスクリーン向け - iPhone SE などの小型スマホ */
@media (max-width: 480px) {
    header .container .logo-container .logo-img,
    .logo-container .logo-img,
    img.logo-img {
        height: 65px !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        min-height: 65px !important;
        width: auto !important;
    }
    
    .logo-text h1 {
        font-size: 1.4rem !important;
    }
    
    .logo-text p {
        font-size: 0.85rem !important;
    }
    
    .logo-image-style,
    footer .logo-image-style,
    img.logo-image-style {
        height: 75px !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        min-height: 75px !important;
        width: auto !important;
    }
}

/* 超小型スクリーン（375px以下）向け */
@media (max-width: 375px) {
    header .container .logo-container .logo-img,
    .logo-container .logo-img,
    img.logo-img {
        height: 62px !important;
        max-width: 300px !important;
        min-height: 62px !important;
        width: auto !important;
    }
    
    .logo-text h1 {
        font-size: 1.35rem !important;
    }
    
    .logo-image-style,
    footer .logo-image-style,
    img.logo-image-style {
        height: 72px !important;
        max-width: 260px !important;
        min-height: 72px !important;
        width: auto !important;
    }
}

/* 極小スクリーン（320px以下）向け */
@media (max-width: 320px) {
    header .container .logo-container .logo-img,
    .logo-container .logo-img,
    img.logo-img {
        height: 60px !important;
        max-width: 280px !important;
        min-height: 60px !important;
        width: auto !important;
    }
    
    .logo-text h1 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    .logo-text p {
        font-size: 0.8rem !important;
    }
    
    .logo-image-style,
    footer .logo-image-style,
    img.logo-image-style {
        height: 70px !important;
        max-width: 240px !important;
        min-height: 70px !important;
        width: auto !important;
    }
}

/* Publications page specific styles */
/* 著者ポジションバッジのスタイル */
.author-position-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.author-position-badge.first {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.author-position-badge.senior {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
}

.publications-list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
}

/* News page specific styles */
.news-group {
    margin-bottom: 2rem;
}

.news-month-title {
    color: #4a7c59;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
    position: relative;
    margin-bottom: 1rem;
}

.news-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-date {
    display: inline-block;
    background-color: #4a7c59;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-date-subtle {
    text-align: right;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.news-item h4 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.4;
}

.news-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.news-tag {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
}

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

.margin-bottom-20 {
    margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-item {
        padding: 1rem;
    }
    
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .news-item h4 {
        font-size: 1rem;
    }
    
    .news-item p {
        font-size: 0.9rem;
    }
}

/* Index page news styles */
.news-item-index {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
    position: relative;
    margin-bottom: 1rem;
}

.news-item-index:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-item-index h4 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.news-item-index p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.news-date-subtle {
    text-align: right;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.news-item-index .news-tags {
    margin-bottom: 1rem;
}

/* レスポンシブ対応 - index用 */
@media (max-width: 768px) {
    .news-item-index {
        padding: 1rem;
    }
    
    .news-item-index h4 {
        font-size: 1rem;
    }
    
    .news-item-index p {
        font-size: 0.9rem;
    }
    
    .news-date-subtle {
        font-size: 0.8rem;
    }
}