/* Aliss Labs v4 — 写真中心・紫はロゴ由来のアクセントだけ
   参考にした部品：NOT A HOTEL（字間を空けた地名・切り替わるヒーロー・横スワイプ）
   ／日本仕事百貨（見出し＋何の仕事か の索引）／BONUS TRACK（角丸なし・名簿の形） */

:root {
  --paper: #F5F2EC;
  --paper-2: #EAE5DC;
  --ink: #1E1B21;
  --ink-2: #4A4550;
  --muted: #7C7680;
  --line: #D6CFC4;
  --brand: #4B2877;
  --brand-2: #9A2FA8;
  --brand-soft: #CDB8E6;
  --night: #1C1820;
  --white: #FFFDF9;

  --serif: "Shippori Mincho B1", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --hh-top: 88px;  /* ヘッダーの高さ（写真の上） */
  --hh: 72px;      /* ヘッダーの高さ（スクロール後）。ページ内メニューはこのすぐ下に止まる */
  --ease: cubic-bezier(.6, .05, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.95; letter-spacing: .04em;
  word-break: auto-phrase; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .08em; line-height: 1.5; margin: 0; word-break: auto-phrase; }
p { margin: 0 0 1.2em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

/* 文字組み：見出し・本文は明朝とゴシック（まち）、ラベル・日付・分類・技術名は等幅（テック） */
.label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.label::before { content: "["; }
.label::after { content: "]"; }
.news-index time, .article-meta time, .news-index .cat, .track .cat, .wf-label, .stack, .crumb, .member-role, .ix-what small, .st-state, .service h3, .footer-small, .job-en {
  font-family: var(--mono); letter-spacing: .04em;
}
.news-index time, .article-meta time { font-size: 14px; }
.rule { display: none; }

.link-arrow {
  display: inline-flex; gap: 12px; align-items: center;
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid var(--brand);
}
.link-arrow span { transition: transform .3s; }
.link-arrow:hover span { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 30px; font-size: 15px; font-weight: 500; letter-spacing: .1em;
  text-decoration: none; transition: background .3s, color .3s;
}
.btn-onphoto { color: var(--white); border: 1px solid rgba(255,255,255,.7); }
.btn-onphoto:hover { background: var(--white); color: var(--ink); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: var(--brand-2); }

.more-link { margin: 60px 0 0; }
.note { font-size: 13px; color: var(--muted); }

/* ロゴ：紫の点2つ（ロゴの球をなぞる） */
.logo-mark { display: inline-block; flex: none; width: 30px; height: 30px; margin-right: 10px; background: url("../img/logo-mark.png") center / contain no-repeat; }
/* 暗い背景（写真の上・フッター）でも色つきのまま。沈まないよう細い白のふちをつける */
.site-footer .logo-mark, .site-header:not(.scrolled) .logo-mark { filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 1px rgba(255,255,255,.6)); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--hh-top); padding: 0 var(--gutter); color: var(--white);
  transition: background .4s, color .4s, height .4s;
}
.site-header.scrolled, .is-plain .site-header { height: var(--hh); background: var(--paper); color: var(--ink); }
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 170%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,16,24,.62) 0%, rgba(20,16,24,.34) 55%, rgba(20,16,24,0) 100%);
  transition: opacity .4s;
}
.site-header.scrolled::before, .is-plain .site-header::before { opacity: 0; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-en { font-family: var(--latin); font-size: 26px; font-weight: 500; letter-spacing: .03em; }
.logo-ja { font-size: 11px; letter-spacing: .3em; margin-left: 12px; padding-left: 12px; border-left: 1px solid currentColor; opacity: .8; }
.is-plain .site-header .logo-mark { filter: none; }
.is-plain main { padding-top: var(--hh); }

.gnav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.gnav a { text-decoration: none; }
.gnav a:not(.gnav-cta):hover { opacity: .6; }
.gnav a[aria-current="page"]:not(.gnav-cta) { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.gnav-cta { padding: 9px 20px; border: 1px solid currentColor; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .menu-toggle { display: block; position: relative; z-index: 60; width: 40px; height: 40px; background: none; border: 0; color: inherit; cursor: pointer; }
  .menu-toggle span:not(.sr) { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform .3s; }
  .menu-toggle span:nth-child(1) { top: 16px; }
  .menu-toggle span:nth-child(2) { top: 24px; }
  .menu-toggle[aria-expanded="true"] { color: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(20deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-20deg); }
  .gnav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--paper); color: var(--ink); font-size: 17px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .gnav.open { opacity: 1; pointer-events: auto; }
}

/* 見出しの共通形 */
.sec-head, .pg-head { margin-bottom: 60px; }
.sec-head h2, .pg-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.pg-head p:not(.label) { margin: 18px 0 0; color: var(--ink-2); max-width: 36em; }
.pg-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 24px; }

