/* ============================================================
   ココロＡＩ合同会社 HPリニューアル モック v2
   流体インク×極太タイポ×スタックカード — 「リニューアルした!!」感
   ============================================================ */

:root {
  --paper: #FDFCFB;
  --paper-2: #F7F4EE;
  --ink: #0D2733;
  --ink-soft: #3C5463;
  --ink-mute: #526A76;
  --line: #DCE3E6;
  --teal: #005B7B;
  --teal-deep: #003F57;
  --teal-soft: #D7E4E9;
  --teal-softer: #EDF3F5;
  --aqua: #00A4C6;
  --aqua-2: #00C6A9;
  --sun: #FCCF27;
  --sun-ink: #6B4E00;
  --cream: #FBF7EE;        /* Morsel風のあたたかい下地 */
  --cream-2: #F6EFE1;      /* 吹き出し用 */
  --hairline: #E9E3D8;     /* 黒枠の代わりの細い線 */
  --shadow-soft: 0 20px 44px rgba(13,39,51,.08), 0 4px 12px rgba(13,39,51,.04);

  --disp: "Dela Gothic One", sans-serif;
  --serif: "Shippori Mincho B1", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --hand: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;

  --max-w: 1024px;
  --pad: clamp(20px, 5vw, 48px);
}

html { overflow-x: clip; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  overflow-anchor: none; /* reveal時のスクロール位置自動補正を無効化 */
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.font-hand { font-family: var(--hand); }
.pc { display: inline; }
.sp { display: none; }
@media (max-width: 640px) {
  .pc { display: none; }
  .sp { display: inline; }
}

/* ---------- スクロール進捗バー（scroll-driven animation） ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--aqua), var(--aqua-2));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: growBar linear both; animation-timeline: scroll(); }
  @keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}


/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,91,123,.25);
}
.btn--primary:hover { transform: translateY(-2px) rotate(-.5deg); background: var(--teal-deep); box-shadow: 0 10px 26px rgba(0,91,123,.3); }
.btn--ghost {
  border: 1px solid var(--ink-mute);
  color: var(--ink);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { transform: translateY(-2px) rotate(.5deg); border-color: var(--teal); color: var(--teal); }
.btn--light { background: var(--paper); color: var(--teal-deep); }
.btn--light:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn--sun:hover { transform: translateY(-2px) rotate(-.5deg); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.btn--lg { padding: 17px 46px; font-size: 15px; }

.textlink {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
}
.textlink:hover { border-color: var(--teal); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(253,252,251,.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__robo { width: 36px; height: 36px; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand__robo { transform: rotate(-10deg) scale(1.12); }
.brand__name { font-family: var(--disp); font-size: 16px; letter-spacing: .05em; }
.gnav { display: flex; gap: 26px; margin-left: auto; }
.gnav a { font-size: 13px; font-weight: 700; color: var(--ink-soft); position: relative; padding: 4px 0; }
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--aqua);
  transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.gnav a:hover { color: var(--teal); }
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav a.has-new::before {
  content: ""; position: absolute; top: 2px; right: -9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 2px var(--paper);
}
.header-sns { display: flex; align-items: center; gap: 14px; }
.header-sns a {
  color: var(--ink-mute);
  display: flex;
  transition: color .2s, translate .2s;
}
.header-sns a:hover { color: var(--teal); translate: 0 -2px; }
@media (max-width: 1080px) { .header-sns { display: none; } }
.drawer__sns { display: flex; gap: 18px; justify-content: center; margin-top: 10px; }
.drawer__sns a { font-family: var(--mono) !important; font-size: 12px !important; color: var(--aqua) !important; }
.header-cta {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--teal); border-radius: 999px; padding: 9px 22px;
  transition: background .25s, transform .25s;
}
.header-cta:hover { background: var(--teal-deep); transform: rotate(-2deg); }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .gnav, .header-cta { display: none; }
  .menu-btn {
    display: flex; flex-direction: column; gap: 6px;
    margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px;
    z-index: 102;
  }
  .menu-btn span { width: 26px; height: 2.5px; background: var(--ink); transition: transform .3s, background .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
}
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--teal-deep);
  display: flex;
  overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer nav { display: flex; flex-direction: column; gap: 18px; margin: auto; padding: 76px 24px 44px; }
.drawer a {
  font-family: var(--disp); font-size: 26px; color: #fff;
  display: flex; align-items: baseline; gap: 14px;
}
.drawer a i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--aqua); }
.drawer__cta { color: var(--sun) !important; font-size: 18px !important; margin-top: 16px; }
@media (max-height: 720px) {
  .drawer nav { gap: 12px; }
  .drawer a { font-size: 21px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__fluid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 120px var(--pad) 120px;
  max-width: calc(var(--max-w) + var(--pad) * 2);
  margin: 0 auto;
  width: 100%;
  pointer-events: none;             /* インクを触れるように */
}
.hero__inner a { pointer-events: auto; }
.hero-news {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 30px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  animation: lineUp 1.1s .7s cubic-bezier(.22,1,.36,1) both;
  transition: border-color .25s, translate .25s;
}
.hero-news:hover { border-color: var(--aqua); translate: 0 -2px; }
.hero-news__label {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--teal);
  border: 1.5px solid var(--aqua);
  border-radius: 999px;
  padding: 2px 10px;
}
.hero-news.is-new .hero-news__label { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.hero-news time { flex-shrink: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.hero-news__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.hero-news__arrow { flex-shrink: 0; color: var(--aqua); transition: transform .25s; }
.hero-news:hover .hero-news__arrow { transform: translateX(3px); }
@media (max-width: 640px) {
  .hero-news {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4px 10px;
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 26px;
  }
  .hero-news__text { grid-column: 1 / -1; grid-row: 2; white-space: normal; font-size: 13px; }
  .hero-news__arrow { grid-column: 3; grid-row: 1; justify-self: end; }
}
.hero__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--teal);
  margin-bottom: 30px;
}
.hero__title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.5;
  letter-spacing: .02em;
}
.ht-line { display: block; animation: lineUp 1.1s cubic-bezier(.22,1,.36,1) both; }
.ht-line:nth-child(2) { animation-delay: .16s; }
@keyframes lineUp {
  from { opacity: 0; transform: translateY(.5em); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.ht-mark {
  font-style: normal;
  color: var(--teal);
  position: relative;
  display: inline-block;
}
.ht-mark::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: .08em;
  height: .34em;
  background: var(--sun);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: markIn .7s 1s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes markIn { to { transform: scaleX(1); } }
.hero__lead {
  margin-top: 34px;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 500;
  color: var(--ink-soft);
  animation: lineUp 1.1s .4s cubic-bezier(.22,1,.36,1) both;
}
.hero__actions {
  margin-top: 44px;
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: lineUp 1.1s .55s cubic-bezier(.22,1,.36,1) both;
}
.hero__actions .btn { pointer-events: auto; }
.hero__robo {
  position: absolute;
  z-index: 2;
  right: clamp(72px, 11vw, 170px);
  bottom: clamp(76px, 12vh, 130px);
  text-align: center;
  pointer-events: none;
  animation: softIn 1.2s .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes softIn { from { opacity: 0; } to { opacity: 1; } }
.hero__robo img {
  pointer-events: auto;   /* クリックでひと吹き */
  cursor: pointer;
  width: clamp(190px, 23vw, 300px);
  height: auto;
  margin: -26px auto 0;
  animation: floaty 4.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 18px rgba(13,39,51,.12));
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.bubble {
  display: inline-block;
  background: var(--cream-2);
  border-radius: 18px;
  padding: 8px 18px;
  font-size: 14px;
  position: relative;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(13,39,51,.10);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--cream-2);
}

/* ココロボちゃんの案内吹き出し（Morselのエージェント風） */
.robo-say {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}
.robo-say img {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(13,39,51,.12);
  animation: floaty 4.5s ease-in-out infinite;
}
.robo-say__bubble {
  background: var(--cream-2);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 20px;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(13,39,51,.08);
}

/* ヒーロー下部の無限テロップ */
.hero__ticker {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--hairline);
  background: rgba(253,252,251,.85);
  backdrop-filter: blur(6px);
  overflow: hidden;
  pointer-events: none;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 12px 0;
  animation: tick 26s linear infinite;
}
.ticker__track span {
  font-family: var(--disp);
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.ticker__track i { font-style: normal; color: var(--aqua); font-size: 9px; }
@keyframes tick { to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .hero__inner { padding-top: 96px; padding-bottom: 360px; }
  .hero__robo { right: 50%; transform: translateX(50%); bottom: 96px; }
}

/* ---------- セクション共通 ---------- */
.section {
  position: relative;
  padding: clamp(90px, 13vw, 160px) var(--pad);
  max-width: calc(var(--max-w) + var(--pad) * 2);
  margin: 0 auto;
}
.section--tint {
  max-width: none;
  background: var(--paper-2);
}
.section--tint > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: clamp(44px, 6vw, 72px); position: relative; z-index: 1; }
.sec-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--aqua);
  margin-bottom: 16px;
}
.sec-no--light { color: rgba(255,255,255,.75); }
.sec-title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: .03em;
  line-height: 1.5;
}
.sec-lead { margin-top: 20px; color: var(--ink-soft); max-width: 560px; }
.section__foot { margin-top: 48px; position: relative; z-index: 1; }

