/* ──────────────────────────────────────────────────────────────────
   Uto, Inc. — shared styles for the News pages
   Brand: Uto Black #000000 / Uto Gray #a9bcc9 / Uto Red #ff5457
   Mirrors the tokens & primitives from index.html so the News surface
   matches the homepage without touching its inline stylesheet.
   ────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --black: #000000;
  --gray:  #a9bcc9;
  --red:   #ff5457;

  /* Tonal scaffolding */
  --white:       #ffffff;
  --paper:       #fafafa;
  --paper-2:     #f4f5f7;
  --gray-soft:   #e6ecf0;
  --gray-mute:   #cfd9e0;
  --ink:         #0b0b0c;
  --ink-soft:    #2c2d30;
  --ink-mute:    #6b7280;
  --ink-faint:   #a3a8b3;
  --rule:        #e5e7eb;

  /* Type */
  --display: "Outfit", "Zen Kaku Gothic New", -apple-system, system-ui, sans-serif;
  --body:    "Hanken Grotesk", "Zen Kaku Gothic New", -apple-system, system-ui, sans-serif;
  --jp:      "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 88px);
  --maxw: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--white); color: var(--ink); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.8;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "palt" 1, "ss01" 1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--red); color: var(--white); }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: 0.02em; }
:lang(ja), .jp { font-family: var(--jp); letter-spacing: 0.02em; }

/* ── Layout primitives ────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .num {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--red);
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }
h2.jp { font-family: var(--jp); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
h3 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.3; }

/* ── Brand logo ───────────────────────────────────────────────── */
.uto-logo {
  display: inline-flex;
  align-items: center;
  height: 30px;
  transition: opacity 220ms ease;
}
.uto-logo:hover { opacity: 0.78; }
.uto-logo img.horizontal { height: 30px; width: auto; display: block; }

/* ── Top nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  pointer-events: none;
  transition: background 360ms ease, backdrop-filter 360ms ease, padding 280ms ease, border-color 280ms ease, box-shadow 360ms ease;
  border-bottom: 1px solid transparent;
}
.nav > * { pointer-events: auto; }
.nav.is-scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--rule);
  padding-block: 14px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(14px, 2.4vw, 36px);
  align-items: center;
}
.nav ul a {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink-soft);
  transition: right 280ms cubic-bezier(.2,.8,.2,1);
}
.nav ul a:hover { color: var(--black); }
.nav ul a:hover::after { right: 0; }
.nav ul a.is-current { color: var(--black); }
.nav ul a.is-current::after { right: 0; background: var(--red); }


.nav .cta {
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--white);
  padding: 10px 20px 10px 22px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.nav .cta::after {
  content: "→";
  font-weight: 400;
  transition: transform 240ms ease;
}
.nav .cta:hover { background: var(--red); border-color: var(--red); }
.nav .cta:hover::after { transform: translateX(4px); }

.nav-mobile { display: none; }

/* ── Mobile menu (hamburger) ─────────────────────────────────── */
.nav-burger { display: none; }
.nav-drawer { display: none; }
body.nav-locked { overflow: hidden; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
  border: 1.5px solid var(--black);
}
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid::after { content: "→"; transition: transform 280ms ease; }
.btn--solid:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn--solid:hover::after { transform: translateX(6px); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost::after { content: "↗"; transition: transform 280ms ease; }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--ghost:hover::after { transform: translate(2px, -2px); }

/* ── Reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.8,.2,1), transform 900ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   News surface
   ══════════════════════════════════════════════════════════════ */

.news-page { padding-top: 130px; }

/* Page header (list + article share this) */
.news-head {
  padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 0.5px solid var(--rule);
}
.news-head h1 {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: -0.01em;
  line-height: 1.16;
  margin-top: 22px;
  color: var(--black);
}
.news-head h1 small {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  margin-top: 12px;
}

/* ── List ─────────────────────────────────────────────────────── */
.news-list {
  list-style: none;
  padding: clamp(8px, 2vw, 20px) 0 clamp(72px, 9vw, 132px);
}
.news-item {
  border-bottom: 0.5px solid var(--rule);
}
.news-item a {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.news-item a:hover { transform: translateY(-1px); }
/* リンクを持たない告知項目（リニューアル・ISMS 等）— カードと同じグリッドで静的表示 */
.news-item-static {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
}
.news-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-date {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  font-feature-settings: "tnum" 1;
}
.news-cat {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 0.5px solid var(--gray-mute);
  border-radius: 4px;
  padding: 3px 9px;
}
.news-body h2 {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: -0.005em;
  line-height: 1.4;
  color: var(--black);
}
.news-body h2 .en {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 6px;
}
.news-body p {
  margin-top: 12px;
  font-family: var(--jp);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 56ch;
}
.news-read {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
  align-self: center;
  transition: color 200ms ease;
}
.news-read::after { content: " →"; transition: margin 240ms ease; }
.news-item a:hover .news-read { color: var(--black); }
.news-item a:hover .news-read::after { margin-left: 4px; }

/* ── Article ──────────────────────────────────────────────────── */
.article {
  padding: clamp(36px, 5vw, 64px) 0 clamp(72px, 9vw, 132px);
}
.article-wrap { max-width: 720px; }
.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.article-eyebrow .news-cat { color: var(--red); border-color: rgba(255,84,87,0.5); }
.article h1 {
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: var(--black);
}
.article-body {
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.article-body > * + * { margin-top: 1.4em; }
.article-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--black);
  margin-top: 2.2em;
}
.article-body ul { padding-left: 1.3em; }
.article-body li { margin-top: 0.5em; }
.article-body li::marker { color: var(--red); }
.article-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--gray-mute);
  transition: border-color 200ms ease;
}
.article-body a:hover { border-bottom-color: var(--ink); }
.article-body strong { font-weight: 700; color: var(--black); }
.article-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-2);
  border: 0.5px solid var(--rule);
  border-radius: 4px;
  padding: 1px 6px;
}

