:root {
    --primary-color: #FF8033;
    --primary-light: #FF9955;
    --primary-dark: #E66A1A;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.page-header {
    background-color: var(--white);
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.header-nav {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.page-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin: 0;
    font-weight: 700;
}

.logo-container {
    height: 40px;
}

.symbol-mark {
    height: 100%;
    object-fit: contain;
}

.main-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 30px;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.department-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.program-title {
    font-size: 1.4rem;
    color: var(--text-color);
    background-color: rgba(255, 128, 51, 0.1);
    padding: 10px 15px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 25px;
}

.profile-card {
    display: flex;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.profile-image-container {
    flex: 0 0 250px;
    background-color: #f8fafc;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-image {
    width: 70%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 3px solid var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.research-image {
    width: 105%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.research-images-double {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}

.research-image-sub {
    width: calc(50% - 3px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-details {
    padding: 30px;
    flex: 1;
}

.faculty-name {
    font-size: 1.6rem;
    margin: 0 0 5px 0;
    color: var(--primary-dark);
}

.english-name {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 10px;
}

.faculty-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.info-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 15px 20px;
    margin: 0;
}

.info-list dt {
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    padding-left: 15px;
}

.info-list dt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.info-list dd {
    margin: 0;
    color: var(--text-color);
}

.email-link {
    display: inline-block;
    color: var(--white);
    background-color: var(--primary-color);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.email-link:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .profile-card {
        flex-direction: column;
    }
    
    .profile-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
    
    .profile-image-container {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    
    .info-list {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .info-list dt {
        margin-top: 10px;
    }

    .info-card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .breadcrumb {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}

/* New Page Styles (index.html & contact.html) */
.feature-section {
    margin-bottom: 50px;
}

.content-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.text-content p {
    margin-bottom: 15px;
}

.image-content {
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-top: 10px;
    margin-bottom: 15px;
}

.badge {
    background-color: rgba(255, 128, 51, 0.1);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

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

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.highlight-box {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.font-bold {
    font-weight: 700;
    margin: 0 0 5px 0;
}

.text-small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.item-header {
    background-color: rgba(255, 128, 51, 0.05);
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-weight: 700;
    color: var(--text-muted);
    border-right: 1px solid var(--border-color);
}

.item-body {
    flex: 1;
    padding: 20px;
}

.item-body p {
    margin: 0;
}

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

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

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

.icon-large {
    font-size: 3rem;
    margin-bottom: 10px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: background-color 0.3s;
}

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

.map-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.map-image-container {
    height: 200px;
    overflow: hidden;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.map-info {
    padding: 25px;
}

.map-info h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.address {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.access-routes {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.access-routes h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.access-routes p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive updates for new elements */
@media (max-width: 768px) {
    .grid-2col, .grid-3col {
        grid-template-columns: 1fr;
    }
    
    .list-item {
        flex-direction: column;
    }
    
    .item-header {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Site Footer */
.site-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 30px 20px;
    text-align: right;
}

.ai-notice {
    font-size: 0.75rem;
    color: #A0AEC0;
    margin: 0;
}

/* --- 教員詳細ページ（サブページ）用スタイル --- */
.profile-subpage-link-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.subpage-link-title {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.subpage-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    margin-bottom: 8px; /* 折り返し時の上下の余白を確保 */
    transition: color 0.3s, border-color 0.3s;
}

.subpage-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #cbd5e1;
}

.detail-header {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 30px;
    align-items: center;
}

.detail-avatar-container {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-avatar {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    object-fit: contain;
}

.detail-title-block {
    flex: 1;
}

.detail-program {
    display: inline-block;
    background-color: rgba(255, 128, 51, 0.1);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-name-ja {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0 0 5px 0;
    font-weight: 700;
    display: flex;
    align-items: baseline;
}

.detail-name-en {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-left: 15px;
    font-weight: 400;
}

.detail-affiliation {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

.detail-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.detail-section-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 20px;
}

.detail-list {
    padding-left: 28px; /* 連番（2桁など）が綺麗に収まるよう左パディングを拡張 */
    margin: 0;
    list-style-position: outside; /* 折り返し時の番号下への回り込みを確実に防止 */
}

.detail-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.detail-back-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid #005183;
    color: #005183;
    background-color: transparent;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

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

/* 詳細ページ用レスポンシブ */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .detail-avatar-container {
        flex: 0 0 auto;
        width: 120px;
    }
    .detail-name-ja {
        flex-direction: column;
        align-items: center;
    }
    .detail-name-en {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* 固定ヘッダースクロール位置調整 */
#general-contact {
    scroll-margin-top: 100px;
}

/* チラシダウンロードセクションのリンクとホバー効果 */
.download-text-link {
    color: var(--primary-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.download-text-link:hover {
    color: var(--primary-color);
}

.download-img-link {
    display: block;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}
.download-img-link:hover {
    opacity: 0.85;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}