/* 東京の夕景を1枚、ページ全体の背景に敷く。スクロールで空から街へ降りていく。
   骨格は企業サイトの標準(ヘッダー、ボタン、カード、会社概要の表、フッター)のまま、面をガラスにする。 */
:root {
  --night: #0B1022;
  --ink: #FFFFFF;
  --sub: rgba(235, 240, 255, .74);
  --faint: rgba(235, 240, 255, .5);
  --line: rgba(255, 255, 255, .16);
  --glass: rgba(18, 24, 48, .42);
  --glass-strong: rgba(14, 19, 40, .62);
  --glass-edge: rgba(255, 255, 255, .18);
  --accent: #E2E6FF;
  --sunset: #FFB27A;
  --sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--night); }
body {
  margin: 0;
  /* 背景色は html だけに持たせる(body に塗ると最背面の写真が隠れる) */
  color: var(--ink);
  font: 400 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
.en { display: block; color: var(--sub); font-size: .875rem; line-height: 1.6; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 背景: 画面に固定し、JS が上へ送る ---------- */
.scene {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; background: var(--night);
}
.scene img {
  position: absolute; top: 0; left: 0;
  width: 100%; max-width: none;
  /* 縦長の写真を、画面より十分高く敷く(横幅いっぱい、または画面の 1.7 倍の高さ) */
  height: max(170vh, 204.4vw);
  object-fit: cover; object-position: 50% 0;
  transform: translate3d(0, calc(var(--shift, 0) * -1px), 0);
  will-change: transform;
}
/* 文字が読めるよう、上は薄く、下ほど夜に沈める */
.scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,34,.45) 0%, rgba(11,16,34,.15) 30%, rgba(11,16,34,.35) 70%, rgba(11,16,34,.7) 100%);
}

/* ---------- ロゴ ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 "Inter", sans-serif; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; }
.logo rect { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.35); stroke-width: 2; }
.logo path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 34, .28);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.gnav ul { display: flex; gap: 40px; }
.gnav a { display: flex; flex-direction: column; align-items: center; line-height: 1.3; transition: opacity .2s; }
.gnav .en { color: var(--ink); font-size: 15px; font-weight: 500; }
.gnav .ja { font-size: 11px; color: var(--faint); }
.gnav a:hover { opacity: .7; }
.menu-btn { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  font-size: 15px; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: #fff; color: #11152A; }
.btn-primary:hover { background: #E6E9FF; }
.btn-ghost {
  border: 1px solid var(--glass-edge); background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn:focus-visible, .gnav a:focus-visible, .menu-btn:focus-visible, .scroll-cue:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- ガラスの面 ---------- */
.glass, .about-grid, .domains li, .product, .company-table {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px rgba(0,0,0,.5);
}

/* ---------- Hero ---------- */
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100svh - var(--header-h)); padding-top: 48px; padding-bottom: 120px;
}
.hero-copy { text-shadow: 0 2px 24px rgba(8, 12, 30, .45); }
.eyebrow { font: 600 13px/1 "Inter", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: .85; margin-bottom: 24px; }
.hero h1 { max-width: 8.6em; font-size: clamp(32px, 5.4vw, 72px); font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
.hero h1 .en { margin-top: 18px; color: var(--ink); opacity: .85; font-size: clamp(15px, 1.4vw, 19px); font-weight: 400; letter-spacing: 0; }
.lead { max-width: 30em; margin-top: 28px; color: var(--ink); opacity: .9; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; text-shadow: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 40px; translate: -50% 0;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--glass-edge); background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(183, 193, 255, .35);
}
html.motion .scroll-cue span { animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { margin-bottom: 40px; text-shadow: 0 2px 20px rgba(8, 12, 30, .5); }
.label { font: 600 13px/1 "Inter", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); opacity: .9; }
.section-head h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.4; }
.sub-head {
  display: flex; align-items: center; gap: 16px;
  margin: 72px 0 24px; font-size: 18px; font-weight: 700;
}
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px;
}
.statement { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.6; }
.about-text p + p { margin-top: 16px; }
.about-text .en { font-size: 14px; }
.origin { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }

