@charset "UTF-8";
/* ==========================================================================
   子宮疾患研究推進財団 / style.css
   ========================================================================== */

/* --------------------------------------------------------------- variables */
:root {
  --wine:        #8A324B;   /* メインカラー（ボタン・フッター） */
  --wine-dark:   #7A2F44;
  --wine-light:  #A2405C;
  --rose:        #A8305A;   /* 見出しのローズ */
  --pink:        #C4577A;   /* カードタイトル・英字ラベル */
  --pink-pale:   #F4DDE3;
  --pink-bg:     #FDF2F4;
  --cream:       #FFFAF6;   /* セクション背景 */
  --ink:         #222;   /* 見出し */
  --text:        #555;   /* 本文 */
  --text-thin:   #666;
  --line:        #EFE0E3;
  --shadow:      0 2px 24px rgba(138, 50, 75, .07);

  --font-go: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "游ゴシック体", sans-serif;
  --font-mi: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "游明朝", serif;
  --font-en: "Jost", "Noto Sans JP", sans-serif;

  --inner: 1280px;
  --header-h: 88px;
  --anchor-gap: 2rem;   /* アンカー移動時にヘッダー下へ空ける余白 */
  /* 全幅セクション（hero / mission）の本文を .inner の左端に揃えるための余白 */
  --edge: max(40px, calc((100vw - var(--inner)) / 2 + 40px));

  /* 可変フォントサイズ（clamp: 最小 / 可変 / 最大） */
  --fs-md:   clamp(0.8125rem, 1.4vw, 0.875rem);   /* 13–14px 本文小・ボタン・ナビ */
  --fs-base: clamp(0.875rem,  1.6vw,  1rem);       /* 14–16px 本文・カード見出し */
  --fs-lg:   clamp(1.125rem,  2.4vw,  1.5rem);    /* 18–24px 中見出し・キャッチ */
  --fs-xl:   clamp(1.4rem,   3vw,  2rem);   /* 20–32px セクション見出し */
  --fs-hero: clamp(1.5rem,   4vw,  2.5rem);   /* 28–48px ヒーロー見出し */
}

/* --------------------------------------------------------------- base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--anchor-gap)); }

body { margin: 0; font-family: var(--font-go); font-size: var(--fs-base); font-weight: 400; line-height: 2; color: var(--text); background: #fff; letter-spacing: .04rem; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; overflow-wrap: break-word; }
* { box-sizing: border-box;}
h1, h2, h3, h4, p, figure, dl, dd, ol, ul, address, table, blockquote { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
p { margin-bottom: 1.5em; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; transition: opacity .3s, color .3s, background-color .3s, border-color .3s; }
a:hover { opacity: .7; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
svg { display: block; }

/* --------------------------------------------------------------- layout */
.inner { width: 100%; max-width: var(--inner); margin-inline: auto; padding-inline: 40px; box-sizing: border-box; }

/* --------------------------------------------------------------- parts: eyebrow / heading */
.eyebrow { font-family: var(--font-en); font-size: var(--fs-md); font-weight: 400; line-height: 1.4; letter-spacing: .14em; color: var(--pink); margin-top:-0.5rem; margin-bottom:clamp(0.5rem, 1.2vw, 0.75rem); }
.eyebrow span { color: #D89AA8; }

.heading { font-family: var(--font-mi); font-size: var(--fs-xl); font-weight: 500; line-height: 1.5; color: var(--ink); margin-bottom: clamp(1rem, 2.4vw, 1.5rem); /* 16–30px */margin-top:clamp(-0.75rem, -1.2vw, -0.5rem); }
.heading_sm { font-size: var(--fs-lg); margin-bottom: 0; }

.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sechead .eyebrow { margin-bottom: 10px; }
.sechead_link { flex-shrink: 0; padding-bottom: 6px; }
.heading { }

/* --------------------------------------------------------------- parts: link */
.link { position: relative; display: inline-block; padding: 0 26px 6px 0; font-size: var(--fs-md); color: var(--rose); border-bottom: 1px solid var(--pink-pale); }
.link::after { content: ""; position: absolute; top: 50%; right: 4px; width: 6px; height: 6px; margin-top: -6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transition: transform .3s; }
.link:hover { opacity: 1; color: var(--wine); }
.link:hover::after { transform: rotate(45deg) translate(3px, -3px); }

/* --------------------------------------------------------------- parts: button */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 220px; min-height: 58px; padding: 12px 52px 12px 34px; box-sizing: border-box; font-size:1rem; font-weight: 500; line-height: 1.5; letter-spacing: .06em; text-align: center; border-radius: 5rem; border: 1px solid transparent; }
.btn::after { content: ""; position: absolute; top: 50%; right: 26px; width: 6px; height: 6px; margin-top: -4px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transition: transform .3s; }
.btn:hover { opacity: 1; }
.btn:hover::after { transform: rotate(45deg) translate(3px, -3px); }