/* ==========================================================
   ホーム
   ========================================================== */

/* ヒーロー：写真が切り替わる */
.hero { position: relative; min-height: 100svh; color: var(--white); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20,16,24,.8) 0%, rgba(20,16,24,.3) 50%, rgba(20,16,24,.1) 75%, rgba(20,16,24,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 var(--gutter) 150px; }
.hero-title { font-size: clamp(30px, 5.2vw, 68px); letter-spacing: .1em; line-height: 1.5; margin-bottom: 26px; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-lead { font-size: clamp(14px, 1.4vw, 16px); margin-bottom: 36px; opacity: .92; }
@media (max-width: 767px) { .hero-inner { padding-bottom: 110px; } }

/* 読み込み時：見出しが1行ずつ下からせり上がる */
.js .hero-title .line { clip-path: inset(0 0 100% 0); animation: lineUp 1.1s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) { animation-delay: .18s; }
@keyframes lineUp { from { clip-path: inset(0 0 100% 0); transform: translateY(40%); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* 最近のこと：写真付きカードが横に流れ続ける */
.topics { padding: 90px 0 100px; border-bottom: 1px solid var(--line); overflow: hidden; }
.topics-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.topics-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.topics-ctrl { display: flex; align-items: center; gap: 22px; }
.topics-viewport { overflow-x: auto; scrollbar-width: none; cursor: grab; }
.topics-viewport::-webkit-scrollbar { display: none; }
.topics-viewport:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.topics-track { list-style: none; margin: 0; padding: 0 0 0 var(--gutter); display: flex; gap: 20px; width: max-content; }
.topics-track li { width: clamp(250px, 26vw, 330px); flex: none; }
.topics-track a { display: block; text-decoration: none; }
.tp-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand); margin: 0 0 14px; }
.tp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.topics-track a:hover .tp-img img { transform: scale(1.04); }
.tp-noimg { display: grid; place-items: center; height: 100%; color: var(--white); font-family: var(--latin); font-size: 54px; font-variant-numeric: lining-nums; }
.tp-noimg small { display: block; font-size: 14px; text-align: center; font-family: var(--mono); }
.tp-meta { display: flex; gap: 10px; align-items: center; margin: 0 0 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tp-meta .cat { color: var(--brand); border: 1px solid currentColor; padding: 0 8px; }
.tp-test { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 11px; background: #fff3c4; color: var(--ink); padding: 1px 7px; }
.topics-track h3 { font-size: 16px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topics-track a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* About：名前を1行の大きな言葉に＋成り立ちの図＋1文字ずつ出る文 */
.about { background: var(--white); border-block: 1px solid var(--line); padding: 120px 0 130px; }
.about-word {
  font-family: var(--latin); font-size: clamp(54px, 10.4vw, 164px); line-height: 1; letter-spacing: -.02em;
  margin: 0; padding-bottom: 40px; border-bottom: 1px solid var(--ink);
}
.about-word .line { display: block; }
.about-word .hl { color: var(--brand); }
/* B案：文字の中を井の頭池の写真で塗る（紫の A・Li・ss はそのまま） */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .about-word .line {
    background: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/5/53/Inokashira_Park_Momiji.jpg/1920px-Inokashira_Park_Momiji.jpg") center 60% / cover;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.about-grid { display: grid; gap: 50px; padding-top: 50px; }
.decode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); }
.decode span { min-width: 52px; padding: 10px 12px; text-align: center; border: 1px solid var(--brand); color: var(--brand); font-size: 20px; }
.decode i { font-style: normal; color: var(--muted); }
.decode b { font-family: var(--latin); font-weight: 500; font-size: 40px; line-height: 1; color: var(--ink); margin-left: 4px; }
.about-note { font-size: 13px; color: var(--muted); margin: 0; }
.about-lines { font-size: clamp(20px, 2.3vw, 28px); line-height: 1.95; margin: 0 0 30px; }
.about-lines .line { display: block; }
.about-body p { color: var(--ink-2); max-width: 36em; }
.about-decode { margin-bottom: 40px; }
/* 柔らかい丸い形の中に写真（角のない形で、写真の硬さを和らげる） */
.about-blobs { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.about-blobs .blob { position: absolute; overflow: hidden; }
.about-blobs img { width: 100%; height: 100%; object-fit: cover; }
.about-blobs .b1 { inset: 4% 22% 30% 4%; border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; }
.about-blobs .b2 { inset: 46% 4% 4% 42%; border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
.about-blobs .b3 { width: 26%; aspect-ratio: 1; right: 6%; top: 8%; border-radius: 50%; background: #EFE7F6; }
@media (min-width: 900px) {
  .about-word .line { white-space: nowrap; }
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: center; }
}
/* 1文字ずつ現れる（JS が1文字ずつ span に分ける） */
.js-chars .ch { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .5s ease, transform .5s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.js-chars.in .ch { opacity: 1; transform: none; }

.reveal-lines .line { clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.reveal-lines .line:nth-child(2) { transition-delay: .12s; }
.reveal-lines .line:nth-child(3) { transition-delay: .24s; }
.reveal-lines.in .line { clip-path: inset(0 0 0 0); transform: none; }

/* 困りごと → できること（索引） */
.biz { padding: 130px 0 120px; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { position: relative; display: grid; gap: 8px 30px; padding: 34px 0; text-decoration: none; }
.ix-no { font-family: var(--latin); font-size: 20px; color: var(--brand); font-variant-numeric: lining-nums; }
/* F案：事業ごとの線画（自作）。乗せると差し色の線が描き直される */
.ix-art { display: block; width: 76px; height: 76px; }
.ix-art svg { width: 100%; height: 100%; overflow: visible; }
.ix-art svg * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s; }
.ix-art .acc { stroke: var(--brand); stroke-dasharray: 400; stroke-dashoffset: 0; }
@keyframes redraw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.ix-name { display: grid; gap: 4px; }
.ix-name .en { font-family: var(--latin); font-size: clamp(20px, 2.1vw, 30px); line-height: 1.15; letter-spacing: .01em; }
.ix-what { color: var(--ink-2); }
.ix-what { font-size: 15px; font-weight: 500; }
.ix-what small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .08em; }
.ix-arrow { display: none; }
.ix-img { display: none; }
/* PC：マウスを乗せた行の中で、紫の面が下から満ち、文字が白くなり、写真が行の中で広がる。ほかの行は薄く沈む（アクセンチュアを参考） */
@media (min-width: 900px) {
  .index-list a {
    grid-template-columns: 56px 84px minmax(0, 1.9fr) auto minmax(0, 1fr) 36px; align-items: center;
    padding: 34px 24px; transition: color .45s var(--ease), opacity .45s;
  }
  .index-list a::before {
    content: ""; position: absolute; inset: 0; background: var(--brand);
    transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
  }
  .index-list a > * { position: relative; }
  .ix-no { order: 1; } .ix-art { order: 2; } .ix-name { order: 3; } .ix-img { order: 4; } .ix-what { order: 5; } .ix-arrow { order: 6; }
  .ix-img {
    display: block; width: 0; height: 120px; object-fit: cover; opacity: 0;
    transition: width .6s var(--ease), opacity .4s;
  }
  .ix-arrow { display: block; font-size: 20px; text-align: right; transition: transform .4s var(--ease); }
  .ix-no, .ix-what small { transition: color .45s; }
  .index-list:hover a:not(:hover) { opacity: .4; }
  .index-list a:hover, .index-list a:hover .ix-what { color: var(--white); }
  .index-list a:hover::before { transform: scaleY(1); }
  .index-list a:hover .ix-img { width: 180px; opacity: 1; }
  .index-list a:hover .ix-no, .index-list a:hover .ix-what small { color: var(--brand-soft); }
  .index-list a:hover .ix-arrow { transform: translateX(-6px); }
  .index-list a:hover .ix-art .acc { stroke: var(--brand-soft); }
  .index-list a.is-drawing .ix-art .acc { animation: redraw 1s var(--ease); }
  .index-list a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
}

/* 仕事の風景：写真の列がゆっくり上下に流れる */
.days { display: grid; background: var(--paper-2); overflow: hidden; }
.days-text { padding: 110px var(--gutter) 60px; align-self: center; }
.days-text h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 26px; }
.days-text p:not(.label) { color: var(--ink-2); max-width: 26em; }
.days-loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 520px; padding: 0 10px; margin-bottom: 70px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
.loop-col { overflow: hidden; }
.loop-track { display: grid; gap: 10px; animation: loopUp 40s linear infinite; }
.loop-col.is-down .loop-track { animation-name: loopDown; animation-duration: 48s; }
.loop-track img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@keyframes loopUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes loopDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (min-width: 900px) {
  .days { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .days-text { padding: 120px 40px 120px var(--gutter); max-width: 560px; justify-self: end; }
  .days-loop { height: 720px; padding: 0 10px 0 0; margin: 80px 0; }
}

/* 吉祥寺：拠点の話を読みものの冒頭で見せる */
.local { background: var(--night); color: var(--white); }
.local-story { display: grid; }
.ls-photo { position: relative; margin: 0; overflow: hidden; min-height: 320px; }
.ls-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ls-body { padding: 70px var(--gutter) 80px; align-self: center; max-width: 620px; }
.ls-meta { font-family: var(--mono); font-size: 12px; color: var(--brand-soft); margin: 0 0 16px; }
.ls-body h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.6; margin: 0 0 24px; }
.ls-body p { opacity: .85; }
.ls-office { font-size: 13px; opacity: .6 !important; margin: 30px 0 26px; }
.local .link-arrow { border-color: var(--brand-soft); }
@media (min-width: 900px) {
  .local-story { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 620px; }
  .ls-body { padding: 90px 60px; }
}

/* 下書きの仮の文（公開前に必ず差し替える） */
.ph { background: #fff3c4; color: var(--ink); padding: 0 4px; }

/* ページ下部の問い合わせの帯（細い帯＋ボタン1つ） */
.cta-bar { background: var(--brand); color: var(--white); }
.cta-bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 30px; padding-top: 26px; padding-bottom: 26px; }
.cta-bar p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .08em; }
.cta-bar .btn { padding: 12px 24px; }

/* 名前の見出しは英語で固定（2026-09-20）。日本語の t-ja は出さない */
.t-en { font-family: var(--latin); font-weight: 500; letter-spacing: .01em; }
.t-ja { display: none; }
.sec-head h2, .pg-head h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.1; }
.phero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: 1.05; letter-spacing: .02em; }

/* ==========================================================
   下層ページ
   ========================================================== */

/* ページ上部の写真帯：字間を空けた英字を大きく、和文の見出しは添える */
.phero { position: relative; height: clamp(360px, 58vh, 540px); display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--night); }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,24,.75), rgba(20,16,24,.15) 60%, rgba(20,16,24,.4)); }
.phero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 46px; display: grid; gap: 10px; }
.phero .label {
  order: -1; margin: 0; color: var(--white);
  font-family: var(--latin); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 9vw, 120px); letter-spacing: .22em; line-height: 1;
}
.phero .label::before, .phero .label::after { display: none; }
.phero h1 { font-size: clamp(34px, 5.4vw, 72px); letter-spacing: .12em; font-weight: 600; line-height: 1.35; }

