/* ============================================================
   奈良女子大学 生活情報通信科学コース
   style.css
   ============================================================ */

:root {
    --bg-white: #ffffff;
    --off-white: #f9f9f9;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent-purple: #6B5B95;
    --accent-purple-light: #f0edf8;
    --accent-purple-dark: #5a4d7e;
    --border: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 10%;
    position: fixed;
    width: 100%;
    top: 30px;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.01);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 0.7rem 10%;
    top: 0;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    /*text-transform: uppercase;*/
    cursor: pointer;
}

.logo-top {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-purple);
}

/* cta-btnはhover時も紫背景・白文字を維持 */
.nav-links a.cta-btn:hover {
    background: #5a4d7e;
    color: white;
}

.cta-btn {
    background: var(--accent-purple);
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cta-btn:hover {
    background: #5a4d7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.45);
}

.navbar .nav-links a.cta-btn,
.navbar .nav-links a.cta-btn:hover {
    color: white;
}

/* スクロール後・サブページ問わずcta-btnは常に紫背景・白文字 */
.nav-links a.cta-btn:hover,
body.subpage .navbar .nav-links a.cta-btn:hover,
.navbar.scrolled .nav-links a.cta-btn:hover,
.navbar:not(.scrolled) .nav-links a.cta-btn:hover {
    background: #5a4d7e !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.45);
}

/* --- Hamburger button (hidden on desktop) --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* ✕ アニメーション */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile breakpoint (≤ 1024px) --- */
@media (max-width: 1024px) {

    .navbar {
        flex-wrap: wrap;
        padding: 1rem 5%;
        position: fixed;
    }

    .hamburger {
        display: flex;
    }

    /* ナビ非表示（初期状態） */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease;
        opacity: 0;
        /* ナビを navbar 直下に自然に展開 */
        order: 3;
        padding: 0;
        margin: 0;
    }

    /* ナビ展開状態 */
    .nav-links.open {
        max-height: 400px;
        opacity: 1;
        padding: 8px 0 16px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .cta-btn {
        margin-top: 8px;
        display: inline-block;
        padding: 10px 20px;
        width: auto;
    }

    /* ナビが白背景のとき用（scrolled or open） */
    .navbar.scrolled .hamburger,
    .navbar.menu-open .hamburger {
        color: var(--text-main);
    }

    /* ヒーロー上の透明ナビ */
    .navbar:not(.scrolled):not(.menu-open) .hamburger {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 92vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: var(--dark-base);
}

/* --- Hero Slideshow --- */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;

    transform: scale(1.0);
}

/* アクティブスライドはフェードイン */
.hero-slide.active {
    opacity: 1;
}

/* グラデーションオーバーレイ（z-index:1 でスライドの上） */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(10, 8, 22, 0.80) 0%,
            rgba(10, 8, 22, 0.50) 50%,
            rgba(10, 8, 22, 0.15) 100%),
        linear-gradient(to top,
            rgba(10, 8, 22, 0.90) 0%,
            rgba(10, 8, 22, 0.0) 55%);
    z-index: 1;
    pointer-events: none;
}

/* スライドインジケーター（右下） */
.hero-indicators {
    position: absolute;
    bottom: 2.4rem;
    right: 10%;
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-dot {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.4s, width 0.4s;
    border: none;
    padding: 0;
}

.hero-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 5% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ナビの透明領域を白文字に対応させる */
.navbar:not(.scrolled) .logo-top,
.navbar:not(.scrolled) .logo-main {
    color: rgba(255, 255, 255, 0.85);
}

.navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.82);
}

.navbar:not(.scrolled) .nav-links a:hover {
    color: #fff;
}

.grant-banner {
    background: #f7f5fc;
    border-top: 1px solid #ebe7f6;
    border-bottom: 1px solid #ebe7f6;
}

.grant-banner__inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 30px 10%;
}

/* ロゴ：縦の区切り線で本文から分離し「署名」として見せる */
.grant-banner__logo {
    width: 190px;
    flex-shrink: 0;
    padding-right: 32px;
    border-right: 1px solid #d9d3ec;
}

.grant-banner__logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.grant-banner__content {
    flex: 1;
    min-width: 0;
}

.grant-banner__title {
    font-size: 16px;
    font-weight: 700;
    color: #3d3277;
    line-height: 1.5;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.grant-banner__text {
    color: #6b6880;
    font-size: 12.5px;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .grant-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 26px 5%;
    }

    /* モバイルでは縦線を下線に切り替え */
    .grant-banner__logo {
        width: 170px;
        padding-right: 0;
        padding-bottom: 14px;
        border-right: none;
        border-bottom: 1px solid #d9d3ec;
    }

    .grant-banner__title {
        font-size: 15px;
    }

    .grant-banner__text {
        font-size: 12px;
    }
}
/* サブページ：ヒーローが静止画のためナビを最初から白背景に */
body.subpage .navbar:not(.scrolled) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: none;
}

body.subpage .navbar:not(.scrolled) .logo-top,
body.subpage .navbar:not(.scrolled) .logo-main {
    color: var(--accent-purple);
}

body.subpage .navbar:not(.scrolled) .logo-top {
    color: var(--text-muted);
}

body.subpage .navbar:not(.scrolled) .nav-links a {
    color: var(--text-main);
}

body.subpage .navbar:not(.scrolled) .nav-links a.cta-btn {
    color: white;
}

body.subpage .navbar:not(.scrolled) .nav-links a:hover {
    color: var(--accent-purple);
}

body.subpage .navbar:not(.scrolled):not(.menu-open) .hamburger {
    color: var(--text-main);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.55;
    color: #ffffff;
    font-weight: 400;
    /* 細め・上品 */
    font-style: normal;
    letter-spacing: 0.01em;
    margin-bottom: 1.4rem;
}

