/* ============================================================
   ReLearnD 共通スタイル
   配色は YNU研究拠点ポータル（ynu-rc.ynu.ac.jp）に合わせている
   ============================================================ */
:root {
  --blue: #004b9e;
  --blue-dark: #003a7a;
  --blue-deep: #00224f;
  --blue-pale: #eef3fa;
  --blue-mist: #93b9e3;
  --ink: #2f3440;
  --ink-soft: #636b78;
  --line: #dde2ea;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: "M PLUS 1p", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink); background: #fff; line-height: 1.9;
  font-feature-settings: "palt"; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue-mist); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- ページ遷移（対応ブラウザのみ。非対応でも通常遷移） ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
main { view-transition-name: main; }
::view-transition-old(main) { animation: vt-out .2s ease both; }
::view-transition-new(main) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- スクロール表示（JSが有効なときだけ、画面外の要素を隠してから出す） ---------- */
.rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv-hide { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(main), ::view-transition-new(main) { animation: none; }
  .rv, .rv-hide { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  border-top: 4px solid var(--blue);
  transition: box-shadow .25s ease;
}
/* すりガラス効果は疑似要素に持たせる。ヘッダー本体に backdrop-filter を付けると、
   中の position:fixed なスマホ用メニューがヘッダーの枠内に閉じ込められて表示されなくなるため */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,34,79,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand .logo { font-size: 1.5rem; font-weight: 800; color: var(--blue); letter-spacing: .01em; line-height: 1; }
.brand-text { border-left: 1px solid var(--line); padding-left: 14px; line-height: 1.45; }
.brand-text .jp { display: block; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.brand-text .en { display: block; font-size: .64rem; color: var(--ink-soft); letter-spacing: .04em; }

.gnav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.gnav a {
  position: relative; display: block; padding: 8px 12px;
  font-size: .88rem; font-weight: 700; color: var(--ink); white-space: nowrap; border-radius: 6px;
}
.gnav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.gnav a:hover { color: var(--blue); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { color: var(--blue); }
.gnav .nav-cta a {
  margin-left: 8px; padding: 9px 18px; background: var(--blue); color: #fff; border-radius: 999px;
}
.gnav .nav-cta a::after { display: none; }
.gnav .nav-cta a:hover, .gnav .nav-cta a[aria-current="page"] { background: var(--blue-dark); color: #fff; }

.menu-btn { display: none; }

@media (max-width: 1080px) {
  .brand-text .en { display: none; }
  .gnav a { padding: 8px 9px; font-size: .84rem; }
}
/* スマホ・タブレット：ハンバーガーメニュー */
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .brand .logo { font-size: 1.3rem; }
  .brand { gap: 10px; }
  .brand-text { padding-left: 10px; }
  .brand-text .jp { font-size: .72rem; }
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: none; background: transparent; cursor: pointer; border-radius: 8px;
  }
  .menu-btn .bars { display: grid; gap: 5px; width: 22px; }
  .menu-btn i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .menu-open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn i:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 4px); bottom: 0;
    background: #fff; overflow-y: auto; padding: 12px 24px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .menu-open .gnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open { overflow: hidden; }
  .gnav ul { display: block; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { padding: 18px 4px; font-size: 1.02rem; border-radius: 0; }
  .gnav a::after { display: none; }
  .gnav .nav-cta { border-bottom: none; margin-top: 24px; }
  .gnav .nav-cta a { margin: 0; text-align: center; padding: 15px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .bar { gap: 8px; }
  .brand-text .jp { font-size: .66rem; }
  .menu-btn { margin-right: -8px; }
  .gnav { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   共通パーツ
   ============================================================ */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
@media (max-width: 700px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; color: var(--blue); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); }
.h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.5; color: var(--ink); margin: 12px 0 18px; letter-spacing: .02em; }
.lead { max-width: 760px; font-size: 1rem; color: var(--ink); }
.sec-top { margin-bottom: 44px; }
.sec-top-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-top-row .h2 { margin-bottom: 0; }

.more {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--blue);
}
.more::after {
  content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-pale)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004b9e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.more:hover::after { transform: translateX(4px); background-color: #dfe9f7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 800; font-size: .95rem;
  transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-white:hover { color: var(--blue-dark); }
.btn-line { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* 下層ページの見出し帯 */
.page-head {
  position: relative; color: #fff; padding: 74px 0 64px; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(0,26,66,.94) 0%, rgba(0,40,96,.82) 50%, rgba(0,60,135,.55) 100%),
    url("hero.jpg") center 40% / cover no-repeat, var(--blue-deep);
}
.crumb { font-size: .78rem; color: #b9cdea; margin-bottom: 22px; }
.crumb a { color: #dbe7f6; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; opacity: .6; }
.page-head .ph-en { font-size: .82rem; font-weight: 800; letter-spacing: .2em; color: var(--blue-mist); text-transform: uppercase; }
.page-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.35; letter-spacing: .04em; margin-top: 6px; }
.page-head .ph-lead { max-width: 680px; margin-top: 18px; color: #dbe7f6; font-size: .98rem; }
@media (max-width: 700px) { .page-head { padding: 52px 0 44px; } }

/* ============================================================
   トップページ
   ============================================================ */
.hero {
  position: relative; color: #fff; display: flex; align-items: center;
  min-height: min(78vh, 720px); padding: 90px 0;
  background:
    linear-gradient(95deg, rgba(0,22,58,.95) 0%, rgba(0,33,82,.84) 32%, rgba(0,50,112,.40) 64%, rgba(0,72,152,.08) 100%),
    url("hero.jpg") center / cover no-repeat, var(--blue-deep);
}
.hero .pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.08);
}
.hero .en-name { margin-top: 22px; font-size: .8rem; letter-spacing: .2em; color: var(--blue-mist); text-transform: uppercase; font-weight: 500; }
.hero h1 { margin-top: 10px; font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; line-height: 1.4; letter-spacing: .05em; }
.hero h1 .mark { background: linear-gradient(transparent 80%, rgba(147,185,227,.55) 80%); }
.hero .sub { margin-top: 24px; max-width: 600px; color: #dbe7f6; font-size: 1.02rem; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .2em; color: rgba(255,255,255,.7);
}
.hero .scroll::after {
  content: ""; display: block; width: 1px; height: 40px; margin: 8px auto 0; background: rgba(255,255,255,.6);
  animation: drip 2s ease-in-out infinite; transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) {
  .hero {
    min-height: 0; padding: 64px 0 84px;
    background:
      linear-gradient(180deg, rgba(0,22,58,.93) 0%, rgba(0,33,82,.88) 60%, rgba(0,45,100,.82) 100%),
      url("hero.jpg") 30% center / cover no-repeat, var(--blue-deep);
  }
  .hero .btn { flex: 1 1 100%; }
  .hero .scroll { display: none; }
}

/* コンセプト（トップ） */
.concept-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.concept-grid .big { font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 800; line-height: 1.6; letter-spacing: .02em; }
.concept-grid .big em { font-style: normal; color: var(--blue); }
.concept-grid p + p { margin-top: 14px; }
.concept-grid .more { margin-top: 26px; }
@media (max-width: 860px) { .concept-grid { grid-template-columns: 1fr; gap: 20px; } }

/* 3本柱カード */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; display: flex; flex-direction: column; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.pillar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--blue); }
a.pillar:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,34,79,.10); border-color: transparent; }
.pillar .num { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--blue-pale); -webkit-text-stroke: 1px var(--blue-mist); }
.pillar h3 { margin-top: 18px; font-size: 1.25rem; color: var(--blue); }
.pillar .en { font-size: .7rem; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; margin: 2px 0 14px; line-height: 1.5; }
.pillar p { font-size: .92rem; }
.pillar .more { margin-top: auto; padding-top: 22px; }

