/* Timeline evidence UI */

.home-page,
.home-page main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-page {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #15191c;
  --muted: #636a70;
  --line: #d8d5cd;
  --line-dark: #2d3338;
  --accent: #d94b2b;
  --accent-soft: #fff0eb;
  --soft: #f3f1eb;
  --front-navy: #0b2d4a;
  --front-navy-dark: #08233c;
  --front-ink: #122235;
  --front-muted: #5f6d7a;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

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

.home-page a {
  color: inherit;
}

.portfolio-front-page {
  --portfolio-page-max: 1251px;
  --front-navy: #0b2d4a;
  --front-navy-dark: #08233c;
  --front-ink: #122235;
  --front-muted: #5f6d7a;
  min-height: 100vh;
  color: var(--front-ink);
  padding-top: 48px;      
}

.portfolio-front-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  align-items: center;
  width: min(100%, var(--portfolio-page-max));
  min-height: 430px;
  margin-inline: auto;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 50%,
      rgba(246, 249, 252, 0.28) 74%
    ),
    #fff;
}

.portfolio-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  width: 100%;
  padding: 52px 32px;
}

.portfolio-hero-copy h1 {
  margin: 0;
  color: var(--front-navy-dark);
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.portfolio-hero-lead {
  margin: 0;
  color: var(--front-ink);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.55;
}

.portfolio-hero-description {
  max-width: 640px;
  margin: 0;
  color: var(--front-muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 2;
}

.portfolio-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 430px;
  height: 430px;
}

.portfolio-hero-media::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0) 34%
    ),
    radial-gradient(
      circle at 18% 22%,
      rgba(255, 255, 255, 0.72),
      transparent 34%
    );
  content: "";
  z-index: 1;
}

.portfolio-hero-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 48% 8%;
  filter: saturate(0.88) contrast(0.98);
}

.portfolio-database-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  width: min(100%, var(--portfolio-page-max));
  min-height: 100vh;
  margin-inline: auto;
}

.portfolio-database-main {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 48px 0 48px 40px;
}

.portfolio-database-main .record-section {
  background: #fff;
}

.portfolio-database-main .record-table {
  border-color: #d6dee8;
}

.portfolio-database-main .record-table-head {
  background: #eef4f9;
}

.portfolio-database-main .record-row:hover {
  background: #f4f9fd;
  transform: none;
}

.portfolio-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #111;
  background: #fff;
  font-size: 17px;
}

.partner-nav nav {
  display: flex;
  gap: 24px;
}

.partner-nav nav a,
.nav-cta {
  color: #31363a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #222;
  background: #fff;
}

.timeline-page {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(21, 25, 28, 0.08) 1px, transparent 1px) 0 0 /
      72px 72px,
    var(--paper);
}

.timeline-admin-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(21, 25, 28, 0.08) 1px, transparent 1px) 0 0 /
      72px 72px,
    var(--paper);
}

.timeline-admin-content {
  max-width: 1180px;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-hero-actions a:hover,
.admin-hero-actions a[aria-current="page"] {
  border-color: var(--front-navy-dark);
  background: var(--front-navy-dark);
  color: #fff;
}

.timeline-sidebar {
  margin-top: 48px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: #fff;
}

.timeline-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px;
}