/* 背景の白抜き巨大タイポ */
.bgword {
  position: absolute;
  top: clamp(16px, 3vw, 40px);
  left: 0;
  font-family: var(--disp);
  font-size: clamp(70px, 14vw, 180px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--teal-soft);
  letter-spacing: .04em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.bgword--right { left: auto; right: 0; }
@supports (animation-timeline: view()) {
  .bgword { animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { transform: translateX(4vw); } to { transform: translateX(-4vw); } }
  .bgword--right { animation-name: driftR; }
  @keyframes driftR { from { transform: translateX(-4vw); } to { transform: translateX(4vw); } }
}

/* スクロールリビール */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 01 事業内容：スタックカード ---------- */
.stack {
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 1;
}
.svc-card {
  position: sticky;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  min-height: clamp(240px, 32vh, 320px);
}
.svc-card:nth-child(1) { top: 96px; }
.svc-card:nth-child(2) { top: 116px; }
.svc-card:nth-child(3) { top: 136px; }
.svc-card:nth-child(4) { top: 156px; }

.svc-card--cream { background: var(--cream); }

.svc-card__num {
  font-family: var(--disp);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  flex-shrink: 0;
}
.svc-card:nth-child(1) .svc-card__num { color: var(--teal-soft); }
.svc-card:nth-child(2) .svc-card__num { color: #CDEBE2; }
.svc-card:nth-child(3) .svc-card__num { color: #F4E3AC; }
.svc-card:nth-child(4) .svc-card__num { color: #CBE6EF; }
.svc-card__body h3 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(21px, 2.8vw, 32px);
  line-height: 1.55;
  margin-bottom: 14px;
}
.svc-card__body p { font-size: 14.5px; max-width: 540px; color: var(--ink-soft); }
.svc-card__icon {
  margin-left: auto;
  width: clamp(72px, 9vw, 120px);
  flex-shrink: 0;
  border-radius: 24%;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 28px rgba(13,39,51,.12);
}

@supports (animation-timeline: view()) {
  .svc-card { animation: cardIn linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes cardIn {
    from { transform: translateY(60px) scale(.96) rotate(.6deg); opacity: .4; }
    to   { transform: none; opacity: 1; }
  }
}
@media (max-width: 700px) {
  .svc-card { flex-wrap: wrap; min-height: 0; }
  .svc-card__num { font-size: 40px; }
  .svc-card__icon { width: 64px; margin-left: 0; order: -1; }
}

.svc-card[data-panel] { cursor: pointer; transition: translate .3s, box-shadow .3s; }
.svc-card[data-panel]:hover { translate: 0 -4px; box-shadow: 0 28px 56px rgba(13,39,51,.13), 0 6px 14px rgba(13,39,51,.05); }
.svc-card__more {
  position: absolute;
  right: clamp(28px, 4vw, 56px);
  bottom: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--aqua);
}
.svc-card { position: sticky; }
.svc-card[data-panel] { position: sticky; }

/* ---------- 仮想ページ（サービス詳細パネル） ---------- */
.panel-layer[hidden] { display: none; }
.panel-layer {
  position: fixed;
  inset: 0;
  z-index: 240;
  overflow-y: scroll;                    /* バーを常時表示してスクロール可能と分かるように */
  scrollbar-width: thin;
  scrollbar-color: var(--ink-mute) transparent;
  overscroll-behavior: contain;          /* 背面へのスクロール連鎖を防ぐ */
  -webkit-overflow-scrolling: touch;     /* iOSの慣性スクロール */
  background: var(--paper);
  view-transition-name: svcpanel;
  padding: 84px var(--pad) 60px;
}
.panel-layer::-webkit-scrollbar { width: 10px; }
.panel-layer::-webkit-scrollbar-thumb { background: rgba(13,39,51,.3); border-radius: 999px; border: 2px solid var(--paper); }
.panel-layer::-webkit-scrollbar-track { background: transparent; }
.panel-back {
  position: fixed;
  top: 20px; left: 20px;
  z-index: 2;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 9px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13,39,51,.1);
  transition: translate .2s;
}
.panel-back:hover { translate: -3px 0; }
.svc-panel { max-width: 760px; margin: 0 auto; }
.svc-panel__head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
}
.svc-panel__icon {
  width: 72px;
  border-radius: 24%;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 24px rgba(13,39,51,.12);
}
.svc-panel__title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: .03em;
}
@media (max-width: 480px) {
  .svc-panel__head { gap: 14px; }
  .svc-panel__icon { width: 54px; }
  .svc-panel__title { font-size: 21px; }
}
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.chat__user {
  align-self: flex-end;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px 18px 4px 18px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  box-shadow: 0 4px 12px rgba(13,39,51,.05);
}
.chat__robo {
  align-self: flex-start;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.chat__robo img {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(13,39,51,.12);
}
.chat__robo p {
  background: var(--cream-2);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 18px;
  font-size: 14.5px;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(13,39,51,.08);
}
.svc-panel__desc { color: var(--ink-soft); margin-bottom: 34px; }
.svc-panel__sub {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.svc-panel__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.svc-panel__shots img {
  border-radius: 18px;
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 28px rgba(13,39,51,.1);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 600px) { .demo-grid { grid-template-columns: 1fr; } .svc-panel__shots { grid-template-columns: repeat(3, 1fr); } }
.demo-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px 18px;
  transition: translate .2s, box-shadow .2s, border-color .2s;
}
.demo-btn:hover { translate: 0 -3px; box-shadow: 0 14px 28px rgba(0,164,198,.12); border-color: var(--aqua); }
.demo-btn img { width: 38px; border-radius: 10px; flex-shrink: 0; }
.demo-btn i { font-style: normal; font-size: 24px; width: 38px; text-align: center; flex-shrink: 0; }
.demo-btn strong { display: block; font-size: 13.5px; }
.demo-btn small { font-size: 11px; color: var(--ink-mute); }
.svc-panel__note { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 26px; }
.svc-panel__books { display: flex; gap: 12px; margin-bottom: 30px; }
.svc-panel__books a { max-width: 120px; transition: translate .2s; }
.svc-panel__books a:hover { translate: 0 -4px; }
.svc-panel__books img { border-radius: 4px; box-shadow: 0 10px 22px rgba(13,39,51,.16); }
.svc-panel__cta { text-align: center; padding-top: 10px; }
::view-transition-group(svcpanel) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(.22,1,.36,1);
}


