/* =========================================================
   AxTeRRa PROJECT - base stylesheet
   Webflowテンプレート Fidelora を参考にしたデザインシステム
   タイポ: Geist(見出し) / Inter・Noto Sans JP(本文)
   カラー: ダーク #1c1712 / アクセント #d44500 / ベージュ #fdf9f6
   ========================================================= */

:root{
  /* --- 基本カラー --- */
  --white:#ffffff;
  --whitesmoke:#fdf9f6;
  --beige:#fcf3ee;
  --dark:#1c1712;
  --dark-grey:#525252;
  --grey:#9c9c9c;
  --light-grey:#d1d1d1;
  --accent:#d44500;
  --accent-hover:#a83600;
  --accent-light:#ffaa7d;
  --on-accent:#f8f7f0;

  /* --- セマンティック --- */
  --bg:var(--white);
  --bg-alt:var(--whitesmoke);
  --surface:var(--white);
  --text:var(--dark);
  --muted:var(--dark-grey);
  --faint:var(--grey);
  --line:var(--light-grey);
  --line-strong:var(--grey);
  --accent-ink:var(--accent);
  --accent-soft:var(--beige);
  --new:var(--accent);
  --new-soft:var(--beige);

  --ink:var(--dark);
  --ink-2:#14110d;
  --inverse:#ffffff;
  --inverse-soft:var(--light-grey);
  --white-shade:rgba(255,255,255,.12);

  /* --- タイポグラフィ --- */
  --font-display:"Geist","Inter","Noto Sans JP",system-ui,-apple-system,"Segoe UI",
                 "Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  --font-body:"Inter","Noto Sans JP",system-ui,-apple-system,"Segoe UI",
              "Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;

  /* --- レイアウト --- */
  --container:1400px;
  --section-y:clamp(56px,5vw,104px);
  --header-h:74px;

  --radius:10px;
  --radius-card:clamp(10px,1vw,16px);
  --radius-lg:clamp(20px,2vw,32px);
  --radius-round:999px;
}

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

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

body{
  margin:0;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.75;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings:"palt";
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  font-weight:400;
  margin:0;
}

::selection{ background:rgba(212,69,0,.2); }

/* アクセシビリティ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:200;
  padding:10px 16px;
  background:var(--accent);
  color:#fff;
  font-size:.85rem;
  border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; top:0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
}

.container{ width:min(var(--container),calc(100% - 4vw)); margin-inline:auto; }

/* ---------------------------------------------------------
   Typography (Fidelora スケール)
--------------------------------------------------------- */

.text-xxl{ font-size:clamp(2.35rem,4.5vw,4.3rem); line-height:1.2; letter-spacing:-.02em; }
.text-xl{ font-size:clamp(1.7rem,3vw,2.9rem); line-height:1.3; letter-spacing:-.015em; }
.text-l{ font-size:clamp(1.35rem,2vw,2.05rem); line-height:1.4; letter-spacing:-.01em; }
.text-m{ font-size:clamp(1.15rem,1.5vw,1.7rem); line-height:1.5; letter-spacing:-.005em; }
.text-ms{ font-size:clamp(1rem,1.1vw,1.2rem); line-height:1.6; }
.text-s{ font-size:1.05rem; line-height:1.7; }
.text-sm{ font-size:1rem; line-height:1.8; }
.text-xs{ font-size:.9rem; line-height:1.7; }
.text-xxs{ font-size:.8rem; line-height:1.6; letter-spacing:.06em; }

/* ---------------------------------------------------------
   Section tag: [ Label ]
--------------------------------------------------------- */

.section-tag{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  font-family:var(--font-display);
  font-size:.92rem;
  line-height:1.4;
  letter-spacing:.03em;
  color:var(--accent);
  margin:0 0 clamp(14px,1.4vw,22px);
}
.section-tag .br{ color:inherit; }
.section-tag--inverse{ color:var(--accent-light); }
.section-tag--white{ color:#fff; }

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */

.section{ padding:var(--section-y) 0; background:var(--bg); scroll-margin-top:calc(var(--header-h) + 8px); }
.section--alt{ background:var(--bg-alt); }
.section--dark{ background:var(--ink); color:var(--inverse); }

.section-head{
  display:grid;
  grid-template-columns:minmax(120px,20%) minmax(0,1fr);
  gap:clamp(16px,2vw,40px);
  align-items:start;
  margin-bottom:clamp(30px,3.4vw,58px);
}

/* 見出しの英字ラベル（tp_biz65 風の縦積み） */
.section-head .head-main .eyebrow{
  display:block;
  font-family:var(--font-display);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--accent);
  margin:0 0 .7em;
}
.section-head--center .head-main .eyebrow{ margin-inline:auto; }
.section-head h2{
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.7rem,3vw,2.9rem);
  line-height:1.3;
  letter-spacing:-.015em;
  margin:0 0 .5em;
}
.section-head p{
  color:var(--muted);
  margin:0;
  max-width:46em;
  line-height:1.95;
}
.section--dark .section-head p{ color:var(--inverse-soft); }
.section-head .head-action{ margin-top:clamp(20px,2vw,30px); }

.section-head--center{ grid-template-columns:minmax(0,1fr); justify-items:center; text-align:center; }
.section-head--center .head-main{ display:flex; flex-direction:column; align-items:center; }
.section-head--center .section-tag{ justify-self:center; }
.section-head--center p{ margin-inline:auto; }

/* ---------------------------------------------------------
   Buttons (ロールホバー)
--------------------------------------------------------- */

