:root {
  --red: #b20d0d;
  --red-bright: #e51b1b;
  --ink: #121212;
  --paper: #f7f4ef;
  --white: #ffffff;
  --cream: #eee6df;
  --denim: #172937;
  --brown: #4a2e1a;
  --muted: #6d6260;
  --line: #2b2b2b;
  --shadow: 12px 12px 0 rgba(18, 18, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(178, 13, 13, 0.08), transparent 24rem),
    linear-gradient(135deg, rgba(18, 18, 18, 0.04) 0 25%, transparent 25% 100%),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 4px solid var(--ink);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  transform: rotate(-2deg);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 38% 34%);
}

.brand-text {
  display: inline-block;
  padding: 4px 14px 6px;
  border: 3px solid var(--ink);
  background: var(--ink);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--red);
  color: var(--white);
  transform: skew(-8deg);
}

.hero {
  min-height: min(720px, calc(100vh - 78px));
  display: grid;
  align-items: stretch;
  border-bottom: 5px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(247, 244, 239, 0.92) 0 42%, rgba(247, 244, 239, 0.36) 60%),
    url("../images/yasai-hero.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 64px 0;
}

.eyebrow {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  transform: skew(-10deg);
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-size: clamp(52px, 10vw, 124px);
  line-height: 0.9;
  font-weight: 950;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--red);
}

.lead {
  max-width: 660px;
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(178, 13, 13, 0.2), transparent 44%),
    var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -42px 18%;
  height: 92px;
  background: var(--ink);
  transform: rotate(-3deg);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 72px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.section-title::before {
  content: "★";
  color: var(--red);
  text-shadow: 2px 2px 0 var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: var(--cream);
}

.card-media.square {
  aspect-ratio: 1 / 1;
}

.card-media.profile-visual {
  aspect-ratio: 2 / 3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.meta {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.feature-band {
  border-block: 5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.feature-band .section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
}

.feature-band img {
  border: 3px solid var(--white);
  box-shadow: 10px 10px 0 var(--red);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 2px solid var(--ink);
}

.spec-row dt {
  font-weight: 900;
  color: var(--red);
}

.spec-row dd {
  margin: 0;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px;
  border: 3px solid var(--ink);
  background: var(--white);
}

.timeline-date {
  color: var(--red);
  font-weight: 950;
}

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

.link-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 7px 7px 0 rgba(18, 18, 18, 0.12);
  text-decoration: none;
}

.link-item strong {
  display: block;
  font-size: 20px;
}

.link-item span {
  color: var(--muted);
}

.arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  font-weight: 950;
}

.site-footer {
  border-top: 5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.note {
  color: var(--muted);
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(247, 244, 239, 0.95) 0 34%, rgba(247, 244, 239, 0.42) 100%),
      url("../images/yasai-hero.png") 62% center / cover no-repeat;
  }

  .hero-inner {
    align-content: start;
    padding-top: 42px;
    min-height: 680px;
  }

  .grid,
  .grid.two,
  .feature-band .section,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .spec-row,
  .link-item {
    grid-template-columns: 1fr;
  }

  .arrow {
    width: 100%;
  }
}