/* 業務ツールの紹介：既存のサービス詳細とお悩み別で共通 */
.work-copy { margin-bottom: 30px; color: var(--ink-soft); }
.work-copy__title { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 29px); line-height: 1.6; letter-spacing: .03em; color: var(--ink); margin-bottom: 20px; }
.work-copy p + p { margin-top: 12px; }
.work-overview { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; margin: 34px 0; }
.work-benefits ul { list-style: none; }
.work-benefits li { padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.work-benefits li:first-child { padding-top: 0; }
.work-benefits strong { font-size: 15px; color: var(--teal); }
.work-benefits p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.work-example { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); padding: 20px; }
.work-example figcaption { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-mute); margin-bottom: 16px; }
.work-example figcaption span { padding: 1px 8px; border-radius: 4px; background: var(--cream); color: var(--sun-ink); font-size: 11px; }
.work-example__head { padding-bottom: 14px; border-bottom: 2px solid var(--teal-soft); }
.work-example__head strong { display: block; font-size: 18px; }
.work-example__head > span { font-size: 12px; color: var(--ink-mute); }
.work-example table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; margin-top: 10px; }
.work-example th, .work-example td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
.work-example thead th { color: var(--ink-mute); font-weight: 500; }
.work-example tbody th { font-weight: 700; }
.work-example__tag { display: inline-block; padding: 3px 7px; border-radius: 5px; background: var(--teal-softer); color: var(--teal-deep); line-height: 1.6; }
.work-example__note { font-size: 11px; line-height: 1.8; color: var(--ink-mute); margin-top: 14px; }
.work-next { padding: 24px 28px; border-left: 3px solid var(--teal); background: var(--teal-softer); border-radius: 0 12px 12px 0; margin-bottom: 34px; }
.work-next h3 { font-family: var(--serif); font-size: 21px; line-height: 1.6; margin-bottom: 10px; }
.work-next p { font-size: 14px; color: var(--ink-soft); }
.work-cta > p { margin-bottom: 16px; color: var(--ink-soft); font-size: 14px; }
.work-cta .work-cta__note { font-size: 12px; color: var(--ink-mute); margin-top: 12px; }
@media (max-width: 720px) {
  .work-overview { grid-template-columns: 1fr; gap: 24px; }
  .work-next { padding: 20px; }
}
@media (max-width: 400px) {
  .work-example { padding: 16px 12px; }
  .work-example th, .work-example td { padding: 9px 3px; }
  .work-example__tag { padding: 3px 4px; }
  .work-cta .btn { padding: 14px 18px; font-size: 13px; }
}

