@charset "UTF-8";

/* =========================================================================
   株式会社マスタニスキャホールズ  ―  TOP ページ リニューアル提案デザイン
   足場工事 / レンタル資材   |   Theme: Industrial Editorial-Modern
   ========================================================================= */

:root {
  /* ============ THEME: Sky（爽やか・ライトブルー / 既定） ============ */
  --ink:        #16202e;
  --ink-soft:   #1d2937;
  --ink-700:    #38465a;
  --steel:      #4a5a70;
  --paper:      #eef3f9;
  --paper-pure: #ffffff;
  --card:       #ffffff;
  --muted:      #5d6b7d;
  --muted-2:    #93a1b2;
  --line:       rgba(22, 32, 46, .12);
  --line-soft:  rgba(22, 32, 46, .07);
  --accent:     #1f7ae0;   /* sky blue */
  --accent-ink: #1560b4;
  --accent-glow:rgba(31, 122, 224, .42);
  --line-green: #06c755;
  --line-green-d: #04a847;

  /* feature panels（実績・採用バンド） */
  --panel-bg:      #e6eef8;
  --panel-on:      var(--ink);
  --panel-on-soft: var(--muted);
  --panel-eyebrow: var(--accent-ink);
  --panel-cell:    #ffffff;
  --panel-hair:    rgba(22, 32, 46, .10);

  /* hero（動画背景の上の文字・スクリム） */
  --hero-on:       var(--ink);
  --hero-on-soft:  #45546a;
  --hero-halo:     rgba(243, 247, 251, .9);
  --hero-bg:       radial-gradient(120% 130% at 78% -10%, #ffffff 0%, #d7e4f2 60%);
  --hero-media-bg: #d7e4f2;
  --hero-scrim:    linear-gradient(90deg, rgba(243,247,251,.84) 0%, rgba(243,247,251,.58) 38%, rgba(243,247,251,.16) 72%, rgba(243,247,251,.3) 100%), linear-gradient(to top, rgba(243,247,251,.52), rgba(243,247,251,0) 50%);
  --hero-grid-a:   rgba(22, 32, 46, .06);
  --hero-grid-b:   rgba(22, 32, 46, .03);
  --hero-cell:     rgba(255, 255, 255, .66);
  --hero-hair:     rgba(22, 32, 46, .12);
  --ctl-bg:        rgba(22, 32, 46, .06);
  --ctl-bd:        rgba(22, 32, 46, .22);
  --ghost-on:      var(--ink);
  --ghost-bd:      rgba(22, 32, 46, .25);

  /* footer */
  --footer-bg:    #e4ecf6;
  --footer-on:    #51607a;
  --footer-head:  var(--ink);
  --footer-link:  #51607a;
  --footer-faint: #93a1b2;
  --footer-logo:  var(--ink);

  /* 写真プレースホルダ（施工事例・Instagram・事業内容ビジュアル） */
  --visual-bg:     linear-gradient(150deg, #dde6f0, #c6d4e3);
  --visual-on:     rgba(22, 32, 46, .5);
  --visual-grid:   rgba(22, 32, 46, .07);
  --visual-tag:    rgba(22, 32, 46, .5);
  --visual-tag-bd: rgba(22, 32, 46, .25);
  --ig-ov:         rgba(22, 32, 46, .5);

  /* nav */
  --nav-bg: rgba(238, 243, 249, .8);

  --f-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --f-body:    "Noto Sans JP", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 84px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============ THEME: Sand（あたたか・ライトベージュ） ============ */
[data-theme="sand"] {
  --ink:        #2a2017;
  --ink-soft:   #342819;
  --ink-700:    #4a3d2e;
  --steel:      #5e5040;
  --paper:      #f7f2ea;
  --paper-pure: #fffdf9;
  --card:       #ffffff;
  --muted:      #7b6e5d;
  --muted-2:    #ab9d88;
  --line:       rgba(42, 32, 23, .13);
  --line-soft:  rgba(42, 32, 23, .07);
  --accent:     #f4651d;   /* safety orange */
  --accent-ink: #cc4a0e;
  --accent-glow:rgba(244, 101, 29, .46);

  --panel-bg:      #f1e7d7;
  --panel-cell:    #fffdf9;
  --panel-hair:    rgba(42, 32, 23, .10);

  --hero-on-soft:  #5c4f3d;
  --hero-halo:     rgba(249, 244, 235, .9);
  --hero-bg:       radial-gradient(120% 130% at 78% -10%, #fffdf9 0%, #efe2cd 60%);
  --hero-media-bg: #efe2cd;
  --hero-scrim:    linear-gradient(90deg, rgba(249,244,235,.84) 0%, rgba(249,244,235,.56) 38%, rgba(249,244,235,.14) 72%, rgba(249,244,235,.3) 100%), linear-gradient(to top, rgba(249,244,235,.52), rgba(249,244,235,0) 50%);
  --hero-grid-a:   rgba(42, 32, 23, .06);
  --hero-grid-b:   rgba(42, 32, 23, .03);
  --hero-cell:     rgba(255, 255, 255, .62);
  --hero-hair:     rgba(42, 32, 23, .12);
  --ctl-bg:        rgba(42, 32, 23, .06);
  --ctl-bd:        rgba(42, 32, 23, .22);
  --ghost-bd:      rgba(42, 32, 23, .25);

  --footer-bg:    #efe5d4;
  --footer-on:    #6a5d4a;
  --footer-link:  #6a5d4a;
  --footer-faint: #ab9d88;

  --visual-bg:     linear-gradient(150deg, #ece1cf, #ddccb2);
  --visual-on:     rgba(42, 32, 23, .5);
  --visual-grid:   rgba(42, 32, 23, .07);
  --visual-tag:    rgba(42, 32, 23, .5);
  --visual-tag-bd: rgba(42, 32, 23, .25);
  --ig-ov:         rgba(42, 32, 23, .5);

  --nav-bg: rgba(247, 242, 234, .82);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; overflow-x: clip; }
body {
  margin: 0; font-family: var(--f-body); font-weight: 400; color: var(--ink);
  background: var(--paper); line-height: 1.85; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.ico-svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(70px, 10vw, 138px); position: relative; }
.section--ink { background: var(--panel-bg); color: var(--panel-on); }
.section--ink .sec-head h2 { color: var(--panel-on); }
.section--ink .lead { color: var(--panel-on-soft); }
.section--ink .eyebrow { color: var(--panel-eyebrow); }
.section--ink .eyebrow::before { background: var(--accent); }

.eyebrow {
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.sec-head { max-width: 880px; margin-bottom: clamp(34px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.2; letter-spacing: -.01em; margin: .5em 0 0;
}
.sec-head h2 em { color: var(--accent); font-style: normal; }
.lead { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--muted); margin-top: 1.1em; max-width: 62ch; }
.sec-head.center .lead { margin-inline: auto; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad); background: var(--nav-bg);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease), padding .4s var(--ease), background .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: .6em; }
.brand .logo { display: flex; align-items: baseline; gap: .12em; font-family: var(--f-display); font-weight: 900; font-size: 1.12rem; letter-spacing: .02em; line-height: 1; }
.brand .logo b { color: var(--accent); }
.brand .sub { display: block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.brand .ptag { font-family: var(--f-mono); font-size: .56rem; letter-spacing: .12em; color: #fff; background: var(--accent); padding: 3px 7px; border-radius: 5px; text-transform: uppercase; align-self: center; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); }
.nav-links > a { font-size: .85rem; font-weight: 600; color: var(--ink-700); position: relative; padding: 4px 0; transition: color .25s; white-space: nowrap; }
.nav-links > a:not(.btn):not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.nav-links > a:not(.btn):not(.nav-cta):hover { color: var(--ink); }
.nav-links > a:not(.btn):not(.nav-cta):hover::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: .45em; background: var(--accent); color: #fff !important; padding: 9px 16px !important; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 18px var(--accent-glow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow); }
.nav-ig { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #fff !important; background: linear-gradient(45deg, #feda75, #fa7e1e 28%, #d62976 58%, #962fbf 80%, #4f5bd5); box-shadow: 0 6px 16px rgba(214,41,118,.32); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.nav-ig:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(214,41,118,.46); }
/* 配色テーマ切り替え */
.theme-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ctl-bg); border: 1px solid var(--line); }
.theme-switch > button { display: inline-flex; align-items: center; gap: .45em; border: 0; background: transparent; cursor: pointer; font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 11px; border-radius: 999px; transition: background .25s, color .25s, box-shadow .25s; }
.theme-switch > button .sw { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.theme-switch > button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.sw-sky { background: linear-gradient(135deg, #1f7ae0, #7fd3ff); }
.sw-sand { background: linear-gradient(135deg, #f4651d, #ffc06a); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 0; }
.nav-burger span { display: block; width: 23px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s var(--ease); }
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ btns */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-weight: 700; font-size: .96rem; padding: 15px 26px; border-radius: 999px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; border: 1px solid transparent; cursor: pointer; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px var(--accent-glow); }
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 16px 42px var(--accent-glow); }
.btn--line { background: var(--line-green); color: #fff; box-shadow: 0 10px 30px rgba(6,199,85,.32); }
.btn--line:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(6,199,85,.45); }
.btn--ghost { background: transparent; color: var(--ghost-on); border-color: var(--ghost-bd); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13,15,18,.28); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn--lg { padding: 18px 34px; font-size: 1.04rem; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; color: var(--hero-on);
  background: var(--hero-bg);
  padding: clamp(140px, 20vh, 220px) 0 clamp(70px, 10vw, 120px); overflow: hidden;
}
.hero::before { /* scaffold lattice */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--hero-grid-a) 2px, transparent 2px),
    linear-gradient(90deg, var(--hero-grid-a) 2px, transparent 2px),
    linear-gradient(var(--hero-grid-b) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-b) 1px, transparent 1px);
  background-size: 132px 132px, 132px 132px, 44px 44px, 44px 44px;
  mask-image: radial-gradient(130% 100% at 65% 0%, #000 35%, transparent 82%);
  -webkit-mask-image: radial-gradient(130% 100% at 65% 0%, #000 35%, transparent 82%);
}
.hero::after { content: ""; position: absolute; z-index: 1; pointer-events: none; width: 560px; height: 560px; right: -130px; top: -150px; background: radial-gradient(circle, var(--accent-glow), transparent 66%); filter: blur(18px); opacity: .5; }
.hero .wrap { position: relative; z-index: 2; }

/* hero background video */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--hero-media-bg); }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); will-change: opacity; filter: contrast(1.07) saturate(1.1); }
.hero-vid.is-active { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: var(--hero-scrim); }
/* switch control */
.hero-switch { margin-top: clamp(26px, 4vw, 44px); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vswitch { display: inline-flex; align-items: center; gap: .55em; background: var(--ctl-bg); border: 1px solid var(--ctl-bd); color: var(--hero-on); padding: 11px 18px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.vswitch:hover { background: var(--ctl-bd); border-color: var(--hero-on); transform: translateY(-2px); }
.vdots { display: inline-flex; align-items: center; gap: 8px; }
.vdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ctl-bd); transition: background .35s var(--ease), width .35s var(--ease); }
.vdots i.is-on { background: var(--accent); width: 22px; border-radius: 999px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .7em; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: clamp(20px, 3vw, 30px); }
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.3rem, 6.4vw, 5rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; text-shadow: 0 2px 22px var(--hero-halo); }
.hero-eyebrow, .hero-sub { text-shadow: 0 1px 16px var(--hero-halo); }
.hero h1 .hl { color: var(--accent); }
.hero-sub { margin-top: 1.4em; font-size: clamp(1rem, 1.6vw, 1.22rem); color: var(--hero-on-soft); max-width: 50ch; }
.hero-actions { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: clamp(36px, 5vw, 60px); display: flex; flex-wrap: wrap; gap: 1px; background: var(--hero-hair); border: 1px solid var(--hero-hair); border-radius: 12px; overflow: hidden; }
.hero-trust .ht { flex: 1 1 0; min-width: 150px; background: var(--hero-cell); padding: 18px 22px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero-trust .htk { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.hero-trust .htv { font-family: var(--f-display); font-weight: 800; font-size: 1.34rem; margin-top: 4px; line-height: 1.3; }
.hero-trust .htv small { font-size: .62em; font-weight: 600; color: var(--hero-on-soft); }

/* ------------------------------------------------------------ generic grid */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ----------------------------------------------------------- services split */
.svc { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.svc-item { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-item:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(13,15,18,.1); }
.svc-item:nth-child(even) { grid-template-columns: .95fr 1.05fr; }
.svc-item:nth-child(even) .svc-body { order: 2; }
.svc-body { padding: clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.svc-no { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; color: var(--accent-ink); }
.svc-body h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: .35em 0 .5em; line-height: 1.35; }
.svc-body p { margin: 0 0 1.4em; color: var(--muted); font-size: .98rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.6em; }
.svc-tags span { font-size: .78rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; color: var(--ink-700); }
.svc-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--accent-ink); font-size: .94rem; }
.svc-link svg { transition: transform .3s var(--ease); }
.svc-item:hover .svc-link svg { transform: translateX(4px); }
/* visual panel (image placeholder w/ scaffold motif) */
.svc-visual { position: relative; min-height: 280px; background: var(--visual-bg); color: var(--visual-on); display: grid; place-items: center; overflow: hidden; }
.svc-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--visual-grid) 2px, transparent 2px), linear-gradient(90deg, var(--visual-grid) 2px, transparent 2px); background-size: 40px 40px; }
.svc-visual .vlabel { position: relative; z-index: 1; text-align: center; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; }
.svc-visual .vicon { color: var(--accent); margin: 0 auto 10px; }

