/* 実験ノートをイメージした表示。コンテンツ・掲載順・リンクは維持する。 */
:root {
    --main: #245879;
    --main-dark: #163d54;
    --main-soft: #e8eff2;
    --accent: #b74d29;
    --accent-soft: #f4e6cf;
    --bg: #f6f3eb;
    --surface: #fcfbf7;
    --text: #202b31;
    --muted: #505d62;
    --border: #c8cdc7;
    --footer: #203c49;
    --radius-lg: 0;
    --radius-md: 0;
    --shadow: none;
    --shadow-hover: none;
    --max-width: 1160px;
}

body { background: var(--bg); }
a { color: var(--main); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
.site-header {
    background: rgba(246, 243, 235, .97);
    backdrop-filter: none;
    border-bottom: 1px solid var(--text);
}
.header-inner { padding: 18px 0; gap: 20px; }
.site-logo { font-size: 1.1rem; }
.site-logo span { font-size: .67rem; letter-spacing: .02em; }
.global-nav { font-size: .85rem; gap: 18px; }
.global-nav a { font-weight: 700; }
.global-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section-white { background: var(--surface); }
.section-heading { margin-bottom: 40px; }
.section-kicker, .page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: Consolas, "Courier New", monospace;
    font-size: .8rem;
    letter-spacing: .13em;
    color: var(--main);
}
.section-kicker::before, .page-hero .breadcrumb::before {
    content: "";
    width: 26px;
    height: 3px;
    background: var(--accent);
    flex-shrink: 0;
}
.section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.5; letter-spacing: .015em; }
.section-lead { margin-top: 20px; line-height: 1.95; }
.grid-2, .grid-3, .grid-4, .split, .hero-inner { gap: 32px; }
.split { align-items: start; }
.grid-2 > *, .grid-3 > *, .split > *, .hero-inner > * { min-width: 0; }
.card { background: transparent; border: 0; box-shadow: none; }
.content-card { padding: 24px 0 0; border-top: 1px solid var(--border); }
.card h3 { color: var(--text); font-size: 1.14rem; line-height: 1.65; }
.card p, .card li { color: var(--muted); line-height: 1.95; }
.card p:last-child { margin-bottom: 0; }