.crumb { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 0; font-size: 12px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 10px; }

.pg { padding: 120px 0; }
.pg.bg-sand { background: var(--paper-2); }
.pg.bg-white { background: var(--white); border-block: 1px solid var(--line); }
.pg.bg-night { background: var(--night); color: var(--white); }
.bg-night .pg-head p:not(.label), .bg-night .label { color: var(--brand-soft); }

/* services */
.services { background: var(--paper-2); padding: 120px 0 140px; }
.svc-intro { display: grid; gap: 30px; margin-bottom: 110px; }
.svc-intro h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.7; }
.svc-intro p { color: var(--ink-2); }
@media (min-width: 900px) { .svc-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 60px; } }
/* 事業・サービス：ページ内メニュー（アクセンチュア参考） */
.subnav { position: sticky; top: calc(var(--hh) - 1px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 14px 14px 12px; font-size: 13px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.subnav a:hover, .subnav a.is-on { color: var(--brand); border-color: var(--brand); }
#sns, #web, #dev, #works, #approach, #faq { scroll-margin-top: calc(var(--hh) + 64px); }

/* 事業：左の事業名が止まり、右が流れる（LayerX 参考） */
.biz-rows { border-top: 1px solid var(--ink); }
.biz-row { display: grid; gap: 26px; padding: 70px 0; border-bottom: 1px solid var(--line); }
.biz-pin { align-self: start; }
.biz-no { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.biz-name { font-family: var(--latin); font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; margin: 10px 0 0; }
.biz-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.7; margin-bottom: 14px; }
.biz-main > p:not(.biz-lead) { color: var(--ink-2); }
.biz-photo { margin: 14px 0 26px; aspect-ratio: 16 / 9; overflow: hidden; }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.biz-row:hover .biz-photo img { transform: scale(1.03); }
@media (min-width: 900px) {
  .biz-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; }
  .biz-pin { position: sticky; top: calc(var(--hh) + 90px); }
}

/* 事業ごとの最新情報（LayerX の Service News 参考）。下線が左から伸びる */
.svc-news { margin-top: 34px; border-top: 1px solid var(--ink); }
.svc-news-h { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 4px; }
.svc-news ul { list-style: none; margin: 0; padding: 0; }
.svc-news a { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.svc-news time { font-family: var(--mono); font-size: 12px; color: var(--brand); padding-top: 2px; }
.svc-news .tl { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.svc-news a:hover .tl { background-size: 100% 1px; }

/* 円の線が描かれる矢印リンク（LayerX 参考） */
.biz-work { margin-top: 22px; font-size: 14px; }
.circle-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 14px; font-weight: 500; text-decoration: none; }
.circle-link svg { width: 46px; height: 46px; flex: none; }
.circle-link circle { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 139; stroke-dashoffset: 139; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .6s var(--ease); }
.circle-link circle.base { stroke: var(--line); stroke-dashoffset: 0; }
.circle-link:hover circle:not(.base), .circle-link:focus-visible circle:not(.base) { stroke-dashoffset: 0; }
.circle-link path { fill: none; stroke: var(--ink); stroke-width: 1.5; transition: transform .4s var(--ease); }
.circle-link:hover path { transform: translateX(3px); }

.menu { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.menu li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 14px; position: relative; color: var(--ink-2); }
.menu li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 8px; height: 1px; background: var(--brand); }

/* company：会社情報の表 */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 24px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.info-table th { width: 30%; font-size: 14px; letter-spacing: .12em; color: var(--muted); padding-right: 20px; }
.info-table td { line-height: 1.9; }
@media (max-width: 599px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 4px; border-bottom: 0; }
  .info-table td { padding-top: 0; }
}