/* 国際連携の特集（トップ） */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.feature figure { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px rgba(0,34,79,.14); }
.feature figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature .date { font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }
.feature p { margin-top: 12px; }
.feature .more { margin-top: 24px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 30px; } }

/* 回遊カード（メンバー・業績への導線） */
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .explore { grid-template-columns: 1fr; } }
.explore a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 30px 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.explore a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,34,79,.09); color: var(--ink); }
.explore .ex-en { font-size: .74rem; font-weight: 800; letter-spacing: .16em; color: var(--blue); }
.explore h3 { font-size: 1.2rem; margin-top: 2px; }
.explore p { font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.explore .more { flex-shrink: 0; }

/* CTA 帯 */
.cta {
  color: #fff; text-align: center; padding: 88px 0;
  background:
    linear-gradient(0deg, rgba(0,34,79,.9), rgba(0,34,79,.9)),
    url("hero.jpg") center / cover no-repeat, var(--blue-deep);
}
.cta .eyebrow { color: var(--blue-mist); }
.cta .eyebrow::before { background: var(--blue-mist); }
.cta h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 12px 0 14px; }
.cta p { color: #dbe7f6; }
.cta .btn { margin-top: 30px; }

/* ============================================================
   お知らせ
   ============================================================ */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.news-list time { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ============================================================
   拠点について
   ============================================================ */
.cycle {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.cycle > div { padding: 28px 26px; position: relative; }
.cycle > div + div { border-left: 1px solid var(--line); }
.cycle .step { font-size: .72rem; font-weight: 800; color: var(--blue); letter-spacing: .12em; }
.cycle h3 { font-size: 1.05rem; margin: 4px 0 8px; }
.cycle p { font-size: .88rem; }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr; } .cycle > div + div { border-left: none; border-top: 1px solid var(--line); } }

.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .net-grid { grid-template-columns: 1fr; } }
.net-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px; }
.net-card h3 { color: var(--blue); font-size: 1.05rem; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-pale); }
.net-card ul { list-style: none; }
.net-card li { position: relative; padding: 9px 0 9px 20px; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.net-card li:last-child { border-bottom: none; }
.net-card li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

.profile { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
.profile th, .profile td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile th { width: 190px; background: var(--blue-pale); color: var(--blue); font-weight: 700; white-space: nowrap; }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: none; }
.profile-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 600px) { .profile th, .profile td { display: block; width: auto; } .profile th { padding-bottom: 6px; } .profile td { padding-top: 6px; } }

