:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #1f2937;
  --text-soft: #5f6b7a;
  --line: #d7e0ea;
  --primary: #2f556f;
  --primary-deep: #1f3f57;
  --accent: #3f8f63;
  --accent-soft: #e8f5ec;
  --shadow: 0 20px 50px rgba(31, 63, 87, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(103, 154, 188, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(251, 252, 254, 0.85);
  border-bottom: 1px solid rgba(215, 224, 234, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: min(100%, 320px);
}

.brand-logo-footer {
  height: 64px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-text small {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.header-nav a:not(.button) {
  color: var(--text-soft);
}

.header-nav a:not(.button):hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.25s ease;
}

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

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 85, 111, 0.18);
}

.button-primary:hover {
  background: var(--primary-deep);
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  padding: 72px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.featured-card,
.about-copy,
.feature-list,
.service-card,
.feature-item {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 28px 4px 28px 0;
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.about-copy h2 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.lead,
.section-heading p,
.about-copy p,
.service-card__body p,
.feature-item p,
.footer-brand p {
  color: var(--text-soft);
}

.lead {
  margin: 20px 0 0;
  font-size: 1.02rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  min-height: 420px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 250, 0.95));
  border: 1px solid rgba(215, 224, 234, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(31, 63, 87, 0.12);
}

.featured-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 10px 12px 12px;
}

.featured-card__content h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.featured-card__content p {
  margin: 0;
  color: var(--text-soft);
}

.card-tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-tag {
  background: rgba(47, 85, 111, 0.09);
  color: var(--primary);
}

.status-badge {
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.card-link {
  margin-top: 24px;
  color: var(--primary);
  font-weight: 700;
}

.card-link::after {
  content: " →";
}

.card-link-muted {
  color: var(--accent);
}

.featured-card__visual,
.service-card__visual {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
}

.visual-stack,
.service-card__visual {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.visual-stack-book {
  background:
    linear-gradient(140deg, rgba(47, 85, 111, 0.95), rgba(114, 154, 181, 0.9)),
    linear-gradient(0deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

.visual-stack-book::before,
.visual-stack-book::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.visual-stack-book::before {
  width: 120px;
  height: 170px;
  left: 18%;
  top: 24%;
  transform: rotate(-10deg);
}

.visual-stack-book::after {
  width: 140px;
  height: 190px;
  right: 16%;
  top: 18%;
  transform: rotate(10deg);
}

.services,
.about {
  padding: 28px 0 48px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-heading p {
  margin: 10px 0 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(215, 224, 234, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card__visual {
  min-height: 220px;
  font-size: 0.92rem;
}

.visual-docs {
  background: linear-gradient(140deg, #45677f, #9cb5c5);
}

.visual-photo {
  background: linear-gradient(140deg, #886d60, #d2b9a2);
}

.visual-receipt {
  background: linear-gradient(140deg, #3f8f63, #8fd0a9);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.service-card__body h3,
.feature-item h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.5;
}

.service-card__body p {
  margin: 12px 0 0;
  flex: 1;
}

.service-card--comingsoon {
  border-color: rgba(63, 143, 99, 0.28);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.about-copy,
.feature-list {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 224, 234, 0.9);
  box-shadow: var(--shadow);
}

.about-copy {
  padding: 32px;
}

.about-copy p {
  margin: 16px 0 0;
}

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

.feature-item {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid rgba(215, 224, 234, 0.92);
}

.feature-item p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(47, 85, 111, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 28px;
  padding: 36px 0 18px;
  background: #eef3f7;
  border-top: 1px solid rgba(215, 224, 234, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.brand-footer {
  pointer-events: none;
  align-items: flex-start;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 46ch;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(215, 224, 234, 0.9);
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .hero-inner,
  .about-inner,
  .feature-list,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .featured-card__visual {
    min-height: 280px;
  }

  .header-nav {
    gap: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header {
    position: static;
  }

  .header-inner,
  .header-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-logo {
    height: auto;
    width: min(100%, 280px);
  }

  .header-inner {
    padding: 16px 0;
    min-height: auto;
  }

  .header-nav {
    gap: 10px;
  }

  .header-nav a:not(.button) {
    padding: 6px 0;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-copy {
    padding: 0;
  }

  .lead {
    font-size: 0.96rem;
  }

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

  .button {
    width: 100%;
  }

  .featured-card {
    padding: 16px;
  }

  .featured-card__content {
    padding: 4px;
  }

  .featured-card__visual {
    min-height: 220px;
  }

  .service-card__visual {
    min-height: 180px;
  }

  .about-copy,
  .feature-list {
    padding: 20px;
  }

  .feature-list {
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
