/* ============================================
   QR勤怠 LP スタイルシート
   ============================================ */
:root {
  --c-teal: #0EB2AC;
  --c-teal-dark: #0A8F8A;
  --c-navy: #14293D;
  --c-ink: #33373A;
  --c-ink-soft: rgba(51, 55, 58, .68);
  --c-cream: #FAFAF7;
  --c-sand: #F1F0EA;
  --c-mist: #EAF7F6;
  --c-accent: #EE8C4E;
  --c-accent-dark: #D9722F;
  --c-line: rgba(20, 41, 61, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-cream);
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.rounded { font-family: 'M PLUS Rounded 1c', sans-serif; }

.grad-text {
  background: linear-gradient(90deg, var(--c-teal) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 全面グレインテクスチャ（うっすら質感を足すだけ） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%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");
  background-size: 180px 180px;
}
@media (max-width: 560px) {
  body::after { display: none; }
}

/* ---------- keyframes ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- scroll reveal (.rv / JS有効時のみ初期非表示) ---------- */
html.has-js .rv {
  opacity: 0;
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1), transform .85s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
html.has-js .rv-up    { transform: translateY(52px); }
html.has-js .rv-left  { transform: translateX(-70px); }
html.has-js .rv-right { transform: translateX(70px); }
html.has-js .rv-scale { transform: scale(.85); }
html.has-js .rv-var   { transform: var(--rv0); }
html.has-js .rv.rv-in {
  opacity: 1;
  transform: var(--rv1, none);
}
.price-card.left,
.price-card.right { transform: var(--rv1, none); }
.testimonial-card.rv-var { transform: var(--rv1, none); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .float-deco { animation: none !important; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 56px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.site-nav .nav-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-navy);
  transition: color .2s ease;
}
.site-nav .nav-link:hover { color: var(--c-teal-dark); }
.nav-cta {
  padding: 13px 28px;
  background: var(--c-navy);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--c-teal-dark); }

/* ---------- micro-interactions (JS駆動) ---------- */
[data-magnetic] {
  transition: transform .25s cubic-bezier(.2, 1, .3, .1);
}
[data-tilt] {
  transition: transform .15s ease, box-shadow .3s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  [data-magnetic], [data-tilt] { transition: none; }
}

/* ---------- decorations ---------- */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(20, 41, 61, .12);
  pointer-events: none;
}
.float-deco {
  position: absolute;
  pointer-events: none;
  animation: floatY 5s ease-in-out infinite;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 56px 170px;
  background: var(--c-cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(38% 45% at 15% 20%, rgba(14, 178, 172, .32), transparent 70%),
    radial-gradient(32% 40% at 88% 12%, rgba(238, 140, 78, .26), transparent 70%),
    radial-gradient(45% 50% at 60% 92%, rgba(20, 41, 61, .1), transparent 70%);
  filter: blur(60px);
  animation: meshDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2.5%, 3%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero-inner {
  max-width: 1328px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 9px 18px;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-teal-dark);
  transform: rotate(-1.5deg);
  animation: fadeInUp .7s ease both;
  box-shadow: 0 4px 14px rgba(20, 41, 61, .06);
  white-space: nowrap;
}
.hero h1 {
  margin: 26px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 68px;
  line-height: 1.25;
  color: var(--c-navy);
  animation: fadeInUp .7s ease .1s both;
}
.hero-sub {
  margin: 14px 0 0;
  font-size: 23px;
  font-weight: 700;
  color: var(--c-teal-dark);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  animation: fadeInUp .7s ease .16s both;
}
.hero-desc {
  margin: 26px 0 0;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--c-ink-soft);
  max-width: 460px;
  animation: fadeInUp .7s ease .22s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeInUp .7s ease .3s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 19px 36px;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-teal-dark) 100%);
  background-size: 165% 165%;
  background-position: 0% 50%;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 14px 28px -10px rgba(20, 41, 61, .4);
  transition: background-position .5s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(14, 178, 172, .45);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-navy);
  font-weight: 700;
  font-size: 15.5px;
  border-bottom: 2px solid var(--c-navy);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover { color: var(--c-teal-dark); border-color: var(--c-teal-dark); }

