/* plan8 HP-renew — random word · company footer */
:root {
  --ink: #f4f1ea;
  --ink-soft: rgba(244, 241, 234, 0.72);
  --ink-mute: rgba(244, 241, 234, 0.5);
  --ink-faint: rgba(244, 241, 234, 0.34);
  --panel-edge: rgba(255, 255, 255, 0.28);
  --font: "Gen Interface JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --display: "Gen Interface JP Display", "Gen Interface JP", "Hiragino Sans",
    Meiryo, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 縦型カード 55×91mm 比率 */
  --card-w: min(280px, 72vw);
  --card-ratio: 55 / 91;
  --row-w: min(720px, 94vw);
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: #000;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ── video background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.bg.is-plain,
.bg.is-plain .bg__video,
.bg.is-plain .bg__fallback,
.bg.is-plain .bg__ascii,
.bg.is-plain .bg__vignette {
  display: none;
}

.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.02) brightness(0.72);
  transform: scale(1.03);
}

.bg__fallback {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  filter: saturate(0.92) contrast(1.02) brightness(0.72);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bg.is-static .bg__video { display: none; }
.bg.is-static .bg__fallback { opacity: 1; }

.bg__ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.bg.is-ascii .bg__video,
.bg.is-ascii .bg__fallback { display: none; }
.bg.is-ascii .bg__ascii { display: block; }

.bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 42%, transparent 18%, rgba(6, 10, 8, 0.42) 100%),
    linear-gradient(180deg, rgba(6, 10, 8, 0.22) 0%, transparent 28%, transparent 70%, rgba(6, 10, 8, 0.4) 100%);
}

/* ── stage ── */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: clamp(28px, 6vh, 56px) 16px 40px;
}

/* レイアウト：PC ロゴ / カード|会社概要 / メッセージ / クライアント / 共同事業 */
.layout {
  --card-h: calc(var(--card-w) * 91 / 55);
  width: var(--row-w);
  margin-top: auto;
  margin-bottom: auto;
  display: grid;
  grid-template-columns: var(--card-w) minmax(0, 1fr);
  grid-template-areas:
    "brand brand"
    "card company"
    "message message"
    "partners partners"
    "cocreate cocreate";
  gap: clamp(16px, 2.5vw, 24px) clamp(18px, 3vw, 28px);
  align-items: start;
}

.card-scene { grid-area: card; }
.company { grid-area: company; }
.message { grid-area: message; }
.partners { grid-area: partners; }
.cocreate { grid-area: cocreate; }
.brand { grid-area: brand; }

/* plan8 ロゴ：PC / スマホとも中央上 */
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 4px 0 2px;
}

.brand__logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: 140px;
  aspect-ratio: 551 / 184;
  object-fit: contain;
  opacity: 0.92;
}

/* ── vertical card（枠のみ・クリック反転なし） ── */
.card-scene {
  width: var(--card-w);
  height: var(--card-h);
  flex: none;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--card-ratio);
  padding: 28px 22px;
  border-radius: 12px;
  border: 1px solid var(--panel-edge);
  background: none;
  box-shadow: none;
  color: var(--ink);
  box-sizing: border-box;
  overflow: hidden;
}

/* front copy */
.copy {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  min-height: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.word-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2em;
  min-height: 1.25em;
  perspective: 480px;
}

.word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
}

.word .ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
}

