/* ===================================
   Color + Base Tokens
   =================================== */
:root {
    --ink-900: #1b2f4b;
    --ink-800: #274062;
    --ink-700: #3a5a82;
    --mint-500: #2da698;
    --mint-400: #46beaf;
    --amber-400: #e6ad62;
    --paper-100: #f7f3ea;
    --paper-200: #f0eadf;
    --paper-300: #e7e0d2;
    --text-main: #1f2e45;
    --text-soft: #5f6a7f;
    --line: rgba(34, 53, 79, 0.14);
    --card-border: rgba(255, 255, 255, 0.62);
    --accent-gradient: linear-gradient(120deg, var(--mint-500), #5baac4 52%, var(--amber-400));
    --shadow-sm: 0 8px 20px rgba(15, 30, 50, 0.09);
    --shadow-md: 0 14px 34px rgba(15, 30, 50, 0.12);
    --shadow-lg: 0 18px 42px rgba(15, 30, 50, 0.14);
    --radius-lg: 22px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    line-height: 1.82;
    font-family: 'Noto Sans JP', 'Urbanist', sans-serif;
    background:
        radial-gradient(circle at 8% 2%, rgba(70, 190, 175, 0.18), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(108, 148, 230, 0.16), transparent 30%),
        linear-gradient(160deg, var(--paper-100), #fcf9f2 36%, var(--paper-200));
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(74px);
    opacity: 0.55;
}

body::before {
    width: 250px;
    height: 250px;
    left: -80px;
    top: 360px;
    background: rgba(70, 190, 175, 0.22);
}

body::after {
    width: 280px;
    height: 280px;
    right: -120px;
    top: 180px;
    background: rgba(108, 148, 230, 0.2);
}

.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: #5a92d2;
}

/* ===================================
   Language Switcher
   =================================== */
.lang-switcher {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1100;
    display: flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(17, 33, 56, 0.72);
    box-shadow: 0 10px 26px rgba(12, 24, 42, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.lang-btn {
    position: relative;
    z-index: 2;
    min-width: 72px;
    border: none;
    background: transparent;
    color: rgba(236, 244, 255, 0.82);
    font-family: 'Urbanist', 'Noto Sans JP', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.lang-btn.active {
    color: #fff;
}

.lang-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px rgba(45, 166, 152, 0.42);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ja"] .lang-en,
html[lang="en"] .lang-ja {
    display: none;
}

html[lang="ja"] .lang-ja,
html[lang="en"] .lang-en {
    display: inline;
}

/* ===================================
   Header
   =================================== */
header {
    position: relative;
    height: clamp(360px, 58vh, 500px);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.header-banner {
    position: absolute;
    inset: 0;
}

.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    filter: saturate(106%) contrast(104%);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(10, 21, 38, 0.4), rgba(14, 31, 56, 0.2) 52%, rgba(16, 35, 60, 0.4)),
        linear-gradient(to top, rgba(10, 21, 38, 0.3), rgba(10, 21, 38, 0.05) 48%);
}

.header-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.header-main-message {
    margin: 0;
    color: #f8fbff;
    font-family: 'Urbanist', 'Noto Sans JP', sans-serif;
    font-size: clamp(1.7rem, 5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
    animation: revealUp 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header-corner-info {
    position: absolute;
    right: 24px;
    bottom: clamp(12px, 2.2vw, 28px);
    max-width: min(540px, 62vw);
    text-align: right;
    z-index: 3;
    color: rgba(236, 246, 255, 0.9);
}

.header-corner-info p {
    line-height: 1.25;
}

.corner-kicker {
    margin: 0;
    color: rgba(228, 244, 255, 0.84);
    font-family: 'Noto Sans JP', 'Urbanist', sans-serif;
    font-size: clamp(0.58rem, 0.9vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: revealUp 0.8s ease both;
}

.corner-name {
    margin: 1px 0 0;
    color: #f8fbff;
    font-family: 'Noto Sans JP', 'Urbanist', sans-serif;
    font-size: clamp(0.92rem, 1.7vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
    animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.corner-greeting {
    margin: 2px 0 0;
    max-width: 100%;
    color: rgba(229, 244, 255, 0.9);
    font-size: clamp(0.64rem, 1vw, 0.8rem);
    letter-spacing: 0.02em;
    animation: revealUp 1.2s ease both;
}

/* ===================================
   Navigation
   =================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(34, 53, 79, 0.1);
    background: rgba(247, 243, 234, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav ul {
    margin: 0;
    padding: 12px 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(34, 53, 79, 0.14);
    text-decoration: none;
    color: var(--ink-800);
    font-family: 'Urbanist', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.64);
    transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

nav a:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--ink-700), #4c819f);
}

/* ===================================
   Main Sections
   =================================== */
main.container {
    padding: 50px 24px 38px;
}

section {
    position: relative;
    padding: 34px 36px;
    margin-bottom: 22px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(148deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    scroll-margin-top: 86px;
    animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0.74;
}

section:hover {
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.25s ease;
}

section:nth-child(1) { animation-delay: 0.04s; }
section:nth-child(2) { animation-delay: 0.08s; }
section:nth-child(3) { animation-delay: 0.12s; }
section:nth-child(4) { animation-delay: 0.16s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.24s; }

h2 {
    margin: 0 0 24px;
    padding-bottom: 13px;
    color: var(--ink-900);
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.3rem, 1.8vw, 1.62rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(34, 53, 79, 0.14);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-gradient);
}

/* ===================================
   About Section
   =================================== */
.profile-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.profile-img img {
    width: 240px;
    height: 240px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 28px rgba(16, 32, 58, 0.2);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.profile-img img:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(16, 32, 58, 0.25);
}

.profile-text h3 {
    margin: 2px 0 16px;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink-800);
}

.profile-text p {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1rem;
}

/* ===================================
   Tables (News / Career / Awards)
   =================================== */
.career-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.career-table td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    background: transparent;
}

.career-table tr:last-child td {
    border-bottom: none;
}

.career-table tr:hover td {
    background: rgba(70, 190, 175, 0.06);
}

.career-date {
    width: 130px;
    white-space: nowrap;
    color: var(--ink-700);
    font-family: 'Urbanist', 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

#news .career-date {
    font-size: 1rem;
}

#career .career-date {
    font-size: 1rem;
}

#awards .career-date {
    font-size: 1rem;
}

/* ===================================
   Publication List
   =================================== */
.pub-list {
    margin: 0;
    padding-left: 22px;
    list-style: decimal;
}

.pub-list li {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-left: 3px solid rgba(70, 190, 175, 0.34);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.author-highlight {
    font-weight: 800;
    color: var(--ink-800);
    text-decoration: underline;
    text-decoration-color: rgba(45, 166, 152, 0.62);
    text-underline-offset: 3px;
}

.journal-link {
    color: #5a92d2;
    text-decoration: none;
    font-weight: 700;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color 0.24s ease, background-size 0.24s ease;
}

.journal-link:hover {
    color: #5a92d2;
    background-size: 100% 1px;
}

.press-release-link {
    color: #5a92d2;
}

/* ===================================
   Contact
   =================================== */
.email-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--ink-800);
    font-family: 'Urbanist', 'Noto Sans JP', sans-serif;
}

.email-box i {
    color: var(--mint-500);
}

.email-box span {
    color: var(--ink-700);
    font-weight: 700;
}

/* ===================================
   Footer
   =================================== */
footer {
    text-align: center;
    padding: 30px 0 34px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--ink-700);
    border: 1px solid rgba(34, 53, 79, 0.18);
    background: rgba(255, 255, 255, 0.82);
    transition: color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.footer-links a:hover {
    color: #fff;
    background: linear-gradient(120deg, var(--ink-700), var(--mint-500));
    border-color: transparent;
    transform: translateY(-2px);
}

footer p {
    margin: 0;
}

/* ===================================
   Motion + Selection + Scrollbar
   =================================== */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1.09);
    }
}

