/* ============================================================
   ROOM1018 — Corporate Site
   Concept: 「静かな記念碑」 Quiet Monumental —
   特大英字ディスプレイ × 非対称12カラムグリッド × 写真のオーバーラップ。
   モダンコンサルファームの構え: 巨大な余白、ハーフブリードの写真帯、
   ダークフォトセクション、クロップされた特大フッターロゴタイプ。
   ============================================================ */

:root {
  /* Color */
  --ink: #0b1f3a;            /* headings */
  --text: #33455f;           /* body */
  --text-muted: #5a6b83;
  --brand: #0f3f8c;          /* primary brand blue */
  --brand-strong: #0b2f6b;
  --accent: #1a56c4;         /* interactive / eyebrow blue */
  --accent-bright: #2e6fe0;
  --paper: #f2f6fb;          /* light blue-gray band */
  --dark: #081c38;           /* dark navy band */
  --darkest: #060f1f;        /* footer */
  --line: #dbe3ee;
  --line-dark: rgba(190, 208, 235, 0.18);
  --white: #ffffff;

  /* Dark-band text */
  --dark-text: #c3d2e8;
  --dark-text-strong: #eef4fc;
  --dark-eyebrow: #8fb4ee;

  /* Type */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(24px, 5vw, 48px);
  --header-h: 80px;
  /* pulls an element flush to the viewport edge from inside .container */
  --bleed: calc(-1 * var(--gutter) + min(0px, calc((var(--container) - 100vw) / 2)));

  /* Rhythm */
  --section-pad: clamp(100px, 12vw, 168px);
  --grid-gap: clamp(20px, 2.6vw, 40px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-base: 0.9s;
}

/* ============================================================
   Reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html, body {
  overflow-x: clip;
}

body,
h1, h2, h3, h4, h5,
p, figure, address {
  margin: 0;
}

address {
  font-style: normal;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) :focus-visible {
  outline-color: #9cc3ff;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Base
   ============================================================ */

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  background: var(--white);
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   Section skeleton — index number + display type head
   ============================================================ */

.section {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--white); /* opaque: sections act as a curtain over the pinned hero */
}

.section--paper {
  background: var(--paper);
}

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

/* Photographic dark section: parallax image + navy wash */

.section-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.section-bg img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}

.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 28, 56, 0.92), rgba(7, 22, 46, 0.78) 40%, rgba(6, 15, 31, 0.94));
}

.section--dark > .container {
  position: relative;
  z-index: 1;
}

/* --- Section head: 01 / GIANT DISPLAY / JP title / offset lead --- */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 36px;
  align-items: end;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.section-head-main {
  grid-column: 1 / 9;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: clamp(20px, 2.6vw, 34px);
}

.section-index::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(22px, 2.8vw, 34px);
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}

.section-title::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section-lead {
  grid-column: 9 / 13;
  font-size: 15.5px;
  line-height: 2.15;
  padding-bottom: 8px;
}

.section--dark .section-eyebrow {
  color: var(--dark-text-strong);
}

.section--dark .section-title {
  color: var(--dark-text-strong);
}

.section--dark .section-index {
  color: var(--dark-eyebrow);
}

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

/* Sub-sections inside a section */

.subsection {
  margin-top: clamp(80px, 10vw, 128px);
}

.subsection:first-of-type {
  margin-top: 0;
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  margin-bottom: clamp(40px, 4.6vw, 56px);
}

.subsection-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ============================================================
   Reveal-on-scroll (progressive enhancement)
   ============================================================ */

.reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.js-off .reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-base);
  font-weight: 700;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 0 28px;
  height: 46px;
  border-radius: 2px;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0 40px;
  height: 58px;
  border-radius: 2px;
}

.btn-ghost .btn-arrow {
  transition: transform var(--dur-fast) ease;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   Header — transparent over hero, solid on scroll
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 28px rgba(8, 28, 56, 0.1);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  transition: color var(--dur-fast) ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
}

