/* KOBAYASHI BASE トップページ
   色はここに集約する（配色の別案は themes.py がこの値を上書きする） */
:root {
  --paper: #FFFFFF;
  --paper-2: #F7F5F2;
  --paper-3: #F1EDE8;
  --ink: #2B3038;
  --slate: #5F6B78;
  --mist: #AEB9C4;
  --sea: #DDE3E7;
  --sun: #E39A7C;
  --sun-deep: #D4805F;
  --sun-light: #EDB396;
  --glow-1: #FCF3EC;
  --glow-2: #F7E3D7;
  --line: color-mix(in srgb, var(--ink) 22%, transparent);
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-ja: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --gutter: clamp(16px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
/* 紙の粒子 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%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; }
p { margin: 0 0 1.2em; text-wrap: pretty; }
mark {
  background: var(--ink);
  color: var(--paper);
  padding: 0 0.12em;
}

/* ---------- ローディング ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: transform 1.1s var(--ease-io) 0.25s;
}
.skip-loader .loader { display: none; }
.is-loaded .loader { transform: translateY(-100%); }
.loader-svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.loader-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}
.loader-sun {
  fill: var(--sun);
  transform-origin: 60px 60px;
  transform: scale(0);
  transition: transform 0.7s var(--ease);
}
.loader.is-done .loader-sun { transform: scale(1); }
.loader-count, .loader-name {
  position: absolute;
  margin: 0;
  font-family: var(--serif-en);
  letter-spacing: 0.3em;
  font-size: 13px;
}
.loader-count { left: var(--gutter); bottom: 32px; }
.loader-name { right: var(--gutter); bottom: 32px; }

/* ---------- カーソルと作品プレビュー ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 90;
    opacity: 0;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
  }
  .cursor.is-active { opacity: 1; }
  .cursor.is-hover {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    background-color: color-mix(in srgb, var(--sun) 25%, transparent);
    border-color: var(--sun-deep);
  }
  .cursor-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--serif-en);
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .cursor.is-view {
    width: 92px; height: 92px;
    margin: -46px 0 0 -46px;
    background-color: var(--sun);
    border-color: var(--sun);
  }
  .cursor.is-view .cursor-label { opacity: 1; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--gutter);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: block; color: var(--ink); text-decoration: none; }
.logo svg { height: 22px; width: auto; }
.gnav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.gnav a {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-decoration: none;
  position: relative;
}
.gnav a::after, .hero-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.gnav a:hover::after, .hero-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav { opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.is-scrolled .gnav { opacity: 1; pointer-events: auto; }
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  cursor: pointer;
  padding: 8px 0;
}
.menu-lines { position: relative; width: 26px; height: 9px; }
.menu-lines::before, .menu-lines::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-lines::before { top: 0; }
.menu-lines::after { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: 4px; transform: rotate(20deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { top: 4px; transform: rotate(-20deg); }
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper-2);
  padding: 120px var(--gutter) 40px;
}
.menu ul { list-style: none; margin: 0 0 40px; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); }
.menu a { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0; text-decoration: none; }
.menu .en { font-family: var(--serif-en); font-size: 30px; letter-spacing: 0.08em; }
.menu .ja { font-size: 12px; color: var(--slate); }
.menu-cta { display: inline-block; border: 1.5px solid var(--ink); padding: 14px 28px; text-decoration: none; }

/* ---------- 共通 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-en);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.sec-label { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.sec-label .en {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.sec-label .ja { font-size: 12px; color: var(--slate); padding-left: 16px; border-left: 1px solid var(--line); }
.sec-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 30em);
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(48px, 9vh, 96px);
}
.sec-title { margin: 0; font-weight: 400; }
.sec-title .en {
  display: block;
  font-family: var(--serif-en);
  font-size: clamp(64px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.sec-title .ja {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.16em;
}
.sec-title .ja::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-lead { margin: 0; color: var(--slate); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.text-link::after {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.text-link:hover::after { width: 40px; }
.more { margin-top: 48px; }

/* 文字のせり上がり */
[data-split] .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .ch {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 38ms);
}
[data-split].is-in .ch { transform: none; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--paper);
}
.hero-visual {
  position: absolute;
  inset: 10vh 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 26%);
}
.hero-art { width: 100%; height: 100%; }
.hero-art .layer { will-change: transform; opacity: 0; }
.hero-art .shimmer rect { animation: shimmer 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-art .shimmer rect:nth-child(2n) { animation-duration: 5.5s; animation-delay: -1.2s; }
.hero-art .shimmer rect:nth-child(3n) { animation-duration: 6.5s; animation-delay: -2.4s; }
@keyframes shimmer {
  0%, 100% { transform: translateX(0) scaleX(1); opacity: var(--o, 0.6); }
  50% { transform: translateX(14px) scaleX(0.7); opacity: 0.2; }
}
.hero-copy {
  position: absolute;
  left: var(--gutter);
  top: clamp(96px, 13vh, 150px);
  max-width: min(44rem, 50vw);
  z-index: 2;
  will-change: transform, opacity;
}
.hero-title {
  margin: 14px 0 22px;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: clamp(44px, 5.8vw, 100px);
  line-height: 1.22;
  letter-spacing: 0.08em;
}
/* 島のイラストに重なっても読めるよう、行ごとに白い帯を敷く（帯の長さが行ごとに変わる） */
.hero-lead { max-width: 38em; font-size: 15px; font-weight: 500; line-height: 2.5; color: var(--ink); }
.hero-lead span {
  padding: 0.32em 0.8em;
  margin-left: -0.8em;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: inset 3px 0 0 var(--sun);
}
.hero-name {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--slate);
}
.hero-lead, .hero-name, .hero .eyebrow, .hero-nav, .hero-side, .scroll-cue {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s var(--ease) 1.1s, transform 1.2s var(--ease) 1.1s;
}
.is-loaded .hero-lead, .is-loaded .hero-name, .is-loaded .hero .eyebrow,
.is-loaded .hero-nav, .is-loaded .hero-side, .is-loaded .scroll-cue { opacity: 1; transform: none; }
.is-loaded .hero .eyebrow { transition-delay: 0.6s; }
.hero-side {
  position: absolute;
  left: 18px;
  top: 16vh;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--slate);
  z-index: 2;
}
.hero-nav {
  position: absolute;
  right: var(--gutter);
  top: clamp(96px, 13vh, 150px);
  z-index: 2;
}
.hero-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; min-width: 230px; text-decoration: none; position: relative; padding-bottom: 4px; }
.hero-nav .en { font-family: var(--serif-en); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-nav .ja { font-size: 11px; color: var(--slate); }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--ink);
  translate: -50% 0;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 64px;
  background: var(--ink);
  transform-origin: top;
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 屋号の欄 ---------- */
.principle {
  position: relative;
  padding: clamp(110px, 17vh, 180px) var(--gutter) clamp(110px, 16vh, 170px);
  overflow: clip;
}
.principle-sun {
  position: absolute;
  left: -14vw;
  top: 6vh;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--sun-light), var(--sun) 55%, var(--sun-deep));
  overflow: hidden;
}
.principle-sun::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.principle-vert {
  position: absolute;
  right: -1vw;
  top: 4vh;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif-en);
  font-size: clamp(110px, 15vw, 260px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--mist);
  pointer-events: none;
  user-select: none;
}
.principle-box {
  position: relative;
  margin-left: max(27vw, 260px);
  width: min(600px, 50vw);
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 48px);
  background: var(--paper);
  border: 3px solid var(--ink);
}
.principle-box::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1px solid var(--slate);
  z-index: -1;
}
.principle-title {
  margin: 0 0 24px;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.principle-title mark { padding: 0 0.15em; }
.principle-sign { margin: 24px 0 0; font-size: 13px; color: var(--slate); text-align: right; }

/* ---------- サービス ---------- */
.service { padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 44px);
  align-items: start;
}
/* 非公開のサービスがあってカードが少ないときは、列の数をカードの数に合わせる（build_top.py が service-grid--n◯ を付ける） */
.service-grid--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; }
.service-grid--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card.c2 { margin-top: clamp(80px, 18vh, 200px); }
.service-card.c3 { margin-top: clamp(30px, 7vh, 80px); }
.service-card.c4 { margin-top: clamp(110px, 22vh, 240px); }
.service-card.c5 { margin-top: clamp(50px, 11vh, 120px); }
@media (min-width: 1280px) {
  .service-card .poster-art--logo { width: 70%; }
  .service-card .poster-en { font-size: clamp(14px, 1.15vw, 18px); letter-spacing: 0.2em; }
  .service-card .card-title { font-size: clamp(16px, 1.32vw, 20px); letter-spacing: 0.04em; white-space: nowrap; }
}
@media (max-width: 1279px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px); }
  .service-card.c4, .service-card.c5 { margin-top: 0; }
}
.poster {
  display: block;
  aspect-ratio: 3 / 4;
  padding: 9% 9% 7%;
  background: var(--paper-2);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.poster:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -36px rgba(43, 48, 56, 0.5); }
.poster-art { transition: transform 0.9s var(--ease); }
.poster-art--logo { width: 84%; margin: 0 auto; }
.poster-art--logo svg { width: 100%; height: auto; }
.poster:hover .poster-art { transform: scale(1.04); }
.poster-type {
  position: absolute;
  left: 9%; right: 9%; bottom: 7%;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.poster-no { font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.2em; color: var(--slate); }
.poster-en { font-family: var(--serif-en); font-size: clamp(16px, 1.45vw, 24px); letter-spacing: 0.26em; padding-left: 0.26em; white-space: nowrap; }
.poster-foot {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--slate);
}
.card-body { padding-top: 28px; }
.card-title { margin: 0 0 14px; font-family: var(--serif-ja); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: 0.08em; }
.card-note { font-size: 13px; color: var(--slate); padding-left: 14px; border-left: 2px solid var(--sun); }

/* ---------- Works ---------- */
.works { padding: clamp(80px, 12vh, 140px) var(--gutter); }
.works .sec-head { grid-template-columns: auto minmax(0, 1fr); align-items: end; }

/* 絞り込みのタブ（下線がすべって移動する） */
.work-filter { position: relative; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-self: end; }
.wf-btn {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--slate);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.3s;
}
.wf-btn sup { font-family: var(--serif-en); font-size: 11px; margin-left: 4px; }
.wf-btn:hover, .wf-btn[aria-pressed="true"] { color: var(--ink); }
.wf-bar {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--sun);
  transition: left 0.5s var(--ease), width 0.5s var(--ease), top 0.5s var(--ease);
}