.hero p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.03em;
    max-width: 600px;
    margin-bottom: 0;
}

.hero-btns {
    margin-top: 2.2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 560px) {
    .hero-btns {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary,
    .btn-highlight {
        min-width: 0;
        width: 100%;
    }
}

.btn-primary,
.btn-secondary,
.btn-highlight {
    padding: 0.85rem 2rem;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
    min-width: 260px;
    box-sizing: border-box;
}

.btn-primary {
    background: white;
    color: var(--text-main);
    border: none;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    transform: translateY(-2px);
}

/* --- General Content Layouts --- */
.content-section {
    padding: 100px 10%;
    /* Matches original style_v2.css sectioning */
    background: var(--bg-white);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Inter', serif;
    /*'Playfair Display', serif; */
    font-size: 1.8rem;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    font-weight: 520;
}

/* --- News Section --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    gap: 40px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.news-item:first-child {}

.news-item .date {
    font-weight: 700;
    color: var(--accent-purple);
    min-width: 120px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.news-item p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-main);
}

.news-item p a {
    color: var(--accent-purple);
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 91, 149, 0.25);
    transition: border-color 0.2s;
}

.news-item p a:hover {
    border-color: var(--accent-purple);
}

/* バッジ */
.news-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 2px 9px;
    border-radius: 20px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.badge-exam {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
}

.badge-event {
    background: #edf2ff;
    color: #3a5fc8;
}

/* --- Highlights Grid --- */
.highlight-bg {
    background-color: var(--off-white);
}

/* 3. Smooth Title Scaling (No font-size change) */

/* 4. Smooth Paragraph Scaling */

/* --- Faculty Grid --- */
.grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .grid-four {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .grid-four {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.faculty-item {
    text-align: left;
}

.faculty-avatar {
    aspect-ratio: 1/1;
    background: var(--off-white);
    margin-bottom: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.faculty-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(6%);
    transition: filter 0.3s, transform 0.4s ease;
}

.faculty-item:hover .faculty-avatar img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.faculty-item h4 {
    margin-bottom: 4px;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.1px;
}

.faculty-item h4 span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 6px;
    margin-bottom: 0;
}

.specialty {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* --- Career (Sponsor Style) Grid --- */

/* --- Footer Styling --- */
.site-footer {
    padding: 50px 10%;
    /* Reduced padding for a thinner look */
    background-color: var(--bg-white);
    /* Adds the subtle background color */
    border-top: 1px solid var(--border);
    text-align: center;
    /* Centers everything in the middle */
}

.footer-content p {
    margin-bottom: 8px;
}

.address,
.email {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    line-height: 1.5;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 25px;
    /* Creates space between contact info and copyright */
    font-weight: 600;
}

/* --- Faculty Detail Cards (vertical, full-photo) --- */
.faculty-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2px;
    /* タイル状にぴったり並べる */
    overflow: visible;
    /* ホバー時カードが隠れないよう */
}

@media (min-width: 1100px) {
    .faculty-grid-detail {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .faculty-grid-detail {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* カード本体：縦型、写真が上全幅 */
.faculty-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    overflow: visible;
    position: relative;
    cursor: default;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    z-index: 10;
    position: relative;
}

/* 写真エリア：カード幅いっぱい・正方形に近いアスペクト */
.faculty-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--off-white);
    flex-shrink: 0;
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* 顔が上に来るよう調整 */
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(8%);
}

.faculty-card:hover .faculty-photo img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

/* 情報エリア */
.faculty-info {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid transparent;
    transition: border-color 0.3s;
}

.faculty-card:hover .faculty-info {
    border-top-color: var(--accent-purple);
}

.faculty-info h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin: 0 0 4px;
}

.faculty-info h4 span {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.faculty-degree {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.faculty-info .specialty {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.4;
}

.faculty-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.faculty-mail {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
    line-height: 1.5;
}

.faculty-mail:hover {
    color: var(--accent-purple);
}

.faculty-rm {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: opacity 0.2s;
}

.faculty-rm:hover {
    opacity: 0.65;
}

/* --- Highlights intro --- */
.highlights-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 48px;
    align-items: baseline;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.highlights-intro .section-label {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    white-space: nowrap;
    font-size: 1.4rem;
}

.highlights-lead {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.9;
}

@media (max-width: 768px) {
    .highlights-intro {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- Highlights: 2-column layout --- */
.highlights-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.highlights-photo {
    border-radius: 4px;
    overflow: hidden;
    max-height: 520px;
    min-height: 320px;
    background: var(--off-white);
}

.highlights-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 右側：2×2カードグリッド */
.highlights-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hl-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.hl-card:hover {
    box-shadow: 0 6px 24px rgba(107, 91, 149, 0.1);
    transform: translateY(-2px);
}

.hl-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-purple-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hl-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-purple);
}

.hl-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hl-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}

.hl-sub {
    font-size: 0.68rem;
    color: var(--accent-purple);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.hl-body p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 4px 0 6px;
}

.hl-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
    margin-top: auto;
}

.hl-link:hover {
    opacity: 0.65;
}

/* タブレット以下：縦積み */
@media (max-width: 900px) {
    .highlights-layout {
        grid-template-columns: 1fr;
    }

    .highlights-photo {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .highlights-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   サブページ共通スタイル
   ============================================================ */

/* --- ページヒーロー（トップのヒーローデザインと統一） --- */
.page-hero {
    position: relative;
    background: var(--dark-base);
    overflow: hidden;
    padding: 140px 10% 80px;
    display: flex;
    align-items: flex-end;
}

/* 背景画像レイヤー（img/hero_sub.jpg があれば表示） */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--page-hero-img, none);
    background-size: cover;
    background-position: center 40%;
    z-index: 0;
    transform: scale(1.03);
}

/* グラデーションオーバーレイ */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(10, 8, 22, 0.88) 0%,
            rgba(10, 8, 22, 0.55) 55%,
            rgba(10, 8, 22, 0.2) 100%),
        linear-gradient(to top,
            rgba(10, 8, 22, 0.92) 0%,
            rgba(10, 8, 22, 0.0) 55%);
    z-index: 1;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* パンくずラベル */