::selection {
    background: rgba(70, 190, 175, 0.3);
    color: var(--ink-900);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(34, 53, 79, 0.06);
}

::-webkit-scrollbar-thumb {
    background: rgba(34, 53, 79, 0.34);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 53, 79, 0.5);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 860px) {
    .profile-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-img {
        margin: 0 auto;
    }

    .profile-img img {
        width: 205px;
        height: 205px;
    }

    .profile-text {
        text-align: center;
    }

    main.container {
        padding-top: 40px;
    }
}

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

    .lang-switcher {
        top: 12px;
        right: 12px;
        transform: scale(0.95);
        transform-origin: top right;
    }

    .lang-btn {
        min-width: 62px;
        padding: 7px 11px;
        font-size: 0.72rem;
    }

    nav ul {
        gap: 6px;
        padding: 10px 0;
    }

    nav a {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .header-main-message {
        font-size: clamp(1.5rem, 8.2vw, 2.2rem);
        letter-spacing: 0.04em;
    }

    .header-corner-info {
        right: 12px;
        bottom: 10px;
        max-width: calc(100% - 24px);
    }

    .header-corner-info p {
        line-height: 1.18;
    }

    .corner-kicker {
        font-size: 0.52rem;
        letter-spacing: 0.05em;
    }

    .corner-name {
        font-size: 0.86rem;
    }

    .corner-greeting {
        font-size: 0.6rem;
    }

    main.container {
        padding: 32px 16px 24px;
    }

    section {
        padding: 24px 18px;
        border-radius: 18px;
        scroll-margin-top: 80px;
    }

    h2 {
        margin-bottom: 18px;
        font-size: 1.18rem;
    }

    .career-date {
        width: 96px;
        font-size: 0.78rem;
    }

    #news .career-date {
        font-size: 0.91rem;
    }

    #career .career-date {
        font-size: 0.91rem;
    }

    #awards .career-date {
        font-size: 0.91rem;
    }

    .career-table td {
        padding: 10px 8px;
        font-size: 0.91rem;
    }

    .pub-list li {
        padding: 10px 9px;
        font-size: 0.93rem;
    }

    .email-box {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