/* ---------- 02 実績：横スクロールレール ---------- */
.sec-works {
  position: relative;
  padding: clamp(90px, 13vw, 160px) 0;
  overflow: clip;
}
.section__head--pad { padding: 0 var(--pad); max-width: calc(var(--max-w) + var(--pad)*2); margin-left: auto; margin-right: auto; }
.rail-hint {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--ink-mute);
}
.rail-hint__arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }

.rail {
  display: flex;
  gap: clamp(18px, 2.5vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px max(var(--pad), calc((100vw - var(--max-w)) / 2)) 30px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--max-w)) / 2));
  cursor: grab;
  scrollbar-width: none;
}
.sec-works .robo-say,
.sec-works .section__foot {
  padding-left: max(var(--pad), calc((100vw - var(--max-w)) / 2));
  padding-right: max(var(--pad), calc((100vw - var(--max-w)) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(300px, 38vw, 440px);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: clamp(28px, 3.5vw, 44px);
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
  user-select: none;
}
.rail-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 56px rgba(0,91,123,.14), 0 6px 14px rgba(13,39,51,.06); }
.rail-card__idx {
  font-family: var(--disp);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--teal-softer);
  position: absolute;
  top: 22px; right: 26px;
}
.rail-card__meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; margin-bottom: 18px; color: var(--aqua); }
.rail-card__name {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.55;
  margin-bottom: 16px;
}
.rail-card__name--sm { font-size: clamp(19px, 2.1vw, 24px); }
.rail-card__desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }
.rail-card__etc {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 10px;
}
.rail-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--teal-softer);
  color: var(--teal);
  border-radius: 999px;
  padding: 4px 16px;
}
.rail-card__tag--link { background: var(--sun); color: var(--sun-ink); transition: transform .2s; }
.rail-card__tag--link:hover { transform: rotate(-2deg) scale(1.05); }
.rail-card--more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--cream);
  border: 1px dashed #D9CFBC;
  box-shadow: none;
  text-align: center;
}
.rail-card--more img { width: 120px; }
.rail-card--more p { font-size: 16px; color: var(--teal); }

/* ---------- 03 Co.Tools ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .tools-grid { grid-template-columns: 1fr; } }
.tool {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13,39,51,.05);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.tool:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 24px 44px rgba(0,164,198,.14); }
.tool img { flex-shrink: 0; border-radius: 12px; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.tool:hover img { transform: scale(1.15) rotate(-4deg); }
.tool h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tool p { font-size: 13px; color: var(--ink-soft); }
.tool__arrow {
  margin-left: auto;
  align-self: center;
  font-size: 18px;
  color: var(--aqua);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}
.tool:hover .tool__arrow { opacity: 1; transform: none; }
.tag-new {
  display: inline-block;
  background: var(--sun);
  color: var(--sun-ink);
  font-size: 11px;
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ---------- 04 プロダクト図鑑（温存） ---------- */
.section--zukan {
  max-width: none;
  background: linear-gradient(150deg, var(--teal-deep), var(--teal) 55%, #006e8b);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.zukan__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 820px) { .zukan__inner { grid-template-columns: 1fr; } }
.zukan__num {
  font-family: var(--disp);
  font-size: clamp(76px, 11vw, 140px);
  line-height: 1;
  letter-spacing: .02em;
}
.zukan__plus { color: var(--sun); }
.zukan__scope {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
}
.zukan__title { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: .08em; margin: 14px 0 22px; }
.zukan__lead { color: rgba(255,255,255,.88); font-size: 14.5px; margin-bottom: 34px; }
.zukan__icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.zukan__icons img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.zukan__note {
  max-width: var(--max-w);
  margin: 48px auto 0;
  color: var(--sun);
  font-size: 16px;
  letter-spacing: .1em;
}

/* ---------- 05 会社案内 ---------- */
.about {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.about__quote {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: .06em;
  line-height: 1.7;
  margin-bottom: 28px;
}
.about__body { color: var(--ink-soft); margin-bottom: 36px; max-width: 560px; }
.about__bodywrap { margin-bottom: 36px; max-width: 560px; }
.about__bodywrap p { color: var(--ink-soft); margin-bottom: 14px; }
.about__bodywrap p:last-child { margin-bottom: 0; }
.about__facts { list-style: none; border-top: 1px solid var(--ink-mute); margin-bottom: 36px; }
.about__facts li {
  display: flex;
  gap: 24px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.about__facts span { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--teal); flex-shrink: 0; width: 48px; padding-top: 4px; }
.about__sec { border-radius: 6px; }
.about__secrow { display: flex; align-items: center; gap: 14px; }
.about__secrow img { border-radius: 6px; flex-shrink: 0; }
.about__secrow span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  line-height: 1.7;
  color: var(--ink-mute);
}
.about__books { position: relative; padding-top: 12px; }
.about__books-label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-mute); margin-bottom: 18px; }
.bookstack { display: flex; gap: 12px; }
.bookstack a { transition: transform .3s; }
.bookstack a:hover { transform: translateY(-6px) rotate(.5deg); }
.bookstack img { border-radius: 4px; box-shadow: 0 10px 24px rgba(13,39,51,.18); }
.about__books { position: relative; }
.about__robo {
  position: absolute;
  right: -8px;
  bottom: -34px;
  width: 118px;
  margin: 0;
  animation: floaty 5s ease-in-out infinite;
}
@media (max-width: 820px) {
  .about__books { max-width: 380px; padding-bottom: 26px; }
  .about__robo { width: 96px; right: 0; bottom: -18px; }
}

