@charset "UTF-8";
/* =========================================================
  site.css — 全ページ共通（色・文字・ヘッダー・フッター・ボタン・モーダル）
  災害数理Lab. リデザイン（2026）
========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  --ink: #0e1a17;          /* 文字・濃い背景 */
  --ink-deep: #0b1714;     /* フッター */
  --ink-section: #0e1d1a;  /* RESEARCH 背景 */
  --paper: #f2f5f0;        /* 明るい背景 */
  --paper-2: #e7ebe5;      /* MEMBERS 背景 */
  --paper-3: #e3e8e1;      /* PICK UP カード */
  --line: #c9d0c8;
  --muted: #5e6b66;
  --muted-light: #9aa6a1;
  --lime: #c6ea6b;         /* アクセント */
  --green: #0f5e4c;        /* 強調文字 */
  --tag: #dde5dc;
  --white: #ffffff;

  --card-1: #c6ea6b;
  --card-2: #a9d6dc;
  --card-3: #4d6764;
  --card-4: #e8b571;
  --card-5: #dcd3ba;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", var(--font-jp);
  --font-display: "Inter Tight", "Inter", var(--font-jp);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.u-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 英字ラベル・見出し ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

/* セクション番号ラベル（01 / ABOUT US など） */
.sec-label { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sec-label__num {
  display: grid; place-items: center; width: 27px; height: 27px;
  background: var(--ink); color: var(--white);
  font-family: var(--font-en); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
}
.sec-label__text {
  writing-mode: vertical-rl;
  font-family: var(--font-en); font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em;
}
.sec-label--on-dark .sec-label__num { background: var(--lime); color: var(--ink); }
.sec-label--on-dark .sec-label__text { color: var(--white); }

/* ---------- ボタン・リンク ---------- */
.btn-lime {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 46px; padding: 0 26px;
  background: var(--lime); color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background-color .2s;
}
.btn-lime:hover { background: #d6f38a; }
.btn-lime--lg { min-height: 66px; padding: 0 44px; font-size: 14px; gap: 48px; }

.arrow-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: 128px; padding: 10px 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px; font-weight: 500; text-decoration: none;
}
.arrow-link .icon-arrow { transition: transform .2s; }
.arrow-link:hover .icon-arrow { transform: translateX(4px); }
.icon-arrow { flex: none; width: 14px; height: 14px; }

.tag {
  display: inline-block; padding: 4px 9px;
  background: #1c2f2b; color: var(--white);
  font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.4;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); padding: 0 clamp(20px, 3.8vw, 60px);
}
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-logo__mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--white); flex: none; }
.site-logo__mark img { width: 34px; height: auto; }
.site-logo__name { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.site-logo__sub { display: block; font-family: var(--font-en); font-size: 8.5px; font-weight: 600; letter-spacing: 0.14em; opacity: .75; }

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav__list { display: flex; gap: 34px; }
.site-nav__list a { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-decoration: none; }
.site-nav__list a:hover { color: var(--lime); }
.site-nav .btn-lime { min-width: 150px; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .12em; }

.menu-toggle {
  display: none; width: 46px; height: 46px; padding: 0; background: none;
  border: 1px solid rgba(255, 255, 255, .35); cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 12px; width: 20px; height: 1.5px; background: currentColor; content: "";
  transition: transform .25s, opacity .25s;
}
.menu-toggle span { top: 22px; }
.menu-toggle span::before { left: 0; top: -6px; }
.menu-toggle span::after { left: 0; top: 6px; }
.is-menu-open .menu-toggle span { background: transparent; }
.is-menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 40px;
    background: rgba(11, 23, 20, .97);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .is-menu-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: center; gap: 26px; }
  .site-nav__list a { font-size: 18px; }
  .is-menu-open { overflow: hidden; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--ink-deep); color: var(--white); padding: 84px 0 64px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__brand { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
.site-footer__brand .site-logo__mark { width: 47px; height: 47px; }
.site-footer__name { font-size: 22px; font-weight: 700; }
.site-footer__address { grid-column: 2; margin-top: 10px; font-size: 11px; line-height: 1.8; color: var(--muted-light); }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 18px 60px; }
.site-footer__nav a { font-size: 12px; text-decoration: none; color: #d8dfdb; }
.site-footer__nav a:hover { color: var(--lime); }
.site-footer__copy { margin-top: 56px; font-family: var(--font-en); font-size: 10px; letter-spacing: .08em; color: var(--muted-light); }

/* ---------- 動画モーダル ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(5, 12, 10, .86);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal__dialog { position: relative; width: min(1000px, 100%); }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute; right: 0; top: -52px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: var(--white); cursor: pointer;
  font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .14em;
}
.video-modal__close svg { width: 22px; height: 22px; }
body.is-modal-open { overflow: hidden; }


/* =========================================================
  共通コンポーネント（トップ・下層ページで共用）
========================================================= */
/* ---------- 共通：セクションの骨組み（番号ラベル＋本文） ---------- */
.home-section { padding: clamp(96px, 12vw, 190px) 0; }
.section-grid {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  column-gap: clamp(28px, 7vw, 104px);
}
.section-head__eyebrow { margin-bottom: 18px; }


/* ---------- メンバーカード ---------- */
.member-card__photo { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #d5dbd4; }
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.member-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(10, 22, 19, .72)); opacity: 0; transition: opacity .3s;
}
.member-card__view {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--white); font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: .12em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.member-card__view .icon-arrow { color: var(--lime); }
.member-card:hover .member-card__photo::after,
.member-card:focus-visible .member-card__photo::after,
.member-card:hover .member-card__view,
.member-card:focus-visible .member-card__view { opacity: 1; transform: none; }
.member-card:hover .member-card__photo img { transform: scale(1.04); }
.member-card__meta { display: grid; align-items: start; grid-template-columns: 38px 1fr; padding-top: 16px; }
.member-card__num { font-family: var(--font-en); font-size: 9px; color: var(--muted); padding-top: 4px; }
.member-card__name { font-size: 17px; font-weight: 700; line-height: 1.5; }
.member-card__role { grid-column: 2; margin-top: 6px; font-family: var(--font-en); font-size: 9px; letter-spacing: .08em; color: var(--muted); }

/* ---------- メンバーカード（ボタン化）とプロフィール ---------- */
.member-card { padding: 0; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
.member-card:focus-visible { outline-offset: 4px; }

.profile-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: rgba(5, 12, 10, .72);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.profile-modal.is-open { opacity: 1; visibility: visible; }
.profile-modal__dialog {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--paper); transform: translateY(12px); transition: transform .3s;
}
.profile-modal.is-open .profile-modal__dialog { transform: none; }
.profile-modal__close {
  position: absolute; right: 22px; top: 22px; z-index: 2;
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--paper); border: 1px solid #9aa6a1; cursor: pointer; color: var(--ink);
}
.profile-modal__close:hover { background: var(--ink); color: var(--white); }
.profile-modal__close svg { width: 22px; height: 22px; }

.profile { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); min-height: 560px; }
.profile__photo { position: relative; background: #d5dbd4; }
.profile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile__cat {
  position: absolute; left: 28px; bottom: 22px;
  color: var(--white); font-family: var(--font-en); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.profile__body { padding: 56px 64px 56px 64px; display: flex; flex-direction: column; }
.profile__role { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.profile__name { margin: 16px 0 40px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.3; padding-right: 56px; }
.profile__block { padding: 26px 0; border-top: 1px solid var(--line); }
.profile__label { margin-bottom: 14px; font-family: var(--font-en); font-size: 8.5px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.profile__theme { font-size: 15px; font-weight: 700; line-height: 1.8; }
.profile__text p { font-size: 12.5px; line-height: 2; color: #44514c; }
.profile__text p + p { margin-top: 10px; }
.profile__facts { display: grid; gap: 8px; margin: 0; }
.profile__facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; font-size: 12.5px; line-height: 1.8; }
.profile__facts dt { color: var(--muted); }
.profile__facts dd { margin: 0; color: #2b3833; }
.profile__link {
  display: flex; justify-content: space-between; align-items: center; margin-top: auto;
  min-height: 52px; padding: 0 20px; background: var(--ink); color: var(--white);
  font-family: var(--font-en); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-decoration: none;
}
.profile__block + .profile__link, .profile__name + .profile__link { margin-top: 28px; }
.profile__link .icon-arrow { color: var(--lime); transition: transform .2s; }
.profile__link:hover .icon-arrow { transform: translateX(4px); }

@media (max-width: 760px) {
  .profile-modal { padding: 0; align-items: end; }
  .profile-modal__dialog { max-height: 92vh; }
  .profile { grid-template-columns: 1fr; min-height: 0; }
  .profile__photo { aspect-ratio: 4 / 3; }
  .profile__body { padding: 32px 22px 36px; }
  .profile__name { margin-bottom: 28px; padding-right: 0; }
  .profile-modal__close { right: 14px; top: 14px; }
}

/* 写真が無いメンバー（ロゴを表示） */
.member-card__photo img.is-noimage, .profile__photo img.is-noimage { object-fit: contain; padding: 30%; background: #d5dbd4; mix-blend-mode: multiply; }
.profile__photo img.is-noimage { padding: 22%; }

/* ---------- JOIN ---------- */
.join {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  padding: clamp(48px, 6vw, 56px) 0 clamp(96px, 10vw, 112px);
  background: #0c1916 url("../images/SGHP/hero-aerial.jpg") center / cover no-repeat;
}
.join::before { content: ""; position: absolute; inset: 0; background: rgba(8, 17, 15, .68); }
.join > * { position: relative; }
.join__eyebrow { font-family: var(--font-en); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--lime); }
.join__title { margin: 28px 0 40px; font-size: clamp(32px, 4.6vw, 64px); font-weight: 700; line-height: 1.5; }
.join__text { margin-bottom: 52px; font-size: 12.5px; line-height: 2.2; color: rgba(255, 255, 255, .78); }

@media (max-width: 640px) {
  .section-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .sec-label { flex-direction: row; }
  .sec-label__text { writing-mode: horizontal-tb; }
  .btn-lime--lg { width: 100%; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