/* ----------------------------------------------------------------- reasons */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reason { background: var(--paper-pure); padding: clamp(26px, 3vw, 40px); position: relative; }
.reason .rno { position: absolute; top: 22px; right: 26px; font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; color: var(--line); }
.reason .ricon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 20px var(--accent-glow); }
.reason h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; margin: 0 0 .5em; }
.reason p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--panel-hair); border: 1px solid var(--panel-hair); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--panel-cell); padding: clamp(26px, 3vw, 42px) clamp(18px, 2vw, 28px); }
.stat .sk { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.stat .sv { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin: .3em 0 .15em; }
.stat .sv span { font-size: .42em; color: var(--accent); margin-left: .1em; }
.stat .sd { font-size: .86rem; color: var(--panel-on-soft); }

/* ------------------------------------------------------------------- flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flow-step { padding: 0 12px; position: relative; }
.flow-step::before { content: ""; position: absolute; top: 26px; left: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); z-index: 0; }
.flow-step:last-child::before { display: none; }
.flow-step .dot { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; position: relative; z-index: 1; font-size: 1.3rem; box-shadow: 0 8px 20px var(--accent-glow); }
.flow-step h4 { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; margin: 16px 0 .35em; }
.flow-step p { margin: 0; color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------- estimate */
.estimate { position: relative; background: var(--accent); color: #fff; border-radius: 20px; padding: clamp(34px, 5vw, 64px); overflow: hidden; }
.estimate::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.12) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.12) 2px, transparent 2px); background-size: 46px 46px; mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 70%); }
.estimate-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.estimate .ek { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.estimate h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: .4em 0 .3em; line-height: 1.25; }
.estimate p { margin: 0; max-width: 46ch; opacity: .92; font-size: .98rem; }
.estimate-actions { display: flex; flex-direction: column; gap: 12px; flex: none; }
.estimate .btn--ink { background: #fff; color: var(--accent-ink); }
.estimate .btn--ink:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }

/* ------------------------------------------------------------------ works */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.work { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--visual-bg); border: 1px solid var(--line); display: grid; place-items: end start; }
.work::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--visual-grid) 2px, transparent 2px), linear-gradient(90deg, var(--visual-grid) 2px, transparent 2px); background-size: 40px 40px; }
.work .wmeta { position: relative; z-index: 1; padding: 18px 20px; color: var(--ink); }
.work .wcat { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--accent-ink); }
.work .wt { font-family: var(--f-display); font-weight: 800; font-size: 1.04rem; margin-top: 3px; }
.work .wph { position: absolute; top: 14px; right: 16px; z-index: 1; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; color: var(--visual-tag); border: 1px dashed var(--visual-tag-bd); border-radius: 6px; padding: 3px 7px; }

/* --------------------------------------------------------- company / access */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 16px 4px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.facts th { width: 34%; font-weight: 700; color: var(--ink-700); font-family: var(--f-display); white-space: nowrap; }
.facts td { color: var(--muted); }
.access-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.access-map { aspect-ratio: 16 / 10; background: linear-gradient(150deg, #e8e4da, #f4f1ea); position: relative; display: grid; place-items: center; color: var(--muted); }
.access-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(13,15,18,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13,15,18,.06) 1px, transparent 1px); background-size: 30px 30px; }
.access-map .pin { position: relative; z-index: 1; color: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; }
.access-body { padding: clamp(20px, 2.4vw, 30px); }
.access-body .addr { font-weight: 700; font-family: var(--f-display); margin: 0 0 .4em; }
.access-body p { margin: 0 0 1em; color: var(--muted); font-size: .92rem; }

