:root {
  --color-bg: #fbfaf8;
  --color-surface: #ffffff;
  --color-surface-soft: #f5f3ef;
  --color-text: #15171a;
  --color-muted: #62666d;
  --color-border: #e4dfd7;
  --color-red: #c80012;
  --color-red-dark: #a9000f;
  --color-gold: #b18435;
  --color-line: #ded8cf;
  --shadow-soft: 0 18px 55px rgba(37, 32, 26, 0.08);
  --radius-sm: 6px;
  --radius-md: 8px;
  --container: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0 18%, rgba(177, 132, 53, 0.08), transparent 22rem),
    radial-gradient(circle at 100% 42%, rgba(200, 0, 18, 0.06), transparent 24rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.75;
}

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

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

a:hover {
  color: var(--color-red);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea,
summary {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-red);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--color-text);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.narrow {
  max-width: 820px;
}

.section {
  padding: 86px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(251, 250, 248, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 170px;
  height: auto;
  display: block;
}

.header-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.site-nav .nav-cta {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(200, 0, 18, 0.17);
}

.site-nav .nav-cta:hover {
  background: var(--color-red-dark);
  color: #fff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.menu-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-text);
}

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 104px 0 78px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-red);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  margin: 0;
  font-size: 3.8rem;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 900;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #2d3035;
  font-size: 1.08rem;
}

.micro-copy {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
}

.button-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 16px 28px rgba(200, 0, 18, 0.18);
}

.button-primary:hover {
  background: var(--color-red-dark);
  color: #fff;
}

.button-secondary {
  border-color: rgba(200, 0, 18, 0.42);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-red);
}

