@charset "utf-8";

:root {
  --bg: #fbf6e2;
  --box: #efe9d4;
  --red: #891309;
  --ink: #111;
  --text: #2b2924;
  --line: #2b2924;
  --serif-en: "Old Standard TT", "Times New Roman", serif;
  --serif-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --inner: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: normal; }

.inner {
  max-width: var(--inner);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  background: url("../images/bg-header.jpg") left top / auto 100% repeat-x;
  border-top: 3px solid var(--red);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 0 4px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 72px; }
.brand-title {
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: .02em;
}
.brand-sub {
  display: block;
  font-size: 15px;
  letter-spacing: .03em;
}
.grant-no {
  margin-left: auto;
  align-self: flex-end;
  font-size: 12.5px;
  padding-bottom: 2px;
  color: var(--ink);
}

/* ---------- Global nav ---------- */
.gnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-top: 3px double var(--line);
  border-bottom: 1px solid var(--line);
}
.gnav ul {
  display: flex;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.gnav li { flex: 0 0 auto; }
.gnav li:nth-child(1) { width: 203px; }
.gnav li:nth-child(2) { width: 212px; }
.gnav li:nth-child(3) { width: 237px; }
.gnav li:nth-child(4) { width: 160px; }
.gnav li:nth-child(5) { flex: 1 1 auto; }
.gnav a {
  display: block;
  position: relative;
  padding: 8px 4px 9px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
  transition: color .2s;
}
.gnav li + li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 12px;
  border-left: 1px solid var(--line);
}
.gnav li:first-child a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 12px;
  border-left: 1px solid var(--line);
}
.gnav li:last-child a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 12px;
  border-right: 1px solid var(--line);
}
.gnav .ja { display: block; font-size: 16px; font-family: var(--sans); }
.gnav .en { display: block; font-size: 16px; font-family: var(--serif-en); }
.gnav a:hover,
.gnav a.is-current { color: var(--red); }
.gnav a:hover { box-shadow: inset 0 -3px 0 var(--red); }
.gnav a.is-current { box-shadow: inset 0 -3px 0 var(--red); }

/* ---------- Hero ---------- */
.hero img { display: block; width: 100%; }
.hero-caption {
  padding: 22px 0 14px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
}
.hero-caption rt { font-size: 9px; }