/* ----------------------------------------------------------------- recruit */
.recruit { position: relative; background: var(--panel-bg); color: var(--panel-on); border: 1px solid var(--line); border-radius: 20px; padding: clamp(32px, 4.5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; }
.recruit::after { content: ""; position: absolute; width: 380px; height: 380px; right: -80px; bottom: -160px; background: radial-gradient(circle, var(--accent-glow), transparent 66%); filter: blur(18px); opacity: .5; }
.recruit .rc { position: relative; z-index: 1; }
.recruit .rk { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--panel-eyebrow); }
.recruit h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: .35em 0 .3em; }
.recruit p { margin: 0; color: var(--panel-on-soft); max-width: 44ch; font-size: .96rem; }
.recruit .btn { position: relative; z-index: 1; }

/* ----------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.contact-card { background: var(--panel-cell); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px); text-align: center; box-shadow: 0 10px 30px rgba(22,32,46,.06); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(22,32,46,.12); }
.contact-card .ci { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 18px; }
.contact-card.tel .ci { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.contact-card.line .ci { background: rgba(6,199,85,.16); color: var(--line-green-d); }
.contact-card.form .ci { background: var(--ctl-bg); color: var(--ink); }
.contact-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.14rem; margin: 0 0 .4em; color: var(--ink); }
.contact-card .big { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); letter-spacing: .01em; }
.contact-card p { margin: .5em 0 1.2em; color: var(--muted); font-size: .88rem; }
.contact-hours { margin-top: clamp(28px, 3.5vw, 44px); text-align: center; font-size: .9rem; color: var(--muted); }
.contact-hours b { color: var(--ink); font-family: var(--f-display); }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--footer-bg); color: var(--footer-on); padding: clamp(50px, 7vw, 82px) 0 38px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer .brand .logo { color: var(--footer-logo); font-size: 1.2rem; }
.footer-note { max-width: 36ch; font-size: .88rem; margin-top: 1em; line-height: 1.9; }
.footer h4 { font-family: var(--f-display); font-weight: 700; color: var(--footer-head); font-size: .92rem; margin: 0 0 1.1em; letter-spacing: .04em; }
.footer-links li { margin-bottom: .7em; }
.footer-links a { font-size: .9rem; color: var(--footer-link); transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 26px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--footer-faint); }

/* --------------------------------------------------------------- floating */
.fab-group { position: fixed; right: clamp(14px, 2.6vw, 26px); bottom: clamp(14px, 2.6vw, 26px); z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .9rem; padding: 13px 19px; border-radius: 999px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fab--line { background: var(--line-green); color: #fff; box-shadow: 0 12px 30px rgba(6,199,85,.45); }
.fab--tel { background: var(--accent); color: #fff; box-shadow: 0 12px 30px var(--accent-glow); }
.fab:hover { transform: translateY(-3px) scale(1.03); }

/* ----------------------------------------------------------------- SNS / IG */
.btn-ig { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-weight: 700; font-size: .96rem; color: #fff; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; background: linear-gradient(45deg, #feda75, #fa7e1e 28%, #d62976 58%, #962fbf 80%, #4f5bd5); box-shadow: 0 10px 30px rgba(214,41,118,.34); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn-ig:hover { transform: translateY(-3px); box-shadow: 0 16px 42px rgba(214,41,118,.46); }
.btn-ig.btn--lg { padding: 16px 32px; font-size: 1.04rem; }
.sns-board { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ig-profile { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); padding: clamp(20px, 2.6vw, 30px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ig-avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); display: grid; place-items: center; }
.ig-avatar span { width: 56px; height: 56px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; color: var(--ink); font-size: 1.05rem; letter-spacing: .02em; }
.ig-meta { flex: 1 1 220px; }
.ig-handle { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; }
.ig-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .85rem; margin: 4px 0 6px; }
.ig-stats b { color: var(--ink); }
.ig-bio { color: var(--muted); font-size: .85rem; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ig-post { position: relative; aspect-ratio: 1 / 1; background: var(--visual-bg); overflow: hidden; display: block; }
.ig-post::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--visual-grid) 2px, transparent 2px), linear-gradient(90deg, var(--visual-grid) 2px, transparent 2px); background-size: 34px 34px; }
.ig-post .wph { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; color: var(--visual-tag); border: 1px dashed var(--visual-tag-bd); border-radius: 5px; padding: 2px 6px; }
.ig-ov { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #fff; opacity: 0; background: var(--ig-ov); transition: opacity .3s var(--ease); }
.ig-post:hover .ig-ov { opacity: 1; }
.sns-cta { text-align: center; margin-top: clamp(24px, 3vw, 36px); }
.sns-note { color: var(--muted); font-size: .82rem; margin-top: 1.1em; max-width: 60ch; margin-inline: auto; }

/* ------------------------------------------------------------- reveal anim */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
.hero [data-load] { opacity: 0; transform: translateY(20px); animation: heroIn .9s var(--ease) forwards; }
.hero [data-load="1"] { animation-delay: .05s; }
.hero [data-load="2"] { animation-delay: .18s; }
.hero [data-load="3"] { animation-delay: .31s; }
.hero [data-load="4"] { animation-delay: .44s; }
.hero [data-load="5"] { animation-delay: .57s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-load] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .g-4, .stats, .flow { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .flow-step::before { display: none; }
  .flow { gap: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* backdrop-filter は fixed の包含ブロックを生成し drawer 高さが nav 高さに制限されるため、モバイルでは解除 */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links { position: fixed; inset: 0 0 0 auto; height: 100vh; height: 100dvh; width: min(84vw, 330px); flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 18px; padding: 80px 30px 40px; background: var(--paper-pure); box-shadow: -20px 0 60px rgba(0,0,0,.18); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transform: translateX(14px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .4s var(--ease), opacity .3s var(--ease), visibility .4s; }
  .nav-links > span { font-size: 1.05rem; }
  .nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links > a { font-size: 1.05rem; }
  .nav-ig { width: auto; height: auto; border-radius: 999px; gap: .5em; padding: 9px 18px; font-size: 1.05rem; font-weight: 700; }
  .nav-ig::after { content: "Instagram"; }
  .nav-burger { display: block; z-index: 2; }
  .g-2, .g-3, .g-4, .stats, .flow, .reasons, .works-grid, .company, .svc-item, .svc-item:nth-child(even) { grid-template-columns: 1fr; }
  .svc-item:nth-child(even) .svc-body { order: 0; }
  .svc-visual { min-height: 200px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .estimate-actions { width: 100%; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .recruit .btn, .recruit { text-align: center; }
}

/* =====================================================================
   名刺準拠：ヘッダー / フッターをダークネイビー（ティール）に統一
   ※ テーマ(Sky/Sand)に関わらず適用
   ===================================================================== */
.nav { background: linear-gradient(100deg, #0a1d31 0%, #103048 55%, #16475f 100%); border-bottom-color: rgba(255,255,255,.12); }
.nav .brand .logo { color: #fff; }
.nav .brand .sub { color: rgba(255,255,255,.6); }
.nav-links > a { color: rgba(255,255,255,.86); }
.nav-links > a:not(.btn):not(.nav-cta):hover { color: #fff; }
.nav-links > span { color: rgba(255,255,255,.9); }
.nav-burger span { background: #fff; }
.theme-switch { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.theme-switch > button { color: rgba(255,255,255,.7); }
.theme-switch > button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.footer { background: linear-gradient(125deg, #0a1d31 0%, #103048 50%, #16475f 100%); color: rgba(255,255,255,.72); }
.footer .brand .logo { color: #fff; }
.footer h4 { color: #fff; }
.footer-note { color: rgba(255,255,255,.62); }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--accent); }
.footer-top { border-bottom-color: rgba(255,255,255,.14); }
.footer-bottom { color: rgba(255,255,255,.5); }

/* モバイルのナビ drawer は白背景のため、リンク文字は濃色に戻す */
@media (max-width: 760px) {
  .nav-links > a, .nav-links > span { color: var(--ink); }
  .nav-links > a:not(.btn):not(.nav-cta):hover { color: var(--accent); }
}