/* company：代表メッセージ */
.msg { display: grid; gap: 50px; }
.msg-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.msg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.msg-body h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 30px; }
.msg-body p { color: var(--ink-2); }
.msg-body .msg-sign { margin-top: 30px; font-family: var(--serif); color: var(--ink); }
.msg-sign span { display: block; font-size: 12px; color: var(--muted); font-family: var(--sans); letter-spacing: .12em; }
.msg { max-width: 780px; }

/* company：都知事杯（大きく） */
.work-feature { display: grid; background: var(--night); color: var(--white); margin-bottom: 70px; }
.wf-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.wf-photos figure { position: relative; overflow: hidden; }
.wf-photos img { width: 100%; height: 100%; object-fit: cover; }
.wf-main { grid-column: 1 / 3; aspect-ratio: 3 / 2; }
.wf-wide { grid-column: 1 / 3; aspect-ratio: 16 / 7; }
.wf-main figcaption { position: absolute; left: 0; bottom: 0; width: 100%; padding: 30px 16px 12px; font-size: 12px; letter-spacing: .1em; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.wf-body { padding: 44px 32px 50px; }
.wf-label { font-size: 12px; letter-spacing: .14em; color: var(--brand-soft); margin-bottom: 26px; }
.wf-num { font-family: var(--serif); font-size: 15px; margin-bottom: 4px; opacity: .85; }
.wf-num span { font-family: var(--latin); font-size: 72px; line-height: 1; font-variant-numeric: lining-nums; margin-right: 8px; color: var(--white); }
.wf-title { font-size: clamp(26px, 3vw, 38px); margin: 16px 0 26px; }
.wf-body p:not(.wf-label):not(.wf-num) { font-size: 15px; opacity: .85; }
.wf-body .link-arrow { border-color: var(--brand-soft); margin-top: 10px; }
@media (min-width: 900px) {
  .work-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .wf-body { padding: 70px 60px; align-self: center; }
}

/* company：実績の一覧 */
.track { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.track li { border-bottom: 1px solid var(--line); }
.track li[hidden] { display: none; }
.track a { position: relative; display: grid; gap: 6px 30px; padding: 28px 0; text-decoration: none; transition: background .3s; }
.track a:hover { background: rgba(75,40,119,.04); }
.track a:hover h3 { color: var(--brand); }
.tr-arrow { display: none; }
.track .cat { font-size: 12px; letter-spacing: .12em; color: var(--brand); }
.track h3 { font-size: 19px; }
.track p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) {
  .track a { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.2fr) 30px; align-items: baseline; }
  /* 右にずらすのは transform で（余白を広げると文字の幅が減って折り返してしまうため） */
  .track a > *:not(.tr-arrow) { transition: transform .4s var(--ease); }
  .track a:hover > *:not(.tr-arrow) { transform: translateX(12px); }
  .tr-arrow { display: block; text-align: right; color: var(--muted); transition: transform .3s var(--ease); }
  .track a:hover .tr-arrow { transform: translateX(4px); color: var(--brand); }
}

