@charset "UTF-8";
:root {
  --accent: #0078d7;
  --bg: #f6f8fa;
  --fg: #1f2328;
  --card: #ffffff;
  --muted: #6a737d;
  --border: #d0d7de;
}

/* ================= GLOBAL SAFETY ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

/* ================= HEADER ================= */
.site-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0f6cbd, #0078d7);
  color: #fff;
  padding: 20px 12px;
}

.header-center {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.site-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

/* ================= MAIN LAYOUT ================= */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

section h2 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

/* ================= STEP CARDS ================= */
.step-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.step-card h3 {
  margin-top: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ================= STEP ROW ================= */
.step-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
  position: relative;
}

.step-row figure {
  flex: 0 0 60%;
  max-width: 60%;
  margin: 0;
}

.step-row img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step-row img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.step-row::after {
  content: "🔍";
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.step-row:hover::after {
  opacity: 0.85;
}

.step-row ul {
  flex: 1;
  margin: 0;
  padding-left: 18px;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px;
}

th {
  background: #f3f6f9;
  text-align: left;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ================= BURGER ================= */
.burger {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 28px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ================= OVERLAY NAV ================= */
.overlay-nav {
  position: fixed;
  top: 0;
  left: -100%;
  background: #0f6cbd;
  color: #fff;
  padding: 64px 16px 24px;
  transition: left 0.3s ease;
  z-index: 3000;
}

.overlay-nav a.active {
  font-weight: 600;
  text-decoration: underline;
}

.overlay-nav.open {
  left: 0;
}

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

.nav-section h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 10px;
}

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

.nav-section a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

.nav-section a.active {
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.nav-section a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .step-row {
    flex-direction: column;
  }
  .step-row figure {
    max-width: 100%;
  }
  main {
    padding: 12px;
  }
  section {
    padding: 14px;
  }
}
/* ================= IMAGE MODAL ================= */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.image-modal img {
  max-width: 95%;
  max-height: 95%;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2.2rem;
  color: #fff;
}

/* ================= VIDEO ================= */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================= FLOW DIAGRAM ================= */
.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.lane {
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.lane-title {
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.step.success {
  border-color: #2da44e;
  background: #e6f4ea;
  font-weight: 600;
}

.step .icon {
  font-size: 16px;
  line-height: 1;
}

/* Optional step styling */
.step.optional {
  background: #f6f8fa;
  border-style: dashed;
  color: var(--muted);
}

.step.optional strong {
  color: var(--fg);
}

.arrow {
  text-align: center;
  margin: 6px 0;
  font-size: 14px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  .flow-diagram {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=main.css.map */