/* hero phones */
.hero-visual { position: relative; height: 560px; }
.phone {
  position: absolute;
  width: 232px;
  height: 478px;
}
.phone-1 { left: 8px; top: 20px; transform: rotate(6deg); }
.phone-2 { right: 10px; bottom: 0; transform: rotate(-5deg); }
.phone-body {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--c-navy);
  border-radius: 48px;
  padding: 14px;
  box-shadow: 0 26px 50px -18px rgba(20, 41, 61, .3);
}
.phone-2 .phone-body { box-shadow: 0 30px 60px -16px rgba(20, 41, 61, .4); }
.phone-btn { position: absolute; width: 3px; background: var(--c-navy); }
.phone-btn.l1 { left: -3px; top: 110px; height: 32px; border-radius: 2px 0 0 2px; }
.phone-btn.l2 { left: -3px; top: 154px; height: 50px; border-radius: 2px 0 0 2px; }
.phone-btn.r1 { right: -3px; top: 130px; height: 64px; border-radius: 0 2px 2px 0; }
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch-wrap { flex: none; height: 30px; display: flex; align-items: center; justify-content: center; }
.phone-notch { width: 66px; height: 19px; background: var(--c-navy); border-radius: 10px; }
.phone-content {
  flex: 1;
  padding: 10px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.phone-content.checkout { background: linear-gradient(180deg, #fff 0%, #fdf3ea 100%); }
.phone-content.checkin { background: linear-gradient(180deg, #fff 0%, var(--c-mist) 100%); }
.phone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-icon.orange { background: var(--c-accent); }
.phone-icon.teal {
  background: var(--c-teal);
  animation: checkPop .5s cubic-bezier(.34, 1.56, .64, 1) .7s both;
}
.phone-icon.teal svg {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: checkDraw .4s ease .95s forwards;
}
@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-icon.teal { animation: none; }
  .phone-icon.teal svg { animation: none; stroke-dashoffset: 0; }
}
.phone-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--c-navy);
  white-space: nowrap;
}
/* 見出しの改行制御：br-mobile はスマホ幅のみ表示、br-desktop はそれ以外で表示 */
.br-mobile { display: none; }
.phone-msg { font-size: 12px; color: var(--c-ink-soft); text-align: center; line-height: 1.6; }
.phone-stamp {
  padding: 6px 15px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.phone-stamp.orange { color: var(--c-accent-dark); }
.phone-stamp.teal { color: var(--c-teal-dark); }
.phone-home-wrap { flex: none; height: 24px; display: flex; align-items: center; justify-content: center; }
.phone-home { width: 104px; height: 4px; background: var(--c-navy); border-radius: 2px; opacity: .25; }
.hero-chip {
  position: absolute;
  padding: 10px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 26px -10px rgba(20, 41, 61, .25);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-navy);
  border: 1px dashed var(--c-line);
}
.hero-chip.c1 { left: -6px; bottom: 36px; transform: rotate(-4deg); }
.hero-chip.c2 { right: -6px; top: 10px; transform: rotate(4deg); }
.hero-chip.c3 { right: -6px; bottom: 26px; transform: rotate(10deg); }

/* ---------- section common ---------- */
.section { position: relative; padding: 130px 56px; overflow: hidden; }
.section-head { max-width: 640px; margin: 0 auto; text-align: center; position: relative; }
.section-label {
  color: var(--c-teal-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
}
.section-title {
  margin: 14px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--c-navy);
  line-height: 1.5;
}

/* ---------- problems ---------- */
.problems { background: var(--c-sand); padding: 100px 56px 132px; }
.problems-grid {
  margin: 64px auto 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flip-card {
  position: relative;
  overflow: hidden;
  height: 240px;
  border-radius: 20px;
}
.flip-card.light { background: #fff; box-shadow: 0 14px 30px -14px rgba(20, 41, 61, .18); }
.flip-card.dark { background: var(--c-navy); box-shadow: 0 22px 44px -18px rgba(20, 41, 61, .35); }
.flip-inner {
  width: 100%;
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner { transform: translateY(-240px); }
.flip-face {
  width: 100%;
  height: 240px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.flip-face.front { align-items: center; text-align: center; }
.flip-face.back { gap: 10px; border-top: 1px solid var(--c-line); }
.flip-card.dark .flip-face.back { border-top: 1px solid rgba(255, 255, 255, .12); }

/* 表面：大きめアイコン + キーワードのみ */
.flip-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.flip-card.light .flip-icon-lg { background: var(--c-mist); color: var(--c-accent); }
.flip-card.dark .flip-icon-lg { background: rgba(255, 255, 255, .1); color: var(--c-teal); }
.flip-card:hover .flip-icon-lg { transform: scale(1.08) rotate(-4deg); }
.flip-keyword {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 19px;
}
.flip-card.light .flip-keyword { color: var(--c-navy); }
.flip-card.dark .flip-keyword { color: #fff; }

/* 裏面：テーマ + 詳細（ホバー時のみ見える） */
.flip-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.flip-card.light h3 { color: var(--c-navy); }
.flip-card.dark h3 { color: #fff; }
.flip-card p { margin: 0; font-size: 14.5px; line-height: 1.9; }
.flip-card.light p { color: var(--c-ink-soft); }
.flip-card.dark p { color: rgba(255, 255, 255, .8); }

/* ---------- features ---------- */
/* position:sticky は祖先の overflow:hidden で無効化されるため、
   このセクションだけは overflow を解除し、装飾は専用ラッパーで個別にクリップする */
.features { background: var(--c-cream); padding-top: 148px; padding-bottom: 108px; overflow: visible; }
.features-deco-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.features-list { max-width: 1140px; margin: 64px auto 0; }
/* スティッキースクロール（デスクトップ：画像を固定しテキストが流れる） */
.features-sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.features-sticky-media {
  position: sticky;
  top: 100px;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(20, 41, 61, .28);
  background: var(--c-mist);
}
.sticky-media-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}
.sticky-media-item.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.sticky-media-item img { width: 100%; height: 100%; object-fit: cover; }
.sticky-media-item .feature-mock { height: 100%; }

.features-sticky-text { display: flex; flex-direction: column; }
html.has-js .sticky-text-block {
  opacity: .38;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
html.has-js .sticky-text-block.is-active { opacity: 1; transform: translateY(0); }
.sticky-text-block {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.mobile-feature-img { display: none; }

.feature-num {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--c-teal);
}
.feature-text h3 { margin: 10px 0; font-size: 22px; font-weight: 700; color: var(--c-navy); }
.feature-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-ink-soft);
  max-width: 440px;
}

/* feature 01 mock (QR打刻フォンモックアップ) */
.feature-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 100%;
  background: linear-gradient(160deg, var(--c-mist) 0%, #fff 100%);
}
.feature-mock .qr-board {
  width: 120px;
  height: 150px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--c-line);
  box-shadow: 0 10px 22px -12px rgba(20, 41, 61, .3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: rotate(-4deg);
}
.feature-mock .qr-board svg { color: var(--c-navy); }
.feature-mock .qr-board span { font-size: 10.5px; font-weight: 700; color: var(--c-navy); }
.feature-mock .mock-arrow { color: var(--c-teal); flex: none; }
.feature-mock .mini-phone {
  width: 110px;
  height: 210px;
  background: var(--c-navy);
  border-radius: 24px;
  padding: 7px;
  transform: rotate(4deg);
  box-shadow: 0 14px 28px -12px rgba(20, 41, 61, .4);
}
.feature-mock .mini-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--c-mist) 100%);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.feature-mock .mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-mock .mini-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 11.5px;
  color: var(--c-navy);
}
.feature-mock .mini-stamp {
  padding: 3px 9px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 8.5px;
  color: var(--c-teal-dark);
  font-weight: 700;
}

/* feature 02 mock（シフト管理：常勤/パート区分・早番/遅番/時短・残業自動判定） */
.feature-mock.shift-scene { padding: 28px; }
.shift-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 16px 32px -16px rgba(20, 41, 61, .28);
  transform: rotate(-1.2deg);
}
.shift-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-navy);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--c-line);
}
.shift-auto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--c-accent-dark);
  background: rgba(238, 140, 78, .14);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}
