/* =========================================================
   HAKO renovation（デモサイト）
   テーマ：図面のように、すっきり・知的・建築的
   ========================================================= */

/* ===== 写真の指定（images/ フォルダ。Unsplashライセンス） ===== */
:root {
  --img-hero:       url("images/hero.jpg");
  --img-craft:      url("images/craft.jpg");
  --img-svc-full:   url("images/svc-full.jpg");
  --img-svc-part:   url("images/svc-part.jpg");
  --img-svc-search: url("images/svc-search.jpg");
  --img-before:     url("images/before.jpg");
  --img-after:      url("images/after.jpg");
  --img-work-2:     url("images/work-2.jpg");
  --img-work-3:     url("images/work-3.jpg");
  --img-plan:       url("images/plan.jpg");
}

/* ===== 基本設定 ===== */
:root {
  --paper: #f2f1ee;
  --white: #fbfbfa;
  --ink: #151515;
  --ink-soft: #4a4a48;
  --grey: #8b8a86;
  --line: rgba(21, 21, 21, 0.12);
  --line-strong: rgba(21, 21, 21, 0.35);
  --blue: #2343d6;
  --blue-soft: #e3e8fb;
  --sans-en: "Inter Tight", sans-serif;
  --sans-ja: "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-en), var(--sans-ja);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.3s;
}
.skip:focus { transform: none; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== 写真 ===== */
.img {
  background-color: #dcdad5;
  background-size: cover;
  background-position: center;
}
.img-hero       { background-image: var(--img-hero); background-position: center; }
.img-craft      { background-image: var(--img-craft); }
.img-svc-full   { background-image: var(--img-svc-full); background-position: 100% center; }
.img-svc-part   { background-image: var(--img-svc-part); }
.img-svc-search { background-image: var(--img-svc-search); }
.img-before     { background-image: var(--img-before); }
.img-after      { background-image: var(--img-after); }
.img-work-2     { background-image: var(--img-work-2); }
.img-work-3     { background-image: var(--img-work-3); }
.img-plan       { background-image: var(--img-plan); }

.frame { position: relative; overflow: hidden; }
.frame > .img { position: absolute; inset: 0; }
.parallax { position: absolute; inset: -10% 0; will-change: transform; }
.parallax .img { position: absolute; inset: 0; }

/* ===== 共通 ===== */
.section { position: relative; padding: clamp(104px, 12vw, 180px) var(--gutter); }
.container { max-width: 1280px; margin: 0 auto; }
.sec-label { display: flex; align-items: center; gap: 14px; color: var(--grey); }
.sec-label span { color: var(--blue); }
.sec-label::after { content: ""; width: 56px; height: 1px; background: var(--line-strong); }
.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.heading {
  margin-top: 24px;
  font-family: var(--sans-ja);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.body { margin-top: 32px; color: var(--ink-soft); }
.body p + p { margin-top: 1.3em; }
.note { margin-top: 24px; font-size: 11px; color: var(--grey); }

/* ===== オープニング ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background: var(--paper);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-out) 0.1s, visibility 0s 1.2s;
}
.loader-box { width: 96px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.loader-box path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease-out) forwards; }
.loader-box path:nth-child(2) { animation-delay: 0.3s; }
.loader-box path:nth-child(3) { animation-delay: 0.5s; stroke: var(--blue); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-word {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans-en);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.12em;
  opacity: 0;
  animation: fade-in 0.6s 0.8s var(--ease) forwards;
}
.loader-word span { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; color: var(--grey); }
@keyframes fade-in { to { opacity: 1; } }
.is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
html:not(.js) .loader,
.no-loader .loader { display: none; }

/* ===== カーソル（十字線＋座標・マウス操作のみ） ===== */
.cursor { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.has-cursor .cursor { opacity: 1; }
.cursor-x,
.cursor-y { position: absolute; background: rgba(35, 67, 214, 0.25); }
.cursor-x { left: 0; right: 0; top: 0; height: 1px; }
.cursor-y { top: 0; bottom: 0; left: 0; width: 1px; }
.cursor-read {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 6px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cursor.is-link .cursor-read { background: var(--ink); }

/* ===== デモ表記 ===== */
.demo-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(21, 21, 21, 0.9);
  color: var(--white);
  font-size: 11px;
  line-height: 1.6;
}
.demo-badge span { padding: 1px 8px; background: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  transition: padding 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.header.is-scrolled { padding-block: 14px; background: rgba(242, 241, 238, 0.9); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.header.is-hidden { transform: translateY(-100%); }
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans-en);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.14em;
  line-height: 1;
}
.logo span { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.1em; color: var(--grey); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a i { font-style: normal; color: var(--blue); }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 8px 18px; background: var(--ink); color: var(--white); transition: background-color 0.3s; }
.nav-cta:hover { background: var(--blue); }

.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: none; background: none; color: var(--ink); cursor: pointer; }
.menu-btn span { position: absolute; left: 10px; width: 24px; height: 1px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ===== 文字が1字ずつ現れる演出 ===== */
[data-split] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 40ms);
}
[data-split].is-in .ch { opacity: 1; transform: none; }

/* ===== ファーストビュー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(32px, 5vw, 80px);
  padding: 120px var(--gutter) 28px;
  overflow: hidden;
}
/* 方眼の背景 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
  opacity: 0.6;
  pointer-events: none;
}
.hero-head { position: relative; align-self: center; }
.hero-coord { color: var(--blue); }
.hero-title {
  margin-top: 28px;
  font-family: var(--sans-ja);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.hero-lead { margin-top: 32px; color: var(--ink-soft); }
.hero-figure { position: relative; align-self: center; padding: 0 0 36px 36px; }
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 1.6s var(--ease-out) 0.2s;
}
.is-loaded .hero-frame { clip-path: inset(0 0 0 0); }
.hero-frame .parallax { inset: -8% 0; }
.hero-frame .img { position: absolute; inset: 0; transform: scale(1.12); transition: transform 2.4s var(--ease-out) 0.2s; }
.is-loaded .hero-frame .img { transform: scale(1); }
.dim b { font-weight: 400; font-variant-numeric: tabular-nums; }
/* 四隅のトンボ */
.mark { position: absolute; width: 14px; height: 14px; border-color: var(--blue); border-style: solid; border-width: 0; }
.mark-tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.mark-tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.mark-bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.mark-br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
/* 寸法線 */
.dim { position: absolute; color: var(--blue); }
.dim::before { content: ""; position: absolute; background: currentColor; }
.dim span { position: absolute; padding: 0 8px; background: var(--paper); font-size: 10px; }
.dim-w { left: 36px; right: 0; bottom: 12px; height: 9px; border-left: 1px solid; border-right: 1px solid; transform: scaleX(0); transition: transform 1.2s var(--ease-out) 1.2s; }
.dim-w::before { left: 0; right: 0; top: 4px; height: 1px; }
.dim-w span { left: 50%; top: -5px; transform: translateX(-50%); }
.dim-h { left: 12px; top: 0; bottom: 36px; width: 9px; border-top: 1px solid; border-bottom: 1px solid; transform: scaleY(0); transition: transform 1.2s var(--ease-out) 1.3s; }
.dim-h::before { top: 0; bottom: 0; left: 4px; width: 1px; }
.dim-h span { top: 50%; left: -14px; transform: translateY(-50%) rotate(-90deg); white-space: nowrap; }
.is-loaded .dim-w { transform: scaleX(1); }
.is-loaded .dim-h { transform: scaleY(1); }

.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.scroll { margin-left: auto; margin-right: 200px; display: flex; align-items: center; gap: 12px; }
.scroll::after { content: ""; width: 40px; height: 1px; background: currentColor; animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes scroll-line {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.js .hero-coord,
.js .hero-lead,
.js .hero-meta { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.is-loaded .hero-coord { opacity: 1; transform: none; transition-delay: 0.4s; }
.is-loaded .hero-lead { opacity: 1; transform: none; transition-delay: 1.1s; }
.is-loaded .hero-meta { opacity: 1; transform: none; transition-delay: 1.4s; }

/* ===== 01 ABOUT ===== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.plan { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: var(--paper); }
.plan-svg { display: block; width: 100%; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; }
.plan-svg .thin { stroke-width: 1; stroke: var(--blue); }
.plan-svg rect,
.plan-svg line,
.plan-svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); }
.plan-svg line { transition-delay: 0.4s; }
.plan-svg path { transition-delay: 0.9s; }
.plan.is-in .plan-svg rect,
.plan.is-in .plan-svg line,
.plan.is-in .plan-svg path { stroke-dashoffset: 0; }
.plan-svg text { fill: var(--grey); stroke: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.8s 1.4s; }
.plan.is-in .plan-svg text { opacity: 1; }
.plan figcaption { margin-top: 16px; color: var(--grey); }

.about-craft {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(80px, 10vw, 140px);
}
.about-craft .frame { aspect-ratio: 16 / 10; }
.facts { border-top: 1px solid var(--line-strong); }
.facts li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.facts li .mono { color: var(--blue); padding-top: 6px; }
.facts li p { font-family: var(--sans-ja); font-weight: 700; font-size: 18px; line-height: 1.6; }
.facts li:nth-child(2) { transition-delay: 0.1s; }
.facts li:nth-child(3) { transition-delay: 0.2s; }

/* ===== 02 SERVICE ===== */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.svc {
  padding: 28px 28px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.svc:hover { background: var(--white); }
.svc-img { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.svc-img .img { filter: grayscale(1) contrast(1.02); transition: filter 0.8s var(--ease), transform 1.2s var(--ease-out); }
.svc:hover .svc-img .img { filter: grayscale(0); transform: scale(1.04); }
.svc-num { color: var(--blue); }
.svc h3 { margin: 10px 0 12px; font-family: var(--sans-ja); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.svc p:last-child { font-size: 14px; color: var(--ink-soft); }
.svc:nth-child(2) { transition-delay: 0.1s; }
.svc:nth-child(3) { transition-delay: 0.2s; }

/* ===== 03 WORKS（リノベ前後の比較） ===== */
.works { background: var(--ink); color: var(--paper); }
.works .sec-label { color: rgba(242, 241, 238, 0.55); }
.works .sec-label span { color: #8fa3ff; }
.works .sec-label::after { background: rgba(242, 241, 238, 0.3); }
.works-hint { color: #8fa3ff; }
.case {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
}
.compare {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.compare .img { position: absolute; inset: 0; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: var(--white);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}
.compare-handle span::before { content: "◀ ▶"; font-size: 10px; letter-spacing: 0.2em; color: var(--white); }
.compare:active .compare-handle span { transform: translate(-50%, -50%) scale(0.9); }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare-range:focus-visible + .compare-handle,
.compare:focus-within .compare-handle span { outline: 2px solid var(--white); outline-offset: 3px; }
.tag { position: absolute; top: 16px; padding: 4px 10px; background: rgba(21, 21, 21, 0.75); color: var(--white); pointer-events: none; }
.tag-before { left: 16px; }
.tag-after { right: 16px; background: var(--blue); }
.case-num { color: #8fa3ff; }
.case-info h3 { margin: 12px 0 16px; font-family: var(--sans-ja); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.6; }
.case-info > p:not(.mono):not(.note) { color: rgba(242, 241, 238, 0.75); font-size: 14px; }
.spec { margin-top: 28px; border-top: 1px solid rgba(242, 241, 238, 0.25); }
.spec > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(242, 241, 238, 0.15); }
.spec dt { color: rgba(242, 241, 238, 0.55); }
.works .note { color: rgba(242, 241, 238, 0.5); }
.cases-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(64px, 8vw, 112px);
}
.case-card .frame { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.case-card .img { transition: transform 1.2s var(--ease-out); }
.case-card:hover .img { transform: scale(1.04); }
.case-card h3 { margin-top: 8px; font-family: var(--sans-ja); font-weight: 700; font-size: 18px; }
.case-card:nth-child(2) { transition-delay: 0.12s; }

/* ===== 04 PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.process-head { position: sticky; top: 120px; }
.process-img { aspect-ratio: 4 / 3; margin-top: 40px; }
.steps { position: relative; padding-left: 48px; }
.steps-line { position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps-line span { position: absolute; inset: 0; background: var(--blue); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  left: -52px;
  top: 36px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--blue);
  background: var(--paper);
}
.step-num { color: var(--blue); padding-top: 6px; }
.step h3 { font-family: var(--sans-ja); font-weight: 700; font-size: 19px; }
.step p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.step-time { padding-top: 6px; color: var(--grey); white-space: nowrap; }

/* ===== VOICE ===== */
.voice { background: var(--white); }
.voice-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: clamp(32px, 4vw, 64px);
}
.voice blockquote { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.voice blockquote p { font-family: var(--sans-ja); font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.8; }
.voice cite { display: block; margin-top: 20px; font-style: normal; color: var(--grey); }
.voice blockquote:nth-of-type(2) { transition-delay: 0.12s; }

/* ===== 05 CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 32px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 4px; }
.form label .mono { display: flex; gap: 10px; color: var(--grey); }
.form label .mono em { color: var(--blue); text-transform: none; letter-spacing: 0; font-family: var(--sans-ja); font-size: 11px; }
.form .ja { font-size: 13px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--blue); }
.form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 18px 28px;
  border: none;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans-ja);
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn span { transition: transform 0.4s var(--ease-out); }
.btn:hover { background: var(--blue); }
.btn:hover span { transform: translateX(6px); }
.form-msg { min-height: 1.5em; font-size: 13px; color: var(--blue); }
.form-foot .note { margin-top: 0; }

/* ===== フッター ===== */
.footer { padding: 0 var(--gutter) 96px; background: var(--ink); color: var(--paper); }
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(88px, 10vw, 150px) 0;
  border-bottom: 1px solid rgba(242, 241, 238, 0.18);
}
.footer-cta-text { font-family: var(--sans-en); font-weight: 300; font-size: clamp(44px, 6vw, 92px); line-height: 1.02; letter-spacing: -0.02em; }
.footer-cta-text em { font-weight: 600; color: #8fa3ff; letter-spacing: 0.04em; }
.circle-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(132px, 13vw, 176px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.4s var(--ease);
}
.circle-btn:hover { background: var(--white); color: var(--ink); }
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 0 32px;
}
.footer-logo { font-size: 28px; }
.footer-logo span { color: rgba(242, 241, 238, 0.5); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a,
.to-top { opacity: 0.7; transition: opacity 0.3s; }
.footer-nav a:hover,
.to-top:hover { opacity: 1; }
.footer-bottom { display: grid; gap: 4px; max-width: 1280px; margin: 0 auto; font-size: 11px; line-height: 1.8; color: rgba(242, 241, 238, 0.5); }
.credit a { text-decoration: underline; }

/* ===== スクロールで表示する演出 ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .img-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader, .cursor { display: none !important; }
  .js .reveal, .js .hero-coord, .js .hero-lead, .js .hero-meta { opacity: 1; transform: none; }
  .js .img-reveal, .hero-frame { clip-path: none !important; }
  .hero-frame .img { transform: none !important; }
  .dim-w, .dim-h { transform: none !important; }
  [data-split] .ch { opacity: 1; transform: none; }
  .plan-svg rect, .plan-svg line, .plan-svg path { stroke-dashoffset: 0 !important; }
  .plan-svg text { opacity: 1 !important; }
}

/* ===== タブレット ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding-top: 112px; }
  .hero-figure { padding-left: 28px; }
  .about-grid,
  .about-craft,
  .case,
  .process-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .process-head { position: static; }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .voice-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== スマートフォン ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .section { padding-block: 88px; }
  .header { padding: 16px var(--gutter); }
  .header.is-scrolled { padding-block: 10px; }
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 0 var(--gutter);
    background: var(--paper);
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { gap: 14px; font-family: var(--sans-en); font-weight: 600; font-size: 36px; letter-spacing: 0.02em; text-transform: none; }
  .nav a i { font-family: var(--mono); font-weight: 400; font-size: 12px; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 12px; padding: 10px 24px; font-size: 20px !important; }
  .header.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; }

  .hero-title br { display: block; }
  .hero-meta { gap: 4px 20px; }
  .hero-meta li:nth-child(2) { display: none; }
  .scroll { display: none; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .cases-more { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 24px 0; }
  .step-time { grid-column: 2; padding-top: 0; }
  .steps { padding-left: 32px; }
  .step::before { left: -36px; top: 32px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .demo-badge { right: 12px; bottom: 12px; font-size: 10px; }
}
