/* ============================================================
   MFP MACHO PATROL LP  (/macho-patrol)
   Figma: https://www.figma.com/design/FHKLPBfwfCW1ewmE7DOLHo
   ============================================================ */

:root {
  --mp-bg: #0a0a0b;
  --mp-card: #131314;
  --mp-card-border: #333336;
  --mp-footer-bg: #0e0e0f;
  --mp-gold: #d9b347;
  --mp-gold-bright: #edc761;
  --mp-gold-bar: #c79e38;
  --mp-white: #f5f5f2;
  --mp-gray: #c7c7c4;
  --mp-dark: #0d0d0d;
  --mp-serif: "Shippori Mincho", serif;
  --mp-sans: "Noto Sans JP", sans-serif;
  --mp-script: "Kaushan Script", cursive;
  --mp-en: "Oswald", sans-serif;
}

/* ---- reset (standalone page) ---- */
.mp-lp,
.mp-lp *,
.mp-lp *::before,
.mp-lp *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mp-lp {
  background: var(--mp-bg);
  color: var(--mp-white);
  font-family: var(--mp-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.mp-lp a {
  color: inherit;
  text-decoration: none;
}

.mp-lp ul {
  list-style: none;
}

/* ============================ HERO ============================ */
.mp-hero {
  position: relative;
  min-height: 900px;
  background: url(../images/pages/macho-patrol/hero.jpg) center / cover no-repeat;
  overflow: hidden;
}

.mp-hero__bg {
  position: absolute;
  inset: 0;
  background: url(../images/pages/macho-patrol/hero.jpg) center / cover no-repeat;
}

.mp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(3, 3, 5, 0.92) 0%,
    rgba(3, 3, 5, 0.35) 45%,
    rgba(3, 3, 5, 0.55) 100%
  );
}

.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 6, 0) 55%,
    rgba(5, 5, 6, 0.9) 100%
  );
}

.mp-hero > * {
  position: relative;
  z-index: 2;
}

.mp-hero__bg {
  z-index: 0;
}

/* logo (black-bg lockup image; screen blend drops the black) */
.mp-hero__logo {
  position: absolute;
  top: 56px;
  left: 44px;
  width: 380px;
  aspect-ratio: 1536 / 681;
  overflow: hidden;
  /* blend on the container (not the img) — the z-indexed container forms a
     stacking context, so an img-level blend would be isolated from the hero */
  mix-blend-mode: screen;
}

.mp-hero__logo img {
  /* absolute + height:100% so the container's aspect-ratio can never be
     stretched by the image's own height (iOS Safari) */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mp-hero__badge {
  position: absolute;
  top: 56px;
  right: 80px;
  padding: 24px 28px;
  text-align: center;
  font-weight: 700;
  font-size: 19px;
  line-height: 32px;
  color: var(--mp-white);
  background: rgba(8, 8, 9, 0.88);
  border: 1.5px solid var(--mp-gold);
  border-radius: 4px;
}

/* title / lead / notice flow vertically so they can never overlap,
   whatever the user's font size — the hero grows instead (min-height) */
.mp-hero__content {
  margin: 340px 80px 24px;
  max-width: 640px;
}

.mp-hero__title {
  font-family: var(--mp-serif);
  font-weight: 800;
  font-size: 68px;
  line-height: 96px;
  letter-spacing: 0.06em;
}

.mp-hero__lead {
  margin-top: 28px;
  font-weight: 500;
  font-size: 22px;
  line-height: 42px;
  letter-spacing: 0.05em;
}

.mp-hero__notice {
  display: inline-block;
  margin-top: 12px;
  padding: 20px 24px;
  background: rgba(5, 5, 6, 0.82);
  border: 1.5px solid var(--mp-gold);
}

.mp-hero__notice-label {
  color: var(--mp-gold);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.mp-hero__notice-text {
  font-family: var(--mp-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
}

.mp-hero__script {
  position: absolute;
  top: 300px;
  right: 90px;
  font-family: var(--mp-script);
  font-size: 112px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-7deg);
}

.mp-hero__script span {
  display: inline-block;
  background: linear-gradient(135deg, #f7d980 0%, #d9a83f 55%, #9e7320 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.12em; /* room for the cursive swashes */
}

.mp-hero__tagline {
  position: absolute;
  bottom: 55px;
  right: 80px;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.12em;
  background: rgba(5, 5, 6, 0.8);
  border: 1px solid var(--mp-gold);
}

/* ========================== SERVICES ========================== */
.mp-services {
  padding: 90px 80px;
}

.mp-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  font-family: var(--mp-serif);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: 0.2em;
}

.mp-heading span {
  flex-shrink: 0;
}

.mp-heading::before,
.mp-heading::after {
  content: "";
  flex: 0 1 320px;
  height: 1.5px;
  background: var(--mp-gold);
}

.mp-services__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.mp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px 20px;
  background: var(--mp-card);
  border: 1px solid var(--mp-card-border);
  border-radius: 4px;
  text-align: center;
}

.mp-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.mp-card__photo {
  aspect-ratio: 212 / 250;
  overflow: hidden;
}

.mp-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-card__text {
  font-size: 14px;
  line-height: 24px;
  color: var(--mp-gray);
}

/* ================== PARTNERSHIP / RECRUIT ================== */
.mp-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 80px 90px;
}

