:root {
  --dark: #0b0b0e;
  --surface: #141418;
  --surface-2: #1b1b20;
  --text: #f5f5f4;
  --muted: #9a9a9f;
  --red: #b41f24;
  --red-bright: #d9313a;
  --red-deep: #7e1418;
  --light: #f7f6f4;
  --light-2: #efece7;
  --light-text: #1a1a1c;
  --light-muted: #6b6b70;
  --line: #303038;
  --line-strong: #707078;
  --light-line: #d6d3cd;

  --header-h: 76px;
  --container: 1200px;
  --pad: clamp(20px, 5vw, 64px);

  --ff-sans: "Noto Sans JP", "ヒラギノ角ゴ Pro N", sans-serif;
  --ff-en: "Montserrat", "Noto Sans JP", sans-serif;

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--dark);
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s var(--ease);
}
.skip:focus-visible { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

[id] { scroll-margin-top: var(--header-h); }

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 150;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header:not(.scrolled) { background: linear-gradient(to bottom, rgba(11,11,14,0.55), rgba(11,11,14,0)); }
.site-header.scrolled.on-light {
  background: rgba(247, 246, 244, 0.82);
  border-bottom-color: var(--light-line);
}
.site-header.scrolled.on-light .brand-word,
.site-header.scrolled.on-light .nav-desktop a,
.site-header.scrolled.on-light .nav-desktop .nav-soon { color: var(--light-text); }
.site-header.scrolled.on-light .nav-toggle[aria-expanded="false"] span { background: var(--light-text); }
.site-header.scrolled {
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--red);
}
.header-inner {
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 34px; height: auto; aspect-ratio: 480 / 461; }
.brand .brand-mark--red { display: none; }
.site-header.scrolled.on-light .brand-mark--white { display: none; }
.site-header.scrolled.on-light .brand-mark--red { display: block; }
.brand-word {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.28em;
  color: var(--text);
  padding-left: 0.28em;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav-desktop a,
.nav-desktop .nav-soon {
  position: relative;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text);
  padding: 6px 0;
  opacity: 0.86;
  transition: opacity 0.25s var(--ease);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-desktop a:hover { opacity: 1; }
.nav-desktop a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 160;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 14, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  z-index: 155;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.mobile-nav a,
.mobile-nav .nav-soon {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
}
.mobile-nav.open a,
.mobile-nav.open .nav-soon {
  animation: mnavIn 0.5s var(--ease) forwards;
}
.mobile-nav.open nav > :nth-child(1) { animation-delay: 0.08s; }
.mobile-nav.open nav > :nth-child(2) { animation-delay: 0.16s; }
.mobile-nav.open nav > :nth-child(3) { animation-delay: 0.24s; }
.mobile-nav.open nav > :nth-child(4) { animation-delay: 0.32s; }
.mobile-nav.open nav > :nth-child(5) { animation-delay: 0.4s; }
.mobile-nav.open nav > :nth-child(6) { animation-delay: 0.48s; }
@keyframes mnavIn { to { opacity: 1; transform: none; } }

.nav-desktop .nav-soon,
.mobile-nav .nav-soon,
.footer-nav .nav-soon {
  color: var(--muted);
  cursor: default;
}

.section-dark { background: var(--dark); color: var(--text); }
.section-light { background: var(--light); color: var(--light-text); }

.section-dark, .section-light, .section-news {
  position: relative;
  overflow-x: clip;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

.sec-head {
  position: relative;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sec-ghost {
  position: absolute;
  top: 50%;
  left: -0.03em;
  transform: translateY(-58%);
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: clamp(48px, 11vw, 160px);
  max-width: 100%;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,244,0.09);
  text-stroke: 1px rgba(245,245,244,0.09);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}
.section-light .sec-ghost {
  -webkit-text-stroke: 1px rgba(26,26,28,0.08);
  text-stroke: 1px rgba(26,26,28,0.08);
}
.sec-head-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}
.sec-bar {
  display: inline-block;
  width: 42px;
  height: 3px;
  background: var(--red);
  flex: 0 0 auto;
}
.sec-title {
  margin: 0;
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 46px);
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-footer {
  background: #060608;
  color: var(--text);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: clamp(36px, 5vw, 52px);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 40px);
}
.footer-nav a,
.footer-nav .nav-soon {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  margin: 0;
  border-top: 1px solid rgba(245,245,244,0.08);
  padding: 22px var(--pad);
  text-align: center;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

.footer-address { margin: 0 auto; padding: 0 var(--pad) 24px; max-width: var(--container); color: var(--muted); font-size: 13px; }
.nav-soon small { display: inline-block; margin-left: 4px; padding: 1px 4px; font-size: 10px; border: 1px solid currentColor; white-space: nowrap; }

@media (max-width: 1040px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
}
@media (max-width: 640px) {
  .brand img { width: 30px; height: auto; }
  .brand-word { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- 下層ページ専用 ---- */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > .page-body { flex: 1 0 auto; }

.nav-desktop a[aria-current="page"] { opacity: 1; }
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav a[aria-current="page"] { color: var(--red-bright); }
.footer-nav a[aria-current="page"] { color: var(--text); }

.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
  color: var(--text);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px);
}
.page-accent {
  position: absolute;
  top: -20%;
  right: -12%;
  width: 60vw;
  height: 140%;
  background: linear-gradient(135deg, rgba(180,31,36,0.18), rgba(180,31,36,0));
  transform: skewX(-14deg);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
  z-index: -1;
}
.page-head .sec-head { margin-bottom: 0; }
.page-title { margin: 0; font-weight: 700; }
.page-title .sec-title { display: block; text-transform: uppercase; }
.page-title-jp {
  display: block;
  margin: 20px 0 0 60px;
  font-family: var(--ff-sans);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--text);
}
.page-head .sec-head-main { align-items: center; }