/* ============================================================
   研究内容
   ============================================================ */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .88rem; font-weight: 700; color: var(--ink);
}
.jump a:hover { border-color: var(--blue); color: var(--blue); }

.research-block { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 64px 0; border-top: 1px solid var(--line); }
.research-block:first-of-type { border-top: none; padding-top: 0; }
@media (max-width: 860px) { .research-block { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; } }
.research-block .tag { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.research-block .tag .n { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--blue-pale); -webkit-text-stroke: 1px var(--blue-mist); }
.research-block .tag h2 { font-size: 1.4rem; color: var(--blue); margin-top: 10px; }
.research-block .tag .en { font-size: .72rem; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; line-height: 1.5; }
@media (max-width: 860px) { .research-block .tag { position: static; } }
.research-block h3.catch { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.6; }
.research-block .intro { margin-top: 10px; }
.sub-list { list-style: none; counter-reset: sub; margin-top: 28px; display: grid; gap: 14px; }
.sub-list li {
  position: relative; padding: 24px 26px 24px 70px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.sub-list li::before {
  counter-increment: sub; content: counter(sub, decimal-leading-zero);
  position: absolute; left: 24px; top: 24px; font-size: .95rem; font-weight: 800; color: var(--blue);
}
.sub-list .st { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.sub-list .sd { font-size: .9rem; }
@media (max-width: 600px) { .sub-list li { padding: 22px 20px 22px 54px; } .sub-list li::before { left: 18px; } }

/* ============================================================
   メンバー
   ============================================================ */
.m-group + .m-group { margin-top: 56px; }
.m-group > h2 { font-size: 1.1rem; color: var(--ink); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.m-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.member {
  display: flex; gap: 18px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px;
}
.member .ini {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-pale); color: var(--blue); font-weight: 800; font-size: 1.15rem;
}
.member .role { font-size: .72rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.member h3 { font-size: 1.12rem; line-height: 1.5; }
.member p { font-size: .84rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.7; }

/* ============================================================
   国際連携
   ============================================================ */
.agree {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff;
  padding: 34px 38px; border-radius: var(--radius);
}
.agree .date { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--blue-mist); }
.agree .date strong { display: block; font-size: 2.3rem; color: #fff; letter-spacing: .02em; line-height: 1.1; }
.agree h2 { font-size: 1.15rem; line-height: 1.6; }
.agree p { font-size: .9rem; color: #dbe7f6; margin-top: 8px; }
.agree a { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .agree { grid-template-columns: 1fr; gap: 10px; padding: 26px; } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 26px; }
.steps li { padding: 20px 16px 18px; border-top: 4px solid var(--line); }
.steps li.done { border-top-color: var(--blue); }
.steps li.now { border-top-color: var(--blue); background: var(--blue-pale); border-radius: 0 0 8px 8px; }
.steps .lv { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: var(--ink-soft); }
.steps .nm { display: block; font-weight: 700; font-size: .93rem; margin: 2px 0 6px; line-height: 1.5; }
.steps .st { font-size: .74rem; font-weight: 700; color: var(--blue); }
.steps li:not(.done):not(.now) .st { color: var(--ink-soft); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-top: none; border-left: 4px solid var(--line); padding: 14px 18px; }
  .steps li.done, .steps li.now { border-left-color: var(--blue); }
  .steps li.now { border-radius: 0 8px 8px 0; }
}

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin: 30px 0 40px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px;
  font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.62));
}
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; grid-template-rows: none; } .gallery figure:first-child { grid-row: auto; } }