.shift-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}
.shift-row:last-child { border-bottom: none; }
.shift-tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.shift-tag.full { background: var(--c-navy); color: #fff; }
.shift-tag.part { background: var(--c-mist); color: var(--c-teal-dark); }
.shift-name { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--c-navy); white-space: nowrap; }
.shift-time {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--c-ink-soft);
  white-space: nowrap;
}

/* feature 03 mock（既存フォーマットを踏襲したExcel自動出力） */
.feature-mock.excel-scene { padding: 28px; }
.excel-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 16px 32px -16px rgba(20, 41, 61, .28);
  transform: rotate(1deg);
}
.excel-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-navy);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--c-line);
}
.excel-card-head svg { color: var(--c-teal); flex: none; }
.excel-grid { display: flex; flex-direction: column; }
.excel-grid-row {
  display: grid;
  grid-template-columns: 20px 24px 1fr 1fr 48px;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 10.5px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.excel-grid-row:last-child { border-bottom: none; }
.excel-grid-row.head {
  font-weight: 700;
  color: var(--c-teal-dark);
  background: var(--c-mist);
  border-radius: 8px;
  padding: 7px 4px;
}
.excel-pill {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.excel-pill.work { background: rgba(14, 178, 172, .14); color: var(--c-teal-dark); }
.excel-pill.paid { background: rgba(238, 140, 78, .16); color: var(--c-accent-dark); }
.excel-pill.off { background: rgba(20, 41, 61, .08); color: var(--c-ink-soft); }

/* feature 04 mock（履歴を残す退職処理・新規登録） */
.feature-mock.staff-scene { padding: 28px; }
.staff-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 32px -16px rgba(20, 41, 61, .28);
  transform: rotate(-1deg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.staff-card-head {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-navy);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--c-line);
}
.staff-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}
.staff-row:last-child { border-bottom: none; }
.staff-row.muted { opacity: .6; }
.staff-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}
.staff-avatar.teal { background: var(--c-teal); }
.staff-avatar.mist { background: var(--c-ink-soft); }
.staff-avatar.accent { background: var(--c-accent); }
.staff-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.staff-name { font-size: 12.5px; font-weight: 700; color: var(--c-navy); }
.staff-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.staff-tag.active { background: rgba(14, 178, 172, .14); color: var(--c-teal-dark); }
.staff-tag.archived { background: rgba(20, 41, 61, .08); color: var(--c-ink-soft); }
.staff-tag.joined { background: rgba(238, 140, 78, .16); color: var(--c-accent-dark); }

