:root {
  --ai: #16233a;
  --bone: #e8e9e4;
  --sumi: #1a1d1c;
  --nezu: #61665e;
  --rokusho: #4e8577;
  --rule: #c9ccc5;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Charter, Constantia, Georgia, serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
    "Noto Serif JP", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic",
    "Noto Sans JP", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Roboto Mono", "Hiragino Kaku Gothic ProN", "Yu Gothic", monospace;
}

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

/* ---------- the tape ---------- */

#tape {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

#fanDark,
#fanLight {
  opacity: 0;
  transition: opacity 1600ms ease-out;
}

#tipRing {
  animation: pulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes pulse {
  0% {
    r: 6;
    opacity: 0.6;
  }
  75%,
  100% {
    r: 17;
    opacity: 0;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ai);
  color: var(--bone);
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    120% 92% at 9% 44%,
    rgba(22, 35, 58, 0.95) 0%,
    rgba(22, 35, 58, 0.62) 40%,
    rgba(22, 35, 58, 0) 76%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 6rem 1.75rem 0;
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
}

.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 9vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  animation: rise 1100ms 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__legal {
  margin: 1.6rem 0 0;
  font-family: var(--mincho);
  font-size: 0.84rem;
  letter-spacing: 0.3em;
  color: rgba(232, 233, 228, 0.68);
  animation: rise 1100ms 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__foot {
  position: relative;
  z-index: 2;
  padding: 0 1.75rem 2.25rem;
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 233, 228, 0.55);
  animation: rise 1100ms 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- sections ---------- */

/* NOTE: max-width + padding are mirrored by COL in index.html.
   Change one without the other and the price path invades the text. */
.page {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.block {
  padding: 7.5rem 0;
}

.block + .block {
  border-top: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 3rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--nezu);
}

/* ---------- pillars ---------- */

.pillar {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0 0.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--rule);
}

.pillar:last-child {
  border-bottom: 1px solid var(--rule);
}

.pillar__no {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  color: var(--nezu);
  padding-top: 0.75rem;
}

.pillar__title {
  margin: 0 0 0.4rem;
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-wrap: balance;
}

.pillar__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.9;
  color: #4d514c;
}

@media (max-width: 30rem) {
  .pillar {
    grid-template-columns: 1fr;
  }
  .pillar__no {
    padding-top: 0;
    margin-bottom: 0.35rem;
  }
}

/* ---------- fact sheet ---------- */

.facts {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  margin: 0;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  line-height: 2.6;
  color: var(--nezu);
}

.facts dd {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 2.15;
}

.facts dd.is-prose {
  font-family: var(--gothic);
  font-size: 0.92rem;
  line-height: 1.95;
}

@media (max-width: 34rem) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts dt {
    padding-bottom: 0;
    line-height: 2;
  }
  .facts dd {
    padding-top: 0.15rem;
    border-top: 0;
  }
}

/* ---------- contact band ---------- */

.band {
  position: relative;
  background: var(--ai);
  color: var(--bone);
  padding: 8rem 0;
}

.band__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    92deg,
    rgba(22, 35, 58, 0.94) 0%,
    rgba(22, 35, 58, 0.6) 42%,
    rgba(22, 35, 58, 0) 78%
  );
}

.band .eyebrow {
  color: rgba(232, 233, 228, 0.45);
}

.band__mail {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 3.4vw, 1.5rem);
  letter-spacing: 0.02em;
}

.band__mail a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--rokusho);
  padding-bottom: 0.35em;
  transition: border-color 220ms ease, color 220ms ease;
}

.band__mail a:hover {
  color: var(--rokusho);
  border-color: var(--bone);
}

.band__note {
  margin: 2.5rem 0 0;
  font-size: 0.86rem;
  color: rgba(232, 233, 228, 0.55);
}

/* ---------- foot ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: space-between;
  padding: 2rem 0 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--nezu);
}

.foot a {
  color: var(--nezu);
  text-decoration-color: var(--rule);
  text-underline-offset: 0.25em;
}

:focus-visible {
  outline: 2px solid var(--rokusho);
  outline-offset: 4px;
}

/* ---------- motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name,
  .hero__legal,
  .hero__foot {
    animation: none;
  }
  #tipRing {
    animation: none;
  }
  #fanDark,
  #fanLight {
    transition: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ---------- craft ---------- */

html {
  color-scheme: light;
}

::selection {
  background: var(--rokusho);
  color: var(--bone);
}

@media print {
  #tape,
  .hero__scrim,
  .band__scrim {
    display: none;
  }
  .hero,
  .band {
    min-height: 0;
    background: #fff;
    color: #111;
  }
  .hero__name,
  .hero__legal,
  .hero__foot,
  .band__mail a,
  .band__note {
    color: #111;
    animation: none;
  }
  .band__mail a {
    border-bottom-color: #111;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
/* ---------- document page (privacy) ---------- */

.doc__head {
  padding: 7rem 0 0;
}

.doc__title {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(1.7rem, 5.2vw, 2.4rem);
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.doc__sub {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nezu);
}

.clause {
  margin-top: 3.25rem;
}

.clause h2 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.clause p,
.clause li {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.clause ul {
  margin: 0;
  padding-left: 1.15rem;
}

.clause .mail {
  font-family: var(--mono);
  font-size: 0.92rem;
}

.clause a {
  color: var(--rokusho);
  text-underline-offset: 0.25em;
}

.back {
  display: inline-block;
  margin-top: 4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--nezu);
  text-underline-offset: 0.25em;
}

/* ---------- latin voice ---------- */

@font-face {
  font-family: "Orland Text";
  src: url("orland-text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.hero__foot,
.pillar__no,
.band__mail,
.clause .mail,
.doc__sub,
.back,
.foot {
  font-family: "Orland Text", var(--gothic);
}

.facts dd {
  font-family: "Orland Text", var(--mincho);
}

/* ---------- name case ---------- */

.hero__foot,
.doc__sub {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

/* ---------- japanese voice ---------- */

body,
.prose,
.eyebrow,
.pillar__no,
.pillar__desc,
.facts dt,
.facts dd,
.facts dd.is-prose,
.band__mail,
.band__note,
.hero__foot,
.doc__sub,
.back,
.foot,
.clause h2,
.clause p,
.clause li,
.clause .mail {
  font-family: "Orland Text", var(--mincho);
}

/* ---------- section rule ---------- */

/* 事業内容リストの締めの罫線があるので、セクション境界には引かない */
.block + .block {
  border-top: 0;
}

/* ---------- section rhythm ---------- */

/* 罫線を消したぶん、セクション間の余白を 15rem → 8rem に */
.block {
  padding-bottom: 4rem;
}

.block + .block {
  padding-top: 4rem;
}

/* ---------- facts close ---------- */

/* 事業内容リストと同じく、会社概要も最終行の下で閉じる */
.facts {
  border-bottom: 1px solid var(--rule);
}
