/* =========================================================
   RAYs Holdings — v3
   ネイビー × ゴールド。明朝の見出しと光の演出で
   「光を、束ねる。」を視覚化する。
   ========================================================= */

/* ===== Design tokens ===== */
:root {
  --navy-950: #04060d;
  --navy-900: #05080f;
  --navy-800: #0a1020;
  --navy-700: #111a33;
  --line: rgba(255, 255, 255, 0.10);
  --line-gold: rgba(216, 179, 106, 0.32);
  --text: #e9edf6;
  --text-dim: #9aa3bd;
  --gold: #d8b36a;
  --gold-soft: #f0d9a4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1120px;
  --pad-x: clamp(20px, 5vw, 56px);
  --font-sans: "Noto Sans JP", sans-serif;
  --font-mincho: "Shippori Mincho", serif;
  --font-en: "Cormorant Garamond", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  /* ベース背景は html 側に置く。body に背景があると iOS Safari で
     z-index:-1 の固定背景(.backdrop)が隠れて表示されないため。 */
  background: var(--navy-900);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: transparent;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(216, 179, 106, 0.35); }

a { -webkit-tap-highlight-color: transparent; }

/* スキップリンク (フォーカス時のみ表示) */
.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.3s;
}
.skip:focus-visible { transform: none; }

/* ===== ローディング ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-950);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__ci {
  width: 120px;
  height: auto;
  animation: loaderIn 1s var(--ease) both;
}
@keyframes loaderIn { from { opacity: 0; transform: translateY(14px); } }
.loader__bar {
  width: 150px;
  height: 1px;
  margin: 26px auto 0;
  background: var(--line);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderBar 1.4s var(--ease) 0.2s forwards;
}
@keyframes loaderBar { to { transform: scaleX(1); } }

/* ===== プログレスバー ===== */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-color: var(--line);
}
.brand { text-decoration: none; line-height: 1; display: block; }
.brand__img {
  display: block;
  height: 36px;
  width: auto;
  transition: opacity 0.3s;
}
.brand:hover .brand__img { opacity: 0.8; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s;
  position: relative;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: 100px;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

.nav-toggle { display: none; }

/* ===== 画面全体に固定する背景レイヤー ===== */
/* エフェクト(光条・グロー・粒子)を内包し、ビューポートに固定して
   スクロール中も常に背後に見えるようにする。z-index:-1 で本文の背面。 */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 70% -10%, #18254c 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent; /* 背景は .backdrop に移動 */
}
/* 回転する光条 */
.hero__rays {
  position: absolute;
  top: -40%; left: 50%;
  width: 160vmax; height: 160vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 0%,
    rgba(216, 179, 106, 0.00) 0deg,
    rgba(216, 179, 106, 0.07) 2deg,
    rgba(216, 179, 106, 0.00) 5deg,
    rgba(216, 179, 106, 0.00) 12deg
  );
  -webkit-mask-image: radial-gradient(60% 60% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(60% 60% at 50% 0%, #000 0%, transparent 70%);
  animation: raySpin 70s linear infinite;
  opacity: 0.9;
}
@keyframes raySpin { to { transform: translateX(-50%) rotate(360deg); } }
.hero__glow {
  position: absolute;
  top: -10%; left: 65%;
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(216, 179, 106, 0.15), transparent 60%);
  filter: blur(20px);
  animation: glowPulse 7s ease-in-out infinite alternate;
}
@keyframes glowPulse { from { opacity: 0.5; } to { opacity: 1; } }
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
/* 右端の縦書き英字 */
.hero__side {
  position: absolute;
  right: clamp(14px, 2.6vw, 30px);
  bottom: 48px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--text-dim);
  opacity: 0.7;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-mincho);
  font-size: clamp(46px, 9vw, 116px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}
/* 一文字ずつのフェード (JSで .char に分割) */
.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(10px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.07s);
}
.hero__title.is-in .char { opacity: 1; transform: none; filter: none; }
.hero__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 640px;
  font-weight: 300;
}
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
}
.hero__scroll i {
  width: 1px; height: 56px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute; top: -60%; left: 0;
  width: 100%; height: 60%;
  background: var(--gold);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -60%; } 100% { top: 100%; } }