/* company：分野で絞り込み */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter button { font-family: var(--mono); font-size: 13px; padding: 7px 14px; background: none; color: var(--ink); border: 1px solid var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); }


/* services：実績（一覧の各行から個別ページへ） */
.work-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2vw, 22px); line-height: 1.9; }
.work-article .menu { margin-bottom: 10px; }

/* services：仕事のしかた（3つの要素の図と定義。プレイド参考） */
.ap { display: grid; gap: 50px; align-items: center; }
@media (min-width: 900px) { .ap { grid-template-columns: 1fr 1fr; } }
.ap-fig { width: 100%; max-width: 440px; margin: 0 auto; display: block; }
.ap-fig g { cursor: default; }
.ap-fig circle { fill: rgba(75,40,119,.05); stroke: var(--brand); stroke-width: 1.2; transition: fill .4s var(--ease); }
.ap-fig g.is-on circle { fill: rgba(75,40,119,.2); }
.ap-fig text { font-family: var(--serif); font-weight: 600; font-size: 22px; fill: var(--ink); text-anchor: middle; }
.ap-fig .ap-mid { opacity: .9; }
.ap-defs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ap-defs li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 22px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.ap-defs li.is-on { background: rgba(75,40,119,.06); }
.ap-defs b { font-family: var(--serif); font-size: 22px; }
.ap-defs p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ap-defs small { display: block; font-family: var(--mono); font-size: 12px; color: var(--brand); margin-top: 6px; }