.visits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .visits { grid-template-columns: 1fr; } }
.visit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px; }
.visit .kind { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--blue); background: var(--blue-pale); padding: 3px 10px; border-radius: 999px; }
.visit h3 { font-size: 1.1rem; margin: 10px 0 2px; }
.visit .note { font-size: .78rem; color: var(--ink-soft); }
.visit p.body { font-size: .9rem; margin-top: 12px; }

/* ============================================================
   業績
   ============================================================ */
.ach-h { font-size: 1.15rem; margin-bottom: 8px; }
.ach-h + p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.pub-list { list-style: none; counter-reset: pub; border-top: 1px solid var(--line); }
.pub-list li { position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.pub-list li::before {
  counter-increment: pub; content: counter(pub, decimal-leading-zero);
  position: absolute; left: 0; top: 21px; font-size: .8rem; font-weight: 800; color: var(--blue-mist);
}
.pub-list .venue { display: block; color: var(--ink-soft); font-size: .86rem; }
.fund-list { list-style: none; display: grid; gap: 14px; }
.fund-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.fund-list .ft { display: block; font-weight: 700; }
.fund-list .fm { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: 4px; }
.ach-sec + .ach-sec { margin-top: 64px; }

/* ============================================================
   お問い合わせ
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.side-card { background: var(--bg-alt); border-radius: var(--radius); padding: 26px 26px; font-size: .88rem; }
.side-card h2 { font-size: .98rem; margin-bottom: 10px; }
.side-card + .side-card { margin-top: 16px; }
.side-card ul { list-style: none; }
.side-card li { padding: 4px 0 4px 16px; position: relative; }
.side-card li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.alert { padding: 20px 24px; border-radius: var(--radius); margin-bottom: 30px; font-size: .92rem; }
.alert-err { border: 1px solid #cf2e2e; background: #fdf4f4; color: #9c1f1f; }
.alert-err ul { margin: 8px 0 0 20px; }
.alert-ok { border: 1px solid var(--blue); background: var(--blue-pale); }
.alert-ok strong { display: block; font-size: 1.1rem; color: var(--blue); margin-bottom: 8px; }
.field { margin-bottom: 26px; }
.field > label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.tag-req, .tag-opt { font-size: .68rem; font-weight: 700; padding: 3px 8px; margin-left: 8px; border-radius: 4px; vertical-align: .12em; }
.tag-req { background: var(--blue); color: #fff; }
.tag-opt { background: #e9ecf1; color: var(--ink-soft); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #c3cbd7; border-radius: 8px;
  font: inherit; font-size: .96rem; line-height: 1.7; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,75,158,.12); }
textarea { min-height: 220px; resize: vertical; }
.hint { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.privacy { background: var(--bg-alt); border-radius: 8px; padding: 16px 20px; font-size: .84rem; color: var(--ink-soft); margin-bottom: 30px; }
.btn-submit { border: none; cursor: pointer; font-family: inherit; padding: 16px 56px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   フッター
   ============================================================ */
.site-footer { background: var(--blue-deep); color: #c9d6ea; padding: 64px 0 28px; font-size: .86rem; }
.site-footer a { color: #e3ebf7; }
.site-footer a:hover { color: #fff; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand .logo { font-size: 1.5rem; font-weight: 800; color: #fff; }
.foot-brand p { margin-top: 10px; line-height: 1.8; }
.foot-brand .en { font-size: .74rem; color: #9fb4d6; }
.foot-brand .addr { font-size: .8rem; color: #9fb4d6; }
.foot ul { list-style: none; }
.foot-map ul { columns: 2; column-gap: 20px; }
.foot-map li, .foot-ext li { padding: 5px 0; break-inside: avoid; }
.foot-ext a::after { content: " ↗"; font-size: .8em; opacity: .7; }
.copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; color: #8ea5c9; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; gap: 28px; } }