/* feature mini cards（同サイズのカードを4つ横並び） */
.feature-cards {
  border-top: 1px dashed var(--c-line);
  padding-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mini-card {
  padding: 28px 22px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 24px -16px rgba(20, 41, 61, .15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mini-card:hover { box-shadow: 0 18px 34px -16px rgba(14, 178, 172, .3); }
.mini-card .icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--c-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-teal);
}
.mini-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--c-navy); }
.mini-card p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--c-ink-soft); }

/* ---------- flow ---------- */
.flow { background: var(--c-sand); padding-top: 140px; padding-bottom: 118px; }
.flow .section-title { font-size: 33px; line-height: 1.55; white-space: nowrap; }
.flow-list { max-width: 720px; margin: 72px auto 0; position: relative; }
.flow-step {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 52px;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-step.indent { margin-left: 64px; }
.flow-num {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  background: var(--c-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 12px 24px -8px rgba(14, 178, 172, .5);
  position: relative;
  z-index: 1;
}
.flow-body { padding-top: 14px; }
.flow-body h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--c-navy); }
.flow-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: 420px;
}

/* ---------- security ---------- */
.security { background: var(--c-navy); color: #fff; padding-top: 108px; padding-bottom: 108px; }
.security-inner {
  max-width: 1328px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.security .section-label { color: var(--c-teal); }
.security h2 {
  margin: 14px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #fff;
  line-height: 1.55;
  white-space: nowrap;
}
.security-lead {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .65);
}
.security-items { display: flex; flex-direction: column; gap: 18px; }
.security-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, .06);
  border-radius: 16px;
}
.security-item .icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: rgba(14, 178, 172, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-teal);
}
.security-item p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .9);
}

