:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0066cc;
  --cyan: #0066cc;
  --sky: #f5f5f7;
  --line: #e0e0e0;
  --panel: #f5f5f7;
  --soft: #fafafc;
  --dark: #272729;
  --dark-2: #2a2a2c;
  --white: #ffffff;
  --shadow: none;
  --product-shadow: 3px 5px 30px rgba(0, 0, 0, 0.22);
  --radius: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--panel);
  font-size: 17px;
  line-height: 1.47;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000000;
  border-bottom: 0;
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: grid;
  gap: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.brand span {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: #ffffff;
  font-size: 22px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.global-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover,
.global-nav a.active {
  color: #ffffff;
  border-color: transparent;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 9999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 160ms ease, background-color 160ms ease;
}

.nav-cta {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.button:active,
.nav-cta:active {
  transform: scale(0.95);
}

.button.secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
}

.section {
  padding: 80px 0;
  background: var(--white);
}

.section.alt {
  background: var(--panel);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
}

h3 {
  font-size: 21px;
  font-weight: 600;
}

.lead {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.25;
}

.hero {
  min-height: calc(100vh - 44px);
  padding: 80px 0;
  display: flex;
  align-items: center;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

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

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 14px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  min-height: 320px;
  box-shadow: var(--product-shadow);
}

.photo-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  color: #31425a;
  font-size: 11px;
  line-height: 1.5;
}

.photo-credit a {
  color: var(--blue);
  font-weight: 700;
}

.hero-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: none;
}

.hero-note strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: none;
}

.card.soft {
  background: var(--panel);
}

.card h3 {
  color: var(--ink);
}

.card p,
.case-meta,
.small {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 400;
}

.diagram-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.blueprint {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  min-height: 170px;
  padding: 24px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.flow-step::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
}

.flow-step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 80px 0;
  background: var(--panel);
  border-bottom: 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.page-hero-photo {
  aspect-ratio: 16 / 9;
  box-shadow: var(--product-shadow);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
}

.case-card {
  display: grid;
  gap: 14px;
}

.case-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.case-card div {
  display: grid;
  gap: 3px;
}

.case-card dt {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.case-card dd {
  margin: 0;
  color: #415267;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-button {
  width: 100%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.faq-button span {
  color: var(--blue);
}

.faq-answer {
  display: none;
  padding: 0 0 24px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbdce8;
  border-radius: 18px;
  padding: 10px 12px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 64px 0;
  background: var(--panel);
  color: #333333;
}

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

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .global-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 44px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
  }

  .global-nav.open {
    display: flex;
  }

  .global-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    background: #ffffff;
  }

  .hero-grid,
  .diagram-band,
  .page-hero-grid,
  .grid.cols-3,
  .grid.cols-2,
  .flow-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-photo {
    min-height: 230px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .section {
    padding: 54px 0;
  }

  .hero-actions .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
