@charset "utf-8";

/* ============================================================
   archprimes — C案「紙と拱（きょう）」
   生成り紙に墨と朱。アーチは線ではなく面で置き、版画のように使う。
   装飾ではなく、余白と線で構造を作る。
   ============================================================ */

:root{
  --wrap: 1080px;
  --pad: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --mincho: "Yu Mincho","YuMincho","Hiragino Mincho ProN","Hiragino Mincho Pro","Noto Serif JP",serif;
  --gothic: "Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic","Noto Sans JP","Meiryo",sans-serif;
  --latin:  "Helvetica Neue",Arial,sans-serif;

  --bg:#EFEAE0;          /* 生成り紙 */
  --surface:#F7F3EA;     /* 面（一段明るい紙） */
  --surface-2:#FBF8F1;
  --line:rgba(42,39,35,.22);
  --fg:#22201D;          /* 墨 */
  --fg-sub:#6B655C;
  --accent:#B4553F;      /* 朱 */
  --hd-bg:rgba(239,234,224,.92);

  --h-font:var(--gothic); --h-weight:700; --h-ls:.01em; --h-lh:1.58;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--gothic);
  font-size:16px;
  line-height:1.95;
  letter-spacing:.04em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; font-weight:400; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; list-style:none; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 var(--pad); }

/* ── 背景の極薄グリッド ───────────────────────── */
.gridlines{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  display:none;
  max-width:var(--wrap); margin:0 auto; padding:0 var(--pad);
  justify-content:space-between;
}
.gridlines i{ width:1px; background:var(--line); opacity:.45; }
@media (min-width:980px){ .gridlines{ display:flex; } }

/* ── ヘッダー ─────────────────────────────── */
.hd{
  position:fixed; top:0; left:0; right:0; z-index:50;
  border-bottom:1px solid transparent;
  transition:background .4s var(--ease), border-color .4s var(--ease);
}
.hd.stuck{ background:var(--hd-bg); backdrop-filter:blur(10px); border-bottom-color:var(--line); }
.hd-in{ display:flex; align-items:center; justify-content:space-between; height:74px; }

.logo{ font-family:var(--latin); font-size:19px; letter-spacing:.24em; color:var(--fg); }
.nav{ display:flex; align-items:center; gap:30px; font-size:13px; letter-spacing:.1em; color:var(--fg-sub); }
.nav a{ position:relative; padding:6px 0; transition:color .3s; }
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.nav a:hover{ color:var(--fg); }
.nav a:hover::after{ transform:scaleX(1); }
.nav-cta{ color:var(--accent); border:1px solid var(--line); padding:9px 18px !important; }
.nav-cta::after{ display:none; }
.nav-cta:hover{ border-color:var(--accent); }

.burger{ display:none; width:44px; height:44px; background:none; border:0; cursor:pointer; padding:0; }
.burger span{ display:block; width:22px; height:1px; margin:5px auto; background:var(--fg); transition:transform .3s var(--ease); }

@media (max-width:820px){
  .burger{ display:block; }
  .nav{
    position:fixed; inset:74px 0 auto 0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    padding:8px var(--pad) 28px;
    transform:translateY(-120%); transition:transform .45s var(--ease);
    font-size:15px;
  }
  .nav.open{ transform:none; }
  .nav a{ width:100%; padding:16px 0; border-bottom:1px solid var(--line); }
  .nav-cta{ margin-top:18px; border:1px solid var(--accent); text-align:center; }
  .burger.on span:nth-child(1){ transform:translateY(3px) rotate(45deg); }
  .burger.on span:nth-child(2){ transform:translateY(-3px) rotate(-45deg); }
}

/* ── ヒーロー ─────────────────────────────── */
.hero{
  position:relative; z-index:1;
  min-height:100svh; display:flex; align-items:center;
  padding:120px 0 80px; overflow:hidden;
}
/* アーチは面で重ねる（版画の刷り） */
.hero-arch{
  position:absolute; right:-4%; bottom:0;
  width:min(52vw,620px); height:auto;
  stroke:none; pointer-events:none;
}
.hero-arch .a1{ fill:var(--accent); fill-opacity:.06; }
.hero-arch .a2{ fill:var(--accent); fill-opacity:.09; }
.hero-arch .a3{ fill:var(--fg); fill-opacity:.06; }
@media (max-width:700px){ .hero-arch{ right:-14%; width:76vw; opacity:.7; } }
.hero-in{ position:relative; z-index:2; }

