body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP Medium', sans-serif;
    background: #f7fafd;
    color: #222;
    padding-right: 0 !important;
}

/* モーダルオープン時のbodyスタイル */
body.modal-open {
    overflow: hidden;
    padding-right: 17px; /* スクロールバーの幅分を補正 */
}

.header {
    position: relative;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-image-container {
    position: relative;
    width: 100%;
}

.header-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header Text Overlay */
.header-text-overlay {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 3;
}

.header-text-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 45pt;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.header-text-en {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 18pt;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* Header Overlay Images */
.header-right-overlay,
.header-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-right-overlay {
    z-index: 2;
}

.header-blur-overlay {
    z-index: 1;
}

/* Header Logo */
.header-logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
}

.site-logo {
    width: 110px;
    height: 110px;
}

/* Slide-in Animation from Right with Fade-out */
.slide-in-right {
    opacity: 0;
    transform: translateX(100%);
    animation: slideInAndFadeOut 1.7s ease-out 1.7s forwards;
}

@keyframes slideInAndFadeOut {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    25% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

/* Fade-in Animation for Blur */
.fade-in-blur {
    opacity: 0;
    animation: fadeInBlur 0.5s ease-in-out 2.7s forwards;
}

@keyframes fadeInBlur {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* --- ナビゲーション新デザイン --- */
.main-nav {
    width: 100%;
    background: #fff;
    border-bottom: none;
    box-shadow: none;
}
.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: none;
    gap: 0;
}
.main-nav li {
    flex: 1 1 0;
    text-align: center;
    margin: 0;
    padding: 0 6px;
    position: relative;
    min-width: 110px;
}
.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 8px 0;
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}
.nav-jp {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.nav-en {
    font-weight: normal;
    font-size: 0.9em;
    color: #222;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.main-nav li::after {
    content: '';
    display: block;
    width: 90%;
    height: 4px;
    background: #111;
    margin: 0 auto;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(.4,1.5,.5,1);
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}
.main-nav li.active::after {
    background: #ccc;
    height: 4px;
    opacity: 1;
}
.main-nav li:not(.active)::after {
    background: #111;
    height: 3px;
    opacity: 1;
}
.main-nav li:hover::after,
.main-nav li:focus-within::after {
    height: 4px;
    background: #888;
    opacity: 1;
}
.main-nav li.active:hover::after {
    background: #bbb;
    height: 6px;
}
.main-nav li a {
    transition: transform 0.18s cubic-bezier(.4,1.5,.5,1), color 0.2s;
}
.main-nav li:hover a,
.main-nav li:focus-within a {
    transform: scale(1.04);
    color: #286f95;
}
.main-nav li.active a {
    color: #888;
}

.main-visual {
    position: relative;
    text-align: center;
    background: #eaf4fb;
    padding-bottom: 0px;
}
.main-visual-img {
    width: 100%;
    max-width: 1366px;
    height: auto;
    margin: 0 auto;
    display: block;
}
/* セクション背景色 */
.bg-gray {
    background: #efefef !important;
}
.bg-blue {
    background: #7c92ac !important;
}
.white {
    color: #fff !important;
}

/* メインタイトル・ロゴ */
.main-title {
    position: relative;
    margin: 48px auto 0 auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
    width: 100%;
}
.main-title-jp {
    font-size: 2.1em;
    color: #286f95;
    font-weight: bold;
    margin: 0 0 8px 0;
    letter-spacing: 0.08em;
}
.tdspro-logo {
    font-size: 3em;
    font-weight: bold;
    color: #4b5fa7;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-family: 'Century Gothic', 'Arial', sans-serif;
}
.tdspro-logo-img {
    width: 600px;
    max-width: 90vw;
    height: auto;
    margin: 12px 0 8px 0;
    display: block;
}
.main-title-en {
    font-size: 1.1em;
    color: #286f95;
    margin-bottom: 4px;
}
.main-title-sub {
    font-size: 1em;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}
.scroll-down {
    margin-top: 12px;
    animation: scrollDown 1.2s infinite alternate;
}

.scroll-icon {
    width: 76px;
    height: 76px;
    opacity: 0.7;
}
@keyframes scrollDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}



/* Fade-in Animation */
.fade-in-text {
    opacity: 0;
    animation: fadeInDelayed 0.5s ease-in-out 0.7s forwards;
}

@keyframes fadeInDelayed {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    width: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* セクション内のコンテンツ用コンテナ */
.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 16px;
}
/* セクションタイトル装飾 */
.section-en {
    font-family: 'Century Gothic', 'Arial', sans-serif;
    font-size: 2.1em;
    font-weight: bold;
    letter-spacing: 0.04em;
    margin-bottom: 0.1em;
}
.section-jp {
    font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    font-size: 1.3em;
    font-weight: normal;
    color: #888;
    margin-bottom: 1.2em;
}
section h2 {
    font-size: 2em;
    color: #286f95;
    margin-top: 0;
    margin-bottom: 0.2em;
    font-weight: bold;
    letter-spacing: 0.05em;
}
section h3 {
    font-size: 1.2em;
    color: #888;
    margin-top: 0;
    margin-bottom: 1.2em;
    font-weight: normal;
}
section h2, section h3 {
    text-align: center;
}
section h3 + *, section h3 + * > *:not(.concept-section *) {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.concept-section h3 + * {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.concept-section .concept-main-flex {
    text-align: initial !important;
    display: flex !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}
.news-list li {
    padding: 0.5em 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1em;
}
.news-list li:last-child {
    border-bottom: none;
}

.concept-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}
.concept-img {
    width: 350px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(40,111,149,0.08);
}
.concept-text {
    flex: 1;
    min-width: 260px;
}
.concept-text h4 {
    color: #286f95;
    margin-bottom: 0.3em;
}
.director-greeting {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 1.5em;
    background: #f2f8fc;
    border-radius: 8px;
    padding: 16px;
}
.director-img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(40,111,149,0.10);
}

.organization-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
}

