@charset "UTF-8";
/* =====================================================
   e-NAQUEST Corporate Site — style.css
   ===================================================== */

:root {
  --bg: #f2f2f2;
  --fg: #1a1a1a;
  --bg-dark: #1a1a1a;
  --fg-dark: #f2f2f2;
  --muted: #6b6b6b;
  --blue: #0086B8;
  --blue-900: #00344A;
  --blue-700: #0086B8;
  --blue-500: #00AFEC;
  --blue-400: #33C0F0;
  --blue-300: #7FD6F5;
  --blue-200: #C2ECFA;
  --cyan: #00afec;
  --black-900: #0a0a0a;
  --black-800: #1a1a1a;
  --black-700: #2b2b2b;
  --black-600: #3a3a3a;

  --font-en: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 60px);
  --section-gap: clamp(80px, 12vw, 160px);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--fg); color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- type helpers ---------- */
.section-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 6px;
}
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.77,0,.18,1);
}
.arrow-link:hover::after { transform: scaleX(1); transform-origin: left; }
.arrow-link .arrow { transition: transform .3s ease; }
.arrow-link:hover .arrow { transform: translate(3px, -3px); }
.arrow-link-light { color: var(--fg-dark); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 130;               /* モーダルナビ(120)より上：ロゴと閉じるボタンを見せる */
  height: var(--header-h);
  background: rgba(242,242,242,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s ease, color .3s ease;
}
.site-header.is-dark-context { background: rgba(26,26,26,.82); color: var(--fg-dark); }
body.nav-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--fg-dark); }
body.nav-open .logo-img-dark { display: none; }
body.nav-open .logo-img-light { display: block; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  padding: 0 var(--gutter);
}
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-en);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  font-size: 22px;
}
.logo-img { height: 48px; width: auto; }
.logo-img-light { display: none; }
.site-header.is-dark-context .logo-img-dark { display: none; }
.site-header.is-dark-context .logo-img-light { display: block; }
.tagline {
  font-family: var(--font-en);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: .65;
}
.nav-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  padding: 0 6px;
  position: relative; z-index: 130;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span { background: var(--fg-dark); }
