/*
Theme Name: YCU Community Health Nursing
Theme URI: https://www.yokohama-cu.ac.jp/
Description: 横浜市立大学大学院 医学研究科 看護学専攻のオリジナルテーマです。
Author: Antigravity
Version: 1.0.0
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Header Styles */
.site-header {
    background: transparent;
    /* 初期は透過 */
    height: 88px;
    position: fixed;
    /* 固定配置 */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    background: #fff;
    /* スクロール後、またはメニュー展開時は白 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    /* Figma: space-between */
    align-items: center;
    width: 100%;
    max-width: 1440px;
    /* Figma: Fixed 1,440px */
    margin: 0 auto;
    padding: 10px 60px;
    /* Figma: Top/Bottom 10px, Left/Right 60px */
}

.header-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
    /* メニューとボタンの間の余白 */
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
    /* メニューとコンタクトボタンの間の距離 */
}

.main-navigation .nav-list {
    display: flex;
    gap: 40px;
    /* メニュー項目間の余白 */
}

.nav-list a {
    font-weight: 500;
    font-size: 15px;
}

.contact-button {
    background: #333;
    color: #fff;
    padding: 12px 32px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    line-height: 1;
    /* ボタンの高さを調整 */
}

/* Background Decoration */
.site-main {
    position: relative;
}

