.proj-page {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

.breadcrumb {
  margin: 0 0 18px;
  font-family: 'L-reg', sans-serif;
  font-size: 13px;
  color: #4B3D33;
}

.breadcrumb a {
  font-family: 'L-bold', sans-serif;
  color: #4B3D33;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #9A8775;
}

.breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.5;
}

.proj-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "head side"
    "desc side";
  column-gap: 28px;
  row-gap: 28px;
  align-items: start;
}

.proj-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proj-head-main {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 24px;
}

.proj-logo {
  flex: none;
  width: 200px;
  border-style: solid;
  border-width: 0.5mm;
  border-color: #4B3D33;
}

.proj-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.proj-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.proj-title {
  margin: 0 0 4px;
  font-family: 'L-bold', sans-serif;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: #4B3D33;
}

.proj-subtitle {
  margin: 0;
  font-family: 'L-bold', sans-serif;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: #4B3D33;
}

.proj-alt {
  margin: 0;
  font-family: 'L-reg', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #6F5E52;
}

.proj-company {
  margin: 10px 0 0;
  font-family: 'L-reg', sans-serif;
  font-size: 13px;
  color: #6F5E52;
}

.proj-company b {
  font-family: 'L-bold', sans-serif;
  font-weight: normal;
  color: #4B3D33;
}

.proj-divider {
  height: 1px;
  background: #9A8775;
}

.proj-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.proj-status {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.project-card.status-panel {
  display: block;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  box-sizing: border-box;
  background: rgb(49, 36, 28, 0.8);
  border: 1px solid #1A1714;
}

.status-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: 'L-bold', sans-serif;
  font-size: 16px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.status-panel .stats-container {
  gap: 10px;
}

.status-panel .stat-row {
  gap: 4px;
}

.status-panel .stat-labels {
  align-items: baseline;
  font-size: 14px;
}

.status-panel .stat-value {
  margin: 0;
  font-size: 13px;
}

.status-panel .progress-bar-bg {
  height: 10px;
  margin-top: 0;
}

.status-panel .card-footer {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
}

.status-panel .meta-data p {
  font-size: 12px;
}

.status-panel .highlight,
.status-panel .highlight-red,
.status-panel .highlight-yellow,
.status-panel .highlight-redyellow,
.status-panel .highlight-green {
  font-size: 12px;
}

.status-panel .update-tag {
  padding: 4px 8px;
  font-size: 9px;
}

.proj-desc {
  grid-area: desc;
  min-width: 0;
  font-family: 'L-reg', sans-serif;
  color: #4B3D33;
}

.proj-desc section + section {
  margin-top: 26px;
}

.proj-desc h2 {
  margin: 0 0 8px;
  font-family: 'L-bold', sans-serif;
  font-size: 20px;
  color: #4B3D33;
}

.proj-desc p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
}

.character-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.character {
  display: flex;
  align-items: stretch;
  min-height: 128px;
  background: rgb(49, 36, 28, 0.8);
  border: 1px solid #1A1714;
  color: #ffffff;
  overflow: hidden;
}

.character-img {
  flex: none;
  display: block;
  width: 96px;
  object-fit: cover;
  object-position: center top;
  background: #3a2d25;
}

.character-text {
  min-width: 0;
  padding: 10px 12px;
}

.character-name {
  display: block;
  font-family: 'L-bold', sans-serif;
  font-size: 14px;
}

.proj-desc .character-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #F0E7DB;
}

.proj-blog {
  min-width: 0;
  background: rgb(49, 36, 28, 0.8);
  border: 1px solid #1A1714;
}

.proj-blog-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.proj-blog-header h2 {
  margin: 0;
  font-family: 'L-bold', sans-serif;
  font-size: 16px;
  color: #ffffff;
}

.proj-blog-header a {
  font-family: 'L-bold', sans-serif;
  font-size: 11px;
  text-decoration: none;
  color: #c7b5a4;
  transition: color 0.2s ease;
}

.proj-blog-header a:hover {
  color: #ffffff;
}

.feed-list {
  max-height: 340px;
  overflow-y: auto;
}

.feed-item {
  display: block;
  padding: 10px 18px 11px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.2s steps(4), color 0.2s steps(4);
}

.feed-item + .feed-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-item:hover {
  background-color: #ffffff;
  color: #635448;
}

.feed-date {
  display: block;
  margin-bottom: 2px;
  font-family: 'L-reg', sans-serif;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #c7b5a4;
}

.feed-item:hover .feed-date {
  color: #9A8775;
}

.feed-title {
  display: block;
  font-family: 'L-bold', sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

@media (max-width: 800px) {
  .proj-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "head"
      "status"
      "desc"
      "blog";
    row-gap: 22px;
  }

  .proj-side {
    display: contents;
  }

  .proj-status {
    grid-area: status;
  }

  .proj-blog {
    grid-area: blog;
  }

  .proj-head-main {
    margin-bottom: 18px;
  }

  .proj-logo {
    width: 150px;
  }

  .proj-title {
    font-size: 28px;
  }
  
  .proj-subtitle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .proj-head-main {
    flex-direction: column;
  }
}