.organization-img, .platform-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.facility-images {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5em;
}
.facility-images img {
    width: 32%;
    min-width: 220px;
    max-width: 340px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(40,111,149,0.08);
}

.access-map {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5em auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(40,111,149,0.08);
}
.access-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    max-width: 1200px;
}
.access-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 1.5em;
}
.info-item {
    text-align: center;
    background: #f2f8fc;
    border-radius: 8px;
    padding: 18px 16px 10px 16px;
    min-width: 160px;
    max-width: 220px;
    box-shadow: 0 2px 8px rgba(40,111,149,0.06);
    font-family: 'Noto Sans JP Medium', sans-serif;
}
.info-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.contact-section {
    text-align: center;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-name {
    width: 800px;
    max-width: 100%;
    height: auto;
}

/* Contact セクションのフォーム画像のみに適用 */
.contact-section .contact-form-image {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(40,111,149,0.08);
}

.contact-form-image-link {
    display: inline-block;
    margin: 0;
}
.contact-form-image {
    width: 100%;
    min-width: 800px;
    max-width: 1600px;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.2s;
    display: block;
}
.contact-form-image-link:hover .contact-form-image {
    transform: scale(1.02);
}
.contact-form-link-desc {
    text-align: center;
    color: #888;
    font-size: 0.98em;
    margin-bottom: 8px;
}
.contact-form-page-link {
    text-align: center;
    margin-bottom: 16px;
}
.contact-form-page-link a {
    color: #286f95;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.08em;
    transition: color 0.2s;
}
.contact-form-page-link a:hover {
    color: #4b5fa7;
}

.footer {
    background: #7c92ac !important;
    color: #fff !important;
    padding: 40px 20px 20px 20px;
    margin-top: 48px;
    position: relative;
    font-family: 'Noto Sans JP Medium', sans-serif;
    font-size: 16pt;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1500px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-img {
    width: 400px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.footer-img:hover {
    opacity: 0.8;
}

.footer-right {
    display: flex;
    align-items: flex-start;
    padding: 16px 240px 0px 0px;
}

.footer-links {
    text-align: right;
    font-size: 0.95em;
}

.footer-links a {
    color: #fff !important;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffe066 !important;
}

.copyright {
    font-size: 0.9em;
    color: #fff !important;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

/* Conceptセクションのテキスト色 */
.concept-section .concept-text, .concept-section .concept-text h4, .concept-section .director-greeting, .concept-section .director-greeting h5, .concept-section .director-greeting p {
    color: #fff !important;
}
.concept-section .director-greeting {
    background: rgba(255,255,255,0.08);
    border: 1px solid #fff2;
}

/* Facilityセクションリード文 */
.facility-lead {
    font-size: 1.2em;
    color: #286f95;
    font-weight: bold;
    margin-bottom: 1.2em;
    text-align: center;
}

/* 施設案内レイアウト */
.facility-layout {
    margin-top: 0;
}

.facility-main-image {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.facility-main-img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.facility-title-overlay {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.facility-title-en {
    font-family: 'Century Gothic', 'Arial', sans-serif;
    font-size: 2.1em;
    font-weight: bold;
    margin: 0 0 0.1em 0;
    letter-spacing: 0.04em;
    color: #fff;
}

.facility-title-jp {
    font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    font-size: 1.3em;
    font-weight: normal;
    margin: 0;
    color: #fff;
}

.facility-text-overlay {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.facility-text-jp {
    font-size: 20pt;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    font-family: 'Noto Sans JP', sans-serif;
}

.facility-text-overlay-en {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.facility-text-en {
    font-size: 1.1em;
    margin: 0;
    line-height: 1.3;
    text-align: right;
}

.facility-sub-images {
    display: flex;
    gap: 0;
    justify-content: center;
}

.facility-sub-img {
    width: 50%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* 既存のfacility-imagesスタイルを削除または無効化 */
.facility-images {
    display: none;
}

/* Conceptセクション全体 */
.concept-section {
    background: #7c92ac !important;
    color: #fff;
    padding: 0 0 48px 0;
}
.concept-section .section-en,
.concept-section .section-jp {
    text-align: center;
    margin-top: 0;
}
.concept-section .section-en {
    font-family: 'Century Gothic', 'Arial', sans-serif;
    font-size: 2.6em;
    font-weight: bold;
    margin-bottom: 0.1em;
    letter-spacing: 0.04em;
}
.concept-section .section-jp {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 1.8em;
    font-weight: normal;
}

/* メイン2カラム */
.concept-main-flex {
    position: relative;
    width: 100%;
    background-color: #556f8d;
    overflow: hidden;
}

.concept-main-content {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    align-items: center;
}
.concept-image-block {
    width: 600px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.concept-img {
    width: 600px;
    height: auto;
    display: block;
}
.concept-img-caption {
    font-size: 1em;
    color: #e0e6ef;
    margin-top: 8px;
    font-family: 'Century Gothic', 'Arial', sans-serif;
    letter-spacing: 0.04em;
}
.concept-lead-block {
    flex: 1;
    min-width: 300px;
    padding: 32px 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.concept-lead-jp {
    font-size: 40pt;
    font-weight: normal;
    margin-bottom: 0.5em;
    margin-top: 0;
    letter-spacing: 0.04em;
    color: #d8e2fb;
    white-space: normal;
    line-height: 1.2;
}
.concept-lead-jp-sub {
    font-size: 14pt;
    padding: 0px 0px 0px 24px;
    margin-bottom: 1.2em;
}
.concept-lead-en {
    font-size: 22pt;
    font-weight: normal;
    padding: 0px 0px 0px 24px;
    margin-bottom: 0.3em;
    margin-top: 0.8em;
    letter-spacing: 0.04em;
    color: #d8e2fb;
}
.concept-lead-en-sub {
    font-size: 14pt;
    padding: 0px 0px 0px 24px;
    margin-bottom: 0.5em;
}

/* 機構長あいさつ2カラム */
.concept-greeting-flex {
    max-width: 1366px;
    margin: 0 auto;
    padding: 32px 24px 24px 24px;
    margin-bottom: 40px;
}

.concept-greeting-container {
    width: 100%;
}

.concept-greeting-content {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}
.concept-greeting-left {
    text-align: center;
    min-width: 200px;
    padding: 0px 0px 0px 42px;
    flex-shrink: 0;
}
.director-img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.director-title {
    font-size: 1em;
    color: #e0e6ef;
    margin-bottom: 4px;
}
.director-name {
    font-size: 1.3em;
    font-weight: normal;
    letter-spacing: 0.08em;
}
.concept-greeting-right {
    flex: 1;
    color: #fff;
    min-width: 300px;
}
.greeting-title-jp {
    font-size: 1.3em;
    font-weight: normal;
    margin-top: 0;
    letter-spacing: 0.04em;
}
.greeting-body-jp {
    font-size: 1.05em;
    margin-bottom: 2em;
    line-height: 1.8;
    text-align: justify;
}
.greeting-signature-jp {
    text-align: right;
    margin-top: 1em;
}
.greeting-signature-jp-title {
    font-size: 0.95em;
    color: #e0e6ef;
    margin-bottom: 0.3em;
}
.greeting-signature-jp-name {
    font-size: 1em;
    color: #e0e6ef;
    font-weight: normal;
}

/* 英語セクション */
.greeting-english-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    color: #fff;
}
.greeting-title-en {
    font-size: 1.4em;
    font-weight: normal;
    margin-bottom: 1em;
    margin-top: 2em;
    letter-spacing: 0.04em;
    color: #fff;
}
.greeting-body-en {
    font-size: 1em;
    margin-bottom: 2em;
    line-height: 1.8;
    color: #fff;
    text-align: justify;
}
.greeting-signature-en {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 2em;
}
.greeting-signature-en-name {
    font-family: 'Century Gothic', 'Arial', sans-serif;
    font-size: 1.5em;
    font-style: italic;
    font-weight: normal;
    color: #e0e6ef;
    min-width: 150px;
}
.greeting-signature-en-titles {
    font-size: 0.95em;
    color: #e0e6ef;
    line-height: 1.6;
}
.greeting-signature-en-titles div {
    margin-bottom: 0.2em;
}





/* プラットフォームセクション */
.platform-section {
    text-align: center;
}

/* プラットフォーム画像とクリック可能エリア */
.platform-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.photo-area {
    position: absolute;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(40, 111, 149, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(40, 111, 149, 0.6);
}

.photo-area:hover {
    background: rgba(40, 111, 149, 0.6);
    transform: scale(1.2);
    border: 2px solid #286f95;
    box-shadow: 0 2px 8px rgba(40, 111, 149, 0.4);
}

/* 外部リンク用スタイル */
.external-link {
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.external-link:hover {
    background: rgba(40, 111, 149, 0.2);
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(40, 111, 149, 0.2);
}

/* 各写真エリアの位置指定（画像上の「写真」記載箇所に配置） */
.photo-area-1 { top: 5%; left: 3.75%; } /* ToMMo（星稜地区）*/
.photo-area-2 { top: 16.15%; left: 3.75%; } /* ToMMo（星稜地区）*/
.photo-area-3 { top: 5%; left: 22.8%; } /* INGEM（星稜地区）*/
.photo-area-4 { top: 29.4%; left: 3.75%; } /* INGEM（星稜地区）*/
.photo-area-5 { top: 42.65%; left: 3.75%;} /* ナノテラス（青葉山地区）*/
.photo-area-6 { top: 56.6%; left: 3.75%; } /* 医薬品開発研究センター（青葉山地区）*/
.photo-area-7 { top: 66.3%; left: 3.75%; } /* 動物・遺伝子実験支援センター（星稜地区）*/
.photo-area-8 { top: 66.3%; left: 26.75%; } /* 先端量子ビーム化学研究センター（青葉山地区）*/
.photo-area-9 { top: 5%; right: 22.2%;} /* THVP（青葉山地区）*/
.photo-area-10 { top: 15.5%; right: 22.2%; } /* OI機構（星稜地区）*/
.photo-area-11 { top: 43.35%; right: 22.2%; } /* 医療介護ネットワーク推進財団 MIYAGI（星稜地区）*/
.photo-area-12 { top: 54.65%; right: 22.2%; } /* 大学病院・CRIETO（星稜地区）*/

/* モーダルウィンドウのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content h2 {
    background: #286f95;
    color: #fff;
    margin: 0;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
}

.modal-body {
    padding: 24px;
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #ff6b6b;
    text-decoration: none;
}

/* モーダルアニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .photo-area {
        width: 40px;
        height: 40px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-content h2 {
        font-size: 1.2em;
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
        font-size: 1em;
    }
    
    .close {
        font-size: 24px;
        top: 12px;
        right: 16px;
    }
}



/* 組織体制セクション */
.organization-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.organization-lead-jp {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin: 2em 0 1em 0;
    line-height: 1.6;
}

.organization-desc-jp {
    font-size: 1.1em;
    color: #333;
    margin: 0 0 2em 0;
    line-height: 1.8;
}

.organization-lead-en {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 2em 0 1em 0;
    line-height: 1.6;
}

.organization-desc-en {
    font-size: 1em;
    color: #333;
    margin: 0 0 2em 0;
    line-height: 1.8;
}

/* セクションタイトル用SVGアイコンスタイル */
.section-title-with-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
}

.section-icon {
    width: 800px;
    height: auto;
    max-width: 100%;
}

/* Facility セクション用の特別なアイコンスタイル */
.facility-icon {
    width: 800px;
    filter: brightness(0) invert(1); /* 白色にする */
}

/* レスポンシブ対応 */


/* モバイルハンバーガーメニュー */
.mobile-hamburger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    display: none; /* デフォルトは非表示 */
}

.hamburger-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.mobile-hamburger-menu:hover .hamburger-icon {
    transform: scale(1.1);
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(238, 230, 239, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 10000;
}

.close-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover .close-icon {
    transform: scale(1.1) rotate(90deg);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-menu-item {
    width: 100%;
    padding: 20px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-menu-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.menu-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24pt;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.menu-en {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18pt;
    font-weight: 300;
    color: #333;
    letter-spacing: 0.04em;
}

/* モバイル表示設定 */

/* Photo Caption Section */
.photo-caption-section {
    padding: 60px 0;
    background: #fff;
}

.photo-caption-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    align-items: flex-start;
}

.photo-caption-left {
    flex: 1;
    max-width: 35%;
}

.photo-caption-text-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14pt;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.photo-caption-list {
    margin-top: 30px;
}

.photo-caption-item {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16pt;
    color: #333;
    margin-bottom: 8px;
}

.photo-caption-center {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.photo-caption-image {
    position: relative;
    background: #fff;
    width: 100%;
}

.photo-cap-img {
    width: 100%;
    height: auto;
    display: block;
}

.image-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    z-index: 2;
}

.photo-caption-right {
    flex: 1;
    max-width: 35%;
}

.photo-caption-text-en-main {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14pt;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.photo-caption-list-en {
    margin-top: 20px;
}

.photo-caption-item-en {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16pt;
    color: #333;
    margin-bottom: 8px;
}

/* レスポンシブ対応 - タブレット表示（769px〜1024px） */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-jp {
        font-size: 1em;
    }
    .nav-en {
        font-size: 0.85em;
    }
    .main-nav li {
        padding: 0 4px;
        min-width: 100px;
    }
    
    /* コンセプトセクション調整 */
    .concept-main-content {
        flex-direction: column;
        align-items: center;
    }
    .concept-image-block {
        width: 100%;
        max-width: 600px;
        align-items: center;
    }
    .concept-img {
        width: 100%;
        max-width: 600px;
    }
    .concept-lead-block {
        width: 100%;
        padding: 30px 40px;
        text-align: center;
    }
    .concept-lead-jp {
        font-size: 32pt;
    }
    .concept-lead-en {
        font-size: 18pt;
    }
}

/* レスポンシブ対応 - 小型タブレット/大型モバイル表示（769px〜900px） */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-jp {
        font-size: 0.95em;
    }
    .nav-en {
        font-size: 0.8em;
    }
    .main-nav li {
        padding: 0 3px;
        min-width: 95px;
    }
    
    /* コンセプトセクション調整 */
    .concept-lead-jp {
        font-size: 28pt;
    }
    .concept-lead-en {
        font-size: 16pt;
    }
    .concept-lead-block {
        padding: 25px 30px;
    }
}


/* レスポンシブ対応 - 中間サイズ（1025px〜1200px） */
@media (max-width: 1200px) and (min-width: 1025px) {
    .concept-main-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    .concept-image-block {
        width: 600px;
        flex-shrink: 0;
    }
    .concept-lead-block {
        flex: 1;
        min-width: 400px;
        padding: 40px 50px;
    }
    .concept-lead-jp {
        font-size: 36pt;
    }
}

/* レスポンシブ対応 - モバイル表示（768px以下） */
@media (max-width: 768px) {
    /* セクションアイコン */
    .section-icon,
    .facility-icon {
        width: 400px;
    }
    
    /* モバイルハンバーガーメニューを表示 */
    .mobile-hamburger-menu {
        display: block;
    }
    
    /* PC版ナビを非表示 */
    .main-nav {
        display: none;
    }
    
    /* コンセプトセクション - モバイル専用レイアウト */
    .concept-section {
        position: relative;
        padding: 0 !important;
    }
    
    /* セクションタイトルアイコンを非表示 */
    .concept-section .section-title-with-icon {
        display: none;
    }
    
    .concept-main-flex {
        position: relative;
        padding: 0;
        background: none;
        margin: 0;
    }
    
    .concept-main-content {
        position: relative;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .concept-image-block {
        position: relative;
        width: 100%;
        margin: 0;
    }
    
    .concept-img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* mobile_2_concept.svgをオーバーレイ */
    .concept-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        height: 100px;
        background-image: url("../svg/mobile_2_concept.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 10;
        pointer-events: none;
    }
    
    /* モバイル向けオーバーレイテキスト */
    .concept-lead-block {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        background: transparent;
        pointer-events: none;
    }
    
    /* 日本語メインタイトル - 画像左上 */
    .concept-lead-jp {
        position: absolute;
        top: 60%;
        left: 5%;
        font-size: 14px !important;
        font-weight: bold;
        color: #fff;
        margin: 0;
        white-space: nowrap;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        pointer-events: auto;
    }
    
    /* 日本語サブテキスト */
    .concept-lead-jp-sub {
        position: absolute;
        top: 65%;
        left: 5%;
        right: 5%;
        font-size: 9px !important;
        color: #fff;
        margin: 0;
        line-height: 1.4;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        pointer-events: auto;
    }
    
    /* 英語メインタイトル */
    .concept-lead-en {
        position: absolute;
        top: 78%;
        left: 5%;
        font-size: 12px !important;
        font-weight: bold;
        color: #fff;
        margin: 0;
        white-space: nowrap;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        pointer-events: auto;
    }
    
    /* 英語サブテキスト */
    .concept-lead-en-sub {
        position: absolute;
        top: 82%;
        left: 5%;
        right: 5%;
        font-size: 9px !important;
        color: #fff;
        margin: 0;
        line-height: 1.4;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        pointer-events: auto;
    }
    
    /* 機構長あいさつセクション */
    .concept-greeting-flex {
        padding: 12px 4px 8px 4px;
        margin-bottom: 20px;
    }
    .concept-greeting-left {
        flex: 0 0 auto;
        min-width: 0;
    }
    .director-img {
        width: 150px;
    }
    .greeting-english-section {
        padding: 0 12px;
    }
    .greeting-signature-en {
        flex-direction: column;
        gap: 10px;
    }
    .greeting-signature-en-name {
        min-width: auto;
    }
    .greeting-title-jp {
        font-size: 1.2em;
    }
    .greeting-body-jp {
        font-size: 1em;
    }
    .greeting-title-en {
        font-size: 1.2em;
    }
    .greeting-body-en {
        font-size: 0.95em;
    }
    
    /* ヘッダー - モバイルでは非表示 */
    .header-text-overlay {
        display: none;
    }
    .header-right-overlay {
        display: none;
    }
    .header-blur-overlay {
        display: none;
    }
    .header-logo {
        top: 0;
        left: 0;
    }
    .site-logo {
        width: 50px;
        height: 50px;
    }
    
    /* メインタイトル */
    .main-title {
        margin: 24px auto 0 auto;
        padding: 18px 8px 12px 8px;
        width: 95%;
    }
    .tdspro-logo-img {
        width: 320px;
        margin: 8px 0 6px 0;
    }
    
    /* セクション */
    section {
        margin: 24px 0;
        padding: 0 4px;
    }
    
    /* フッター */
    .footer {
        padding: 18px 0 8px 0;
        text-align: center; /* フッター全体を中央揃え */
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center; /* コンテンツを中央揃え */
    }
    .footer-left {
        align-items: center;
        order: 2; /* ロゴを下に配置 */
        text-align: center; /* ロゴを中央揃え */
    }
    .footer-img {
        width: 420px; /* 140px × 3 = 420px */
        margin: 0 auto;
        float: none;
        display: block;
    }
    .footer-right {
        justify-content: center;
        padding: 0;
        order: 1; /* リンクを上に配置 */
        text-align: center; /* リンクテキストを中央揃え */
    }
    .footer-links {
        text-align: center;
        font-size: 8pt;
    }
    .footer-links a {
        margin: 0 4px;
    }
    
    /* コピーライトをモバイル向けに調整 */
    .copyright {
        font-size: 8pt;
        order: 3; /* コピーライトを最下部に配置 */
        text-align: center; /* コピーライトを中央揃え */
    }
    
    /* 組織体制 */
    .organization-content {
        padding: 0 12px;
    }
    .organization-lead-jp {
        font-size: 1.2em;
        margin: 1.2em 0 0.6em 0;
    }
    .organization-desc-jp {
        font-size: 0.95em;
        margin: 0 0 1.2em 0;
    }
    .organization-lead-en {
        font-size: 1em;
        margin: 1.2em 0 0.6em 0;
    }
    .organization-desc-en {
        font-size: 0.9em;
        margin: 0 0 1.2em 0;
    }
    
    /* 施設案内 */
    .facility-sub-images {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .facility-sub-img {
        width: 100%;
        max-width: none;
    }
    .facility-text-overlay {
        top: 50px;
        left: 10px;
    }
    .facility-text-overlay-en {
        top: 50px;
        right: 10px;
    }
    .facility-text-jp {
        font-size: 16pt;
        margin-bottom: 6px;
    }
    .facility-text-en {
        font-size: 0.9em;
    }
    .facility-title-overlay {
        top: 10px;
    }
    .facility-title-en {
        font-size: 1.5em;
    }
    .facility-title-jp {
        font-size: 1em;
    }
    .facility-images {
        display: none;
    }
    .facility-images img {
        width: 90%;
        min-width: 160px;
        max-width: 98vw;
    }
    .concept-flex, .facility-images, .access-info {
        flex-direction: column;
        align-items: center;
    }
    
    /* モーダル */
    .photo-area {
        width: 30px;
        height: 30px;
    }
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-content h2 {
        font-size: 1em;
        padding: 12px 16px;
    }
    .modal-body {
        padding: 16px;
        font-size: 0.9em;
    }
    .close {
        font-size: 20px;
        top: 10px;
        right: 14px;
    }
    
    /* 組織体制セクションの外部リンク調整 */
    .organization-image-container .external-link {
        width: 240px !important;
        height: 105px !important;
        transform-origin: center;
    }
    
    /* Drug Discoveryセクションの外部リンク調整 */
    .platform-image-container .external-link {
        width: 150px !important;
        height: 40px !important;
        transform-origin: center;
    }
    
    /* Drug Discoveryセクションの写真エリア調整 */
    .platform-image-container .photo-area {
        width: 49px;
        height: 49px;
        border-width: 1px;
    }
    
    /* 組織体制の各外部リンク個別調整 */
    .organization-image-container .external-link:nth-child(2) { /* 医学系研究科 */
        top: 65.5% !important;
        left: 1.5% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(3) { /* 歯学研究科 */
        top: 65.5% !important;
        left: 34.25% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(4) { /* 薬学研究科 */
        top: 65.5% !important;
        left: 67% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(5) { /* 大学病院 */
        top: 76.5% !important;
        left: 1.5% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(6) { /* 加齢医学研究所 */
        top: 76.5% !important;
        left: 34.25% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(7) { /* ToMMo */
        top: 76.5% !important;
        left: 67% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(9) { /* 産学連携部 */
        top: 87.5% !important;
        left: 1.5% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(10) { /* OI機構 */
        top: 87.5% !important;
        left: 34.25% !important;
        width: 240px !important;
        height: 105px !important;
    }
    .organization-image-container .external-link:nth-child(8) { /* 未来型医療創成センター */
        top: 87.5% !important;
        left: 67% !important;
        width: 240px !important;
        height: 105px !important;
    }
    
    
    /* Drug Discoveryセクションの各外部リンク個別調整 */
    .platform-image-container .external-link:nth-child(2) { /* ToMMo */
        top: 84% !important;
        left: 2.95% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(3) { /* INGEM */
        top: 84% !important;
        left: 21.85% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(4) { /* NanoTerasu */
        top: 84% !important;
        left: 40.75% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(5) { /* 医薬品開発研究センター */
        top: 84% !important;
        left: 59.6% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(6) { /* 動物・遺伝子実験支援センター */
        top: 84% !important;
        left: 78.5% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(7) { /* 先端量子ビーム化学研究センター */
        top: 91% !important;
        left: 2.95% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(8) { /* THVP */
        top: 91% !important;
        left: 21.85% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(9) { /* OI機構 */
        top: 91% !important;
        left: 40.75% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(10) { /* 医療介護ネットワーク推進財団MIYAGI */
        top: 91% !important;
        left: 59.6% !important;
        width: 140px !important;
        height: 40px !important;
    }
    .platform-image-container .external-link:nth-child(11) { /* 大学病院・CRIETO */
        top: 91% !important;
        left: 78.5% !important;
        width: 140px !important;
        height: 40px !important;
    }
    
    /* フォトキャプション */
    .photo-caption-container {
        flex-direction: column;
        gap: 40px;
    }
    .photo-caption-left {
        padding-right: 0;
    }
    .photo-caption-text-jp,
    .photo-caption-text-en-main {
        font-size: 12pt;
    }
    .photo-caption-item,
    .photo-caption-item-en {
        font-size: 14pt;
    }
    
    /* SVGアイコンのモバイル版置換 */
    img[src="svg/1_news.svg"] {
        content: url("../svg/mobile_1_news.svg");
    }
    
    img[src="svg/2_concept.svg"] {
        content: url("../svg/mobile_2_concept.svg");
    }
    
    img[src="svg/3_organization.svg"] {
        content: url("../svg/mobile_3_organization.svg");
    }
    
    img[src="svg/4_drug_discovery.svg"] {
        content: url("../svg/mobile_4_drug.svg");
    }
    
    img[src="svg/5_facility.svg"] {
        content: url("../svg/mobile_5_facility.svg");
    }
    
    img[src="svg/6_access.svg"] {
        content: url("../svg/mobile_6_access.svg");
    }
    
    img[src="svg/7_contact_us.svg"] {
        content: url("../svg/mobile_7_contact us.svg");
    }
    
    img[src="svg/form_banner.svg"] {
        content: url("../img/mobile_form.png");
        width: 80%;
        height: auto;
    }
    
    img[src="svg/form_banner.svg"] {
        display: none;
    }

    img[src="svg/uni_logo_110px.svg"] {
        display: none;
    }
}