.btn_primary { color: #fff; background: linear-gradient(100deg, var(--wine) 0%, var(--wine-light) 100%); box-shadow: 0 4px 16px rgba(138, 50, 75, .18); }
.btn_primary:hover { background: linear-gradient(100deg, var(--wine-dark) 0%, var(--wine) 100%); }

.btn_outline { color: var(--wine); background: #fff; border-color: var(--rose); }
.btn_outline:hover { border-color: var(--wine); background: var(--pink-bg); }

.btn_wh { background: transparent; border-color:var(--wine); color: var(--wine); background: #fff; }
.btn_wh:hover { background: #fff8; }

.btn_sm { min-width: 0; min-height: 44px; padding: 8px 40px 8px 22px; font-size: var(--fs-md); }
.btn_sm::after { right: 20px; width: 5px; height: 5px; }

/* ==========================================================================
   header
   ========================================================================== */
.header { position: fixed; top: 0; left: 0; z-index: 10000; width: 100%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 20px rgba(138, 50, 75, .08); }

.h_inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: var(--header-h); /*max-width: 1560px;*/ margin-inline: auto; padding-inline: 40px; box-sizing: border-box; }
.h_logo { flex-shrink: 0; line-height: 1; margin-bottom:0; }
.h_logo a { display: flex; align-items: center; gap: 12px; font-family: var(--font-mi); color: var(--ink); }
.h_mark { flex-shrink: 0; width: 58px; height: auto; }
.h_name_sub { display: block; font-size: var(--fs-md); line-height: 1.2; letter-spacing: .12em; /*color: var(--rose);*/ }
.h_name_main { display: block; font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav_list { display: flex; align-items: center; gap: 34px; }
.nav_list a { font-size: var(--fs-md); font-weight: 500; color: var(--ink); }
.nav_list a:hover { opacity: 1; color: var(--rose); }
.nav_cta { flex-shrink: 0; }

.h_toggle { display: none; position: relative; width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.h_toggle:hover { opacity: 1; }
.h_toggle span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--wine); transition: transform .3s, opacity .3s; }
.h_toggle span:nth-child(1) { top: 15px; }
.h_toggle span:nth-child(2) { top: 21px; }
.h_toggle span:nth-child(3) { top: 27px; }
.h_toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.h_toggle.is-open span:nth-child(2) { opacity: 0; }
.h_toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   hero
   ========================================================================== */
.hero { position: relative; padding-top: var(--header-h); background: #fff; overflow: hidden; }
.hero_deco { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1600 / 640; background: url("../img/hero_deco.png") no-repeat left bottom / 52%; pointer-events: none; }

.hero_inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 50%; align-items: center; /*gap: 40px; min-height: 620px;*/ }
.hero_body { padding: clamp(2rem,6vw,4rem) 0 clamp(3rem,10vw,6rem) var(--edge); margin-right: -20%; position: relative; z-index: 100; }

.hero_title { font-family: var(--font-mi); font-size: var(--fs-hero); font-weight: 500; line-height: 1.5; color: var(--rose); margin-bottom: clamp(1rem,2.4vw,1.5rem); }
.hero_lead { font-size: var(--fs-md); line-height: 2.2; color: var(--text); margin-bottom: 44px; }
.hero_btns { display: flex; flex-wrap: wrap; gap: 16px; }
.hero_title + .hero_btns { margin-top: 44px; } /* hero_lead 非表示時の余白確保 */
.hero_btns .btn { min-width: 205px; }

.hero_visual {  display: flex; /*align-items: center;*/ align-self: stretch; border-radius:40% 0 0 0; overflow: hidden; }
.hero_visual img { width: 100%; height: auto; object-fit: cover; }

/* ==========================================================================
   about
   ========================================================================== */
.about { position: relative; padding: 100px 0 96px; background: var(--cream) url("../img/bg_about.png") no-repeat right 5% bottom / 30% auto; overflow: hidden; }
.about_wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 33% minmax(0, 1fr); gap: 60px; align-items: start; }
.about_img { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.about_img img { width: 100%; }
.about_body { padding-top: 6px; }
.about_text { font-size: var(--fs-md); line-height: 2; margin-bottom: clamp(1rem, 2.4vw, 1.5rem) }

/* ==========================================================================
   research fields
   ========================================================================== */
.fields { padding: 96px 0 100px; background: #fff; }
.fields_wrap { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 46px; /*align-items: center;*/ }
.fields_head .heading { font-size: var(--fs-lg); margin-bottom: clamp(1rem, 1.9vw, 1.625rem); }
.fields_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fields_note { grid-column: 1 / -1; font-size: var(--fs-md); line-height: 1.8; color: var(--text-thin); text-align: right; margin-top: -6px; }

.field { padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: box-shadow .3s, border-color .3s, transform .3s; }
.field:hover { border-color: var(--pink-pale); box-shadow: var(--shadow); transform: translateY(-3px); }
.field_head { margin-bottom: 14px; }
.field_title { font-size: var(--fs-base); font-weight: 700; line-height: 1.45; letter-spacing: .02em; color: var(--rose); }
.field_text { font-size: var(--fs-md); line-height: 1.95; color: var(--text); }

/* ==========================================================================
   research grants / application flow
   ========================================================================== */
.grant { padding: 96px 0 100px; background: var(--cream); }
.grant_wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.grant_text { font-size: var(--fs-md); margin-bottom: 30px; }

.grant_table { width: 100%; margin-bottom: clamp(1rem,2.4vw,1.5rem); background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.grant_table th, .grant_table td { padding: 0.5rem 1rem; line-height: 1.8; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.grant_table tr:last-child th, .grant_table tr:last-child td { border-bottom: 0; }
.grant_table th { font-weight: 500; color: var(--rose); background: var(--pink-bg); white-space: nowrap; }
.grant_btns { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom:2rem; }
.grant_btns .btn { min-width: 218px; }

/* --- flow --- */
.flow_head { margin-bottom: 22px; }
.flow_head .eyebrow { margin-bottom: 8px; }
.flow_list { display: flex; flex-direction: column; gap: 12px; }
.flow_list li { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 24px 16px 18px; background: #fff; border-radius: 8px; box-shadow: 0 1px 10px rgba(138, 50, 75, .05); }
/* STEP番号（丸バッジ） */
.flow_num { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: var(--rose); font-family: var(--font-en); line-height: 1; color: #fff; }
.flow_num em { display: block; font-style: normal; font-size: clamp(0.5625rem, 0.72vw, 0.6875rem); /* 9–11px */ letter-spacing: .14em; opacity: .85; margin-bottom: 4px; }
.flow_num b { display: block; font-weight: 500; font-size: var(--fs-lg); letter-spacing: .02em; }
.flow_body { display: block; }
.flow_title { display: block; font-size: var(--fs-base); font-weight: 700; line-height: 1.5; color: var(--rose); }
.flow_text { display: block; font-size: var(--fs-md); line-height: 1.8; color: var(--text); }

/* ==========================================================================
   mission
   ========================================================================== */
.mission { display: flex; justify-content: space-between; padding:5rem 0; max-height:40rem; background: #fff; overflow: hidden; align-items: center; position: relative;}
.mission_body { padding-left: var(--edge); width:50%; position: relative; z-index: 100; }
.mission_text { font-size: var(--fs-md); line-height: 2;  margin-bottom: 1rem; }
.mission_name { font-family: var(--font-mi); margin-bottom: 32px; }
.mission_btn { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(1rem,2.4vw,1.5rem); }
.mission_btn .btn { min-width: 218px; }
.mission_link { margin: 1.2rem 0 0; }

.mission_photo { display: block; align-self:stretch; width:55%; height: 100%; margin:-5rem 0; position: relative; overflow: hidden;}
.mission_photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mission_photo::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,1) 1%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 100%); pointer-events: none;  z-index: 1; }
.mission_catch { position: absolute; left: 0; bottom: 0; width: 74%; padding: 26px 30px 26px 46px; box-sizing: border-box; font-family: var(--font-mi); font-size: var(--fs-lg); font-weight: 500; line-height: 1.75; color: var(--ink); background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.86) 70%, rgba(255,255,255,0) 100%); display:none; }
.mission_catch span { padding-left: 1.5em; }

/* ==========================================================================
   achievements / news
   ========================================================================== */
.info { padding: 78px 0 88px; background:var(--cream); }
.info_wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }

/* --- achievement --- */
.achieve_list { display: flex; flex-direction: column; gap: 16px; }
.achieve_card { display: block; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s; }
.achieve_card:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 6px 28px rgba(138,50,75,.12); }
.achieve_year { font-size: var(--fs-md); font-weight: 500; color: var(--pink); }
.achieve_title { font-size: var(--fs-base); font-weight: 500; line-height: 1.7; color: var(--ink); margin-bottom: 4px; }
.achieve_data { font-size: var(--fs-md);  }
.achieve_data > div { display: flex; gap: 14px; }
.achieve_data dt { width: 68px; flex-shrink: 0; color: var(--pink); }
.achieve_data dd { margin: 0; }

/* --- news --- */
.news_list { border-top: 1px solid var(--line); }
.news_list li { border-bottom: 1px solid var(--line); }
.news_list a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 4px; }
.news_list a:hover { opacity: 1; color: var(--rose); }
/* リンク先が未設定（#）の場合はクリックできないようにする */
.news_list a[href="#"], .news_list a[href=""] { pointer-events: none; cursor: default; }
.news_list a[href="#"]:hover, .news_list a[href=""]:hover { color: inherit; }
.news_list time { font-family: var(--font-en); font-size: var(--fs-md); letter-spacing: .06em; color: var(--text-thin); }
.news_title { font-size: var(--fs-md); line-height: 1.8; }
.news_new { display: inline-block; margin-left: 10px; padding: 1px 12px; font-family: var(--font-en); font-size: var(--fs-md); font-style: normal; color:#fff; background: var(--rose); border-radius: 5rem; vertical-align: 2px; }

/* ==========================================================================
   下層ページ共通
   ========================================================================== */
.phead { position: relative; padding: calc(var(--header-h) + 56px) 0 48px; background: #F8DCE0 url("../img/bg_head.png") no-repeat center center / cover; overflow: hidden; }
.phead .inner { position: relative; z-index: 1; }
.phead .eyebrow { color: var(--rose); margin-bottom:0; }
.phead_title { font-family: var(--font-mi); font-size: var(--fs-xl); font-weight: 500; line-height: 1.4; color: var(--ink); }

.breadcrumb { padding: 14px 0; border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: var(--fs-md); color: var(--text-thin); list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--pink); }
.breadcrumb a { color: var(--rose); }

.sec { padding:4rem 0; }
.sec_cream { background: var(--cream); }
.sec_head { /*margin-bottom: 34px;*/ }
/* 見出しw25／本文w75の2カラム時、見出しが本文に接しないよう余白 */
.inner.flex > .sec_head { padding-right: 30px; }

/* 目的・理念 */
.lead_box { padding:clamp(1rem,3vw,2rem); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.lead_text { }

/* 代表理事挨拶 */
.message_wrap { max-width: 900px; }
.message_text { text-indent: 1em; }
.message_text + .message_text { margin-top: 1.4em; }
.message_sign { margin-top: 2em; /*font-family: var(--font-mi); color: var(--ink);*/ text-align: right; }
.message_name { font-size: var(--fs-base); letter-spacing: .1em; }

/* 活動内容 */
.act_list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.act_list li { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.act_num { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; font-family: var(--font-en); font-size: var(--fs-base); color: #fff; background: var(--rose); border-radius: 50%; }
.act_text { /*font-size: var(--fs-md);*/ line-height: 1.8; }

/* 財団概要 */
.outline_table { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.outline_table th, .outline_table td { padding: 1rem 1.5rem; /*font-size: var(--fs-md);*/ text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.outline_table tr:last-child th, .outline_table tr:last-child td { border-bottom: 0; }
.outline_table th { width: 180px; font-weight: 500; color: var(--rose); background: var(--pink-bg); white-space: nowrap; }

/* 役員等名簿 */
.roster { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px; border-collapse: separate; border-spacing: 0; overflow: hidden; line-height: 1.5; margin-bottom: clamp(1rem,2.4vw,1.5rem); }
.roster th, .roster td { padding: .9rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.roster tbody tr:last-child th, .roster tbody tr:last-child td { border-bottom: 0; }
.roster thead th { padding-top: .45rem; padding-bottom: .45rem; font-weight: 500; line-height: 1.5; color: var(--rose); background: var(--pink-pale); white-space: nowrap; }
.roster tbody th { width: 7.5em; font-weight: 400; color: var(--text); background: #fff; white-space: nowrap; }
.roster_name { width: 8em; white-space: nowrap; }
.roster_post { /*color: var(--text-thin);*/ }
.subhead_note { float: right; font-size: var(--fs-md); font-weight: 400; color: var(--text-thin); margin-top: 4px; }
.outline_ol { counter-reset: n; }
.outline_ol li { position: relative; padding-left:clamp(1.5rem, 3vw, 2rem); counter-increment: n; }
.outline_ol li::before { content: "(" counter(n) ")"; position: absolute; left: 0; color: var(--pink); }

/* ==========================================================================
   研究助成ページ（grant.html）
   ========================================================================== */
.subhead { margin: 1em 0 .5em; /*font-size: var(--fs-base); font-weight: 700;*/ line-height: 1.5; color: var(--rose); }
.subhead:first-child { margin-top: 0; }

/* 助成募集要項（左：見出し＋目次／右：本文） */
.inner.flex > .sec_head.req_head { position: sticky; top: calc(var(--header-h) + 24px); align-self: flex-start; }
.req_head .heading { color: var(--rose); }
.req_nav { margin:1.5rem 0 3rem; /*border-top: 1px solid var(--line);*/ }
.req_nav ul { list-style: none; }
.req_nav a { position: relative; display: block; padding: .7em 0 .7em 1.4em; font-size: var(--fs-md); line-height: 1.5; color: var(--text); /*border-bottom: 1px solid var(--line);*/ }
.req_nav a::before { content: ""; position: absolute; left: .2em; top: 50%; width: 6px; height: 6px; margin-top: -4px; border-right: 1px solid var(--pink); border-bottom: 1px solid var(--pink); transform: rotate(-45deg); }
.req_nav a:hover { color: var(--rose); }

.req_block { margin-bottom: clamp(2rem, 6vw, 3.75rem); }
.req_block:last-child { margin-bottom: 0; }
.req_block > *:last-child { margin-bottom: 0; }
.req_h { margin-bottom: .75rem; font-family: var(--font-mi); font-size: var(--fs-lg); font-weight: 500; line-height: 1.5; color: var(--rose); }
.req_deadline { margin-bottom:0; font-size: var(--fs-lg); font-weight: 500; color: var(--rose); }
.note_hang { padding-left: 1.3em; text-indent: -1.3em; }
.target_box { margin: 1.5em 0 0; padding: .9em 1.5em; font-weight: 500; line-height: 1.7; color: var(--rose); /*text-align: center;*/ border: 1px solid rgba(196, 87, 122, .4); border-radius: 2rem; }
.marker { mix-blend-mode: multiply; background-image: linear-gradient(transparent 52%, rgba(168, 48, 90, .12) 52%, rgba(168, 48, 90, .12) 96%, transparent 96%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.note { /*font-size: var(--fs-md);*/ color: var(--text-thin); }
.note_mt { margin-top: .8em; }

/* ・付きリスト */
.dot_list li { position: relative; padding-left: 1.2em;  }
.dot_list li::before { content: ""; position: absolute; left: .25em; top: .85em; width: 5px; height: 5px; background: var(--pink); border-radius: 50%; }
.dot_list li + li { margin-top: .2em; }

/* ※付きリスト（注意事項） */
.note_list li { position: relative; padding-left: 1.6em; font-size: var(--fs-md);  }
.note_list li::before { content: "※"; position: absolute; left: 0; color: var(--pink); }
.note_list li + li { margin-top: .3em; }

/* ①②③ の入れ子リスト */
.circle_ol { counter-reset: c; margin-top: .5em; }
.circle_ol li { position: relative; padding-left: 1.9em; counter-increment: c;  }
.circle_ol li::before { content: counter(c); position: absolute; left: 0; top: .45em; display: flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; font-family: var(--font-en); font-size: var(--fs-md); color: #fff; background: var(--pink); border-radius: 50%; }

/* 表組み内の余白調整 */
.outline_table td > *:last-child, .grant_table td > *:last-child { margin-bottom: 0; }
.outline_table td a, .grant_table td a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }

/* お問い合わせ・申請書送付先 */
.contact_name { margin-bottom: .4em; font-family: var(--font-mi); font-size: var(--fs-lg); font-weight: 500; color: var(--ink); line-height: 1.5; }
.contact_data { line-height: 2; }
.contact_data a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   cta
   ========================================================================== */
.cta { padding: 54px 0; background: #F8DCE0 url("../img/bg_head.png") no-repeat center center / cover; }
.cta_wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta_title { font-family: var(--font-mi); font-size: var(--fs-lg); font-weight: 500; line-height: 1.5; color: var(--rose); margin-bottom: 10px; }
.cta_text { font-size: var(--fs-md);  color: var(--text); }
.cta_btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta_btns .btn { min-width: 200px; min-height: 54px; }

/* ==========================================================================
   footer
   ========================================================================== */
.footer { position: relative; padding: clamp(2rem,5vw,3rem) 0; color: #fff; background:var(--wine); }
.f_wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content:flex-start; gap: 24px 50px; }
.f_logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-mi); color: #fff; }
/* フッターはマークを白抜きに */
.f_mark { flex-shrink: 0; width: 50px; height: auto; filter: brightness(0) invert(1); }
.f_name_sub { display: block; font-size: var(--fs-md); line-height: 1.2; letter-spacing: .12em; color: rgba(255,255,255,.75); }
.f_name_main { display: block; font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; letter-spacing: .08em; }
.f_body { display: flex; flex-direction: column; align-items:flex-start; gap: 12px; }
.f_address { font-size: var(--fs-md); color: rgba(255,255,255,.88); }
.f_indent { display: inline-block; padding-left: 5.5em; }

.f_links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap:8px; font-size: var(--fs-md); line-height: 1.8; }
.f_links a:hover { opacity: 1; text-decoration: underline; }

.f_copy { font-family: var(--font-en); font-size: var(--fs-md); letter-spacing: .06em; color: rgba(255,255,255,.7); margin-bottom: 0; line-height: 1.5; }

/* --- page top --- */
.pagetop { position: fixed; right: 30px; bottom: 30px; z-index: 1000; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: var(--wine); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s, visibility .35s, transform .35s, background-color .3s; }
.pagetop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.pagetop:hover { background: var(--wine); }
.pagetop svg { width: 20px; height: 20px; }

/* ==========================================================================
   scroll animation
   ========================================================================== */
.js-fade { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js-fade.is-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-fade { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   responsive : ~1200px
   ========================================================================== */
@media screen and (max-width: 1200px) {
  :root { --edge: 30px; }
  .hero_body { }
  .inner { padding-inline: 30px; }
  .h_inner { padding-inline: 24px; gap: 20px; }
  .h_logo a { gap: 9px; }
  .h_mark { width: 44px; }
  .f_mark { width: 38px; }
  .nav, .nav_list { gap: 22px; }
  .about_wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .fields_wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
  .fields_list { gap: 16px; }
  .grant_wrap { gap: 40px; }
  .info_wrap { gap: 40px; }
}

/* ==========================================================================
   responsive : ~960px (tablet / sp)
   ========================================================================== */
@media screen and (max-width: 960px), print {
  :root { --header-h: 68px; --edge: 24px; }

  /* --- header --- */
  .h_toggle { display: block; }

  .nav { position: fixed; top: var(--header-h); left: 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 0; width: 100%; height: calc(100dvh - var(--header-h)); padding: 24px 24px 60px; box-sizing: border-box; background: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, visibility .3s, transform .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav_list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav_list li { border-bottom: 1px solid var(--line); }
  .nav_list a { display: block; padding: 17px 4px; font-size: var(--fs-base); }
  .nav_cta { margin-top: 26px; text-align: center; }
  .nav_cta .btn { width: 100%; min-height: 54px; font-size: var(--fs-base); }
  body.is-navopen { overflow: hidden; }

  /* --- hero --- */
  .hero_inner { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero_body { padding: 34px 24px 44px; margin-right: 0; }
  .hero_title { margin-bottom: 24px; }
  .hero_lead { margin-bottom: 30px; }
  .hero_lead br { /*display: none;*/ }
  .hero_btns { justify-content: center; gap: 12px; }
  .hero_title + .hero_btns { margin-top: 30px; }
  .hero_btns .btn { min-width: 46%; }
  .hero_deco { background: url("../img/hero_deco.png") no-repeat left bottom / 100%; }


  /* --- section common --- */
  .eyebrow { /*margin-bottom: 4px;*/ }
  .sechead { gap: 14px; margin-bottom: 20px; }

  /* --- about --- */
  .about { padding:3rem 0; }
  .about { background-size: 320px auto; }
  .about_wrap { display: block; }
  .about_img { max-width: 420px; margin: 0 auto 30px; }
  .about_text br { display: none; }
  .about_btn { text-align: center; }

  /* --- fields --- */
  .fields { padding: 60px 0 64px; }
  .fields_wrap { display: block; }
  .fields_head { margin-bottom: 28px; }
  .fields_list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .field { padding: 20px 18px 22px; }
  .field_text br { display: none; }
  .fields_note { text-align: left; margin-top: 4px; }

  /* --- grant / flow --- */
  .grant { padding: 60px 0 64px; }
  .grant_wrap { display: block; }
  .grant_text br { display: none; }
  .grant_table { display: block; margin-bottom: 26px; }
  .grant_table tbody, .grant_table tr { display: block; }
  .grant_table th, .grant_table td { display: block; width: auto; padding: 10px 16px; }
  .grant_table th { border-bottom: 0; }
  .grant_table td { padding-top: 6px; }
  .grant_btns .btn { min-width: 100%; }
  .flow { margin-top: 46px; }
  .flow_list li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px 16px 14px 14px; }
  .flow_num { width: 56px; height: 56px; }

  /* --- mission --- */
  .mission { padding: 2rem 0 0; display: block; max-height: none; }
  .mission_wrap { display: block; padding-bottom: 0; }
  .mission_body { padding: 1.5rem; width: 100%; margin: 0 auto; }
  .mission_text br { display: none; }
  .mission_btn { justify-content: center; }
  .mission_btn .btn { min-width: 46%; }
  .mission_link { text-align: center; }
  .mission_photo { aspect-ratio: 3 / 2; width: 100%; margin:0; }
  .mission_photo::after { background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 15%, rgba(255,255,255,0) 100%); }
  .mission_catch { position: static; width: 100%; padding: 22px 24px; background: #FFF8F8; text-align: center; }
  .mission_catch span { padding-left: 0; }

  /* --- info --- */
  .info { padding: 3rem 0; }
  .info_wrap { display: block; }
  .achieve_card { padding: 18px; }
  .news_list a { grid-template-columns: 1fr; gap: 4px; padding: 15px 4px; }

  /* --- cta --- */
  .cta { padding: 40px 0; }
  .cta_wrap { display: block; text-align: center; }
  .cta_text { margin-bottom: 24px; }
  .cta_btns { justify-content: center; }
  .cta_btns .btn { min-width: 46%; }

  /* --- 下層ページ --- */
  .phead { padding: calc(var(--header-h) + 2rem) 0 30px; }
  .sec { padding: 3rem 0; }
  .sec_head { margin-bottom:0; }
  .inner.flex > .sec_head { padding-right: 0; }
  .inner.flex > .sec_head.req_head { position: static; }
  .target_box { padding: .8em 1.1em; text-align: left; border-radius: 10px; }
  .lead_box { padding: 22px 20px; }
  .act_list { grid-template-columns: 1fr; gap: 12px; }
  .act_list li { padding: 16px 18px; gap: 12px; }
  .act_num { width: 38px; height: 38px; }
  .outline_table, .outline_table tbody, .outline_table tr, .outline_table th, .outline_table td { display: block; width: auto; }
  .outline_table th { border-bottom: 0; padding:0.5rem 0.75rem; white-space: normal; }
  .outline_table td { padding:0.5rem 0.75rem 1rem; }
  .roster th, .roster td { padding:0.75rem; }
  .roster thead th { padding-top: 6px; padding-bottom: 6px; }
  .roster tbody th { width: 5.5em; }
  .roster_name { width: auto; }

  /* --- 研究助成ページ --- */
  .subhead { margin: 1.6em 0 .6em; }

  /* --- footer --- */
  .f_wrap { display: block; }
  .f_logo { margin-bottom:1rem; }
  .f_body { align-items: flex-start; text-align: left; }
  .f_links { justify-content: flex-start; }
  .f_indent { padding-left: 0; }

  .pagetop { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ==========================================================================
   responsive : ~480px
   ========================================================================== */
@media screen and (max-width: 480px) {
  .inner { padding-inline: 20px; }
  .h_inner { padding-inline: 16px; }

  .hero_body { padding: 1.5rem 0 2rem; }
  .hero_btns { display: block; }
  .hero_btns .btn { display: flex; width: 100%; min-width: 0; }
  .hero_btns .btn + .btn { margin-top: 12px; }


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

  .mission_btn { display: block; }
  .mission_btn .btn { display: flex; width: 100%; min-width: 0; }
  .mission_btn .btn + .btn { margin-top: 12px; }

  .cta_btns { display: block; }
  .cta_btns .btn { display: flex; width: 100%; min-width: 0; }
  .cta_btns .btn + .btn { margin-top: 12px; }

}

/* ==========================================================================
   お知らせ詳細・固定ページ本文（WordPress）
   ========================================================================== */
.entry_head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: clamp(1rem, 2.4vw, 1.5rem); border-bottom: 1px solid var(--line); }
.entry_date { display: block; margin-bottom: .4em; font-family: var(--font-en); font-size: var(--fs-md); letter-spacing: .06em; color: var(--text-thin); }
.entry_title { font-family: var(--font-mi); font-size: var(--fs-xl); font-weight: 500; line-height: 1.6; color: var(--ink); }

.entry_body > *:last-child { margin-bottom: 0; }
.entry_body h2 { margin: 2em 0 .8em; font-family: var(--font-mi); font-size: var(--fs-lg); font-weight: 500; line-height: 1.6; color: var(--rose); }
.entry_body h3 { margin: 1.8em 0 .6em; /*font-size: var(--fs-base);*/ font-weight: 600; line-height: 1.6; color: var(--rose); }
.entry_body h2:first-child, .entry_body h3:first-child { margin-top: 0; }
.entry_body ul, .entry_body ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.entry_body li + li { margin-top: .2em; }
.entry_body a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; text-decoration: none; }
.entry_body a.btn_primary { color: #fff; }
.entry_body img { height: auto; border-radius: 6px; }
.entry_body blockquote { margin: 0 0 1.5em; padding: 1em 1.5em; background: var(--pink-bg); border-radius: 6px; }
.entry_body table { width: 100%; margin-bottom: 1.5em; border-collapse: collapse; }
.entry_body th, .entry_body td { padding: .8em 1.2em; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.entry_body th { font-weight: 500; color: var(--rose); background: var(--pink-bg); }

.entry_nav { margin-top: clamp(2rem, 5vw, 3rem); text-align: center; }

/* ページャー */
.pager { margin-top: clamp(2rem, 5vw, 3rem); }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .6em; font-family: var(--font-en); font-size: var(--fs-md); color: var(--rose); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.pager .page-numbers.current { color: #fff; background: var(--rose); border-color: var(--rose); }
.pager .page-numbers.dots { border: 0; background: transparent; }


/* ==========================================================================
   管理バー（#wpadminbar）とのかぶり回避
   ログイン時のみ body に .admin-bar が付与されます
   ========================================================================== */
/* 管理バーの高さ。html 側に持たせて scroll-padding-top からも参照できるようにする */
html { --adminbar-h: 0px; }
html:has(body.admin-bar) { --adminbar-h: 32px; }

body.admin-bar .header { top: var(--adminbar-h); }

/* アンカースクロール時に管理バーの高さぶんも空ける */
html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-h) + var(--adminbar-h) + var(--anchor-gap)); }

/* 管理バーが 46px になる幅 */
@media screen and (max-width: 782px) {
  html:has(body.admin-bar) { --adminbar-h: 46px; }
}

/* SP のドロワーメニュー。
   .header に backdrop-filter があるため .header が fixed 子要素の基準になる。
   top はヘッダー上端からの距離なので管理バー分を足さない。高さだけ差し引く */
@media screen and (max-width: 960px) {
  body.admin-bar .nav { height: calc(100dvh - var(--header-h) - var(--adminbar-h)); }
}



/* ==========================================================================
   お問い合わせ・送信完了ページ
   ========================================================================== */
body.page-contact .sec .inner,
body.page-thanks  .sec .inner { max-width: 850px; }

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
.cf7_form { max-width: 900px; }
.cf7_row + .cf7_row { margin-top: clamp(1.25rem, 3vw, 1.75rem); }
.cf7_label { display: block; margin-bottom: .5em; font-weight: 500; color: var(--wine); }
.cf7_req, .cf7_any, .cf7_badge { display: inline-block; min-width: 3.4em; margin-right: .8em; padding: .1em .6em; font-size: var(--fs-md); font-weight: 400; line-height: 1.6; text-align: center; border-radius:3rem; vertical-align: 1px; }
.cf7_req, .cf7_badge.cf7_req { color: #fff; background: var(--rose); border: 1px solid var(--rose); }
.cf7_any, .cf7_badge.cf7_any { color: var(--text-thin); background: #fff; border: 1px solid var(--line); }
.cf7_note { margin: .4em 0 0; font-size: var(--fs-md); color: var(--text-thin); }

.cf7_form input[type="text"],
.cf7_form input[type="email"],
.cf7_form input[type="tel"],
.cf7_form textarea {
  width: 100%; padding: .7em 1em; font-family: inherit; font-size: 1rem; line-height: 1.7; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 5px; box-sizing: border-box;
}
.cf7_form textarea { min-height: 12em; resize: vertical; }
.cf7_form input:focus, .cf7_form textarea:focus { outline: none; border-color: var(--wine); }

/* 目的のラジオ */
.cf7_radio .wpcf7-list-item { margin: 0 1.75em 0 0; }
.cf7_radio label { display: inline-flex; align-items: center; gap: .5em; cursor: pointer; }
.cf7_radio input[type="radio"] { width: 20px; height: 20px; accent-color: var(--rose); cursor: pointer; flex-shrink: 0; }

/* 申請書の添付欄（目的が「助成金の応募」のときだけ表示） */
.cf7_row_file[hidden] { display: none; }
.cf7_row_file input[type="file"] { font-size: var(--fs-md); }
.cf7_row_file input[type="file"]::file-selector-button { margin-right: 1em; padding: .5em 1.2em; font-family: inherit; font-size: var(--fs-md); color: var(--wine); background: #fff; border: 1px solid var(--wine); border-radius: 4px; cursor: pointer; }
.cf7_row_file input[type="file"]::file-selector-button:hover { color: #fff; background: var(--wine); }

/* ステップ（入力／確認） */
.cf7_step[hidden] { display: none; }
.cf7_confirm_table { margin-top: 1.5em; }
.cf7_confirm_table th { color: var(--wine); background: rgba(138, 50, 75, .06); }
.cf7_confirm_table td { white-space: pre-wrap; }
.cf7_confirm_table td:empty::before { content: "（未入力）"; color: var(--text-thin); }
.cf7_confirm_table tr[hidden] { display: none; }
.cf7_confirm_original { display: block; margin-top: .3em; font-size: var(--fs-md); color: var(--text-thin); }

/* ボタン列 */
.cf7_actions { display: flex; flex-wrap: wrap; align-items:center; justify-content: space-between; /* gap: 16px;*/ margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.cf7_actions .btn { cursor: pointer; font-family: inherit; }
.cf7_actions .btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.cf7_actions .btn:disabled::after { opacity: .4; }
.cf7_confirm_btn { margin-left: auto;}

/* 「修正する」は左向きの矢印を左側に置く */
.cf7_back_btn { order:1; padding: 12px 32px 12px 45px; margin-top:2rem; }
.cf7_back_btn::after { right: auto; left: 24px; transform: rotate(-135deg); }
.cf7_back_btn:hover::after { transform: rotate(-135deg) translate(3px, -3px); }

/* 送信ボタン */
.cf7_form .wpcf7-submit { order:3; min-width: 220px; min-height: 58px; padding: 12px 45px 12px 32px; box-sizing: border-box; font-family: inherit; font-size:1rem; font-weight: 500; letter-spacing: .06em; color: #fff; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 11'><path d='M1 1l4.5 4.5L1 10' fill='none' stroke='%23fff' stroke-width='1.2'/></svg>"), linear-gradient(100deg, var(--wine) 0%, var(--wine-light) 100%); background-repeat: no-repeat; background-position: right 24px center, 0 0; background-size: 7px 11px, auto; border: 1px solid var(--wine); border-radius: 5rem; box-shadow: 0 4px 16px rgba(138, 50, 75, .18); cursor: pointer; transition: background-position .3s, background-image .3s; }
.cf7_form .wpcf7-submit:hover { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 11'><path d='M1 1l4.5 4.5L1 10' fill='none' stroke='%23fff' stroke-width='1.2'/></svg>"), linear-gradient(100deg, var(--wine-dark) 0%, var(--wine) 100%); background-position: right 23px center, 0 0; }
.cf7_form .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }

.contact_btn { margin: 1.25em 0 0; }

/* ==========================================================================
   送信完了ページ
   ========================================================================== */
.thanks_box { margin-inline: auto; }
.thanks_title { margin-bottom: 1em; font-family: var(--font-mi); font-size: var(--fs-xl); font-weight: 500; line-height: 1.5; color: var(--wine); }
.thanks_box .entry_body { text-align: left; }
.thanks_notice { margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: clamp(1.25rem, 3vw, 1.75rem); background: rgba(138, 50, 75, .04); border: 1px solid var(--line); border-radius: 5px; }
.thanks_notice p { margin: 0; }
.thanks_notice p + p, .thanks_notice p + .thanks_notice_list, .thanks_notice_list + p { margin-top: 1em; }
.thanks_notice_title { font-weight: 500; color: var(--wine); }
.thanks_notice_list { margin: 0; }
.thanks_notice_list dt { position: relative; padding-left: 1em; font-weight: 500; }
.thanks_notice_list dt::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; background: var(--rose); border-radius: 50%; }
.thanks_notice_list dd { margin: 0 0 .75em 1em; }
.thanks_notice_list dd:last-child { margin-bottom: 0; }
.thanks_notice_note { color: var(--text-thin); }
.thanks_btns { display: flex; flex-wrap: wrap; /*justify-content: center;*/ gap: 16px; margin-top: clamp(2rem, 5vw, 3rem); }

/* バリデーションメッセージ */
.cf7_form .wpcf7-not-valid-tip { margin-top: .4em; font-size: var(--fs-md); color: #C8283C; }
.cf7_form .wpcf7-response-output { margin: 1.5em 0 0; padding: 1em 1.25em; font-size: var(--fs-md); line-height: 1.8; border-radius: 5px; }
.cf7_form .wpcf7-spinner { display: block; margin: .8em auto 0; order:2; }


span[data-name="hcap-cf7"] { display:flex; width:100%; justify-content:flex-end; }

/* 600px 以下では WordPress が管理バーを absolute にしてスクロールで流すため、
   固定ヘッダーと重なる。fixed に戻したうえでヘッダー位置を合わせる */
@media screen and (max-width: 600px) {
  #wpadminbar { position: fixed !important; }
  html:has(body.admin-bar) { --adminbar-h: 46px; }
  .cf7_actions { align-items: center; }
  .cf7_actions .cf7_back_btn { min-width: 7rem; }
  .cf7_actions .wpcf7-submit { min-width: 7rem; }
  .cf7_actions .wpcf7-spinner {  }
  
}

@media print {
.header { position: absolute; top:0 !important; }
}