/* ==========================================================================
   株式会社LQTプラス コーポレートサイト
   ========================================================================== */

:root {
  /* --- ブランドカラー -----------------------------------------------------
     GUIDELINES LQTPLUS.pdf の色彩ページから抽出した実測値。
     目分量ではないので、勝手に近い色へ置き換えないこと。 */
  --brand-blue:  #0016a8;
  --brand-cyan:  #0ddbe2;
  --brand-mint:  #22f0d0;
  --brand-green: #21f586;
  --brand-grad: linear-gradient(100deg,
                  var(--brand-blue)  0%,
                  var(--brand-cyan)  42%,
                  var(--brand-mint)  68%,
                  var(--brand-green) 100%);

  /* --- 面 -----------------------------------------------------------------
     ページ全体を1つの暗い面として扱う。セクションごとに背景色を変えない。
     ブランドの表現がグラデーション（連続）である以上、色を切り替えた境目は
     異物になる。区切りは罫線と余白だけで行う。 */
  --paper:   #0b0b0d;   /* ページ地 */
  --paper-2: #131318;   /* カードなど、わずかに持ち上げる面 */

  /* --- 文字 --- */
  --ink:     #f2f4f7;
  --ink-2:   #a8aeb8;

  --rule:    #26262d;

  /* リンク・アクセント。brand-blue は暗い面では 1.6:1 しか出ないため使えない。 */
  --signal:  var(--brand-cyan);

  /* 欧文はガイドラインの指定が Futura。macOS には標準搭載だが Windows には無く、
     web フォント配信は別途ライセンスが必要なためローカル優先で段階的に落とす。 */
  --font-latin: Futura, "Century Gothic", "Avenir Next", Avenir, sans-serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
               "Noto Sans JP", "Meiryo", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Courier New", monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  /* 長音符や小書き文字が行頭に来る禁則違反を抑える。
     overflow-wrap は break-word に留める。anywhere は min-content 幅にも効くため、
     グリッドの列幅が意図せず縮み、技術名が単語途中で折れる。 */
  line-break: strict;
  overflow-wrap: break-word;
}

a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover { color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- utility type ------------------------------------------------------- */

.mono {
  font-family: var(--font-latin), var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-latin), var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 20px;
}

/* --- masthead ----------------------------------------------------------- */

/* 罫線を引かない。地色と同じ面なので線があると切れ目になる。
   スクロール時は地色で本文を隠すだけでよい。 */
.masthead {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  border-bottom: 0;
  line-height: 0;
}

/* ロゴタイプSVGは currentColor 指定だが、<img>経由では黒に解決される。
   暗い面で使うため filter で白へ反転させる。 */
.wordmark img {
  width: auto;
  height: 26px;
  display: block;
  filter: brightness(0) invert(1);
}

.wordmark:hover { opacity: 0.7; }

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.nav a {
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 0;
  letter-spacing: 0.04em;
}

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

/* --- hero --------------------------------------------------------------- */

/* ページ全体が同じ暗い面なので、ヒーローに固有の背景色は与えない。
   グラデーションだけを「光が差し込む」ように重ねる。 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 13vh, 148px) clamp(44px, 8vh, 84px);
}

/* トップのヒーローと下層ページの見出し部で同じ光を使う。
   ページごとに背景の表情が変わると、面が切り替わったように見える。 */
.hero::before,
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 8% 0%,  var(--brand-blue) 0%, transparent 62%),
    radial-gradient(90% 70% at 62% 6%,  var(--brand-cyan) 0%, transparent 58%),
    radial-gradient(80% 70% at 92% 22%, var(--brand-green) 0%, transparent 55%);
  opacity: 0.62;
}

/* テキスト側を沈めて可読性を確保する。
   グラデーションの明るい帯の上に白文字が乗ると 1.45:1 まで落ちて読めなくなる。
   上端・下端は地色と完全に一致させ、ヘッダーと次セクションへ境目なく繋ぐ。
   上端を処理しないと、暗いヘッダーバーの真下でグラデーションが明るく始まり、
   そこに横一文字の切れ目が見える。 */
.hero::after,
.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(88deg,
      rgba(11, 11, 13, 0.94) 0%,
      rgba(11, 11, 13, 0.86) 42%,
      rgba(11, 11, 13, 0.34) 78%,
      rgba(11, 11, 13, 0.20) 100%),
    linear-gradient(to bottom,
      var(--paper) 0%,
      rgba(11, 11, 13, 0) 16%,
      rgba(11, 11, 13, 0) 62%,
      var(--paper) 100%);
}

/* .hero 自体は全幅。内側の .wrap が本文幅を担う。 */
.hero > .wrap,
.pagehead > .wrap { position: relative; }

/* 下層ページの見出し部。ヒーローより背は低いが、同じ光をまとう。 */
.pagehead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(52px, 9vh, 104px) clamp(24px, 4vh, 44px);
}