.button-secondary:hover {
  border-color: var(--color-red);
  background: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--color-red);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.hero-visual {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero-device-image {
  display: block;
  width: min(100%, 680px);
  margin-left: auto;
  border: 1px solid rgba(228, 223, 215, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(37, 32, 26, 0.16);
}

.decor {
  position: absolute;
  pointer-events: none;
}

.decor-circle {
  top: -38px;
  left: -28px;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(177, 132, 53, 0.42);
  border-radius: 999px;
  z-index: -1;
}

.decor-dots {
  top: -22px;
  right: 6%;
  width: 104px;
  height: 104px;
  background-image: radial-gradient(rgba(177, 132, 53, 0.5) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  z-index: -1;
}

.decor-line {
  right: -8%;
  bottom: 14%;
  width: 180px;
  height: 1px;
  background: var(--color-red);
  transform: rotate(-32deg);
  z-index: -1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--color-muted);
}

.flow-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.flow-canvas {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(177, 132, 53, 0.08), transparent 28%, transparent 72%, rgba(200, 0, 18, 0.05)),
    var(--color-bg);
}

.flow-block {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.flow-block-focus {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.flow-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-weight: 900;
}

.icon-list,
.module-grid {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.icon-list {
  display: grid;
  gap: 14px;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #30343a;
  font-weight: 700;
}

.icon-list svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--color-red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.organize-svg {
  display: block;
  margin-top: 18px;
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.module-grid li {
  padding: 14px 10px;
  border: 1px solid rgba(200, 0, 18, 0.22);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 800;
  background: #fff;
}

.flow-arrow {
  width: 76px;
  fill: none;
  stroke: var(--color-red);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 48px;
  align-items: center;
}

.case-section,
.steps-section,
.faq-section {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.case-preview {
  position: relative;
  display: block;
  margin: 0;
}

.case-preview::before {
  content: "";
  position: absolute;
  inset: 18px -16px -18px 22px;
  border: 1px solid rgba(177, 132, 53, 0.28);
  border-radius: var(--radius-md);
  z-index: 0;
}

.case-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 58px rgba(37, 32, 26, 0.14);
}

.youtube-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.topic-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.topic-card {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.topic-card h3 {
  margin-top: 14px;
  font-size: 1rem;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, rgba(200, 0, 18, 0.1), transparent),
    repeating-linear-gradient(0deg, #f8f6f1 0 12px, #fff 12px 24px);
}

.video-thumb-alt {
  background:
    radial-gradient(circle at 68% 36%, rgba(177, 132, 53, 0.24), transparent 34%),
    linear-gradient(135deg, #fff, #f4f1eb);
}

.video-thumb-line {
  background:
    linear-gradient(135deg, #f7f4ee, #fff),
    linear-gradient(90deg, transparent 0 30%, rgba(200, 0, 18, 0.12) 30% 31%, transparent 31%);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--color-red);
  transform: translate(-50%, -50%);
}

.play-mark::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  border-left: 14px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.step-list {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
}

.step-list li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.step-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-weight: 900;
}

.step-list p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.profile-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.profile-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 40px;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.profile-box p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.profile-data {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-data div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.profile-data dt {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-data dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--color-muted);
}

.contact-section {
  background:
    radial-gradient(circle at 90% 80%, rgba(200, 0, 18, 0.06), transparent 20rem),
    var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: start;
}

.contact-intro p:not(.eyebrow) {
  color: var(--color-muted);
}

.contact-illustration {
  margin-top: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.contact-illustration svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-illustration .fill-soft {
  fill: rgba(177, 132, 53, 0.12);
  stroke: none;
}

.contact-illustration .line-soft {
  stroke: var(--color-line);
}

.contact-illustration .accent-stroke {
  stroke: var(--color-red);
}

.contact-form {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.form-status {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(177, 132, 53, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(177, 132, 53, 0.08);
  color: #5f4b25;
  font-size: 0.88rem;
}

.form-status.is-success {
  border-color: rgba(30, 124, 63, 0.28);
  background: rgba(30, 124, 63, 0.08);
  color: #1b6b35;
}

.form-status.is-error {
  border-color: rgba(200, 0, 18, 0.28);
  background: rgba(200, 0, 18, 0.08);
  color: var(--color-red-dark);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label,
.choice-field legend {
  font-weight: 900;
}

.form-row label span,
.choice-field legend span {
  margin-left: 6px;
  color: var(--color-red);
  font-size: 0.78rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 13px 14px;
  color: var(--color-text);
}

.form-row textarea {
  resize: vertical;
  min-height: 132px;
}

.choice-field {
  border: 0;
  padding: 0;
}

.choice-field legend {
  margin-bottom: 10px;
}

.choice-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.choice-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-red);
}

.field-note,
.mail-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.form-submit {
  width: 100%;
}

.mail-note {
  margin-top: 16px;
  text-align: center;
}

.mail-note a {
  color: var(--color-red);
  font-weight: 800;
}

.is-modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 26, 0.46);
}

.contact-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 28px 80px rgba(21, 23, 26, 0.24);
  padding: 34px;
  text-align: center;
}

.contact-modal__dialog:focus {
  outline: none;
}

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.contact-modal__mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(30, 124, 63, 0.1);
}

.contact-modal__mark::before {
  content: "✓";
  color: #1b6b35;
  font-size: 1.6rem;
  font-weight: 900;
}

.contact-modal h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.35;
}

.contact-modal p {
  margin: 0;
  color: var(--color-muted);
}

.contact-modal__button {
  min-width: 150px;
  margin-top: 24px;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 28px;
  align-items: center;
}

.footer-brand {
  color: var(--color-red);
  font-size: 1.24rem;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-inner nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-inner small {
  grid-column: 1 / -1;
  color: var(--color-muted);
}

.page-main {
  padding: 86px 0;
}

.prose {
  color: #2d3035;
}

.prose h1 {
  margin-bottom: 28px;
}

.prose h2 {
  margin-top: 42px;
  font-size: 1.6rem;
}

.prose a {
  color: var(--color-red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose ul {
  padding-left: 1.3em;
}

.page-back {
  margin-top: 42px;
}

.page-back .button {
  text-decoration: none;
}

.case-detail {
  display: grid;
  gap: 54px;
}

.case-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: center;
}

.case-detail h1 {
  font-size: 3.25rem;
}

.case-preview-large {
  max-width: 620px;
  justify-self: end;
}

@media (max-width: 1199px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .header-note {
    display: none;
  }

  .hero-grid,
  .split-section,
  .contact-grid,
  .case-detail-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .case-detail h1 {
    font-size: 3rem;
  }

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

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

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

  .flow-block {
    min-height: auto;
  }

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

@media (max-width: 743px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .brand img {
    width: 132px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    padding: 0 10px;
  }

  .site-nav .nav-cta {
    justify-content: center;
  }

  .site-nav-static {
    position: static;
    display: flex;
    margin-left: auto;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.78rem;
  }

  .site-nav-static a:nth-child(2) {
    display: none;
  }

  .lead {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.48rem;
  }

  h2 {
    font-size: 1.86rem;
  }

  .case-detail h1 {
    font-size: 2.22rem;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero {
    padding: 58px 0;
  }

  .hero-visual {
    margin-inline: -6px;
  }

  .hero-device-image,
  .case-image {
    border-radius: 6px;
  }

  .flow-canvas,
  .profile-box,
  .contact-form {
    padding: 20px;
  }

  .flow-block {
    padding: 20px;
  }

  .module-grid,
  .topic-row,
  .step-list,
  .profile-box,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .case-preview {
    margin-inline: -6px;
  }

  .case-preview::before {
    inset: 12px -8px -12px 14px;
  }

  .contact-grid {
    gap: 28px;
  }

  .choice-field label {
    align-items: flex-start;
  }

  .footer-inner nav {
    flex-direction: column;
    gap: 8px;
  }

  .page-main {
    padding: 54px 0;
  }
}