/* ===== Section base ===== */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 170px) var(--pad-x);
}
/* 背景の大型ナンバー */
.section[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: clamp(30px, 6vh, 70px);
  right: var(--pad-x);
  font-family: var(--font-en);
  font-size: clamp(110px, 18vw, 230px);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 179, 106, 0.14);
  pointer-events: none;
  user-select: none;
}
.section__head { margin-bottom: clamp(48px, 7vh, 72px); position: relative; }
.section__no {
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.section__title {
  font-family: var(--font-mincho);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

/* ===== 01 Message ===== */
.message__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
/* 縦書きのリードコピー */
.message__lead {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 500;
  line-height: 2.4;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  min-height: 360px;
}
.message__lead span { display: block; }
.message__text { max-width: 680px; }
.message__text p { margin-bottom: 22px; color: var(--text-dim); }
.message__sign { margin-top: 40px; line-height: 1.8; }
.message__sign span { display: block; font-size: 13px; color: var(--text-dim); }
.message__sign strong {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  letter-spacing: 0.08em;
}

/* ===== 02 Vision ===== */
.vision__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.vision__card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s;
}
.vision__card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  background: linear-gradient(180deg, rgba(216, 179, 106, 0.06), transparent);
}
.vision__label {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.vision__head {
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.vision__card p { color: var(--text-dim); font-size: 15px; }
.vision__list { list-style: none; }
.vision__list li {
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
}
.vision__list li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== 03 Role ===== */
.role__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.role__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  padding: clamp(34px, 5vh, 48px) 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s;
}
.role__item:hover { background: rgba(216, 179, 106, 0.03); }
.role__num {
  font-family: var(--font-en);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 179, 106, 0.55);
}
.role__head {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.role__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.role__body p { color: var(--text-dim); max-width: 640px; }

/* ===== 04 Group ===== */
.group__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.group__card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.group__card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 0% 0%, rgba(216, 179, 106, 0.10), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}
.group__card:hover { transform: translateY(-6px); border-color: var(--line-gold); }
.group__card:hover::before { opacity: 1; }
.group__index {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold);
  position: relative;
}
.group__index::after {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--line-gold);
  vertical-align: middle;
  margin-left: 12px;
}
.group__name {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin: 16px 0 14px;
  position: relative;
}
/* 最も長い社名「株式会社ナインステクノロジーズ」が折り返さないよう、
   先頭カードの社名だけ少し小さくする（PC・スマホ共通） */
.group__card:first-child .group__name { font-size: 16px; }
.group__desc { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; position: relative; }
.group__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.group__tags li {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  border: 1px solid rgba(216, 179, 106, 0.28);
  border-radius: 100px;
  padding: 5px 13px;
  background: rgba(216, 179, 106, 0.05);
  transition: background 0.4s, border-color 0.4s;
}
.group__card:hover .group__tags li {
  border-color: rgba(216, 179, 106, 0.5);
  background: rgba(216, 179, 106, 0.1);
}

/* ===== 05 Company ===== */
.company__table { border-top: 1px solid var(--line); }
.company__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.company__row dt {
  color: var(--gold);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.company__row dd { color: var(--text); font-weight: 300; }
.company__biz { list-style: none; counter-reset: biz; }
.company__biz li {
  counter-increment: biz;
  padding-left: 30px;
  position: relative;
  margin-bottom: 6px;
}
.company__biz li::before {
  content: counter(biz);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-en);
  color: var(--gold);
  font-size: 15px;
}

/* ===== Contact ===== */
.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--navy-800);
  text-align: center;
  padding: clamp(100px, 16vh, 180px) var(--pad-x);
}
.cta__rays {
  position: absolute;
  bottom: -60%; left: 50%;
  width: 140vmax; height: 140vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 180deg at 50% 100%,
    rgba(216, 179, 106, 0.00) 0deg,
    rgba(216, 179, 106, 0.05) 2deg,
    rgba(216, 179, 106, 0.00) 5deg,
    rgba(216, 179, 106, 0.00) 14deg
  );
  -webkit-mask-image: radial-gradient(55% 55% at 50% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(55% 55% at 50% 100%, #000 0%, transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta__en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.3em;
  color: var(--gold);
}
.cta__title {
  font-family: var(--font-mincho);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 14px 0 18px;
}
.cta__note { color: var(--text-dim); font-size: 14px; margin-bottom: 48px; }

/* ===== お問い合わせフォーム ===== */
.form {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field { margin-bottom: 22px; }
.form__field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form__req {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 10px;
  vertical-align: 1px;
}
.form__field input,
.form__field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.form__field textarea { resize: vertical; min-height: 150px; line-height: 1.8; }
.form__field input:hover,
.form__field textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--gold);
  background: rgba(216, 179, 106, 0.05);
}
/* ハニーポットは画面外へ (display:none だと bot に見破られやすい) */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form__status {
  text-align: center;
  font-size: 14px;
  min-height: 1.9em;
  margin-bottom: 10px;
}
.form__status.is-ok { color: var(--gold-soft); }
.form__status.is-error { color: #e89090; }
.form__submit {
  display: block;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--text);
  background: none;
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  padding: 15px 64px;
  cursor: pointer;
  transition: background 0.4s, color 0.4s, border-color 0.4s, opacity 0.3s;
}
.form__submit:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.form__submit:disabled { opacity: 0.4; pointer-events: none; }

