.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--main);
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.detail-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--detail-image) center / cover no-repeat;
}
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22,42,52,.62), rgba(22,42,52,.12) 68%), linear-gradient(0deg, rgba(22,42,52,.35), transparent 45%);
}
.detail-hero--about { --detail-image: url("../assets/images/20260924_about-hero-highres.png"); }
.detail-hero--works { --detail-image: url("../assets/images/5.jpg"); }
.detail-hero__inner {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
  padding: 170px 0 76px;
}
.detail-hero__kicker {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: .2em;
}
.detail-hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .08em;
}
.detail-hero__lead {
  max-width: 670px;
  margin: 20px 0 0;
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  line-height: 2;
  letter-spacing: .05em;
}

.breadcrumb {
  width: min(calc(100% - 80px), var(--container));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6c797f;
  font-size: 12px;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb span[aria-hidden="true"] { color: #9da8ac; }

.detail-section { padding: 110px 0; }
.detail-section--tint { background: #eef2f2; }
.detail-container { width: min(calc(100% - 80px), 1120px); margin-inline: auto; }
.detail-heading { margin-bottom: 48px; }
.detail-heading__en {
  margin: 0 0 6px;
  color: var(--label);
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: .16em;
}
.detail-heading h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .06em;
}
.detail-heading > p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 2;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 76px;
  align-items: center;
}
.intro-layout__image {
  width: 100%;
  min-height: 470px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.intro-layout__copy h2 {
  margin: 0 0 28px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: .07em;
}
.intro-layout__copy p { margin: 0 0 18px; color: var(--ink-soft); line-height: 2.1; }

.stance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.stance-card {
  min-height: 300px;
  padding: 34px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(29,49,61,.05);
}
.stance-card__number {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  line-height: 1;
}
.stance-card h3 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 21px; line-height: 1.6; }
.stance-card p { margin: 16px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 2; }

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: process;
}
.process-item {
  position: relative;
  min-width: 0;
  padding: 0 25px;
  text-align: center;
  counter-increment: process;
}
.process-item + .process-item { border-left: 1px solid var(--line); }
.process-item::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1;
}
.process-item h3 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 17px; }
.process-item p { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }

.company-table { width: 100%; border-collapse: collapse; background: #fff; }
.company-table th,
.company-table td { padding: 22px 26px; border-bottom: 1px solid var(--line); text-align: left; }
.company-table th { width: 220px; font-family: "Noto Serif JP", serif; font-weight: 500; background: #edf2f2; }
.company-table td { color: var(--ink-soft); }
.sample-notice { margin: 16px 0 0; color: #79858a; font-size: 12px; }

.case-list { display: grid; gap: 94px; }
.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 58px;
  align-items: start;
}
.case-study:nth-child(even) .case-study__image { order: 2; }
.case-study__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; box-shadow: var(--shadow); }
.case-study__label { margin: 0 0 8px; color: var(--accent); font-family: "Cormorant Garamond", serif; letter-spacing: .16em; }
.case-study h2 { margin: 0 0 12px; font-family: "Noto Serif JP", serif; font-size: clamp(27px, 2.6vw, 38px); font-weight: 500; }
.case-study__summary { margin: 0 0 28px; color: var(--ink-soft); line-height: 2; }
.case-details { margin: 0; display: grid; }
.case-details > div { padding: 16px 0; display: grid; grid-template-columns: 105px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.case-details > div:last-child { border-bottom: 1px solid var(--line); }
.case-details dt { color: var(--main); font-family: "Noto Serif JP", serif; font-weight: 600; }
.case-details dd { margin: 0; color: var(--ink-soft); line-height: 1.85; }
.case-note { margin: 18px 0 0; color: #7b878c; font-size: 12px; }

.detail-cta { padding: 90px 0; text-align: center; background: #e8eeee; }
.detail-cta h2 { margin: 0; font-family: "Noto Serif JP", serif; font-size: clamp(28px, 3vw, 42px); font-weight: 500; }
.detail-cta p { margin: 16px auto 28px; color: var(--ink-soft); }
.detail-cta__links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.detail-button {
  min-width: 250px;
  min-height: 60px;
  padding: 0 26px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: transform .2s ease, background-color .2s ease;
}
.detail-button--outline { color: var(--main); background: transparent; border-color: var(--main); }
.detail-button:hover { transform: translateY(-2px); background: var(--accent-deep); }
.detail-button--outline:hover { color: #fff; background: var(--main); }

@media (max-width: 900px) {
  .detail-hero__inner, .breadcrumb, .detail-container { width: min(calc(100% - 40px), 1120px); }
  .intro-layout, .case-study { grid-template-columns: 1fr; gap: 38px; }
  .case-study:nth-child(even) .case-study__image { order: 0; }
  .stance-grid { grid-template-columns: 1fr; }
  .stance-card { min-height: 0; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .process-item:nth-child(odd) { border-left: 0; }
  .intro-layout__image { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  .detail-hero { min-height: 520px; }
  .detail-hero__inner, .breadcrumb, .detail-container { width: calc(100% - 36px); }
  .detail-hero__inner { padding: 140px 0 54px; }
  .detail-hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .detail-hero__lead { font-size: 15px; line-height: 1.9; }
  .detail-section { padding: 78px 0; }
  .detail-heading { margin-bottom: 34px; }
  .intro-layout__copy h2 br { display: none; }
  .stance-card { padding: 28px 24px; }
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .process-item { padding: 26px 0; text-align: left; }
  .process-item + .process-item { border-left: 0; border-top: 1px solid var(--line); }
  .process-item::before { margin-bottom: 10px; }
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding: 15px 18px; border-bottom: 0; }
  .company-table td { padding: 15px 18px 22px; }
  .case-list { gap: 70px; }
  .case-study { gap: 28px; }
  .case-details > div { grid-template-columns: 1fr; gap: 5px; }
  .detail-cta { padding: 72px 0; }
  .detail-button { width: 100%; min-width: 0; }
}