.mp-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  background: var(--mp-card);
  border: 1px solid var(--mp-card-border);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}

.mp-panel--recruit {
  border-color: var(--mp-gold);
  gap: 22px;
}

.mp-panel__title {
  font-family: var(--mp-serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 46px;
  letter-spacing: 0.06em;
}

.mp-panel__text {
  font-size: 16px;
  line-height: 30px;
  color: var(--mp-gray);
}

.mp-panel__chips {
  display: flex;
  gap: 12px;
}

.mp-panel__chips li {
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  background: rgba(8, 8, 9, 1);
  border: 1px solid var(--mp-gold);
  border-radius: 2px;
}

.mp-panel__photo {
  width: 100%;
  margin-top: auto;
}

.mp-panel__photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.mp-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.mp-checklist li {
  font-size: 20px;
  font-weight: 700;
  color: var(--mp-gold-bright);
  letter-spacing: 0.05em;
}

.mp-checklist li::before {
  content: "\2713"; /* ✓ */
  margin-right: 12px;
}

.mp-panel__cta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mp-panel__welcome {
  font-family: var(--mp-serif);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: 0.1em;
  color: var(--mp-gold-bright);
}

.mp-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mp-dark);
  background: var(--mp-gold);
  border-radius: 2px;
  transition: opacity 0.2s;
}

.mp-btn:hover {
  opacity: 0.85;
}

/* =========================== FOOTER =========================== */
.mp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 60px 80px;
  background: var(--mp-footer-bg);
  border-top: 1px solid var(--mp-card-border);
}

.mp-footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.mp-footer__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mp-footer__chips {
  display: flex;
  gap: 12px;
}

.mp-footer__chips li a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  background: #1f1f20;
  border: 1px solid #4d4d4d;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.mp-footer__chips li a:hover {
  border-color: var(--mp-gold);
}

.mp-footer__note {
  font-size: 14px;
  color: var(--mp-gray);
}

.mp-footer__logo {
  position: relative;
  width: 220px;
  aspect-ratio: 1536 / 681;
  overflow: hidden;
  mix-blend-mode: screen;
}

.mp-footer__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mp-footer__company {
  font-size: 14px;
  color: var(--mp-gray);
}

/* corporate site link button */
.mp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 30px;
  font-family: var(--mp-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--mp-white);
  border: 1px solid var(--mp-gold);
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.mp-btn-ghost__arrow {
  transition: transform 0.25s ease;
}

.mp-btn-ghost:hover {
  background: var(--mp-gold);
  color: var(--mp-dark);
}

.mp-btn-ghost:hover .mp-btn-ghost__arrow {
  transform: translateX(4px);
}