.hero-eyebrow{ font-size:12px; letter-spacing:.28em; color:var(--accent); margin-bottom:30px; }
.hero-h{
  font-family:var(--h-font); font-weight:var(--h-weight);
  font-size:clamp(27px,7vw,62px);
  line-height:1.42; letter-spacing:var(--h-ls);
  /* 「割り切れない」が誤読される前にサブが目に入るよう、間隔は詰める */
  margin-bottom:26px;
}
.hero-sub{ color:var(--fg-sub); font-size:15px; line-height:2.15; }
@media (min-width:768px){ .hero-sub{ font-size:16px; } }

.btn{
  display:inline-flex; align-items:center; gap:14px;
  margin-top:44px; padding:15px 26px;
  border:1px solid var(--line); color:var(--accent);
  font-size:14px; letter-spacing:.1em;
  transition:border-color .35s var(--ease), background .35s var(--ease);
}
.btn:hover{ border-color:var(--accent); background:rgba(180,85,63,.06); }
.btn-ar{ transition:transform .35s var(--ease); }
.btn:hover .btn-ar{ transform:translateX(5px); }
.btn-solid{ background:var(--accent); color:var(--bg); border-color:var(--accent); cursor:pointer; font-family:inherit; }
.btn-solid:hover{ background:var(--accent); opacity:.86; }

/* ── セクション共通 ────────────────────────── */
.sec{ position:relative; z-index:1; padding:104px 0; }
@media (min-width:768px){ .sec{ padding:150px 0; } }

/* セクション番号は素数（02/03/05/07/11/13/17） */
.num{ display:flex; align-items:center; gap:20px; margin-bottom:34px; }
.num span{ font-family:var(--latin); font-size:12px; letter-spacing:.22em; color:var(--accent); }
.num i{ display:block; height:1px; flex:1; background:var(--line); transform-origin:left; }

.sec h2{
  font-family:var(--h-font); font-weight:var(--h-weight);
  font-size:clamp(25px,3.6vw,41px);
  line-height:var(--h-lh); letter-spacing:var(--h-ls);
}

.lead{ margin-top:44px; display:flex; flex-direction:column; gap:26px; color:var(--fg-sub); font-size:15px; }
@media (min-width:768px){ .lead{ font-size:16px; margin-top:52px; } }
.lead-narrow{ max-width:720px; }
.lead-punch{ color:var(--fg); }
.lead-punch em{
  font-style:normal; color:var(--fg);
  /* インライン要素の inset box-shadow は四方に線が出るため、背景で下線を引く */
  background-image:linear-gradient(var(--accent),var(--accent));
  background-repeat:no-repeat; background-size:100% 1px; background-position:0 100%;
  padding-bottom:4px;
}
.sp-br{ display:none; }
@media (max-width:600px){ .sp-br{ display:inline; } }

/* ── 図版（SVG） ─────────────────────────── */
.fig-wrap{ margin:64px 0 0; }
@media (min-width:768px){ .fig-wrap{ margin-top:80px; } }
.fig{ display:block; width:100%; max-width:760px; height:auto; margin:0 auto; }
.fig-fill{ fill:var(--accent); fill-opacity:.05; stroke:none; }
.fig-accent{ fill:none; stroke:var(--accent); stroke-width:1.2; }
.fig-thin{ stroke-width:1; }
.fig-ground{ fill:none; stroke:var(--fg); stroke-width:1.2; opacity:.6; }
.fig-dash{ stroke-dasharray:3 6; opacity:.45; }
.fig-box rect,rect.fig-box{ fill:var(--bg); stroke:var(--fg); stroke-width:1.2; }
.fig-box-ac rect{ fill:rgba(180,85,63,.14); stroke:var(--accent); }
.fig-t{ font-family:var(--gothic); font-size:13px; fill:var(--fg-sub); letter-spacing:.08em; }
.fig-t-sub{ font-size:11px; opacity:.7; }
.fig-t-ac{ fill:var(--accent); }
.fig-brand{ font-family:var(--latin); font-size:14px; fill:var(--accent); letter-spacing:.22em; }
.fig-cap{ margin-top:22px; text-align:center; font-size:12.5px; color:var(--fg-sub); letter-spacing:.06em; }