/* ---------- 06 NEWS ---------- */
.news-list { list-style: none; border-top: 1px solid var(--ink-mute); }
.news-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .25s, padding-left .25s;
}
.news-list li:hover { background: #fff; padding-left: 14px; }
.news-list time { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); flex-shrink: 0; }
.news-tag {
  font-size: 10.5px;
  font-weight: 700;
  border: 1.5px solid var(--aqua);
  color: var(--teal);
  border-radius: 999px;
  padding: 1px 10px;
  flex-shrink: 0;
}
.news-list p { font-size: 14px; }
.news-new {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.7;
  background: var(--sun);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 9px;
}
.news-new--drawer { font-size: 11px; margin-left: 10px; vertical-align: middle; }
@media (max-width: 640px) {
  .news-list li { flex-wrap: wrap; gap: 10px; }
  .news-list p { width: 100%; }
  .news-link { flex-wrap: wrap; gap: 10px; }
  .news-link .news-arrow { display: none; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(100px, 14vw, 180px) var(--pad);
  text-align: center;
  overflow: hidden;
  background: var(--paper);
}
.cta__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  animation: blobMove 18s ease-in-out infinite alternate;
}
.cta__blob--a { width: 480px; height: 480px; background: var(--teal-soft); top: -120px; right: -80px; }
.cta__blob--b { width: 380px; height: 380px; background: rgba(0,198,169,.30); bottom: -100px; left: -60px; animation-delay: -6s; }
.cta__blob--c { width: 220px; height: 220px; background: rgba(252,207,39,.35); top: 30%; left: 12%; animation-delay: -12s; }
@keyframes blobMove {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
.cta__inner { position: relative; z-index: 2; }
.cta__bubble {
  display: inline-block;
  background: var(--cream-2);
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(13,39,51,.10);
  margin-bottom: 10px;
}
.cta__robo { margin: 0 auto 18px; animation: floaty 4.5s ease-in-out infinite; }
.cta__title { font-family: var(--disp); font-weight: 400; font-size: clamp(28px, 4.2vw, 46px); letter-spacing: .04em; margin-bottom: 18px; }
.cta__lead { color: var(--ink-soft); margin-bottom: 40px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  padding: clamp(40px, 6vw, 70px) var(--pad) 32px;
  overflow: hidden;
}
.footer__big {
  font-family: var(--disp);
  font-size: clamp(48px, 9.5vw, 130px);
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.22);
  white-space: nowrap;
  user-select: none;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.footer__main {
  max-width: var(--max-w);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 6vw, 80px);
}
@media (max-width: 720px) { .footer__main { grid-template-columns: 1fr; } }
.footer__brand img { filter: brightness(0) invert(1); opacity: .92; margin-bottom: 20px; }
.footer__brand p { font-size: 13px; line-height: 2; }
.footer__brand a { color: rgba(255,255,255,.82); }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 520px) { .footer__nav { grid-template-columns: 1fr 1fr; } }
.footer__h { font-family: var(--mono); font-size: 11px; letter-spacing: .25em; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer__nav a { display: block; font-size: 13px; padding: 5px 0; color: rgba(255,255,255,.8); transition: color .2s, padding-left .2s; }
.footer__nav a:hover { color: var(--sun); padding-left: 6px; }
.footer__copy {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   プロダクト図鑑ページ（Morselカタログ風）
   ============================================================ */
.zk-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 18vw, 200px) var(--pad) clamp(56px, 8vw, 90px);
  text-align: center;
}
.zk-hero__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.zk-hero__title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .04em;
  margin: 14px 0 16px;
}
.zk-hero__count { margin-bottom: 20px; }
.zk-hero__num {
  font-family: var(--disp);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  color: var(--teal);
}
.zk-hero__plus { font-family: var(--disp); font-size: clamp(24px, 3vw, 36px); color: var(--sun); margin-right: 14px; }
.zk-hero__unit { font-size: 13px; color: var(--ink-mute); }
.zk-hero__lead { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 30px; }
.robo-say--center { justify-content: center; margin-bottom: 0; }

.zk-hero--slim { padding: clamp(120px, 15vw, 170px) var(--pad) clamp(28px, 4vw, 44px); }

