:root {
  --navy: #17324d;
  --navy-2: #22496f;
  --green: #1f7a4f;
  --green-soft: #e9f6ef;
  --orange: #d9822b;
  --orange-soft: #fff4e8;
  --red: #c84a4a;
  --red-soft: #fdeeee;
  --gray-1: #f5f7fa;
  --gray-2: #e3e8ef;
  --gray-3: #8a97a6;
  --text: #1d2a37;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(23, 50, 77, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--gray-2);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand small {
  display: block;
  color: var(--gray-3);
  font-size: 12px;
  margin-bottom: 2px;
}

.brand strong {
  font-size: 16px;
  line-height: 1.3;
  display: block;
}

.header-note {
  color: var(--gray-3);
  font-size: 13px;
  text-align: right;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 80%);
  color: var(--white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 15px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 18px;
}

.hero-card-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.hero-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
}

.hero-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.section-head {
  margin: 28px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  color: var(--navy);
}

.section-head p {
  margin: 6px 0 0;
  color: var(--gray-3);
  font-size: 14px;
}

.tab-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}

.tab-btn {
  flex: 0 0 auto;
  border: 1px solid var(--gray-2);
  background: var(--white);
  color: var(--text);
  min-height: 52px;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(23, 50, 77, 0.04);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.demo-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.phone-shell {
  padding: 16px;
  background: linear-gradient(180deg, #eef3f9, #f8fafc);
  position: sticky;
  top: 84px;
}

.phone {
  width: 100%;
  background: #f9fbfd;
  border: 1px solid #cad5e2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(23, 50, 77, 0.08);
}

.phone-status {
  height: 28px;
  background: #0f2338;
  position: relative;
}

.phone-status::after {
  content: "";
  width: 112px;
  height: 22px;
  background: #0b1827;
  border-radius: 0 0 16px 16px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.screen,
.desktop-screen {
  display: none;
}

.screen.active,
.desktop-screen.active {
  display: block;
}

.screen-head {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  padding: 18px 18px 16px;
}

.success-head {
  background: linear-gradient(135deg, #195f3f, #258554);
}

.warning-head {
  background: linear-gradient(135deg, #9a6518, #d9822b);
}

.danger-head {
  background: linear-gradient(135deg, #8e2e2e, #c84a4a);
}

.screen-head small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 4px;
  font-size: 12px;
}

.screen-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.screen-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 14px;
}

.card-title {
  font-size: 12px;
  color: var(--gray-3);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu-cards,
.desktop-menu,
.error-grid,
.split-cards {
  display: grid;
  gap: 12px;
}

.menu-cards,
.desktop-menu {
  grid-template-columns: repeat(2, 1fr);
}

.error-grid {
  grid-template-columns: repeat(2, 1fr);
}

.split-cards {
  grid-template-columns: repeat(2, 1fr);
}

.menu-card {
  min-height: 92px;
  border: 1px solid var(--gray-2);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.desktop-menu .menu-card {
  min-height: 116px;
  padding: 18px;
}

.menu-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--navy);
}

.menu-card span,
.meta,
.subtext {
  color: var(--gray-3);
  font-size: 12px;
  line-height: 1.6;
}

.field-group,
.btn-stack {
  display: grid;
  gap: 12px;
}

.field,
.fake-input,
.error-card,
.timeline,
.mail-card {
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 12px 13px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--gray-3);
  margin-bottom: 6px;
  font-weight: 700;
}

.field .value,
.fake-input {
  font-size: 14px;
  line-height: 1.6;
}

.cols-2,
.desktop-grid-2,
.filters,
.btn-row {
  display: grid;
  gap: 12px;
}

.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.desktop-grid-2 {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.desktop-grid-2.equal,
.btn-row.two-btns {
  grid-template-columns: 1fr 1fr;
}

.summary-box {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d6e6da;
  background: linear-gradient(180deg, #f8fcfa, #eef8f2);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  font-size: 14px;
}

.sum-row.total {
  border-top: 1px solid #d6e6da;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.sum-row.total.no-border {
  border-top: none;
  padding-top: 0;
}

.route {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--gray-2);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.step.done {
  background: var(--green-soft);
  border-color: #b9ddc8;
  color: var(--green);
}

.step.current {
  background: #fff8e8;
  border-color: #f0c890;
  color: #8d5a13;
}

.warn-box {
  background: var(--orange-soft);
  border: 1px solid #f3c389;
  color: #7b4e11;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
}

.btn {
  min-height: 52px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 50, 77, 0.08);
  padding: 0 16px;
}

.btn.approve {
  background: var(--green);
}

.btn.return {
  background: var(--orange);
}

.btn.reject {
  background: var(--red);
}

.btn.navy {
  background: var(--navy);
}

.btn.ghost {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--gray-2);
}

.btn-single {
  display: grid;
}

.result-card {
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--gray-2);
}

.result-card.large {
  min-height: 180px;
  align-content: center;
}

.result-card.success {
  background: linear-gradient(180deg, #f3fbf6, #e8f7ee);
  border-color: #c7e7d2;
}

.result-card.warning {
  background: linear-gradient(180deg, #fffaf2, #fff2e2);
  border-color: #f1c892;
}

.result-card.danger {
  background: linear-gradient(180deg, #fff6f6, #fdecec);
  border-color: #efc0c0;
}

.result-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--white);
  background: var(--navy);
}

.result-card.success .result-icon {
  background: var(--green);
}

.result-card.warning .result-icon {
  background: var(--orange);
}

.result-card.danger .result-icon {
  background: var(--red);
}

.result-card strong {
  font-size: 18px;
  color: var(--navy);
}

.result-card span {
  color: #506070;
  line-height: 1.7;
  font-size: 14px;
}

.list-card {
  border: 1px solid var(--gray-2);
  border-radius: 16px;
  padding: 13px;
  background: var(--white);
}

.list-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status.wait {
  background: #fff2dd;
  color: #9a620d;
}

.status.done {
  background: var(--green-soft);
  color: var(--green);
}

.status.back {
  background: #fff1df;
  color: #a06314;
}

.status.expired {
  background: #f1f4f8;
  color: #5f6b78;
}

.timeline {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fbfcfe, #f6f9fc);
}

.timeline.large {
  min-height: 100%;
}

.timeline-item {
  border-left: 3px solid var(--navy);
  padding-left: 12px;
  display: grid;
  gap: 4px;
}

.timeline-item strong {
  font-size: 13px;
  color: var(--navy);
}

.timeline-item span {
  color: #526070;
  font-size: 14px;
}

.error-card {
  background: #fffdfd;
  border-color: #ead8d8;
}

.error-card strong {
  display: block;
  margin-bottom: 6px;
  color: #7b2f2f;
}

.error-card span {
  color: #5e6875;
  font-size: 13px;
  line-height: 1.7;
}

.mail-card {
  background: #fcfdff;
}

.mail-card.large {
  min-height: 460px;
}

.mail-subject {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-2);
}

.mail-body p {
  margin: 0 0 14px;
  line-height: 1.8;
  font-size: 14px;
}

.mail-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.mail-note {
  color: #667280;
  font-size: 13px;
}

.desktop-view {
  padding: 20px;
  min-height: 920px;
}

.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-2);
}