.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.95em 1.9em;
  border-radius:var(--radius-round);
  border:1px solid transparent;
  background:transparent;
  font-family:var(--font-body);
  font-size:.95rem;
  font-weight:600;
  line-height:1.4;
  letter-spacing:.01em;
  overflow:hidden;
  cursor:pointer;
  text-align:center;
  white-space:nowrap;
  transition:background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn > span{
  position:relative;
  z-index:1;
  display:block;
  transition:transform .45s cubic-bezier(.6,0,.3,1);
}
.btn::after{
  content:attr(data-label);
  position:absolute;
  inset:0;
  z-index:0;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translateY(112%);
  transition:transform .45s cubic-bezier(.6,0,.3,1);
  white-space:nowrap;
}
.btn:hover > span,
.btn:focus-visible > span{ transform:translateY(-112%); }
.btn:hover::after,
.btn:focus-visible::after{ transform:translateY(0); }

.btn--accent{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.btn--accent::after{ background:var(--whitesmoke); color:var(--dark); }

.btn--light{ background:#fff; border-color:#fff; color:var(--dark); }
.btn--light::after{ background:var(--accent); border-color:var(--accent); color:#fff; }

.btn--ghost{ background:transparent; border-color:rgba(255,255,255,.38); color:#fff; }
.btn--ghost::after{ background:#fff; color:var(--dark); }

.btn--outline{ background:transparent; border-color:var(--dark); color:var(--dark); }
.btn--outline::after{ background:var(--dark); border-color:var(--dark); color:#fff; }

.btn--sm{ padding:.7em 1.5em; font-size:.88rem; }
.btn--wide{ padding-inline:2.4em; }

/* ---------------------------------------------------------
   モチーフ (ドット / ライン)
--------------------------------------------------------- */

.dot{
  display:inline-block;
  flex:0 0 auto;
  width:9px;
  height:9px;
  background:var(--accent);
}
.hline{ display:block; flex:1; height:1px; background:var(--line-strong); }
.dot-line{ display:flex; align-items:center; gap:12px; }
.section--dark .hline{ background:rgba(255,255,255,.28); }

/* ---------------------------------------------------------
   Header / Navigation
--------------------------------------------------------- */

.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--ink);
  color:var(--inverse);
  border-bottom:1px solid var(--white-shade);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:var(--header-h);
}

.brand{ display:flex; flex-direction:column; line-height:1.15; }
.brand-mark{ font-family:var(--font-display); font-size:1.22rem; font-weight:600; letter-spacing:-.01em; color:#fff; }
.brand-mark span{ color:var(--accent-light); }
.brand-sub{
  font-size:.6rem;
  font-weight:600;
  letter-spacing:.24em;
  color:rgba(255,255,255,.5);
  margin-top:3px;
  text-transform:uppercase;
}

/* ロゴ画像（白背景PNGのため白プレート上で表示） */
.brand-plate{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  background:#fff;
  border-radius:8px;
  padding:4px 10px;
  line-height:0;
}
.brand-plate img{ height:26px; width:auto; display:block; }

.nav-links{ display:flex; align-items:center; gap:clamp(14px,1.6vw,30px); }
.nav-links a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:.95rem;
  font-weight:500;
  color:rgba(255,255,255,.74);
  transition:color .25s ease;
}
.nav-links a::before{
  content:"";
  width:8px;
  height:8px;
  background:var(--accent-light);
  transition:transform .25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current]{ color:#fff; }
.nav-links a:hover::before{ transform:scale(1.4); }

.nav-links a.nav-cta{
  margin-left:clamp(4px,1vw,16px);
  color:var(--on-accent);
  font-size:.88rem;
  font-weight:600;
}
.nav-links a.nav-cta::before{ display:none; }
.nav-links a.nav-cta:hover{ color:var(--on-accent); }

/* モバイルメニューボタン */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--white-shade);
  border-radius:8px;
  background:transparent;
  cursor:pointer;
}
.nav-toggle .bar{
  display:block;
  width:18px;
  height:2px;
  border-radius:2px;
  background:#fff;
}
.nav-toggle .bar + .bar{ margin-top:5px; }
.nav-toggle.is-active .bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-active .bar:nth-child(2){ opacity:0; }
.nav-toggle.is-active .bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   Hero (ダーク / フルビュー)
--------------------------------------------------------- */

.hero{
  position:relative;
  background:var(--ink);
  color:var(--inverse);
  min-height:calc(100vh - var(--header-h));
  min-height:calc(100svh - var(--header-h));
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(44px,6vh,88px) 0 clamp(24px,4vh,44px);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  width:64vw;
  height:64vw;
  right:-22vw;
  top:-26vw;
  background:radial-gradient(circle at 50% 50%, rgba(212,69,0,.34), transparent 62%);
  pointer-events:none;
}
.hero-blocks{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.hero-block{
  position:absolute;
  border:1px solid rgba(255,255,255,.09);
}
.hero-block--fill{ background:rgba(255,255,255,.03); border-color:transparent; }
.hero-block--accent{ background:rgba(212,69,0,.35); border-color:transparent; }
.hero-block--b1{ width:26vw; height:26vw; right:-8vw; bottom:8%; }
.hero-block--b2{ width:12vw; height:12vw; right:20vw; bottom:26%; }
.hero-block--b3{ width:6vw; height:6vw; right:6vw; top:16%; background:rgba(212,69,0,.4); border-color:transparent; }
.hero-block--b4{ width:16vw; height:9vw; left:-6vw; top:12%; }

.hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr);
  column-gap:clamp(28px,4vw,72px);
  row-gap:clamp(32px,6vh,80px);
  align-items:center;
  flex:1;
}
.hero-logo-plate{
  justify-self:end;
  width:100%;
  max-width:380px;
  background:#fff;
  border-radius:var(--radius-card);
  padding:clamp(18px,2vw,30px);
}
.hero-logo-plate img{ width:100%; height:auto; }

.hero h1{
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(2.3rem,5.2vw,4.6rem);
  line-height:1.24;
  letter-spacing:-.02em;
  color:#fff;
  margin:0 0 clamp(18px,1.8vw,28px);
}
.hero .lead{
  max-width:38em;
  color:rgba(255,255,255,.72);
  font-size:clamp(1rem,1.05vw,1.1rem);
  line-height:2;
  margin:0 0 clamp(26px,3vw,42px);
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }

.hero-bottom{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-top:20px;
  border-top:1px solid var(--white-shade);
}
.hero-note{
  margin:0;
  font-family:var(--font-display);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(255,255,255,.5);
}

/* ---------------------------------------------------------
   Cards (事業内容 / 技術)
--------------------------------------------------------- */

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));
  gap:clamp(14px,1.5vw,24px);
}

