@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* =========================================================
   解析人体病理学 仮トップ用CSS（⑤モノトーン×コバルト）
   ・すべて .ahp-page の中だけに効くので、今のサイトには影響しない
   ・色を変えるときは :root の値だけを書き換える
   ========================================================= */
:root{
  --ahp-accent:#2457C5;  /* 差し色（コバルト） */
  --ahp-main:#1C1F26;    /* 見出し・濃い帯（チャコール） */
  --ahp-light:#F4F5F7;   /* 薄い背景 */
  --ahp-tag:#E8ECF4;     /* ラベル・アイコンの背景 */
  --ahp-line:#DCDFE5;    /* 枠線 */
  --ahp-glow:#9DB9FF;    /* 濃い背景の上の差し色 */
  --ahp-text:#16191E;    /* 本文 */
  --ahp-sub:#2E333B;     /* 補足の文字 */
  --ahp-font:'IBM Plex Sans JP','Hiragino Sans','Yu Gothic',sans-serif;
  --ahp-en:'IBM Plex Sans','IBM Plex Sans JP',sans-serif;
}

/* ---------- 仮トップのページでだけ、タイトルなどを隠す ---------- */
body:has(.ahp-page){overflow-x:hidden}
body:has(.ahp-page) .entry-title,
body:has(.ahp-page) .date-tags,
body:has(.ahp-page) .breadcrumb,
body:has(.ahp-page) .sns-share,
body:has(.ahp-page) .sns-follow,
body:has(.ahp-page) .author-info,
body:has(.ahp-page) .eye-catch-wrap{display:none !important}
body:has(.ahp-page) .entry-content{margin-top:0;margin-bottom:0}

