: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)); }

/* 会社概要 */
.company-table { margin: 0; border-top: 1px solid var(--light-line); }
.company-row {
  display: grid;
  grid-template-columns: clamp(140px, 22%, 220px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--light-line);
}
.company-row dt {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--light-muted);
}
.company-row dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 2px;
  background: var(--red);
}
.company-row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--light-text);
  overflow-wrap: anywhere;
}

/* お問い合わせ */
.form {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: 12px;
  box-shadow: inset 0 3px 0 var(--red);
  padding-top: 3px;
}
.form iframe { display: block; width: 100%; border: 0; }

@media (max-width: 640px) {
  .page-title-jp { margin-left: 0; margin-top: 14px; }
  .company-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .company-row dd { font-size: 15px; }
  .form { margin: 0 calc(-1 * var(--pad)); border-width: 1px 0; border-radius: 0; }
}

.form iframe { height: 1640px; }
.form-alt { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.form-alt a { color: var(--red, #b41f24); text-decoration: underline; }
@media (max-width: 640px) { .form iframe { height: 2000px; } }
