/* OUTPOST corporate site — static, no JavaScript, no external requests.
   Design idea: a lone lamp on the horizon of an unmapped field.
   The lamp (--lamp) is the only accent. It marks "you are here" in the nav. */

:root {
  --night: #0b101a;
  --line: #222d42;
  --text: #e6eaf2;
  --muted: #98a4bb;
  --lamp: #f2edc2;
  --lamp-glow: rgba(242, 237, 194, 0.34);
  --hero-vert: #8592ba; /* TOPの縦書き見出し「前哨基地」の色（字が大きいので --text より大きく落としてある） */
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho",
    "Noto Serif JP", "Noto Serif CJK JP", "BIZ UDPMincho", "MS PMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic",
    "Noto Sans JP", "Noto Sans CJK JP", "Meiryo", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --wrap: 1120px;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-break: auto-phrase; /* 対応ブラウザでは文節で折り返す */
  text-wrap: pretty;
}

.nw {
  white-space: nowrap;
}

a {
  color: inherit;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4em;
  padding: 0.4em 0.9em;
  background: var(--text);
  color: var(--night);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  padding-top: 28px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.wordmark {
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.42em;
  text-decoration: none;
  color: var(--text);
  padding: 6px 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(18px, 3.2vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 6px 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px 2px var(--lamp-glow);
}

main {
  flex: 1 0 auto;
}

/* ---------- top page ---------- */

.hero {
  padding-top: clamp(40px, 8vh, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text vert";
  column-gap: clamp(24px, 6vw, 96px);
  align-items: end;
}

.hero-vert {
  grid-area: vert;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 11vw, 144px);
  line-height: 1;
  letter-spacing: 0.14em;
  font-feature-settings: "palt";
  color: var(--hero-vert);
}

.hero-text {
  grid-area: text;
  max-width: 30em;
  padding-bottom: 8px;
}

.hero-text p {
  margin: 0 0 1.5em;
}

.hero-text p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.hero-text .lead {
  margin-bottom: 1.1em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 3.4vw, 42px);
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--text);
}

.horizon {
  position: relative;
  height: 11px;
  margin-top: clamp(28px, 5vw, 56px);
}

.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
  animation: draw 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.horizon .wrap {
  position: relative;
  height: 11px;
}

.lamp {
  position: absolute;
  left: var(--gutter);
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 24px 6px var(--lamp-glow);
  animation: ignite 1.4s ease-out 1s both;
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes ignite {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.index {
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(56px, 9vh, 104px);
}

.index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.index li {
  border-bottom: 1px solid var(--line);
}

.index a {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 22px 0;
  text-decoration: none;
}

.index .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.index .desc {
  color: var(--muted);
}

.index a:hover .name,
.index a:focus-visible .name {
  color: var(--lamp);
}

/* ---------- inner pages ---------- */

.page {
  padding-top: clamp(48px, 9vh, 104px);
  padding-bottom: clamp(64px, 10vh, 120px);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.page-body > :first-child {
  margin-top: 0;
}

.section-title {
  margin: 0 0 1.2em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.1em;
}

.facts {
  display: grid;
  grid-template-columns: minmax(6.5em, 10em) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts li + li {
  margin-top: 0.2em;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rows li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.75;
  letter-spacing: 0.06em;
}

.work {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.work-name a {
  text-decoration-color: var(--line);
}

.work-name a:hover,
.work-name a:focus-visible {
  color: var(--lamp);
  text-decoration-color: var(--lamp);
}

.work-tagline {
  margin: 0.3em 0 0;
  color: var(--muted);
}

.work-desc {
  margin: 1.1em 0 0;
}

.work-url {
  margin: 0.4em 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 32px;
}

.site-footer p {
  margin: 0;
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  body {
    font-size: 16px;
    line-height: 1.9;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "vert"
      "text";
    row-gap: 36px;
  }

  .hero-vert {
    justify-self: end;
    font-size: clamp(60px, 18vw, 96px);
  }

  .hero-text {
    max-width: none;
  }

  .index a {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

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

  .facts dt {
    padding: 18px 0 0;
    border-bottom: 0;
  }

  .facts dd {
    padding: 2px 0 18px;
  }
}

/* 住所の1行目（…6-16）は途中で折り返さない。極小幅では文字を少し小さくして収める */
@media (max-width: 360px) {
  .facts dd {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .horizon-line,
  .lamp {
    animation: none;
  }
}

@media (forced-colors: active) {
  .lamp {
    forced-color-adjust: none;
  }
}