.page-hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 400;
    font-style: normal;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.page-hero p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* --- サブページ セクション共通 --- */
.sub-section {
    padding: 80px 10%;
    background: var(--bg-white);
}

.sub-section--alt {
    background: var(--off-white);
}

.sub-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- 言語バー（ナビ上部の細バー） --- */
.lang-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
    border-bottom: none;
    transition: background 0.4s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10%;
    z-index: 1001;
}

.lang-bar a {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 10px;
    transition: color 0.2s;
    text-transform: uppercase;
}

.lang-bar a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.lang-bar a.active {
    color: rgba(255, 255, 255, 0.9);
}

.lang-bar-divider {
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
}

/* スクロール後 */
.lang-bar.scrolled {
    background: rgba(40, 35, 60, 0.75);
    backdrop-filter: blur(6px);
}

/* サブページは常に背景あり */
body.subpage .lang-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

body.subpage .lang-bar a {
    color: var(--text-muted);
}

body.subpage .lang-bar a:hover {
    color: var(--accent-purple);
}

body.subpage .lang-bar a.active {
    color: var(--accent-purple);
    font-weight: 700;
}

body.subpage .lang-bar-divider {
    background: rgba(107, 91, 149, 0.2);
}

@media (max-width: 1024px) {
    .lang-bar {
        padding: 0 5%;
    }

    .navbar {
        top: 30px;
    }
}

/* ============================================================
   研究室ページ共通スタイル (lab)
   ============================================================ */

.lab-hero {
    padding: 140px 10% 60px;
    position: relative;
    background: #0d0b18;
    overflow: hidden;
}

.lab-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--page-hero-img, none);
    background-size: cover;
    background-position: center 40%;
    z-index: 0;
    transform: scale(1.03);
    filter: brightness(0.4);
}

.lab-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(10, 8, 22, 0.88) 0%, rgba(10, 8, 22, 0.4) 100%),
        linear-gradient(to top, rgba(10, 8, 22, 0.95) 0%, rgba(10, 8, 22, 0.0) 55%);
    z-index: 1;
}

.lab-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    align-items: flex-end;
}

.lab-hero-text {
    flex: 1;
}

.lab-hero-img {
    width: 220px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.05);
}

.lab-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(10%);
}