/* ---------- pricing ---------- */
.pricing { background: var(--c-cream); padding-top: 108px; padding-bottom: 122px; }
.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(14, 178, 172, .16), transparent 70%),
    radial-gradient(35% 45% at 82% 72%, rgba(238, 140, 78, .14), transparent 70%);
}
.pricing > *:not(.deco-circle):not(.float-deco) { position: relative; z-index: 1; }
.pricing .section-title { font-size: 34px; line-height: 1.55; }
.pricing-cards {
  margin: 64px auto 0;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.price-card {
  width: 280px;
  padding: 38px 30px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: 0 20px 40px -18px rgba(20, 41, 61, .2);
  position: relative;
  z-index: 1;
}
.price-card.left  { margin-right: -24px; --rv1: rotate(-5deg) translateY(18px); }
.price-card.right { margin-left: -24px; --rv1: rotate(5deg) translateY(18px); }
.price-card.featured {
  width: 300px;
  padding: 44px 34px;
  background: linear-gradient(160deg, rgba(20, 41, 61, .94), rgba(10, 24, 38, .97));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  box-shadow: 0 30px 60px -16px rgba(20, 41, 61, .4);
  z-index: 3;
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 18px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.price-card h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--c-navy); }
.price-card.featured h3 { font-size: 21px; color: #fff; }
.price-desc { margin: 8px 0 0; font-size: 13.5px; color: var(--c-ink-soft); }
.price-card.featured .price-desc { font-size: 14px; color: rgba(255, 255, 255, .65); }
.price-divider { margin: 20px 0; height: 1px; background: var(--c-line); }
.price-card.featured .price-divider { margin: 22px 0; background: rgba(255, 255, 255, .15); }
.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  color: var(--c-ink);
}
.price-card.featured .price-features { gap: 13px; font-size: 14px; color: #fff; }
.price-amount {
  display: block;
  text-align: center;
  margin-top: 28px;
  padding: 15px;
  border-radius: 999px;
  background: var(--c-mist);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--c-teal-dark);
  transition: background .25s ease, transform .25s ease;
}
.price-amount:not(.cta):hover { background: #ddf3f1; transform: translateY(-2px); }
.price-amount.cta {
  background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-dark) 55%, var(--c-accent) 140%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  transition: background-position .5s ease;
}
.price-amount.cta:hover { background-position: 100% 50%; }
.pricing-note {
  text-align: center;
  margin-top: 56px;
  font-size: 14px;
  color: var(--c-ink-soft);
}

