/* ============================================================
   学術研究会サイト テンプレート — style.css
   モチーフ: 「記録票（カルテ）」— ケアと記録の世界観を土台にした
   ラベル×値の構造、バイタルラインの区切り、月日を刻む記録欄。
   ============================================================ */

:root {
  --paper: #F2F4F1;
  --paper-raised: #FFFFFF;
  --ink: #182422;
  --ink-soft: #445048;
  --navy: #1B3A3F;
  --navy-deep: #12282C;
  --coral: #E4572E;
  --gold: #B8902E;
  --line: #C9D0C9;
  --line-soft: #DEE3DE;

  --font-display: "Meiryo", "Meiryo UI", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Meiryo", "Meiryo UI", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "Meiryo", "Meiryo UI", "Hiragino Kaku Gothic ProN", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- layout: 左サイドバー ---------- */
.layout {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}
.site-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--navy);
  color: #EDEFE9;
  padding: 28px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.site-sidebar .brand {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-sidebar .brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 6px;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 3px;
  padding: 6px;
}
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
}
.site-nav a {
  text-decoration: none;
  color: #CBD3CC;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  line-height: 1.5;
}
.site-nav a:hover, .site-nav a.is-active {
  color: #fff;
  border-left-color: var(--coral);
  background: rgba(255,255,255,0.05);
}
.site-main {
  flex: 1;
  min-width: 0;
}

.sidebar-sponsors {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.sidebar-sponsors-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 10px;
}
.sidebar-sponsors ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-sponsors a {
  display: block;
  text-decoration: none;
  color: #CBD3CC;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-left: 2px solid transparent;
}
.sidebar-sponsors a:hover {
  color: #fff;
  border-left-color: var(--gold);
  background: rgba(255,255,255,0.05);
}
.sidebar-sponsors-note {
  margin: 10px 10px 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #8A9690;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .site-sidebar {
    width: auto;
    position: static;
    height: auto;
    padding: 18px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-sidebar .brand { margin-bottom: 16px; padding-bottom: 14px; }
  .site-nav { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .site-nav a { padding: 4px 2px; border-left: none; border-bottom: 1px solid transparent; }
  .site-nav a:hover, .site-nav a.is-active { border-left: none; border-bottom-color: var(--coral); background: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: 0 0 48px;
}
.hero-photo-block {
  position: relative;
  overflow: hidden;
  padding: 36px 0 8px;
  margin-bottom: 20px;
}
.hero-photo-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/tokyo-station-hero.jpg");
  background-size: cover;
  background-position: center 8%;
  z-index: 0;
}
.hero-photo-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(242,244,241,0.55) 0%,
    rgba(242,244,241,0.88) 62%,
    var(--paper) 100%);
  z-index: 1;
}
.hero-photo-block .wrap {
  position: relative;
  z-index: 2;
}
.hero-photo-block .eyebrow,
.hero-photo-block h1,
.hero-photo-block .theme {
  text-shadow: 0 1px 16px var(--paper), 0 1px 4px var(--paper);
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.5;
  margin: 0 0 16px;
  font-weight: 500;
  padding-left: 17px;
}
.hero .theme {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--coral);
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

/* ---------- 記録票（vital-style info card） ---------- */
.chart-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px 30px;
  position: relative;
}
.chart-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--coral) 0, var(--coral) 6px,
    transparent 6px, transparent 12px
  );
}
.chart-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 14px;
  column-gap: 18px;
}
.chart-card dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 3px;
}
.chart-card dd {
  margin: 0;
  font-size: 0.98rem;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 12px;
}
.chart-card dl > div:last-of-type dd { border-bottom: none; padding-bottom: 0; }

/* ---------- ECGディバイダー ---------- */
.vital-divider {
  width: 100%;
  height: 28px;
  margin: 56px 0 40px;
  color: var(--line);
}

/* ---------- セクション ---------- */
.section {
  padding: 8px 0 56px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.section-head .no {
  font-family: var(--font-mono);
  color: var(--coral);
  font-size: 1rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--coral);
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

/* ---------- 更新情報：記録タイムライン ---------- */
.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.record-list li {
  position: relative;
  padding: 0 0 22px 24px;
}
.record-list li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--coral);
}
.record-list time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-right: 10px;
}
.record-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.record-list a:hover { border-bottom-color: var(--ink); }
.tag-new {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #fff;
  background: var(--coral);
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- CTA ---------- */
.cta-block {
  background: var(--navy);
  color: #EDEFE9;
  padding: 40px 36px;
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.cta-block p {
  margin: 0;
  color: #B7C0BA;
  font-size: 0.9rem;
}
.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:hover { background: #cf4a24; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 60px;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.site-footer .org {
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 6px;
}

@media (max-width: 560px) {
  .chart-card dl { grid-template-columns: 1fr; row-gap: 4px; }
  .chart-card dt { padding-top: 10px; }
  .cta-block { flex-direction: column; align-items: flex-start; }
}
