/* ===== Tokens — Light Editorial (JP-tuned) ===== */
:root {
  /* Surfaces */
  --bg: #f6f3ec;            /* warm cream */
  --bg-alt: #efeae0;        /* deeper cream */
  --bg-paper: #fbf9f4;      /* paper tone */
  --bg-card: #ffffff;

  /* Ink */
  --ink: #15181c;           /* near black */
  --ink-soft: #353a41;      /* AAA on bg */
  --ink-mute: #5d6470;      /* ~5.4:1 on bg */
  --ink-dim: #8a909a;

  /* Accent */
  --accent: #4a8b9a;
  --accent-soft: #a8d4dd;
  --accent-pale: #e6f0f3;
  --accent-deep: #2f6371;

  /* Lines */
  --line: rgba(21, 24, 28, 0.1);
  --line-strong: rgba(21, 24, 28, 0.18);

  --container: 1240px;
  --radius: 2px;
  --radius-lg: 16px;

  /* Typography stacks */
  --font-jp-sans: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-jp-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Inter", serif;
  /* For decorative Latin numerals; JP falls back to Mincho upright (font-synthesis: none) */
  --font-num: "Fraunces", "Noto Serif JP", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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

button { cursor: pointer; }

::selection {
  background: var(--ink);
  color: var(--bg);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* Subtle ambient gradient — sets light editorial mood */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(168, 212, 221, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 95% 100%, rgba(74, 139, 154, 0.08) 0%, transparent 50%);
}

main, header, footer { position: relative; z-index: 1; }

/* ===== Helper: decorative latin numeral (JP-safe) =====
   Fraunces italic for Latin chars; JP characters fall back to upright Mincho. */
.num-deco {
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-synthesis-style: none; /* prevent fake italic on JP fallback */
  letter-spacing: 0.01em;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px 22px;
  background: rgba(251, 249, 244, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: padding 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.nav.is-scrolled {
  padding: 10px 18px;
  box-shadow: 0 12px 40px -12px rgba(21, 24, 28, 0.14);
  background: rgba(251, 249, 244, 0.92);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav__brand-text {
  font-family: var(--font-jp-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-feature-settings: "palt";
}

.nav__brand-text span {
  font-weight: 400;
  color: var(--ink-mute);
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
  transition: color 220ms ease;
}

.nav__num {
  font-family: var(--font-num);
  font-style: italic;
  font-size: 11px;
  color: var(--accent);
  font-weight: 400;
  font-synthesis-style: none;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: background 250ms ease, transform 250ms ease;
  font-feature-settings: "palt";
}

.nav__cta svg { width: 14px; height: 14px; transition: transform 250ms ease; }
.nav__cta:hover { background: var(--accent-deep); }
.nav__cta:hover svg { transform: translateX(3px); }

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  position: relative;
}

.nav__toggle span {
  display: block;
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 280ms ease, top 280ms ease;
}

.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }

.nav.is-open .nav__toggle span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-feature-settings: "palt";
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), background 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.btn::after {
  content: "→";
  display: inline-block;
  font-size: 15px;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::after { transform: translateX(5px); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(47, 99, 113, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--bg-paper);
  transform: translateY(-2px);
}

.btn--large {
  padding: 22px 56px;
  font-size: 15px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px 40px 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-jp-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-feature-settings: "palt";
  font-weight: 500;
}

.hero__caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__caption-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: end;
  position: relative;
}

.hero__title-wrap { position: relative; }

.hero__mark {
  position: absolute;
  top: -32px;
  right: -8px;
  width: clamp(120px, 16vw, 200px);
  opacity: 0;
  transform: rotate(-8deg) scale(0.9);
  animation: markIn 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) 600ms forwards;
}

.hero__mark img {
  width: 100%;
  filter: drop-shadow(0 12px 24px rgba(74, 139, 154, 0.18));
  animation: markFloat 8s ease-in-out infinite 1500ms;
}

@keyframes markIn {
  to { opacity: 0.6; transform: rotate(-8deg) scale(1); }
}

@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* === Hero title — JP-optimized typography === */
.hero__title {
  font-family: var(--font-jp-sans);
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 96px);
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--ink);
  font-feature-settings: "palt";
}

.hero__title-row {
  display: block;
  overflow: hidden;
  /* Collapse inter-span whitespace so 「暮らし」「と」「社会」「、」 sit flush */
  font-size: 0;
  white-space: nowrap;
}