/* ---------- 基本（Cocoonの見出し装飾を打ち消す） ---------- */
.ahp-page{font-family:var(--ahp-font);color:var(--ahp-text);line-height:1.9;font-size:17px}
.ahp-page *{box-sizing:border-box}
.ahp-page h1,.ahp-page h2,.ahp-page h3{margin:0;padding:0;border:none;background:none;font-family:var(--ahp-font);line-height:1.5}
.ahp-page h2::before,.ahp-page h2::after,.ahp-page h3::before,.ahp-page h3::after{content:none}
.ahp-page p{margin:0 0 14px}
.ahp-page a{text-decoration:none}
.ahp-page img{max-width:100%;height:auto}
.ahp-full{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.ahp-in{max-width:1160px;margin:0 auto;padding:56px 24px}

/* ---------- 見出し（NEWS / MESSAGE など） ---------- */
.ahp-head{display:flex;flex-direction:column;gap:4px;margin-bottom:28px}
.ahp-head.center{align-items:center}
.ahp-head .en{font-family:var(--ahp-en);font-size:44px;font-weight:700;letter-spacing:.06em;color:var(--ahp-main);line-height:1.2}
.ahp-head .ja{font-size:18px;font-weight:700;color:var(--ahp-accent)}
.ahp-head .bar{width:48px;height:4px;border-radius:2px;background:var(--ahp-accent);margin-top:8px}

/* ---------- ボタン ---------- */
.ahp-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 26px;border-radius:999px;background:var(--ahp-accent);color:#fff !important;font-weight:700;font-size:17px}
.ahp-btn.line{background:transparent;border:2px solid var(--ahp-accent);color:var(--ahp-main) !important;padding:10px 24px}
.ahp-btn:hover{opacity:.85}

/* ---------- トップの写真とキャッチコピー ---------- */
.ahp-hero{position:relative;min-height:min(600px,46.8vw);display:flex;align-items:center;background:#EEF1F5;overflow:hidden}
.ahp-hero-bg{position:absolute;inset:0;display:block}
.ahp-hero-bg img{width:100%;height:100%;object-fit:cover;object-position:right center;display:block}
.ahp-hero-in{position:relative;width:100%;max-width:1200px;margin:0 auto;padding:clamp(20px,4vw,56px) 24px}
.ahp-hero-text{max-width:56%;display:flex;flex-direction:column;gap:clamp(10px,1.8vw,26px)}
.ahp-eyebrow{display:flex;align-items:center;gap:14px;font-family:var(--ahp-en);font-size:15px;font-weight:500;letter-spacing:.32em;color:var(--ahp-accent)}
.ahp-eyebrow .line{width:40px;height:2px;background:var(--ahp-accent)}
.ahp-page .ahp-catch{font-size:clamp(26px,3.4vw,50px);font-weight:600;line-height:1.7;letter-spacing:.06em;color:var(--ahp-main);white-space:nowrap}
.ahp-catch .em{color:var(--ahp-accent);font-weight:700}
.ahp-sub-en{font-family:var(--ahp-en);font-size:15px;letter-spacing:.24em;color:#5A6170}

/* ---------- メッセージ帯 ---------- */
.ahp-band{background:var(--ahp-accent);color:#fff;text-align:center}
.ahp-band p{margin:0;padding:28px 24px;font-size:20px;font-weight:500;line-height:2;color:#fff}

/* ---------- 新着情報（「最新の投稿」ブロックに ahp-news を付ける） ---------- */
.ahp-news-head{max-width:1160px;margin:0 auto;padding:56px 24px 0;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.ahp-news-head .ahp-head{margin-bottom:0}
.wp-block-latest-posts.ahp-news{max-width:1112px;margin:20px auto 56px !important;padding:0 !important;list-style:none;border-top:1px solid var(--ahp-line)}
.wp-block-latest-posts.ahp-news li{display:flex;flex-direction:row-reverse;justify-content:flex-end;flex-wrap:wrap;gap:4px 24px;margin:0;padding:15px 4px;border-bottom:1px solid var(--ahp-line)}
.wp-block-latest-posts.ahp-news li a{flex:1 1 320px;font-family:var(--ahp-font);font-size:18px;color:var(--ahp-text);text-decoration:none}
.wp-block-latest-posts.ahp-news li a:hover{color:var(--ahp-accent)}
.wp-block-latest-posts.ahp-news .wp-block-latest-posts__post-date{min-width:110px;font-family:var(--ahp-en);font-size:17px;color:var(--ahp-sub)}

/* ---------- ごあいさつ ---------- */
.ahp-light{background:var(--ahp-light)}
.ahp-white{background:#fff}
.ahp-greet{display:flex;flex-wrap:wrap;gap:32px 48px;align-items:flex-start}
.ahp-greet figure{flex:0 0 240px;margin:0}
.ahp-greet figure img{width:240px;height:300px;object-fit:cover;object-position:center 20%;border-radius:12px;display:block}
.ahp-greet .role{display:block;margin-top:12px;font-size:15px;color:var(--ahp-sub)}
.ahp-greet .name{display:block;font-size:26px;font-weight:700;color:var(--ahp-main);line-height:1.4}
.ahp-greet .name-en{font-family:var(--ahp-en);font-size:14px;letter-spacing:.08em;color:var(--ahp-sub)}
.ahp-greet .body{flex:1 1 560px;min-width:0;font-size:18px}
.ahp-page .ahp-greet .lead{font-size:22px;font-weight:600;line-height:1.9;color:var(--ahp-main)}
.ahp-greet strong{color:var(--ahp-main)}
.ahp-greet .btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.ahp-cv{margin-top:10px;padding:18px 22px;background:#fff;border:1px solid var(--ahp-line);border-radius:10px}
.ahp-cv .cv-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:17px;font-weight:700;color:var(--ahp-main)}
.ahp-cv .cv-head a{font-size:15px;color:var(--ahp-main)}
.ahp-cv ul{list-style:none;margin:0;padding:0}
.ahp-cv li{display:flex;gap:14px;padding:6px 0;border-bottom:1px solid var(--ahp-line);font-size:15px;line-height:1.6}
.ahp-cv li span:first-child{flex:0 0 100px;font-family:var(--ahp-en);font-weight:600;color:var(--ahp-main)}

/* ---------- 病理診断・研究・教育（全文版） ---------- */
.ahp-pillar{display:flex;flex-wrap:wrap;gap:16px 48px;padding:36px 0;border-top:1px solid var(--ahp-line)}
.ahp-pillar:first-of-type{border-top:none}
.ahp-pillar .side{flex:0 0 240px;display:flex;flex-direction:column;gap:10px}
.ahp-pillar .body{flex:1 1 560px;min-width:0}
.ahp-pillar .body p{font-size:18px;line-height:2}
.ahp-icon{width:56px;height:56px;border-radius:50%;background:var(--ahp-tag);display:flex;align-items:center;justify-content:center;color:var(--ahp-accent)}
.ahp-label{font-family:var(--ahp-en);font-size:15px;font-weight:600;letter-spacing:.16em;color:var(--ahp-accent)}
.ahp-page .ahp-pillar h3{font-size:28px;font-weight:700;color:var(--ahp-main)}

/* ---------- 3本の柱（カード版） ---------- */
.ahp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.ahp-card{background:#fff;border:1px solid var(--ahp-line);border-radius:12px;padding:26px 24px;display:flex;flex-direction:column;gap:12px}
.ahp-page .ahp-card h3{font-size:26px;font-weight:700;color:var(--ahp-main)}
.ahp-card p{margin:0;font-size:18px;color:var(--ahp-text)}

/* ---------- 研究テーマ ---------- */
.ahp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}
.ahp-tile{background:#fff;border:1px solid var(--ahp-line);border-radius:10px}
.ahp-tile:hover{border-color:var(--ahp-accent)}
.ahp-tile > a,.ahp-tile > .in{display:flex;flex-direction:column;gap:6px;height:100%;padding:22px;color:var(--ahp-text) !important}
.ahp-tile p{margin:0}
.ahp-tile .no{font-family:var(--ahp-en);font-size:15px;font-weight:600;color:var(--ahp-accent)}
.ahp-tile .t{font-size:22px;font-weight:700;color:var(--ahp-main)}
.ahp-tile .e{font-family:var(--ahp-en);font-size:15px;letter-spacing:.04em;color:var(--ahp-sub)}
.ahp-tile .more{margin-top:6px;font-size:16px;font-weight:700;color:var(--ahp-main)}

/* ---------- 専攻医・大学院生募集 ---------- */
.ahp-recruit{background:var(--ahp-main);color:#fff}
.ahp-recruit .ahp-in{display:flex;flex-wrap:wrap;gap:24px 48px;align-items:center;padding-top:48px;padding-bottom:48px}
.ahp-recruit .body{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:8px}
.ahp-recruit .en{font-family:var(--ahp-en);font-size:15px;font-weight:600;letter-spacing:.2em;color:var(--ahp-glow)}
.ahp-page .ahp-recruit h2{font-size:30px;font-weight:700;color:#fff}
.ahp-recruit p{margin:0;font-size:18px;color:#EEF0F4}
.ahp-recruit .side{display:flex;flex-direction:column;gap:12px}
.ahp-recruit .ahp-btn{justify-content:center;background:#fff;color:var(--ahp-main) !important}
.ahp-recruit .ahp-btn.line{background:transparent;border-color:var(--ahp-glow);color:#fff !important}

/* ---------- 患者さんへ ---------- */
.ahp-patients{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;padding:28px 32px;background:var(--ahp-light);border:1px solid var(--ahp-line);border-radius:12px;color:var(--ahp-text) !important}
.ahp-patients .en{display:block;font-family:var(--ahp-en);font-size:15px;font-weight:600;letter-spacing:.14em;color:var(--ahp-accent)}
.ahp-patients .t{display:block;font-size:22px;font-weight:700;color:var(--ahp-main)}
.ahp-patients .d{display:block;font-size:17px;color:var(--ahp-sub)}
.ahp-patients .more{font-weight:700;color:var(--ahp-main)}

/* ---------- メニューから「ごあいさつ」へ飛んだとき、見出しが隠れないように ---------- */
html{scroll-behavior:smooth}
.ahp-page [id]{scroll-margin-top:90px}

/* ---------- スマホ ---------- */
@media (max-width:834px){
  .ahp-hero{display:block;min-height:0}
  .ahp-hero-text{max-width:100%}
  .ahp-page .ahp-catch{white-space:normal}
  .ahp-hero-bg{position:static;height:300px}
  .ahp-hero-bg img{object-position:center}
  .ahp-hero-in{padding:28px 18px 36px}
  .ahp-page .ahp-catch{font-size:26px;letter-spacing:.02em}
  .ahp-eyebrow{font-size:12px;letter-spacing:.2em}
  .ahp-head .en{font-size:34px}
  .ahp-in{padding:40px 18px}
  .ahp-band p{font-size:16px;text-align:left}
  .ahp-band p br{display:none}
  .ahp-greet figure{flex-basis:100%}
  .ahp-tiles,.ahp-cards{grid-template-columns:1fr}
}

/* ---------- 新着情報（クラシックエディタ用：Cocoonの [new_list] を一覧表示にする） ---------- */
.ahp-news-sc{max-width:1112px;margin:20px auto 56px;border-top:1px solid var(--ahp-line)}
.ahp-news-sc .new-entry-cards,.ahp-news-sc .widget-entry-cards{display:block;margin:0}
.ahp-news-sc a{display:block;padding:0;margin:0;border-bottom:1px solid var(--ahp-line);color:var(--ahp-text) !important;text-decoration:none}
.ahp-news-sc a:hover{background:var(--ahp-light)}
.ahp-news-sc .card-thumb,.ahp-news-sc figure,.ahp-news-sc .card-snippet,.ahp-news-sc .fa,.ahp-news-sc [class*="fa-"]{display:none !important}
.ahp-news-sc .e-card,.ahp-news-sc .new-entry-card{display:block;padding:0;margin:0;border:none;box-shadow:none}
.ahp-news-sc .card-content,.ahp-news-sc .new-entry-card-content{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 24px;margin:0 !important;padding:15px 4px}
.ahp-news-sc .card-title,.ahp-news-sc .new-entry-card-title{order:2;flex:1 1 320px;font-family:var(--ahp-font);font-size:18px;font-weight:400;line-height:1.7;margin:0;color:var(--ahp-text)}
.ahp-news-sc .new-entry-card-date,.ahp-news-sc .widget-entry-card-date{order:1;display:block !important;min-width:110px;font-family:var(--ahp-en);font-size:17px;color:var(--ahp-sub);margin:0;position:static}

/* ---------- 仮トップのページだけ1カラムにする（ページ設定がない場合の保険） ---------- */
body:has(.ahp-page) #sidebar{display:none !important}
body:has(.ahp-page) #main{width:100% !important;max-width:100% !important;padding:0 !important;margin:0 !important;border:none !important;background:transparent !important}
body:has(.ahp-page) .article{margin-bottom:0}

/* ---------- Cocoonの枠・自動で入る段落の打ち消し（2026/10/20追加） ---------- */
body:has(.ahp-page) .main,body:has(.ahp-page) #main,body:has(.ahp-page) .article,body:has(.ahp-page) .entry-content{background:transparent !important;border:none !important;box-shadow:none !important;border-radius:0 !important}
body:has(.ahp-page) .main,body:has(.ahp-page) #main{padding:0 !important;margin-top:0 !important}
body:has(.ahp-page) .content{margin-top:0 !important}
.ahp-news-head p,.ahp-pillar .side p,.ahp-recruit .body p:first-child{margin:0}
.ahp-page p:empty{display:none}

/* ---------- 新着情報：更新日は出さない・文字を大きく ---------- */
.ahp-news-sc .post-update,.ahp-news-sc .update-date{display:none !important}
.ahp-news-sc .new-entry-card-date *,.ahp-news-sc .widget-entry-card-date *{font-size:16px !important;font-family:var(--ahp-en)}
.ahp-news-sc .e-card,.ahp-news-sc .new-entry-card,.ahp-news-sc .card-content{background:transparent !important}

/* ---------- 仮表示用ヘッダー（本番切替時は使わない） ---------- */
body:has(.ahp-pv-header) #header-container,body:has(.ahp-pv-header) #navi,body:has(.ahp-pv-header) .navi{display:none !important}
.ahp-pv-header{background:#fff;border-top:5px solid var(--ahp-accent);box-shadow:0 2px 10px rgba(0,0,0,.05)}
.ahp-pv-in{max-width:1200px;margin:0 auto;padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px}
.ahp-pv-logo{display:flex;flex-direction:column;line-height:1.35}
.ahp-pv-logo .ja{font-size:24px;font-weight:700;color:var(--ahp-main)}
.ahp-pv-logo .en{font-family:var(--ahp-en);font-size:14px;font-weight:600;letter-spacing:.12em;color:var(--ahp-accent)}
.ahp-pv-nav{display:flex;flex-wrap:wrap}
.ahp-pv-nav a{display:flex;flex-direction:column;align-items:center;padding:8px 12px;line-height:1.35}
.ahp-pv-nav .j{font-size:18px;font-weight:700;color:var(--ahp-main)}
.ahp-pv-nav .e{font-family:var(--ahp-en);font-size:13px;letter-spacing:.08em;color:var(--ahp-accent)}
@media (max-width:834px){.ahp-pv-logo .ja{font-size:19px}.ahp-pv-nav a{padding:6px 8px}.ahp-pv-nav .j{font-size:15px}}

/* ---------- 隙間の調整（2026/10/20追加） ---------- */
body:has(.ahp-page) .entry-content > *{margin-top:0 !important;margin-bottom:0 !important}
.ahp-news-sc a,.ahp-news-sc .a-wrap{margin:0 !important;background:transparent !important;border-radius:0 !important}
.ahp-news-sc a:hover,.ahp-news-sc .a-wrap:hover{background:var(--ahp-light) !important}

/* ---------- 横に広い画面でも顕微鏡が見切れないように（2026/10/20追加） ---------- */
@media (min-width:835px){
  .ahp-hero{background:#F0F9FE}
  .ahp-hero-bg img{position:absolute;top:0;right:0;width:auto !important;height:100% !important;max-width:none !important;object-fit:fill;
    -webkit-mask-image:linear-gradient(to right,transparent 0,#000 12%);mask-image:linear-gradient(to right,transparent 0,#000 12%)}
}

/* =========================================================
   下層ページ（専攻医募集・メンバーなど）用（2026/10/20追加）
   ========================================================= */
.ahp-pagehead{background:linear-gradient(90deg,#EEF1F5 0%,#F4F5F7 60%,#E8ECF4 100%);border-bottom:1px solid var(--ahp-line)}
.ahp-pagehead .ahp-in{padding-top:48px;padding-bottom:40px;display:flex;flex-direction:column;gap:10px}
.ahp-page .ahp-pagetitle{font-size:clamp(28px,3.2vw,40px);font-weight:600;letter-spacing:.06em;color:var(--ahp-main)}
.ahp-crumb{display:flex;gap:8px;font-size:15px;color:var(--ahp-sub)}
.ahp-crumb a{color:var(--ahp-main) !important}
.ahp-pv-logo a{display:flex;flex-direction:column;line-height:1.35}
.ahp-narrow{max-width:1000px}
.ahp-lead-head{display:flex;flex-direction:column;gap:6px;margin-bottom:24px;padding-left:18px;border-left:4px solid var(--ahp-accent)}
.ahp-page .ahp-lead-head h2{font-size:clamp(22px,2.4vw,30px);font-weight:700;color:var(--ahp-main)}
.ahp-prose p{font-size:18px;line-height:2.05;color:var(--ahp-text);margin:0 0 18px}
.ahp-boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;margin-top:36px}
.ahp-box{background:var(--ahp-light);border:1px solid var(--ahp-line);border-radius:12px;padding:26px 28px;display:flex;flex-direction:column;gap:6px}
.ahp-box.dark{background:var(--ahp-main);border-color:var(--ahp-main);padding:0}
.ahp-box.dark a{display:flex;flex-direction:column;gap:6px;height:100%;padding:26px 28px;color:#fff !important}
.ahp-box.dark .ahp-label{color:var(--ahp-glow)}
.ahp-box .bt{font-size:21px;font-weight:700;color:var(--ahp-main);line-height:1.5}
.ahp-box.dark .bt{color:#fff}
.ahp-box .bn{font-size:18px;color:var(--ahp-text)}
.ahp-box .bm{font-family:var(--ahp-en);font-size:19px;font-weight:600;color:var(--ahp-main);letter-spacing:.02em}
.ahp-box .bs{font-size:15px;color:var(--ahp-sub)}
.ahp-box.dark .bs{color:#D8DCE3}
.ahp-prof{display:flex;flex-wrap:wrap;gap:28px 44px;align-items:flex-start}
.ahp-prof .ph{flex:0 0 240px}
.ahp-prof .ph img{width:240px;height:300px;object-fit:cover;object-position:center 20%;border-radius:12px;display:block}
.ahp-prof .tx{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:4px}
.ahp-prof .role{font-size:16px;color:var(--ahp-sub)}
.ahp-prof .name{font-size:32px;font-weight:700;color:var(--ahp-main);line-height:1.4}
.ahp-prof .name-en{font-family:var(--ahp-en);font-size:15px;letter-spacing:.08em;color:var(--ahp-sub);margin-bottom:12px}
.ahp-dl{margin:0 0 16px;border-top:1px solid var(--ahp-line)}
.ahp-dl > div{display:flex;gap:16px;padding:10px 0;border-bottom:1px solid var(--ahp-line);font-size:17px}
.ahp-dl dt{flex:0 0 72px;font-weight:700;color:var(--ahp-main)}
.ahp-dl dd{margin:0;color:var(--ahp-text)}
.ahp-prof .btns{display:flex;flex-wrap:wrap;gap:12px}
.ahp-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.ahp-mem{background:#fff;border:1px solid var(--ahp-line);border-radius:10px;padding:18px 20px;display:flex;flex-direction:column;gap:2px}
.ahp-mem .r{font-size:15px;color:var(--ahp-accent);font-weight:600}
.ahp-mem .n{font-size:21px;font-weight:700;color:var(--ahp-main)}
.ahp-mem .s{font-size:16px;color:var(--ahp-sub)}
@media (max-width:834px){.ahp-prof .ph{flex-basis:100%}.ahp-box .bm{font-size:17px;word-break:break-all}}

/* ---------- メンバーページ（2026/10/20追加） ---------- */
.ahp-facs{display:grid;grid-template-columns:repeat(auto-fit,minmax(480px,1fr));gap:18px}
.ahp-fac{background:#fff;border:1px solid var(--ahp-line);border-radius:12px;padding:22px;display:flex;gap:20px;align-items:flex-start}
.ahp-fac .ph{flex:0 0 132px}
.ahp-fac .ph img{width:132px;height:160px;object-fit:cover;object-position:center 20%;border-radius:10px;display:block}
.ahp-fac .tx{flex:1 1 auto;min-width:0}
.ahp-fac .role{font-size:15px;font-weight:600;color:var(--ahp-accent);line-height:1.5}
.ahp-fac .name{font-size:24px;font-weight:700;color:var(--ahp-main);line-height:1.4}
.ahp-fac .name a{color:var(--ahp-main) !important;border-bottom:2px solid var(--ahp-tag)}
.ahp-fac .name a:hover{border-bottom-color:var(--ahp-accent)}
.ahp-fac .name-en{font-family:var(--ahp-en);font-size:14px;letter-spacing:.04em;color:var(--ahp-sub);margin-bottom:10px}
.ahp-dl2{margin:0}
.ahp-dl2 > div{display:flex;gap:12px;padding:8px 0;border-top:1px solid var(--ahp-line);font-size:16px;line-height:1.7}
.ahp-dl2 dt{flex:0 0 44px;font-weight:700;color:var(--ahp-main)}
.ahp-dl2 dd{margin:0;min-width:0}
.ahp-dl2 ul,.ahp-more ul{margin:0;padding:0;list-style:none}
.ahp-dl2 li,.ahp-more li{position:relative;padding-left:14px}
.ahp-dl2 li::before,.ahp-more li::before{content:"";position:absolute;left:2px;top:.8em;width:5px;height:5px;border-radius:50%;background:var(--ahp-accent)}
.ahp-more{margin-top:6px;border-top:1px solid var(--ahp-line);padding-top:8px;font-size:15px}
.ahp-more summary{cursor:pointer;font-weight:700;color:var(--ahp-main);list-style:none}
.ahp-more summary::-webkit-details-marker{display:none}
.ahp-more summary::before{content:"＋";display:inline-block;width:20px;color:var(--ahp-accent)}
.ahp-more[open] summary::before{content:"－"}
.ahp-more ul{margin-top:6px;color:var(--ahp-sub)}
.ahp-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px 40px}
.ahp-groups .ahp-head .en{font-size:24px;overflow-wrap:anywhere}
.ahp-simple{list-style:none;margin:0;padding:0;border-top:1px solid var(--ahp-line)}
.ahp-simple li{display:flex;flex-direction:column;padding:10px 2px;border-bottom:1px solid var(--ahp-line)}
.ahp-simple .n{font-size:18px;font-weight:700;color:var(--ahp-main)}
.ahp-simple .a{font-size:15px;color:var(--ahp-sub)}
.ahp-simple .a:empty{display:none}
.ahp-note{margin-top:28px;font-size:14px;color:var(--ahp-sub)}
@media (max-width:834px){.ahp-facs{grid-template-columns:1fr}.ahp-fac{flex-direction:column}.ahp-fac .ph img{width:160px;height:190px}}

/* ---------- メンバー：教授カードの資格・所属学会（2026/10/21追加） ---------- */
.ahp-dl ul{margin:0;padding:0;list-style:none}
.ahp-dl li{position:relative;padding-left:14px}
.ahp-dl li::before{content:"";position:absolute;left:2px;top:.8em;width:5px;height:5px;border-radius:50%;background:var(--ahp-accent)}
.ahp-prof .name a{color:var(--ahp-main) !important;border-bottom:2px solid var(--ahp-tag)}
.ahp-prof .ahp-more{margin:0 0 16px}

/* ---------- 下層ページのタイトル帯：案C コバルト＋白文字（追加CSSの一番下に足す） ---------- */
.ahp-pagehead{position:relative;overflow:hidden;background:linear-gradient(90deg,#1B3C8F 0%,#2457C5 60%,#3A6FE0 100%);border-bottom:none}
.ahp-pagehead::before{content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.10) 1px,transparent 1px);
  background-size:28px 28px;
  -webkit-mask-image:linear-gradient(90deg,transparent 25%,#000 100%);mask-image:linear-gradient(90deg,transparent 25%,#000 100%)}
.ahp-pagehead .ahp-in{position:relative;z-index:1}
.ahp-pagehead .ahp-eyebrow{color:#C9D8FF}
.ahp-pagehead .ahp-eyebrow .line{background:#C9D8FF}
.ahp-page .ahp-pagehead .ahp-pagetitle{color:#fff}
.ahp-pagehead .ahp-crumb{color:#DCE6FF}
.ahp-pagehead .ahp-crumb a{color:#fff !important}


/* =========================================================
   静的サイト用（WordPressなし）
   ========================================================= */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:#fff;font-family:var(--ahp-font);color:var(--ahp-text);-webkit-text-size-adjust:100%}
.ahp-full{width:auto;margin-left:0;margin-right:0}
a{color:var(--ahp-accent)}
/* ヘッダー（仮表示用ヘッダーを本番用に） */
.ahp-pv-header{position:sticky;top:0;z-index:50}
.ahp-pv-logo a{text-decoration:none}
.ahp-pv-nav a{text-decoration:none}
.ahp-pv-nav a.is-current .j{color:var(--ahp-accent)}
/* 新着一覧（静的） */
.ahp-newslist{list-style:none;margin:20px auto 56px;padding:0;max-width:1112px;border-top:1px solid var(--ahp-line)}
.ahp-newslist li{border-bottom:1px solid var(--ahp-line)}
.ahp-newslist a{display:flex;flex-wrap:wrap;gap:4px 24px;align-items:baseline;padding:15px 4px;color:var(--ahp-text);text-decoration:none}
.ahp-newslist a:hover{background:var(--ahp-light)}
.ahp-newslist .d{min-width:110px;font-family:var(--ahp-en);font-size:17px;color:var(--ahp-sub)}
.ahp-newslist .t{flex:1 1 320px;font-size:18px}
.ahp-newslist.page{margin-top:0}
/* 記事ページ */
.ahp-article .meta{font-family:var(--ahp-en);font-size:16px;color:var(--ahp-sub);margin-bottom:8px}
.ahp-article h2{font-size:clamp(22px,2.4vw,30px);font-weight:700;color:var(--ahp-main);margin:0 0 24px;line-height:1.5}
.ahp-article figure{margin:0 0 24px}
.ahp-article figure img{width:100%;height:auto;border-radius:10px;display:block}
.ahp-article .back{display:inline-block;margin-top:24px}
/* フッター */
.ahp-footer{background:#121418;color:#D8DCE3}
.ahp-footer .ahp-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px 48px;padding-top:44px;padding-bottom:28px}
.ahp-footer .f-name{font-size:18px;font-weight:700;color:#fff}
.ahp-footer .f-en{font-family:var(--ahp-en);font-size:13px;letter-spacing:.1em;color:#9DB9FF;margin:2px 0 10px}
.ahp-footer .f-addr{font-size:15px;line-height:1.8}
.ahp-footer nav{display:flex;flex-wrap:wrap;gap:6px 22px;align-content:flex-start;max-width:560px}
.ahp-footer nav a{color:#D8DCE3;text-decoration:none;font-size:15px}
.ahp-footer nav a:hover{color:#fff}
.ahp-footer .copy{border-top:1px solid #2A2E36;text-align:center;font-size:13px;color:#9AA0AA;padding:14px 24px}
/* 研究ページなど本文 */
.ahp-prose h3{font-size:22px;color:var(--ahp-main);margin:32px 0 12px;padding-bottom:8px;border-bottom:2px solid var(--ahp-line)}
.ahp-todo{background:#FFF8E1;border:1px dashed #E0B44A;border-radius:8px;padding:16px 20px;color:#5A4500;font-size:16px}
@media (max-width:834px){.ahp-pv-header{position:static}}

/* ---------- 研究ページ本文 ---------- */
.ahp-research{font-size:17px;line-height:2;color:var(--ahp-text)}
.ahp-research p{margin:0 0 16px}
.ahp-research .lead{font-size:18px}
.ahp-research h3{scroll-margin-top:90px;font-size:clamp(20px,2.2vw,24px);font-weight:700;color:var(--ahp-main);margin:48px 0 16px;padding:4px 0 4px 16px;border-left:4px solid var(--ahp-accent);line-height:1.5}
.ahp-research strong{color:var(--ahp-main)}
.ahp-research sup{font-size:.7em;line-height:0}
.ahp-research sup a{text-decoration:none;color:var(--ahp-accent)}
.ahp-toc{counter-reset:t;list-style:none;margin:20px 0 8px;padding:18px 22px;background:var(--ahp-light);border:1px solid var(--ahp-line);border-radius:10px}
.ahp-toc li{counter-increment:t;position:relative;padding:6px 0 6px 40px}
.ahp-toc li::before{content:counter(t,decimal-leading-zero);position:absolute;left:0;top:6px;font-family:var(--ahp-en);font-weight:700;color:var(--ahp-accent)}
.ahp-toc a{color:var(--ahp-main);font-weight:600;text-decoration:none}
.ahp-toc a:hover{text-decoration:underline}
.ahp-fig{margin:24px auto;text-align:center}
.ahp-fig img{max-width:100%;height:auto;border:1px solid var(--ahp-line);border-radius:8px;background:#fff}
.ahp-fig figcaption{margin-top:8px;font-size:15px;color:var(--ahp-sub)}
.ahp-refs{margin:16px 0 8px;padding:14px 18px 14px 40px;font-size:14px;line-height:1.7;color:var(--ahp-sub);background:#FAFAFB;border-radius:8px}
.ahp-refs li{margin:4px 0;scroll-margin-top:90px}
.ahp-refs li:target{background:#FFF8E1}
.ahp-refs a{color:var(--ahp-accent)}
.ahp-author{text-align:right;color:var(--ahp-sub);margin-top:32px}

.ahp-subtitle{font-size:clamp(19px,2vw,22px);font-weight:700;color:var(--ahp-main);margin:0 0 12px !important}
.ahp-refhead{font-size:17px;font-weight:700;color:var(--ahp-main);margin:40px 0 8px}
.ahp-welcome{font-weight:700;color:var(--ahp-accent)}

/* ---------- 婦人科・AIページ ---------- */
.ahp-page .ahp-part{display:flex;flex-direction:column;gap:2px;margin:56px 0 8px;padding:18px 22px;background:var(--ahp-main);color:#fff;border-radius:10px;font-size:clamp(22px,2.6vw,28px);font-weight:700;scroll-margin-top:90px}
.ahp-page .ahp-part .no{font-family:var(--ahp-en);font-size:13px;letter-spacing:.2em;color:var(--ahp-glow);font-weight:600}
.ahp-research .ahp-toc + .ahp-part{margin-top:32px}
.ahp-keyline{padding:14px 18px;background:var(--ahp-light);border-left:4px solid var(--ahp-accent);border-radius:0 8px 8px 0}
.ahp-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:16px 0 8px}
.ahp-gallery.wide{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.ahp-gallery figure{margin:0;background:#fff;border:1px solid var(--ahp-line);border-radius:10px;overflow:hidden}
.ahp-gallery img{width:100%;height:240px;object-fit:cover;display:block;background:var(--ahp-light)}
.ahp-gallery.wide img{height:200px}
.ahp-gallery figcaption{padding:10px 12px;font-size:14px;line-height:1.6;color:var(--ahp-sub)}
.ahp-dl2.team dt{flex:0 0 120px}
.ahp-list{margin:8px 0 16px;padding-left:1.3em}
.ahp-list li{margin:6px 0;line-height:1.8}
.ahp-list.topics li{font-size:16px}
.ahp-refs.ul{list-style:disc;padding-left:34px}
.ahp-contactbox{margin-top:40px;padding:22px 24px;background:var(--ahp-light);border:1px solid var(--ahp-line);border-radius:12px}
.ahp-contactbox p{margin:0 0 6px}
.ahp-contactbox .note{font-size:14px;color:var(--ahp-sub)}

/* ---------- 文献の折りたたみ ---------- */
.ahp-refbox{margin:28px 0 0;border:1px solid var(--ahp-line);border-radius:10px;background:#FAFAFB}
.ahp-refbox summary{cursor:pointer;padding:12px 16px;font-weight:700;color:var(--ahp-main);list-style:none}
.ahp-refbox summary::-webkit-details-marker{display:none}
.ahp-refbox summary::before{content:"＋";display:inline-block;width:22px;color:var(--ahp-accent)}
.ahp-refbox[open] summary::before{content:"－"}
.ahp-refbox .ahp-refs{margin:0;background:transparent;border-top:1px solid var(--ahp-line);border-radius:0 0 10px 10px}
.ahp-refbox + .ahp-refbox{margin-top:12px}
.ahp-research{margin-bottom:32px}

/* ---------- 地図 ---------- */
.ahp-map{position:relative;width:100%;aspect-ratio:16/9;margin:12px 0 8px;border:1px solid var(--ahp-line);border-radius:10px;overflow:hidden;background:var(--ahp-light)}
.ahp-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media (max-width:834px){.ahp-map{aspect-ratio:4/3}}
.ahp-page .ahp-part + p{margin-top:16px}

.ahp-refgroup{border-top:1px solid var(--ahp-line);padding:6px 0 10px}
.ahp-refgroup h4{margin:12px 18px 4px;font-size:15px;font-weight:700;color:var(--ahp-main)}
.ahp-refgroup .ahp-refs{border-top:none;margin:0;padding-top:4px;padding-bottom:4px}

.ahp-refnote{margin:0 18px 6px !important;font-size:13px;color:var(--ahp-sub)}
.ahp-refs strong{color:var(--ahp-main)}