.mp-footer__contact {
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.mp-footer__tel {
  font-family: var(--mp-en);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.05em;
}

.mp-footer__hours {
  font-size: 15px;
  color: var(--mp-gray);
}

.mp-footer__mail {
  font-size: 18px;
  font-weight: 700;
}

.mp-footer__search {
  display: flex;
  margin-top: 6px;
}

.mp-footer__search-field {
  padding: 8px 40px 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #262626;
  background: var(--mp-white);
}

.mp-footer__search-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mp-dark);
  background: var(--mp-gold);
}

/* ========================== GOLD BAR ========================== */
.mp-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 48px;
  padding: 22px 24px;
  background: var(--mp-gold-bar);
  color: var(--mp-dark);
}

.mp-bar__jp {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.mp-bar__en {
  font-family: var(--mp-en);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.36em;
}

/* ========================= ANIMATIONS ========================= */
/* All hiding is gated behind html.mp-js (added inline in <head>)
   so content stays visible without JavaScript. */

@keyframes mpFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes mpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mpKenBurns {
  from { transform: scale(1.08); }
  to { transform: none; }
}

/* handwriting wipe: reveal each script line left to right */
@keyframes mpWrite {
  from { clip-path: inset(-25% 100% -25% -5%); }
  to { clip-path: inset(-25% -5% -25% -5%); }
}

/* ---- hero entrance (on load) ---- */
html.mp-js .mp-hero__bg { animation: mpKenBurns 8s ease-out both; }
html.mp-js .mp-hero__logo { animation: mpFadeIn 0.9s ease 0.1s both; }
html.mp-js .mp-hero__badge { animation: mpFadeUp 0.7s ease 0.55s both; }
html.mp-js .mp-hero__title { animation: mpFadeUp 0.8s ease 0.25s both; }
html.mp-js .mp-hero__lead { animation: mpFadeUp 0.8s ease 0.45s both; }
html.mp-js .mp-hero__notice { animation: mpFadeUp 0.8s ease 0.65s both; }
html.mp-js .mp-hero__tagline { animation: mpFadeUp 0.7s ease 3.1s both; }

/* handwriting: 3 lines written in sequence */
html.mp-js .mp-hero__script span {
  animation: mpWrite 0.9s cubic-bezier(0.4, 0, 0.55, 1) both;
}

html.mp-js .mp-hero__script span:nth-of-type(1) { animation-delay: 0.9s; }
html.mp-js .mp-hero__script span:nth-of-type(2) { animation-delay: 1.7s; animation-duration: 0.6s; }
html.mp-js .mp-hero__script span:nth-of-type(3) { animation-delay: 2.3s; }

/* ---- scroll reveal ---- */
html.mp-js .mp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.mp-js .mp-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* stagger the service cards */
html.mp-js .mp-services__list li:nth-child(2) { transition-delay: 0.09s; }
html.mp-js .mp-services__list li:nth-child(3) { transition-delay: 0.18s; }
html.mp-js .mp-services__list li:nth-child(4) { transition-delay: 0.27s; }
html.mp-js .mp-services__list li:nth-child(5) { transition-delay: 0.36s; }

/* heading gold lines grow outward once revealed */
html.mp-js .mp-heading::before,
html.mp-js .mp-heading::after {
  transform: scaleX(0);
  transition: transform 0.9s ease 0.25s;
}

html.mp-js .mp-heading::before { transform-origin: right center; }
html.mp-js .mp-heading::after { transform-origin: left center; }

html.mp-js .mp-heading.is-in::before,
html.mp-js .mp-heading.is-in::after {
  transform: scaleX(1);
}

/* ---- hover ---- */
.mp-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mp-card:hover {
  transform: translateY(-6px);
  border-color: var(--mp-gold);
}

.mp-btn {
  transition: opacity 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 179, 71, 0.35);
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html.mp-js .mp-hero__bg,
  html.mp-js .mp-hero__logo,
  html.mp-js .mp-hero__badge,
  html.mp-js .mp-hero__title,
  html.mp-js .mp-hero__lead,
  html.mp-js .mp-hero__notice,
  html.mp-js .mp-hero__tagline,
  html.mp-js .mp-hero__script span {
    animation: none;
  }

  html.mp-js .mp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.mp-js .mp-heading::before,
  html.mp-js .mp-heading::after {
    transform: none;
    transition: none;
  }
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1100px) {
  .mp-services__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-card__photo {
    aspect-ratio: 314 / 200;
  }

  .mp-duo {
    grid-template-columns: 1fr;
  }

  .mp-footer {
    flex-direction: column;
    gap: 40px;
  }

  .mp-footer__contact {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* ---- hero (SP: 390px design) ---- */
  .mp-hero {
    min-height: 780px;
  }

  .mp-hero__content {
    /* bottom margin clears the script + tagline zone */
    margin: 300px 24px 150px;
  }

  .mp-hero__logo {
    top: 28px;
    left: 3px;
    width: 220px;
  }

  .mp-hero__badge {
    top: 37px;
    right: 16px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 19px;
    border-width: 1px;
  }

  .mp-hero__title {
    font-size: 34px;
    line-height: 52px;
  }

  .mp-hero__lead {
    margin-top: 20px;
    font-size: 13px;
    line-height: 24px;
  }

  .mp-hero__lead br.mp-pc {
    display: none;
  }

  .mp-hero__notice {
    margin-top: 14px;
    padding: 14px 16px;
    border-width: 1px;
  }

  .mp-hero__notice-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .mp-hero__notice-text {
    font-size: 18px;
    line-height: 28px;
  }

  .mp-hero__notice-text br.mp-sp-none {
    display: none;
  }

  .mp-hero__script {
    top: auto;
    bottom: 85px;
    right: 20px;
    font-size: 42px;
    transform: rotate(-4deg);
  }

  .mp-hero__script br {
    display: none;
  }

  .mp-hero__tagline {
    bottom: 18px;
    right: 20px;
    padding: 10px 18px;
    font-size: 16px;
  }

  /* ---- sections ---- */
  .mp-services {
    padding: 48px 24px;
  }

  .mp-heading {
    gap: 14px;
    margin-bottom: 24px;
    font-size: 24px;
    letter-spacing: 0.16em;
  }

  .mp-heading::before,
  .mp-heading::after {
    flex: 0 1 48px;
  }

  .mp-services__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mp-card__title {
    font-size: 18px;
  }

  .mp-card__text {
    font-size: 13px;
    line-height: 22px;
  }

  .mp-duo {
    padding: 0 24px 48px;
    gap: 24px;
  }

  .mp-panel {
    padding-top: 28px;
    gap: 18px;
  }

  .mp-panel--recruit {
    gap: 16px;
  }

  .mp-panel__title {
    font-size: 22px;
    line-height: 34px;
  }

  .mp-panel__text {
    font-size: 13px;
    line-height: 24px;
  }

  .mp-panel__chips {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .mp-panel__chips li {
    padding: 8px 14px;
    font-size: 13px;
  }

  .mp-panel__photo img {
    height: 160px;
  }

  .mp-checklist li {
    font-size: 16px;
  }

  .mp-panel__cta {
    flex-direction: column;
    gap: 16px;
  }

  .mp-panel__welcome {
    font-size: 32px;
  }

  .mp-btn {
    padding: 14px 40px;
  }

  /* ---- footer ---- */
  .mp-footer {
    padding: 40px 24px;
    gap: 24px;
  }

  .mp-footer__title {
    font-size: 20px;
  }

  .mp-footer__chips {
    flex-direction: column;
    gap: 10px;
  }

  .mp-footer__logo {
    width: 190px;
  }

  .mp-footer__tel {
    font-size: 28px;
  }

  .mp-footer__hours {
    font-size: 13px;
  }

  .mp-footer__mail {
    font-size: 16px;
  }

  /* ---- gold bar ---- */
  .mp-bar {
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
  }

  .mp-bar__jp {
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .mp-bar__en {
    font-size: 15px;
    letter-spacing: 0.3em;
  }
}