/* フィルターチップ */
.zk-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 var(--pad);
  margin: 0 auto clamp(34px, 5vw, 54px);
  max-width: var(--max-w);
}
.zk-chip {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, translate .2s;
}
.zk-chip:hover { border-color: var(--aqua); color: var(--teal); translate: 0 -2px; }
.zk-chip.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* 統一グリッド */
.zk-grid-wrap {
  max-width: calc(var(--max-w) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 9vw, 100px);
}
.zk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px 8px;
}
@media (max-width: 480px) { .zk-grid { grid-template-columns: repeat(2, 1fr); } }

/* 小道具パネル（仮想ページ内の7ツール展開） */
.zk-detail__card--wide { max-width: 720px; }
.zk-tools--panel { text-align: left; margin: 28px 0 10px; }
.zk-tools[hidden] { display: none; } /* display:gridがhidden属性に勝たないように */

/* 棚 */
.zk-shelf {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--pad);
}
.zk-shelf--tint {
  max-width: none;
  background: var(--cream);
}
.zk-shelf--tint .zk-shelf__in,
.zk-shelf--tint > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.zk-shelf__head { margin-bottom: clamp(28px, 4vw, 48px); }
.zk-shelf__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--aqua);
  margin-bottom: 10px;
}
.zk-shelf__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .1em;
}

/* 主役（Morselのフィーチャー皿風） */
.zk-feature {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4.5vw, 52px);
  margin-bottom: clamp(40px, 6vw, 60px);
}
.zk-feature__icon {
  width: clamp(96px, 12vw, 132px);
  flex-shrink: 0;
  border-radius: 26%;
  box-shadow: 0 22px 40px rgba(13,39,51,.16), 0 4px 10px rgba(13,39,51,.06);
}
.zk-feature__name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.zk-feature__desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.zk-feature__minicon {
  width: 44px;
  border-radius: 24%;
  box-shadow: 0 8px 16px rgba(13,39,51,.14);
  margin-bottom: 14px;
}

/* 実機スクリーンショット入りスマホフレーム */
.zk-phone {
  position: relative;
  flex-shrink: 0;
  width: clamp(150px, 17vw, 196px);
  border: 7px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 56px rgba(13,39,51,.22), 0 6px 14px rgba(13,39,51,.08);
  rotate: -2.5deg;
  background: #fff;
}
.zk-phone::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 6px;
  border-radius: 999px;
  background: var(--ink);
  opacity: .9;
}
.zk-phone img { display: block; width: 100%; }

/* 小道具7本の展開グリッド */
.zk-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 52px);
}
@media (max-width: 640px) { .zk-tools { grid-template-columns: 1fr; } }
.zk-tool {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 20px;
  transition: translate .25s, box-shadow .25s;
}
.zk-tool:hover { translate: 0 -3px; box-shadow: 0 16px 30px rgba(0,164,198,.12); }
.zk-tool img { width: 40px; flex-shrink: 0; border-radius: 10px; }
.zk-tool h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.zk-tool p { font-size: 12px; color: var(--ink-soft); line-height: 1.7; }

/* サテライト（小さな住人たち・コラージュ風） */
.zk-sats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.5vw, 24px);
}
.zk-sats--3 { grid-template-columns: repeat(3, 1fr); }
.zk-sat {
  position: relative;
  text-align: center;
  padding: 14px 8px;
  border-radius: 18px;
}
/* NEWバッジ（アイコン右上に少し重なる横長ピル） */
.zk-sat__new {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  margin-left: 12px;          /* アイコン中心から右へ＝右上に少し重なる */
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--sun-ink);
  background: var(--sun);
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 3px 8px 4px;
  box-shadow: 0 3px 8px rgba(13,39,51,.2);
  pointer-events: none;
}
.zk-sat img {
  width: clamp(52px, 6.5vw, 64px);
  margin: 0 auto 10px;
  border-radius: 26%;
  box-shadow: 0 10px 20px rgba(13,39,51,.13);
}
.zk-sat__name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.zk-sat__meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.zk-sat__links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.zk-sat__links a {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal);
  background: var(--cream-2);
  border-radius: 999px;
  padding: 2px 11px;
  transition: background .2s, color .2s;
}
.zk-shelf--tint .zk-sat__links a { background: #fff; }
.zk-sat__links a:hover { background: var(--teal); color: #fff; }
@media (max-width: 700px) {
  .zk-feature { flex-wrap: wrap; }
  .zk-sats, .zk-sats--3 { grid-template-columns: repeat(2, 1fr); }
}

.zk-item__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--aqua);
  margin-bottom: 8px;
}
.zk-item__name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.zk-item__kana {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 10px;
  letter-spacing: .08em;
}
.zk-item__desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.zk-item__links { display: flex; gap: 10px; flex-wrap: wrap; }
.zk-item__links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--cream-2);
  border-radius: 999px;
  padding: 5px 16px;
  transition: transform .2s, background .2s, color .2s;
}
.zk-shelf--tint .zk-item__links a { background: #fff; }
.zk-item__links a:hover { transform: translateY(-2px) rotate(-1deg); background: var(--teal); color: #fff; }

/* プロダクト仮想ページ（Morselのディテール画面風・全画面） */
.zk-sat[data-desc] { cursor: pointer; transition: translate .25s; }
.zk-sat[data-desc]:hover { translate: 0 -4px; }
/* iOSでも確実に背面を固定するロック（topはJSがスクロール位置に合わせて設定） */
body.zk-lock {
  overflow: hidden;
  position: fixed;
  left: 0; right: 0;
  width: 100%;
}
.zk-detail__bg {
  position: fixed;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(1.1);
  opacity: .35;
  scale: 1.25;
  pointer-events: none;
}
.zk-detail__card {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
.zk-detail__say {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 10px;
}
.zk-detail__say img {
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(13,39,51,.12);
}
.zk-detail__say p {
  background: var(--cream-2);
  border-radius: 18px 18px 18px 4px;
  padding: 9px 18px;
  font-size: 13.5px;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(13,39,51,.08);
}
.zk-detail__icon {
  width: clamp(104px, 22vw, 136px);
  margin: 0 auto 18px;
  border-radius: 26%;
  view-transition-name: zkhero;
  box-shadow: 0 36px 64px rgba(13,39,51,.28), 0 8px 18px rgba(13,39,51,.1);
}
.zk-detail__name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(23px, 4.2vw, 29px);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.zk-detail__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--teal);
  margin-bottom: 16px;
}
.zk-detail__desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.zk-detail__links { justify-content: center; }
.zk-detail__links a {
  font-size: 14px !important;
  padding: 10px 28px !important;
  background: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0,91,123,.25);
}
.zk-detail__links a:hover { background: var(--teal-deep) !important; }
::view-transition-group(zkhero) {
  animation-duration: .45s;
  animation-timing-function: cubic-bezier(.22,1,.36,1);
}