.article-foot {
  max-width: 720px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.article-back {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 200ms ease;
}
.article-back::before { content: "← "; }
.article-back:hover { color: var(--black); }

.article-md {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  transition: color 200ms ease;
}
.article-md::before { content: "›"; margin-right: 5px; color: var(--ink-faint); }
.article-md:hover { color: var(--black); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 36px var(--pad-x) 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.footer .uto-logo {
  filter: brightness(0) invert(1);
  height: 22px;
  opacity: 0.9;
}
.footer .uto-logo img.horizontal { height: 22px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav ul { display: none; }
  .nav .cta { display: none; }
  .nav-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-weight: 500;
    font-size: 13px;
    color: var(--black);
  }
  .nav-mobile::after { content: "→"; color: var(--red); }

  /* ハンバーガー：別ページ(Team/News 等)へのモバイル導線。Contact は drawer 内に集約 */
  .nav-mobile { display: none; }
  .uto-logo { position: relative; z-index: 55; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 55;
    background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: transform 240ms ease, opacity 180ms ease; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-drawer {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; z-index: 45;
    background: #fff; padding: 84px clamp(20px, 6vw, 32px) 28px;
    transform: translateY(-100%); visibility: hidden;
    transition: transform 340ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 340ms;
    border-bottom: 0.5px solid var(--rule); box-shadow: 0 24px 48px -28px rgba(0,0,0,0.3);
  }
  .nav-drawer.is-open { transform: translateY(0); visibility: visible; transition: transform 340ms cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .nav-drawer a {
    font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--black);
    letter-spacing: 0.02em; padding: 15px 2px; border-bottom: 0.5px solid var(--rule);
  }
  .nav-drawer a:last-child { border-bottom: 0; color: var(--red); }

  .news-item a,
  .news-item-static {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .news-meta { flex-direction: row; align-items: center; gap: 14px; }
  .news-read { align-self: flex-start; }
}