.nav-links a {
  position: relative;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  transition: color var(--dur-fast) ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-links a:hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.lang-switch a {
  color: var(--text-muted);
  padding: 4px 6px;
  transition: color var(--dur-fast) ease;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch a.is-active {
  color: var(--brand);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Transparent state (only on pages with a hero, JS on) --- */

body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) .logo {
  color: #fff;
}

body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) .nav-links a {
  color: rgba(255, 255, 255, 0.88);
}

body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) .nav-links a:hover {
  color: #fff;
}

body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) .lang-switch,
body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) .lang-switch a {
  color: rgba(255, 255, 255, 0.6);
}

body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) .lang-switch a.is-active {
  color: #fff;
}

body.has-hero .site-header:not(.is-scrolled):not(.is-nav-open) .nav-toggle span {
  background: #fff;
}

/* No-JS fallback: header sits absolutely over the hero, page scrolls past it */

html.js-off body.has-hero .site-header {
  position: absolute;
}

/* ============================================================
   Hero — full-bleed image, parallax + ambient canvas
   ============================================================ */

/* The hero is pinned with position: sticky; the sections that follow
   (opaque, z-index above) slide over it like a curtain. */

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  min-height: clamp(640px, 100vh, 920px);
  min-height: clamp(640px, 100svh, 920px);
  padding: calc(var(--header-h) + clamp(56px, 9vh, 110px)) 0 clamp(110px, 15vh, 170px);
  background: var(--dark);
  overflow: hidden;
}

/* Everything after the hero paints above it */

main > :not(.hero) {
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(5, 14, 32, 0.55), transparent 36%),
    linear-gradient(100deg, rgba(5, 14, 32, 0.93) 0%, rgba(6, 20, 45, 0.78) 42%, rgba(8, 28, 66, 0.4) 74%, rgba(10, 32, 80, 0.26) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-copy {
  max-width: 860px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #9fc1f5;
}

.hero-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.hero-title {
  margin: clamp(26px, 3.4vw, 40px) 0 clamp(28px, 3.4vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 2.15;
  color: #c9d8ee;
  margin-bottom: clamp(40px, 4.6vw, 56px);
}

/* Load-in sequence */

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-anim {
  opacity: 0;
  animation: hero-in 1s var(--ease) forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.22s; }
.hero-anim-3 { animation-delay: 0.38s; }
.hero-anim-4 { animation-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim {
    opacity: 1;
    animation: none;
  }
}

/* Scroll cue */

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 0;
  right: clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.75);
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.12));
  animation: scroll-line 2.4s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll::after {
    animation: none;
  }
}

/* ============================================================
   Full-width parallax image band
   ============================================================ */

.image-band {
  position: relative;
  height: clamp(300px, 42vw, 520px);
  overflow: hidden;
  background: var(--dark);
}

.image-band img {
  position: absolute;
  left: 0;
  top: -14%;
  width: 100%;
  height: 128%;
  object-fit: cover;
  will-change: transform;
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 28, 56, 0.18), rgba(8, 28, 56, 0) 30%, rgba(8, 28, 56, 0) 72%, rgba(8, 28, 56, 0.22));
}

/* ============================================================
   Business — overlapping editorial feature rows
   ============================================================ */

.feature-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: clamp(56px, 7vw, 104px);
}

.feature-media {
  grid-column: 1 / 9;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-left: var(--bleed);
}

.feature-row--reverse .feature-media {
  grid-column: 5 / 13;
  margin-left: 0;
  margin-right: var(--bleed);
}