.lab-breadcrumb {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.lab-breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.lab-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lab-breadcrumb span {
    margin: 0 8px;
}

.lab-hero-catch {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.lab-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.lab-hero-prof {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.lab-hero-prof span {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 8px;
}

.lab-tags-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.lab-tag-hero {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .lab-hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .lab-hero-img {
        width: 120px;
    }
}

/* コンテンツエリア */
.lab-content {
    padding: 72px 10%;
    background: var(--bg-white);
}

.lab-content-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

@media (max-width: 900px) {
    .lab-content-inner {
        grid-template-columns: 1fr;
    }
}

.lab-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.lab-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 40px;
}

.lab-main img,
.lab-main video {
    max-width: 100% !important;
    height: auto !important;
}

.lab-main iframe,
.lab-research-item iframe {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* サイドバー */
.lab-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.lab-sidebar-card {
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent-purple);
    padding: 24px 20px;
}

.lab-sidebar-card h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lab-prof-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.lab-prof-rank {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.lab-prof-degree {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lab-prof-specialty {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.5;
}

.lab-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 10px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}

.lab-link-item:hover {
    border-color: var(--accent-purple);
    color: var(--text-main);
}

.lab-link-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.lab-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.lab-back-link:hover {
    color: var(--accent-purple);
}

.lab-back-link svg {
    width: 14px;
    height: 14px;
}

.lab-research-item {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.lab-research-item:last-child {
    border-bottom: none;
}

.lab-research-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.lab-research-item p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 16px;
}

/* ===================================================
   course/index.html 専用スタイル
   =================================================== */
.course-hero {
    background: linear-gradient(105deg, #3a2d5e 0%, var(--accent-purple) 100%);
    padding: 120px 10% 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.course-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    font-style: normal;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.course-hero-video {
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.course-hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.5s;
}

.course-hero-video:hover img {
    transform: scale(1.05);
}

.course-hero-video-btn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.course-hero-video-btn .play-circle {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, background 0.25s;
}

.course-hero-video:hover .play-circle {
    transform: scale(1.1);
    background: #fff;
}

.play-circle svg {
    color: #1a2744;
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.course-hero-video-btn span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

/* 特徴3カラム */
.feature-strip {
    background: var(--off-white);
    padding: 72px 10%;
}

.feature-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.feature-item-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-purple);
}

.feature-item h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* コースについて（旧：学問の領域） */
.domain-section {
    padding: 88px 10%;
    background: var(--bg-white);
}

.domain-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.domain-header {
    text-align: center;
    margin-bottom: 56px;
}

.domain-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    display: inline-block;
}

.domain-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 12px;
}

.domain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.domain-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 32px 28px;
    display: flex;
    gap: 24px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.domain-card:hover {
    box-shadow: 0 8px 32px rgba(107, 91, 149, 0.1);
    transform: translateY(-3px);
}

.domain-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.domain-card:hover .domain-card-icon {
    transform: scale(1.1);
}

.domain-card-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.icon-purple {
    background: linear-gradient(135deg, #f0edf8, var(--accent-purple));
}

.icon-blue {
    background: linear-gradient(135deg, #6e9ec5, #3d6b9e);
}

.icon-pink {
    background: linear-gradient(135deg, #c47a96, #9e5070);
}

.icon-indigo {
    background: linear-gradient(135deg, #7d88c4, #4a5899);
}

.domain-card-body {
    flex: 1;
}

.domain-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.domain-card:hover .domain-card-body h3 {
    color: var(--accent-purple);
}

.domain-card-body>p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
}

.domain-curriculum-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.domain-tag {
    background: var(--off-white);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 2px;
}

/* 大学院バナー */
.grad-banner {
    background: linear-gradient(105deg, #3a2d5e, var(--accent-purple));
    margin: 0 10% 88px;
    border-radius: 4px;
    padding: 64px 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    overflow: hidden;
    margin-top: 30px
}

.grad-banner-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(107, 91, 149, 0.25);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.grad-banner-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.grad-banner-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    font-style: normal;
    color: #fff;
    margin-bottom: 16px;
}

.grad-banner-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.9;
    max-width: 560px;
    margin-bottom: 28px;
}

.grad-banner-btn {
    display: inline-block;
    background: #4a5899;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.grad-banner-btn:hover {
    background: #3a4878;
    transform: translateY(-2px);
}

.grad-banner-icon {
    flex-shrink: 0;
    opacity: 0.15;
    position: relative;
    z-index: 1;
}

.grad-banner-icon svg {
    width: 160px;
    height: 160px;
    color: rgba(255, 255, 255, 0.25);
}

/* course レスポンシブ */
@media (max-width: 960px) {
    .domain-grid {
        grid-template-columns: 1fr;
    }

    .grad-banner {
        flex-direction: column;
        margin: 0 5% 64px;
        padding: 40px 28px;
        gap: 32px;
    }

    .grad-banner-icon {
        display: none;
    }
}

@media (max-width: 640px) {
    .feature-strip-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-strip {
        padding: 56px 5%;
    }

    .domain-section {
        padding: 56px 5%;
    }

    .domain-card {
        flex-direction: column;
    }
}

/* ===================================================
   study/index.html 専用スタイル
   =================================================== */

/* 研究室カードグリッド */
.lab-section {
    padding: 72px 10%;
    background: var(--off-white);
}

.lab-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.lab-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.lab-section-title svg {
    width: 32px;
    height: 32px;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.lab-section-title h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lab-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: visible;
    transition: box-shadow 0.3s, transform 0.3s;
}

.lab-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    z-index: 10;
    position: relative;
}

.lab-card-img {
    height: 180px;
    overflow: hidden;
    background: var(--off-white);
    position: relative;
    border-radius: 2px 2px 0 0;
}

.lab-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.lab-card:hover .lab-card-img img {
    transform: scale(1.08);
}

.lab-card-img-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.18;
}

.lab-card-body {
    padding: 28px 24px 22px;
}

.lab-card-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.lab-card-prof {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 12px;
    display: block;
}

.lab-card-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.lab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.lab-tag {
    font-size: 0.7rem;
    background: var(--off-white);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 2px;
}

.lab-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
    transition: gap 0.2s;
}

.lab-card-link:hover {
    gap: 10px;
}

.lab-card-link svg {
    width: 14px;
    height: 14px;
}

/* 教職員リスト */
.staff-section {
    padding: 72px 10%;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.staff-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.staff-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.staff-section-title svg {
    width: 32px;
    height: 32px;
    color: var(--accent-purple);
}

.staff-section-title h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.staff-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border: 1px solid transparent;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s;
}

.staff-card:hover {
    background: var(--bg-white);
    border-color: var(--border);
}

.staff-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--border);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.staff-degree {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.staff-specialty {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 10px;
    display: block;
}

.staff-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.staff-mail {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-decoration: none;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 4px;
}

.staff-mail svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: var(--text-light);
}

.staff-mail:hover {
    color: var(--accent-purple);
}

.staff-rm {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.staff-rm svg {
    width: 10px;
    height: 10px;
}

.staff-rm:hover {
    opacity: 0.65;
}

/* お問い合わせバナー */
.contact-banner {
    margin: 0 10% 80px;
    background: #0f172a;
    border-radius: 4px;
    padding: 52px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-banner-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: rgba(79, 70, 229, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.contact-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.contact-banner p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.85;
    max-width: 480px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.contact-banner-btn {
    display: inline-block;
    background: var(--accent-purple);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    position: relative;
    z-index: 1;
}

.contact-banner-btn:hover {
    background: #5a3d80;
    transform: translateY(-2px);
}

/* study レスポンシブ */
@media (max-width: 960px) {
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-banner {
        margin: 0 5% 60px;
        padding: 36px 28px;
    }
}

@media (max-width: 600px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .lab-section,
    .staff-section {
        padding: 56px 5%;
    }
}

/* ===================================================
   study/prof/ 各教員プロフィールページ 共通スタイル
   =================================================== */
.prof-hero {
    padding: 140px 10% 60px;
    position: relative;
    background: #0d0b18;
    overflow: hidden;
}

.prof-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(10, 8, 22, 0.92) 0%, rgba(10, 8, 22, 0.5) 100%),
        linear-gradient(to top, rgba(10, 8, 22, 0.95) 0%, rgba(10, 8, 22, 0.0) 55%);
    z-index: 1;
}

.prof-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    align-items: flex-end;
}