.card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:clamp(22px,2.2vw,38px);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  transition:border-color .3s ease, transform .3s ease;
}
.card:hover{ border-color:var(--dark); transform:translateY(-4px); }
.card-no{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--font-display);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--accent);
}
.card-no::after{ content:""; flex:1; height:1px; background:var(--line); }
.card h3{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.1rem,1.3vw,1.35rem);
  line-height:1.5;
  margin:4px 0 0;
}
.card p{ color:var(--muted); font-size:.95rem; line-height:1.9; margin:0; }

.card--dark{
  background:transparent;
  border-color:var(--white-shade);
  color:#fff;
}
.card--dark:hover{ border-color:rgba(255,255,255,.42); }
.card--dark p{ color:rgba(255,255,255,.68); }
.card--dark .card-no{ color:var(--accent-light); }
.card--dark .card-no::after{ background:rgba(255,255,255,.24); }

/* ---------------------------------------------------------
   ステップ (プロセス)
--------------------------------------------------------- */

.steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(20px,2.4vw,44px);
}
.step{ position:relative; display:flex; flex-direction:column; gap:10px; }

/* ステップ間に矢印（tp_biz65 風） */
.step:not(:last-child)::after{
  content:"→";
  position:absolute;
  top:calc(clamp(22px,2.2vw,38px) / 2);
  right:calc(-1 * clamp(20px,2.4vw,44px) / 2 - .6em);
  transform:translateY(-50%);
  font-family:var(--font-display);
  font-size:1rem;
  color:var(--accent);
  opacity:.5;
}
.step-no{
  font-family:var(--font-display);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.18em;
  color:var(--faint);
}
.step h3{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.05rem,1.15vw,1.25rem);
  line-height:1.5;
  margin:2px 0 0;
}
.step p{ color:var(--muted); font-size:.93rem; line-height:1.85; margin:0; }

/* ---------------------------------------------------------
   数字で見る (result)
--------------------------------------------------------- */

.stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(24px,3vw,56px);
  margin-bottom:clamp(36px,4vw,64px);
}
.stat{ display:flex; flex-direction:column; gap:10px; }
.stat-num{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(2.6rem,4.6vw,4.4rem);
  line-height:1.1;
  letter-spacing:-.03em;
  color:var(--text);
}
.stat-num .unit{
  font-size:.3em;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--accent);
}
.stat h3{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.02rem;
  line-height:1.6;
  margin:6px 0 0;
}
.stat p{ color:var(--muted); font-size:.9rem; line-height:1.85; margin:0; }

/* ---------------------------------------------------------
   技術 (ドットラインのリスト)
--------------------------------------------------------- */

.tech-list{ border-top:1px solid var(--line-strong); }
.tech-item{
  display:grid;
  grid-template-columns:26px minmax(180px,300px) minmax(0,1fr);
  gap:clamp(14px,2vw,32px);
  align-items:baseline;
  padding:clamp(20px,2vw,30px) 0;
  border-bottom:1px solid var(--line);
}
.tech-item h3{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.05rem,1.2vw,1.3rem);
  line-height:1.5;
}
.tech-item p{ color:var(--muted); margin:0; line-height:1.9; }

.section--dark .tech-list{ border-top-color:rgba(255,255,255,.3); }
.section--dark .tech-item{ border-bottom-color:var(--white-shade); }
.section--dark .tech-item p{ color:rgba(255,255,255,.68); }
.section--dark .tech-item h3{ color:#fff; }

/* ---------------------------------------------------------
   プロジェクト概要 (KV)
--------------------------------------------------------- */

.kv{
  display:grid;
  grid-template-columns:minmax(160px,240px) minmax(0,1fr);
  border-top:1px solid var(--line-strong);
}
.kv dt{
  font-family:var(--font-display);
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.03em;
  padding:18px 4px;
  border-bottom:1px solid var(--line);
}
.kv dd{
  margin:0;
  padding:18px 4px;
  color:var(--muted);
  line-height:1.9;
  border-bottom:1px solid var(--line);
}
.kv a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.kv a:hover{ color:var(--accent-hover); }

/* ---------------------------------------------------------
   お知らせ (インサイト)
--------------------------------------------------------- */

.news-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:28px;
}
.news-head h2{
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.7rem,3vw,2.9rem);
  line-height:1.3;
  letter-spacing:-.015em;
  margin:0;
}
.news-more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.9rem;
  font-weight:600;
  color:var(--accent);
  white-space:nowrap;
}
.news-more:hover{ color:var(--accent-hover); }

.news-list{ display:flex; flex-direction:column; border-top:1px solid var(--line-strong); }
.news-row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:clamp(15px,1.6vw,22px) 8px;
  border-bottom:1px solid var(--line);
  transition:background-color .25s ease, padding-left .25s ease;
}
.news-row:hover{ background:var(--bg-alt); padding-left:16px; }
.news-row time{
  flex:0 0 92px;
  font-family:var(--font-display);
  font-size:.85rem;
  color:var(--faint);
  font-variant-numeric:tabular-nums;
  letter-spacing:.06em;
}
.news-cat{
  flex:0 0 auto;
  padding:3px 11px;
  border-radius:var(--radius-round);
  background:var(--accent-soft);
  color:var(--accent);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.04em;
  white-space:nowrap;
}
.news-new{
  flex:0 0 auto;
  padding:3px 9px;
  border-radius:var(--radius-round);
  background:var(--accent);
  color:#fff;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.12em;
}
.news-row .news-title{
  flex:1 1 auto;
  min-width:0;
  font-weight:500;
  font-size:1rem;
  color:var(--text);
  transition:color .25s ease;
}
.news-row:hover .news-title{ color:var(--accent); }
.news-row .news-arrow{ flex:0 0 auto; color:var(--faint); transition:transform .25s ease, color .25s ease; }
.news-row:hover .news-arrow{ color:var(--accent); transform:translateX(4px); }

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */

.faq-list{
  border-top:1px solid var(--line-strong);
  border-bottom:1px solid var(--line-strong);
}
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item:last-child{ border-bottom:0; }
.faq-item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:clamp(18px,1.9vw,26px) 0;
  font-family:var(--font-display);
  font-size:clamp(1rem,1.1vw,1.15rem);
  font-weight:500;
  line-height:1.7;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-q{
  flex:0 0 auto;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--accent);
}
.faq-text{ flex:1; }
.faq-icon{
  flex:0 0 auto;
  font-family:var(--font-display);
  font-size:1.3rem;
  line-height:1.4;
  color:var(--accent);
  transition:transform .3s ease;
}
.faq-item[open] .faq-icon{ transform:rotate(45deg); }
.faq-answer{
  padding:0 0 clamp(20px,2vw,28px);
  color:var(--muted);
  line-height:1.95;
  max-width:58em;
}
.faq-answer p{ margin:0 0 .9em; }
.faq-answer p:last-child{ margin-bottom:0; }

/* ---------------------------------------------------------
   CTA (ダークカード + ラジアルサークル)
--------------------------------------------------------- */

.cta{ background:var(--bg); }
.cta-card{
  position:relative;
  overflow:hidden;
  background:#1a1a18;
  border-radius:var(--radius-lg);
  padding:clamp(56px,8vw,132px) clamp(24px,3vw,56px);
  color:#f4f3f0;
  text-align:center;
}
.cta-circles{ position:absolute; inset:0; pointer-events:none; overflow:hidden; border-radius:inherit; }
.cta-circle{
  position:absolute;
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%, var(--accent) 0%, rgba(212,69,0,0) 62%);
  opacity:.5;
}
.cta-circle--1{ width:52vw; height:52vw; left:-16vw; top:-14vw; }
.cta-circle--2{ width:16vw; height:16vw; right:-3vw; top:-8%; }
.cta-circle--3{ width:30vw; height:30vw; left:-9%; bottom:-38%; }
.cta-circle--4{ width:26vw; height:26vw; right:7%; bottom:-24%; }
.cta-circle--5{ width:13vw; height:13vw; left:13%; top:14%; }
.cta-inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(14px,1.5vw,24px);
}
.cta-card h2{
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.7rem,3vw,2.9rem);
  line-height:1.3;
  letter-spacing:-.015em;
  color:#fff;
  margin:0;
}
.cta-card p{
  color:rgba(244,243,240,.74);
  max-width:44em;
  line-height:1.95;
  margin:0;
}
.cta-inner .btn{ margin-top:clamp(8px,1vw,16px); }

/* ---------------------------------------------------------
   Footer (ダーク)
--------------------------------------------------------- */

.site-footer{
  background:var(--ink);
  color:rgba(255,255,255,.7);
  padding:clamp(48px,5vw,88px) 0 clamp(22px,2vw,34px);
  border-top:1px solid var(--white-shade);
}
.footer-top{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:clamp(32px,4vw,80px);
  align-items:start;
}
.footer-title{
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.35rem,2vw,2.05rem);
  line-height:1.5;
  letter-spacing:-.01em;
  color:#fff;
  margin:0 0 clamp(22px,2.2vw,32px);
  max-width:15em;
}
.footer-logo{ margin-bottom:clamp(20px,2vw,28px); }
.footer-logo .brand-plate{ padding:10px 16px; border-radius:12px; }
.footer-logo .brand-plate img{ height:64px; }
.footer-contacts{
  list-style:none;
  margin:clamp(26px,3vw,44px) 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.footer-contacts li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.98rem;
  color:rgba(255,255,255,.82);
}
.footer-contacts a:hover{ color:var(--accent-light); }

.footer-menu{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(24px,3vw,48px);
}
.footer-col-title{
  font-family:var(--font-display);
  font-weight:500;
  font-size:.98rem;
  color:#fff;
  margin:0 0 20px;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.footer-col a{
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:rgba(255,255,255,.66);
  font-size:.95rem;
  transition:color .2s ease;
}
.footer-col a::before{
  content:"";
  width:7px;
  height:7px;
  background:var(--accent);
  transition:transform .2s ease;
}
.footer-col a:hover{ color:#fff; }
.footer-col a:hover::before{ background:var(--accent-light); transform:scale(1.35); }

.footer-bottom{
  margin-top:clamp(36px,4vw,64px);
  border-top:1px solid var(--white-shade);
  padding-top:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:rgba(255,255,255,.5);
  font-size:.85rem;
  letter-spacing:.04em;
}

/* ---------------------------------------------------------
   スクロール連動フェードイン（tp_biz65 の inview 相当）
--------------------------------------------------------- */

.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
  will-change:opacity, transform;
}
.reveal.is-inview{ opacity:1; transform:none; }
.reveal[data-delay="1"]{ transition-delay:.08s; }
.reveal[data-delay="2"]{ transition-delay:.16s; }
.reveal[data-delay="3"]{ transition-delay:.24s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
}

/* ---------------------------------------------------------
   PAGE TOP（↑）
--------------------------------------------------------- */

.pagetop{
  position:fixed;
  right:clamp(14px,2vw,24px);
  bottom:clamp(14px,2vw,24px);
  z-index:50;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .3s ease, transform .3s ease, visibility .3s;
}
.pagetop.is-show{ opacity:1; visibility:visible; transform:none; }
.pagetop a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:50px;
  height:50px;
  border-radius:50%;
  background:var(--dark);
  color:#fff;
  font-size:1.1rem;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:background-color .25s ease;
}
.pagetop a:hover{ background:var(--accent); }