/* 図版は viewBox で縮むため、狭い画面では中の文字と線が潰れる。
   viewBox 単位の値を上げて、実寸をだいたい保つ。 */
@media (max-width:700px){
  .fig-t{ font-size:26px; letter-spacing:.04em; }
  .fig-t-sub{ font-size:22px; }
  .fig-brand{ font-size:26px; letter-spacing:.16em; }
  .fig-accent{ stroke-width:2.6; }
  .fig-thin{ stroke-width:2.2; }
  .fig-ground{ stroke-width:2.6; }
  .fig-dash{ stroke-dasharray:7 12; }
  .fig-box rect,rect.fig-box{ stroke-width:2.6; }
}

/* ── 03 できること ───────────────────────── */
.areas{ margin:56px 0 0; border-top:1px solid var(--line); }
.areas > div{ padding:28px 0; border-bottom:1px solid var(--line); display:grid; gap:8px; }
@media (min-width:820px){
  .areas > div{ grid-template-columns:320px 1fr; gap:0; align-items:baseline; padding:32px 0; }
}
.areas dt{
  position:relative; padding-left:24px;
  font-family:var(--h-font); font-weight:var(--h-weight);
  font-size:18px; letter-spacing:var(--h-ls);
}
/* 見出しの印はアーチ（∩）。社名のモチーフと揃える */
.areas dt::before{
  content:""; position:absolute; left:0; top:.62em;
  width:12px; height:9px;
  border:1.5px solid var(--accent); border-bottom:0;
  border-radius:12px 12px 0 0;
}
.areas dd{ margin:0; padding-left:24px; color:var(--fg-sub); font-size:15px; line-height:1.95; }
@media (min-width:820px){ .areas dd{ padding-left:0; } }

/* 領域リストの下の但し書き（士業の独占業務・再委託の扱い） */
.areas-note{
  margin-top:28px; padding-left:24px;
  font-size:13px; line-height:1.9; color:var(--fg-sub);
}
@media (min-width:820px){ .areas-note{ padding-left:320px; } }