.feature-media img {
  position: absolute;
  left: 0;
  top: -9%;
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

.feature-panel {
  grid-column: 8 / 13;
  grid-row: 1;
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: clamp(32px, 3.6vw, 52px) clamp(28px, 3.4vw, 52px);
  box-shadow: 0 32px 72px rgba(8, 28, 56, 0.14);
  transform: translateY(clamp(40px, 5vw, 72px));
}

.feature-row--reverse .feature-panel {
  grid-column: 1 / 6;
}

.feature-row {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.feature-en {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-panel h4 {
  font-size: clamp(21px, 2.2vw, 26px);
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  margin-bottom: 16px;
  line-height: 1.5;
}

.feature-panel p {
  font-size: 15.5px;
  line-height: 2.05;
}

.feature-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), rgba(26, 86, 196, 0));
}

/* Service lines */

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(48px, 6vw, 96px);
  row-gap: 8px;
  padding: clamp(30px, 3.6vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-fast) ease;
}

.service h4 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 19px;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  line-height: 1.6;
  transition: color var(--dur-fast) ease;
}

.service h4::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border: 1.5px solid var(--accent);
  transform: translateY(-1px) rotate(45deg);
  transition: background-color var(--dur-fast) ease;
}

.service:hover h4 {
  color: var(--accent);
}

.service:hover h4::before {
  background: var(--accent);
}

.service p {
  font-size: 15.5px;
  line-height: 2.05;
}

/* ============================================================
   AWS — steps with line icons + catalog
   ============================================================ */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brand);
  padding: 34px 30px 40px;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(8, 28, 56, 0.12);
  border-top-color: var(--accent-bright);
}

.step-icon {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 24px;
}

.step-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.step-num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.step h3 {
  font-size: 19px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.step p {
  font-size: 14.5px;
  line-height: 1.95;
}

/* Catalog */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 44px);
}

.catalog-group h4 {
  font-size: 16px;
  letter-spacing: 0.02em;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.catalog-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-group li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  transition: color var(--dur-fast) ease;
}

.catalog-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-fast) ease;
}

.catalog-group li:hover {
  color: var(--ink);
}

.catalog-group li:hover::before {
  width: 10px;
}

/* ============================================================
   Experience — dark photographic band
   ============================================================ */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line-dark);
}

.domain {
  border-top: 1px solid var(--line-dark);
  padding: 28px 0 32px;
  transition: padding-left var(--dur-fast) ease;
}

.domain h3 {
  color: var(--dark-text-strong);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.domain p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #a3b7d4;
}

/* ============================================================
   Company — table + offset photo
   ============================================================ */

.company-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: stretch;
}

.company-body {
  grid-column: 1 / 8;
}

.company-media {
  grid-column: 8 / 13;
  position: relative;
  overflow: hidden;
  margin-right: var(--bleed);
  min-height: 420px;
}

.company-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
  transition: filter var(--dur-fast) ease;
}

.company-media:hover iframe,
.company-media:focus-within iframe {
  filter: none;
}

/* touch devices have no hover — show the map in color from the start */
@media (hover: none) {
  .company-media iframe {
    filter: none;
  }
}

.company-table {
  width: 100%;
  border-top: 1px solid var(--line);
}

.company-table tr {
  border-bottom: 1px solid var(--line);
}

.company-table th,
.company-table td {
  text-align: left;
  vertical-align: top;
  padding: 26px 8px;
  font-weight: 400;
}

.company-table th {
  width: 176px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-right: 24px;
}

.company-table td {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 2;
}

/* ============================================================
   Footer — statement block with cropped giant logotype
   ============================================================ */

.site-footer {
  position: relative;
  background: var(--darkest);
  color: #a9bad4;
  padding: clamp(80px, 10vw, 120px) 0 0;
  overflow: hidden;
}

.site-footer--slim {
  padding: 44px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: clamp(48px, 6vw, 64px);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 36px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}

.footer-company {
  margin-top: 18px;
  font-size: 14px;
  line-height: 2;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  font-size: 14px;
  padding-top: 4px;
}

.footer-nav a {
  color: #c6d4ea;
  transition: color var(--dur-fast) ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: clamp(28px, 3.4vw, 44px);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #7488a8;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-lang a {
  color: #a9bad4;
  padding: 4px 6px;
  transition: color var(--dur-fast) ease;
}