/* campaign banner */
.campaign {
  max-width: 920px;
  margin: 48px auto 0;
  padding: 44px 48px;
  background: var(--c-accent);
  border-radius: 28px;
  box-shadow: 0 26px 50px -20px rgba(238, 140, 78, .5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.campaign-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.campaign h3 {
  margin: 14px 0 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.campaign-btn {
  flex: none;
  padding: 18px 40px;
  background: #fff;
  color: var(--c-accent-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 10px 20px -8px rgba(20, 41, 61, .25);
  transition: transform .25s ease;
}
.campaign-btn:hover { transform: translateY(-3px); }

/* ---------- testimonials ---------- */
.testimonials { background: var(--c-sand); padding-top: 112px; padding-bottom: 112px; }
.testimonials .section-title { font-size: 34px; line-height: 1.55; }
.testimonial-grid {
  margin: 64px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.testimonial-card {
  padding: 34px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 30px -16px rgba(20, 41, 61, .15);
}
.testimonial-head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}
.testimonial-quote {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 46px;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--c-teal);
  line-height: 1;
}
.testimonial-head h3 {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 23px;
  color: var(--c-teal);
  line-height: 1.1;
}
.testimonial-card > p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-ink);
}
.testimonial-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-avatar.teal { background: rgba(14, 178, 172, .14); color: var(--c-teal-dark); }
.testimonial-avatar.orange { background: rgba(238, 140, 78, .16); color: var(--c-accent-dark); }
.testimonial-name { font-size: 13.5px; font-weight: 700; color: var(--c-navy); }
.testimonial-role { font-size: 12px; color: var(--c-ink-soft); }
.testimonial-logo { height: 36px; width: auto; object-fit: contain; flex: none; }

/* ---------- FAQ ---------- */
.faq { background: var(--c-cream); padding-top: 118px; padding-bottom: 168px; }
.faq .section-title { font-size: 34px; line-height: 1.55; }
.faq-list {
  max-width: 700px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-q { display: flex; justify-content: flex-end; }
.faq-q > div {
  max-width: 78%;
  padding: 16px 22px;
  background: var(--c-navy);
  color: #fff;
  border-radius: 20px 20px 4px 20px;
  font-size: 14.5px;
  font-weight: 700;
}
.faq-a { display: flex; justify-content: flex-start; }
.faq-a > div {
  max-width: 78%;
  padding: 16px 22px;
  background: var(--c-mist);
  color: var(--c-ink);
  border-radius: 20px 20px 20px 4px;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- contact ---------- */
.contact { padding: 0 56px 130px; background: var(--c-cream); }
.contact-box {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--c-navy);
  border-radius: 40px;
  padding: 88px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box h2 {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  position: relative;
}
.contact-box p {
  margin: 18px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .75);
  position: relative;
}
.contact-btn {
  display: inline-flex;
  margin-top: 36px;
  padding: 18px 42px;
  background: var(--c-cream);
  color: var(--c-navy);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  transition: background .25s ease, transform .25s ease;
}
.contact-btn:hover { background: #fff; transform: translateY(-2px); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: 70px 56px 32px;
  background: var(--c-cream);
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 160px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 41, 61, .08);
  white-space: nowrap;
  pointer-events: none;
}
.footer-inner {
  max-width: 1328px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink-soft);
}
.footer-nav a { transition: color .2s ease; }
.footer-nav a:hover { color: var(--c-navy); }
.footer-bottom {
  max-width: 1328px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--c-ink-soft);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .hero h1 { font-size: 52px; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .security-inner { grid-template-columns: 1fr; gap: 40px; }
  .security h2 { white-space: normal; }
  .flow .section-title { white-space: normal; }
}