.pagehead h1 {
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(27px, 6.4vw, 62px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 20em;
  /* 狭い画面で「設計す／る。」のように末尾が1〜2文字だけ残るのを避ける */
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 34em;
  margin: 0;
}

/* 理念（抽象）→ 誰のためか（具体）→ 領域（事実）の順で読ませる。
   最後の1行が強みの提示にあたる。 */
.hero__domains {
  margin: 28px 0 0;
  color: var(--signal);
  /* .mono の 11px + 0.14em は英字ラベル用。和文でそのまま使うと窮屈で読みにくい。
     ここは強みを伝える一行なのでキャプションサイズにしない。 */
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* 上寄せにしてチャネル表示の罫線と重ならない位置に置く。
   中央寄せにすると罫線がマークを横切り、傷のように見える。 */
.hero__mark {
  position: absolute;
  z-index: -1;
  right: -6%;
  top: clamp(24px, 5vh, 56px);
  width: clamp(260px, 38vw, 500px);
  aspect-ratio: 614 / 607;
  background: var(--brand-grad);
  -webkit-mask: url(/assets/mark.svg?v=3) no-repeat center / contain;
          mask: url(/assets/mark.svg?v=3) no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero__mark {
    right: -24%;
    top: auto;
    bottom: 8%;
    width: 72vw;
    opacity: 0.42;
  }
}

/* --- signature: channel strip ------------------------------------------ */

.channels {
  position: relative;
  margin-top: clamp(48px, 9vh, 96px);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}


.channels__meter {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 68px;
}

.channels__bar {
  flex: 1 1 auto;
  min-width: 2px;
  max-width: 9px;
  height: 100%;
  background: var(--rule);
}

.channels__bar--live { animation: channel-use 7s linear infinite; }

.channels__readout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}

@keyframes channel-use {
  0%,  100% { background: var(--rule); }
  6%,  17%  { background: var(--brand-cyan); }
  24%       { background: var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  .channels__bar--live {
    animation: none;
    background: var(--brand-cyan);
  }
}

/* --- generic section ---------------------------------------------------- */

.section {
  border-top: 1px solid var(--rule);
  padding-block: clamp(48px, 9vh, 96px);
}

/* 下層ページ用。トップは各セクションが独立した主張を持つため広い余白が要るが、
   会社概要は1ページ内の項目の並びなので、同じ間隔だと間延びする。 */
.section--tight {
  padding-block: clamp(18px, 3vh, 32px);
}

.section--tight .section__head { margin-bottom: 20px; }

.section__head { margin-bottom: 44px; }

.section__head h2 {
  font-size: clamp(21px, 2.7vw, 29px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
}

.section__note {
  color: var(--ink-2);
  max-width: 34em;
  margin: 16px 0 0;
  font-size: 15px;
}

/* --- services ----------------------------------------------------------- */

.services {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 820px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

.service {
  background: var(--paper-2);
  padding: clamp(24px, 3vw, 36px);
}

.service h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}

.service p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* --- tech grid ---------------------------------------------------------- */

/* 5群が1行に収まる下限。216px のままだと最大幅でも4列にしかならず、
   5群目だけが次行に落ちて見た目が崩れる。 */
.stack {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stack__group h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

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

.stack__group li {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.1;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* --- creed -------------------------------------------------------------- */

/* 理念は登記事項と種類が違う。同じ表に行として並べると意味が伝わらないため、
   フレーズと理由を独立したブロックにしている。 */
.creed {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.6;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}

.creed__body {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 15px;
}

.creed__body p { margin: 0 0 16px; }
.creed__body p:last-child { margin-bottom: 0; }

/* 本文が一人称なので、誰の言葉かを示す。 */
.creed__sign { margin-top: 24px; }

/* --- registry table ----------------------------------------------------- */

.registry { margin: 0; }

.registry__row {
  display: grid;
  gap: 4px 28px;
  padding-block: 15px;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 680px) {
  .registry__row { grid-template-columns: 190px 1fr; }
}

.registry dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 4px;
}

.registry dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.registry dd .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  margin-top: 4px;
}

/* --- contact ------------------------------------------------------------ */

.contact__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact__item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.contact__item dd {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.01em;
}

/* --- footer ------------------------------------------------------------- */

/* 地色と同じ面。ページ下端にもう一度グラデーションを差し込み、
   ヒーローと呼応させて上下から光が入る構成にする。 */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  padding-block: 56px 64px;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 160% at 88% 100%, var(--brand-green) 0%, transparent 58%),
    radial-gradient(70% 140% at 62% 100%, var(--brand-cyan) 0%, transparent 55%),
    radial-gradient(80% 150% at 18% 100%, var(--brand-blue) 0%, transparent 60%);
  opacity: 0.30;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    var(--paper) 0%,
    rgba(11, 11, 13, 0.72) 55%,
    rgba(11, 11, 13, 0.58) 100%);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

/* ロゴタイプSVGは currentColor 指定だが、<img>経由では黒に解決される。
   暗い面では filter で白へ反転させる。 */
.footer__logo img {
  width: auto;
  height: 22px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__inner { position: relative; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--brand-cyan); }

/* --- long-form document pages ------------------------------------------- */

.doc { padding-block: clamp(48px, 8vh, 88px); }

.doc h1 {
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0 0 12px;
}

.doc__meta { margin: 0 0 48px; }

.doc__body { max-width: 42em; }

.doc__body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.01em;
}

.doc__body p { margin: 0 0 18px; }

.doc__body ul {
  margin: 0 0 18px;
  padding-left: 1.3em;
}

.doc__body li { margin-bottom: 8px; }
