:root {
  --bg: #fbfcf8;
  --bg-soft: #f3f7f1;
  --bg-panel: #ffffff;
  --bg-muted: #eef5ee;
  --ink: #17211f;
  --ink-soft: #52615c;
  --ink-faint: #74817b;
  --line: #dbe3da;
  --line-strong: #c7d5cc;
  --primary: #168064;
  --primary-dark: #0c5a45;
  --primary-soft: #e4f3ec;
  --secondary: #5f7f72;
  --accent: #c38a31;
  --accent-soft: #fff2d8;
  --danger: #a43e37;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.12);
  --shadow-soft: 0 14px 34px rgba(23, 33, 31, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfcf8 0%, #f3f7f1 45%, #ffffff 100%);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.75;
}

body:not(.home-page) .site-main {
  padding-top: 64px;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(219, 227, 218, 0.74);
  background: rgba(251, 252, 248, 0.94);
  backdrop-filter: blur(18px);
}

.home-page .site-header {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(12, 32, 27, 0.62), rgba(12, 32, 27, 0.12));
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.home-page .brand {
  color: #ffffff;
}

.brand-title {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-beta {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.home-page .nav a {
  color: rgba(255, 255, 255, 0.86);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.home-page .nav a:hover,
.home-page .nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.nav .nav-cta {
  margin-left: 8px;
  color: #ffffff;
  background: var(--primary);
}

.home-page .nav .nav-cta {
  background: rgba(255, 255, 255, 0.18);
}

.section,
.page-title,
.form-section,
.reference-section,
.completion-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 24px;
}

.hero-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 610px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7, 24, 20, 0.55), rgba(7, 24, 20, 0.36) 46%, rgba(7, 24, 20, 0.66)),
    url("/static/img/starter-kit-workspace.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding: 120px 24px 96px;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 850;
}

.hero-photo .pill {
  color: #ffffff;
  background: rgba(195, 138, 49, 0.94);
}

.hero-photo h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.16;
}

.hero-photo .lead {
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  border-color: var(--primary);
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 12px 22px rgba(22, 128, 100, 0.24);
}

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

.button.secondary {
  color: var(--ink);
  background: #ffffff;
}

.hero-photo .button.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker a,
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.mini-icon,
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-intro h2,
.cta-photo h2,
.footer-cta h3 {
  margin: 0 0 12px;
  line-height: 1.28;
}

.section-intro p,
.page-title p,
.card p,
.template-card p,
.source-card p,
.footer p {
  color: var(--ink-soft);
}

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

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

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

.feature-card,
.template-card,
.card,
.source-card,
.notice-panel,
.form,
.form-aside {
  border: 1px solid rgba(199, 213, 204, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.template-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.feature-card:hover,
.template-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 128, 100, 0.45);
  box-shadow: var(--shadow);
}

.feature-media,
.template-media,
.target-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}

.feature-media {
  aspect-ratio: 4 / 3;
}

.template-media {
  aspect-ratio: 2 / 1;
}

.target-media {
  aspect-ratio: 16 / 7;
}

.feature-media img,
.template-media img,
.target-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.feature-card:hover img,
.template-card:hover img {
  transform: scale(1.06);
}

.feature-body,
.template-body,
.target-body,
.card,
.source-card,
.notice-panel {
  padding: 24px;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.tag.accent {
  color: #85550f;
  background: var(--accent-soft);
}

.template-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(22, 128, 100, 0.92);
  font-size: 11px;
  font-weight: 850;
}

.template-card.is-core {
  border-color: rgba(22, 128, 100, 0.5);
}

.template-card.is-core .template-badge {
  background: rgba(195, 138, 49, 0.94);
}

.list-clean,
.check-list,
.warning-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li,
.check-list li,
.warning-list li,
.plain-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 24px;
}

.list-clean li::before,
.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
}

.warning-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--danger);
}

.target-card {
  overflow: hidden;
  border: 1px solid rgba(199, 213, 204, 0.82);
  border-radius: var(--radius);
  background: #ffffff;
}

.target-card.recommended {
  border-color: rgba(22, 128, 100, 0.35);
  background: rgba(228, 243, 236, 0.62);
}

.steps {
  counter-reset: step;
}

.step-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.step-number {
  color: rgba(22, 128, 100, 0.34);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.muted-band {
  max-width: none;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-muted) 100%);
}

.muted-band > .band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 24px;
}

.cta-photo {
  position: relative;
  overflow: hidden;
  max-width: none;
  padding: 82px 24px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(8, 63, 49, 0.9), rgba(8, 63, 49, 0.78)),
    url("/static/img/starter-kit-workspace.png") center / cover no-repeat;
}

.cta-photo-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}

.cta-photo p,
.footer-cta p {
  color: rgba(255, 255, 255, 0.8);
}

.mini-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.mini-template {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.page-title {
  max-width: var(--max);
  padding-top: 96px;
}

.page-title.centered {
  max-width: 780px;
  text-align: center;
}

.page-title.narrow {
  max-width: 860px;
}

.split-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 36px;
  align-items: center;
}

.page-title .lead {
  max-width: 760px;
  font-size: 17px;
}

.page-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-muted);
  box-shadow: var(--shadow);
}

.page-visual img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.template-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 750;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.form-section {
  max-width: var(--max);
}

.form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.form label,
.form fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form span,
.form legend {
  color: var(--ink);
  font-weight: 850;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(22, 128, 100, 0.16);
  border-color: var(--primary);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

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

.choice,
.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d6e2d8;
  border-radius: var(--radius);
  background: #f8fbf7;
}

.choice input,
.consent input {
  width: auto;
  min-height: auto;
  margin-top: 6px;
}

.notice-panel {
  margin-bottom: 20px;
  border-color: rgba(195, 138, 49, 0.32);
  background: #fffaf0;
}

.form-aside {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.error,
.error-banner {
  color: var(--danger);
  font-weight: 750;
}

.error-banner {
  margin: 0;
  padding: 12px;
  border: 1px solid #f0b8b2;
  border-radius: var(--radius);
  background: #fff5f2;
}

.reference-list {
  display: grid;
  gap: 22px;
}

.source-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
}

.source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
}

.source-card a {
  font-weight: 850;
}

.completion-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-cta {
  background: var(--primary);
}

.footer-cta-inner,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 8px 0;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
}

@media (max-width: 960px) {
  .header-inner {
    align-items: flex-start;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-direction: column;
  }

  body:not(.home-page) .site-main {
    padding-top: 112px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .grid.three,
  .grid.two,
  .split-title,
  .template-list,
  .form-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mini-template-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner {
    padding-inline: 16px;
  }

  .brand-title {
    max-width: 230px;
    white-space: normal;
    line-height: 1.35;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 13px;
  }

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

  .hero-content {
    padding: 132px 18px 86px;
  }

  .section,
  .page-title,
  .form-section,
  .reference-section,
  .completion-section,
  .muted-band > .band-inner {
    padding: 52px 18px;
  }

  .page-title {
    padding-top: 72px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .feature-body,
  .template-body,
  .target-body,
  .card,
  .source-card,
  .notice-panel,
  .form,
  .form-aside {
    padding: 20px;
  }

  .source-card {
    grid-template-columns: 1fr;
  }
}