/* ---------------------------------------------------------
   404
 --------------------------------------------------------- */

.nf{
  background:var(--ink);
  color:var(--inverse);
  min-height:calc(100vh - var(--header-h));
  display:flex;
  align-items:center;
  padding:clamp(48px,7vh,96px) 0;
}
.nf-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:clamp(36px,5vw,72px);
  align-items:center;
}
.nf h1{
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.9rem,3.8vw,3.2rem);
  line-height:1.34;
  letter-spacing:-.02em;
  color:#fff;
  margin:0 0 18px;
}
.nf p{ color:rgba(255,255,255,.7); margin:0 0 clamp(26px,3vw,40px); max-width:34em; line-height:1.95; }
.nf .hero-actions{ justify-content:flex-start; }
.nf-panel{
  background:rgba(255,255,255,.04);
  border:1px solid var(--white-shade);
  border-radius:var(--radius-card);
  padding:14px 28px;
}
.nf-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--white-shade);
  font-size:.9rem;
}
.nf-row:last-child{ border-bottom:0; }
.nf-row dt{ color:rgba(255,255,255,.5); margin:0; font-family:var(--font-display); letter-spacing:.06em; }
.nf-row dd{ margin:0; font-weight:600; color:#fff; font-family:var(--font-display); }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media(max-width:1080px){
  .steps{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .step::after{ display:none; }
  .section-head{ grid-template-columns:minmax(0,1fr); gap:14px; }
  .footer-top{ grid-template-columns:minmax(0,1fr); }
  .tech-item{ grid-template-columns:26px minmax(0,1fr); }
  .tech-item p{ grid-column:2; }
}

@media(max-width:860px){
  .stats{ grid-template-columns:minmax(0,1fr); gap:clamp(20px,4vw,32px); }
  .nf-grid{ grid-template-columns:minmax(0,1fr); }
  .hero-inner{ grid-template-columns:minmax(0,1fr); row-gap:clamp(28px,5vh,48px); }
  .hero-logo-plate{ justify-self:start; max-width:300px; }
}

@media(max-width:640px){
  :root{ --header-h:64px; }

  .nav-toggle{ display:inline-flex; }
  .nav-links{
    display:none;
    position:absolute;
    top:var(--header-h);
    left:0;
    right:0;
    background:var(--ink);
    border-bottom:1px solid var(--white-shade);
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:6px 0 16px;
    box-shadow:0 20px 40px rgba(0,0,0,.35);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:14px 4vw; border-top:1px solid var(--white-shade); font-size:1rem; }
  .nav-links a.nav-cta{
    margin:16px 4vw 4px;
    justify-content:center;
    padding:14px 20px;
    border-top:0;
  }

  .hero{ padding-top:clamp(40px,8vh,64px); }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ width:100%; }
  .hero-block--b1,.hero-block--b2,.hero-block--b4{ display:none; }

  .steps{ grid-template-columns:minmax(0,1fr); }
  .card-grid{ grid-template-columns:minmax(0,1fr); }
  .kv{ grid-template-columns:minmax(0,1fr); }
  .kv dt{ padding-bottom:2px; border-bottom:0; }
  .kv dd{ padding-top:4px; }

  .news-row{ flex-wrap:wrap; gap:8px 12px; }
  .news-row time{ flex:0 0 auto; }
  .news-row .news-title{ flex:1 1 100%; order:9; }
  .news-row .news-arrow{ display:none; }
  .news-head{ flex-direction:column; align-items:flex-start; }

  .tech-item{ grid-template-columns:20px minmax(0,1fr); }

  .footer-menu{ grid-template-columns:minmax(0,1fr); }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}


/* =========================================================
   AxTeRRa Corporate Refresh — white / charcoal design
   ========================================================= */
:root {
  --whitesmoke: #f7f8fa;
  --beige: #f1f3f5;
  --dark: #17191c;
  --dark-grey: #555b63;
  --grey: #737b85;
  --light-grey: #e1e4e8;
  --accent: #20252b;
  --accent-hover: #000000;
  --accent-light: #c7cdd4;
  --on-accent: #ffffff;
  --bg-alt: #f7f8fa;
  --accent-soft: #eef0f2;
  --new-soft: #eef0f2;
  --ink: #17191c;
  --ink-2: #101214;
  --white-shade: rgba(255,255,255,.14);
  --radius: 8px;
  --radius-card: 12px;
  --radius-lg: 18px;
}