/* ===== 同意チェックボックス ===== */
.form__consent { text-align: center; margin: 4px 0 26px; }
.form__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dim);
  text-align: left;
}
.form__check input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.form__check-box {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line-gold);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.form__check-box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid var(--navy-900);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.form__check input:checked + .form__check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.form__check input:checked + .form__check-box::after { transform: rotate(45deg) scale(1); }
.form__check input:focus-visible + .form__check-box {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.form__policy-link {
  font: inherit;
  color: var(--gold-soft);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form__policy-link:hover { color: var(--gold); }

/* ===== モーダル (プライバシーポリシー) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 9, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--navy-800);
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  outline: none;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 40px; height: 40px;
  font-size: 26px;
  line-height: 1;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}
.modal__close:hover { color: var(--gold); }
.modal__title {
  font-family: var(--font-mincho);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  padding-right: 32px;
}
.modal__body { color: var(--text-dim); font-size: 14.5px; line-height: 1.95; }
.modal__body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 26px 0 8px;
}
.modal__body p { margin-bottom: 12px; }
.modal__body ul { list-style: none; margin-bottom: 12px; }
.modal__body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.modal__body li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.modal__body a { color: var(--gold-soft); }
.modal__date { margin-top: 26px; font-size: 13px; color: var(--text-dim); }
/* モーダル表示中は背面のスクロールを止める */
body.modal-open { overflow: hidden; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  padding: clamp(56px, 9vh, 80px) var(--pad-x) 36px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__logo { display: block; height: 32px; width: auto; }
.footer__addr { color: var(--text-dim); font-size: 13px; margin-top: 18px; line-height: 1.8; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__nav a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--gold-soft); }
.footer__copy {
  max-width: var(--maxw);
  margin: 56px auto 0;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.24s; }
[data-reveal][data-delay="3"] { transition-delay: 0.36s; }
[data-reveal][data-delay="4"] { transition-delay: 0.48s; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  /* メニューを開いている間はヘッダーの backdrop-filter を無効化する。
     filter / backdrop-filter を持つ要素は子の position:fixed の基準枠に
     なってしまい、全画面ナビパネルがヘッダーの高さに閉じ込められて崩れるため。 */
  .header.is-scrolled.nav-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .message__body { grid-template-columns: 1fr; }
  /* 縦書きリードはモバイルでは横書きに戻す */
  .message__lead {
    writing-mode: horizontal-tb;
    min-height: 0;
    line-height: 1.8;
  }
  .vision__grid, .group__grid { grid-template-columns: 1fr; }
  .role__item { grid-template-columns: 40px 1fr; }
  /* 数字カラムと見出し内の余白を詰め、英字ラベル (FOUNDATION 等) が
     狭い端末でも折り返さない幅を確保する */
  .role__head { gap: 10px; }
  .role__en { font-size: 13px; letter-spacing: 0.12em; }
  .company__row { grid-template-columns: 1fr; gap: 6px; }
  .hero__side { display: none; }
  /* モバイルではグローが画面右外に出てしまうため、画面内に再配置して
     背景エフェクトがはっきり見えるようにする */
  .hero__glow {
    left: 50%;
    top: -6%;
    width: 95vmax;
    height: 95vmax;
    transform: translateX(-50%);
  }
  .hero__rays { opacity: 1; }
  .brand__img { height: 28px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 0 36px;
    background: rgba(4, 6, 13, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-size: 18px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    z-index: 60;
  }
  .nav-toggle span {
    display: block;
    width: 26px; height: 1.5px;
    background: var(--text);
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .char { opacity: 1; transform: none; filter: none; }
  .loader { display: none; }
  .hero__canvas { display: none; }
  html { scroll-behavior: auto; }
}
