:root {
  --ink: #262626;
  --muted: #6b7280;
  --line: #e8e2da;
  --soft: #fff7ed;
  --soft-strong: #fde7ca;
  --orange: #e95b16;
  --orange-dark: #b94312;
  --brown: #3a2518;
  --blue-gray: #234155;
  --link: #2e679c;
  --page: #ffffff;
  --shadow: 0 1px 14px rgba(48, 36, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  min-height: 100vh;
}

.breadcrumb {
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #efefef;
  background: #f7f7f7;
  box-shadow: var(--shadow);
}

.breadcrumb__inner {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
}

.breadcrumb__inner a {
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb__inner a:first-child::before {
  content: "⌂";
  margin-right: 5px;
  color: var(--brown);
}

.layout {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: 82px 28px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
}

.article-hero {
  min-width: 0;
}

.title-grid {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.date-card {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 11px 16px 13px 0;
  border-right: 1px solid #ddd;
  color: #555;
  line-height: 1.05;
  min-height: 86px;
}

.date-card__year {
  font-size: 18px;
  font-weight: 500;
}

.date-card__date {
  font-size: 32px;
  font-weight: 700;
}

.title-block h1 {
  margin: 0 0 17px;
  font-size: clamp(30px, 2.45vw, 43px);
  line-height: 1.42;
  font-weight: 800;
  color: #2b2b2b;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: #666;
  font-size: 15px;
}

.folder-label,
.tag-label {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 10px;
  background: var(--blue-gray);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.folder-label::before {
  content: "■";
  font-size: 10px;
  margin-right: 7px;
}

.tag-label {
  background: #17344a;
}

.meta-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-visual {
  margin: 38px 0 42px;
}

.main-visual__placeholder {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px;
  border: 1px solid #f4cfb2;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.7)),
    repeating-linear-gradient(45deg, rgba(233, 91, 22, 0.12) 0 2px, transparent 2px 18px);
  box-shadow: 0 12px 32px rgba(54, 33, 18, 0.1);
}

.placeholder-kicker {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 800;
}

.placeholder-title {
  margin: 0;
  color: var(--brown);
  font-size: clamp(27px, 3vw, 45px);
  line-height: 1.35;
  font-weight: 900;
}

.placeholder-copy {
  max-width: 620px;
  margin: 18px auto 0;
  color: #5c4638;
  font-size: 18px;
  line-height: 1.8;
}

.main-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.lead-box {
  padding: 8px 30px 0;
  color: #333;
  font-size: 20px;
  line-height: 2.05;
}

.lead-box p {
  margin: 0 0 1.3em;
}

.sidebar {
  min-width: 0;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 4px 0 44px;
}

.search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}

.search-box button {
  height: 44px;
  padding: 0 17px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: linear-gradient(#fff, #f6f6f6);
  color: #333;
  font: inherit;
  font-weight: 700;
  cursor: default;
}

.side-section {
  margin-bottom: 48px;
}

.side-section h2 {
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ddd;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
  color: #2d2d2d;
}

.recent-list,
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-list li,
.category-list li {
  border-bottom: 1px solid #e5e5e5;
}

.recent-list a,
.category-list a {
  display: block;
  padding: 17px 0;
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.75;
}

.category-list a {
  color: #3f3f3f;
}

.category-list a::before {
  content: "■";
  margin-right: 8px;
  color: #4b4b4b;
  font-size: 11px;
}

.share-rail {
  position: fixed;
  z-index: 4;
  left: 10px;
  top: 40%;
  display: grid;
  gap: 8px;
}

.share-rail span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: #3f5f98;
}

.share-rail span:nth-child(2) { background: #111; }
.share-rail span:nth-child(3) { background: #55a6d9; }
.share-rail span:nth-child(4) { background: #48bd35; font-size: 10px; }
.share-rail span:nth-child(5) { background: #777; }

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 58px;
  }

  .sidebar {
    border-top: 1px solid var(--line);
    padding-top: 38px;
  }

  .search-box {
    max-width: 520px;
  }

  .share-rail {
    display: none;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .breadcrumb__inner {
    padding: 11px 16px;
    font-size: 13px;
  }

  .layout {
    padding: 42px 16px 58px;
  }

  .title-grid {
    display: block;
  }

  .date-card {
    width: fit-content;
    min-height: auto;
    margin-bottom: 14px;
    padding: 0;
    border-right: 0;
    display: flex;
    align-items: baseline;
    gap: 9px;
  }

  .date-card__year {
    font-size: 14px;
  }

  .date-card__date {
    font-size: 25px;
  }

  .title-block h1 {
    font-size: 28px;
    line-height: 1.48;
  }

  .meta-row {
    font-size: 13px;
  }

  .main-visual {
    margin: 28px 0 32px;
  }

  .main-visual__placeholder {
    min-height: 250px;
    aspect-ratio: 16 / 10;
    padding: 28px 18px;
  }

  .placeholder-title {
    font-size: 25px;
  }

  .placeholder-copy {
    font-size: 15px;
  }

  .lead-box {
    padding: 0;
    font-size: 17px;
    line-height: 2;
  }

  .search-box {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 420px) {
  .title-block h1 {
    font-size: 25px;
  }

  .main-visual__placeholder {
    min-height: 222px;
  }

  .folder-label,
  .tag-label {
    height: 25px;
    font-size: 12px;
  }

  .search-box button {
    padding: 0 13px;
  }
}