.page-body.section-light {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.container--narrow { max-width: calc(880px + 2 * var(--pad)); }

/* スマホのメニュー: ヘッダーのぼかし(backdrop-filter)が付くと、中の固定配置のメニューが画面でなくヘッダーの箱を基準にしてしまう。開いている間だけぼかしを外す(2026-11-29 社長「スマホ版のハンバーガーメニューがバグってる。ページの途中で押してみ」の横展開) */
.site-header:has(.mobile-nav.open) { -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }

@media (max-width: 640px) {
  .page-title-jp { margin-left: 0; margin-top: 14px; }
}

/* 今いる場所: 記事はNEWSの下にあるので、会社概要の COMPANY と同じ見た目を NEWS に出す(行き先がトップの節なので aria-current は付けない) */
.nav-desktop a.is-current { opacity: 1; }
.nav-desktop a.is-current::after { transform: scaleX(1); }
.mobile-nav a.is-current { color: var(--red-bright); }
.footer-nav a.is-current { color: var(--text); }

/* ---- お知らせ記事 ---- */
/* 本文の幅: 16pxの本文が1行40字前後で折り返す幅(656px)に抑える */
.container--article { max-width: calc(656px + 2 * var(--pad)); }

.news-article {
  font-size: 16px;
  line-height: 2;
  color: var(--light-text);
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.news-article-head {
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--light-line);
}
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--light-muted);
}
.news-date::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
}
.news-title {
  margin: 16px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.news-lead {
  margin: clamp(32px, 4vw, 48px) 0 24px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.news-article .nw { white-space: nowrap; }

.news-text p { margin: 0 0 1.25em; }
.news-text p:last-child { margin-bottom: 0; }

/* 画像・動画: 縦長の物が画面より高くならないよう、高さに上限を置いて縦横比のまま縮める */
.news-media {
  display: grid;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 48px);
}
.news-media img,
.news-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 760px);
  max-height: min(80svh, 760px);
  object-fit: contain;
  background: var(--light-2);
  margin: 0;
  border-radius: 4px;
}
.news-media video {
  aspect-ratio: 9 / 16;
  max-width: none;
}

.news-links {
  list-style: none;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
  border-top: 1px solid var(--light-line);
}
.news-links li { border-bottom: 1px solid var(--light-line); }
.news-links a {
  display: block;
  min-height: 56px;
  padding: 14px 0 14px 18px;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--light-text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.news-links a::before {
  content: "";
  position: absolute;
  left: 0;
  /* 1行目の中央(上の余白14px + 行の高さ1.7emの半分 - 線の太さの半分)。2行に折れても1行目に付く */
  top: calc(14px + 0.85em - 1px);
  width: 8px;
  height: 2px;
  background: var(--red);
}
.news-links a:hover { color: var(--red); text-decoration-color: currentColor; }

.news-back {
  margin-top: clamp(56px, 7vw, 80px);
  text-align: center;
}
.news-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 40px;
  border: 1px solid var(--light-text);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--light-text);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.news-back a:hover { background: var(--light-text); color: var(--light); }

.news-links a:focus-visible,
.news-back a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 640px) {
  .news-article { font-size: 15px; }
  .news-media { gap: 16px; }
}