/* 冒頭：箱に収めず、文字と図を一枚のノートの上に置く。 */
.hero {
    padding: 76px 0 56px;
    color: var(--text);
    background: var(--bg);
    position: relative;
}
.hero-inner { grid-template-columns: 1.08fr .92fr; gap: 48px; }
.hero-label {
    background: transparent;
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 0 0 0 12px;
    margin-bottom: 34px;
    color: var(--main-dark);
    letter-spacing: .06em;
}
.hero h2 { font-size: 1rem; font-weight: 600; margin: 0 0 10px; }
.hero h1 { color: var(--text); font-size: clamp(2.65rem, 5.8vw, 5rem); line-height: 1.25; letter-spacing: .03em; margin-bottom: 28px; }
.hero p { color: var(--muted); font-size: 1rem; line-height: 2; margin-bottom: 30px; }
.hero-visual {
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    background-image: linear-gradient(#24587910 1px, transparent 1px), linear-gradient(90deg, #24587910 1px, transparent 1px);
    background-size: 28px 28px;
    border: 1px solid var(--border);
    padding: 18px;
}
.hero-visual img { mix-blend-mode: multiply; }
.button {
    border-radius: 0;
    padding: 10px 18px;
    font-weight: 700;
    transition: background-color .15s, color .15s;
}
.button:hover { transform: none; box-shadow: none; }
.button-light, .button-primary { background: var(--main-dark); color: #fff; border: 1px solid var(--main-dark); }
.button-light:hover, .button-primary:hover { background: var(--main); color: #fff; }
.button-secondary { background: transparent; color: var(--main-dark); border: 1px solid var(--main-dark); }
.button-secondary:hover { background: var(--main-soft); color: var(--main-dark); }
.button-group { gap: 12px; }
.stats { margin: 0 auto; gap: 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.stat-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 22px 20px; }
.stat-card + .stat-card { border-left: 1px solid var(--border); }
.stat-card strong { font: 700 1rem Consolas, "Courier New", monospace; color: var(--main); }
.stat-card span { font-size: .8rem; margin-top: 10px; text-wrap: pretty; }

/* 研究テーマ：番号と罫線で整理した6項目。 */
#research .grid-3 { row-gap: 48px; }
.theme-card { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.theme-card figure { background: #ecefe9; border: 1px solid #d9ded6; }
.theme-card figure img { height: 220px; padding: 18px; mix-blend-mode: multiply; }
.theme-card.photo figure img { mix-blend-mode: normal; }
.theme-body { padding: 20px 0 0; }
.theme-index {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    font: 400 2.4rem/1.2 Consolas, "Courier New", monospace;
    margin-bottom: 12px;
}
#research .section-heading .button { min-height: 0; padding: 2px 0; margin: 0 6px; border: 0; border-bottom: 1px solid var(--main); }

/* 設備と活動：大きな囲みではなく、細い区切り線を使う。 */
#lab_choice > .section-inner:first-child .content-card { border-top: 3px solid var(--accent); padding-top: 22px; }
#lab_choice > .section-inner + .section-inner { margin-top: 72px !important; }
.pathway { gap: 0; border-top: 1px solid var(--text); }
.path-step { padding: 28px 24px 0; }
.path-step:first-child { padding-left: 0; }
.path-step + .path-step { border-left: 1px solid var(--border); }
.path-step h3 { margin-top: 0; color: var(--main-dark); }

/* 大学院への誘い：ノートの中の一枚の特集ページ。 */
#lab_choice > .split {
    width: min(var(--max-width), calc(100% - 32px));
    padding: 40px;
    border-top: 4px solid var(--accent);
    background: #f2e9d7;
    grid-template-columns: 1.25fr .75fr;
    gap: 40px;
    align-items: center;
}
#lab_choice > .split .section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.5; }
#lab_choice > .split .section-heading { margin-bottom: 28px; }
#lab_choice > .split p { line-height: 1.95; }
#lab_choice > .split .image-frame { background: transparent; border: 0; }
.image-frame { border-radius: 0; box-shadow: none; }
.image-frame img { background: transparent; }
#lab_choice > .split .image-frame img { mix-blend-mode: multiply; }
.figure-caption { border-top: 1px solid var(--border); padding: 12px 0; font-size: .85rem; }
.cta { background: transparent; color: var(--text); border-radius: 0; box-shadow: none; border-top: 3px solid var(--main-dark); padding: 32px 0; }
.cta p { color: var(--muted); }
.cta h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

/* 自己紹介・活動履歴も同じ紙面のトーンにそろえる。 */
.page-hero { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--text); padding: 64px 0; }
.page-hero p { color: var(--muted); }
.profile-photo { border-radius: 0; box-shadow: none; }
.info-list div { border: 0; border-top: 1px solid var(--border); background: transparent; border-radius: 0; padding-left: 0; }
.news-list { background: transparent; border: 0; border-top: 1px solid var(--text); }
.news-item { padding: 20px 0; }
.news-title a { color: var(--main); }
.publication-item { border: 0; border-top: 1px solid var(--border); padding: 24px 0; background: transparent; }
.tag { border-radius: 0; }
.footer { padding: 40px 0; }

@media (max-width: 980px) {
    .header-inner { gap: 12px; padding: 12px 0; }
    section[id], div[id] { scroll-margin-top: 140px; }
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
    .hero-label { font-size: .75rem; }
    .stats .stat-card { border-left: 0; }
    .stat-card:nth-child(even) { border-left: 1px solid var(--border); }
    .stat-card:nth-child(n+3) { border-top: 1px solid var(--border); }
    .path-step, .path-step:first-child { padding: 24px 0; }
    .path-step + .path-step { border-left: 0; border-top: 1px solid var(--border); }
    #lab_choice > .split { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
    #lab_choice > .split .image-frame { width: min(460px, 100%); justify-self: center; }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .hero { padding: 44px 0 36px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
    .hero-label { margin-bottom: 24px; }
    .hero-visual { padding: 12px; }
    .hero-visual img { max-height: 300px; }
    .section-heading { margin-bottom: 28px; }
    .section-heading h2 { font-size: 1.65rem; }
    .section-kicker { font-size: .73rem; gap: 10px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 18px 12px; }
    .stat-card span { font-size: .75rem; }
    .stat-card strong { font-size: .95rem; }
    .content-card { padding: 22px 0 0; }
    .theme-body { padding: 18px 0 0; }
    .theme-card figure img { height: 230px; }
    #lab_choice > .section-inner + .section-inner { margin-top: 48px !important; }
    #lab_choice > .split { padding: 26px 18px; }
    #lab_choice > .split .section-heading h2 { font-size: 1.6rem; }
    #lab_choice > .split .section-heading h2 span { display: inline !important; }
    .cta { padding: 26px 0; }
    .cta .button { justify-self: start; }
    .news-item { padding: 18px 0; }
    .page-hero { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