.footer-lang a:hover,
.footer-lang a.is-active {
  color: #fff;
}

/* Giant cropped logotype */

/* text is injected via ::after so the low-contrast watermark
   stays out of the accessibility tree and contrast audits */
.footer-statement {
  font-family: var(--font-display);
  font-size: clamp(54px, 16.5vw, 252px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.9;
  white-space: nowrap;
  color: #10294e;
  text-align: center;
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.14em;
}

.footer-statement::after {
  content: "ROOM1018";
}


/* ============================================================
   News (LP常設セクション。記事なし時は空状態メッセージを表示)
   ============================================================ */

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

.news-empty {
  padding: clamp(40px, 5vw, 64px) 8px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================================
   404
   ============================================================ */

.error-section {
  min-height: calc(100vh - var(--header-h) - 140px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 80px) 0 120px;
}

.error-inner {
  text-align: center;
  margin: 0 auto;
  max-width: 560px;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 28px;
}

.error-title {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  margin-bottom: 16px;
}

.error-text {
  font-size: 15px;
  margin-bottom: 40px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-media {
    grid-column: 1 / 9;
  }

  .feature-panel {
    grid-column: 7 / 13;
  }

  .feature-row--reverse .feature-media {
    grid-column: 5 / 13;
  }

  .feature-row--reverse .feature-panel {
    grid-column: 1 / 7;
  }
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    row-gap: 30px;
    align-items: start;
  }

  .section-head-main,
  .section-lead {
    grid-column: 1 / -1;
  }

  .section-lead {
    padding-bottom: 0;
    max-width: 640px;
  }

  /* Feature rows stack: full-bleed image, panel pulled up over it */
  .feature-row {
    display: block;
    margin-bottom: 0;
  }

  .feature-media,
  .feature-row--reverse .feature-media {
    margin-left: var(--bleed);
    margin-right: var(--bleed);
    aspect-ratio: 16 / 9;
  }

  .feature-panel,
  .feature-row--reverse .feature-panel {
    width: min(92%, 560px);
    margin-top: -48px;
    transform: none;
    padding: 28px 26px 32px;
  }

  .feature-row + .feature-row {
    margin-top: clamp(48px, 8vw, 72px);
  }

  .service {
    grid-template-columns: 1fr;
  }

  .company-grid {
    display: block;
  }

  .company-media {
    margin-top: 48px;
    margin-left: var(--bleed);
    margin-right: var(--bleed);
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(8, 28, 56, 0.12);
    padding: 16px var(--gutter) 32px;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease, visibility var(--dur-fast);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 18px 4px;
    font-size: 16px;
  }

  .nav-links a::after {
    content: none;
  }

  /* Open mobile nav always renders on solid header colors */
  body.has-hero .site-header.is-nav-open .main-nav .nav-links a {
    color: var(--text);
  }

  .main-nav .lang-switch {
    padding: 20px 4px 24px;
  }

  .main-nav .btn-primary {
    width: 100%;
    height: 52px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero {
    min-height: clamp(560px, 94vh, 820px);
    min-height: clamp(560px, 94svh, 820px);
  }

  .hero-title {
    font-size: clamp(40px, 11.5vw, 52px);
    line-height: 1.06;
  }

  .hero-lead {
    margin-bottom: 40px;
  }

  .hero-scroll {
    right: 20px;
  }

  .btn-ghost {
    width: 100%;
    height: 54px;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .domain-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .image-band {
    height: clamp(220px, 56vw, 320px);
  }

  .company-table th,
  .company-table td {
    display: block;
    width: auto;
    padding: 0;
  }

  .company-table tr {
    display: block;
    padding: 20px 0;
  }

  .company-table th {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .company-table td {
    font-size: 15px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 40px;
  }
}