.nav-toggle[aria-expanded="true"] { color: var(--fg-dark); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.global-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  color: var(--fg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s .4s;
  z-index: 120;
}
.global-nav.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.global-nav ul li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-en);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 8px 0;
  border-bottom: 1px solid rgba(242,242,242,.15);
  transition: padding-left .3s;
}
.global-nav ul li a:hover { padding-left: 12px; color: var(--cyan); }
.nav-num { font-size: 12px; letter-spacing: .1em; color: rgba(242,242,242,.5); }
.nav-foot { margin-top: 40px; font-size: 12px; line-height: 1.8; color: rgba(242,242,242,.6); }
.nav-foot a { display: inline-block; margin-top: 6px; font-family: var(--font-en); color: var(--fg-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-clock {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  right: var(--gutter);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1;
  z-index: 2;
  mix-blend-mode: difference;
  color: #fff;
}
.collage { width: 100%; height: 100%; }
/* intro = hero + catch sharing one background */
.intro { position: relative; overflow: hidden; background: var(--bg); }
.intro-bg { position: absolute; inset: 0; z-index: 0; }
.collage-intro { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.noise {
  position: absolute; inset: 0;
  z-index: 0;                 /* 三角の後ろ */
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .22;
}
@media (max-width: 820px), (pointer: coarse) {
  .noise { display: none; }
}
.hero-news {
  position: relative;
  z-index: 2;
  margin: 0 var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 40px;
  background: var(--bg);
  padding: 22px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  max-width: 1000px;
  align-items: center;
}
.news-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.news-label { font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; font-weight: 600; }
.news-link {
  font-size: 13px;
  line-height: 1.7;
  border-bottom: 1px solid currentColor;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .3s;
}
.news-link:hover { opacity: .6; }
.hero-brand { font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; font-weight: 600; justify-self: end; }

/* ---------- catch ---------- */
.catch {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-gap) var(--gutter);
}
.catch-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.catch-copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(30px, 5.5vw, 68px);
  line-height: 1.15;
  letter-spacing: .06em;
  height: max-content;
  max-height: 72vh;
  margin: 0 auto;
}
.catch-line { display: block; }
.catch-line + .catch-line { margin-right: .4em; }
.mark {
  background: var(--bg);
  color: var(--fg);
  padding: .3em .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mark-accent { background: var(--fg); color: var(--bg); }
.catch-sub {
  writing-mode: horizontal-tb;
  font-size: 13px;
  letter-spacing: .12em;
  background: var(--bg);
  padding: 4px 12px;
}

/* ---------- photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 var(--gutter);
  margin: var(--section-gap) auto;
  max-width: 1400px;
}
.photo-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1328 / 1760; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.photo-item:hover img { transform: scale(1.04); }
.photo-caption {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: .2em; font-weight: 600;
  color: var(--bg); background: var(--fg); padding: 4px 10px; border-radius: 999px;
}

/* ---------- about ---------- */
.about { position: relative; padding: var(--section-gap) 0; overflow: hidden; }
.about-tri {
  position: absolute;
  left: 4vw; top: 0;
  width: min(60vw, 720px);
  height: 100%;
  z-index: 0;
  opacity: .95;
}
.about-tri svg { width: 100%; height: 100%; }
.about-inner { position: relative; z-index: 1; max-width: 760px; margin-left: 0; }
.about-name { font-family: var(--font-en); font-weight: 400; font-size: clamp(30px, 4vw, 48px); letter-spacing: .04em; line-height: 1.1; }
.about-geo { font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; margin: 18px 0 44px; color: var(--muted); }
.about-list { display: grid; gap: 8px; margin-bottom: 44px; }
.about-list li { font-family: var(--font-en); font-size: clamp(18px, 2vw, 24px); font-weight: 400; letter-spacing: .01em; }
.about-list .num { display: inline-block; width: 2.4em; }
.about-text { max-width: 640px; font-size: 14px; line-height: 2.2; margin-bottom: 48px; }

/* ---------- service (dark) ---------- */
.service {
  background: var(--bg-dark);
  color: var(--fg-dark);
  padding: var(--section-gap) 0;
}
.service-item {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid rgba(242,242,242,.12);
}
.service-item:last-child { border-bottom: 1px solid rgba(242,242,242,.12); }
.service-visual { max-width: 320px; }
.service-visual img { width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.service-body { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; }
.service-num { font-family: var(--font-en); font-size: 14px; letter-spacing: .08em; padding-top: 6px; color: rgba(242,242,242,.6); }
.service-title { grid-column: 2; font-family: var(--font-en); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: .01em; line-height: 1.3; margin-bottom: 28px; }
.service-text { grid-column: 2; font-size: 14px; line-height: 2.2; max-width: 600px; color: rgba(242,242,242,.85); }
.service-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.service-tags li {
  font-size: 12px;
  letter-spacing: .06em;
  padding: 4px 12px;
  border: 1px solid rgba(242,242,242,.3);
  border-radius: 999px;
  line-height: 1.6;
}

/* ---------- works ---------- */
.works { padding: var(--section-gap) 0; }
.works > .container { max-width: none; padding: 0 40px; }   /* タイトル等をカードの左端（40px）に揃える */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw 2.2vw;   /* 参考サイトと同じ、画面幅に比例 */
  padding: 0 40px;  /* 左右 各 40px */
  width: 100%;
}
.work-card a { display: block; }
.work-thumb {
  aspect-ratio: 620 / 525;   /* 参考サイトのカード比率 ≈ 1.18 : 1 */
  border-radius: 0;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 14px;
  position: relative;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.work-card a:hover .work-thumb { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-thumb.is-placeholder img { display: none; }
.work-thumb.is-placeholder { background: linear-gradient(160deg, var(--black-700) 0 55%, var(--blue-700) 55% 100%); }
.work-thumb.is-video { background: var(--black-900); }
.work-thumb.is-video::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.55); z-index: 1; }
.work-thumb.is-video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px; border-style: solid; border-width: 11px 0 11px 20px; border-color: transparent transparent transparent #fff; z-index: 2; }
.work-thumb .ph-domain { font-family: var(--font-en); font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.7); position: absolute; left: 16px; top: 14px; z-index: 1; }
.work-tag { font-family: var(--font-en); font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.85); position: absolute; left: 14px; bottom: 12px; z-index: 3; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.work-name { font-size: 15px; letter-spacing: .04em; margin-top: 10px; line-height: 1.6; }
.works-note { font-size: 12px; color: var(--muted); margin-top: 48px; }
.works-error { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.works-more { text-align: center; margin-top: 56px; }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(160px, 22vw, 320px) 0 var(--section-gap); overflow: hidden; }
.contact-collage { position: absolute; left: 0; right: 0; top: 0; height: clamp(260px, 30vw, 460px); z-index: 0; }
.contact-card {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  color: var(--fg-dark);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 88px) clamp(28px, 6vw, 96px);
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.contact-card .section-title { margin-bottom: 32px; }
.contact-text { font-size: 14px; line-height: 2.2; max-width: 560px; margin-bottom: 44px; color: rgba(242,242,242,.85); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.contact-tel { font-family: var(--font-en); font-size: 15px; letter-spacing: .06em; color: rgba(242,242,242,.7); }
.contact-card { display: grid; grid-template-columns: 1fr clamp(200px, 26vw, 300px); column-gap: clamp(24px, 4vw, 56px); align-items: center; }
.contact-card .section-title, .contact-card .contact-text, .contact-card .contact-actions { grid-column: 1; }
.contact-illust { grid-column: 2; grid-row: 1 / span 3; align-self: center; pointer-events: none; }
.contact-illust img { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }

/* ---------- company ---------- */
.company { padding: var(--section-gap) 0; }
.company-table { max-width: 860px; border-top: 1px solid rgba(26,26,26,.15); }
.company-table > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26,26,26,.15);
  font-size: 14px;
  line-height: 1.9;
}
.company-table dt { font-weight: 500; letter-spacing: .06em; }
.company-table dd a { border-bottom: 1px solid currentColor; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--fg-dark); padding: 72px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 60px; width: auto; }
.footer-address { font-size: 12px; line-height: 1.9; color: rgba(242,242,242,.7); }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { font-family: var(--font-en); font-size: 13px; letter-spacing: .1em; position: relative; }
.footer-nav a:hover { color: var(--cyan); }
.footer-nav-sub a { font-family: var(--font-jp); font-size: 12px; letter-spacing: .04em; color: rgba(242,242,242,.7); }
.footer-bottom { margin-top: 64px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.footer-bin { font-family: var(--font-en); font-size: 9px; letter-spacing: .15em; color: rgba(242,242,242,.35); }
.copyright { font-family: var(--font-en); font-size: 11px; letter-spacing: .06em; color: rgba(242,242,242,.6); }

/* ---------- collage animation ---------- */
.collage .tri, .about-tri .tri {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
  animation: drift calc(7s + var(--i, 1) * .9s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 1) * -1.1s);
}
.collage .tri:nth-child(even) { animation-name: drift-alt; }
.collage .tri:nth-child(3n) { animation-name: drift-spin; }
@keyframes drift {
  0%   { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(0deg) scale(1); }
  50%  { transform: translate(calc(var(--px, 0px) + 4%), calc(var(--py, 0px) - 7%)) rotate(6deg) scale(1.06); }
  100% { transform: translate(calc(var(--px, 0px) - 3%), calc(var(--py, 0px) + 5%)) rotate(-5deg) scale(.96); }
}
@keyframes drift-alt {
  0%   { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(0deg) scale(1); }
  50%  { transform: translate(calc(var(--px, 0px) - 6%), calc(var(--py, 0px) + 4%)) rotate(-9deg) scale(1.08); }
  100% { transform: translate(calc(var(--px, 0px) + 5%), calc(var(--py, 0px) - 3%)) rotate(7deg) scale(.95); }
}
@keyframes drift-spin {
  0%   { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(0deg) scale(1); }
  50%  { transform: translate(calc(var(--px, 0px) + 3%), calc(var(--py, 0px) + 6%)) rotate(14deg) scale(1.1); }
  100% { transform: translate(calc(var(--px, 0px) - 4%), calc(var(--py, 0px) - 4%)) rotate(-12deg) scale(.94); }
}
/* intro: entrance on load, then the same drift */
.collage-intro .tri {
  animation: hero-in 1.3s cubic-bezier(.2,.8,.2,1) both,
             drift calc(7s + var(--i, 1) * .9s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 1) * 45ms), calc(1.3s + var(--i, 1) * 45ms);
}
.collage-intro .tri:nth-child(even) { animation-name: hero-in, drift-alt; }
.collage-intro .tri:nth-child(3n) { animation-name: hero-in, drift-spin; }
@keyframes hero-in {
  0%   { opacity: 0; transform: translate(calc(var(--px, 0px) - 8%), calc(var(--py, 0px) + 14%)) rotate(-14deg) scale(.5); }
  100% { opacity: 1; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(0deg) scale(1); }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .collage .tri, .about-tri .tri { animation: none; opacity: 1; }
  .noise { display: none; }
  .arrow-link::after, .arrow-link .arrow, .work-thumb { transition: none; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  body { font-size: 14px; }
  .tagline { display: none; }
  .logo-img { height: 40px; }
  .hero-clock { top: calc(var(--header-h) + 4px); }
  .hero-news { grid-template-columns: 1fr; margin-bottom: 24px; padding: 18px 20px; }
  .hero-brand,   .news-card { grid-template-columns: 1fr; }
  .news-link { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .photo-strip { gap: 8px; }
  .about-tri { left: 0; width: 90vw; }
  .service-item { grid-template-columns: 1fr; gap: 28px; }
  .service-visual { max-width: 240px; }
  .service-body { grid-template-columns: 1fr; }
  .service-num { padding-top: 0; }
  .service-title, .service-text, .service-tags { grid-column: 1; }
  .work-name { font-size: 11px; margin-top: 8px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-illust { grid-column: 1; grid-row: auto; width: 220px; margin: 28px auto 0; }
  .company-table > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
  .footer-nav { gap: 28px; }
}
@media (max-width: 480px) {
  .catch { min-height: 0; padding: 120px var(--gutter); }
  .catch-inner { gap: 32px; }
  .catch-copy { font-size: clamp(30px, 9vw, 40px); }
  .photo-strip { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .photo-item { border-radius: 8px; }
}

/* =====================================================
   Modal (NEWS / CONTACT)
   ===================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .3s ease; }
.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 100%);
  overflow: auto;
  background: var(--bg-dark);
  color: var(--fg-dark);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: rise .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border: 1px solid rgba(242,242,242,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: border-color .3s, background .3s;
}
.modal-close:hover { border-color: var(--cyan); background: rgba(0,175,236,.12); }
.modal-close span { position: absolute; width: 16px; height: 1.5px; background: var(--fg-dark); }
.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }
/* VIDEO modal: 16:9 プレイヤーを主役に、余白は最小限 */
.modal-video .modal-panel { width: min(1080px, 100%); padding: 0; background: #000; border-radius: 12px; overflow: hidden; }
.modal-video .modal-close { top: 12px; right: 12px; z-index: 2; background: rgba(0,0,0,.45); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-notice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; color: var(--fg-dark); font-size: 14px; line-height: 1.9; }
.video-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 24px 20px; background: var(--bg-dark); color: var(--fg-dark); }
.video-title { font-size: 15px; font-weight: 500; margin: 0; flex: 1 1 auto; }
.video-meta .modal-label { margin: 0; }
.modal-label { font-family: var(--font-en); font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--cyan); }
.modal-title { font-family: var(--font-en); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin: 8px 0 20px; }
.modal-lead { font-size: 13px; line-height: 2; color: rgba(242,242,242,.8); margin-bottom: 28px; }
.modal-lead a { border-bottom: 1px solid currentColor; }
.modal-loading { font-size: 13px; color: rgba(242,242,242,.6); }

/* news */
.news-detail { border-top: 1px solid rgba(242,242,242,.15); padding-top: 24px; }
.news-date { font-family: var(--font-en); font-size: 12px; letter-spacing: .1em; color: rgba(242,242,242,.6); }
.news-heading { font-size: clamp(16px, 2vw, 20px); font-weight: 500; line-height: 1.7; margin: 8px 0 20px; }
.news-body { font-size: 14px; line-height: 2.1; color: rgba(242,242,242,.88); }
.news-body p + p, .news-body ul { margin-top: 12px; }
.news-body ul { padding-left: 1.3em; list-style: disc; }
.news-body li + li { margin-top: 4px; }
.news-list { margin-top: 32px; border-top: 1px solid rgba(242,242,242,.15); }
.news-list:empty { display: none; }
.news-list li { border-bottom: 1px solid rgba(242,242,242,.12); }
.news-list button { width: 100%; text-align: left; display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; font-size: 13px; line-height: 1.7; transition: color .3s; }
.news-list button:hover { color: var(--cyan); }
.news-list button[aria-current="true"] { color: var(--cyan); }
.news-list .news-date { padding-top: 2px; }

/* contact form */
.contact-form { border-top: 1px solid rgba(242,242,242,.15); padding-top: 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 12px; letter-spacing: .08em; margin-bottom: 8px; color: rgba(242,242,242,.85); }
.req { display: inline-block; font-size: 10px; letter-spacing: .1em; padding: 1px 6px; margin-left: 6px; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 999px; vertical-align: 1px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row select, .form-row textarea {
  width: 100%;
  background: rgba(242,242,242,.06);
  border: 1px solid rgba(242,242,242,.22);
  border-radius: 8px;
  color: var(--fg-dark);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  padding: 12px 14px;
  transition: border-color .3s, background .3s;
}
.form-row select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(242,242,242,.7) 50%), linear-gradient(135deg, rgba(242,242,242,.7) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form-row select option { color: var(--fg); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--cyan); background: rgba(0,175,236,.08); }
.form-row.is-invalid input, .form-row.is-invalid select, .form-row.is-invalid textarea { border-color: #ff5a5a; }
.form-error { font-size: 12px; color: #ff8a8a; margin-top: 6px; min-height: 0; line-height: 1.6; }
.form-error:empty { display: none; }
.form-row-check label { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .04em; cursor: pointer; }
.form-row-check input { width: 18px; height: 18px; accent-color: var(--cyan); }
.form-status { font-size: 13px; line-height: 1.8; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff8a8a; }
.form-actions { margin-top: 20px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-jp); font-weight: 500; font-size: 15px; letter-spacing: .1em;
  background: var(--fg-dark); color: var(--bg-dark);
  padding: 14px 32px; border-radius: 999px;
  transition: background .3s, transform .3s;
}
.btn-submit:hover { background: var(--cyan); color: #fff; transform: translateY(-2px); }
.btn-submit[disabled] { opacity: .5; cursor: wait; transform: none; }
.btn-submit .arrow { transition: transform .3s; }
.btn-submit:hover .arrow { transform: translate(3px, -3px); }
.form-done { border-top: 1px solid rgba(242,242,242,.15); padding-top: 28px; font-size: 14px; line-height: 2; }
.form-done[hidden] { display: none; }
.form-done-title { font-family: var(--font-en); font-size: 24px; margin-bottom: 12px; }
.form-done .arrow-link { margin-top: 24px; color: var(--fg-dark); }
body.modal-open { overflow: hidden; }
button.news-link { font: inherit; text-align: left; padding: 0; }

@media (max-width: 820px) {
  .modal { padding: 12px; align-items: flex-end; }
  .modal-video { align-items: center; }
  .modal-video .modal-panel { border-radius: 10px; }
  .modal-panel { max-height: 92vh; border-radius: 16px 16px 12px 12px; }
  .news-list button { grid-template-columns: 1fr; gap: 2px; }
  .news-link { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-panel { animation: none; }
}