.prof-hero-text {
    flex: 1;
}

.prof-hero-img {
    width: 200px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.05);
}

.prof-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(8%);
}

.prof-breadcrumb {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.prof-breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.prof-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.prof-breadcrumb span {
    margin: 0 8px;
}

.prof-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.prof-hero-rank {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

.prof-content {
    padding: 72px 10%;
    background: var(--bg-white);
}

.prof-content-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

@media (max-width:900px) {
    .prof-content-inner {
        grid-template-columns: 1fr;
    }
}

.prof-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-top: 40px;
}

.prof-section-title:first-child {
    margin-top: 0;
}

.prof-body p,
.prof-body li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.95;
    margin-bottom: 12px;
}

.prof-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    margin-top: 24px;
}

.prof-body ol,
.prof-body ul {
    padding-left: 1.4em;
    margin-bottom: 16px;
}

.prof-body ol li,
.prof-body ul li {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 6px;
}

.prof-body a {
    color: var(--accent-purple);
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 91, 149, 0.25);
    transition: border-color 0.2s;
}

.prof-body a:hover {
    border-color: var(--accent-purple);
}

.prof-body dl {
    margin-bottom: 16px;
}

.prof-body dt {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-top: 16px;
    margin-bottom: 4px;
}

.prof-body dd {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-left: 0;
    padding-left: 1em;
    border-left: 2px solid var(--border);
}

.prof-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.prof-sidebar-card {
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent-purple);
    padding: 24px 20px;
}

.prof-sidebar-card h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.prof-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.prof-rank-s {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.prof-specialty {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.5;
}

.prof-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prof-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 10px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}

.prof-link-item:hover {
    border-color: var(--accent-purple);
    color: var(--text-main);
}

.prof-link-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.prof-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.prof-back-link:hover {
    color: var(--accent-purple);
}

.prof-back-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width:768px) {
    .prof-hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .prof-hero-img {
        width: 120px;
    }
}

/* ===================================================
   curriculum/index.html 専用スタイル
   =================================================== */

/* カテゴリバッジ帯 */
.cat-strip {
    background: var(--off-white);
    padding: 0 10%;
    margin-bottom: 0;
}

.cat-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 32px 0;
}

.cat-chip {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-chip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-chip-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.bg-purple {
    background: var(--accent-purple);
}

.bg-blue {
    background: #3d6b9e;
}

.bg-pink {
    background: #9e5070;
}

.bg-indigo {
    background: #4a5899;
}

.cat-chip-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

/* 年次セクション */
.curriculum-section {
    padding: 80px 10%;
    background: var(--bg-white);
}

.curriculum-section+.curriculum-section {
    padding-top: 0;
}

.curriculum-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* 年次ヘッダーバー */
.year-header {
    border-radius: 4px;
    padding: 32px 36px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.year-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.year-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    font-style: normal;
    color: #fff;
    margin-bottom: 8px;
}

.year-header p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    line-height: 1.75;
}

.year-header-icon {
    position: absolute;
    right: -16px;
    bottom: -16px;
    opacity: 0.08;
}

.year-header-icon svg {
    width: 160px;
    height: 160px;
}

.bg-year1 {
    background: linear-gradient(105deg, #5b4a7a, var(--accent-purple));
}

.bg-year2 {
    background: linear-gradient(105deg, #2e5077, #3d6b9e);
}

.bg-year3 {
    background: linear-gradient(105deg, #7a3a5a, #9e5070);
}

.bg-year4 {
    background: linear-gradient(105deg, #3a4878, #3d4f60);
}

/* 科目カードグリッド */
.subject-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 60px;
}

.subject-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 24px 24px 20px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.subject-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.subject-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.subject-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    transition: color 0.2s;
}

.subject-card:hover h3 {
    color: var(--accent-purple);
}

.subject-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    background: var(--off-white);
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.subject-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.syllabus-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.syllabus-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-purple);
    background: #f0edf8;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.syllabus-link:hover {
    background: var(--accent-purple);
    color: #fff;
}

.syllabus-link svg {
    width: 10px;
    height: 10px;
}

/* 卒業研究バナー */
.research-banner {
    background: #0f172a;
    margin: 0 10% 80px;
    border-radius: 4px;
    padding: 56px 60px;
    display: block;
    position: relative;
    overflow: hidden;
}

