:root {
  --color-main: #243b86;
  --color-accent: #1a73e8;
  --color-bg: #f6f8fc;
  --color-text: #333;
  --color-muted: #666;
  --color-border: #dfe5f2;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 40, 90, 0.08);
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: #fff;
  padding: 8px 12px;
  border: 2px solid var(--color-main);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1120px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

.global-nav {
  display: flex;
  gap: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}

.global-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: .2s;
}

.global-nav a:hover {
  background: #edf3ff;
  text-decoration: none;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(93, 112, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #f7f9ff 0%, #fff 58%, #f3f6ff 100%);
  padding: 56px 20px 72px;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.hero-logo {
  flex-shrink: 0;
}

.hero-logo img {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 28px;
  box-shadow:
    0 14px 32px rgba(36, 59, 134, 0.18),
    0 2px 8px rgba(36, 59, 134, 0.10);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #edf1ff;
  color: var(--color-main);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.15;
  color: var(--color-main);
  letter-spacing: .02em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.45;
  color: #1f2f68;
  font-weight: 700;
}

.hero-content > p:not(.hero-lead) {
  max-width: 760px;
  margin: 0 0 14px;
  color: #4a5568;
  font-size: 17px;
}

/* Hero Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mock {
  width: 320px;
  max-width: 82vw;
  padding: 14px;
  box-sizing: border-box;
  background: #111827;
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(20, 40, 90, 0.25);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 18;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Button */
.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.center-actions {
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
}

.btn-primary {
  color: #fff;
  background: var(--color-accent);
}

.btn-secondary {
  color: var(--color-accent);
  background: #fff;
}

/* Section */
main section {
  padding: 64px 20px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.35;
  color: var(--color-main);
}

.section-lead {
  margin: 0 0 32px;
  color: var(--color-muted);
  font-size: 17px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
}

.bg-light {
  background: var(--color-bg);
}

/* Card */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.function-box,
.feature-card,
.feature-flow,
.related-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--color-main);
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #555;
}

.card-point,
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-main) !important;
  font-weight: 700;
}

.card-point i {
  margin-top: 5px;
  color: #22c55e;
  flex-shrink: 0;
}

/* Icon Card */
.icon-card h3::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 10px;
  background: #edf3ff;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-accent);
  font-size: 16px;
  vertical-align: middle;
}

.icon-inventory h3::before { content: "\f468"; }
.icon-lending h3::before { content: "\f362"; }
.icon-stock h3::before { content: "\f494"; }
.icon-search h3::before { content: "\f002"; }
.icon-history h3::before { content: "\f1da"; }

/* Function Layout */
.function-layout {
  display: grid;
  gap: 22px;
}

.function-box {
  padding: 26px;
}

.function-box-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
}

.function-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.function-item {
  padding: 18px;
  border-radius: 14px;
  background: #f6f8fc;
}

.function-item h3,
.function-box h3 {
  margin: 0 0 10px;
  color: var(--color-main);
  font-size: 20px;
}

.function-item p,
.function-box p {
  margin: 0;
  color: #555;
}

.function-row-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.function-box-with-image {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  align-items: center;
}

.screen-frame {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
}

.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Feature */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 26px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--color-main);
  font-size: 22px;
}

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

.feature-grid-3 .feature-card {
  display: flex;
  flex-direction: column;
}

.feature-grid-3 .section-actions {
  margin-top: auto;
}

.feature-support {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.feature-support p {
  margin: 0 0 10px;
  font-size: 15px;
}

/* Flow */
.feature-flow {
  margin-top: 28px;
  padding: 22px;
}

.flow-list {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.flow-item {
  padding: 16px;
  border-radius: 14px;
  background: #f6f8fc;
  text-align: center;
  color: var(--color-main);
  font-weight: 700;
}

.flow-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 24px;
}

.flow-item strong {
  display: block;
  margin-bottom: 4px;
}

.flow-item span {
  display: block;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

/* Badge */
.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e9f2ff;
  color: var(--color-main);
  font-size: 13px;
  font-weight: 700;
}

/* List */
.check-list {
  margin: 16px 0 0;
  padding-left: 1.2em;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin: 20px 0 0;
  padding-left: 1.2em;
}

/* Related */
.related-box {
  padding: 24px;
}

.related-box h3 {
  margin-top: 0;
  color: var(--color-main);
}

.related-box-wide {
  max-width: 900px;
  margin: 0 auto;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #243b86 0%, #1a73e8 100%);
  color: #fff;
  text-align: center;
}

.cta .section-title,
.cta .section-lead {
  color: #fff;
}

.cta-title {
  margin-bottom: 12px;
  line-height: 1.3;
}

.cta-sub {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
  opacity: .9;
}

.cta .btn-primary {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.cta .btn-secondary {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

/* Footer */
.site-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: #777;
  font-size: 14px;
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-sns a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: .2s;
}

.footer-sns a:hover {
  background: var(--color-main);
  color: #fff;
  text-decoration: none;
}

.floating-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  z-index: 1000;
}

.floating-top:hover {
  color: #fff;
  background: var(--color-accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .feature-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 64px 20px 56px;
  }

  .hero-inner,
  .card-grid,
  .feature-grid,
  .feature-grid-3,
  .function-box-main,
  .function-list,
  .function-row-bottom,
  .function-box-with-image {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 28px;
  }

  .screen-frame {
    max-width: 240px;
    margin: 0 auto;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .global-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  main section {
    padding: 48px 18px;
  }

  .header-inner {
    min-height: 68px;
  }

  .logo img {
    height: 58px;
  }

  .hero-title-wrap {
    gap: 16px;
  }

  .hero-logo img {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}