/* 合同会社ティーケーシステムズ 会社トップ
   コンセプト：一本の線。ページを通して一本の線が「声」「地図」「画面」「呼び出し」へ形を変える。 */
:root {
  --paper: #eeebe3;
  --paper-2: #e6e2d8;
  --ink: #131416;
  --ink-2: #3a3c40;
  --mute: #66676a;
  --rule: rgba(19, 20, 22, .16);
  --signal: #e2462a;
  --signal-ink: #b5341c;
  --night: #131416;
  --pad: clamp(20px, 5.2vw, 76px);
  --max: 1360px;
  --hd: 68px;
  --jp: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.motion-off { scroll-behavior: auto; }
body { word-break: auto-phrase; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.9; letter-spacing: .02em; font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .5; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); letter-spacing: .06em; font-feature-settings: normal; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* 線を描く2枚のキャンバス。線は背景色を反転して描くので、明るい面でも暗い面でも見える */
.line-canvas, .dot-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.line-canvas { mix-blend-mode: difference; }
.dot-canvas { z-index: 41; }

/* ───────── ヘッダー ───────── */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd); display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hd.is-scrolled { border-bottom-color: var(--rule); }
.hd.is-dark { background: color-mix(in srgb, var(--night) 84%, transparent); color: var(--paper); border-bottom-color: rgba(238, 235, 227, .14); }
.hd.is-dark .brand__mark { color: var(--paper); }
.hd.is-dark .nav__n { color: rgba(238, 235, 227, .5); }
.hd.is-dark .nav__cta { background: var(--paper); color: var(--ink); }
.hd.is-dark .menu span { background: var(--paper); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a { position: relative; display: flex; align-items: baseline; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav__n { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .08em; }
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background .25s; }
.nav__cta:hover { background: var(--signal-ink); }
.menu { display: none; }

/* ───────── 共通 ───────── */
.sec { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 15vw, 200px) var(--pad) 0; }
.kick { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--mute); margin-bottom: 26px; }
.kick span { color: var(--ink); }
.kick span::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.32; font-weight: 700; letter-spacing: .01em; }
.h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.4; font-weight: 700; }
.h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.h3 a:hover { background-size: 100% 1px; }
.body { color: var(--ink-2); max-width: 34em; margin-top: 24px; }
.stage { position: relative; }
.stage__cap { position: absolute; left: 0; bottom: -2px; font-size: 10.5px; color: var(--mute); }
.go { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 14px 0; text-decoration: none; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--ink); }
.go i { position: relative; width: 34px; height: 1px; background: currentColor; transition: width .45s var(--ease); }
.go i::after { content: ""; position: absolute; right: 1px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.go:hover i { width: 52px; }
.go--quiet { font-weight: 500; border-bottom-color: var(--rule); }

/* 出現の動き（JSがあるときだけ隠す） */
.js-motion [data-in] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js-motion [data-in].is-in { opacity: 1; transform: none; }

/* ───────── ヒーロー ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto auto 1fr auto; max-width: var(--max); margin: 0 auto; padding: calc(var(--hd) + clamp(28px, 6vh, 72px)) var(--pad) clamp(24px, 4vh, 40px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 11px; color: var(--mute); }
.hero__meta span:first-child { color: var(--ink); }
.hero__h { margin-top: clamp(24px, 5vh, 56px); font-size: clamp(34px, 9vw, 136px); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; }
.hero__h .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__h .ln > span { display: inline-block; }
.hero__h em { font-style: normal; background: linear-gradient(var(--signal), var(--signal)) .04em 91% / calc(100% - 1.04em) .05em no-repeat; }
.js-motion .hero__h .ln > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js-motion .hero__h .ln:nth-child(2) > span { transition-delay: .12s; }
.js-motion .hero__h em { background-size: 0 .05em; transition: background-size 1.1s .8s var(--ease); }
.js-motion.is-ready .hero__h .ln > span { transform: none; }
.js-motion.is-ready .hero__h em { background-size: calc(100% - 1.04em) .05em; }
.stage--hero { margin: 0 calc(var(--pad) * -1); min-height: clamp(130px, 24vh, 300px); }
.stage--hero .stage__cap { left: var(--pad); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; padding-top: 26px; border-top: 1px solid var(--rule); }
.hero__lead { max-width: 36em; font-size: clamp(15px, 1.25vw, 17px); color: var(--ink-2); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; }
.hero__tags a { display: block; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.hero__tags a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero__scroll { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; font-size: 10.5px; color: var(--mute); writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 56px; background: linear-gradient(var(--ink) 50%, transparent 50%) 0 0 / 1px 200%; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ───────── 拠点 ───────── */
.place { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.stage--coast { aspect-ratio: 1.22; }
.pin { position: absolute; left: var(--x, -999px); top: var(--y, -999px); transform: translate(-50%, -50%); font-size: 13px; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.pin--sea { font-size: 10px; font-weight: 400; color: var(--mute); letter-spacing: .3em; }
.pin--home { transform: translate(14px, -50%); color: var(--ink); }
.pin--home small { display: block; font-size: 9.5px; font-weight: 400; color: var(--signal-ink); }
.pin:not(.pin--sea):not(.pin--home) { transform: translate(-50%, 10px); color: var(--ink-2); font-weight: 500; }

/* ───────── 事業 ───────── */
.svc__head { max-width: 760px; margin-bottom: clamp(48px, 8vw, 120px); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--rule); }
.item--r .stage { order: 2; }
.stage--item { height: clamp(240px, 34vw, 440px); }
.item__no { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--mute); margin-bottom: 18px; }
.item__no span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); font-size: 11px; letter-spacing: 0; }
.item__brand { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.item__tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 13.5px; }
.item__tags li { display: flex; align-items: center; gap: 8px; }
.item__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.item__price { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.item__price div { display: flex; align-items: baseline; gap: 12px; }
.item__price dt { font-size: 12px; color: var(--mute); }
.item__price dd { font-size: 14px; }
.item__price b { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: 0; margin-right: 2px; }
.item__note { margin-top: 10px; font-size: 12.5px; color: var(--mute); }

/* ───────── 進め方 ───────── */
.appr__head { max-width: 760px; }
.stage--path { height: clamp(110px, 12vw, 160px); margin-top: clamp(48px, 7vw, 96px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: 18px; }
.steps li { text-align: center; padding: 0 8px; }
.steps span { font-size: 10.5px; color: var(--mute); }
.steps h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; margin-top: 6px; }
.steps p { margin: 12px auto 0; max-width: 20em; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

/* ───────── 会社概要 ───────── */
.co { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); padding-bottom: clamp(96px, 14vw, 180px); }
.stage--rule { height: 70px; margin-top: 28px; }
.co__head .go { margin-top: 10px; }
.co__dl { border-top: 1px solid var(--ink); }
.co__dl div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.co__dl dt { font-size: 13px; color: var(--mute); padding-top: 2px; }
.co__dl dd { font-size: 15.5px; line-height: 1.9; }
.co__dl a { text-underline-offset: 4px; }

/* ───────── フッター ───────── */
.ft { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--pad) 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.ft__seal { position: relative; width: clamp(72px, 8vw, 104px); aspect-ratio: 1; margin: 0 clamp(16px, 2vw, 28px); }
.ft__mark { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage--seal { position: absolute; inset: -24%; }
.ft__mark { color: var(--ink); }
.ft__name { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; }
.ft__name span { display: block; font-size: 11px; font-weight: 400; color: var(--mute); margin-top: 4px; }
.ft__addr { font-size: 13.5px; color: var(--ink-2); text-align: right; }
.ft__addr a { text-underline-offset: 4px; }
.ft__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 22px; margin-top: clamp(24px, 5vw, 64px); border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--mute); }
.ft__bottom span { margin-right: auto; }
.ft__bottom a { text-underline-offset: 4px; }
.motion { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: none; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.motion:hover { border-color: var(--ink); }

/* ───────── タブレット・スマホ ───────── */
@media (max-width: 960px) {
  .place, .item, .co { grid-template-columns: minmax(0, 1fr); }
  .item--r .stage { order: 0; }
  .stage--coast { max-width: 640px; width: 100%; justify-self: center; }
  .stage--item { height: clamp(200px, 52vw, 340px); }
  .co { gap: 40px; }
  .stage--rule { display: none; }
}
@media (max-width: 760px) {
  :root { --hd: 60px; }
  body { font-size: 15.5px; }
  .brand__name { font-size: 13.5px; }
  .brand__mark { width: 26px; height: 26px; }
  .menu { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2; }
  .menu span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .hd.is-dark .nav { background: var(--night); }
  .nav { position: fixed; inset: var(--hd) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 28px; background: var(--paper); border-bottom: 1px solid var(--rule); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--rule); gap: 14px; }
  .nav a::after { display: none; }
  .nav__cta { margin-top: 20px; justify-content: center; padding: 14px; border-bottom: 0 !important; }
  .hero { grid-template-rows: auto auto auto auto; min-height: 0; padding-bottom: 32px; }
  .hero__h { margin-top: 22px; }
  .stage--hero { min-height: 150px; margin-top: 10px; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .hero__scroll { display: none; }
  .hero__lead { word-break: normal; }
  .sec { padding-top: 88px; }
  .hero { padding-bottom: 8px; }
  .h2 { font-size: clamp(26px, 7.4vw, 36px); }
  .item { padding: 36px 0 48px; gap: 26px; }
  .stage--item { height: 200px; }
  .appr { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 18px; }
  .appr__head { grid-column: 1 / -1; }
  .stage--path { grid-column: 1; grid-row: 2; height: auto; margin-top: 44px; }
  .steps { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 44px; }
  .steps li { text-align: left; padding: 0; }
  .steps h3 { font-size: 20px; margin-top: 2px; }
  .steps p { margin: 6px 0 0; font-size: 14px; }
  .co__dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; }
  .ft { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .ft__seal { margin: 0 0 12px 24px; }
  .ft__addr { text-align: left; }
  .ft__bottom span { width: 100%; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 12.5px; letter-spacing: .02em; }
  .brand { gap: 9px; }
}
@media print { .line-canvas, .dot-canvas, .hd { display: none; } }