.research-banner-glow {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: rgba(79, 70, 229, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.research-banner-body {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.research-banner-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.research-banner-title-row svg {
    width: 28px;
    height: 28px;
    color: #818cf8;
}

.research-banner-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.research-banner-body p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.9;
    margin-bottom: 24px;
}

.research-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4f46e5;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.research-banner-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.research-banner-btn svg {
    width: 14px;
    height: 14px;
}

/* 科目区分リンク */
.cat-links-section {
    padding: 0 10% 80px;
}

.cat-links-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cat-links-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-links-title svg {
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.cat-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cat-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cat-link-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.12);
}

.cat-link-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-link-icon {
    width: 36px;
    height: 36px;
    background: var(--off-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-link-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.cat-link-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.cat-link-arrow svg {
    width: 16px;
    height: 16px;
    color: var(--border);
    transition: color 0.2s;
}

.cat-link-card:hover .cat-link-arrow svg {
    color: var(--accent-purple);
}

.curriculum-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    padding-bottom: 60px;
}

/* curriculum レスポンシブ */
@media (max-width: 900px) {
    .cat-strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-grid {
        grid-template-columns: 1fr;
    }

    .research-banner {
        margin: 0 5% 60px;
        padding: 36px 28px;
    }

    .cat-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cat-strip-inner {
        grid-template-columns: 1fr 1fr;
    }

    .curriculum-section {
        padding: 56px 5%;
    }

    .cat-links-section {
        padding: 0 5% 60px;
    }
}

/* ===================================================
   curriculum/gakkakyoutu・senmonkiso・senmonouyou 共通スタイル
   =================================================== */
.cur-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 10%;
}

.cur-breadcrumb {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cur-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.cur-breadcrumb a:hover {
    color: var(--accent-purple);
}

.cur-breadcrumb span {
    color: var(--text-muted);
    opacity: 0.4;
}

.cur-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 56px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cur-subject-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cur-subject-item {
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cur-subject-item:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 2px 12px rgba(107, 91, 149, 0.08);
}

.cur-subject-summary {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.cur-subject-summary::-webkit-details-marker {
    display: none;
}

.cur-subject-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 16px 12px 16px 20px;
    cursor: pointer;
    user-select: none;
}

.cur-subject-name {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.cur-subject-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s;
}

details[open] .cur-subject-chevron {
    transform: rotate(180deg);
}

.cur-subject-ext {
    display: flex;
    align-items: center;
    padding: 16px 16px 16px 8px;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.cur-subject-ext:hover {
    color: var(--accent-purple);
    background: #f5f2ff;
}

.cur-subject-ext svg {
    display: block;
}

.cur-subject-desc {
    padding: 0 20px 18px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.9;
    border-top: 1px solid var(--border);
}

.cur-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 40px;
    transition: color 0.2s;
}

.cur-back-link:hover {
    color: var(--accent-purple);
}

.cur-back-link svg {
    width: 14px;
    height: 14px;
}

/* cur-year-label / cur-year-block（senmonkiso・senmonouyou） */
.cur-year-block {
    margin-bottom: 40px;
}

.cur-year-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-purple);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* ===================================================
   qualification/index.html 専用スタイル
   =================================================== */
.qual-section {
    padding: 80px 10%;
}

.qual-section+.qual-section {
    border-top: 1px solid var(--border);
}

.qual-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.qual-section-header {
    margin-bottom: 48px;
}

.qual-section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.qual-section-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    max-width: 80px;
    margin: 0 auto 64px;
}

/* 卒業時取得可能な資格カード */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cert-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 36px 28px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.cert-card:hover {
    box-shadow: 0 8px 32px rgba(107, 91, 149, 0.1);
    transform: translateY(-3px);
}

.cert-card-icon {
    width: 52px;
    height: 52px;
    background: #f0edf8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.cert-card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-purple);
}

.cert-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cert-card-type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.cert-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* 目指せる資格カード */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.exam-card {
    border-radius: 2px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}

.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.exam-card--dark {
    background: linear-gradient(135deg, #1a2744 0%, #2c3e6a 100%);
    color: #fff;
}

.exam-card--light {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

.exam-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exam-card--dark .exam-card-icon {
    background: rgba(255, 255, 255, 0.15);
}

.exam-card--dark .exam-card-icon svg {
    color: #fff;
}

.exam-card--light .exam-card-icon {
    background: #f0edf8;
}

.exam-card--light .exam-card-icon svg {
    color: var(--accent-purple);
}

.exam-card-icon svg {
    width: 26px;
    height: 26px;
}

.exam-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.exam-card--dark .exam-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.exam-card--light .exam-badge {
    background: #f0edf8;
    color: var(--accent-purple);
}

.exam-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.exam-card--dark h3 {
    color: #fff;
}

.exam-card--light h3 {
    color: var(--text-main);
}

.exam-card-type {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

.exam-card--dark .exam-card-type {
    color: rgba(180, 200, 255, 0.85);
}

.exam-card--light .exam-card-type {
    color: var(--accent-purple);
}

.exam-card p {
    font-size: 0.84rem;
    line-height: 1.75;
    flex: 1;
}

.exam-card--dark p {
    color: rgba(255, 255, 255, 0.75);
}

.exam-card--light p {
    color: var(--text-muted);
}

.exam-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.exam-card--dark .exam-card-footer {
    color: rgba(180, 200, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.exam-card--light .exam-card-footer {
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.exam-card-footer svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.exam-card--dark .exam-card-footer svg {
    color: rgba(180, 200, 255, 0.85);
}

.exam-card--light .exam-card-footer svg {
    color: #5a9a5a;
}

/* カリキュラム対応表 */
.curriculum-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 48px;
}

.curriculum-box-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    padding-left: 14px;
    border-left: 4px solid var(--accent-purple);
}

.curriculum-box-lead {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 720px;
    margin-bottom: 36px;
}

.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.curriculum-table thead th {
    padding: 12px 16px;
    background: var(--off-white);
    font-weight: 700;
    color: var(--text-main);
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.curriculum-table thead th:first-child {
    width: 150px;
}

.curriculum-table tbody td {
    padding: 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--off-white);
}

.curriculum-table tbody tr:last-child td {
    border-bottom: none;
}

.cat-label {
    font-weight: 700;
    font-size: 0.8rem;
}

.cat-tech {
    color: #2563cc;
    background: rgba(37, 99, 204, 0.06);
    padding: 14px 16px;
}

.cat-mgmt {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.06);
    padding: 14px 16px;
}

.cat-strat {
    color: #047857;
    background: rgba(4, 120, 87, 0.06);
    padding: 14px 16px;
}

.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--off-white);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 2px;
    border: 1px solid var(--border);
}

.curriculum-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.curriculum-links p {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.curriculum-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.curriculum-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.curriculum-links a:hover {
    opacity: 0.65;
}

.curriculum-links a svg {
    width: 12px;
    height: 12px;
}

/* qualification レスポンシブ */
@media (max-width: 900px) {

    .cert-grid,
    .exam-grid {
        grid-template-columns: 1fr 1fr;
    }

    .curriculum-box {
        padding: 28px;
    }
}

@media (max-width: 600px) {

    .cert-grid,
    .exam-grid {
        grid-template-columns: 1fr;
    }

    .qual-section {
        padding: 56px 5%;
    }
}

/* ===================================================
   recruit/index.html 専用スタイル
   =================================================== */
.sub-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.sub-section-lead {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 48px;
    max-width: none;
}

.recruit-section .sub-section-lead {
    max-width: none;
    margin-bottom: 48px;
}

.page-anchor-links {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-anchor-link {
    display: inline-block;
    padding: 10px 24px;
    border: 1.5px solid var(--accent-purple);
    border-radius: 6px;
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.page-anchor-link:hover {
    background: var(--accent-purple);
    color: #fff;
}

@media (max-width: 600px) {
    .page-anchor-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .page-anchor-link {
        text-align: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 64px;
}

.stat-card {
    background: var(--off-white);
    padding: 36px 28px;
    text-align: center;
}

.stat-card .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--accent-purple);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shinro-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 16px;
    scroll-margin-top: 100px;
}

.shinro-table-wrap {
    overflow-x: auto;
    margin-bottom: 48px;
}

.shinro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    table-layout: fixed;
}

.shinro-table thead tr {
    background: var(--accent-purple);
    color: #fff;
}

.shinro-table th {
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-align: center;
    white-space: nowrap;
}

.shinro-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text-main);
}