/* 著書の棚 */
.zk-books { display: flex; gap: clamp(14px, 3vw, 26px); justify-content: center; }
.zk-books a { transition: transform .3s; max-width: 180px; }
.zk-books a:hover { transform: translateY(-8px) rotate(.6deg); }
.zk-books img { border-radius: 6px; box-shadow: 0 18px 36px rgba(13,39,51,.2); }
.zk-books__note {
  text-align: center;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--ink-mute);
}

@media (max-width: 560px) {
  .zk-item { gap: 16px; }
  .zk-item__icon { width: 64px; }
}

/* ============================================================
   お知らせ・FAQ・流れページ
   ============================================================ */
.news-year { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) clamp(36px, 5vw, 56px); }
.news-year__h {
  font-family: var(--disp);
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--teal-soft);
  margin-bottom: 14px;
}
.news-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
}
.news-arrow { margin-left: auto; color: var(--aqua); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
li:hover .news-arrow { opacity: 1; transform: none; }
.news-link--plain { cursor: default; }

.faq-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) clamp(40px, 6vw, 70px); }
.faq {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(13,39,51,.04);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 24px;
  font-weight: 700;
  font-size: 14.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  translate: 0 -50%;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--aqua);
  transition: rotate .3s;
}
.faq[open] summary::after { rotate: 45deg; }
.faq__a { padding: 0 24px 22px; }
.faq__a p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__note { font-size: 12px !important; color: var(--ink-mute) !important; }

.flow-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) clamp(40px, 6vw, 70px); }
.flow { list-style: none; position: relative; margin-bottom: clamp(40px, 6vw, 56px); }
.flow::before {
  content: "";
  position: absolute;
  left: 27px; top: 20px; bottom: 20px;
  width: 2px;
  background: var(--teal-soft);
}
.flow-step {
  display: flex;
  gap: 22px;
  padding: 18px 0;
  position: relative;
}
.flow-step__num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--disp);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0,91,123,.25);
  position: relative;
  z-index: 1;
}
.flow-step h2 { font-family: var(--disp); font-weight: 400; font-size: 19px; margin: 6px 0 8px; }
.flow-step p { font-size: 13.5px; color: var(--ink-soft); max-width: 520px; }
.flow-step__free {
  font-size: 13px;
  color: var(--sun-ink);
  background: var(--sun);
  border-radius: 999px;
  padding: 2px 12px;
  margin-left: 10px;
  vertical-align: 3px;
}
.flow-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 30px;
}
@media (max-width: 640px) { .flow-plans { grid-template-columns: 1fr 1fr; } }
.flow-plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(13,39,51,.04);
}
.flow-plan--hot { border-color: var(--sun); background: var(--cream); }
.flow-plan__badge {
  position: absolute;
  top: -10px; left: 50%;
  translate: -50% 0;
  background: var(--sun);
  color: var(--sun-ink);
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 12px;
}
.flow-plan h3 { font-size: 14px; margin-bottom: 6px; }
.flow-plan p { font-size: 11.5px; color: var(--ink-mute); }
.flow-notes { list-style: none; border-top: 1px solid var(--hairline); padding-top: 18px; }
.flow-notes li { font-size: 12.5px; color: var(--ink-mute); padding: 4px 0 4px 1.2em; position: relative; }
.flow-notes li::before { content: "・"; position: absolute; left: 0; color: var(--aqua); }

/* ============================================================
   お悩み別ページ
   ============================================================ */
.sol-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 var(--pad);
  margin: 0 auto clamp(34px, 5vw, 50px);
  max-width: var(--max-w);
}
.sol-wrap {
  max-width: calc(760px + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 8vw, 90px);
}
.sol-panel { display: none; }
.sol-panel.is-active { display: block; animation: solIn .55s cubic-bezier(.22,1,.36,1); }
/* 「すべて」表示時：連続するパネルの間に区切り線 */
.sol-panel.is-active ~ .sol-panel.is-active {
  margin-top: clamp(44px, 7vw, 64px);
  padding-top: clamp(40px, 6vw, 56px);
  border-top: 1px solid var(--hairline);
}
@keyframes solIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.sol-panel .chat { margin-bottom: 26px; }
.sol-desc { color: var(--ink-soft); margin-bottom: 32px; }
.sol-panel .svc-panel__sub { margin-top: 6px; }
.svc-panel__shots--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 460px;
}

/* ============================================================
   吹き出しの改行制御
   スペース・句読点の位置でだけ折り返す（1文字だけの孤立改行を防ぐ）
   ============================================================ */
