/*
 * サイト1.5 の共通スタイル。
 * 正: docs/design/mockups/00-inbox/2026-10-05-site15-mock.html
 * 外部へのリクエストは出さない。欧文は自前の Josefin Sans、和文は端末の書体。
 */

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/josefin-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Product アイコンの時刻表示だけに使う */
@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/share-tech-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #22272b;
  --bg2: #2b3136;
  --bg3: #1c2023;
  --txt: #e9e7e2;
  --mut: #a3a8ad;
  --line: rgba(233, 231, 226, 0.14);
  --gold: #f3c26e;
  --err: #f0a08a;
  --jo: "Josefin Sans", sans-serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--ja);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--gold); color: var(--bg); padding: 8px 14px; font-size: 13px;
}
.skip:focus { top: 12px; }

/* ── ナビ ───────────────────────────────── */
.nav { position: absolute; left: 0; right: 0; top: 0; z-index: 5; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 78px; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; width: 196px; height: auto; }
.menu { display: flex; align-items: center; gap: 30px; font-family: var(--jo); font-size: 13px; letter-spacing: 0.16em; white-space: nowrap; }
.menu a:hover { color: var(--gold); }
.menu .c { border: 1px solid var(--gold); color: var(--gold); padding: 6px 14px 4px; }
.menu .c:hover { background: var(--gold); color: var(--bg); }
.lang { font-size: 12px; letter-spacing: 0.14em; color: var(--mut); white-space: nowrap; }
.lang a { padding: 2px; }
.lang b { color: var(--txt); font-weight: 400; border-bottom: 1px solid var(--gold); }

/* 英語版: 本文も Josefin Sans。和文が混じる箇所は端末の書体に落ちる */
html[lang="en"] body { font-family: var(--jo), var(--ja); line-height: 1.75; }
html[lang="en"] .hero h1 { font-family: var(--jo); font-weight: 400; font-size: 20px; letter-spacing: 0.24em; text-transform: uppercase; }