.timeline-title {
  display: grid;
  gap: 6px;
  margin-bottom: 23px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-title span,
.blueprint-kicker {
  color: var(--front-navy-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-title b {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.timeline-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.timeline-all small {
  color: var(--muted);
  font-size: 11px;
}

.timeline-year-list {
  --timeline-axis-color: var(--front-navy-dark);
  --timeline-axis-x: 76px;
  position: relative;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-year-list::before {
  position: absolute;
  top: 23px;
  bottom: 24px;
  left: var(--timeline-axis-x);
  width: 2px;
  background: var(--timeline-axis-color);
  content: "";
  transform: translateX(-50%);
}

.timeline-year-link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px 36px 1fr;
  align-items: center;
  min-height: 44px;
  color: #20262b;
  text-decoration: none;
}

.timeline-year {
  font-size: 15px;
  font-weight: 800;
}

.timeline-dot {
  justify-self: center;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 4px solid rgba(8, 35, 60, 0.46);
  border-radius: 50%;
  background: var(--front-bg, #fbfaf6);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;  
}

.timeline-count {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.timeline-count em {
  color: var(--front-navy-dark);
  font-style: normal;
}

.timeline-year-link:hover .timeline-dot {
  border-color: var(--front-navy-dark);
  transform: scale(1.25);
}

.timeline-year-link:hover .timeline-year {
  color: var(--front-navy-dark);
}

.timeline-year-link.is-active .timeline-dot,
.timeline-year-link.is-current-item .timeline-dot {
  border-color: var(--front-navy-dark);
  background: var(--front-bg, #fbfaf6);
  box-shadow: 0 0 0 10px rgba(8, 35, 60, 0.14);
  transform: scale(1.2);  
}

.timeline-year-link.is-active .timeline-year,
.timeline-year-link.is-current-item .timeline-year {
  color: var(--front-navy-dark);
}

.timeline-content {
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.record-detail-page .timeline-content {
  padding-top: 48px;
}

.evidence-hero,
.record-section,
.source-section,
.detail-panel > section,
.detail-hero {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.9);
}

.record-section {
  border: none;
}

.evidence-hero {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 46px;
}

.evidence-hero::before,
.evidence-hero::after,
.section-heading-line::after {
  position: absolute;
  background: var(--line);
  content: "";
}

.evidence-hero::before {
  top: 18px;
  right: 18px;
  left: 18px;
  height: 1px;
}

.evidence-hero::after {
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: 1px;
}

.evidence-hero h1,
.detail-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #050607;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.18;
  letter-spacing: 0;
}

.evidence-hero p:not(.blueprint-kicker),
.detail-hero p:not(.current-position) {
  max-width: 760px;
  margin: 0;
  color: #3f464b;
  font-size: 15px;
  font-weight: 700;
  line-height: 2;
}

.blueprint-rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 680px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.blueprint-rule b {
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--line-dark);
  text-indent: -999px;
}

.record-section,
.source-section {
  padding: 30px;
}

.section-heading-line {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading-line h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
}

.section-heading-line p:not(.blueprint-kicker) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.section-heading-line::after {
  right: 0;
  bottom: -1px;
  width: 120px;
  height: 3px;
  background: var(--front-navy-dark);
}

.record-table,
.draft-table {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.record-table-head,
.record-row {
  display: grid;
  grid-template-columns: 140px 130px minmax(220px, 0.9fr) minmax(300px, 1.2fr);
}

.record-table-head,
.draft-table-head {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.record-table-head span,
.record-row > *,
.draft-table-head span,
.draft-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.record-table-head span:last-child,
.record-row > *:last-child,
.draft-table-head span:last-child,
.draft-row > *:last-child {
  border-right: 0;
}

.record-row {
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.record-row:first-child { 
  border-top: 0;
}
.record-row:hover {
  background: var(--accent-soft);
  transform: translateX(4px);
}

.record-row time,
.record-row strong,
.record-row span {
  font-size: 13px;
  line-height: 1.8;
}

.record-row time {
  color: var(--muted);
  font-weight: 900;
}

.record-row strong {
  color: #090b0d;
  font-size: 15px;
}

.record-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid currentColor;
  color: var(--front-navy-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.category-learning {
  color: #b94727;
}

.empty-records {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px dashed var(--line-dark);
  background: #fff;
}

.empty-records p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.empty-records a,
.text-link,
.detail-actions a,
.detail-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.empty-records a:hover,
.text-link:hover,
.detail-actions a:hover,
.detail-breadcrumb a:hover {
  border-color: var(--front-navy-dark);
  background: var(--front-navy-dark);
  color: #fff;
}

.source-grid {
  display: grid;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 150px;
  border-bottom: 1px solid var(--line);
}

.source-row:last-child {
  border-bottom: 0;
}

.source-row > * {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.source-row > *:last-child {
  border-right: 0;
}

.source-row span {
  font-weight: 900;
}

.source-row small {
  color: var(--muted);
  font-weight: 800;
}

.text-link {
  width: fit-content;
  margin-top: 18px;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-hero {
  display: grid;
  gap: 16px;
  padding: 38px;
}

.current-position {
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  background: var(--front-navy-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
}

.detail-grid div {
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.detail-grid div:last-child {
  border-right: 0;
}

.detail-grid span,
.metadata-section dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-grid b,
.metadata-section dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.detail-body,
.metadata-section,
.related-section {
  margin-top: 18px;
  padding: 28px;
}

.detail-body h2,
.metadata-section h2,
.related-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-body p:not(.blueprint-kicker) {
  margin: 0;
  color: #343a40;
  font-size: 15px;
  font-weight: 700;
  line-height: 2;
}

.tag-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  border: 0;
  background: transparent;
}

.tag-section span {
  padding: 8px 11px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: #2d3338;
  font-size: 12px;
  font-weight: 900;
}

.metadata-section dl {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
}

.metadata-section dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
}

.metadata-section dl div:last-child {
  border-bottom: 0;
}

.metadata-section dt,
.metadata-section dd {
  padding: 14px;
}

.metadata-section dt {
  border-right: 1px solid var(--line);
  background: var(--soft);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.related-list {
  display: grid;
  border: 1px solid var(--line);
}

.related-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.related-list a:last-child {
  border-bottom: 0;
}

.related-list a:hover {
  background: var(--accent-soft);
}

.related-list time {
  color: var(--muted);
}

.compact-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.draft-table-head,
.draft-row {
  display: grid;
  grid-template-columns: 170px 110px minmax(220px, 1fr) 120px 150px 110px;
}

.draft-row {
  border-top: 1px solid var(--line);
}

.draft-row > * {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
}

.draft-row a {
  color: var(--front-navy-dark);
  font-weight: 900;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.summary-grid div {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 18px;
  background: #fff;
}

.summary-grid span,
.reason-summary h3,
.draft-card header p,
.draft-fields span,
.draft-reasons span,
.draft-meta span,
.draft-url span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.summary-grid b {
  color: var(--front-navy-dark);
  font-size: 32px;
  line-height: 1;
}

.reason-summary {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.reason-summary h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
}

.reason-summary ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.reason-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #fff;
}

.reason-summary li b {
  color: var(--front-navy-dark);
}

.reason-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-status-table {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.source-status-head,
.source-status-row {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr) minmax(
      180px,
      1.1fr
    ) 70px 80px 70px 90px 80px;
}

.source-status-head {
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.source-status-head span,
.source-status-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.source-status-head span:last-child,
.source-status-row > *:last-child {
  border-right: 0;
}

.source-status-row {
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

.source-status-row strong {
  font-size: 12px;
}

.draft-card-list {
  display: grid;
  gap: 14px;
}

.draft-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.draft-card header {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.draft-card header p,
.draft-card header h3,
.draft-reasons p,
.draft-meta p,
.draft-url p {
  margin: 0;
}

.draft-card header h3 {
  font-size: 19px;
  line-height: 1.5;
}

.draft-fields {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.draft-fields div {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 12px;
  background: var(--paper);
}

.draft-fields b {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.draft-reasons,
.draft-meta,
.draft-url {
  display: grid;
  gap: 8px;
}

.draft-reasons p,
.draft-meta p,
.draft-url p,
.draft-url a {
  color: #30363b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.draft-reasons p {
  color: var(--front-navy-dark);
}

.draft-url a {
  color: var(--front-navy-dark);
}

@media (max-width: 980px) {
  .portfolio-front-hero {
    grid-template-columns: 1fr;
  }

  .portfolio-hero-copy {
    padding: 42px 32px 26px;
  }

  .portfolio-hero-media {
    min-height: 260px;
    height: 260px;
  }

  .portfolio-hero-media img {
    min-height: 260px;
    object-position: 50% 0;
  }

  .portfolio-database-layout {
    display: block;
  }

  .portfolio-database-main {
    width: 100%;
    margin: 0;
    padding: 24px 14px 56px;
  }

  .timeline-page {
    display: block;
  }

  .timeline-sidebar {
    position: sticky;
    z-index: 10;
    top: 0;
    height: auto;
    border-right: 0;
  }

  .timeline-sidebar-inner {
    display: grid;
    gap: 12px;
    height: auto;
    padding: 14px 16px 16px;
  }

  .timeline-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .timeline-all {
    width: fit-content;
    margin-bottom: 0;
  }

  .timeline-year-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 4px 6px;
    position: relative;
  }

  .timeline-year-list::before {
    content: "";
    position: absolute;
    left: 65px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--front-navy-dark);
    opacity: 0.75;
  }

  .timeline-year-list li {
    flex: 0 0 auto;
  }

  .timeline-year-link {
    position: relative;
    display: grid;
    grid-template-columns: 56px 18px 1fr;
    align-items: center;
    gap: 10px;
  }

  .timeline-dot {
    margin-left: 0;
  }

  .timeline-count {
    justify-content: center;
    font-size: 11px;
  }

  .timeline-content {
    width: min(100% - 28px, 820px);
    padding: 24px 0 56px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-grid div:last-child {
    border-bottom: 0;
  }

  .record-table-head,
  .draft-table-head,
  .source-status-head {
    display: none;
  }

  .record-row,
  .draft-row,
  .source-status-row {
    grid-template-columns: 1fr;
  }

  .record-row > *,
  .draft-row > *,
  .source-status-row > * {
    border-right: 0;
  }

  .record-row > *::before,
  .draft-row > *::before,
  .source-status-row > *::before {
    flex: 0 0 110px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .record-row time::before {
    content: "時期";
  }

  .record-row span:nth-of-type(1)::before {
    content: "カテゴリー";
  }

  .record-row strong::before {
    content: "タイトル";
  }

  .record-row span:nth-of-type(2)::before {
    content: "詳細";
  }

  .draft-row span:nth-child(1)::before {
    content: "sourceFile";
  }

  .draft-row span:nth-child(2)::before {
    content: "category";
  }

  .draft-row strong::before {
    content: "title";
  }

  .draft-row span:nth-child(4)::before {
    content: "date";
  }

  .draft-row span:nth-child(5)::before {
    content: "状態";
  }

  .draft-row span:nth-child(6)::before {
    content: "sourceUrl";
  }

  .source-status-row span:nth-child(1)::before {
    content: "sourceType";
  }

  .source-status-row strong::before {
    content: "sourceFile";
    flex: 0 0 110px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .source-status-row span:nth-child(3)::before {
    content: "状態";
  }

  .source-status-row span:nth-child(4)::before {
    content: "items";
  }

  .source-status-row span:nth-child(5)::before {
    content: "timeline";
  }

  .source-status-row span:nth-child(6)::before {
    content: "draft";
  }

  .source-status-row span:nth-child(7)::before {
    content: "date";
  }

  .source-status-row span:nth-child(8)::before {
    content: "review";
  }

  .source-row,
  .metadata-section dl div,
  .related-list a {
    grid-template-columns: 1fr;
  }

  .source-row > *,
  .metadata-section dt {
    border-right: 0;
  }

  .summary-grid,
  .draft-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .portfolio-front-hero {
    min-height: 0;
  }

  .portfolio-hero-copy {
    gap: 14px;
    padding: 34px 24px 22px;
  }

  .portfolio-hero-copy h1 {
    font-size: 46px;
  }

  .portfolio-hero-lead {
    font-size: 20px;
  }

  .portfolio-hero-description {
    font-size: 14px;
  }

  .portfolio-nav {
    width: calc(100% - 28px);
  }

  .partner-nav nav {
    display: none;
  }

  .evidence-hero,
  .detail-hero,
  .record-section,
  .source-section,
  .detail-body,
  .metadata-section,
  .related-section {
    padding: 22px;
  }

  .evidence-hero h1,
  .detail-hero h1 {
    font-size: 34px;
  }

  .blueprint-rule {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .blueprint-rule b {
    width: 100%;
  }

  .empty-records {
    display: grid;
  }

  .summary-grid,
  .draft-fields {
    grid-template-columns: 1fr;
  }
}

/* Portfolio timeline mockup */

.home-page {
  --mock-page: #f4f8fc;
  --mock-surface: #ffffff;
  --mock-ink: #071f3a;
  --mock-text: #172234;
  --mock-muted: #607184;
  --mock-line: #d9e4ef;
  --mock-line-strong: #c8d6e4;
  --mock-blue: #1f5dbb;
  --mock-red: #d9553f;
  --mock-soft: #f3f7fb;
  --mock-content-offset: 17px;
  --mock-sticky-gap: 22px;
  --mock-category-filter-height: 58px;
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 255, 255, 0.95), transparent 360px),
    linear-gradient(180deg, #f8fbff 0%, var(--mock-page) 100%);
  color: var(--mock-text);
}

.portfolio-front-page {
  --portfolio-page-max: 1280px;
  padding: 47px 22px 46px;
}

.portfolio-front-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  width: min(100%, var(--portfolio-page-max));
  min-height: 286px;
  border-radius: 8px;
  margin-bottom: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
}

.portfolio-hero-copy {
  gap: 27px;
  padding: 58px 68px;
}

.portfolio-hero-copy h1 {
  color: var(--mock-ink);
  font-size: clamp(52px, 5.2vw, 78px);
  font-weight: 900;
  line-height: 1;
}

.portfolio-hero-description {
  color: #304255;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.portfolio-hero-media {
  min-height: 286px;
  height: 286px;
}

.portfolio-hero-media img {
  min-height: 286px;
  object-position: 44% 34%;
}

@media (min-width: 1297px) {
  .portfolio-database-page:not(.record-detail-page) .portfolio-front-hero {
    min-height: 300px;
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-hero-copy {
    gap: 30px;
    padding: 62px 68px;
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-hero-copy h1 {
    font-size: clamp(58px, 5.6vw, 86px);
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-hero-description {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.8;
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-hero-media,
  .portfolio-database-page:not(.record-detail-page) .portfolio-hero-media img {
    min-height: 300px;
    height: 300px;
  }
}

.portfolio-database-layout {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 32px;
  width: min(100%, var(--portfolio-page-max));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-database-layout .timeline-sidebar {
  position: sticky;
  top: var(--mock-sticky-gap);
  height: auto;
  margin: var(--mock-content-offset) 0 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.portfolio-database-layout .timeline-sidebar-inner {
  height: auto;
  padding: 38px 28px;
}

.portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-title,
.portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-all {
  display: none;
}

.timeline-title {
  border-color: var(--mock-line);
}

.timeline-title span {
  color: var(--mock-text);
}

.timeline-title b {
  color: var(--mock-ink);
  font-size: 19px;
  font-weight: 900;
}

.timeline-all {
  min-height: 44px;
  border-color: #1f2933;
  color: var(--mock-text);
}

.timeline-all.is-active,
.timeline-all:hover {
  border-color: var(--mock-ink);
  background: var(--mock-ink);
  color: #fff;
}

.timeline-all.is-active small,
.timeline-all:hover small {
  color: rgba(255, 255, 255, 0.82);
}

.timeline-year-list {
  --timeline-axis-color: #9baabd;
  --timeline-axis-x: 75px;
  gap: 0;
}

.timeline-year-list::before {
  width: 3px;
  background: var(--timeline-axis-color);
}

.timeline-year-link {
  grid-template-columns: 58px 34px 1fr;
  min-height: 44px;
}

.timeline-year {
  color: #102033;
  font-size: 15px;
}

.timeline-dot {
  width: 13px;
  height: 13px;
  border: 3px solid #9baabd;
  background: #fff;
}

.timeline-count {
  color: #2f4154;
  font-size: 13px;
  font-weight: 800;
  padding-left: 14px;
}

.timeline-year-link.is-active .timeline-dot,
.timeline-year-link.is-current-item .timeline-dot {
  border-color: var(--mock-ink);
  background: var(--mock-ink);
  box-shadow: 0 0 0 11px rgba(7, 31, 58, 0.12);
}

.timeline-year-link.is-active .timeline-year,
.timeline-year-link.is-current-item .timeline-year {
  color: var(--mock-ink);
}

@media (min-width: 1297px) {
  .portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-sidebar-inner {
    justify-content: center;
    padding: 38px 28px;
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-year-list {
    --timeline-year-column: 60px;
    --timeline-dot-column: 13px;
    --timeline-dot-radius: 6.5px;
    --timeline-count-column: 50px;
    --timeline-column-gap: 31px;
    --timeline-axis-x: calc(var(--timeline-year-column) + var(--timeline-column-gap) + var(--timeline-dot-radius));
    width: max-content;
    margin-inline: auto;
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-year-link {
    grid-template-columns: var(--timeline-year-column) var(--timeline-dot-column) var(--timeline-count-column);
    column-gap: var(--timeline-column-gap);
    min-height: 58px;
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-year {
    justify-self: end;
    font-size: 22px;
    font-weight: 900;
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-dot {
    width: var(--timeline-dot-column);
    height: var(--timeline-dot-column);
  }

  .portfolio-database-page:not(.record-detail-page) .portfolio-database-layout .timeline-count {
    justify-content: flex-start;
    width: var(--timeline-count-column);
    padding-left: 0;
    font-size: 18px;
    font-weight: 900;
  }
}

.portfolio-database-main {
  padding: var(--mock-content-offset) 0 0;
}

.record-section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.portfolio-database-main .record-section {
  padding: 38px 28px;
  border-radius: 6px;  
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
}

@media (max-width: 1296px) {
  .portfolio-database-main .record-section {
      border: 1px solid var(--mock-line);      
  }  
}

@media (max-width: 980px) {
  .portfolio-database-main .record-section {
      padding: 28px 22px;
      border-radius: 8px;
      border: 1px solid var(--mock-line);      
  }  
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.category-filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--mock-line);
  border-radius: 4px;
  background: #fff;
  color: #26384d;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.category-filter a:hover,
.category-filter a.is-active {
  border-color: var(--mock-ink);
  background: var(--mock-ink);
  color: #fff;
}

.category-filter span {
  color: #6a7787;
  font-size: 12px;
}

.category-filter a:hover span,
.category-filter a.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.record-table {
  overflow: visible;
  border: 1px solid var(--mock-line);
  border-radius: 0;
}

.record-table-head,
.record-row {
  grid-template-columns: 142px 122px minmax(178px, 0.86fr) minmax(260px, 1.15fr) 134px;
}

.record-table-head {
  min-height: 54px;
  background: #f0f5fa;
  color: #506274;
}

@media (min-width: 1297px) {
  .category-filter {
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 0 29px;
    overflow-x: auto;
    background: #fff;
  }

  .category-filter a {
    flex: 0 0 auto;
  }

  .record-table-head {
    position: static;
  }
}

.record-table-head span,
.record-row > * {
  padding: 18px 20px;
  border-color: var(--mock-line);
}

.record-row {
  min-height: 76px;
  background: #fff;
}

.record-row:hover {
  background: #f7fbff;
  transform: none;
}

.record-row time {
  color: var(--mock-text);
  font-size: 15px;
}

.record-row strong {
  font-size: 16px;
  line-height: 1.7;
}

.record-title-link {
  color: #07111f;
  text-decoration: none;
}

.home-page .record-title-link {
  color: #07111f;
}

.record-title-link:hover {
  color: var(--mock-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.record-comment {
  color: #24364a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
}

.record-public-cell {
  justify-content: flex-start;
}

.record-public-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mock-blue);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.record-public-empty {
  color: #6a7787;
  font-size: 14px;
  font-weight: 900;
}

.home-page .record-public-link,
.home-page .record-card-actions a {
  color: var(--mock-blue);
}

.record-card-list {
  display: none;
}

.record-category {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 0;
  background: #fff;
  font-size: 12px;
  line-height: 1;
}

.category-learning {
  color: var(--mock-red);
}

.category-work {
  color: #2f7d4f;
}

.category-career {
  color: #2a63bf;
}

.category-article {
  color: #4f658a;
}

.category-other {
  color: #5f6d7a;
}

.timeline-page.record-detail-page {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 32px;
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.95), transparent 380px),
    var(--mock-page);
}

.record-detail-page > .timeline-sidebar {
  position: sticky;
  top: 28px;
  height: auto;
  margin: 0;
  border: 1px solid var(--mock-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(31, 65, 100, 0.06);
}

.record-detail-page > .timeline-sidebar .timeline-sidebar-inner {
  height: auto;
  padding: 38px 28px;
}

.record-detail-shell {
  min-width: 0;
  padding: 26px 32px 32px;
  border: 1px solid var(--mock-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(31, 65, 100, 0.08);
}

.record-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: #26384d;
  font-size: 14px;
  font-weight: 800;
}

.record-detail-breadcrumb a {
  color: #071f3a;
  text-decoration: none;
}

.record-detail-breadcrumb a:hover {
  color: var(--mock-blue);
}

.record-detail-breadcrumb span:last-child {
  color: #34465a;
}

.record-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.record-detail-main {
  min-width: 0;
}

.record-detail-summary {
  display: grid;
  gap: 13px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--mock-line);
}

.record-detail-page .record-detail-summary .record-category {
  justify-self: start;
  border: 1px solid currentColor;
  border-radius: 0;
  background: #fff;
}

.record-detail-summary h1 {
  margin: 0;
  color: #050d18;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.2;
}

.record-detail-summary time {
  color: #475b70;
  font-size: 16px;
  font-weight: 700;
}

.record-detail-summary p {
  margin: 8px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--mock-line);
  background: var(--mock-soft);
  color: #162438;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.9;
}

.record-detail-section {
  margin-top: 28px;
}

.record-detail-section h2,
.record-detail-side-card h2 {
  margin: 0 0 16px;
  color: #071f3a;
  font-size: 16px;
  font-weight: 900;
}

.record-detail-section p {
  margin: 0;
  color: #172234;
  font-size: 15px;
  font-weight: 700;
  line-height: 2;
}

.record-detail-points {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mock-line);
  list-style: none;
}

.record-detail-points li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-top: 9px;
  color: #172234;
}

.record-detail-points span {
  color: #071f3a;
  font-size: 14px;
  font-weight: 800;
}

.record-detail-points b {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.record-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.record-detail-tags span {
  padding: 8px 10px;
  border: 1px solid var(--mock-line);
  border-radius: 4px;
  background: #fff;
  color: #2f4154;
  font-size: 12px;
  font-weight: 900;
}

.record-detail-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.record-detail-side-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--mock-line);
  border-radius: 6px;
  background: #fff;
}

.record-detail-side-card p {
  margin: 0;
  color: var(--mock-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.record-detail-primary-link,
.record-detail-secondary-link,
.record-detail-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #98a8ba;
  border-radius: 4px;
  background: #fff;
  color: #071f3a;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.record-detail-primary-link {
  border-color: var(--mock-blue);
  background: var(--mock-blue);
  color: #fff;
}

.home-page .record-detail-primary-link {
  color: #fff;
}

.home-page .record-detail-secondary-link,
.home-page .record-detail-back-link {
  color: #071f3a;
}

.record-detail-primary-link:hover {
  background: #174a9a;
}

.record-detail-secondary-link:hover,
.record-detail-back-link:hover {
  border-color: var(--mock-blue);
  color: var(--mock-blue);
}

.record-detail-related-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--mock-line);
}

.record-detail-related-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--mock-line);
  color: #071f3a;
  text-decoration: none;
}

.record-detail-related-list a:hover span {
  color: var(--mock-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.record-detail-related-list span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.record-detail-related-list small {
  color: #283a4f;
  font-size: 13px;
  font-weight: 700;
}

.record-detail-related-list b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--mock-blue);
  font-size: 22px;
  line-height: 1;
}

.record-detail-back-link {
  width: 100%;
}

@media (max-width: 1296px) {
  .portfolio-front-page {
    padding: 24px 18px 42px;
  }

  .portfolio-front-hero {
    grid-template-columns: 1fr;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid var(--mock-line);    
  }

  .portfolio-hero-copy {
    gap: 22px;
    padding: 44px 36px 32px;
  }

  .portfolio-hero-copy h1 {
    font-size: clamp(52px, 7vw, 78px);
  }

  .portfolio-hero-media {
    min-height: 250px;
    height: 250px;
  }

  .portfolio-hero-media img {
    min-height: 250px;
  }

  .portfolio-database-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .portfolio-database-layout .timeline-sidebar {
    position: relative;
    top: auto;
    z-index: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .portfolio-database-layout .timeline-sidebar-inner {
    display: flex;
    min-width: 0;
    padding: 70px 36px 54px;
    border-radius: 8px;
    border: 1px solid var(--mock-line);        
  }

  .portfolio-database-layout .timeline-title {
    display: grid;
    justify-content: stretch;
    margin-bottom: 34px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mock-line);
  }

  .portfolio-database-layout .timeline-all {
    width: 100%;
    margin-bottom: 28px;
  }

  .portfolio-database-layout .timeline-year-list {
    --timeline-mobile-dot-x: 28px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 2px 20px 0;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0 2px;
    scroll-snap-type: x proximity;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-database-layout .timeline-year-list::before {
    content: none;
  }

  .portfolio-database-layout .timeline-year-list li {
    position: relative;
    flex: 0 0 118px;
    scroll-snap-align: start;
  }

  .portfolio-database-layout .timeline-year-list li::before {
    position: absolute;
    top: 48px;
    right: -18px;
    left: -18px;
    height: 3px;
    background: var(--timeline-axis-color);
    content: "";
  }

  .portfolio-database-layout .timeline-year-list li:first-child::before {
    left: var(--timeline-mobile-dot-x);
  }

  .portfolio-database-layout .timeline-year-list li:last-child::before {
    right: calc(100% - var(--timeline-mobile-dot-x));
  }

  .portfolio-database-layout .timeline-year-link {
    grid-template-columns: 1fr;
    grid-template-rows: auto 20px auto;
    justify-items: start;
    gap: 9px;
    min-height: 92px;
  }

  .portfolio-database-layout .timeline-year {
    justify-self: start;
    font-size: 22px;
    line-height: 1.2;
  }

  .portfolio-database-layout .timeline-dot {
    justify-self: start;
    margin-left: calc(var(--timeline-mobile-dot-x) - 7px);
  }

  .portfolio-database-layout .timeline-count {
    justify-content: center;
    width: 54px;
    padding-left: 0;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
  }

  .portfolio-database-main {
    min-width: 0;
    padding: 0;
  }

  .record-table {
    display: none;
  }

  .record-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .record-card {
    display: grid;
    gap: 16px;
    padding: 28px 26px;
    border: 1px solid var(--mock-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(31, 65, 100, 0.08);
  }

  .record-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  .record-card time {
    color: #071f3a;
    font-size: 18px;
    font-weight: 900;
  }

  .record-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.5;
  }

  .record-card h2 a {
    color: #07111f;
    text-decoration: none;
  }

  .record-card h2 a:hover {
    color: var(--mock-blue);
  }

  .record-card p {
    margin: 0;
    color: #23364b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
  }

  .record-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .record-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mock-blue);
    font-size: 15px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 980px) {
  .portfolio-front-page {
    padding: 18px 14px 34px;
  }

  .portfolio-front-hero {
    grid-template-columns: 1fr;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid var(--mock-line);    
  }

  .portfolio-hero-copy {
    gap: 20px;
    padding: 34px 26px 24px;
  }

  .portfolio-hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .portfolio-hero-description {
    font-size: 14px;
  }

  .portfolio-hero-media {
    min-height: 206px;
    height: 206px;
  }

  .portfolio-hero-media img {
    min-height: 206px;
  }

  .portfolio-database-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .portfolio-database-layout .timeline-sidebar {
    position: relative;
    top: auto;
    z-index: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .portfolio-database-layout .timeline-sidebar-inner {
    display: flex;
    min-width: 0;
    padding: 58px 26px 46px;
    border-radius: 8px;
    border: 1px solid var(--mock-line);    
  }

  .portfolio-database-layout .timeline-title {
    display: grid;
    justify-content: stretch;
    margin-bottom: 17px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mock-line);
  }

  .portfolio-database-layout .timeline-all {
    width: 100%;
    margin-bottom: 4px;
  }

  .portfolio-database-layout .timeline-year-list {
    --timeline-mobile-dot-x: 28px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 2px 18px 0;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0 2px;
    scroll-snap-type: x proximity;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-database-layout .timeline-year-list::before {
    content: none;
  }

  .portfolio-database-layout .timeline-year-list li {
    position: relative;
    flex: 0 0 84px;
    scroll-snap-align: start;
  }

  .portfolio-database-layout .timeline-year-list li::before {
    position: absolute;
    top: 48px;
    right: -16px;
    left: -16px;
    height: 3px;
    background: var(--timeline-axis-color);
    content: "";
  }

  .portfolio-database-layout .timeline-year-list li:first-child::before {
    left: var(--timeline-mobile-dot-x);
  }

  .portfolio-database-layout .timeline-year-list li:last-child::before {
    right: calc(100% - var(--timeline-mobile-dot-x));
  }

  .portfolio-database-layout .timeline-year-link {
    grid-template-columns: 1fr;
    grid-template-rows: auto 20px auto;
    justify-items: start;
    gap: 18px;
    min-height: 82px;
  }

  .portfolio-database-layout .timeline-year {
    justify-self: start;
    font-size: 18px;
    line-height: 1.2;
  }

  .portfolio-database-layout .timeline-dot {
    justify-self: start;
    margin-left: calc(var(--timeline-mobile-dot-x) - 7px);
  }

  .portfolio-database-layout .timeline-count {
    justify-content: center;
    width: 54px;
    padding-left: 0;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
  }

  .portfolio-database-main {
    min-width: 0;
    padding: 0;
  }

  .record-table {
    display: none;
  }

  .record-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .record-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--mock-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(31, 65, 100, 0.08);
  }

  .record-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .record-card time {
    color: #071f3a;
    font-size: 18px;
    font-weight: 900;
  }

  .record-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
  }

  .record-card h2 a {
    color: #07111f;
    text-decoration: none;
  }

  .record-card h2 a:hover {
    color: var(--mock-blue);
  }

  .record-card p {
    margin: 0;
    color: #23364b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
  }

  .record-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding-top: 4px;
  }

  .record-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mock-blue);
    font-size: 14px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .timeline-page.record-detail-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 14px 34px;
  }

  .record-detail-page > .timeline-sidebar {
    display: none;
  }

  .record-detail-shell {
    padding: 16px;
    border-radius: 8px;
  }

  .record-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .record-detail-summary,
  .record-detail-section,
  .record-detail-side-card {
    padding: 22px;
    border: 1px solid var(--mock-line);
    border-radius: 8px;
    background: #fff;
  }

  .record-detail-summary {
    border-bottom: 1px solid var(--mock-line);
  }

  .record-detail-summary p {
    padding: 18px;
  }

  .record-detail-section {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .portfolio-front-page {
    padding-inline: 12px;
  }

  .portfolio-hero-copy {
    gap: 16px;
    padding: 28px 22px 20px;
  }

  .portfolio-hero-copy h1 {
    font-size: 36px;
  }

  .portfolio-hero-description br {
    display: none;
  }

  .portfolio-hero-media {
    min-height: 190px;
    height: 190px;
  }

  .portfolio-database-layout .timeline-sidebar-inner {
    padding: 48px 22px 40px;
  }

  .record-card {
    padding: 16px;
  }

  .record-card time {
    font-size: 16px;
  }

  .record-card-actions {
    gap: 12px;
  }

  .record-detail-breadcrumb {
    font-size: 12px;
  }

  .record-detail-summary h1 {
    font-size: 28px;
  }

  .record-detail-summary time,
  .record-detail-summary p {
    font-size: 14px;
  }

  .record-detail-points li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
