:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666666;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

main {
  margin: 10px 0;
}

.m-plus-2 {
  font-family: "M PLUS 2", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.container {
  max-width: var(--maxw);
  margin: 0 20px;
  padding: 0 1rem;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  position: relative;
  /* for absolute menu in mobile */
}

.logo {
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--fg);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  margin-right: 0;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--fg);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Default (desktop) menu */
.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--fg);
  text-decoration: none;
  padding: .25rem .25rem;
  border-bottom: 2px solid transparent;
}

.menu a.active {
  border-bottom-color: var(--accent);
}

.menu a.btn {
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: .4rem .8rem;
  border-bottom: none;
}

.menu a.btn.active {
  border-color: var(--accent);
}

/* Hero / Common blocks */
.hero {
  padding: 1rem 0 0 0;
  text-align: center;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(37, 99, 235, .08), transparent 60%),
    radial-gradient(800px 560px at -10% 10%, rgba(59, 130, 246, .06), transparent 55%);
}

#hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0 auto 1.5rem;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

#hero-text {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: #4b5563;
  margin: 2rem;
  text-align: left;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  margin: 0 auto;
  padding: 10px;
  text-align: center;
}

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

.movie_blk {
  width: 100%;
  /* height: 56.25vw; */
  height: 40vw;
  position: relative;
}

.movie_blk video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.contact-btn {
  padding: 2rem 0 1rem;
  text-align: center;
}

.merit-text {
  margin-block-start: 0;
  margin-block-end: 0;

}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  padding: 0;
}

.features article {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.4rem;
}

.features article ul,
.features article ol {
  padding: 0 1.5rem;
  margin-block-start: 0;
  margin-block-end: 0;
}

.page-header {
  padding: 3rem 0;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.service-detail,
.pricing {
  padding: 2rem 0;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  gap: 1rem;
}

.step-left {
  display: flex;
  align-items: flex-start;
  flex: 1;
}

.step-num {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-content h2 {
  margin: 0 0 .3rem;
  font-size: 1.2rem;
}

.step-image img {
  max-width: 220px;
  border-radius: 6px;
}

.arrow {
  text-align: center;
  font-size: 1.5rem;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-left {
    flex-direction: column;
    align-items: center;
  }

  .step-num {
    margin: 0 0 .5rem;
  }

  .step-image img {
    max-width: 100%;
    margin-top: 1rem;
  }

  #hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    width: 98%;
    padding: 0 0.5rem;
    line-height: 1.05;
    margin-bottom: 1rem;
  }

  #hero-text {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin: 2rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  #hero-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    width: 99%;
    padding: 0 0.25rem;
    line-height: 1.0;
    margin-bottom: 0.8rem;
  }
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid #e2e8f0;
  padding: .85rem;
  text-align: center;
}

.pricing-table th {
  background: #f8fafc;
}

.pricing-table td {
  background: #ffffff;
}

footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
  font-size: .92rem;
}

/* Mobile menu */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
    /* hidden by default */
    flex-direction: column;
    gap: .2rem;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(86vw, 280px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .75rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
  }

  .menu.open {
    display: flex;
  }

  .menu li {
    margin: .2rem 0;
  }

  .menu a {
    display: block;
    padding: .6rem .7rem;
    border-radius: 8px;
  }

  .menu a:hover {
    background: #f1f5f9;
  }

  .menu a.btn {
    border: 1px solid var(--accent);
    text-align: center;
  }

  /* X animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}