.shinro-table tbody tr:last-child td {
    border-bottom: none;
}

.shinro-table tbody tr:nth-child(even) td {
    background: var(--off-white);
}

.shinro-table .year-cell {
    font-weight: 700;
    color: var(--accent-purple);
    text-align: center;
}

.employer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 18px;
    display: block;
    scroll-margin-top: 100px;
}

.employer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-bottom: 48px;
}

.employer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.4;
}

.employer-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-purple);
    flex-shrink: 0;
}

.employer-item .count {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-left: auto;
    flex-shrink: 0;
}

/* recruit レスポンシブ */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   admission/index.html 専用スタイル
   =================================================== */
.adm-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.adm-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #0d0b18;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
}

.adm-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.adm-hero-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.adm-hero-card:hover .adm-hero-card-bg {
    opacity: 0.35;
    transform: scale(1.04);
}

.adm-hero-card--b1 .adm-hero-card-bg {
    background: linear-gradient(135deg, #2c1f5e, #5a3d80);
}

.adm-hero-card--b3 .adm-hero-card-bg {
    background: linear-gradient(135deg, #1a3a5c, #2563eb);
}

.adm-hero-card--m1 .adm-hero-card-bg {
    background: linear-gradient(135deg, #1a3d2a, #16a34a);
}

.adm-hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 22, 0.95) 0%, rgba(10, 8, 22, 0.5) 60%, rgba(10, 8, 22, 0.2) 100%);
}

.adm-hero-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 32px 28px;
}

.adm-hero-card-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.adm-hero-card--b1 .adm-hero-card-tag {
    border-color: rgba(167, 139, 250, 0.5);
    color: #c4b5fd;
}

.adm-hero-card--b3 .adm-hero-card-tag {
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
}

.adm-hero-card--m1 .adm-hero-card-tag {
    border-color: rgba(74, 222, 128, 0.5);
    color: #86efac;
}

.adm-hero-card-num {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 24px;
    pointer-events: none;
}

.adm-hero-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 12px;
}

.adm-hero-card p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    flex: 1;
    margin-bottom: 24px;
}

.adm-hero-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 2px;
    align-self: flex-start;
    transition: background 0.2s, border-color 0.2s;
}

.adm-hero-card:hover .adm-hero-card-cta {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.adm-hero-card--b1:hover .adm-hero-card-cta {
    background: rgba(167, 139, 250, 0.25);
}

.adm-hero-card--b3:hover .adm-hero-card-cta {
    background: rgba(96, 165, 250, 0.25);
}

.adm-hero-card--m1:hover .adm-hero-card-cta {
    background: rgba(74, 222, 128, 0.2);
}

.adm-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.adm-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-radius: 2px;
    border-left: 4px solid;
}

.adm-banner--purple {
    background: #f5f2ff;
    border-color: var(--accent-purple);
}

.adm-banner--blue {
    background: #eff6ff;
    border-color: #3b82f6;
}

.adm-banner-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.adm-banner--purple .adm-banner-icon {
    color: var(--accent-purple);
}

.adm-banner--blue .adm-banner-icon {
    color: #3b82f6;
}

.adm-banner p {
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-main);
}

.adm-banner strong {
    font-weight: 700;
}

.sub-section {
    padding: 64px 10%;
    background: var(--bg-white);
}

.sub-section--alt {
    background: var(--off-white);
}

.sub-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sub-section-lead {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 36px;
    max-width: 760px;
}

.adm-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.adm-method-card {
    border: 1px solid var(--border);
    background: var(--bg-white);
    padding: 24px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adm-method-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.1);
}

.adm-method-card-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 8px;
    display: block;
}

.adm-method-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.adm-method-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.contact-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    border-radius: 2px;
}

.contact-card-text {
    flex: 1;
}

.contact-card-text h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.contact-card-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-card-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.contact-btn--primary {
    background: var(--accent-purple);
    color: #fff;
}

.contact-btn--primary:hover {
    background: #5a3d80;
    transform: translateY(-1px);
}

.contact-btn--outline {
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    background: #fff;
}

.contact-btn--outline:hover {
    background: #f0edf8;
    transform: translateY(-1px);
}

