/* =========================================================
   情報整理 — Applied Linguistics resource hub
   "The Review" — fine academic press aesthetic.
   Ivory paper · ink-navy display · antique-brass detailing.
   ========================================================= */

:root {
  --paper:    #faf8f4;
  --paper-2:  #ffffff;
  --ink:      #2b2926;
  --ink-soft: #5e5a54;
  --muted:    #8f8a82;
  --navy:     #2b2926;
  --navy-2:   #4a4540;
  --brass:    #c2922f;
  --brass-2:  #d8a94a;
  --rule:     #ece8e0;
  --rule-soft:#f0ece4;

  --display: "Nunito", "Zen Maru Gothic", sans-serif;
  --serif:   "Nunito", "Zen Maru Gothic", sans-serif;
  --jp:      "Zen Maru Gothic", "Nunito", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.66;
  font-feature-settings: "liga" 1, "onum" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  counter-reset: pub;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brass); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- masthead ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 32px; padding: 15px 28px;
}
.brand {
  font-family: var(--display);
  font-weight: 800; font-size: 1.5rem; letter-spacing: .02em;
  color: var(--navy); white-space: nowrap;
}
.brand span { color: var(--navy); font-style: normal; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.nav a {
  font-family: var(--serif); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 46px; border-bottom: 1px solid var(--rule); text-align: center; }
.kicker {
  font-family: var(--serif); font-size: .78rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 22px; display: flex; align-items: center; justify-content: center; gap: 16px;
}
.kicker::before, .kicker::after { content: ""; width: 40px; height: 1px; background: var(--brass); }
.hero h1 {
  font-family: var(--display);
  font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .4em; color: var(--ink);
}
.hero .lede {
  font-size: 1.22rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 72ch; margin: 0 auto; font-style: normal;
  text-wrap: balance; line-break: strict;
}
.hero .jp { font-family: var(--jp); font-style: normal; }

/* ---------- prose / note ---------- */
.section { padding: 44px 0; }
.note {
  font-size: .92rem; color: var(--muted); font-style: normal;
  border-left: 2px solid var(--brass); padding: 6px 0 6px 18px; margin: 0 0 36px;
}
.note b { color: var(--navy); font-style: normal; font-weight: 600; }

/* ---------- publisher sections ---------- */
.pub {
  counter-increment: pub;
  padding: 34px 0; border-top: 1px solid var(--rule-soft);
  position: relative;
}
.pub:first-of-type { border-top: none; padding-top: 8px; }
.pub-name {
  font-family: var(--serif); font-weight: 700;
  font-size: .92rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 20px;
  display: flex; align-items: baseline; gap: 16px;
}
.pub-name::before {
  content: counter(pub, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-style: normal;
  font-size: 1.5rem; letter-spacing: 0; color: var(--brass);
  text-transform: none; line-height: 1;
}
.pub-name::after { content: ""; flex: 1; height: 1px; background: var(--rule); align-self: center; }

.journal-list { list-style: none; margin: 0; padding: 0; counter-reset: j; }
.journal {
  display: grid; grid-template-columns: 2.4em 1fr auto;
  gap: 2px 16px; align-items: baseline;
  padding: 14px 0 14px 6px; border-bottom: 1px solid var(--rule-soft);
  transition: padding-left .18s, background .18s;
}
.journal:last-child { border-bottom: none; }
.journal::before {
  counter-increment: j; content: counter(j);
  font-family: var(--display); font-size: .82rem; font-style: normal;
  color: var(--muted); text-align: right; padding-top: .2em;
}
.journal:hover { padding-left: 14px; }
.journal:hover .j-title { color: var(--brass); }
.j-title { font-size: 1.08rem; font-weight: 700; line-height: 1.34; color: var(--navy); }
.j-meta { grid-column: 2 / 3; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.j-metrics { grid-column: 3; display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; padding-top: .15em; }
.metric {
  font-family: var(--serif); font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border: 1px solid var(--rule); border-radius: 8px;
  white-space: nowrap; color: var(--ink-soft); background: var(--paper-2);
}
.metric b { font-weight: 800; font-style: normal; letter-spacing: 0; }
.metric.i { color: #9a7320; border-color: #e6d4a6; background: #f8f0d9; }
.metric.c b { color: var(--navy); }

/* ---------- home grid ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 6px;
}
.card {
  display: block; position: relative;
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 28px 26px 26px; border-radius: 14px;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 14px 40px rgba(60,50,30,.10);
}
.card .num {
  font-family: var(--display); font-style: normal; font-weight: 800;
  font-size: 1.05rem; letter-spacing: .1em; color: var(--brass);
}
.card h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  margin: 12px 0 8px; color: var(--navy);
}
.card .jp-sub { font-family: var(--jp); }
.card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- placeholder ---------- */
.placeholder {
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 52px 40px; text-align: center; color: var(--muted);
  margin-top: 28px; border-radius: 14px;
}
.placeholder strong { display: block; color: var(--navy); font-family: var(--display); font-size: 1.4rem; margin-bottom: 10px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 64px; padding: 30px 0 60px;
  color: var(--muted); font-size: .8rem; letter-spacing: .04em;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- page-load motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .kicker { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: .04s; }
.hero h1      { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .12s; }
.hero .lede   { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .24s; }
.section .note { animation: rise .7s ease both; animation-delay: .3s; }
.pub:nth-of-type(1) { animation: rise .7s ease both; animation-delay: .36s; }
.pub:nth-of-type(2) { animation: rise .7s ease both; animation-delay: .44s; }
.grid .card { animation: rise .7s ease both; }
.grid .card:nth-child(1){animation-delay:.30s}.grid .card:nth-child(2){animation-delay:.38s}
.grid .card:nth-child(3){animation-delay:.46s}.grid .card:nth-child(4){animation-delay:.54s}
.grid .card:nth-child(5){animation-delay:.62s}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { padding: 12px 20px; }
  .journal { grid-template-columns: 1.9em 1fr; }
  .j-metrics { grid-column: 2; justify-content: flex-start; margin-top: 5px; }
  .hero { padding: 50px 0 34px; }
}

/* ---------- home: お知らせ (news) ---------- */
.news-section { padding-bottom: 8px; }
.block-title {
  font-family: var(--serif); font-weight: 700;
  font-size: .92rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 18px;
  display: flex; align-items: baseline; gap: 16px;
}
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); align-self: center; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: flex; gap: 22px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--rule-soft);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  font-family: var(--display); font-style: italic; color: var(--brass);
  font-size: .92rem; white-space: nowrap; min-width: 6.5em;
}
.news-text { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }
@media (max-width: 640px){
  .news-item { flex-direction: column; gap: 2px; }
  .news-date { min-width: 0; }
}

/* ---------- home: このサイトについて (about) ---------- */
.about-section { padding-bottom: 8px; }
.about-body { font-size: 1.04rem; line-height: 1.9; color: var(--ink-soft); max-width: 70ch; }
.about-body p { margin: 0 0 1.05em; }
.about-body p:last-child { margin-bottom: 0; }
.about-body a { color: var(--brass); }

/* ---------- home: コンパニオン書籍 (book) ---------- */
.book-section { padding-bottom: 8px; }
.book-card {
  display: flex; gap: 26px; align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brass);
  border-radius: 14px;
  padding: 24px 28px;
}
.book-cover {
  width: 130px; height: auto; flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(43,41,38,.16);
  display: block;
}
.book-text { flex: 1; min-width: 0; }
@media (max-width: 560px){
  .book-card { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .book-cover { width: 120px; }
}
.book-title { font-family: var(--display); font-weight: 800; font-size: 1.32rem; color: var(--ink); margin: 0 0 6px; line-height: 1.3; }
.book-sub { font-size: .92rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.book-desc { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; margin: 0; max-width: 62ch; }