/* ---------- Intro (related links) ---------- */
.intro {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 0 40px;
  background: var(--box);
  margin-top: 20px;
}
.related-title {
  padding: 12px 16px 4px;
  color: var(--red);
  line-height: 1.15;
}
.related-title .ja { display: block; font-size: 18px; }
.related-title .en { display: block; font-family: var(--serif-en); font-size: 15px; }
.related-links { list-style: none; margin: 0; padding: 0; background: var(--red); }
.related-links a {
  display: block;
  padding: 10px 16px 9px;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  border-top: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.related-links li:first-child a { border-top: 0; }
.related-links a:hover { background: #a3241a; }
.related-links .ja { display: block; font-size: 19px; }
.related-links .en { display: block; font-family: var(--serif-en); font-size: 14.5px; }
.intro-text {
  padding: 30px 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}
.intro-text .ja { font-size: 14.5px; line-height: 2; font-weight: 500; }
.intro-text .ornament { display: block; margin: 6px auto 22px; width: 152px; }
.intro-text .en { font-family: Arial, Helvetica, sans-serif; font-size: 15.5px; line-height: 1.65; }
.intro-map { padding: 40px 0 0; }
.intro-map img { display: block; width: 280px; }

/* ---------- Sections ---------- */
.section { padding-top: 70px; }
.sec-title { margin-bottom: 26px; }
.sec-title .en {
  display: block;
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.sec-title .ja {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  font-family: var(--serif-ja);
  font-size: 23px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.sec-title .ja::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 22px;
  margin-right: -8px;
  background: linear-gradient(var(--red) 0 40%, transparent 40% 60%, var(--red) 60% 100%);
}
.sec-title .ja::after {
  content: "";
  flex: 1 1 auto;
  border-top: 2px solid var(--ink);
}

.body-ja {
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink);
  text-align: justify;
}
.body-ja p { margin-bottom: 1.1em; }
.body-en {
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  hyphens: auto;
  -webkit-hyphens: auto;
}
.body-en p { text-indent: 1.1em; margin-bottom: 1.4em; }
.body-en p.noindent { text-indent: 0; }
.body-ja u, .lead u { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.divider {
  display: block;
  margin: 40px auto 44px;
  width: 530px;
}

.box {
  background: var(--box);
  padding: 36px 40px 30px;
  margin: 26px 0 0;
}
.box-title {
  text-align: center;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--ink);
}
.box-title.en {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 27px;
}
.box p {
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
}
.box .body-en p { font-size: 16px; }

/* ---------- Four components grid ---------- */
.lead { font-size: 15.5px; line-height: 2; color: var(--ink); margin-bottom: 52px; }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 40px;
  margin-bottom: 50px;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 8px;
  border-top: 4px double var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 18px;
}
.card-head .ja { font-size: 21px; font-weight: 600; color: var(--ink); }
.card-head .en { font-family: var(--serif-en); font-size: 28px; color: var(--ink); }
.num {
  font-family: var(--serif-en);
  font-weight: 700;
  color: var(--red);
  font-size: 46px;
  line-height: 1;
}
.num.small { font-size: 22px; line-height: 1; margin-right: 1px; }
.card p { font-size: 15.5px; line-height: 2.05; color: var(--ink); }
.card .en-body { font-size: 16.5px; line-height: 2; }
.card .diagram { margin-top: 24px; width: 540px; }

/* ---------- Team ---------- */
.team-title {
  text-align: center;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: 23px;
  margin: 60px 0 16px;
  color: var(--ink);
}
.team-title.en {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 30px;
}
.team-title.en::before,
.team-title.en::after,
.sub-title::after {
  content: "\2026";
  color: var(--red);
  font-weight: 700;
  margin: 0 8px;
}
.member-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 18px;
  margin: 0;
}
.member-list dt,
.member-list dd {
  margin: 0;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.member-list.en { grid-template-columns: 188px 1fr; gap: 0 8px; }
.member-list.en dt {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 18px;
  padding: 20px 8px 18px;
}
.member-list.en dd {
  font-size: 17px;
  line-height: 1.25;
  padding: 20px 0 18px 11px;
  display: flex;
  align-items: center;
}

/* ---------- Framework ---------- */
.schedule-title {
  text-align: center;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: 23px;
  margin: 46px 0 10px;
  color: var(--ink);
}
.schedule { display: block; margin: 0 auto 60px; width: 748px; }

.steps { padding-left: 0; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  margin-bottom: 50px;
}
.step > .num { padding-left: 16px; padding-top: 6px; font-size: 46px; }
.step .step-title {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 29px;
  line-height: 1.3;
  color: var(--ink);
  margin: 8px 0 4px;
}
.step .body-ja p { line-height: 2.25; margin-bottom: .6em; }

.scope {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0 22px;
  align-items: start;
  background: var(--box);
  padding: 22px 30px 22px 20px;
  margin-top: 14px;
}
.scope-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
}
.scope-badge::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -4px;
  border-left: 18px solid transparent;
  border-top: 14px solid #000;
}
.scope-badge.en { font-family: var(--serif-en); font-size: 16px; }
.scope p { font-size: 16px; line-height: 1.65; margin: 0 0 .9em; color: var(--ink); }
.scope p:last-child { margin-bottom: 0; }
.scope .en-text { font-size: 17px; line-height: 1.55; }

/* ---------- Role table ---------- */
.roles {
  width: 100%;
  border-collapse: separate;
  border-spacing: 20px 0;
  margin: 0 -20px 30px;
  width: calc(100% + 40px);
  table-layout: fixed;
  color: var(--ink);
}
.roles th,
.roles td {
  border-bottom: 1px solid var(--ink);
  vertical-align: middle;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 18px 0 18px;
  text-align: left;
  font-weight: 500;
}
.roles col.c1 { width: 200px; }
.roles thead th {
  border-top: 2px solid var(--ink);
  text-align: center;
  font-weight: 500;
  padding: 10px 0 10px;
}
.roles thead th.corner { position: relative; height: 70px; padding: 0; }
.roles thead th.corner .t { position: absolute; right: 0; top: 4px; }
.roles thead th.corner .t::after { content: "\25B6"; font-size: 9px; margin-left: 4px; vertical-align: middle; }
.roles thead th.corner .b { position: absolute; left: 0; bottom: 6px; }
.roles thead th.corner .b::before { content: "\25BC"; font-size: 9px; margin-right: 2px; vertical-align: middle; }
.roles tbody th { font-weight: 600; }
.roles .collab { font-size: 15px; line-height: 1.6; padding: 26px 0 30px; }
.roles .indent { padding-left: 1.6em; display: inline-block; }