/* admission・recruit レスポンシブ */
@media (max-width: 900px) {
    .adm-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .adm-method-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }
}

@media (max-width: 700px) {
    .adm-banner-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   index.html / index_en.html 専用スタイル
   =================================================== */

/* コースの学び カードグリッド */
.hl-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.hl-header .section-label {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.hl-more-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .hl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hl-grid {
        grid-template-columns: 1fr;
    }
}

.hl-card2 {
    background: var(--bg-white);
    border: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hl-card2:hover {
    transform: translateY(-4px);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.15);
}

.hl-card2-inner {
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #0d0b18;
    position: relative;
}

.hl-card2-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    text-align: left;
    transition: padding-bottom 0.3s ease;
}

.hl-card2:hover .hl-card2-overlay {
    padding-bottom: 38px;
}

.hl-card2-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.3;
    display: inline-block;
    transition: transform 0.3s ease;
    transform-origin: left bottom;
}

.hl-card2:hover .hl-card2-overlay h3 {
    transform: scale(1.05);
}

.hl-card2-overlay p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    margin: 0;
    transition: transform 0.3s ease;
    transform-origin: left bottom;
}

.hl-card2:hover .hl-card2-overlay p {
    transform: scale(1.02);
}

/* オーバーレイパネル */
.hl-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 8, 22, 0);
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
    padding: 20px;
}

.hl-overlay.is-visible {
    display: flex;
}

.hl-overlay.is-open {
    background: rgba(10, 8, 22, 0.65);
}

.hl-panel {
    background: var(--bg-white);
    border-radius: 4px;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(0.88) translateY(36px);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.36s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.hl-overlay.is-open .hl-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.hl-panel-img {
    width: 100%;
    aspect-ratio: 16/7;
    background-size: cover;
    background-position: center;
    background-color: #0d0b18;
}

.hl-panel-body {
    padding: 36px 40px 40px;
}

.hl-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1;
    transition: background 0.2s;
}

.hl-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hl-close svg {
    width: 16px;
    height: 16px;
}

.hl-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.hl-panel-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hl-panel-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.95;
    margin-bottom: 28px;
}

.hl-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 91, 149, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.hl-panel-link:hover {
    border-color: var(--accent-purple);
}

/* 就職情報 企業名グリッド */
.career-name-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

@media (max-width: 700px) {
    .career-name-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.career-name-item {
    padding: 28px 24px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.career-name-item:hover {
    background: var(--off-white);
    color: var(--accent-purple);
}

.career-name-item--more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.career-name-item--more a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.career-name-item--more a:hover {
    opacity: 0.65;
}

/* 英語版ナビ font-size 調整 */
.lang-en .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.lang-en .nav-links {
    gap: 1.6rem;
}

.lang-en .logo-main a {
    font-size: 1rem;
}

/* ===================================================
   関連リンクセクション（index.html）
   =================================================== */
.related-links-section {
    background: var(--off-white);
    border-top: 1px solid var(--border);
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 640px) {
    .related-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.related-link-card {
    display: block;
    text-decoration: none;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.related-link-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 4px 18px rgba(107, 91, 149, 0.10);
    transform: translateY(-2px);
}

.related-link-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 20px 18px;
}

.related-link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-purple-light) 0%, #e8e3f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    transition: background 0.2s, color 0.2s;
}

.related-link-card:hover .related-link-icon {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #8a74b8 100%);
    color: #fff;
}

.related-link-text {
    flex: 1;
    min-width: 0;
}

.related-link-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin: 0 0 3px;
    opacity: 0.8;
}

.related-link-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-link-arrow {
    flex-shrink: 0;
    color: #c8c0dc;
    transition: color 0.2s, transform 0.2s;
}

.related-link-card:hover .related-link-arrow {
    color: var(--accent-purple);
    transform: translateX(2px);
}

/* ===================================================
   フッター：関連組織リンク
   =================================================== */
.footer-parent-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.footer-parent-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-purple);
    opacity: 0.85;
    white-space: nowrap;
}

.footer-parent-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-parent-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-parent-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.footer-parent-link svg {
    opacity: 0.55;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.footer-parent-link:hover svg {
    opacity: 0.9;
}

.footer-parent-sep {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

/* ===================================================================
   Hero Highlight Button（第3年次編入学生追加募集ボタン）
   既存の btn-primary / btn-secondary と同じサイズ・余白を保ったまま、
   アクセントカラーの塗り、NEWバッジ、動く矢印アイコンで視線を誘導する。
=================================================================== */

.btn-highlight {
    background: var(--accent-purple);
    color: #ffffff;
    border: none;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 18px rgba(107, 91, 149, 0.45);
}

.btn-highlight:hover {
    background: var(--accent-purple-dark);
    box-shadow: 0 8px 26px rgba(107, 91, 149, 0.6);
    transform: translateY(-2px);
}

.btn-highlight__new {
    position: absolute;
    top: -11px;
    right: -10px;
    background: #ffffff;
    color: var(--accent-purple);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(10, 8, 22, 0.3);
    animation: btn-highlight-badge-pop 2.6s ease-in-out infinite;
}

.btn-highlight__arrow {
    display: inline-flex;
    align-items: center;
    vertical-align: -2px;
    margin-left: 4px;
    animation: btn-highlight-arrow-nudge 1.6s ease-in-out infinite;
}

.btn-highlight__arrow svg {
    width: 13px;
    height: 13px;
}

@keyframes btn-highlight-badge-pop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes btn-highlight-arrow-nudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

@media (max-width: 560px) {
    .btn-highlight__new {
        top: -9px;
        right: -6px;
    }
}