.word-stage.is-morphing {
  animation: stage-pulse 0.72s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes stage-pulse {
  0%   { transform: scale(1); filter: none; }
  35%  { transform: scale(1.04, 0.94); filter: blur(0.3px); }
  55%  { transform: scale(0.96, 1.06); filter: blur(0.6px); }
  100% { transform: scale(1); filter: none; }
}

.word .ch.is-morph {
  animation: ch-warp 0.72s cubic-bezier(0.45, 0.05, 0.25, 1) both;
}
.word .ch:nth-child(even).is-morph { animation-name: ch-warp-alt; }

@keyframes ch-warp {
  0%   { transform: rotateY(0deg) scale(1) skewX(0deg); filter: blur(0); opacity: 1; }
  22%  { transform: rotateY(-48deg) scale(0.88, 1.12) skewX(6deg); filter: blur(0.4px); opacity: 0.92; }
  48%  { transform: rotateY(12deg) scale(1.14, 0.86) skewX(-8deg); filter: blur(1px); opacity: 0.75; }
  72%  { transform: rotateY(-8deg) scale(0.96, 1.04) skewX(3deg); filter: blur(0.25px); opacity: 0.95; }
  100% { transform: rotateY(0deg) scale(1) skewX(0deg); filter: blur(0); opacity: 1; }
}
@keyframes ch-warp-alt {
  0%   { transform: rotateY(0deg) scale(1) skewX(0deg); filter: blur(0); opacity: 1; }
  22%  { transform: rotateY(52deg) scale(1.1, 0.9) skewX(-5deg); filter: blur(0.4px); opacity: 0.9; }
  48%  { transform: rotateY(-14deg) scale(0.88, 1.12) skewX(9deg); filter: blur(1px); opacity: 0.72; }
  72%  { transform: rotateY(6deg) scale(1.03, 0.97) skewX(-2deg); filter: blur(0.2px); opacity: 0.96; }
  100% { transform: rotateY(0deg) scale(1) skewX(0deg); filter: blur(0); opacity: 1; }
}

.word .ch.is-settle {
  animation: ch-settle 0.38s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
@keyframes ch-settle {
  0%   { transform: scale(1.08, 0.92); }
  55%  { transform: scale(0.97, 1.04); }
  100% { transform: scale(1); }
}

/* ── partners（2行・逆方向マーキー） ── */
.partners {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.88;
}

.partners__rail {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ── 共同事業（ロゴ下・文字ぶんの高さだけ） ── */
.cocreate {
  width: 100%;
  min-width: 0;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 10px 14px 10px;
  text-align: center;
  /* panel の flex で伸びないように */
  flex: none;
  display: block;
}

.cocreate__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.cocreate__soon {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1.3;
}

.cocreate__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.partners__track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  animation: marquee 42s linear infinite;
  animation-play-state: running;
}

.partners__track--rev {
  animation-name: marquee-rev;
  animation-duration: 48s;
}

.partner {
  flex: 0 0 auto;
  height: 44px;
  width: 100px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.partner img {
  max-width: 100%;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* 旧TOP同様：白黒（白シルエット） */
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

/* ホバー可能な環境だけカラー復元（タッチの sticky hover 対策） */
@media (hover: hover) and (pointer: fine) {
  .partner:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  }
  .partner:hover img {
    filter: none;
    opacity: 1;
  }
}

/* 旧サイト同様、縦長ロゴは少し大きめに */
.partner img[src$="oita-maplaza.png"],
.partner img[src$="classica.png"],
.partner img[src$="nk-kogyo.png"],
.partner img[src$="bambitz.png"] {
  max-height: 30px;
}

.partner img[src$="uca.png"] {
  max-height: 22px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ── company / 共創（塗り・影・枠線なし） ── */
.panel {
  position: relative;
  width: 100%;
  min-width: 0;
  height: var(--card-h);
  max-height: var(--card-h);
  align-self: start;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 8px 4px 4px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: none;
  box-shadow: none;
}

/* 会社概要：左カードと同高。下にボタン領域を確保し、本文は上だけでクリップ */
.company.panel {
  --company-contact-h: 46px;
  position: relative;
  height: var(--card-h);
  max-height: var(--card-h);
  min-height: var(--card-h);
  overflow: hidden;
  padding: 6px 4px var(--company-contact-h);
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.company__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 6px;
  flex: 0 0 auto;
}

/* 本文：ラベル下〜ボタン上まで。必ずはみ出しを切る */
.company__main {
  flex: 1 1 auto;
  min-height: 0;
  height: 0; /* flex 子の確実な縮小用 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.company__dl {
  display: grid;
  gap: 0;
  flex: 0 0 auto;
}

.company__dl > div {
  display: grid;
  grid-template-columns: 3.8em 1fr;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.4;
}

.company__dl > div:last-of-type {
  border-bottom: none;
}

.company__dl--rep {
  align-items: start;
}

.company__dl dt {
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 11px;
  padding-top: 1px;
}

.company__dl dd {
  color: var(--ink-soft);
}

.company__dl a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.company__rep-name {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 12px;
}

.company__bio {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-mute);
}

.company__biz {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.company__biz-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.company__biz-list {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
}

.company__biz-list li {
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.4;
}

.company__biz-list strong {
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  font-size: 12px;
}

.company__biz-list span {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.45;
}

.company__biz-list a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

/* 下端に固定。本文エリアとはパディングで完全分離 */
.company__contact {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: calc(var(--company-contact-h) - 8px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  z-index: 3;
  background: none;
  box-shadow: none;
}

/* ── 代表メッセージ（顧客ロゴの上・別枠） ── */
.message {
  width: 100%;
  min-width: 0;
}

.message__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.message__body p {
  margin: 0 0 0.75em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 500;
}

.message__body p:last-child {
  margin-bottom: 0;
}

.message__sig {
  margin-top: 12px !important;
  text-align: right;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.06em;
}

.company__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #142018;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.company__btn:hover { opacity: 0.9; }

.company__mail {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.company__mail:hover { color: #fff; }

/* ── TOP 最低限フッター ── */
.site-foot {
  position: relative;
  z-index: 1;
  width: var(--row-w);
  max-width: 100%;
  margin: 28px auto 0;
  padding: 16px 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.site-foot nav {
  display: flex;
  gap: 14px;
}

.site-foot a {
  color: var(--ink-mute);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-foot a:hover { color: #fff; }

.local-banner {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 90, 90, 0.9);
  color: #fff;
  pointer-events: none;
}

@media (max-width: 720px) {
  :root {
    /* 左右に呼吸を残す（詰まりすぎ防止） */
    --card-w: calc(100vw - 48px);
    --row-w: var(--card-w);
  }

  .stage {
    /* 上は少し・下は読了用。縦センター固定だと単語が真ん中に浮いて余白が過剰になる */
    justify-content: flex-start;
    padding: 18px 24px 36px;
    gap: 12px;
  }

  .layout {
    width: var(--card-w);
    margin-top: 0;
    margin-bottom: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "card"
      "company"
      "message"
      "partners"
      "cocreate";
    justify-items: stretch;
    /* 基本ギャップ。特定ブロック間は下で上乗せ */
    gap: 20px;
  }

  .brand {
    padding: 4px 0 2px;
  }

  .brand__logo {
    height: 18px;
    max-width: 120px;
  }

  /* 二文字：上下に呼吸を足す */
  .card-scene {
    width: 100%;
    height: auto;
    align-self: stretch;
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .card {
    height: auto;
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    padding: 40px 4px 36px;
    overflow: visible;
  }

  .copy {
    font-size: clamp(30px, 9.5vw, 40px);
    letter-spacing: 0.16em;
    min-height: 1.25em;
  }

  .partners {
    width: 100%;
    /* お問い合わせ（会社概要下）とロゴの間 / ロゴと共同事業の間 */
    margin-top: 12px;
    margin-bottom: 14px;
  }

  /* 枠なし：情報は見出しと余白で区切る */
  .panel {
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    border: none;
    border-radius: 0;
    padding: 4px 0 8px;
  }

  .company {
    margin-bottom: 8px;
  }

  /* スマホはカード高さ固定を解除し、全文を縦に展開 */
  .company.panel {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 4px 0 8px;
    --company-contact-h: auto;
  }

  .company__main {
    overflow: visible;
    flex: none;
    height: auto;
  }

  /* 会社概要ブロックと事業内容の間 */
  .company__biz {
    margin-top: 18px;
    padding-top: 16px;
    flex: none;
    overflow: visible;
  }

  .company__contact {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    margin-top: 18px;
    padding-top: 0;
  }

  .company__dl > div {
    grid-template-columns: 3.8em 1fr;
    padding: 6px 0;
    font-size: 11.5px;
  }

  .company__bio {
    font-size: 12px;
    line-height: 1.65;
  }

  .company__biz-list li {
    font-size: 12px;
    line-height: 1.45;
  }

  .company__biz-list strong {
    font-size: 11.5px;
  }

  .company__biz-list span {
    font-size: 11px;
    line-height: 1.45;
  }

  .company__contact {
    padding-top: 18px;
  }

  .message__body p {
    font-size: 13px;
    line-height: 1.8;
  }

  .cocreate {
    padding: 8px 0 4px;
    margin-top: 8px;
  }

  .company__label,
  .cocreate__label {
    margin-bottom: 12px;
  }

  .site-foot {
    width: var(--card-w);
    margin-top: 24px;
  }
}

@media (max-width: 380px) {
  :root { --card-w: calc(100vw - 40px); }
  .stage { padding: 14px 20px 32px; }
  .card { padding: 36px 0 32px; }
  .copy { font-size: 28px; letter-spacing: 0.12em; }
  .company__dl > div { grid-template-columns: 3.8em 1fr; }
  .company__biz { margin-top: 20px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track, .partners__track--rev, .card {
    animation: none !important;
    transition: none !important;
  }
  .word-stage.is-morphing,
  .word .ch.is-morph,
  .word .ch.is-settle {
    animation: none !important;
  }
  .bg__video { display: none; }
  .bg__fallback { opacity: 1; }
}

/* ── subpage document (budi 等) ── */
body.page-doc {
  overflow-x: clip;
  overflow-y: auto;
}

.doc {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
  color: var(--ink);
}

.doc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.doc__brand img {
  height: 18px;
  width: auto;
  max-width: 120px;
  aspect-ratio: 551 / 184;
  object-fit: contain;
  opacity: 0.92;
}

.doc__back {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

.doc__back:hover { color: #fff; }

.doc__crumb {
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.doc__crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.doc__crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--ink-faint);
}

.doc__crumb a {
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.doc__crumb a:hover { color: #fff; }

.doc__hero {
  margin-bottom: 40px;
}

.doc__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.doc__title {
  font-family: var(--display);
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.doc__lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.doc__lead strong { color: #fff; font-weight: 800; }

.doc__note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin-bottom: 22px;
}

.doc__meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.doc__list a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  word-break: break-all;
}

.doc__list a:hover { opacity: 0.85; }

.doc__sec > p + .doc__list,
.doc__sec > p + p {
  margin-top: 10px;
}

.doc__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.doc__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.doc__link:hover { color: #fff; }

.doc__sec {
  margin-bottom: 36px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.doc__sec h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin: 16px 0 14px;
}

.doc__sec > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.doc__sec > p strong { color: #fff; }

.doc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.doc__grid li {
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(8, 12, 10, 0.28);
}

.doc__grid h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 6px;
}

.doc__grid p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.doc__steps {
  padding-left: 1.25em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.doc__steps li { margin-bottom: 4px; }

.doc__list {
  padding-left: 1.15em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
  list-style: disc;
}

.doc__list li { margin-bottom: 8px; }
.doc__list strong { color: #fff; }

.doc__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 480px;
}

.doc__table th,
.doc__table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.5;
}

.doc__table thead th {
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.22);
}

.doc__table tbody th {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.doc__table tr:last-child th,
.doc__table tr:last-child td { border-bottom: 0; }

.doc__faq {
  display: grid;
  gap: 14px;
}

.doc__faq dt {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.doc__faq dd {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.doc__contact {
  margin: 40px 0 28px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  text-align: center;
}

.doc__contact h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.doc__contact p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.7;
}

.doc__contact .company__btn {
  margin: 0 auto;
  font-size: 12px;
  padding: 10px 18px;
}

.doc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.doc__foot nav {
  display: flex;
  gap: 14px;
}

.doc__foot a {
  color: var(--ink-mute);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.doc__foot a:hover { color: #fff; }

@media (max-width: 720px) {
  .doc {
    width: calc(100% - 40px);
    padding: 18px 0 48px;
  }

  .doc__grid {
    grid-template-columns: 1fr;
  }

  .doc__title {
    letter-spacing: 0.06em;
  }
}

@media (max-width: 380px) {
  .doc { width: calc(100% - 32px); }
}