.sub-title {
  text-align: center;
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: 27px;
  margin: 50px 0 14px;
  color: var(--ink);
  line-height: 1.2;
}
.sub-title::before {
  content: "\2026";
  color: var(--red);
  margin: 0 8px;
}
.sub-title.dots-under::before,
.sub-title.dots-under::after { content: none; }
.sub-title.dots-under span::after {
  content: "\2026";
  display: block;
  color: var(--red);
  line-height: .5;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 70px;
  background: url("../images/bg-header.jpg") left top / auto 120px repeat;
  padding: 0 26px;
}
.site-footer .frame {
  border-top: 3px double var(--ink);
  border-bottom: 5px double var(--ink);
  padding: 28px 0 22px;
}
.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.footer-brand img { width: 96px; }
.footer-brand .grant { font-size: 13px; line-height: 1.4; }
.footer-brand .title { font-family: var(--serif-ja); font-weight: 600; font-size: 25px; line-height: 1.35; }
.footer-brand .sub { font-family: var(--serif-ja); font-size: 17px; line-height: 1.3; }
.copyright {
  text-align: center;
  font-family: var(--serif-en);
  font-size: 14px;
  padding: 6px 0 10px;
  margin: 0;
  color: var(--ink);
}

/* ---------- Page top ---------- */
.pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; }
.pagetop img { width: 40px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .inner, .gnav ul { padding-left: 20px; padding-right: 20px; }
  .gnav ul { padding: 0; }
  .gnav li { width: auto !important; flex: 1 1 auto; }
  .gnav .ja, .gnav .en { font-size: 14px; }
}

@media (max-width: 900px) {
  body { font-size: 14px; }
  .site-header .inner { flex-wrap: wrap; padding: 4px 16px; }
  .brand img { width: 56px; }
  .brand-title { font-size: 18px; }
  .brand-sub { font-size: 12px; }
  .grant-no { width: 100%; text-align: right; font-size: 11px; }

  .gnav ul { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 8px; }
  .gnav li { flex: 0 0 auto; }
  .gnav a { padding: 8px 12px; white-space: nowrap; }
  .gnav .ja { font-size: 13px; }
  .gnav .en { font-size: 12px; }

  .inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 0 !important; }

  .intro { grid-template-columns: 1fr; gap: 0; }
  .intro-text { padding: 24px 20px 10px; }
  .intro-map { padding: 0 20px 24px; }
  .intro-map img { margin: 0 auto; width: 100%; max-width: 280px; }

  .sec-title .en { font-size: 36px; }
  .sec-title .ja { font-size: 18px; }
  .divider { width: 80%; }

  .cards { grid-template-columns: 1fr; }
  .card .diagram { width: 100%; }
  .card-head .en { font-size: 22px; }

  .box { padding: 24px 18px 20px; }
  .box-title.en { font-size: 22px; }

  .member-list { grid-template-columns: 100px 1fr; }
  .member-list.en { grid-template-columns: 1fr; }
  .member-list.en dt { border-bottom: 0; padding: 14px 0 0; }
  .member-list.en dd { padding: 2px 0 14px; font-size: 15px; }

  .schedule { width: 100%; }
  .step { grid-template-columns: 44px 1fr; }
  .step > .num { padding-left: 0; font-size: 36px; }
  .step .step-title { font-size: 22px; }
  .scope { grid-template-columns: 56px 1fr; padding: 16px; gap: 0 14px; }
  .scope-badge { width: 56px; height: 56px; font-size: 14px; }
  .scope p, .scope .en-text { font-size: 14.5px; }

  .roles-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .roles { min-width: 760px; }

  .footer-brand { flex-direction: column; text-align: center; }
  .footer-brand .title { font-size: 19px; }
  .footer-brand .sub { font-size: 13px; }
  .site-footer { padding: 0 12px; }
}