::selection { background: #dfe3e7; color: #17191c; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline-color: #17191c;
}
.skip-link { background: #17191c; }
.section-tag, .section-head .head-main .eyebrow { color: #555b63; }
.section-tag--inverse { color: #d5d9de; }

.site-header {
  background: rgba(255,255,255,.96);
  color: #17191c;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(14px);
}
.brand-sub { color: #6b7280; }
.nav-links a { color: #454b53; }
.nav-links a::before { background: #9aa1aa; width: 5px; height: 5px; }
.nav-links a:hover, .nav-links a[aria-current] { color: #111315; }
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; }
.nav-toggle { border-color: #d9dde2; }
.nav-toggle .bar { background: #17191c; }

.btn { border-radius: 7px; }
.btn--accent { background: #17191c; border-color: #17191c; color: #fff; }
.btn--accent::after { background: #fff; color: #17191c; }
.btn--ghost { border-color: rgba(255,255,255,.55); }
.btn--outline { border-color: #b8bec6; }
.btn--outline::after { background: #17191c; }

.hero, .section--dark, .cta-card, .nf { background: #17191c; }
.hero::before { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 62%); }
.hero-block--b3 { background: rgba(255,255,255,.1); }
.hero-block { border-color: rgba(255,255,255,.08); }
.hero-logo-plate { background: #fff; border-radius: 12px; }
.hero .section-tag--inverse { color: #c8cdd3; }
.hero .br { color: #c8cdd3; }
.section--alt { background: #f7f8fa; }
.card, .faq-item, .kv, .nf-panel {
  border-color: #e2e5e9;
}
.card { background: #fff; box-shadow: 0 1px 2px rgba(17,24,39,.025); }
.card:hover { border-color: #b8bec6; }
.card-no, .step-no { color: #68707a; }
.dot { background: #17191c; }
.hline { background: #d3d7dc; }
.tech-item .dot { background: #17191c; }
.step:not(:last-child)::after { color: #707780; }
.cta-card { border-radius: 14px; }
.cta-circle { opacity: .13; }
.btn--light::after { background: #e9ecef; color: #17191c; }
.pagetop a { background: #17191c; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.pagetop a:hover { background: #444b54; }

.site-footer { background: #f7f8fa; color: #4b5159; border-top: 1px solid #e2e5e9; }
.footer-title, .footer-col-title { color: #17191c; }
.footer-contacts li { color: #454b53; }
.footer-col a { color: #555b63; }
.footer-col a:hover { color: #17191c; }
.footer-col a::before { background: #a5abb3; }
.footer-bottom { color: #707780; border-color: #dfe3e8; }
.footer-logo .brand-plate { border: 1px solid #e4e7eb; }
.footer-contacts .dot { background: #a5abb3; }

.news-more, .back-link { color: #353b43; }
.news-more:hover, .back-link:hover { color: #000; }
.news-row { border-color: #e2e5e9; }
.news-row:hover { background: #f7f8fa; }
.faq-item[open] { border-color: #b9bec5; }
.faq-q { background: #17191c; color: #fff; }
.faq-icon { color: #454b53; }

@media (max-width: 640px) {
  .nav-links {
    background: #fff;
    border-bottom-color: #e2e5e9;
    box-shadow: 0 16px 32px rgba(17,24,39,.1);
  }
  .nav-links a { border-top-color: #eceef1; color: #343a42; }
  .nav-links a.nav-cta { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* =========================================================
   Refinement 01 — brand assets and mobile navigation panel
   ========================================================= */
.brand {
  flex: 0 0 auto;
  gap: 2px;
  min-width: 0;
}
.brand .brand-plate {
  padding: 3px 9px;
  border: 1px solid rgba(23,25,28,.06);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(17,24,39,.04);
}
.brand .brand-plate img {
  width: auto;
  height: clamp(30px, 2.35vw, 36px);
  max-width: min(34vw, 180px);
  object-fit: contain;
  object-position: left center;
}
.brand-sub {
  margin-top: 4px;
  font-size: .56rem;
  letter-spacing: .2em;
  line-height: 1.2;
}
.hero-logo-plate {
  display: grid;
  place-items: center;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.hero-logo-plate img {
  width: min(100%, 320px);
  max-height: 300px;
  object-fit: contain;
}
.footer-logo .brand-plate {
  padding: 10px 14px;
  border-radius: 10px;
}
.footer-logo .brand-plate img {
  width: auto;
  height: clamp(62px, 5vw, 78px);
  max-width: 110px;
  object-fit: contain;
}

/* A deliberate, spacious mobile menu rather than a full-width link strip. */
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .brand { max-width: calc(100% - 64px); }
  .brand .brand-plate img {
    height: 30px;
    max-width: min(46vw, 172px);
  }
  .brand-sub { font-size: .52rem; letter-spacing: .16em; }
  .nav-toggle {
    position: relative;
    z-index: 2;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid #d7dbe0;
    border-radius: 12px;
    background: #fff;
    color: #17191c;
    box-shadow: 0 2px 8px rgba(17,24,39,.04);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .nav-toggle:hover,
  .nav-toggle.is-active {
    background: #f1f3f5;
    border-color: #aeb5be;
    box-shadow: 0 4px 14px rgba(17,24,39,.08);
  }
  .nav-toggle .bar {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    margin: 0 !important;
    background: #17191c;
    transition: transform .22s ease, opacity .16s ease, top .22s ease;
  }
  .nav-toggle .bar:nth-child(1) { top: 15px; }
  .nav-toggle .bar:nth-child(2) { top: 21px; }
  .nav-toggle .bar:nth-child(3) { top: 27px; }
  .nav-toggle.is-active .bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav-toggle.is-active .bar:nth-child(2) { opacity: 0; transform: scaleX(.4); }
  .nav-toggle.is-active .bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 4vw;
    right: 4vw;
    max-height: min(76svh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    gap: 4px;
    align-items: stretch;
    background: rgba(255,255,255,.98);
    color: #17191c;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(17,24,39,.18), 0 2px 8px rgba(17,24,39,.04);
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.99);
    transform-origin: top center;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1;
  }
  .nav-links.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav-links a {
    display: flex;
    min-height: 48px;
    padding: 12px 14px;
    gap: 12px;
    border: 0;
    border-radius: 9px;
    color: #343a42;
    font-size: .98rem;
    line-height: 1.4;
    transition: background .18s ease, color .18s ease;
  }
  .nav-links a::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: #9aa1aa;
  }
  .nav-links a:hover,
  .nav-links a[aria-current] {
    color: #111315;
    background: #f1f3f5;
  }
  .nav-links a:hover::before,
  .nav-links a[aria-current]::before { background: #17191c; }
  .nav-links a.nav-cta {
    margin: 8px 0 0;
    min-height: 50px;
    justify-content: center;
    border-radius: 10px;
    background: #17191c;
    color: #fff;
    border: 1px solid #17191c;
  }
  .nav-links a.nav-cta:hover { background: #343a42; color: #fff; }
  .nav-links a.nav-cta::before { display: none; }
  .footer-logo .brand-plate img { height: 64px; }
}


/* Refinement 02 — give the wordmark a readable, intentional size */
.brand .brand-plate {
  padding: 4px 10px;
}
.brand .brand-plate img {
  width: clamp(142px, 12.2vw, 166px);
  height: auto;
  max-height: 42px;
  max-width: min(48vw, 166px);
  object-fit: contain;
}
@media (max-width: 640px) {
  .brand .brand-plate img {
    width: clamp(138px, 42vw, 158px);
    height: auto;
    max-height: 34px;
    max-width: min(48vw, 158px);
  }
}


/* Refinement 03 — page entrance motion and mobile-menu backdrop */
body.nav-menu-open::before {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 59;
  background: rgba(17, 24, 39, .22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
@media (min-width: 641px) {
  body.nav-menu-open::before { display: none; }
}

/* Keep the page fully readable if JavaScript is unavailable or motion is reduced. */
html.motion-ready:not(.is-page-ready) .hero-main,
html.motion-ready:not(.is-page-ready) .hero-logo-plate,
html.motion-ready:not(.is-page-ready) .hero-bottom {
  opacity: 0;
  transform: translateY(18px);
}
html.motion-ready.is-page-ready .hero-main,
html.motion-ready.is-page-ready .hero-logo-plate,
html.motion-ready.is-page-ready .hero-bottom {
  opacity: 1;
  transform: translateY(0);
}
html.motion-ready .hero-main,
html.motion-ready .hero-logo-plate,
html.motion-ready .hero-bottom {
  transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1);
}
html.motion-ready .hero-logo-plate { transition-delay: .12s; }
html.motion-ready .hero-bottom { transition-delay: .2s; }
html.motion-ready .hero-logo-plate img {
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
html.motion-ready:not(.is-page-ready) .hero-logo-plate img { transform: scale(.96); }
html.motion-ready.is-page-ready .hero-logo-plate img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html.motion-ready:not(.is-page-ready) .hero-main,
  html.motion-ready:not(.is-page-ready) .hero-logo-plate,
  html.motion-ready:not(.is-page-ready) .hero-bottom {
    opacity: 1;
    transform: none;
  }
  body.nav-menu-open::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
}


/* Refinement 04 — entrance motion for the news page and staggered menu items */
html.motion-ready:not(.is-page-ready) .page-hero,
html.motion-ready:not(.is-page-ready) .page-body {
  opacity: 0;
  transform: translateY(14px);
}
html.motion-ready.is-page-ready .page-hero,
html.motion-ready.is-page-ready .page-body {
  opacity: 1;
  transform: translateY(0);
}
html.motion-ready .page-hero,
html.motion-ready .page-body {
  transition: opacity .68s cubic-bezier(.2,.7,.2,1), transform .68s cubic-bezier(.2,.7,.2,1);
}
html.motion-ready .page-body { transition-delay: .1s; }

@media (max-width: 640px) {
  .nav-links.open a {
    animation: menu-link-enter .28s cubic-bezier(.2,.7,.2,1) both;
  }
  .nav-links.open a:nth-child(1) { animation-delay: .02s; }
  .nav-links.open a:nth-child(2) { animation-delay: .045s; }
  .nav-links.open a:nth-child(3) { animation-delay: .07s; }
  .nav-links.open a:nth-child(4) { animation-delay: .095s; }
  .nav-links.open a:nth-child(5) { animation-delay: .12s; }
  .nav-links.open a:nth-child(6) { animation-delay: .145s; }
  .nav-links.open a:nth-child(7) { animation-delay: .17s; }
}
@keyframes menu-link-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html.motion-ready:not(.is-page-ready) .page-hero,
  html.motion-ready:not(.is-page-ready) .page-body {
    opacity: 1;
    transform: none;
  }
  .nav-links.open a { animation: none !important; }
}


/* Refinement 05 — preserve the wordmark's readable size on narrow screens */
.brand .brand-plate img {
  width: clamp(150px, 12vw, 164px);
  height: auto;
  max-height: none;
  max-width: min(48vw, 164px);
}
@media (max-width: 640px) {
  .brand .brand-plate img {
    width: clamp(128px, 38vw, 142px);
    height: auto;
    max-height: none;
    max-width: min(48vw, 142px);
  }
}


/* Shared loading screen — white canvas, centered AxTeRRa wordmark and progress bar */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  color: #17191c;
  opacity: 1;
  visibility: visible;
  transition: opacity .32s ease, visibility .32s ease;
}
.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 260px);
  text-align: center;
}
.site-loader__logo {
  display: block;
  width: min(212px, 72vw);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  margin-bottom: 34px;
}
.site-loader__label {
  font-family: var(--font-display, Inter, sans-serif);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  line-height: 1;
  margin: 0 0 15px .28em;
}
.site-loader__track {
  position: relative;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ebee;
}
.site-loader__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: #17191c;
  animation: site-loader-progress 1.15s cubic-bezier(.65,0,.35,1) infinite;
}
.site-loader__status {
  margin-top: 14px;
  color: #737b85;
  font-size: .75rem;
  letter-spacing: .04em;
}
@keyframes site-loader-progress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(175%); }
  100% { transform: translateX(290%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader { transition: none; }
  .site-loader__progress { animation-duration: 2.5s; }
}


/* Layout repair — prevent cramped navigation and horizontal overflow */
html { overflow-x: clip; }
body { min-width: 320px; overflow-x: clip; }
.container { width: min(var(--container), calc(100% - clamp(32px, 6vw, 88px))); }
img, video, iframe { max-width: 100%; }
.hero-inner > *, .section-head > *, .footer-top > *, .footer-menu > *, .nf-grid > * { min-width: 0; }
.hero h1, .page-title, .section-head h2, .card h3, .footer-title,
.hero .lead, .section-head p, .card p, .page-lead, #article { overflow-wrap: anywhere; }
.btn { max-width: 100%; }
.hero-actions { min-width: 0; }
.hero-actions .btn { white-space: normal; }

@media (min-width: 821px) and (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav-links { gap: clamp(8px, 1vw, 14px); }
  .nav-links a { font-size: .84rem; gap: 6px; }
  .nav-links a::before { width: 5px; height: 5px; }
  .nav-links a.nav-cta { margin-left: 0; }
  .brand .brand-plate img { width: clamp(132px, 15vw, 154px); }
  .brand-sub { letter-spacing: .12em; font-size: .52rem; }
}
@media (max-width: 820px) {
  .nav { position: relative; gap: 12px; }
  .nav-toggle {
    display: inline-flex; position: relative; z-index: 62; flex: 0 0 46px;
    width: 46px; height: 46px; flex-direction: column; gap: 5px;
    border: 1px solid #d7dbe0; border-radius: 12px; background: #fff;
  }
  .nav-toggle .bar { width: 18px; height: 2px; margin: 0 !important; background: #17191c; transition: transform .22s ease, opacity .16s ease; }
  .nav-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: flex; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    max-height: min(76svh, 560px); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px; gap: 4px; align-items: stretch; background: rgba(255,255,255,.98);
    color: #17191c; border: 1px solid #e1e5e9; border-radius: 16px;
    box-shadow: 0 24px 60px rgba(17,24,39,.18); flex-direction: column;
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px) scale(.99);
    transform-origin: top center; transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 61;
  }
  .nav-links.open { display: flex; visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  .nav-links a { display: flex; min-height: 46px; padding: 12px 14px; gap: 12px; border: 0; border-radius: 9px; color: #343a42; font-size: .96rem; line-height: 1.4; }
  .nav-links a::before { width: 6px; height: 6px; flex: 0 0 6px; background: #9aa1aa; }
  .nav-links a:hover, .nav-links a[aria-current] { color: #111315; background: #f1f3f5; }
  .nav-links a.nav-cta { margin: 8px 0 0; min-height: 48px; justify-content: center; border-radius: 10px; background: #17191c; color: #fff; border: 1px solid #17191c; }
  .nav-links a.nav-cta::before { display: none; }
  .brand .brand-plate img { width: clamp(128px, 35vw, 154px); max-width: 45vw; }
  .brand-sub { font-size: .5rem; letter-spacing: .12em; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .hero { min-height: auto; }
  .hero-inner { row-gap: 30px; }
  .hero-logo-plate { width: min(100%, 280px); justify-self: start; }
  .hero-bottom { align-items: flex-start; }
  .hero-note { max-width: 100%; overflow-wrap: anywhere; letter-spacing: .12em; }
  .section { scroll-margin-top: calc(var(--header-h) + 12px); }
  .footer-contacts li, .footer-bottom span { overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .brand .brand-plate { padding: 3px 7px; }
  .brand .brand-plate img { width: 126px; max-width: 42vw; }
  .brand-sub { font-size: .46rem; letter-spacing: .08em; }
  .nav-toggle { flex-basis: 42px; width: 42px; height: 42px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: .9em 1em; }
  .article-shell { padding: 20px 16px; }
  #article table { min-width: 520px; }
  #article pre { max-width: 100%; }
  .toc { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links { transition: none !important; }
  .nav-links.open a { animation: none !important; }
}


/* Square, precise visual language — consistent with the existing editorial layout */
:root {
  --radius: 2px;
  --radius-card: 2px;
  --radius-lg: 2px;
  --radius-round: 2px;
}
.btn,
.nav-toggle,
.brand-plate,
.card,
.hero-logo-plate,
.cta-card,
.nf-panel,
.pagetop a,
.faq-item,
input,
select,
textarea {
  border-radius: 2px;
}
.btn--wide { border-radius: 2px; }
.site-loader__track,
.site-loader__progress { border-radius: 0; }

/* Contact — structured form with square corners and clear field hierarchy */
.contact-section { background: var(--bg-alt); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  border: 1px solid var(--line-strong);
  background: #fff;
}
.contact-info {
  padding: clamp(24px, 3.2vw, 48px);
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-kicker,
.contact-form-index {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.contact-kicker { color: var(--accent-light); }
.contact-info h3 {
  margin: 24px 0 14px;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.5;
  font-weight: 500;
}
.contact-info > p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.9;
  font-size: .94rem;
}
.contact-info-list {
  width: 100%;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
  overflow-wrap: anywhere;
}
.contact-info-label {
  font-size: .72rem;
  color: rgba(255,255,255,.52);
  letter-spacing: .08em;
}
.contact-info-row > :last-child { color: #fff; font-size: .94rem; }
.contact-info-row a { text-decoration: underline; text-underline-offset: 4px; }
.contact-note {
  margin: auto 0 0 !important;
  padding-top: 24px;
  font-size: .8rem !important;
  color: rgba(255,255,255,.58) !important;
  line-height: 1.8;
}
.contact-form { min-width: 0; padding: clamp(24px, 3.2vw, 48px); }
.contact-form-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.contact-form-index { color: var(--accent); }
.contact-form-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.required-note { margin-left: 10px; color: var(--muted); font-size: .78rem; }
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 600; line-height: 1.6; }
.required-mark,
.optional-mark {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  font-size: .68rem;
  font-weight: 500;
  white-space: nowrap;
}
.required-mark { color: var(--accent); border-color: #d9a18c; }
.optional-mark { color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #c9cdd2;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  font-size: .94rem;
  line-height: 1.6;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form input,
.contact-form select { min-height: 49px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8b929a; opacity: 1; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--dark);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(28,23,18,.12);
}
.form-help { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.contact-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-form-status { max-width: 28em; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.contact-submit { flex: 0 0 auto; min-height: 50px; border-radius: 2px; }
.contact-submit > span { display: inline-flex; align-items: center; gap: 10px; }
.contact-submit::after { white-space: normal; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-info { padding: 28px; }
  .contact-info h3 { margin-top: 18px; }
  .contact-info-list { margin-top: 22px; }
  .contact-info .contact-note { margin-top: 20px !important; }
}
@media (max-width: 560px) {
  .contact-form { padding: 24px 18px; }
  .contact-info { padding: 26px 20px; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form-field--full { grid-column: auto; }
  .contact-form-heading { align-items: flex-start; flex-direction: column; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; white-space: normal; }
}