.main-background-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.geometric-curves {
    position: absolute;
    top: 800px;
    right: 0;
    width: 100%;
    height: calc(100% - 800px);
    background-image: url('assets/images/bg-geometric-curves.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    /* 全体の流れに合わせて調整 */
    z-index: 1;
    opacity: 1;
    /* 不透明度を1にしてしっかり見せる */
}

.mask-visual-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 1600px;
    /* HeroとAboutをカバーする高さ */
    background-image: url('assets/images/bg-mask-visual.png');
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    /* スマホ・PC共通で全画面表示 */
    min-height: 600px;
    overflow: hidden;
    background-color: transparent;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url('assets/images/hero-main-visual.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-section .container {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0;
    max-width: none;
    /* コンテナの1200px制限を解除 */
    width: 100%;
    padding-right: 0;
}

/* .hero-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: #fff;
    clip-path: ellipse(80% 100% at 0% 50%);
    opacity: 0.8;
    z-index: 1;
} */

.hero-content {
    width: 50%;
    /* 右50%に配置 */
    position: relative;
    z-index: 10;
    text-align: left;
    padding: 0 60px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.hero-subtitle {
    font-size: 16px;
    color: #000;
    font-weight: 700;
}

/* Section Common */
.section-title {
    font-size: 48px;
    margin-bottom: 40px;
    position: relative;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: transparent;
    /* 背景レイヤーを見せるため */
    position: relative;
    min-height: 700px;
}

.about-section::before {
    display: none;
    /* 背景レイヤーで代用 */
}

.about-section .container {
    display: flex;
    justify-content: flex-end;
    /* 右寄せ */
}

.about-section .section-layout {
    width: 50%;
    /* 右50%に配置 */
    display: flex;
    flex-direction: column;
    /* 上下に配置 */
    gap: 40px;
}

.about-section .section-title {
    font-size: 80px;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    position: relative;
    z-index: 2;
}

/* .about-bg-shape {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 600px;
    height: 600px;
    background: #dbf2db;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
} */

/* Research Overview */
.research-overview-section {
    padding: 100px 0;
    background: transparent;
}

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

.research-card {
    aspect-ratio: 1 / 1;
    /* 正方形にする */
    height: auto;
    /* 固定高さを解除 */
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* コンテンツを中央に寄せて高さを揃える */
    color: #fff;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* 画像を少し暗くして文字を読みやすくする */
    z-index: 1;
}

.research-card:nth-child(1) {
    background-image: url('assets/images/research-01.png');
}

.research-card:nth-child(2) {
    background-image: url('assets/images/research-02.png');
}

.research-card:nth-child(3) {
    background-image: url('assets/images/research-03.png');
}

.card-number {
    font-size: 80px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.research-card h3 {
    font-size: 20px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Publications Section */
.publications-section {
    padding: 100px 0;
    background: transparent;
}

.publications-section .section-title {
    font-size: 56px;
    /* スクリーンショットに合わせて大きめに */
    font-weight: 700;
    margin-bottom: 60px;
}

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

.publication-list li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    gap: 80px;
    /* 日付とテキストの間の余白 */
}

.pub-date {
    width: 120px;
    /* スクリーンショットの 120x15 に合わせる */
    flex-shrink: 0;
    font-size: 15px;
    color: #333;
    padding-top: 5px;
}

.pub-title {
    flex-grow: 1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: underline;
    color: #333;
    padding-right: 40px;
    /* 右端の円のためのスペース */
}

.pub-bullet {
    width: 8px;
    height: 8px;
    border: 1px solid #333;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .publication-list li {
        flex-direction: column;
        gap: 10px;
    }

    .pub-date {
        width: 100%;
    }

    .pub-title {
        padding-right: 0;
    }

    .pub-bullet {
        top: 20px;
    }
}

/* Faculty Section */
.faculty-section {
    padding: 120px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.faculty-bg-shape {
    display: none;
    /* 画像を優先するため削除 */
}

.faculty-section .section-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 80px;
    color: #000;
}

.faculty-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faculty-item {
    display: flex;
    flex-direction: column;
    max-width: 840px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    /* 白の透過60% */
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    /* 背面の模様を少しぼかすとより美しくなります */
}

.job-title {
    font-size: 36px;
    color: rgba(26, 88, 181, 0.5);
    /* スクリーンショットの淡いブルー */
    font-weight: 500;
    margin-bottom: 10px;
}

.faculty-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    /* スクリーンショットの 20px */
}

.faculty-profile {
    width: 180px;
    /* スクリーンショットの指定値 */
    flex-shrink: 0;
    text-align: center;
}

.faculty-photo {
    width: 100%;
    /* height: 260px; */
    /* スクリーンショットの指定値 */
    margin-bottom: 15px;
    overflow: hidden;
}

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

.faculty-name {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.faculty-degree {
    font-size: 14px;
    color: #333;
}

.faculty-details {
    flex-grow: 1;
}

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

.detail-box h4 {
    background: #DBEAFF;
    /* 薄いブルーのバー */
    padding: 6px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: block;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 50px;
}

.detail-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .faculty-body {
        flex-direction: column;
        align-items: center;
    }

    .faculty-profile {
        width: 100%;
        margin-bottom: 30px;
    }

    .job-title {
        font-size: 28px;
        text-align: center;
    }
}

/* Footer Section */
.site-footer {
    background-color: #dbf2db;
    /* スクリーンショットの淡いグリーン */
    padding: 80px 0 40px;
    color: #333;
}

.footer-container {
    max-width: 800px;
    /* ロゴとナビのバランスを考えて調整 */
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 56px;
    /* スクリーンショットの指定値 */
}

.circular-logo {
    width: 150px;
    /* スクリーンショットの指定値 */
    height: 150px;
    /* background: #fff; */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circular-logo img {
    width: 80%;
    height: auto;
}

.footer-navigation {
    flex-grow: 1;
    max-width: 400px;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
}

.footer-nav-list li {
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

.footer-nav-list a {
    display: block;
    padding: 12px 0 0;
    font-size: 16px;
    font-weight: 500;
}

.footer-copyright {
    margin-top: 80px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .footer-navigation {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
        /* タブレットでは2列 */
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-content {
        width: 80%;
        padding-right: 40px;
    }
}

.menu-toggle {
    display: none;
    /* デフォルト（PC）では非表示 */
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
        /* さらにコンパクトに */
    }

    .site-header {
        height: 60px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .header-logo-img {
        height: 35px;
        /* スマホではロゴを小さく */
    }

    .header-right {
        display: block;
        /* 非表示を解除 */
    }

    .main-navigation {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        padding: 40px 20px;
        display: none;
        flex-direction: column;
        align-items: center;
        z-index: 999;
        overflow-y: auto;
    }

    .main-navigation.is-active {
        display: flex;
    }

    .main-navigation .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-bottom: 40px;
    }

    .nav-list a {
        font-size: 20px;
    }

    /* スマホメニュー内にコンタクトボタンを表示 */
    .main-navigation .header-contact {
        display: block;
        width: 100%;
        max-width: 280px;
    }

    .main-navigation .contact-button {
        display: block;
        text-align: center;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .menu-toggle .bar {
        width: 30px;
        height: 2px;
        background: #333;
        transition: 0.3s;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Mobile */
    .hero-bg-container {
        width: 100%;
    }

    .hero-section {
        height: 50vh;
        min-height: 500px;
        margin-top: 50px;
    }

    .hero-section .container {
        padding-right: 20px;
        padding-left: 20px;
        padding-bottom: 60px;
        /* 下に寄りすぎないよう調整 */
        justify-content: center;
        align-items: center;
        /* 中央揃えを徹底 */
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-title {
        font-size: 28px;
        /* 文字を少し小さくして1行の収まりを良くする */
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Section Layouts Mobile */
    .about-section .container {
        justify-content: center;
    }

    .about-section .section-layout {
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .research-overview-section,
    .publications-section,
    .faculty-section {
        padding: 60px 0;
    }

    .about-section .section-title,
    .research-overview-section .section-title,
    .publications-section .section-title,
    .faculty-section .section-title {
        font-size: 32px;
        /* スマホ向けにサイズを縮小 */
        margin-bottom: 40px;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .faculty-item {
        padding: 20px;
    }

    .faculty-photo {
        width: 150px !important;
        /* スマホでは150pxに */
        height: auto;
        margin: 0 auto;
    }

    .faculty-body {
        flex-direction: column;
        align-items: center;
    }

    .faculty-profile {
        width: 100%;
        margin-bottom: 20px;
    }

    .faculty-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .job-title {
        font-size: 24px;
        text-align: center;
    }

    /* Background Adjustments Mobile */
    .geometric-curves {
        background-size: 100% auto;
        height: 100%;
        /* スマホでは模様を拡大して密度を調整 */
    }

    .mask-visual-left {
        width: 120%;
        /* 少しはみ出させることで曲線を表現 */
        height: 100vh;
        top: 0%;
        left: -20%;
        opacity: 0.7;
        /* 背景として馴染ませる */
    }

    .research-card {
        aspect-ratio: 1.5 / 1;
    }
}