.bubble, .robo-say__bubble, .cta__bubble,
.chat__user, .chat__robo p, .zk-detail__say p,
.cta__title, .cta__lead {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .robo-say__bubble { font-size: 13.5px; padding: 9px 16px; }
  .chat__robo p { font-size: 13.5px; }
  .hero .bubble { font-size: 13px; }
  .cta__bubble { font-size: 13px; }
  .zk-detail__say p { font-size: 12.5px; }
}

/* ============================================================
   マイクロインタラクション
   ============================================================ */

/* タイプライター */
.tch { opacity: 0; transition: opacity .04s; }
.tch.on { opacity: 1; }
.tcaret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--teal);
  vertical-align: -0.12em;
  margin-left: 2px;
  animation: caretBlink .8s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* スポットライトホバー */
@media (pointer: fine) {
  .svc-card, .rail-card, .tool, .zk-tool, .demo-btn { position: relative; overflow: hidden; }
  .svc-card::after, .rail-card::after, .tool::after, .zk-tool::after, .demo-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(0,164,198,.10), transparent 65%);
  }
  .svc-card:hover::after, .rail-card:hover::after, .tool:hover::after,
  .zk-tool:hover::after, .demo-btn:hover::after { opacity: 1; }
  .rail-card { transform-style: preserve-3d; will-change: transform; }
}

/* マグネットボタン */
.btn--primary, .btn--light, .btn--sun, .header-cta { transition-property: transform, box-shadow, background, translate; transition-duration: .25s; }

/* インクリビール（アイコンが墨のように円形に現れる） */
.reveal .svc-card__icon, .reveal .zk-feature__icon, .zk-sat.reveal img,
.tool.reveal img, .zk-tool.reveal img {
  clip-path: circle(0% at 50% 60%);
  transition: clip-path 1s cubic-bezier(.22,1,.36,1) .15s;
}
.reveal.in .svc-card__icon, .reveal.in .zk-feature__icon, .zk-sat.reveal.in img,
.tool.reveal.in img, .zk-tool.reveal.in img {
  clip-path: circle(120% at 50% 60%);
}

/* ヒーローのスクロール退場（流体ごと静かに沈む） */
@supports (animation-timeline: scroll()) {
  .hero__inner { animation: heroOut linear both; animation-timeline: scroll(); animation-range: 0 90vh; }
  .hero__robo {
    animation: softIn 1.2s .8s cubic-bezier(.22,1,.36,1) both, heroOut linear both;
    animation-timeline: auto, scroll();
    animation-range: normal, 0 90vh;
  }
  /* transformはモバイルの中央寄せと衝突するためtranslateプロパティで */
  @keyframes heroOut {
    to { translate: 0 -70px; opacity: 0; }
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 07 メルマガ帯 ---------- */
.nlband { padding-top: 0; padding-bottom: 0; scroll-margin-top: 72px; }
.nlband__card {
  position: relative;
  overflow: hidden;
  background: var(--teal-deep);
  border-radius: 28px;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
}
.nlband__deco {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(252,207,39,.14);
  top: -170px; right: -120px;
  pointer-events: none;
}
.nlband__text { position: relative; z-index: 1; max-width: 500px; }
.nlband__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--sun);
  border: 1.5px solid rgba(252,207,39,.6);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 14px;
}
.nlband__badge span { opacity: .6; }
.nlband__title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: .03em;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 16px;
}
.nlband__title span { display: inline-block; }
.nlband__lead { color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.9; }
.nlband__action { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nlband__action .btn { white-space: nowrap; }
.nlband__note { color: var(--sun); font-size: 13px; }

/* 届くメールの見本（中身は線だけ。実際のニュースは載せない） */
.nlband__mail { position: relative; z-index: 1; flex-shrink: 0; width: min(300px, 100%); margin-top: 34px; }
.nlband__robo {
  position: absolute;
  top: -62px; right: -16px;
  width: 92px; height: auto;
  z-index: 2;
  animation: floaty 4.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.18));
}
.nlband__hello {
  position: absolute;
  top: -48px; right: 82px;
  z-index: 2;
  background: var(--cream-2);
  color: var(--ink);
  font-size: 13px;
  border-radius: 14px;
  padding: 3px 12px;
}
.mailmock {
  background: var(--paper);
  border-radius: 18px;
  padding: 20px 20px 22px;
  box-shadow: 0 24px 50px rgba(0,0,0,.25);
  transform: rotate(2deg);
}
.mailmock__from {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap;
}
.mailmock__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); }
.mailmock__time { margin-left: auto; margin-right: 44px; font-family: var(--mono); font-weight: 400; color: var(--ink-mute); }
.mailmock__subject {
  font-family: var(--disp);
  font-size: 15px;
  color: var(--ink);
  margin: 6px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mailmock__h { font-size: 11.5px; font-weight: 700; color: var(--teal); margin: 12px 0 6px; }
.mailmock__h--sun { color: var(--sun-ink); }
.mailmock__bar { display: block; height: 7px; border-radius: 4px; background: var(--teal-softer); margin-top: 6px; }
.mailmock__bar--m { width: 70%; }
.mailmock__bar--s { width: 45%; }
@media (max-width: 760px) {
  .nlband__card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nlband__mail { align-self: center; margin-top: 52px; width: min(250px, 86%); }
  .nlband__action .btn--lg { padding-left: 32px; padding-right: 32px; }
  .mailmock { padding: 16px 16px 18px; }
  .mailmock__h { margin: 9px 0 4px; }
  .mailmock__bar { height: 6px; margin-top: 5px; }
}