.hero__word {
  display: inline-block;
  font-size: clamp(40px, 6.6vw, 96px);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(110%);
  animation: wordUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero__title-row--1 .hero__word:nth-child(1) { animation-delay: 80ms; }
.hero__title-row--1 .hero__word:nth-child(2) { animation-delay: 140ms; }
.hero__title-row--1 .hero__word:nth-child(3) { animation-delay: 200ms; }
.hero__title-row--1 .hero__word:nth-child(4) { animation-delay: 260ms; }
.hero__title-row--2 .hero__word:nth-child(1) { animation-delay: 380ms; }
.hero__title-row--2 .hero__word:nth-child(2) { animation-delay: 460ms; }
.hero__title-row--3 .hero__word:nth-child(1) { animation-delay: 580ms; }
.hero__title-row--3 .hero__word:nth-child(2) { animation-delay: 640ms; }
.hero__title-row--3 .hero__word:nth-child(3) { animation-delay: 720ms; }

@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Particles & connector text — slightly muted */
.hero__word--ink {
  color: var(--ink-mute);
  font-weight: 400;
}

/* Accent: solid Mincho, no italic on JP. Weight + accent color carries emphasis. */
.hero__word--accent em {
  font-style: normal;
  font-family: var(--font-jp-serif);
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}

/* Closing emphasis: Mincho with subtle marker underline */
.hero__word--serif em {
  font-style: normal;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
}

.hero__word--serif em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 14%; /* exclude the trailing 「。」 from underline */
  bottom: 0.12em;
  height: 0.16em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 900ms cubic-bezier(0.65, 0, 0.35, 1) 1500ms forwards;
}

@keyframes underline { to { transform: scaleX(1); } }

/* === Hero meta strip === */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  opacity: 0;
  animation: fadeIn 800ms ease 1700ms forwards;
}

.hero__meta-item {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.hero__meta-item:last-child { border-right: 0; }

/* The "03" cell uses italic Latin Fraunces;
   JP cells (通信/公共/店舗) fall back to upright Noto Serif JP — font-synthesis: none prevents fake italic. */
.hero__meta-num {
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-synthesis-style: none;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.hero__meta-label {
  font-family: var(--font-jp-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-feature-settings: "palt";
  font-weight: 500;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  opacity: 0;
  animation: fadeIn 800ms ease 2100ms forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.hero__lead p {
  font-family: var(--font-jp-sans);
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  right: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-jp-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  font-feature-settings: "palt";
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 800ms ease 2400ms forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--accent);
  animation: scrollDot 2.4s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(240%); }
}

/* ===== Marquee — Mincho upright (no italic on JP) ===== */
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: var(--font-jp-serif);
  font-style: normal;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-feature-settings: "palt";
}

.marquee__dot {
  font-style: normal;
  font-size: 8px;
  color: var(--accent-soft);
  letter-spacing: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Section common ===== */
.section__num {
  display: inline-block;
  font-family: var(--font-jp-sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent-deep);
  margin-bottom: 28px;
  font-weight: 500;
  font-feature-settings: "palt";
}

.section__title {
  font-family: var(--font-jp-sans);
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ink);
  font-feature-settings: "palt";
}

/* JP accent within section titles: Mincho, weight 500, accent color — no italic */
.section__title em {
  font-style: normal;
  font-family: var(--font-jp-serif);
  font-weight: 600;
  color: var(--accent-deep);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1100ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== About ===== */
.about {
  padding: 160px 0 140px;
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.about__head {
  position: sticky;
  top: 120px;
}

/* JP-friendly editorial lead — Mincho, generous line-height */
.about__lead {
  font-family: var(--font-jp-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 32px;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.about__desc {
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 64px;
  max-width: 580px;
}

.about__values {
  list-style: none;
  display: grid;
  gap: 0;
}

.about__values li {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 320ms ease;
}

.about__values li:hover { padding-left: 12px; }
.about__values li:last-child { border-bottom: 1px solid var(--line); }

.about__values-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-synthesis-style: none;
  font-size: 32px;
  color: var(--accent-deep);
  line-height: 1;
  align-self: start;
  padding-top: 4px;
}

.about__values h3 {
  grid-column: 2;
  grid-row: 1;
}

.about__values p {
  grid-column: 2;
  grid-row: 2;
  max-width: 520px;
}

.about__values h3 {
  font-family: var(--font-jp-sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.about__values p {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.95;
  letter-spacing: 0.04em;
}

/* ===== Services ===== */
.services {
  padding: 160px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.services__head { margin-bottom: 96px; }

.services__list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 350ms ease;
}

.service:last-child { border-bottom: 0; }

.service:hover { background: var(--bg-paper); }

.service__grid {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.service--reverse .service__grid {
  grid-template-columns: 100px 1.2fr 1fr;
}

.service--reverse .service__visual { order: 1; }
.service--reverse .service__body { order: 0; }

.service__num {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.service__num-text {
  font-family: var(--font-num);
  font-style: italic;
  font-size: 64px;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-synthesis-style: none;
  color: var(--accent-deep);
  line-height: 1;
  letter-spacing: 0.01em;
}

.service__num-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.service__visual {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.service__shape { position: absolute; inset: 0; }

.service__shape--1 {
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(circle at 75% 75%, var(--accent) 0%, transparent 55%),
    linear-gradient(135deg, var(--bg-paper), var(--bg-alt));
}

.service__shape--1::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-radius: 50%;
  border: 1px solid var(--accent-deep);
  opacity: 0.3;
  animation: rotate 20s linear infinite;
}

.service__shape--1::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-radius: 50%;
  border: 1px solid var(--accent-deep);
  opacity: 0.5;
  animation: rotate 16s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.service__shape--2 {
  background: linear-gradient(135deg, #e8e2d0 0%, #d4cdb6 100%);
}

.service__shape--2::before {
  content: "";
  position: absolute;
  inset: 12%;
  background-image:
    linear-gradient(to right, rgba(74, 139, 154, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 139, 154, 0.4) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: 8px;
}

.service__shape--2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 50%;
  bottom: 10%;
  right: 10%;
  background: var(--accent-deep);
  border-radius: 50% 50% 0 50%;
  transform: rotate(-30deg);
  opacity: 0.85;
}

.service__shape--3 {
  background: linear-gradient(135deg, #f5e8d4, #e6d3a8);
}

.service__shape--3::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  background: repeating-linear-gradient(45deg, transparent 0, transparent 8px, rgba(74, 139, 154, 0.25) 8px, rgba(74, 139, 154, 0.25) 9px);
  border-radius: var(--radius-lg);
}

.service__shape--3::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 30%;
  top: 35%;
  left: 35%;
  background: var(--ink);
  border-radius: 50%;
}

.service__cat {
  font-family: var(--font-jp-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent-deep);
  margin-bottom: 16px;
  font-weight: 500;
  font-feature-settings: "palt";
}

.service__title {
  font-family: var(--font-jp-sans);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--ink);
  font-feature-settings: "palt";
}

.service__sub {
  font-family: var(--font-jp-serif);
  font-style: normal;
  font-weight: 500;
  font-size: 0.62em;
  color: var(--accent-deep);
  margin-left: 4px;
  letter-spacing: 0.04em;
}

.service__desc {
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service__tags li {
  font-family: var(--font-jp-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--bg-paper);
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
  font-feature-settings: "palt";
}

.service:hover .service__tags li {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  background: var(--accent-pale);
}

/* ===== Company ===== */
.company {
  padding: 160px 0;
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
}

.company__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.company__head {
  position: sticky;
  top: 120px;
}

.company__list {
  border-top: 1px solid var(--line-strong);
}

.company__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 280ms ease, background 280ms ease;
}

.company__row:hover {
  padding-left: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.company__row dt {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-jp-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-weight: 500;
  font-feature-settings: "palt";
}

.company__row dt span {
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-synthesis-style: none;
  font-size: 14px;
  color: var(--accent-deep);
  letter-spacing: 0;
}

.company__row dd {
  font-family: var(--font-jp-sans);
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  font-feature-settings: "palt";
}

/* ===== Contact ===== */
.contact {
  padding: 160px 0 200px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 212, 221, 0.32) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(74, 139, 154, 0.16) 0%, transparent 50%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.contact__inner .section__num { display: block; }

.contact__title {
  font-family: var(--font-jp-sans);
  font-size: clamp(36px, 5.6vw, 80px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  font-feature-settings: "palt";
}

.contact__title em {
  font-style: normal;
  font-family: var(--font-jp-serif);
  font-weight: 600;
  color: var(--accent-deep);
}

.contact__lead {
  color: var(--ink-soft);
  font-family: var(--font-jp-sans);
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  margin-bottom: 64px;
}

.contact__channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
  text-align: left;
}

.contact__channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}

.contact__channel:hover {
  border-color: var(--accent-deep);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(47, 99, 113, 0.25);
}

.contact__channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background 280ms ease, color 280ms ease;
}

.contact__channel-icon svg { width: 20px; height: 20px; }

.contact__channel:hover .contact__channel-icon {
  background: var(--accent-deep);
  color: var(--bg);
}

.contact__channel-label {
  font-family: var(--font-jp-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent-deep);
  font-weight: 500;
  font-feature-settings: "palt";
}

.contact__channel-value {
  font-family: var(--font-jp-sans);
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.contact__channel-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 18px;
  color: var(--ink-mute);
  transition: transform 280ms ease, color 280ms ease;
}

.contact__channel:hover .contact__channel-arrow {
  color: var(--accent-deep);
  transform: translate(4px, -4px);
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 48px;
  background: var(--ink);
  color: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 48px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer__brand img {
  width: 44px;
  height: 44px;
  filter: brightness(1.1);
}

.footer__brand-name {
  font-family: var(--font-jp-sans);
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--bg);
  font-feature-settings: "palt";
}

.footer__brand-tag {
  font-family: var(--font-jp-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: rgba(246, 243, 236, 0.6);
  margin-top: 4px;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
  justify-content: center;
}

.footer__links a {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(246, 243, 236, 0.7);
  transition: color 220ms ease;
  font-feature-settings: "palt";
  font-weight: 500;
}

.footer__links a:hover { color: var(--bg); }

.footer__copy {
  font-family: var(--font-jp-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(246, 243, 236, 0.45);
  text-align: right;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  .hero { padding: 124px 28px 80px; }

  .hero__mark {
    top: -24px;
    right: 0;
    width: clamp(96px, 14vw, 160px);
  }

  .about__grid,
  .company__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__head,
  .company__head { position: static; }

  .service__grid,
  .service--reverse .service__grid {
    grid-template-columns: 80px 1fr;
    gap: 28px;
  }
  .service__visual {
    grid-column: 1 / -1;
    margin-top: 24px;
    aspect-ratio: 16 / 9;
  }
  .service--reverse .service__visual { order: 0; }

  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero__actions { justify-content: flex-start; }

  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero__meta-item:nth-child(2) { border-right: 0; }

  .hero__scroll { display: none; }
}

@media (max-width: 960px) {
  /* === Mobile / tablet nav: pill bar + dropdown panel === */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 10px 18px;
    border-radius: 24px;
  }
  .nav.is-scrolled { padding: 8px 14px 8px 18px; }
  .nav.is-open { border-radius: 24px 24px 4px 4px; }

  /* Inner <nav> wrapper takes no space when its only child is absolute */
  .nav > nav { display: contents; }

  .nav__brand-text span { display: none; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: block;
    z-index: 101;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px;
    background: rgba(251, 249, 244, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 48px -16px rgba(21, 24, 28, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 320ms;
    z-index: 99;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
  }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    border-radius: 12px;
    border-bottom: 1px solid transparent;
    transition: background 200ms ease, color 200ms ease;
  }

  .nav__links li + li a { border-top: 1px solid var(--line); border-radius: 0; }
  .nav__links li:first-child a { border-radius: 12px 12px 0 0; }
  .nav__links li:last-child a { border-radius: 0 0 12px 12px; }
  .nav__links li:only-child a { border-radius: 12px; }

  .nav__links a::after { display: none; }

  .nav__links a:hover,
  .nav__links a:focus-visible {
    background: var(--accent-pale);
    color: var(--accent-deep);
  }

  .nav__num {
    font-size: 12px;
    color: var(--accent-deep);
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }

  .nav { top: 12px; left: 12px; right: 12px; }

  .hero { padding: 110px 20px 64px; gap: 32px; min-height: auto; }
  .hero__top { flex-direction: column; gap: 8px; align-items: flex-start; }
  .hero__loc { font-size: 11px; }

  .hero__title,
  .hero__word { font-size: clamp(32px, 9.5vw, 48px); }

  .hero__title { line-height: 1.5; letter-spacing: 0.02em; }
  .hero__mark { width: 88px; top: -16px; right: -4px; }

  .hero__meta { padding-top: 16px; gap: 18px 0; }
  .hero__meta-num { font-size: 22px; }
  .hero__meta-label { font-size: 10px; }
  .hero__meta-item { padding-right: 12px; }
  .hero__meta-item:last-child { padding-right: 0; }
  .hero__bottom { padding-top: 24px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; padding: 16px 24px; }

  .marquee__track { font-size: 16px; gap: 18px; }

  .about,
  .services,
  .company { padding: 100px 0; }

  .about__values li {
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    row-gap: 6px;
    padding: 22px 0;
  }
  .about__values-num { font-size: 24px; }

  .service { padding: 56px 0; }
  .service__grid,
  .service--reverse .service__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service__num { gap: 16px; }
  .service__num-text { font-size: 44px; }
  .service__visual { aspect-ratio: 4 / 3; }

  .company__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 4px;
  }
  .company__row dd { font-size: 16px; }

  .contact { padding: 100px 0 120px; }
  .contact__channels { grid-template-columns: 1fr; }
  .contact__title { font-size: clamp(32px, 8vw, 48px); }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .footer__links { justify-content: flex-start; flex-wrap: wrap; gap: 18px; }
  .footer__copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__word { opacity: 1; transform: none; }
  .hero__mark { opacity: 0.6; transform: rotate(-8deg); }
}