.domains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.domains li { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border-radius: 22px; }
.num { font: 600 14px/1 "Inter", sans-serif; color: var(--accent); }
.d-name { font-size: 20px; font-weight: 700; line-height: 1.4; }
.d-name .en { display: inline; margin-left: 10px; font-size: 13px; font-weight: 400; }
.domains li > p:not(.d-name) { color: var(--sub); font-size: 15px; flex: 1; }
.status {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--sub); font-size: 12px; font-weight: 500;
}
.status.is-live { border-color: rgba(255,178,122,.5); color: var(--sunset); background: rgba(255,178,122,.1); }

/* ---------- Works ---------- */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden; border-radius: 28px;
}
.product-visual {
  display: grid; place-items: center; padding: 56px;
  background:
    radial-gradient(90% 70% at 15% 10%, rgba(239,229,219,.9) 0%, rgba(239,229,219,0) 50%),
    linear-gradient(150deg, #A39CAC 0%, #7C7A90 45%, #3A4154 100%);
}
.product-visual img { width: min(260px, 70%); border-radius: 22%; box-shadow: 0 30px 60px -20px rgba(20,24,40,.55); }
.product-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(32px, 5vw, 56px); }
.tags { display: flex; gap: 8px; }
.tag { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--sub); font-size: 12px; font-weight: 500; }
.tag-live { border-color: rgba(255,178,122,.5); color: var(--sunset); background: rgba(255,178,122,.1); }
.product h3 { font: 600 clamp(32px, 3.6vw, 44px)/1.15 "Inter", sans-serif; letter-spacing: -.02em; }
.product-lead { font-size: 18px; font-weight: 700; }
.product-body > p:not(.tags):not(.product-lead):not(.en) { color: var(--sub); font-size: 15px; }
.product-body .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Company ---------- */
.company-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 28px; overflow: hidden; background: var(--glass-strong); }
.company-table th, .company-table td { padding: 26px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { width: 260px; padding-left: clamp(24px, 4vw, 48px); padding-right: 24px; font-size: 15px; font-weight: 700; }
.company-table td { padding-right: clamp(24px, 4vw, 48px); }
.company-table th .en { font-weight: 400; font-size: 13px; }
.company-table td .en { margin-top: 6px; }

/* ---------- フッター ---------- */
.site-footer {
  padding: 56px 0 40px;
  background: rgba(8, 11, 24, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.footer-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px 48px; }
.site-footer nav ul { display: flex; justify-content: flex-end; gap: 32px; font-size: 14px; }
.site-footer nav a { color: var(--sub); transition: color .2s; }
.site-footer nav a:hover { color: #fff; }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font: 400 13px/1 "Inter", sans-serif; color: var(--faint); }

/* ---------- 現れ方: JS が動くときだけ ---------- */
html.motion .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
html.motion .reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }

/* ---------- タブレット・スマートフォン ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .domains { grid-template-columns: 1fr; gap: 14px; }
  .product { grid-template-columns: 1fr; }
  .product-visual { padding: 40px; }
}
@media (max-width: 760px) {
  .menu-btn {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  html.js .gnav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11, 16, 34, .9);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  html.js .gnav:not(.is-open) { display: none; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .gnav .en { font-size: 17px; }
  .gnav .ja { font-size: 12px; }
  /* JS が動かないときは、メニューボタンを出さずにナビをそのまま並べる */
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; }
  html:not(.js) .gnav ul { flex-direction: row; gap: 20px; }
  html:not(.js) .gnav a { border: 0; padding: 8px 0; }
  .hero-inner { padding-bottom: 112px; }
  .statement br { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .company-table th, .company-table td { display: block; width: 100%; padding-left: 24px; padding-right: 24px; }
  .company-table th { padding-top: 22px; padding-bottom: 4px; border-bottom: 0; }
  .company-table td { padding-top: 0; padding-bottom: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-content: flex-start; flex-wrap: wrap; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gnav a, .menu-btn span { transition: none; }
}