/* ── ヒーロー（現行の写真・暗い覆い・中央寄せの英字）── */
.hero {
  position: relative; min-height: 860px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 0 90px;
  background-color: var(--bg3);
  background-image: linear-gradient(rgba(28, 33, 37, 0.62), rgba(28, 33, 37, 0.72)), url("../img/hero.jpg");
  background-image: linear-gradient(rgba(28, 33, 37, 0.62), rgba(28, 33, 37, 0.72)), image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
  background-position: center 60%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero h1 { margin: 0 0 22px; font-weight: 500; font-size: 22px; letter-spacing: 0.32em; }
.big {
  margin: 0; font-family: var(--jo); font-weight: 300; font-size: 76px; line-height: 1.12;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* 書きかけのカーソル。未来はまだ書かれていない */
.cur {
  display: inline-block; width: 0.08em; height: 0.82em; margin-left: 0.12em;
  background: var(--gold); vertical-align: -0.04em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .lead { margin: 28px auto 0; max-width: 40em; word-break: auto-phrase; font-size: 16px; font-weight: 300; color: #d6d4cf; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  padding: 14px 30px 11px; font-family: var(--jo); font-size: 13px; letter-spacing: 0.22em; cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.hero .btn { margin-top: 40px; }

/* ── セクション見出し（現行サイトと同じ金の点）── */
.sec { padding: 110px 0 120px; }
.sec.alt { background: var(--bg2); }
.sh { text-align: center; margin-bottom: 60px; }
.sh h2 { margin: 0; font-family: var(--jo); font-weight: 300; font-size: 36px; letter-spacing: 0.08em; }
.sh .dot { display: block; margin: 16px auto 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.sh p { margin: 18px auto 0; max-width: 36em; color: var(--mut); font-size: 15px; }

/* ── WHAT WE DO ─────────────────────────── */
.what { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.item { display: block; text-align: center; padding: 10px 20px 0; }
.item .en { display: block; font-family: var(--jo); font-weight: 300; font-size: 32px; letter-spacing: 0.06em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0 8px; }
.item .ja { display: block; margin-top: 14px; font-size: 17px; font-weight: 500; letter-spacing: 0.12em; }
.item p { margin: 14px auto 0; max-width: 24em; word-break: auto-phrase; font-size: 14.5px; color: var(--mut); }
.go { display: inline-block; margin-top: 16px; font-family: var(--jo); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
/* Partnership アイコン: Y 字の管に光が中心へ流れ込む（次元転移装置へのオマージュ）。Product のアイコンと同じ 88px の高さ */
.flux { display: block; width: 88px; height: 88px; margin: 0 auto 14px; transition: transform 0.25s ease; }
.flux svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-box { stroke: var(--gold); stroke-width: 1.6; fill: rgba(243, 194, 110, 0.04); }
.fx-win { stroke: rgba(243, 194, 110, 0.35); stroke-width: 1; }
.fx-tube { stroke: rgba(243, 194, 110, 0.3); stroke-width: 6; }
.fx-flow {
  stroke: #ffe7b0; stroke-width: 2.6; stroke-dasharray: 3 7;
  animation: flow 1.1s linear infinite;
  filter: drop-shadow(0 0 3px #f3c26e) drop-shadow(0 0 6px rgba(243, 194, 110, 0.7));
}
.fx-node { fill: var(--bg); stroke: var(--gold); stroke-width: 1.6; }
.fx-core {
  fill: #fff3d6;
  animation: core 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #f3c26e) drop-shadow(0 0 10px rgba(243, 194, 110, 0.8));
}
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes core { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.item:hover .flux,
.item:focus-visible .flux { transform: translateY(-3px); }
.item:hover .fx-flow,
.item:hover .fx-core,
.item:focus-visible .fx-flow,
.item:focus-visible .fx-core { animation-duration: 0.45s; }
/*
 * Product アイコン: 3段の時刻表示（タイムサーキットへのオマージュ）。
 * NEXT は未来がまだ書かれていないので点滅する「--- -- ----」、NOW は表示した日（assets/js/now.js）、SINCE は設立日
 */
.tc {
  display: grid; gap: 5px; width: 236px; height: 88px; margin: 0 auto 14px; padding: 6px 8px;
  background: #15181a; border: 1px solid rgba(243, 194, 110, 0.55); border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--bg3), inset 0 0 0 4px rgba(243, 194, 110, 0.18);
}
.tc-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 6px; }
.tc-l { font-family: var(--jo); font-size: 9px; letter-spacing: 0.14em; color: var(--gold); text-align: left; }
.tc-d {
  position: relative; display: block; min-height: 21px; padding: 1px 6px 0; background: #0b0d0e; border-radius: 2px;
  font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 17px; line-height: 20px; letter-spacing: 0.08em;
  text-align: left; white-space: pre;
}
.tc-d::before { content: attr(data-ghost); position: absolute; left: 6px; top: 1px; opacity: 0.12; }
.tc-r .tc-d { color: #ff5a43; text-shadow: 0 0 6px rgba(255, 90, 67, 0.8); }
.tc-g .tc-d { color: #5bff8a; text-shadow: 0 0 6px rgba(91, 255, 138, 0.75); }
.tc-a .tc-d { color: #ffb23e; text-shadow: 0 0 6px rgba(255, 178, 62, 0.8); }
.tc-blink { animation: blink 1.1s steps(1) infinite; }
.item:hover .tc-blink,
.item:focus-visible .tc-blink { animation-duration: 0.4s; }

.moved { margin: 64px auto 0; max-width: 640px; text-align: center; font-size: 13.5px; color: var(--mut); border: 1px dashed var(--line); padding: 16px 22px; }
.moved a { color: var(--gold); }

/* ── PROJECTS ───────────────────────────── */
.lf { text-align: center; }
.lf img { width: 240px; }
.lf p { margin: 16px 0 0; font-size: 15px; }
.lf .go { margin-top: 12px; border-bottom: 0; }
.subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 64px; }
.sub { border: 1px solid var(--line); padding: 26px 28px 24px; position: relative; }
.sub .tag { display: block; padding-right: 64px; font-family: var(--jo); font-size: 11px; letter-spacing: 0.2em; color: var(--gold); }
.sub h3 { margin: 6px 0; font-family: var(--jo); font-weight: 400; font-size: 26px; letter-spacing: 0.04em; line-height: 1.5; }
.sub p { margin: 0; font-size: 14px; color: var(--mut); }
/* JobZaurus: 2列分の横長カード。右にリンク */
.sub--main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; transition: border-color 0.2s ease; }
.sub--main h3 { font-size: 30px; }
.sub--main .go { margin: 0; white-space: nowrap; }
.sub--main:hover,
.sub--main:focus-visible { border-color: var(--gold); }
.sub .lock { position: absolute; right: 22px; top: 22px; font-size: 11px; letter-spacing: 0.14em; border: 1px solid var(--line); padding: 2px 8px; color: var(--mut); }

/* ── About us ───────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.creed { margin: 0; font-size: 16px; font-weight: 300; line-height: 2.2; }
.staff { margin: 22px 0 0; font-size: 14.5px; font-weight: 300; color: var(--mut); line-height: 2.1; }
.facts { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); font-size: 14.5px; }
.facts dt,
.facts dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mut); font-size: 13px; }
.facts dd small { display: block; font-family: var(--jo); color: var(--mut); letter-spacing: 0.06em; }
.facts a { color: var(--gold); border-bottom: 1px solid var(--gold); }

/* ── CONTACT ────────────────────────────── */
.form { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f.wide,
.check,
.form-alert,
.form-foot { grid-column: 1 / -1; }
.f label { font-size: 13px; color: var(--mut); }
.req,
.opt { font-style: normal; font-size: 11px; margin-left: 6px; letter-spacing: 0.1em; }
.req { color: var(--gold); }
.hint { margin: -4px 0 0; font-size: 12px; color: var(--mut); }
.f input,
.f textarea,
.f select {
  width: 100%; font: inherit; font-size: 16px; color: var(--txt); background: var(--bg3);
  border: 1px solid var(--line); padding: 13px 14px; border-radius: 0; outline: none;
}
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.f select:invalid { color: var(--mut); }
.f option { color: var(--txt); background: var(--bg3); }
.f input:focus,
.f textarea:focus,
.f select:focus { border-color: var(--gold); }
.f textarea { min-height: 150px; resize: vertical; }
.f [aria-invalid="true"] { border-color: var(--err); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--mut); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.check a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.check[data-error="true"] { color: var(--err); }
.field-error { margin: 0; font-size: 12.5px; color: var(--err); }
.check + .field-error { grid-column: 1 / -1; margin-top: -14px; }
.form-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; }
.send { padding: 15px 54px 12px; font-size: 14px; letter-spacing: 0.24em; }
.send[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.form-foot p { margin: 0; text-align: center; font-size: 13px; color: var(--mut); }
.form-alert { border: 1px solid var(--err); background: var(--bg3); padding: 18px 22px; font-size: 14px; }
.form-alert:focus { outline: 2px solid var(--err); outline-offset: 3px; }
.form-alert .t { margin: 0; font-weight: 500; color: var(--err); }
.form-alert .s { margin: 6px 0 0; color: var(--txt); }
.form-alert ul { margin: 10px 0 0; padding-left: 1.2em; }
.form-alert li a { color: var(--txt); border-bottom: 1px solid var(--line); }
.gotcha { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── 下層ページ（プライバシー・送信完了・404）── */
.page-head { padding: 150px 0 70px; background: var(--bg3); border-bottom: 1px solid var(--line); }
.page-head .en { display: block; font-family: var(--jo); font-size: 12px; letter-spacing: 0.24em; color: var(--gold); }
.page-head h1 { margin: 10px 0 0; font-weight: 500; font-size: 30px; letter-spacing: 0.12em; line-height: 1.6; }
.page-head p { margin: 14px 0 0; max-width: 40em; color: var(--mut); font-size: 15px; }
.prose { max-width: 760px; }
.prose h2 { margin: 56px 0 14px; font-family: var(--ja); font-weight: 500; font-size: 18px; letter-spacing: 0.12em; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 14px 0 0; border-radius: 50%; background: var(--gold); vertical-align: 0.2em; }
.prose p,
.prose li { font-size: 15px; color: var(--txt); }
.prose ul { padding-left: 1.3em; }
.prose .facts { margin-top: 8px; grid-template-columns: 9em minmax(0, 1fr); }
.prose .back { margin-top: 48px; }
.prose .facts dd small { font-family: var(--ja); letter-spacing: 0.04em; }

.full {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 0 80px;
}
.full .big { font-size: 56px; }
.full h1 { margin: 26px 0 0; font-weight: 500; font-size: 22px; letter-spacing: 0.18em; line-height: 1.7; }
.full p { margin: 16px auto 0; max-width: 34em; color: var(--mut); font-size: 15px; }
.full .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }

/* ── フッター ───────────────────────────── */
.ft { background: var(--bg3); padding: 30px 0; font-size: 12.5px; color: var(--mut); }
.ft .wrap { display: flex; justify-content: space-between; gap: 20px; }
.ft a { margin-left: 22px; }
.ft a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .cur,
  .fx-flow,
  .fx-core,
  .tc-blink { animation: none; }
  .flux { transition: none; }
  .item:hover .flux,
  .item:focus-visible .flux { transform: none; }
}

/* ナビの全項目が1行に収まるのは約 820px から。それより狭い幅ではスマホと同じく CONTACT と JA/EN だけを出す */
@media (max-width: 960px) {
  .menu > a:not(.c) { display: none; }
  .menu { gap: 18px; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .menu > a:not(.c) { display: none; }
  .menu { gap: 12px; font-size: 12px; }
  .menu .c { padding: 5px 10px 3px; }
  .lang { font-size: 11px; letter-spacing: 0.1em; }
  .nav .wrap { height: 64px; }
  .logo img { width: 168px; }
  .hero {
    min-height: 720px;
    background-image: linear-gradient(rgba(28, 33, 37, 0.6), rgba(28, 33, 37, 0.72)), url("../img/hero-mobile.jpg");
    background-image: linear-gradient(rgba(28, 33, 37, 0.6), rgba(28, 33, 37, 0.72)), image-set(url("../img/hero-mobile.webp") type("image/webp"), url("../img/hero-mobile.jpg") type("image/jpeg"));
    background-position: center;
  }
  .hero h1 { font-size: 16px; letter-spacing: 0.24em; }
  .big { font-size: 38px; }
  .hero .lead { font-size: 14.5px; padding: 0 6px; }
  .sec { padding: 76px 0 84px; }
  .sh { margin-bottom: 40px; }
  .sh h2 { font-size: 28px; }
  .what,
  .subs,
  .about,
  .form,
  .sub--main { grid-template-columns: 1fr; }
  .sub--main .go { justify-self: start; margin-top: 8px; }
  .what { gap: 56px; }
  .item .en { font-size: 28px; }
  .about { gap: 36px; }
  .facts { grid-template-columns: 86px minmax(0, 1fr); }
  .page-head { padding: 120px 0 52px; }
  .page-head h1 { font-size: 22px; }
  .full .big { font-size: 34px; }
  .full h1 { font-size: 17px; letter-spacing: 0.12em; }
  .ft .wrap { flex-direction: column; }
  .ft a { margin: 0 18px 0 0; }
}