/* services：よくある相談（マウスを乗せる／押すと、答えがなめらかに開く） */
.qa { max-width: 820px; border-top: 1px solid var(--ink); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-q {
  width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 10px; align-items: baseline;
  padding: 22px 0; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .06em;
}
.qa-q::before { content: "Q"; font-family: var(--mono); font-size: 16px; color: var(--brand); }
.qa-q::after { content: ""; width: 12px; height: 12px; justify-self: end; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .45s var(--ease); }
.qa-item.is-open .qa-q::after { transform: rotate(-135deg) translateY(-3px); }
.qa-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s ease; }
.qa-a > div { overflow: hidden; }
.qa-a p { margin: 0 0 24px 44px; font-size: 15px; color: var(--ink-2); transform: translateY(-6px); transition: transform .5s var(--ease); }
.qa-item.is-open .qa-a { grid-template-rows: 1fr; opacity: 1; }
.qa-item.is-open .qa-a p { transform: none; }
.qa-q:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* company：メンバー */
.members { display: grid; gap: 80px; }
.mem { display: grid; gap: 30px; }
.member-photo { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; margin: 0; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.member-role { font-size: 12px; letter-spacing: .16em; color: var(--brand); margin-bottom: 6px; }
.member-name { font-size: 24px; margin-bottom: 18px; }
.member-name span { display: block; font-family: var(--latin); font-style: italic; font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.mem-list { list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.mem-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 899px) { .member-photo, .msg-photo { max-width: 380px; } }
@media (min-width: 900px) {
  .mem { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 70px; align-items: start; }
  .mem:nth-child(2) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .mem:nth-child(2) .member-photo { order: 2; }
}

/* recruit */
.appeal { display: grid; gap: 70px; }
.appeal article { display: grid; gap: 26px; }
.appeal figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.appeal img { width: 100%; height: 100%; object-fit: cover; }
.appeal .no { font-family: var(--latin); font-size: 40px; color: var(--brand); line-height: 1; font-variant-numeric: lining-nums; }
.appeal h3 { font-size: clamp(21px, 2.4vw, 28px); margin: 12px 0 16px; }
.appeal p { color: var(--ink-2); }
@media (min-width: 900px) {
  .appeal article { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 60px; align-items: center; }
  .appeal article:nth-child(2) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .appeal article:nth-child(2) figure { order: 2; }
}
.jobs { display: grid; gap: 2px; margin-bottom: 70px; }
.job { background: var(--white); padding: 34px 30px; }
.job h3 { font-size: 22px; margin-bottom: 4px; }
.job-en { font-family: var(--latin); font-style: italic; color: var(--brand); font-size: 16px; margin: 0; }
.job ul { padding-left: 1.2em; margin: 16px 0 0; font-size: 14px; color: var(--ink-2); line-height: 2; }
@media (min-width: 900px) { .jobs { grid-template-columns: repeat(3, 1fr); } }

/* フォーム */
.form { display: grid; gap: 28px; max-width: 760px; }
.field { display: grid; gap: 10px; }
.field > span { font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.req { font-size: 11px; font-style: normal; color: var(--white); background: var(--brand); padding: 2px 8px; margin-left: 10px; letter-spacing: .1em; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 0; padding: 14px 16px;
}
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-msg { margin: 0; padding: 16px 20px; background: var(--paper-2); font-size: 14px; }
.contact-layout { display: grid; gap: 60px; }
.contact-aside dl { margin: 0; font-size: 14px; }
.contact-aside dt { color: var(--muted); font-size: 12px; letter-spacing: .12em; margin-top: 22px; }
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 4px 0 0; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 80px; } }

/* news */
.news-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news-index li { border-bottom: 1px solid var(--line); }
.news-index a { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb time" "thumb cat" "ttl ttl"; gap: 6px 16px; padding: 28px 0; text-decoration: none; transition: background .3s; }
.news-index .thumb { grid-area: thumb; align-self: start; width: 64px; height: 48px; overflow: hidden; background: var(--brand); color: var(--white); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; }
.news-index .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-index a:hover .thumb img { transform: scale(1.06); }
.news-index a:hover { background: rgba(75,40,119,.04); }
.news-index time { font-family: var(--latin); font-size: 18px; font-variant-numeric: lining-nums; color: var(--brand); }
.news-index .cat { font-size: 12px; letter-spacing: .12em; border: 1px solid var(--line); padding: 2px 10px; justify-self: start; }
.news-index .ttl { grid-area: ttl; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.news-index time { grid-area: time; }
.news-index .cat { grid-area: cat; }
@media (min-width: 800px) {
  .news-index a { grid-template-columns: 79px 130px 110px minmax(0, 1fr) 20px; grid-template-areas: "thumb time cat ttl arrow"; align-items: center; padding: 16px 0; }
  .news-index a::after { grid-area: arrow; }
  .news-index .thumb { width: 79px; height: 59px; align-self: center; }
  .news-index a::after { content: "→"; color: var(--muted); }
}

.article { max-width: 760px; margin: 0 auto; padding: 90px var(--gutter) 120px; }
.article-meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.article-meta time { font-family: var(--latin); font-size: 17px; color: var(--brand); font-variant-numeric: lining-nums; }
.article h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.7; margin-bottom: 50px; }
.article h2 { font-size: 21px; margin: 60px 0 20px; padding-top: 30px; border-top: 1px solid var(--line); }
.article p { line-height: 2.1; }
.article figure { margin: 40px 0; }
.article figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.article dl { display: grid; grid-template-columns: 8em 1fr; gap: 10px 20px; font-size: 14px; margin: 0; }
.article dt { color: var(--muted); }
.article dd { margin: 0; }
.article-back { margin-top: 70px; }

.policy { max-width: 760px; }
.policy h2 { font-size: 19px; margin: 50px 0 14px; }
.policy p, .policy li { color: var(--ink-2); font-size: 15px; }

/* 写真クレジットの表（credits.html）。狭い画面では横にスクロールする */
.credit-table { overflow-x: auto; margin: 14px 0 6px; }
.credit-table table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 13px; }
.credit-table th, .credit-table td { border-bottom: 1px solid var(--line); padding: 9px 12px 9px 0; text-align: left; vertical-align: top; }
.credit-table th { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .06em; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.credit-table td { color: var(--ink-2); }
.credit-table code { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-2); word-break: break-all; }

/* ---------- フッター ---------- */
.site-footer { background: var(--night); color: #D9D3DD; padding: 90px 0 30px; font-size: 13px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { display: flex; align-items: center; font-family: var(--latin); font-size: 30px; color: var(--white); margin-bottom: 8px; }
.footer-logo-ja { font-size: 11px; letter-spacing: .3em; margin-left: 12px; padding-left: 12px; border-left: 1px solid currentColor; opacity: .8; }
.footer-tag { font-family: var(--serif); }
.site-footer address { font-style: normal; line-height: 2; }
.footer-small { font-size: 11px; opacity: .6; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.credits { padding-top: 24px; font-size: 11px; opacity: .7; }
.credits summary { cursor: pointer; }
.credits ul { padding-left: 1.2em; margin: 10px 0 0; line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 11px; }
.footer-bottom a { text-decoration: none; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr; } }

/* ---------- 動き ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.photo-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.photo-reveal.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { transition: none; transform: none; }
  .js .hero-title .line { animation: none; clip-path: none; }
  .loop-track { animation: none; }
  .qa-a, .qa-a p, .qa-q::after { transition: none; }
  .ix-art .acc { animation: none !important; }
  .reveal, .photo-reveal, .reveal-lines .line, .js-chars .ch { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* 実績ページ：担当範囲の1行とお客さまの声 */
.work-article .work-scope { margin: 0 0 34px; font-size: 14px; color: var(--ink-2); }
.work-article .work-scope span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; margin-right: 14px; color: var(--muted); }
.work-article blockquote { margin: 0; padding: 18px 22px; background: var(--sand, rgba(75,40,119,.04)); font-family: var(--serif); }

/* 一覧の文字：長いタイトルと説明文は字間を詰めて拾いやすくする（大きな見出しはそのまま） */
.news-index h3, .track h3, .topics-track h3, .svc-news a { letter-spacing: .02em; }
.news-index p, .track p, .topics-track p, .work-lead { letter-spacing: .01em; }

/* お問い合わせページ：フォームまでの距離を縮めるため上の写真を低く */
.phero.is-compact { height: clamp(200px, 30vh, 300px); }
.phero.is-compact h1 { font-size: clamp(28px, 3.6vw, 48px); }

/* お問い合わせフォーム：迷惑送信よけの見えない項目と、送信後の知らせ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.is-ok { border-left: 3px solid var(--brand); }
.form-msg.is-err { border-left: 3px solid #B45309; }

/* 公開待ちの区画 */
.empty-note { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