.desktop-header h3 {
  margin: 0;
  font-size: 24px;
  color: var(--navy);
}

.desktop-header p {
  margin: 6px 0 0;
  color: var(--gray-3);
  font-size: 14px;
  line-height: 1.7;
}

.desktop-meta {
  font-size: 12px;
  color: var(--gray-3);
  text-align: right;
}

.desktop-note-box,
.footer-note {
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #44505d;
}

.desktop-note-box {
  margin-top: 18px;
}

.filters {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}

.filter {
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 12px;
  font-size: 13px;
  color: var(--gray-3);
}

.table {
  border: 1px solid var(--gray-2);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
}

.tr {
  display: grid;
  grid-template-columns: 92px 92px 90px 90px 1.3fr 90px 100px 110px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  font-size: 12px;
}

.tr.head {
  background: #f8fafc;
  font-weight: 800;
  color: #506070;
}

.tr + .tr {
  border-top: 1px solid var(--gray-2);
}

.footer-note {
  margin-top: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.placeholder {
  color: #9aa5b1;
}

.top8 {
  margin-top: 8px;
}

.flow-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #44505d;
}

.screen-body .flow-guide {
  margin-bottom: 2px;
}

.desktop-screen .flow-guide {
  margin-bottom: 16px;
}

.flow-guide .role-badge {
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

[data-next] {
  cursor: pointer;
}

.menu-card[data-next],
.list-card[data-next],
.tr[data-next] {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.menu-card[data-next]:hover,
.list-card[data-next]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(23, 50, 77, 0.1);
  border-color: #c4d2e0;
}

.tr[data-next]:hover {
  background: var(--gray-1);
}

.mail-link[data-next]:hover {
  filter: brightness(1.08);
}

.result-card.is-dimmed {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.result-card.warning.is-active {
  box-shadow: 0 0 0 2px var(--orange), var(--shadow);
}

.result-card.danger.is-active {
  box-shadow: 0 0 0 2px var(--red), var(--shadow);
}

.result-banner {
  display: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.result-banner.show {
  display: block;
}

.result-banner.back {
  background: var(--orange-soft);
  color: #7b4e11;
  border: 1px solid #f0c890;
}

.result-banner.reject {
  background: var(--red-soft);
  color: #7b2f2f;
  border: 1px solid #ead8d8;
}

/* app.html: スマホ実機向けの単独アプリ画面 */
body.app-page {
  margin: 0;
  background: #eef1f6;
  min-height: 100vh;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(23, 50, 77, 0.18);
}

.app-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-bar-mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.app-bar-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-reset-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.app-reset-btn:active {
  background: rgba(255, 255, 255, 0.22);
}

.app-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #f9fbfd;
  min-height: calc(100vh - 56px);
  overflow: hidden;
}

@media (min-width: 560px) {
  body.app-page {
    background: #d8e0ea;
  }

  .app-shell {
    margin: 18px auto;
    min-height: calc(100vh - 90px);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(23, 50, 77, 0.16);
  }
}

.app-shell .screen.active {
  animation: app-screen-enter 0.26s ease;
}

@keyframes app-screen-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell .screen.active {
    animation: none;
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .demo-grid,
  .desktop-grid-2,
  .desktop-grid-2.equal,
  .filters,
  .error-grid {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    position: static;
  }

  .desktop-view {
    min-height: auto;
  }

  .tr,
  .tr.head {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 18px 14px 40px;
  }

  .header-inner {
    padding: 12px 14px;
  }

  .hero {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .menu-cards,
  .desktop-menu,
  .cols-2,
  .split-cards,
  .btn-row.two-btns,
  .error-grid {
    grid-template-columns: 1fr;
  }

  .header-note {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .desktop-header {
    align-items: start;
    flex-direction: column;
  }

  .mobile-split {
    grid-template-columns: 1fr;
  }
}

/* クライアント向け提案ページ：課題・解決・仕組み・メリット・FAQ・体験導線 */
.placeholder-logo {
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-placeholder-tag {
  display: inline-block;
  color: var(--orange) !important;
  font-weight: 700;
}

.pitch-section {
  margin: 36px 0;
}

.pitch-section .section-head {
  margin: 0 0 16px;
}

.pitch-eyebrow {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ps-card {
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--gray-2);
}

.ps-card .ps-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ps-card p {
  margin: 0;
  line-height: 1.9;
  font-size: 15px;
  color: var(--text);
}

.ps-card.problem {
  background: linear-gradient(180deg, #fff8f6, var(--red-soft));
  border-color: #f0cccc;
}

.ps-card.problem .ps-label {
  background: var(--red);
  color: var(--white);
}

.ps-card.solution {
  background: linear-gradient(180deg, #f3fbf6, var(--green-soft));
  border-color: #c7e7d2;
}

.ps-card.solution .ps-label {
  background: var(--green);
  color: var(--white);
}

.btn.big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  font-size: 17px;
  border-radius: 16px;
  text-decoration: none;
}

.pitch-cta-row {
  display: flex;
  justify-content: center;
  margin: 22px 0 6px;
}

.security-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.security-step {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  position: relative;
}

.security-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.security-step strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.security-step span {
  color: #4a5664;
  font-size: 13px;
  line-height: 1.8;
}

.security-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 36px;
  color: var(--gray-3);
  font-size: 18px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
}

.benefit-card .benefit-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.benefit-card span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.faq-q {
  display: flex;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-q .faq-mark {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.faq-a {
  display: flex;
  gap: 10px;
  color: #44505d;
  font-size: 14px;
  line-height: 1.8;
}

.faq-a .faq-mark {
  flex: 0 0 auto;
  color: var(--navy);
  font-weight: 800;
}

.app-cta {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 24px;
  padding: 28px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.app-cta-text h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.app-cta-text p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 14px;
}

.app-cta-qr {
  display: flex;
  justify-content: center;
}

.qr-box {
  background: var(--white);
  border-radius: 14px;
  padding: 10px;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.qr-box svg {
  width: 100%;
  height: 100%;
}

.qr-fallback {
  background: var(--white);
  color: var(--text);
  border-radius: 14px;
  padding: 16px;
  width: 220px;
  text-align: center;
}

.qr-fallback-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: #5a6573;
  line-height: 1.7;
}

.qr-fallback-link {
  display: block;
  word-break: break-all;
  font-size: 12px;
  color: var(--navy-2);
  margin-bottom: 12px;
}

.btn.ghost.small {
  min-height: 38px;
  font-size: 12px;
  padding: 0 14px;
}

.pitch-divider {
  margin: 44px 0 24px;
  text-align: center;
}

.pitch-divider h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 20px;
}

.pitch-divider p {
  margin: 0;
  color: var(--gray-3);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .app-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-cta-qr {
    order: -1;
  }
}

@media (max-width: 860px) {
  .problem-solution-grid {
    grid-template-columns: 1fr;
  }

  .security-steps {
    grid-template-columns: 1fr;
  }

  .security-step:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(-50%);
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .btn.big {
    width: 100%;
  }
}

/* 書類選択画面 */
.doc-category {
  display: grid;
  gap: 10px;
}

.doc-category + .doc-category {
  margin-top: 4px;
}

.doc-category-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.doc-card {
  border: 1px solid var(--gray-2);
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(23, 50, 77, 0.1);
  border-color: #c4d2e0;
}

.doc-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--navy);
  line-height: 1.5;
}

.doc-card span {
  color: var(--gray-3);
  font-size: 12px;
  line-height: 1.6;
}

.desktop-doc-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* 申請フォーム：編集可能な欄 */
.doc-template {
  display: none;
}

body[data-doc-type="travel"] .doc-template[data-doc-template="travel"],
body[data-doc-type="student"] .doc-template[data-doc-template="student"],
body[data-doc-type="generic"] .doc-template[data-doc-template="generic"] {
  display: block;
}

.value.editable {
  border: 1px dashed #c4d2e0;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fbfdff;
  outline: none;
  min-height: 44px;
  cursor: text;
}

.value.editable:focus {
  border-style: solid;
  border-color: var(--navy-2);
  background: var(--white);
}

.field-hint {
  display: block;
  color: var(--gray-3);
  font-size: 11px;
  margin-top: 4px;
}

/* 決裁欄・承認印（ハンコ） */
.kessai-ran {
  display: flex;
  gap: 10px;
}

.kessai-cell {
  flex: 1;
  min-height: 110px;
  border: 1px solid var(--gray-2);
  border-radius: 14px;
  background: var(--white);
  padding: 10px 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.kessai-role-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-3);
  letter-spacing: 0.02em;
}

.kessai-cell.pending {
  border-style: dashed;
  border-color: #c7d0da;
  background: #fbfcfe;
}

.kessai-pending-mark {
  margin-top: auto;
  margin-bottom: auto;
  font-size: 12px;
  color: #9aa5b1;
  font-weight: 700;
}

.seal {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--red);
  color: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  margin-top: 2px;
}

.seal-role {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.seal-word {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.seal-date {
  font-size: 8px;
  line-height: 1.2;
  margin-top: 2px;
}

.kessai-cell.stamped .seal {
  animation: seal-stamp 0.45s ease;
}

@keyframes seal-stamp {
  0% {
    transform: scale(1.3) rotate(-8deg);
    opacity: 0;
  }
  60% {
    transform: scale(0.94) rotate(-8deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-8deg);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kessai-cell.stamped .seal {
    animation: none;
  }
}

.decision-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  transform: rotate(-8deg);
  margin-top: 2px;
}

.kessai-cell.state-reject .decision-badge {
  background: var(--red);
}

.kessai-cell.state-return .decision-badge {
  background: var(--orange);
}

.kessai-ran.large .kessai-cell {
  min-height: 150px;
}

.kessai-ran.large .seal {
  width: 84px;
  height: 84px;
}

.kessai-ran.large .seal-role {
  font-size: 12px;
}

.kessai-ran.large .seal-word {
  font-size: 16px;
}

.kessai-ran.large .seal-date {
  font-size: 10px;
}

@media (max-width: 720px) {
  .doc-grid,
  .desktop-doc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kessai-ran {
    gap: 6px;
  }

  .seal,
  .decision-badge {
    width: 52px;
    height: 52px;
  }
}