@media (max-width: 900px) {
  .site-header { padding: 10px 24px; }
  .site-nav { gap: 18px; }
  .site-nav .nav-link { display: none; }
  .hero { padding: 56px 24px 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-desc br { display: none; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .section { padding: 90px 24px; }
  .problems { padding: 90px 24px; }
  .features { padding-top: 90px; padding-bottom: 90px; }
  .flow { padding-top: 90px; padding-bottom: 90px; }
  .security { padding-top: 90px; padding-bottom: 90px; }
  .pricing { padding-top: 90px; padding-bottom: 90px; }
  .testimonials { padding-top: 90px; padding-bottom: 90px; }
  .faq { padding-top: 90px; padding-bottom: 110px; }
  .hero::before { display: none; }

  /* スティッキー演出はデスクトップのみ。モバイルは画像+テキストを縦積み */
  .features-sticky { grid-template-columns: 1fr; gap: 12px; }
  .features-sticky-media { display: none; }
  html.has-js .sticky-text-block { opacity: 1; transform: none; }
  .sticky-text-block {
    min-height: auto;
    padding: 32px 0;
    border-top: 1px dashed var(--c-line);
  }
  .sticky-text-block:first-child { border-top: none; }
  .mobile-feature-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 14px 28px -16px rgba(20, 41, 61, .25);
    background: var(--c-mist);
  }
  .mobile-feature-img img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-feature-img .feature-mock { height: 100%; }

  .pricing-cards { flex-direction: column; align-items: center; gap: 32px; }
  .price-card.left,
  .price-card.right { margin: 0; --rv1: none; }
  .price-card { width: 100%; max-width: 360px; }
  .price-card.featured { width: 100%; max-width: 380px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .campaign { padding: 36px 28px; justify-content: center; text-align: center; }
  .contact { padding: 0 24px 90px; }
  .contact-box { padding: 64px 28px; }
  .site-footer { padding: 56px 24px 24px; }
  .footer-watermark { font-size: 90px; bottom: -20px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 18px; }
  .hero-badge { white-space: normal; }
  .section-title { font-size: 27px; }
  .flow .section-title,
  .security h2,
  .pricing .section-title,
  .testimonials .section-title,
  .faq .section-title { font-size: 25px; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px; gap: 12px; }
  .feature-cards { grid-template-columns: 1fr; }
  .flow-step.indent { margin-left: 0; }
  .flow-num { width: 60px; height: 60px; font-size: 19px; }
  .campaign h3 { font-size: 22px; }
  .contact-box h2 { font-size: 26px; }
  .footer-watermark { font-size: 56px; }
  .security h2 { font-size: 18px; }
  .security-lead { font-size: 13px; }

  /* 見出しの改行はスマホ幅で切り替え */
  .br-mobile { display: block; }
  .br-desktop { display: none; }

  /* ヒーローのスマホ2枚：transformで縮小し、実機に近い比率を保ったまま中央寄りに重ねる */
  .hero-visual { height: 400px; }
  .phone-1 {
    left: 34px;
    top: 6px;
    transform: rotate(6deg) scale(.66);
    transform-origin: top left;
  }
  .phone-2 {
    right: 14px;
    bottom: 0;
    transform: rotate(-5deg) scale(.92);
    transform-origin: bottom right;
  }
  /* スマホ版では吹き出しラベルは非表示 */
  .hero-chip { display: none; }

  /* 背景の星は文字と重なりやすいのでスマホ版では非表示 */
  .float-deco { display: none; }

  /* PROBLEMカード：スクエア型にし、文字がボックスからはみ出さないよう縮小 */
  .flip-card { height: 148px; }
  .flip-card:hover .flip-inner,
  .flip-card.flipped .flip-inner { transform: translateY(-148px); }
  .flip-face { height: 148px; padding: 14px 12px; gap: 8px; }
  .flip-face.back { gap: 6px; }
  .flip-icon-lg { width: 42px; height: 42px; border-radius: 12px; }
  .flip-icon-lg svg { width: 18px; height: 18px; }
  .flip-keyword { font-size: 13px; line-height: 1.3; }
  .flip-card h3 { font-size: 12.5px; }
  .flip-card p { font-size: 10.5px; line-height: 1.5; }

  /* フッターメニューは折り返さず1行に */
  .footer-nav { flex-wrap: nowrap; gap: 12px; font-size: 11px; }
}