/* カードの一覧：大小を混ぜ、段違いに並べる */
.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 6vh, 64px) clamp(20px, 2.4vw, 36px);
  align-items: start;
}
.work-card { grid-column: span 4; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.work-grid:not(.is-filtered) .work-card:nth-child(1) { grid-column: span 7; }
.work-grid:not(.is-filtered) .work-card:nth-child(2) { grid-column: span 5; margin-top: clamp(60px, 14vh, 140px); }
.work-grid:not(.is-filtered) .work-card:nth-child(4) { margin-top: clamp(30px, 7vh, 70px); }
.work-grid:not(.is-filtered) .work-card:nth-child(6) { grid-column: span 5; }
.work-grid:not(.is-filtered) .work-card:nth-child(7) { grid-column: span 7; margin-top: clamp(40px, 9vh, 90px); }
.work-grid:not(.is-filtered) .work-card:nth-child(8),
.work-grid:not(.is-filtered) .work-card:nth-child(9) { grid-column: span 6; }
/* トップの Works：横に流れるスライダー（大小の段違いはやめ、同じ幅のカードを並べる） */
.work-grid--slider,
.work-grid--slider:not(.is-filtered) {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 30vw, 440px);
  gap: clamp(20px, 2.4vw, 36px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 18px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.work-grid--slider::-webkit-scrollbar { display: none; }
.work-grid--slider .work-card,
.work-grid--slider:not(.is-filtered) .work-card:nth-child(n) { grid-column: auto; margin-top: 0; scroll-snap-align: start; }
.work-grid--slider .work-card .wc-title { font-size: clamp(15px, 1.15vw, 17px); }
.ws-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.ws-foot .more { margin: 0; }
.ws-progress { position: relative; height: 1px; background: var(--line); }
.ws-progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--ink); transition: left 0.3s var(--ease), width 0.3s var(--ease); }
.ws-nav { display: flex; gap: 10px; }
.ws-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background 0.3s, color 0.3s, opacity 0.3s; }
.ws-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ws-btn:hover { background: var(--ink); color: var(--paper); }
.ws-btn:disabled { opacity: 0.3; cursor: default; background: var(--paper); color: var(--ink); }
@media (max-width: 767px) {
  .ws-foot { grid-template-columns: auto minmax(0, 1fr); row-gap: 22px; }
  .ws-progress { grid-column: 1 / -1; }
  .ws-foot .more { justify-self: end; }
}
.work-card.is-out { opacity: 0; transform: translateY(16px) scale(0.97); }
.work-card[hidden] { display: none; }
.work-card a { display: block; text-decoration: none; }
.wc-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-3);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.work-card a:hover .wc-media { box-shadow: 0 34px 60px -34px rgba(31, 42, 68, 0.55); }
.wc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.work-card a:hover .wc-media img { transform: scale(1.06); }
.wc-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.work-card a:hover .wc-glare { opacity: 1; }
.wc-no {
  position: absolute;
  left: 14px; top: 10px;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #fff;
  mix-blend-mode: difference;
}
.wc-meta { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.wc-date { font-family: var(--serif-en); font-size: 15px; letter-spacing: 0.12em; }
.wc-tag { font-size: 12px; color: var(--slate); padding-left: 14px; border-left: 1px solid var(--line); }
.wc-title {
  display: block;
  margin-top: 8px;
  font-family: var(--serif-ja);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.75;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.work-card a:hover .wc-title { background-size: 100% 1px; }
.work-card:nth-child(1) .wc-title, .work-card:nth-child(7) .wc-title { font-size: clamp(17px, 1.5vw, 22px); }

/* ---------- About ---------- */
.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  padding: clamp(120px, 18vh, 200px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.about-body { order: 1; }
.about-art { order: 2; }
/* 写真は背景に薄く敷き、配色の色味をかぶせて、文字側は白に溶かす */
.about-bg { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1600 / 560; max-height: 100%; z-index: -1; overflow: hidden; }
.about-bg img { width: 100%; height: 108%; object-fit: cover; object-position: 50% 40%; filter: saturate(0.85); }
.about-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  mix-blend-mode: color;
  opacity: 0.2;
}
.about-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--paper) 0%, transparent 16%, transparent 58%, var(--paper) 100%),
    linear-gradient(270deg,
      color-mix(in srgb, var(--paper) 20%, transparent) 0%,
      color-mix(in srgb, var(--paper) 45%, transparent) 36%,
      color-mix(in srgb, var(--paper) 93%, transparent) 54%,
      var(--paper) 100%);
}
.about-art {
  position: sticky;
  top: 14vh;
  margin: 24vh 0 0;
}
.about-abstract {
  border: 12px solid var(--paper);
  box-shadow: 0 40px 70px -40px rgba(31, 42, 68, 0.6);
  transform: rotate(-2deg);
  transition: transform 0.8s var(--ease);
}
.about-art:hover .about-abstract { transform: rotate(0deg); }
.about-abstract svg { width: 100%; height: auto; }
/* 写真を基本にし、マウスを乗せる（スマホはタップする）と描き起こしたイラストに切り替える */
.about-photo { position: relative; outline: none; }
.about-photo img { display: block; width: 100%; height: auto; }
.about-illust { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.about-illust svg { display: block; width: 100%; height: 100%; }
.about-photo:hover .about-illust, .about-photo:focus-visible .about-illust, .about-photo.is-illust .about-illust { opacity: 1; }
.about-art figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--slate);
}
.about-title {
  margin: 0 0 36px;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.timeline { list-style: none; margin: 48px 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.t-year { font-family: var(--serif-en); font-size: 26px; line-height: 1.3; }
.t-text { font-size: 14px; padding-top: 4px; }

/* 略歴：島から島へ航路を引き、スクロールに合わせて船が進む。届いた島は色づき、文字がはっきりする */
.voyage { position: relative; margin: 56px 0 52px; }
.voyage-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.vr-base { fill: none; stroke: var(--mist); stroke-width: 1.5; stroke-dasharray: 1 8; stroke-linecap: round; }
.vr-line { fill: none; stroke: var(--sun-deep); stroke-width: 2; stroke-linecap: round; }
.voyage-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(30px, 6vh, 64px); }
.isle { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; }
.isle:nth-child(even) { margin-left: clamp(40px, 14%, 150px); }
.isle-art svg { display: block; width: 160px; height: auto; overflow: visible; transition: transform 0.8s var(--ease); }
.isle-art:hover svg { transform: translateY(-4px); }
.isle-text { display: grid; gap: 2px; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.isle-place { font-family: var(--serif-en); font-size: 11px; letter-spacing: 0.3em; color: var(--slate); }
.isle .t-year { font-size: 30px; }
.isle .t-text { padding-top: 2px; }
.isle-art path, .isle-art rect, .isle-art circle { transition: fill 0.9s var(--ease), opacity 0.9s var(--ease); }
.i-land { fill: #2F3F5E; }
.i-land2 { fill: #8396B4; }
.i-mark { fill: #6F84A5; }
.i-paper { fill: #FFFFFF; }
.i-sea { fill: #B8C7DA; }
.i-sun { fill: var(--sun); }
/* 航路がまだ届いていない島は、霞んだ色にしておく（JS が動くときだけ） */
.voyage.is-live .isle:not(.is-reached) .i-land { fill: #CDD7E4; }
.voyage.is-live .isle:not(.is-reached) .i-land2 { fill: #E3E9F1; }
.voyage.is-live .isle:not(.is-reached) .i-mark { fill: #DCE3EC; }
.voyage.is-live .isle:not(.is-reached) .i-sea { fill: #E6ECF3; }
.voyage.is-live .isle:not(.is-reached) .i-sun { opacity: 0; }
.voyage.is-live .isle:not(.is-reached) .isle-text { opacity: 0.35; transform: translateX(-6px); }
.voyage-boat { position: absolute; left: 0; top: 0; width: 40px; margin: -27px 0 0 -20px; z-index: 2; pointer-events: none; will-change: transform; }
.voyage-boat svg { display: block; width: 40px; height: auto; animation: bob 2.6s ease-in-out infinite; }
.voyage:not(.is-live) .voyage-boat { display: none; }
.vb-hull { fill: var(--ink); }
.vb-mast { stroke: var(--ink); stroke-width: 1.5; }
.vb-sail { fill: var(--sun); }
.vb-sail2 { fill: var(--mist); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }

/* ---------- Notes ---------- */
/* お知らせ：見出しと「すべて見る」を左、日付とタイトルの一覧を右に置く細い欄 */
.news { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding: clamp(56px, 9vh, 96px) var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-head { display: grid; gap: 22px; justify-items: start; }
.news-list { min-height: 120px; }
@media (max-width: 767px) {
  .news { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .news-head { grid-template-columns: auto auto; justify-content: space-between; align-items: center; width: 100%; }
  .news-head .text-link { white-space: nowrap; font-size: 13px; letter-spacing: 0.06em; }
  .news-head .sec-label, .news-head .sec-label * { white-space: nowrap; }
}
.notes { padding: clamp(100px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px); }
.kijimado { width: 100%; border: 0; display: block; }
.blog-list { padding: 0 var(--gutter) clamp(80px, 12vh, 140px); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding-top: clamp(120px, 18vh, 200px);
  background: linear-gradient(var(--paper) 0%, var(--glow-1) 60%, var(--glow-2) 100%);
  text-align: center;
  overflow: hidden;
}
.contact-inner { position: relative; z-index: 2; padding: 0 var(--gutter); }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.contact-title {
  margin: 20px 0 32px;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.contact-body { max-width: 46em; margin: 0 auto 44px; color: var(--slate); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 22px 40px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: none; }
.btn i { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); }
.contact-horizon { width: 100%; height: clamp(180px, 30vh, 320px); margin-top: clamp(60px, 10vh, 120px); }
.contact-sun { will-change: transform; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 10vh, 100px) var(--gutter) 36px;
}
.f-brand { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin: 0 0 18px; color: var(--paper); }
.f-mark svg { width: clamp(64px, 7vw, 96px); height: auto; }
.f-text svg { width: clamp(200px, 26vw, 360px); height: auto; }
.f-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.f-concept { margin: 10px 0 0; font-family: var(--serif-ja); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: 0.16em; }
.f-sub { margin: 10px 0 0; font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.24em; color: var(--mist); }
.f-nav { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: end; gap: clamp(32px, 4vw, 72px); padding-top: 8px; }
.f-label { margin: 0 0 16px; font-family: var(--serif-en); font-size: 12px; letter-spacing: 0.24em; color: var(--mist); }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-col a { font-size: 14px; letter-spacing: 0.06em; text-decoration: none; }
.f-col a:hover, .f-side a:hover, .f-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-side { margin: clamp(48px, 8vh, 72px) 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 12px; color: var(--mist); }
.f-side a { margin-left: 16px; color: var(--paper); text-decoration: none; }
.f-legal { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
@media (max-width: 1023px) {
  .f-top { grid-template-columns: minmax(0, 1fr); }
  .f-nav { justify-content: start; }
}
@media (max-width: 767px) {
  .f-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .f-nav .f-col:nth-child(2) { grid-row: span 2; }
  .f-side a { display: inline-block; margin: 8px 16px 0 0; }
  .f-side a:first-of-type { margin-left: 0; }
}
.f-legal a { font-size: 12px; color: var(--mist); }
.f-copy { margin: 40px 0 0; font-family: var(--serif-en); font-size: 12px; letter-spacing: 0.2em; color: var(--mist); }

/* ---------- 下層ページ（サービス・Works） ---------- */
.is-sub .site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.is-sub .gnav { opacity: 1; pointer-events: auto; }
.sub { padding-top: 72px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(28px, 5vh, 48px); font-size: 12px; color: var(--slate); letter-spacing: 0.08em; }
.crumb a { text-decoration: none; font-family: var(--serif-en); letter-spacing: 0.16em; }
.crumb a:hover { color: var(--ink); }
.crumb-sep { color: var(--mist); }

.sp-hero { padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(60px, 10vh, 110px); }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sp-title { margin: 18px 0 26px; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.35; letter-spacing: 0.08em; white-space: nowrap; }
.sp-lead { max-width: 36em; font-size: 15px; line-height: 2.1; }
.sp-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.sp-points li { position: relative; padding-left: 22px; font-size: 14px; }
.sp-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.sp-hero-art { transform: rotate(2.5deg); }
.poster--static { box-shadow: 0 40px 70px -46px rgba(31, 42, 68, 0.55); }
.poster--static:hover { transform: none; }
.sp-hero--plain { padding-bottom: clamp(24px, 4vh, 40px); }
.sp-hero--plain .sp-note { max-width: 40em; }

.sp-sec { padding: clamp(60px, 10vh, 110px) var(--gutter); }
.sp-head { margin-bottom: clamp(28px, 5vh, 48px); }
.sp-note { font-size: 13px; color: var(--slate); margin: 0 0 28px; }

.pain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 960px; }
.pain-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--serif-ja); font-size: clamp(16px, 1.4vw, 19px); }
.pl-no { font-family: var(--serif-en); font-size: 15px; color: var(--sun-deep); letter-spacing: 0.1em; }

.sp-values { background: var(--paper-2); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start; }
.value-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.value-card { position: relative; padding: 34px 28px 30px; background: var(--paper); border-top: 3px solid var(--ink); }
.value-card.v2, .value-card.v4 { margin-top: clamp(30px, 6vh, 64px); }
.vc-no, .cc-no { font-family: var(--serif-en); font-size: 40px; line-height: 1; color: var(--sun); }
.value-card h3, .case-card h3 { margin: 16px 0 12px; font-family: var(--serif-ja); font-size: 19px; font-weight: 600; letter-spacing: 0.06em; }
.value-card p, .case-card p { margin: 0; font-size: 14px; }

.docs-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(32px, 5vw, 72px); padding: clamp(32px, 4vw, 52px); border: 3px solid var(--ink); position: relative; max-width: 1080px; background: var(--paper); }
.docs-box::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); border: 1px solid var(--slate); z-index: -1; }
.docs-box h3 { grid-column: 1 / -1; margin: 0 0 8px; font-family: var(--serif-ja); font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: 0.06em; }
.docs-box p { margin: 0; }
.docs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docs-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.case-card { padding: 30px 28px; border: 1px solid var(--line); background: var(--paper); }

.scope-box { max-width: 880px; padding: clamp(28px, 4vw, 44px); background: var(--paper-2); border-left: 4px solid var(--sun); }
.scope-box p { margin: 0; }

.flow-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.flow-list li { position: relative; padding: 26px 24px 26px 0; border-top: 1px solid var(--ink); }
.flow-list li::before { content: ""; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--sun); }
.fl-no { display: block; margin-top: 8px; font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.2em; color: var(--slate); text-transform: uppercase; }
.flow-list h3 { margin: 6px 0 8px; font-family: var(--serif-ja); font-size: 18px; font-weight: 600; }
.flow-list p { margin: 0; font-size: 13.5px; }

.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.voice { margin: 0; padding: 32px 28px 26px; background: var(--paper-2); position: relative; }
.voice::before { content: ""; position: absolute; left: 28px; top: -10px; width: 20px; height: 20px; background: var(--sun); clip-path: polygon(0 0, 100% 0, 0 100%); }
.voice blockquote { margin: 0 0 16px; font-family: var(--serif-ja); font-size: 15px; line-height: 2; }
.voice figcaption { font-size: 12px; color: var(--slate); }

.more-box { max-width: 880px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--ink); }
.more-box h3 { margin: 0 0 10px; font-family: var(--serif-ja); font-size: 20px; font-weight: 600; }

.contact--sub { padding-top: clamp(90px, 14vh, 150px); }
.works--index { padding-top: 0; }
.works-head { margin-bottom: 18px; grid-template-columns: auto minmax(0, 1fr); }

/* Works の個別ページ */
.w-article { padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(60px, 10vh, 110px); }
.w-head, .w-eyecatch, .w-body, .w-related, .w-pager { max-width: 820px; margin-left: auto; margin-right: auto; }
.w-article .crumb { max-width: 820px; margin-left: auto; margin-right: auto; }
.w-head .wc-meta { margin: 0 0 14px; }
.w-title { margin: 0 0 clamp(28px, 5vh, 44px); font-family: var(--serif-ja); font-weight: 600; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.6; letter-spacing: 0.05em; }
.w-eyecatch { margin-top: 0; margin-bottom: clamp(36px, 6vh, 60px); box-shadow: 0 40px 70px -50px rgba(31, 42, 68, 0.6); }
.w-eyecatch img { width: 100%; height: auto; }
.w-body { font-size: 15px; line-height: 2.05; }
.w-body h2 { margin: 2.6em 0 1em; padding-bottom: 12px; font-family: var(--serif-ja); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: 0.05em; border-bottom: 1px solid var(--ink); position: relative; }
.w-body h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--sun); }
.w-body h3 { margin: 2em 0 0.8em; font-family: var(--serif-ja); font-size: 18px; font-weight: 600; padding-left: 14px; border-left: 3px solid var(--sun); }
.w-body a { color: var(--ink); text-decoration-color: var(--sun); text-underline-offset: 4px; }
.w-body figure { margin: 2em 0; }
.w-body img { width: 100%; height: auto; }
.w-body figcaption { margin-top: 8px; font-size: 12px; color: var(--slate); }
.w-body ul, .w-body ol { padding-left: 1.4em; }
.w-body li { margin: 0.3em 0; }
.w-body blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--paper-2); border-left: 3px solid var(--mist); }
.w-body blockquote p:last-child { margin-bottom: 0; }
.w-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.w-body th, .w-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.w-say { padding: 14px 18px; background: var(--paper-2); }
.w-ref a { display: inline-flex; gap: 10px; font-size: 14px; }
.w-ref a::before { content: "参考"; padding: 0 8px; border: 1px solid var(--ink); font-size: 11px; line-height: 1.8; }
.w-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 2em 0; }
.w-gallery img { aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); }
/* スマホ画面のスクリーンショット用（縦長のまま切らずに並べる） */
.w-gallery--phone { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.w-gallery--phone img { aspect-ratio: auto; object-fit: contain; border-radius: 14px; }
/* 下書きページ（status: draft）だけに出る帯と、書き込み待ちの枠 */
.w-draft { max-width: 820px; margin: 0 auto 18px; padding: 10px 14px; background: var(--paper-3); border-left: 3px solid var(--sun); font-size: 13px; }
.w-todo { margin: 1.6em 0; padding: 14px 18px; border: 1.5px dashed var(--line); font-size: 14px; line-height: 1.9; color: var(--slate); }
.w-todo::before { content: "ここに入れる"; display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.12em; color: var(--ink); }
.w-todo ul { margin: 0.4em 0 0; }
.w-role { margin: 0 0 1.2em; font-size: 15px; letter-spacing: 0.06em; }
.w-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 2em 0 0; border-top: 1px solid var(--line); }
.w-facts div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.w-facts dt { font-family: var(--serif-ja); font-weight: 600; font-size: 14px; color: var(--slate); }
.w-facts dd { margin: 0; font-size: 14px; }
.w-facts .is-wide { grid-column: 1 / -1; }
.w-body .w-facts-list { margin: 0; padding: 0; list-style: none; }
.w-body .w-facts-list li { position: relative; margin: 0 0 4px; padding-left: 16px; }
.w-facts-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; background: var(--sun); transform: rotate(45deg); }
@media (max-width: 767px) { .w-facts { grid-template-columns: minmax(0, 1fr); } .w-facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* 実績ページ: 導入前と導入後の比較 */
.w-ba { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 12px; align-items: center; margin: 2.4em 0 0; }
.w-ba-box { align-self: stretch; padding: 20px 22px; background: var(--paper-2); }
.w-ba-box--after { background: var(--glow-2); }
.w-body .w-ba-label { margin: 0 0 10px; font-family: var(--serif-ja); font-size: 16px; font-weight: 600; }
.w-body .w-ba .w-facts-list { font-size: 14px; word-break: auto-phrase; }
.w-ba-arrow { display: flex; justify-content: center; }
.w-ba-arrow svg { width: 28px; height: 28px; fill: none; stroke: var(--sun-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) { .w-ba { grid-template-columns: minmax(0, 1fr); } .w-ba-arrow svg { transform: rotate(90deg); } }
/* About: 暮らしの写真のスライダー（横にスクロール、ボタンと点で送る） */
.ph-slider { margin: 2.4em 0 0; }
.w-body .ph-track { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.ph-track::-webkit-scrollbar { display: none; }
.w-body .ph-slide { flex: 0 0 min(78%, 560px); margin: 0; scroll-snap-align: start; }
.w-body .ph-slide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.w-body .ph-cap { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.08em; color: var(--slate); }
.ph-nav { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ph-dots { display: flex; gap: 8px; }
.ph-dots span { width: 22px; height: 2px; background: var(--line); transition: background 0.4s var(--ease), width 0.4s var(--ease); }
.ph-dots span.is-on { width: 40px; background: var(--ink); }
/* 実績ページ: スマホ画面のスクリーンショットのスライダー（縦長のまま切らずに並べる） */
.w-body .ph-slider--phone .ph-slide { flex-basis: min(62%, 240px); }
.w-body .ph-slider--phone .ph-slide img { aspect-ratio: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; }
/* About: 経歴のタイムライン */
.w-body .tl { position: relative; margin: 1.6em 0 0; padding: 0; list-style: none; }
.tl::before { content: ""; position: absolute; left: 92px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.w-body .tl-item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 40px; margin: 0 0 28px; }
.tl-item::before { content: ""; position: absolute; left: 87px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--sun-deep); }
.tl-item:last-child::before { background: var(--sun); border-color: var(--sun); }
.w-body .tl-year { margin: 0; font-family: var(--serif-en); font-size: 28px; line-height: 1.2; letter-spacing: 0.04em; text-align: right; color: var(--ink); }
.tl-body { padding: 18px 22px; background: var(--paper-2); }
.w-body .tl-body p { margin: 0 0 0.6em; font-size: 14px; line-height: 1.95; }
.w-body .tl-body p:last-child { margin-bottom: 0; }
.w-body .tl-title { font-family: var(--serif-ja); font-weight: 600; font-size: 16px !important; letter-spacing: 0.04em; }
.w-body .tl-body ul { margin: 0.4em 0 0; font-size: 14px; }
@media (max-width: 767px) {
  .tl::before { left: 5px; }
  .w-body .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 26px; }
  .tl-item::before { left: 0; top: 8px; }
  .w-body .tl-year { text-align: left; font-size: 22px; }
  .tl-body { padding: 14px 16px; }
}
.w-cta { margin: 2em 0; }
.w-body .w-cta .btn { color: var(--ink); text-decoration: none; }
.w-body .w-cta .btn:hover { color: var(--paper); }
.w-form { margin: 2em 0; }
.w-form iframe { display: block; width: 100%; height: 2000px; border: 0; }
/* お問い合わせの冒頭（顔写真＋メッセージ） */
.ct-hello { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin: 0 0 clamp(40px, 7vh, 72px); }
.w-body .ct-photo { position: relative; margin: 0; }
.ct-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--sun); z-index: 0; }
.w-body .ct-photo img { position: relative; z-index: 1; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 30%; }
.ct-msg p { margin: 0 0 1em; }
.ct-lead { font-family: var(--serif-ja); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.6; letter-spacing: 0.06em; }
.ct-sign { font-family: var(--serif-ja); font-size: 14px; letter-spacing: 0.12em; color: var(--slate); }
.ct-msg .w-cta { margin: 1.6em 0 0; }
.ct-form-title { scroll-margin-top: 90px; }
/* お問い合わせ: ご相談からの流れ（島を渡る4ステップ） */
.cf { position: relative; margin: 0 0 clamp(48px, 8vh, 80px); }
.w-body .cf-steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.w-body .cf-step { margin: 0; text-align: center; }
.cf-art svg { display: block; width: min(150px, 100%); height: auto; margin: 0 auto 10px; overflow: visible; transition: transform 0.8s var(--ease); }
.cf-step:hover .cf-art svg { transform: translateY(-4px); }
.cf-step p { margin: 0; }
.cf-no { font-family: var(--serif-en); font-size: 12px; letter-spacing: 0.24em; color: var(--sun-deep); }
.cf-head { margin: 2px 0 8px !important; font-family: var(--serif-ja); font-weight: 600; font-size: 17px; letter-spacing: 0.05em; }
.cf-text { font-size: 13px; line-height: 1.9; color: var(--slate); text-align: left; }
.cf-route { position: absolute; z-index: 0; left: 0; top: 46px; width: 100%; height: 50px; overflow: visible; }
.cf-route path { fill: none; stroke: var(--mist); stroke-width: 1.6; stroke-dasharray: 1 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cf-boat { position: absolute; z-index: 2; left: 23%; top: 30px; width: 38px; }
.cf-boat svg { display: block; width: 100%; height: auto; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@media (max-width: 767px) {
  .ct-hello { grid-template-columns: minmax(0, 1fr); }
  .w-body .ct-photo { width: min(240px, 70%); margin: 0 auto 8px; }
  .w-body .cf-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .w-body .cf-step { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; align-items: center; text-align: left; }
  .cf-art { grid-row: 1 / span 3; }
  .cf-art svg { width: 104px; margin: 0; }
  .cf-route { left: 52px; top: 30px; width: 2px; height: calc(100% - 60px); }
  .cf-route path { display: none; }
  .cf-route { border-left: 2px dotted var(--mist); }
  .cf-boat { left: 34px; top: calc(25% - 4px); width: 32px; }
}
.w-embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; }
.w-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-related { margin-top: clamp(48px, 8vh, 80px); padding: 26px 28px; background: var(--paper-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.w-related .sec-label { margin: 0; }
.w-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ink); }
.w-pager a { display: grid; gap: 6px; text-decoration: none; }
.wp-next { text-align: right; }
.wp-dir { font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.2em; color: var(--slate); text-transform: uppercase; }
.wp-title { font-family: var(--serif-ja); font-size: 14px; line-height: 1.7; }
.w-pager a:hover .wp-title { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }

/* ---------- サービスページの挿絵・note とは・料金プラン・キジマド ---------- */
.spot { display: block; width: 100%; height: auto; overflow: visible; }
.si-bg { fill: var(--sea); }
.si-sea { fill: none; stroke: var(--mist); stroke-width: 1.6; stroke-linecap: round; }
.si-ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.si-pp { fill: #FFFFFF; }
.si-mist { fill: var(--paper-3, #ECF0F6); }
.si-sun { fill: var(--sun); }
.si-sun-ln { fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; }
.si-gear { fill: none; stroke: var(--ink); stroke-width: 6; stroke-dasharray: 4.4 4.4; }
/* こんなあなたに: 淡い藍の地に、悩みの吹き出しを並べる。最後に「お手伝いします」の一言でバリューへつなぐ（2026-10-23 小林さん指示） */
.sp-pains:has(.pain-cards) { background: #EEF2F8; }
.pain-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
.pain-cards li { position: relative; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 12px; padding: 30px 26px 30px; background: #FFFFFF; border-radius: 22px; box-shadow: 0 24px 40px -30px rgba(31, 42, 68, 0.5); text-align: center; }
.pain-cards li::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 28px; height: 28px; background: #FFFFFF; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 6px 0; }
.pain-cards .pl-no { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--sun); font-family: "Inter", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0; }
.pain-cards .pc-art { display: block; width: min(140px, 66%); margin: 0 auto; }
.pc-text { position: relative; z-index: 1; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.85; letter-spacing: 0.02em; }
.sp-pains:has(.pain-cards)::after { content: "そのお悩み、まとめてお手伝いします"; display: block; width: fit-content; margin: clamp(44px, 7vh, 64px) auto 0; padding: 12px 28px 12px 28px; background: var(--ink); color: #FFFFFF; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: 0.08em; clip-path: polygon(0 0, 100% 0, 100% 78%, calc(50% + 12px) 78%, 50% 100%, calc(50% - 12px) 78%, 0 78%); padding-bottom: 24px; }
.value-card .spot { width: min(132px, 60%); margin: -6px 0 6px; }
.value-note { grid-column: 1 / -1; margin: 8px 0 0; }
.intro-box, .tool-box { max-width: 880px; padding: clamp(28px, 4vw, 48px); background: var(--paper); border-left: 4px solid var(--sun); }
.intro-title { margin: 0 0 16px; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.6; letter-spacing: 0.05em; }
.intro-box p, .tool-box p { margin: 0 0 1em; font-size: 15px; line-height: 2; }
.intro-points { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 8px; }
.intro-points li { position: relative; padding-left: 18px; font-size: 14px; }
.intro-points li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; background: var(--sun); transform: rotate(45deg); }
.tool-demo-note { margin: clamp(28px, 5vh, 44px) 0 12px; }
.tool-demo { display: block; width: 100%; border: 0; }
@media (max-width: 1023px) {
  .pain-cards { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pain-cards li { grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto; align-items: center; justify-items: start; column-gap: 16px; padding: 22px 20px; text-align: left; }
  .pain-cards li::after { left: 46px; }
  .pain-cards .pl-no { left: 20px; transform: none; }
  .pain-cards .pc-art { grid-row: 1; width: 92px; }
  .sp-pains:has(.pain-cards)::after { font-size: 14px; letter-spacing: 0.04em; padding: 10px 18px 22px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- AI活用・内製化支援: 役割分担の図・作った仕組みの例・研修・内製化支援 ---------- */
.rl-case { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--sun); font-size: 14px; }
.rl-case-tag { padding: 2px 10px; background: var(--ink); color: #FFFFFF; font-size: 12px; letter-spacing: 0.1em; }
.rl { display: grid; grid-template-columns: 120px repeat(3, minmax(0, 1fr)); gap: 8px; }
.rl-corner { min-height: 1px; }
.rl-step { padding: 14px 16px; background: var(--ink); color: #FFFFFF; }
.rl-no { display: block; font-family: var(--serif-en); font-size: 12px; letter-spacing: 0.2em; color: var(--sun); }
.rl-title { display: block; margin-top: 4px; font-family: var(--serif-ja); font-size: 15px; font-weight: 600; line-height: 1.6; }
.rl-lane { display: flex; align-items: center; padding: 10px 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; background: var(--paper-3, #ECF0F6); }
.rl-lane--task { background: transparent; color: var(--slate); }
.rl-lane--both { background: color-mix(in srgb, var(--sun) 30%, #FFFFFF); }
.rl-lane--me { background: var(--ink); color: #FFFFFF; font-family: var(--serif-en); letter-spacing: 0.08em; font-size: 12px; }
.rl-cell { padding: 12px 14px; background: #FFFFFF; border: 1px solid var(--line); font-size: 13px; line-height: 1.8; text-wrap: pretty; }
.rl-cell.is-both { background: color-mix(in srgb, var(--sun) 12%, #FFFFFF); border-color: color-mix(in srgb, var(--sun) 50%, transparent); }
.rl-task { background: var(--paper); }
.rl-flow { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rl-flow li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 10px; background: #FFFFFF; border: 1px solid var(--line); font-size: 12.5px; }
.rl-flow li + li::before { content: ""; position: absolute; left: 16px; top: -7px; width: 1px; height: 6px; background: var(--mist); }
.rl-flow li.is-heavy::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-deep); flex: none; }
.rl-flow em { font-style: normal; font-size: 11px; padding: 1px 7px; flex: none; }
.rl-flow .by-human { border-left: 3px solid var(--ink); }
.rl-flow .by-human em, .rl-legend .by-human { background: var(--ink); color: #FFFFFF; }
.rl-flow .by-ai { border-left: 3px solid var(--sun); }
.rl-flow .by-ai em, .rl-legend .by-ai { background: var(--sun); color: var(--ink); }
.rl-flow .by-tool { border-left: 3px solid var(--mist); }
.rl-flow .by-tool em, .rl-legend .by-tool { background: var(--sea); color: var(--ink); }
.rl-hint, .rl-legend { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--slate); }
.rl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-deep); }
.rl-legend span { padding: 1px 8px; font-size: 11px; }
.rl-kit { padding: 12px; background: #FFFFFF; border: 1px dashed var(--mist); }
.rl-kit-title { margin: 0 0 8px; font-size: 12px; color: var(--slate); }
.rl-chain { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rl-chain span { padding: 4px 8px; background: var(--sea); font-size: 12px; }
.rl-chain span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px -2px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); vertical-align: middle; }
.pt-box { padding: clamp(26px, 3.6vw, 44px); background: var(--paper); }
.pt-title { margin: 0 0 12px; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: 0.05em; line-height: 1.6; }
.pt-box > p, .tr-text p, .scope-box p { margin: 0 0 1em; font-size: 14.5px; line-height: 2; }
.pt-flow { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.pt-flow li { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 14px 18px; background: #FFFFFF; border: 1px solid var(--line); }
.pt-flow li + li::before { content: ""; position: absolute; left: -15px; top: 52px; width: 10px; height: 10px; border-top: 2px solid var(--sun-deep); border-right: 2px solid var(--sun-deep); transform: rotate(45deg); }
.pt-flow svg { display: block; width: min(120px, 80%); height: auto; margin: 0 auto 6px; overflow: visible; }
.pt-no { font-family: var(--serif-en); font-size: 13px; color: var(--sun-deep); letter-spacing: 0.1em; }
.pt-head { font-family: var(--serif-ja); font-weight: 600; font-size: 15px; line-height: 1.6; }
.pt-text { font-size: 12.5px; line-height: 1.8; color: var(--slate); }
.pt-roles { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px !important; }
.pt-roles b { margin-right: 10px; padding: 2px 10px; background: var(--ink); color: #FFFFFF; font-weight: 500; font-size: 12px; }
.tr-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.tr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.tr-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.tr-strip figure { margin: 0; }
.tr-strip img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tr-strip figcaption { margin-top: 6px; font-size: 12px; color: var(--slate); }
.pt-case { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; font-family: var(--serif-ja); font-weight: 600; font-size: 15px; color: var(--slate); }
.pt-case-no { padding: 3px 10px; background: var(--ink); color: #FFFFFF; font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; }
.pt-shots { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.pt-shots li { display: grid; gap: 4px; }
.pt-shots li:nth-child(2) { margin-top: -18px; }
.pt-shot { margin: 0 0 10px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(31, 42, 68, 0.55); }
.pt-shot.is-key { outline: 3px solid var(--sun); outline-offset: -3px; }
.pt-bar { display: flex; gap: 5px; padding: 7px 10px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pt-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); }
.pt-shot img { display: block; width: 100%; height: auto; }
/* CASE 02 以降（2026-12-01）: ケースの間をあけ、スマホの縦長の画面は幅を抑えて並べる */
.pt-box--next { margin-top: clamp(56px, 7vw, 96px); }
.pt-shots--phone { max-width: 820px; margin-inline: auto; }
.pt-shots--phone .pt-shot { border-radius: 14px; overflow: hidden; }
.pt-note { margin: 14px 0 0; font-size: 12px; color: var(--slate); }
.pt-more { margin: 18px 0 0; }
.sp-scope .scope-box { max-width: none; }
.sp-scope .scope-box p { max-width: 50em; }
.cmp { margin-top: 28px; overflow-x: auto; }
.cmp-table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: collapse; font-size: 14px; background: #FFFFFF; }
.cmp-table caption { caption-side: top; text-align: left; margin-bottom: 10px; font-family: var(--serif-ja); font-weight: 600; font-size: 16px; }
.cmp-table th, .cmp-table td { padding: 16px 24px; border: 1px solid var(--line); text-align: left; vertical-align: middle; line-height: 1.8; }
.cmp-table thead th:first-child { width: 132px; }
.cmp-table thead th { background: var(--paper-3, #ECF0F6); font-weight: 600; font-size: 13px; }
.cmp-table thead th.is-me { background: var(--ink); color: #FFFFFF; }
.cmp-table tbody th { font-weight: 600; font-size: 13px; color: var(--slate); white-space: nowrap; }
.cmp-table td.is-me { background: color-mix(in srgb, var(--sun) 10%, #FFFFFF); font-weight: 500; }
@media (max-width: 760px) {
  .cmp-table { min-width: 560px; font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 12px 14px; }
  .cmp-table thead th:first-child { width: 92px; }
}
.resp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.resp-col { padding: 18px 22px; background: var(--paper); border-top: 3px solid var(--mist); }
.resp-col.is-me { border-top-color: var(--ink); }
.resp-who { margin: 0 0 8px; font-family: var(--serif-ja); font-weight: 600; }
.resp-col ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.9; }
@media (max-width: 1023px) {
  .rl { grid-template-columns: minmax(0, 1fr); }
  .rl-corner, .rl-lane { display: none; }
  .rl-step.s1 { order: 10; } .rl-cell.s1 { order: 11; }
  .rl-step.s2 { order: 20; } .rl-cell.s2 { order: 21; }
  .rl-step.s3 { order: 30; } .rl-cell.s3 { order: 31; }
  .rl-step:not(.s1) { margin-top: 18px; }
  .rl-cell:not(.rl-task)::before { content: attr(data-lane); display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: 0.08em; color: var(--slate); }
  .pt-shots { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .pt-shots li:nth-child(2) { margin-top: 0; }
  .tr-cols, .resp { grid-template-columns: minmax(0, 1fr); }
  .tr-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- サービスページ: バリューの左右振り分けの段組み ---------- */
.value-rows { display: grid; gap: clamp(36px, 6vh, 64px); max-width: 1080px; margin: 0 auto; }
.value-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.value-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.value-row:nth-child(even) .vr-art { order: 2; }
.value-row:nth-child(even) .vr-text { text-align: right; }
.value-row:nth-child(2) { margin-left: clamp(0px, 4vw, 60px); }
.vr-art { position: relative; display: grid; place-items: center; padding: 10px; }
.vr-art .spot { position: relative; z-index: 1; width: min(220px, 100%); }
.vr-big { position: absolute; z-index: 0; left: 50%; top: 50%; transform: translate(-50%, -54%); font-family: var(--serif-en); font-size: clamp(110px, 14vw, 190px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--mist); letter-spacing: -0.02em; }
.vr-text { padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--ink); }
.vr-text h3 { margin: 10px 0 12px; font-family: var(--serif-ja); font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: 0.05em; line-height: 1.6; }
.vr-text p { margin: 0; font-size: 14.5px; line-height: 2; }
.value-row:nth-child(even) .vr-text p { text-align: left; }
.value-note { margin-top: 28px; }
@media (max-width: 767px) {
  .value-row, .value-row:nth-child(even) { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: start; }
  .value-row:nth-child(even) .vr-art { order: 0; }
  .value-row:nth-child(even) .vr-text { text-align: left; }
  .value-row:nth-child(2) { margin-left: 0; }
  .vr-big { font-size: 80px; }
}

/* ---------- ホワイトペーパーとは（段階の図） ---------- */
.wi-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wi-text p { margin: 0 0 1em; font-size: 15px; line-height: 2; }
.wi-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wi-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 16px; align-items: center; padding: 16px 22px; background: var(--ink); color: #FFFFFF; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 18px 100%); }
.wi-stage.s2 { margin: 0 6%; background: #2F3F5E; }
.wi-stage.s3 { margin: 0 12%; background: #44567A; }
.wi-code { grid-row: 1 / span 2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--sun); }
.wi-name { font-family: var(--serif-ja); font-weight: 600; font-size: 15px; }
.wi-docs { grid-column: 2; font-size: 12px; color: #C9D3E2; }
.wi-role { grid-row: 1 / span 2; grid-column: 3; padding: 4px 10px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* ---------- 資料の制作: 散らしたスライド（押すと大きく表示） ---------- */
.docs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(170px, 18vw, 230px), 1fr)); gap: 18px 14px; margin-top: clamp(48px, 8vh, 80px); padding: 10px 0 20px; }
.dg-item { position: relative; width: 100%; padding: 0; border: 0; background: #FFFFFF; cursor: zoom-in; box-shadow: 0 18px 32px -22px rgba(31, 42, 68, 0.6); transform: translateY(var(--dy, 0)) rotate(var(--dr, 0deg)); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
/* ホワイトペーパーは A4 横（16:9 より縦長）なので、題名が切れないよう上に合わせて切り取る */
.dg-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; border: 5px solid #FFFFFF; }
.dg-item:nth-child(7n + 1) { --dr: -4deg; --dy: 6px; }
.dg-item:nth-child(7n + 2) { --dr: 3deg; --dy: -8px; }
.dg-item:nth-child(7n + 3) { --dr: -1.5deg; --dy: 14px; }
.dg-item:nth-child(7n + 4) { --dr: 4.5deg; --dy: 0px; }
.dg-item:nth-child(7n + 5) { --dr: -3deg; --dy: -6px; }
.dg-item:nth-child(7n + 6) { --dr: 2deg; --dy: 10px; }
.dg-item:nth-child(7n + 7) { --dr: -5deg; --dy: -2px; }
.dg-item:hover, .dg-item:focus-visible { z-index: 5; transform: translateY(calc(var(--dy, 0px) - 6px)) rotate(0deg) scale(1.18); box-shadow: 0 36px 60px -30px rgba(31, 42, 68, 0.7); }
.dg-box { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(20, 28, 46, 0.82); }
.dg-box[hidden] { display: none; }
.dg-box figure { margin: 0; max-width: min(1100px, 100%); }
.dg-box img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #FFFFFF; }
.dg-box figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 12px; color: #FFFFFF; font-size: 14px; }
.dg-box figcaption a { color: var(--sun); }
.dg-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #FFFFFF; font-size: 13px; cursor: pointer; }
@media (max-width: 767px) {
  .docs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .dg-item:hover, .dg-item:focus-visible { transform: rotate(0deg) scale(1.04); }
}

/* ---------- ホワイトペーパー制作: 得意な分野（wp_field.html） ---------- */
.fd-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fd-lead h3 { margin: 0 0 18px; font-family: var(--serif-ja); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: 0.06em; line-height: 1.5; }
/* 見出しは「IT・DX の分野を／得意としています」の切れ目でだけ折り返す（スマホで1文字だけ次の行に落ちないように） */
.fd-lead h3 span { display: inline-block; }
.fd-lead p { margin: 0; font-size: 15px; line-height: 2.05; text-wrap: pretty; }
/* 自己紹介（得意な分野の左の列。案内カードの上） */
.fd-profile { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.fd-pf-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.fd-pf-head img { flex: 0 0 auto; width: 104px; height: 104px; object-fit: cover; border: 4px solid var(--paper); box-shadow: 6px 6px 0 var(--sun); }
.fd-pf-name { display: grid; gap: 2px; margin: 0; }
.fd-pf-en { font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.18em; color: var(--sun-deep); }
.fd-pf-name strong { font-family: var(--serif-ja); font-size: 22px; font-weight: 600; letter-spacing: 0.12em; }
.fd-pf-role { font-size: 12.5px; color: var(--slate); }
.fd-profile > p { margin: 0 0 12px; font-size: 14px; line-height: 1.95; text-wrap: pretty; }
.fd-pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.fd-pf-tags li { padding: 4px 10px; background: var(--ink); color: #FFFFFF; font-size: 12px; line-height: 1.6; }
.fd-card { position: relative; display: grid; gap: 6px; margin-top: 32px; padding: 24px 26px 22px; background: var(--ink); color: #FFFFFF; text-decoration: none; box-shadow: 8px 8px 0 var(--sun); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.fd-card:hover, .fd-card:focus-visible { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--sun); }
.fd-card-en { font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.18em; color: var(--sun); }
.fd-card-title { font-family: var(--serif-ja); font-size: 19px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.5; }
.fd-card-body { font-size: 13.5px; line-height: 1.8; color: #D5DCE6; }
.fd-card-more { justify-self: end; margin-top: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--sun); font-size: 13px; letter-spacing: 0.08em; }
.fd-card-more::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-1px) rotate(45deg); }
.fd-note { margin: 0 0 22px; font-size: 13px; line-height: 1.8; color: var(--slate); }
.fd-group + .fd-group { margin-top: 20px; }
.fd-group-name { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--sun); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.fd-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fd-list li { padding: 5px 11px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
@media (max-width: 1023px) {
  .fd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .fd-list { gap: 6px; }
  .fd-list li { padding: 4px 9px; font-size: 12.5px; }
}

/* ---------- お客さまの声: 引用元へのリンク ---------- */
.voice-src { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }
.voice figcaption { display: grid; justify-items: start; }

/* ---------- 料金プラン（濃い背景に、中央のプランを持ち上げて置く） ---------- */
.sp-plans { position: relative; background: var(--ink); color: #FFFFFF; overflow: hidden; }
.sp-plans::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.sp-plans > * { position: relative; }
.sp-plans .sec-label, .sp-plans .sp-note, .sp-plans .text-link { color: #FFFFFF; }
.sp-plans .sec-label .en { color: var(--sun); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: center; max-width: 1120px; margin: 24px auto 0; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 30px; background: #FFFFFF; color: var(--ink); }
.plan-card:not(.is-pick) { transform: translateY(18px); }
.plan-card.is-pick { padding: 44px 32px 40px; background: var(--paper); outline: 3px solid var(--sun); outline-offset: -3px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6); }
.plan-badge { position: absolute; top: 0; right: 24px; transform: translateY(-50%); padding: 5px 16px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.plan-code { margin: 0 0 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--sun-deep); }
.plan-card h3 { margin: 0 0 4px; font-family: var(--serif-ja); font-size: 19px; font-weight: 600; letter-spacing: 0.06em; }
.plan-for { margin: 0 0 16px; font-size: 13px; color: var(--slate); }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pp-num { font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 700; font-size: clamp(34px, 3.2vw, 46px); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.is-pick .pp-num { font-size: clamp(40px, 3.8vw, 54px); }
.pp-unit { font-size: 15px; font-weight: 500; }
.pp-ask { font-family: var(--serif-ja); font-weight: 600; font-size: 30px; letter-spacing: 0.1em; }
.plan-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.plan-list li { position: relative; padding-left: 16px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; background: var(--sun); transform: rotate(45deg); }
.plan-notes { margin: 44px auto 0; padding: 0; max-width: 1120px; list-style: none; font-size: 13px; color: #C9D3E2; display: grid; gap: 4px; }
.sp-plans .more { max-width: 1120px; margin: 16px auto 0; }
@media (max-width: 1023px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .plan-card:not(.is-pick) { transform: none; }
  .wi-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 漏斗図: 図の幅が狭いとき（スマホ、PC の2段組み）は「段階の番号・役割」を上の行に、段階名と資料を下に全幅で並べる（3列のままだと中央の文字列が潰れる） */
.wi-funnel { container-type: inline-size; }
@container (max-width: 639px) {
  .wi-stage { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; gap: 6px 12px; padding: 14px 20px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 10px 100%); }
  .wi-stage.s2 { margin: 0 4%; }
  .wi-stage.s3 { margin: 0 8%; }
  .wi-code { grid-row: 1; grid-column: 1; }
  .wi-role { grid-row: 1; grid-column: 2; }
  .wi-name { grid-row: 2; grid-column: 1 / -1; line-height: 1.6; }
  .wi-docs { grid-row: 3; grid-column: 1 / -1; line-height: 1.7; text-wrap: pretty; }
}

/* ---------- note運用代行: 立ち上げから運用までのプロセス図（お手伝いできることの続き） ---------- */
.sp-process { background: var(--paper-2); padding-top: 0; }
.pc-flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pc-phase { display: grid; grid-template-rows: auto 1fr; }
.pc-head { position: relative; margin: 0; padding: 18px 34px 18px 26px; background: var(--ink); color: #FFFFFF; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(16px, 1.5vw, 19px); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.pc-phase:nth-child(2) .pc-head { background: #2F3F5E; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); padding-left: 40px; }
.pc-phase:nth-child(3) .pc-head { background: #44567A; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%); padding-left: 40px; }
.pc-no { display: block; font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--sun); }
.pc-tasks { list-style: none; margin: 10px 14px 0 0; padding: 18px 20px; background: #FFFFFF; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pc-tasks li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.pc-tasks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
@media (max-width: 1023px) {
  .pc-flow { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 560px; }
  .pc-head, .pc-phase:nth-child(2) .pc-head, .pc-phase:nth-child(3) .pc-head { clip-path: none; padding: 14px 20px; }
  .pc-tasks { margin-right: 0; }
}

/* ---------- note運用代行: おすすめの型 ---------- */
.ty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: 8px; }
.ty { position: relative; padding: 28px 26px 24px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--sun); }
.ty:nth-child(2) { border-top-color: var(--ink); }
.ty:nth-child(3) { border-top-color: #8396B4; }
.ty-tag { margin: 0 0 6px; font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--sun-deep); }
.ty h3 { margin: 0 0 8px; font-family: var(--serif-ja); font-size: 20px; font-weight: 600; letter-spacing: 0.05em; }
.ty-goal { margin: 0 0 16px; font-size: 14px; line-height: 1.8; }
.ty-spec { margin: 0 0 16px; border-top: 1px solid var(--line); }
.ty-spec div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ty-spec dt { color: var(--slate); }
.ty-spec dd { margin: 0; }
.ty-pack { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.ty-pack::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--sun); transform: rotate(45deg); vertical-align: 1px; }
/* 記事制作: 執筆テーマの例（writing_themes.html） */
.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); margin-top: 8px; }
.th { padding: 24px 24px 20px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.th:nth-child(3n+2) { border-top-color: var(--sun); }
.th:nth-child(3n) { border-top-color: #8396B4; }
.th-tag { margin: 0 0 6px; font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--sun-deep); }
.th h3 { margin: 0 0 12px; font-family: var(--serif-ja); font-size: 18px; font-weight: 600; letter-spacing: 0.05em; }
.th-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.th-list li { position: relative; padding: 9px 0 9px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; text-wrap: pretty; }
.th-list li::before { content: ""; position: absolute; left: 1px; top: 1.05em; width: 6px; height: 6px; background: var(--sun); transform: rotate(45deg); }
@media (max-width: 1023px) { .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* スマホでは6枚を縦に積むと長くなるため、横に送るスライダーにする（事例カードと同じ形） */
@media (max-width: 639px) {
  .th-grid { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 8px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 18px; scrollbar-width: none; }
  .th-grid::-webkit-scrollbar { display: none; }
  .th { flex: 0 0 84%; scroll-snap-align: center; }
}

/* ---------- note運用代行: 料金表（3つの基本プラン、用途別パック、記事ごとの料金） ---------- */
.sp-plans .sec-label .ja { color: #FFFFFF; opacity: 0.9; }
.pr-title { max-width: 1120px; margin: 10px auto 6px; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(26px, 3vw, 38px); letter-spacing: 0.1em; color: #FFFFFF; }
.sp-noteprice > .sp-note { max-width: 1120px; margin-left: auto; margin-right: auto; color: #DCE3EE; }
.plan-price--first { flex-wrap: wrap; row-gap: 4px; }
.pp-first { flex-basis: 100%; width: fit-content; max-width: max-content; padding: 2px 10px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.po-note { font-size: 12px !important; color: var(--slate); }
.pr-group { max-width: 1120px; margin: clamp(28px, 5vh, 44px) auto 0; font-family: var(--serif-ja); font-weight: 600; font-size: 16px; letter-spacing: 0.08em; color: #FFFFFF; }
.pr-group::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; background: var(--sun); vertical-align: middle; }
.sp-noteprice .pk-grid { margin-top: 16px; }
.sp-noteprice .plan-grid { margin-top: 16px; }
.sp-noteprice .plan-card:not(.is-pick) { transform: none; }
.plan-offer { margin-top: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--sun) 18%, #FFFFFF); border-left: 3px solid var(--sun-deep); display: grid; gap: 6px; }
.plan-offer p { margin: 0; font-size: 13px; }
.plan-offer b { display: inline-block; min-width: 5.5em; margin-right: 6px; font-size: 12px; color: var(--sun-deep); }
.po-num { font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.plan-inc { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--slate); }
.plan-memo { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.7; color: var(--slate); }
.sp-noteprice .plan-grid { align-items: stretch; }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1120px; margin: clamp(40px, 6vh, 56px) auto 0; }
.pk { padding: 22px 22px 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22); color: #FFFFFF; }
.pk-tag { display: inline-block; margin: 0 0 10px; padding: 2px 10px; background: var(--sun); color: var(--ink); font-size: 11.5px; font-weight: 700; }
.pk h3 { margin: 0 0 8px; font-family: var(--serif-ja); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }
.pk-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.pk-price .pp-num { font-size: 30px; }
.pk .plan-list { font-size: 13px; color: #DCE3EE; }
.pk-more { margin: 12px 0 0; font-size: 12px; color: var(--sun); }
.pr-menu { max-width: 1120px; margin: clamp(36px, 6vh, 52px) auto 0; padding: clamp(20px, 3vw, 30px); background: #FFFFFF; color: var(--ink); }
.pr-menu-title { margin: 0 0 10px; font-family: var(--serif-ja); font-weight: 600; font-size: 16px; }
.pr-menu ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pr-menu li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pr-menu li b { font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-menu-note { margin: 14px 0 6px; font-size: 13px; color: var(--slate); }
.sp-plans .pr-menu .text-link { color: var(--ink); }
@media (max-width: 1023px) {
  .ty-grid, .pk-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ---------- IT 系の飾り（tone: it のページだけ。方眼と回路の線） ---------- */
.tone-it .sp-hero { position: relative; isolation: isolate; }
.tone-it .sp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.35; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); }
.tone-it .sp-hero-art { position: relative; }
.tone-it .sp-hero-art::after { content: ""; position: absolute; left: -12%; bottom: 8%; width: 46%; height: 90px; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 60% 2px no-repeat, linear-gradient(var(--sun), var(--sun)) 60% 30% / 2px 70% no-repeat, radial-gradient(circle, var(--sun) 4px, transparent 4.5px) 0 100% / 10px 10px no-repeat; opacity: 0.8; }
.tone-it .sp-wpintro { position: relative; background: var(--paper-2); }
.tone-it .sp-wpintro::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--mist) 1px, transparent 1.4px); background-size: 18px 18px; opacity: 0.5; pointer-events: none; }
.tone-it .sp-wpintro > * { position: relative; }
.tone-it .vc-no, .tone-it .fl-no, .tone-it .pl-no { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; }
.tone-it .sp-docs { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-color: var(--paper); }

/* ---------- note運用代行: キジマドの構成図と導入支援 ---------- */
.sp-kijimado { background: var(--paper-2); }
/* オプションの欄: 朝日色の淡い背景と破線の枠で、本体のサービスと分けて見せる */
.sp-option { position: relative; background: #FFF8E8; border-top: 2px dashed color-mix(in srgb, var(--sun-deep) 55%, transparent); }
.sp-option::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--sun-deep) 22%, transparent) 1px, transparent 1.4px); background-size: 20px 20px; pointer-events: none; }
.sp-option > * { position: relative; }
.op-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; margin-bottom: clamp(36px, 6vh, 56px); max-width: 980px; }
.op-badge { margin: 6px 0 0; padding: 14px 12px; background: var(--sun); color: var(--ink); font-family: "Inter", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.2em; writing-mode: vertical-rl; }
.op-head .sp-head { margin-bottom: 10px; }
.op-title { margin: 0 0 14px; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.55; letter-spacing: 0.05em; }
.op-lead { margin: 0; font-size: 15px; line-height: 2; }
.sp-option .kj3 li, .sp-option .kj-list li, .sp-option .kj-shot { background-color: #FFFFFF; }
.kj-app-what { margin: 0 0 4px !important; font-size: 12px !important; letter-spacing: 0.12em; color: var(--sun-deep); }
/* 埋め込みの表示サンプル（ページになじみすぎないよう、窓と札で囲む） */
.kj-sample { position: relative; margin-top: clamp(44px, 7vh, 64px); padding: 22px clamp(14px, 2.4vw, 28px) 20px; border: 2px dashed var(--sun-deep); background: rgba(255, 255, 255, 0.55); }
.kj-sample-badge { position: absolute; top: -14px; left: 20px; margin: 0; padding: 3px 14px; background: var(--sun-deep); color: #FFFFFF; font-family: "Inter", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.2em; }
.kj-sample-cap { margin: 4px 0 14px; font-size: 13.5px; font-weight: 500; }
.kj-sample-win { background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(31, 42, 68, 0.55); }
.kj-sample-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.kj-sample-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.kj-sample-bar span { margin-left: 10px; padding: 2px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--slate); }
.kj-sample-page { padding: 18px clamp(12px, 2vw, 24px) 6px; }
.kj-sample-h { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-family: var(--serif-ja); font-weight: 600; font-size: 16px; }
.kj-sample-h small { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--slate); }
.kj-sample-foot { margin: 12px 0 0; font-size: 12px; color: var(--slate); }
.pr-hide { max-width: 1120px; margin: clamp(32px, 5vh, 48px) auto 0; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 14px; color: #FFFFFF; }
@media (max-width: 767px) {
  .op-head { grid-template-columns: minmax(0, 1fr); }
  .op-badge { justify-self: start; writing-mode: horizontal-tb; padding: 4px 12px; margin: 0; }
}
.kj-map { margin-top: 28px; padding: clamp(22px, 3vw, 36px); background: #FFFFFF; border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-color: #FFFFFF; }
.kj-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.kj-node { position: relative; display: grid; gap: 4px; align-content: start; justify-items: center; padding: 16px 10px 18px; background: #FFFFFF; border: 1px solid var(--line); text-align: center; }
.kj-node + .kj-node::before { content: ""; position: absolute; left: -20px; top: 60px; width: 16px; height: 2px; background: var(--sun-deep); }
.kj-node + .kj-node::after { content: ""; position: absolute; left: -10px; top: 56px; width: 8px; height: 8px; border-top: 2px solid var(--sun-deep); border-right: 2px solid var(--sun-deep); transform: rotate(45deg); }
.kj-node.is-key { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.kj-node.is-key .kj-sub { color: #C9D3E2; }
.kj-node svg { width: min(96px, 90%); height: auto; overflow: visible; }
.kj-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; letter-spacing: 0.12em; color: var(--sun-deep); }
.kj-node.is-key .kj-code { color: var(--sun); }
.kj-name { font-family: var(--serif-ja); font-weight: 600; font-size: 14px; line-height: 1.5; }
.kj-sub { font-size: 11.5px; line-height: 1.7; color: var(--slate); }
.kj-scope { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin-top: 14px; }
.kj-band { margin: 0; padding: 10px 14px; font-size: 13px; text-align: center; border-top: 3px solid var(--sun); background: color-mix(in srgb, var(--sun) 14%, #FFFFFF); }
.kj-band span { display: block; font-size: 11px; letter-spacing: 0.08em; color: var(--slate); }
.kj-band--write { grid-column: 1 / span 1; }
.kj-band--set { grid-column: 3 / span 2; border-top-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, #FFFFFF); }
.kj-support { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 7vh, 64px); align-items: start; }
.kj-support-head p { margin: 0; font-size: 14.5px; line-height: 2; }
.kj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: kj; }
.kj-list li { position: relative; padding: 18px 18px 18px 54px; background: #FFFFFF; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.85; counter-increment: kj; }
.kj-list li::before { content: counter(kj, decimal-leading-zero); position: absolute; left: 16px; top: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--sun-deep); }
.kj-list b { display: block; margin-bottom: 4px; font-family: var(--serif-ja); font-size: 15px; }
@media (max-width: 1023px) {
  .kj-flow, .kj-scope { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .kj-node { grid-template-columns: 72px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; }
  .kj-node svg { grid-row: 1 / span 3; width: 72px; }
  .kj-node + .kj-node::before { left: 46px; top: -16px; width: 2px; height: 14px; }
  .kj-node + .kj-node::after { left: 42px; top: -10px; transform: rotate(135deg); }
  .kj-band--write, .kj-band--set { grid-column: auto; }
  .kj-support, .kj-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 画像つきの事例カード（note の「法人 note で発信できること」） ---------- */
.case-card.has-img { position: relative; padding: 0 0 26px; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.case-card.has-img:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(31, 42, 68, 0.6); }
.cc-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; transition: transform 0.8s var(--ease); }
.case-card.has-img:hover .cc-img { transform: scale(1.03); }
.case-card.has-img .cc-no, .case-card.has-img h3, .case-card.has-img p { margin-left: 24px; margin-right: 24px; }
.case-card.has-img .cc-no { font-size: 30px; }
.case-card.has-img h3 { margin-top: 8px; }
.sp-intro .text-link { display: inline-block; margin-top: 4px; }
/* note とは: 説明の右の挿絵 */
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.intro-grid .intro-box { max-width: none; }
.intro-art svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.ia-mag1 { fill: var(--ink); }
.ia-mag2 { fill: #44567A; }
.ia-line-w { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 5; stroke-linecap: round; }
.ia-shadow { fill: var(--ink); opacity: 0.12; }
.ia-dot { fill: var(--mist); }
.ia-sky { fill: #EAF0F7; }
.ia-land { fill: #2F3F5E; }
.ia-land2 { fill: #8396B4; }
.ia-sea-w { fill: none; stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; opacity: 0.8; }
.ia-ink { fill: var(--ink); }
.ia-mist { fill: var(--paper-3, #ECF0F6); }
.ia-avatar { fill: var(--sun); }
.ia-text { fill: none; stroke: var(--paper-3, #ECF0F6); stroke-width: 6; stroke-linecap: round; }
.ia-heart { fill: #E06B6B; }
.ia-arc { fill: none; stroke: var(--sun-deep); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.ia-pop { animation: ia-pop 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ia-pop { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.14); } 86% { transform: scale(0.96); } }
@media (max-width: 1023px) { .intro-grid { grid-template-columns: minmax(0, 1fr); } .intro-art svg { max-width: 360px; } }
.case-grid--img { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .case-grid--img { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .case-grid--img { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: none; }
  .case-grid--img::-webkit-scrollbar { display: none; }
  .case-grid--img .case-card { flex: 0 0 82%; scroll-snap-align: center; }
  .case-card.has-img:hover { transform: none; }
}

/* ---------- 自社サイト連携の仕組み（3段階の図とキジマドの画面） ---------- */
.kj-lead { margin: 18px 0 30px; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.6; letter-spacing: 0.05em; }
.kj3 { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: clamp(36px, 4.5vw, 64px); }
.kj3 li { position: relative; display: grid; gap: 8px; justify-items: center; align-content: start; aspect-ratio: 1 / 1.08; padding: 38px 30px 34px; background: #FFFFFF; border: 1px solid var(--line); text-align: center; }
.kj3-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; white-space: nowrap; }
.kj3 li.is-key .kj3-tag, .kj3-tag--free { background: var(--sun); color: var(--ink); font-weight: 700; }
.kj3 li.is-key { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.kj3 li.is-key .kj3-text { color: #D3DBE7; }
.kj3 li + li::before { content: ""; position: absolute; left: calc(-1 * clamp(36px, 5vw, 64px) + 8px); top: 50%; width: calc(clamp(36px, 5vw, 64px) - 16px); height: 3px; background: var(--sun-deep); }
.kj3 li + li::after { content: ""; position: absolute; left: -16px; top: calc(50% - 6px); width: 12px; height: 12px; border-top: 3px solid var(--sun-deep); border-right: 3px solid var(--sun-deep); transform: rotate(45deg); }
.kj3 svg { width: min(120px, 60%); height: auto; overflow: visible; }
.kj3-no { font-family: "Inter", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--sun-deep); }
.kj3 li.is-key .kj3-no { color: var(--sun); }
.kj3-head { font-family: var(--serif-ja); font-weight: 600; font-size: clamp(16px, 1.35vw, 18px); white-space: nowrap; }
.kj3-text { font-size: 13.5px; line-height: 1.9; color: var(--slate); text-align: left; }
.kj3-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px); margin-top: 16px; }
.kj3-scope .kj-band--write { grid-column: 1; }
.kj3-scope .kj-band--set { grid-column: 2 / span 2; }
.kj-app { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 8vh, 72px); align-items: center; }
.kj-app-text p { margin: 0 0 1em; font-size: 14px; line-height: 1.95; }
.kj-app-name { font-family: var(--serif-ja); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px) !important; letter-spacing: 0.06em; margin-bottom: 12px !important; }
.kj-app-name span { font-size: 0.6em; color: var(--slate); }
.kj-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kj-shot { margin: 0; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(31, 42, 68, 0.55); }
.kj-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: top; }
.kj-shot figcaption { padding: 8px 12px; font-size: 11.5px; line-height: 1.6; color: var(--slate); border-top: 1px solid var(--line); }
@media (max-width: 1023px) {
  .kj3, .kj3-scope { grid-template-columns: minmax(0, 420px); gap: 56px; }
  .kj3 li { aspect-ratio: auto; }
  .kj3-scope { gap: 12px; }
  .kj3-scope .kj-band--write, .kj3-scope .kj-band--set { grid-column: auto; }
  .kj3 li + li::before { left: 50%; top: -28px; width: 3px; height: 20px; }
  .kj3 li + li::after { left: calc(50% - 5px); top: -16px; transform: rotate(135deg); }
  .kj-app { grid-template-columns: minmax(0, 1fr); }
  .kj-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
}

/* ---------- メディア掲載（カードを机に散らしたボード。触るとまっすぐ持ち上がる） ---------- */
.media-board { padding: clamp(40px, 6vh, 64px) var(--gutter) clamp(90px, 14vh, 150px); background-color: var(--paper-2); background-image: radial-gradient(var(--line) 1px, transparent 1.4px); background-size: 22px 22px; }
.mc-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 52px 36px; align-items: start; }
.mc { position: relative; }
.mc[hidden] { display: none; }
.mc:hover, .mc:focus-within { z-index: 3; }
.mc a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px 24px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(31, 42, 68, 0.45); color: var(--ink); text-decoration: none; transform: translateY(var(--y)) rotate(var(--r)); transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), opacity 0.4s var(--ease); }
.mc a:hover, .mc a:focus-visible { transform: translateY(calc(var(--y) - 10px)) rotate(0deg) scale(1.03); box-shadow: 0 36px 52px -30px rgba(31, 42, 68, 0.55); }
.mc-tape { position: absolute; top: -11px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: color-mix(in srgb, var(--sun) 50%, transparent); transform: rotate(calc(var(--r) * -2)); }
.mc-stamp { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--sun-deep); border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: var(--sun-deep); font-family: var(--serif-ja); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; transform: rotate(12deg); }
.mc-img { margin: 6px 0 4px; }
.mc-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); }
.mc-media { padding-right: 58px; font-size: 12px; letter-spacing: 0.06em; color: var(--slate); }
.mc-img + .mc-media { padding-right: 0; }
.mc-img--none span { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 0 18px; border: 1px solid var(--line); background-color: var(--paper-2); background-image: radial-gradient(var(--line) 1px, transparent 1.4px); background-size: 14px 14px; font-family: var(--serif-ja); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; color: var(--slate); text-align: center; }
.mc-title { font-family: var(--serif-ja); font-weight: 600; font-size: 17px; line-height: 1.7; letter-spacing: 0.03em; }
.mc-note { font-size: 13px; line-height: 1.85; color: var(--slate); }
.mc-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding-bottom: 3px; border-bottom: 1px solid var(--sun); font-size: 13px; letter-spacing: 0.06em; }
.mc-link i { width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transition: transform 0.4s var(--ease); }
.mc a:hover .mc-link i { transform: translate(2px, -2px); }
.mc.is-out a { opacity: 0; transform: translateY(calc(var(--y) + 24px)) rotate(calc(var(--r) * 3)) scale(0.94); }
@media (max-width: 767px) {
  .mc-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .mc a { transform: rotate(calc(var(--r) * 0.5)); }
  .mc a:hover, .mc a:focus-visible { transform: translateY(-6px) rotate(0deg); }
}

/* ---------- セクションの間のあしらい（波紋・島・波。高さ0の帯に重ねて余白の量は変えない） ---------- */
.sea-gap { position: relative; height: 0; pointer-events: none; z-index: 0; }
.sea-art { position: absolute; top: 0; width: clamp(140px, 15vw, 220px); margin-top: calc(clamp(140px, 15vw, 220px) * -0.1875); }
.sea-gap--left .sea-art { left: clamp(16px, 6vw, 110px); }
.sea-gap--right .sea-art { right: clamp(16px, 6vw, 110px); }
.sea-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.sg-land { fill: var(--mist); opacity: 0.42; }
.sg-land2 { fill: var(--sea); }
.sg-sea { fill: none; stroke: var(--mist); stroke-width: 1.4; stroke-linecap: round; opacity: 0.7; }
.sg-faint { opacity: 0.4; }
.sg-sun { fill: var(--sun); opacity: 0.35; }
.sg-ring { fill: none; stroke: var(--mist); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: sg-ripple 7.5s ease-out infinite; }
.sg-ring:nth-child(2) { animation-delay: 2.5s; }
.sg-ring:nth-child(3) { animation-delay: 5s; }
.sg-drop { fill: var(--mist); opacity: 0.6; }
@keyframes sg-ripple {
  0% { transform: scale(0.15); opacity: 0; }
  15% { opacity: 0.95; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 1023px) {
  .gnav, .hero-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-copy { max-width: none; right: var(--gutter); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card.c3 { margin-top: 0; }
  .service-card.c4 { margin-top: clamp(80px, 18vh, 200px); }
  .service-card.c5 { margin-top: 0; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .site-header { height: 60px; }
  .hero-visual { top: auto; height: 56%; }
  .hero-copy { top: 92px; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); margin: 12px 0 18px; }
  .hero-lead { font-size: 12px; line-height: 2.5; letter-spacing: 0; }
  .hero-lead span { padding: 0.32em 0.6em; margin-left: -0.6em; }
  .hero-side { display: none; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.16em; gap: 10px; }
  .hero .eyebrow::before { width: 24px; }
  .about-title { font-size: 21px; }
  .contact-title { font-size: 7.2vw; }
  .principle { padding-top: 62vw; }
  .principle-sun { left: -30vw; top: 4vw; width: 86vw; }
  .principle-vert { font-size: 34vw; right: -4vw; top: 6vw; }
  .principle-box { margin-left: 0; width: auto; }
  .principle-box::before { transform: translate(10px, 10px); }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .service-card.c1 { margin-right: 10vw; }
  .service-card.c2 { margin: 0 0 0 10vw; }
  .service-card.c3 { margin: 0 6vw 0 0; }
  .service-card.c4 { margin: 0 0 0 8vw; }
  .service-card.c5 { margin: 0 8vw 0 0; }
  /* スマホは横にスワイプして見る */
  .work-filter {
    justify-self: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 22px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .wf-btn { flex: none; font-size: 13px; }
  .work-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80vw;
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .work-card,
  .work-grid:not(.is-filtered) .work-card:nth-child(n) { grid-column: auto; margin-top: 0; scroll-snap-align: start; }
  .wc-title, .work-card:nth-child(1) .wc-title, .work-card:nth-child(7) .wc-title { font-size: 15px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-art { position: relative; top: 0; }
  .about-abstract { border-width: 8px; }
  .about-body, .about-art { order: 0; }
  .about-bg { aspect-ratio: auto; height: 50vh; }
  .about-bg img { height: 100%; object-position: 77% 60%; }
  .about-art { margin-top: 30vh; }
  .about-bg::after {
    background: linear-gradient(180deg,
      var(--paper) 0%,
      color-mix(in srgb, var(--paper) 40%, transparent) 18%,
      color-mix(in srgb, var(--paper) 35%, transparent) 70%,
      var(--paper) 100%);
  }
  .about-bg img { height: 100%; }
  .logo svg { height: 18px; }
  .timeline li { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .t-year { font-size: 22px; }
  .isle { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .isle:nth-child(even) { margin-left: 28px; }
  .isle-art svg { width: 96px; }
  .isle .t-year { font-size: 24px; }
  .isle .t-text { font-size: 13px; }
  .btn { padding: 18px 28px; }
}

/* 下層ページのタブレット・スマホ */
@media (max-width: 1023px) {
  .sp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-hero-art { max-width: 420px; }
  .value-grid, .value-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sub { padding-top: 60px; }
  .sp-title { font-size: min(27px, 7.4vw); letter-spacing: 0.04em; }
  .sp-hero-art { max-width: 300px; margin: 0 auto; }
  .value-grid, .value-grid.n4 { grid-template-columns: minmax(0, 1fr); }
  .value-card.v2, .value-card.v4 { margin-top: 0; }
  .value-card:nth-child(even) { margin-left: 8vw; }
  .value-card:nth-child(odd) { margin-right: 8vw; }
  .pain-list li { grid-template-columns: 40px minmax(0, 1fr); font-size: 15px; }
  .docs-box { grid-template-columns: minmax(0, 1fr); }
  .docs-box::before { transform: translate(8px, 8px); }
  .flow-list { grid-template-columns: minmax(0, 1fr); }
  .w-body { font-size: 14.5px; }
  .w-pager { grid-template-columns: minmax(0, 1fr); }
  .wp-next { text-align: left; }
  .works-head { grid-template-columns: minmax(0, 1fr); }
  .works--index .work-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; gap: 36px; }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .voyage-boat svg { animation: none; }
  .sg-ring { opacity: 0.5; transform: scale(0.4); }
  .sg-ring:nth-child(2) { transform: scale(0.7); opacity: 0.35; }
  .sg-ring:nth-child(3) { transform: scale(1); opacity: 0.2; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-split] .ch, .reveal { transform: none !important; opacity: 1 !important; }
  .hero-art .layer { opacity: 1; }
  .hero-lead, .hero-name, .hero .eyebrow, .hero-nav, .hero-side, .scroll-cue { opacity: 1; transform: none; }
}

/* 実績ページの構成図（インライン SVG）。スマホでは横にスクロールして読む */
.w-diagram { margin: 2.4em 0; }
.w-diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: #FFFFFF; }
.w-diagram-svg { display: block; width: 100%; min-width: 640px; height: auto; }
.w-diagram figcaption { margin-top: 10px; font-size: 12px; color: var(--slate); }

/* 構成図の色（サイトの色の変数を使うので、配色案を替えても図が揃う） */
.w-diagram-svg { font-family: var(--sans); }
.w-diagram-svg .d-bg { fill: var(--paper); }
.w-diagram-svg .d-zone { fill: var(--paper-2); stroke: var(--mist); stroke-width: 1; stroke-dasharray: 4 4; }
.w-diagram-svg .d-zone-label { fill: var(--ink); font-family: var(--serif-ja); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.w-diagram-svg .d-note { fill: var(--slate); font-size: 10px; }
.w-diagram-svg .d-eyebrow { letter-spacing: 0.08em; }
.w-diagram-svg .d-line { fill: none; stroke: var(--slate); stroke-width: 1.2; }
.w-diagram-svg .d-line-accent { stroke: var(--sun-deep); stroke-width: 1.6; }
.w-diagram-svg .d-line-read { stroke-dasharray: 5 4; }
.w-diagram-svg .d-head { fill: var(--slate); }
.w-diagram-svg .d-head-accent { fill: var(--sun-deep); }
.w-diagram-svg .d-mask { fill: var(--paper-2); }
.w-diagram-svg .d-label { fill: var(--slate); font-size: 11px; }
.w-diagram-svg .d-name { fill: var(--ink); font-size: 13px; font-weight: 600; }
.w-diagram-svg .d-sub { fill: var(--slate); font-size: 10px; }
.w-diagram-svg .d-node { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.w-diagram-svg .d-focal { fill: var(--glow-2); stroke: var(--sun-deep); stroke-width: 1.2; }
.w-diagram-svg .d-store { fill: var(--paper-3); stroke: var(--slate); stroke-width: 1; }
.w-diagram-svg .d-ext { fill: var(--paper); stroke: var(--mist); stroke-width: 1; }
.w-diagram-svg .d-ico { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.w-diagram-svg .d-ico-accent { stroke: var(--sun-deep); }
.w-diagram-svg .d-rule { stroke: var(--line); stroke-width: 0.8; }
@media (max-width: 699px) { .w-diagram figcaption::after { content: "（図は横にスクロールできます）"; } }
.w-body figure.w-shot { max-width: 360px; margin-left: auto; margin-right: auto; }
.w-body figure.w-shot img { border-radius: 14px; border: 1px solid var(--line); }

/* ---------- Webサイト制作 ---------- */
.plan-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-left: 0; }
.sp-webprice .plan-grid, .sp-webprice .pk-grid { margin-left: auto; margin-right: auto; }
.plan-price--tax, .pk-price--tax { flex-wrap: wrap; }
.pp-tax { flex-basis: 100%; font-size: 12px; color: var(--slate); }
.pk-price--tax .pp-tax { color: #C9D3E2; }
.sp-webprice .plan-offer b { min-width: 0; margin-right: 10px; }
.sp-webprice .pk .plan-list { color: #FFFFFF; }
.web-note { margin-top: 10px; font-size: 13px; }
.sp-webscope .resp { margin-top: 28px; }
.resp-note { margin: 10px 0 0; font-size: 13px; color: var(--slate); }
.cmp-table--web thead th:first-child { width: 172px; }
.cmp-table--web tbody th { white-space: normal; }
.sp-webscope td, .sp-webscope li, .web-faq dd { text-wrap: pretty; }
.cmp-table--extra thead th:first-child { width: 220px; }
.cmp-table--extra { min-width: 0; }
.cmp-table--extra tbody th { white-space: normal; }
.sp-webscope .cmp { margin-top: 36px; }
.web-end { max-width: none; margin-top: 36px; }
.web-end ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 2; }
.web-terms { margin: 24px 0 0; padding-left: 1.2em; font-size: 13px; line-height: 1.9; color: var(--slate); }
.web-faq { margin: 0; display: grid; gap: 12px; max-width: 880px; }
.web-faq > div { padding: 18px 24px; background: var(--paper-2); }
.web-faq dt { font-family: var(--serif-ja); font-weight: 600; font-size: 15.5px; }
.web-faq dd { margin: 6px 0 0; font-size: 14px; line-height: 1.9; color: var(--slate); }
@media (max-width: 760px) {
  .plan-grid--two { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .cmp-table--web { min-width: 620px; }
  .cmp-table--web thead th:first-child { width: 140px; }
  .cmp-table--extra thead th:first-child { width: 112px; }
  .web-faq > div { padding: 14px 16px; }
}

/* ---------- 見つからないページ（404.html） ---------- */
.nf { min-height: 60vh; }
.nf-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; max-width: 760px; margin: 32px 0 0; padding: 0; list-style: none; }
.nf-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; text-decoration: none; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.nf-link::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.nf-link:hover, .nf-link:focus-visible { border-color: var(--ink); transform: translateX(3px); }
.nf-contact { margin: 28px 0 0; font-size: 14px; }
.nf-contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }
