/* ===== PMI ThinkTank トップページ ===== */

:root {
  --text: #1a1a1a;
  --text-muted: #7a7a7a;
  --line: #ececec;
  --accent: #1a5f7a;
  --accent-dark: #0f3d4d;
  --bg: #ffffff;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; }

body {
  /* 英数字は Helvetica Neue、日本語は Noto Sans JP（グリフの無い文字は自動でフォールバック） */
  font-family: "Helvetica Neue", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Site header ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 32px; width: auto; display: block; }
.nav__links { display: flex; gap: 24px; font-size: 15px; flex-wrap: wrap; }
.nav__links a { color: var(--text-muted); padding-bottom: 2px; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--accent); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  padding: 110px 0 120px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 20em;
}
.hero p {
  margin-top: 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40em;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }

/* ===== Section ===== */
.section { padding: 88px 0; }
.section--alt { background: #f7f9fa; }
.section__head { margin-bottom: 40px; }
.section__eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.section__title { font-size: 32px; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; }

/* ===== About ===== */
.about__lead {
  font-size: 19px;
  max-width: 820px;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.about__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.about__item { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.about__item h3 { font-size: 18px; margin-bottom: 8px; }
.about__item p { font-size: 15px; color: #555; }

/* ===== Message ===== */
.message__body p {
  font-size: 17px;
  color: #333;
  margin-bottom: 20px;
  /* 調査・論考・解説のカード列と同じ全幅に揃え、行を右端まで詰める */
  max-width: none;
  line-break: strict;
}
.message__sign {
  margin-top: 56px;
}
.message__sign .role { font-size: 17px; color: var(--text-muted); }
.message__sign .name { font-size: 27px; font-weight: 700; margin-top: 6px; }

/* ===== Latest posts ===== */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.home-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.home-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef3f4; }
.home-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-card__body { padding: 20px; }
.home-card__meta { display: flex; gap: 10px; font-size: 13px; color: var(--text-muted); }
.home-card__cat { color: var(--accent); font-weight: 700; }
.home-card__title { font-size: 17px; font-weight: 700; line-height: 1.5; margin-top: 8px; }
.home-card:hover .home-card__title { color: var(--accent); }
.more-link { display: inline-block; margin-top: 36px; font-size: 16px; font-weight: 700; color: var(--accent); }
.more-link::after { content: " →"; }

/* ===== Sub nav（私たちについて/メンバー/お問い合わせ クラスタ） ===== */
.subnav {
  display: flex;
  gap: 28px;
  margin: 28px 0 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.subnav a { color: var(--text-muted); padding-bottom: 4px; }
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--accent); }

/* ===== Members ===== */
.members__group {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 32px;
}
.members-grid + .members__group { margin-top: 56px; }
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.member-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.member-card__avatar {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.member-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card__body { padding-top: 4px; }
.member-card__name { font-weight: 700; font-size: 17px; }
.member-card__role { font-size: 14px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ===== Projects ===== */
/* 見出し・リード文をカード内テキスト（枠1px＋左パディング36px）と左端で揃える */
#projects .section__head,
#projects .about__lead { padding-left: 37px; padding-right: 37px; max-width: none; }
/* 折り返した各行を右端まで揃える（最終行は除く、両端揃えの標準挙動） */
#projects .about__lead {
  text-align: justify;
  text-justify: inter-character;
}
.projects { display: grid; gap: 24px; margin-top: 8px; }
.project {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 36px;
  background: #fff;
}
.project__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.project__name { font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; }
.project__desc { margin-top: 14px; font-size: 16px; color: #333; }
.project ul { margin: 14px 0 0 22px; font-size: 15px; color: #444; }
.project ul li { margin: 6px 0; }
.project__note { margin-top: 14px; font-size: 15px; color: #333; }
.project__link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--accent); }
.project__link::after { content: " →"; }

/* ===== Contact links ===== */
.contact__links { display: flex; gap: 20px; margin-top: 24px; font-size: 16px; font-weight: 700; }
.contact__links a { color: var(--accent); }
.contact__links a:hover { text-decoration: underline; }

/* ===== Shared footer ===== */
.site-foot {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.85);
  padding: 32px 0;
  margin-top: 8px;
}
.site-foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}
.site-foot__social { display: flex; gap: 22px; }
.site-foot__social a { color: #fff; }
.site-foot__social a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .hero h1 { font-size: 34px; }
  .about__grid, .home-cards { grid-template-columns: 1fr; }
  .nav__inner { flex-wrap: wrap; gap: 8px 20px; }
  .nav__links { gap: 16px; font-size: 14px; }
  .section { padding: 60px 0; }
  .hero { padding: 80px 0 88px; }
  .project { padding: 24px; }
  #projects .section__head,
  #projects .about__lead { padding-left: 25px; padding-right: 25px; }
  .subnav { gap: 16px; font-size: 14px; flex-wrap: wrap; }
  .members-grid { grid-template-columns: 1fr; gap: 28px; }
  .member-card__avatar { width: 84px; height: 84px; font-size: 30px; }
}