/* ── 面のセクション（03 / 07） ─────────────── */
.sec-ai{ background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.ai-h{ max-width:820px; }

/* 05 AI：自社での使い方 */
.usage{
  margin-top:56px; padding:34px 32px;
  background:var(--surface); border:1px solid var(--line);
  display:flex; flex-direction:column; gap:18px;
  color:var(--fg-sub); font-size:15px; line-height:2;
}
@media (min-width:768px){ .usage{ padding:42px 44px; } }
.usage-h{
  font-family:var(--h-font); font-weight:var(--h-weight);
  font-size:19px; letter-spacing:var(--h-ls); line-height:1.7; color:var(--fg);
}
.usage-p{
  color:var(--fg); padding-top:18px; border-top:1px solid var(--line);
}

/* ── 11 やってきたこと（事例） ───────────────── */
.cases-note{ margin-top:22px; font-size:13px; color:var(--fg-sub); letter-spacing:.06em; }
.cases{ margin-top:52px; border-top:1px solid var(--line); }
.case{ padding:40px 0; border-bottom:1px solid var(--line); }
@media (min-width:900px){
  .case{ display:grid; grid-template-columns:320px 1fr; gap:0 40px; padding:52px 0; }
}
.case-meta{ font-size:12px; letter-spacing:.12em; color:var(--accent); margin-bottom:14px; }
.case h3{
  font-family:var(--h-font); font-weight:var(--h-weight);
  font-size:20px; line-height:1.7; letter-spacing:var(--h-ls);
}
@media (min-width:900px){ .case h3{ font-size:21px; padding-right:24px; } }
.case-body{ margin-top:24px; }
@media (min-width:900px){ .case-body{ margin-top:0; } }
.case-body ul{ display:flex; flex-direction:column; gap:12px; }
.case-body li{
  position:relative; padding-left:22px;
  font-size:15px; line-height:1.95; color:var(--fg-sub);
}
.case-body li::before{
  content:""; position:absolute; left:0; top:.78em;
  width:10px; height:8px;
  border:1px solid var(--accent); border-bottom:0;
  border-radius:10px 10px 0 0; opacity:.85;
}
.case-result{
  margin-top:22px; padding-top:20px; border-top:1px solid var(--line);
  font-size:16px; line-height:1.9; color:var(--fg);
}

/* 未確定プレースホルダ（公開前に必ず消す） */
.ph{
  margin-top:48px; padding:26px 28px;
  border:1px dashed var(--accent); background:rgba(180,85,63,.05);
  color:var(--fg-sub); font-size:14px; line-height:1.95;
}
.ph-t{ color:var(--accent); font-size:12px; letter-spacing:.16em; margin-bottom:10px; }
.undecided{ color:var(--accent); border-bottom:1px dashed currentColor; display:inline-block; }

/* ── 07 進め方 ───────────────────────────── */
.steps{ margin-top:56px; display:grid; gap:1px; background:var(--line); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
@media (min-width:900px){ .steps{ grid-template-columns:repeat(4,1fr); } }
.steps li{ background:var(--surface); padding:34px 26px 38px; }
.steps li::before{
  content:""; display:block; width:26px; height:14px;
  border:1.5px solid var(--accent); border-bottom:0;
  border-radius:26px 26px 0 0; opacity:.75; margin-bottom:20px;
}
.st-n{ font-family:var(--latin); font-size:12px; letter-spacing:.22em; color:var(--accent); margin-bottom:14px; }
.steps h3{ font-family:var(--h-font); font-weight:var(--h-weight); font-size:20px; letter-spacing:var(--h-ls); }
.st-t{ margin-top:10px; font-size:12.5px; letter-spacing:.08em; color:var(--accent); }
.st-d{ margin-top:18px; font-size:14px; line-height:1.95; color:var(--fg-sub); }
/* この段階が終わると何が手に入るか。期間を書かない代わりに、完了の定義を示す */
.st-out{
  margin-top:16px; padding-top:14px; border-top:1px solid var(--line);
  font-size:14px; line-height:1.9; color:var(--fg);
}
.steps-note{ margin-top:24px; font-size:13px; line-height:1.9; color:var(--fg-sub); }

/* ── 11 共同代表 / 13 会社概要 ─────────────────
   以前は墨地に反転させていたが、他のセクションと同じ紙の色合いに揃えた。 */
.reps{ position:relative; margin-top:64px; display:grid; gap:52px; }
@media (min-width:840px){ .reps{ grid-template-columns:1fr 1fr; gap:0; } }
.reps-arch{
  position:absolute; inset:0; width:100%; height:100%;
  fill:none; stroke:var(--line); stroke-width:1.5;
  pointer-events:none; display:none;
}
@media (min-width:840px){
  .reps-arch{ display:block; }
  .rep{ padding:56px 44px 20px; }
  .rep:first-of-type{ border-right:1px solid var(--line); }
}
.rep{ position:relative; z-index:1; }
.rep-role{ font-size:12px; letter-spacing:.16em; color:var(--accent); margin-bottom:14px; }
.rep h3{ font-family:var(--h-font); font-weight:var(--h-weight); font-size:26px; letter-spacing:var(--h-ls); }
.rep h3 span{ display:block; margin-top:10px; font-weight:400; font-size:12px; letter-spacing:.18em; color:var(--fg-sub); }
.rep .ph{ margin-top:26px; }
.rep-bio{ margin-top:26px; display:flex; flex-direction:column; gap:18px; color:var(--fg-sub); font-size:14.5px; line-height:2; }

.profile{ margin:52px 0 0; border-top:1px solid var(--line); }
.profile > div{ display:grid; gap:6px; padding:22px 0; border-bottom:1px solid var(--line); }
@media (min-width:700px){ .profile > div{ grid-template-columns:190px 1fr; gap:0; padding:26px 0; } }
.profile dt{ font-size:13px; letter-spacing:.14em; color:var(--fg-sub); }
.profile dd{ margin:0; font-size:15px; line-height:1.9; }

/* ── 17 フォーム ─────────────────────────── */
/* 問い合わせ先（フォーム未接続の間、メールアドレスに一本化） */
.contact-mail{
  margin-top:56px; padding:38px 32px;
  background:var(--surface); border:1px solid var(--line);
}
.contact-mail-label{ font-size:12.5px; letter-spacing:.12em; color:var(--fg-sub); }
.contact-mail-link{
  display:inline-block; margin-top:14px;
  font-family:var(--h-font); font-weight:var(--h-weight);
  font-size:clamp(20px,4vw,28px); letter-spacing:.02em; color:var(--accent);
  border-bottom:1px solid currentColor; padding-bottom:2px;
}
.contact-mail-link:hover{ opacity:.8; }
.contact-mail-note{ margin-top:18px; font-size:13px; line-height:1.9; color:var(--fg-sub); }

.form{ margin-top:56px; display:grid; gap:34px; }
@media (min-width:760px){ .form{ grid-template-columns:1fr 1fr; gap:38px 40px; } }
.f-full{ grid-column:1/-1; }
.f label{ display:flex; align-items:center; gap:12px; font-size:13px; letter-spacing:.12em; color:var(--fg-sub); margin-bottom:12px; }
.f label i{ font-style:normal; font-size:10px; letter-spacing:.1em; color:var(--accent); border:1px solid var(--accent); padding:2px 7px; }
.f label i.opt{ color:var(--fg-sub); border-color:var(--line); }
.f input,.f textarea{
  width:100%; background:transparent; border:0; border-bottom:1px solid var(--line);
  color:var(--fg); font-family:inherit; font-size:16px; letter-spacing:.04em; line-height:1.8;
  padding:10px 2px; transition:border-color .35s var(--ease);
}
.f textarea{ border:1px solid var(--line); padding:16px; resize:vertical; background:var(--bg); }
.f input:focus,.f textarea:focus{ outline:none; border-color:var(--accent); }
.f input.err,.f textarea.err{ border-color:#9E3B24; }

.f-submit{ display:flex; flex-direction:column; gap:24px; align-items:flex-start; }
@media (min-width:760px){ .f-submit{ flex-direction:row; align-items:center; justify-content:space-between; } }
.f-note{ font-size:12.5px; color:var(--fg-sub); }
.f-note a{ color:var(--accent); border-bottom:1px solid currentColor; }
.f-submit .btn{ margin-top:0; }
.f-msg{ grid-column:1/-1; font-size:13.5px; color:var(--accent); min-height:1.5em; }

/* ── 文書ページ（プライバシーポリシー等） ────────── */
.doc{ padding:150px 0 110px; }
.doc h1{ font-family:var(--h-font); font-weight:var(--h-weight); font-size:clamp(26px,4vw,38px); letter-spacing:var(--h-ls); }
.doc section{ margin-top:56px; }
.doc h2{ font-family:var(--h-font); font-weight:var(--h-weight); font-size:19px; letter-spacing:var(--h-ls); padding-bottom:14px; border-bottom:1px solid var(--line); }
.doc section p{ margin-top:20px; font-size:15px; color:var(--fg-sub); max-width:760px; }
.doc-list{ margin-top:18px; display:flex; flex-direction:column; gap:10px; }
.doc-list li{ position:relative; padding-left:22px; font-size:15px; color:var(--fg-sub); }
.doc-list li::before{
  content:""; position:absolute; left:0; top:.78em;
  width:10px; height:8px; border:1px solid var(--accent); border-bottom:0;
  border-radius:10px 10px 0 0; opacity:.9;
}
.doc .ph{ margin-top:36px; }
.doc-date{ margin-top:56px; font-size:13px; }

/* ── フッター ─────────────────────────────── */
.ft{ position:relative; z-index:1; border-top:1px solid var(--line); padding:44px 0; }
.ft-in{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; }
.ft-logo{ font-family:var(--latin); font-size:15px; letter-spacing:.24em; }
.ft-c{ font-size:12px; color:var(--fg-sub); letter-spacing:.08em; }

/* ── 動き（控えめに。パララックス・自動再生は使わない） ── */
/* 初期状態を隠すのは .js が付いているときだけ。
   JSが動かない環境では、最初から全部見えている状態にする。 */
.js .rv{ opacity:0; transform:translateY(18px); transition:opacity .85s var(--ease), transform .85s var(--ease); }
.js .rv.in{ opacity:1; transform:none; }
.js .num i{ transform:scaleX(0); transition:transform 1s var(--ease) .1s; }
.js .num.in i{ transform:scaleX(1); }
.js .reps-arch .draw{ stroke-dasharray:2400; stroke-dashoffset:2400; transition:stroke-dashoffset 2.4s var(--ease); }
.js .reps-arch.in .draw{ stroke-dashoffset:0; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .rv,.num i,.reps-arch .draw,.btn-ar,.nav a::after{ transition:none !important; }
  .js .rv{ opacity:1; transform:none; }
  .js .num i{ transform:scaleX(1); }
  .js .reps-arch .draw{ stroke-dashoffset:0; }
}

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