:root {
  --color-primary: #0f9d58;
  --color-primary-dark: #087f3a;
  --color-accent: #bb1e3d;
  --color-neutral: #f7f8fb;
  --color-text: #2b2f33;
  --color-text-muted: #5a626c;
  --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-heading: 'Montserrat', 'Noto Sans JP', sans-serif;
  --container-width: min(1100px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: #fff;
  line-height: 1.75;
}

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

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.sp-only {
  display: none;
}

.pc-only {
  display: block;
}

.hero__illustration {
  display: none;
}

/* Hero -------------------------------------------------- */

.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
  background-image: url('../img/mv_bg_pc.jpg');
  background-color: #f2fbf2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__background {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at -10% 70%, rgba(15, 157, 88, 0.25) 0%, rgba(15, 157, 88, 0) 65%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 1;
}

.hero__brand-block {
  display: flex;
  justify-content: center;
}

.hero__brand {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.hero__brand-right {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
}

.hero__brand-logo {
  width: clamp(140px, 30vw, 200px);
  height: auto;
  flex-shrink: 0;
}

.hero__brand-logo--main {
  width: clamp(180px, 34vw, 240px);
}

.hero__brand-logo--sub {
  width: clamp(100px, 24vw, 110px);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1;
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.hero__cta-section {
  position: relative;
  margin: 0;
  width: 100%;
  padding: 32px 24px;
  overflow: hidden;
  background: #fff;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: none;
}

.hero__cta-section::before {
  content: none;
}

.hero__cta-section > * {
  position: relative;
  z-index: 1;
}

.hero__cta-heading {
  margin: 0 25px;;
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 21px);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.25;
}

.hero__lead {
  margin: 0;
  font-size: 18px;
  color: var(--color-text-muted);
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
}

.hero__stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero__cta-search {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.hero__cta-search-keyword {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 24px 6px 24px;
  border-radius: 999px;
  border: 1px solid gray;
  letter-spacing: 0.08em;
}

.hero__cta-search-keyword::after {
  content: none;
}

.hero__cta-search-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.hero__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__qr-image,
.cta__qr {
  width: 96px;
  height: 96px;
  background: url('../img/blogmiru_qrcode.png') center/cover no-repeat;
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__badge {
  position: absolute;
  top: -30px;
  right: -12%;
  transform: translateY(-40%);
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 157, 88, 0.25);
}

.hero__mockup {
  width: min(320px, 70vw);
  height: min(640px, 130vw);
  border-radius: 40px;
  background: url('../img/mockup.png') center/cover no-repeat;
  box-shadow: 0 30px 50px rgba(15, 157, 88, 0.2);
  border: 12px solid #fff;
}

/* Features --------------------------------------------- */

.features {
  padding: 96px 0;
  background-color: #fff;
}

.section-title {
  margin: 0 0 48px;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 40px);
  text-align: center;
  line-height: 1.4;
}

.section-title span {
  color: var(--color-accent);
  font-size: 0.9em;
  font-weight: 700;
}

.features__grid {
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 30px 50px rgba(15, 157, 88, 0.08);
  display: grid;
  gap: 20px;
}

.feature-card__title {
  margin: 0;
  font-size: 22px;
  color: var(--color-primary);
}

.feature-card__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-text);
}

/* CTA --------------------------------------------------- */

.categories {
  background: #fff;
}

.categories__inner {
  padding: 32px 16px;
}

.categories__inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.cta {
  position: relative;
  padding: 60px 0;
  color: #fff;
  overflow: hidden;
  background: url('../img/media_militia-polygons-032b.jpg') center/cover no-repeat;
}

.cta__background {
  position: absolute;
  inset: 1;
  background: url('../img/media_militia-polygons-032b.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.96;
  pointer-events: none;
  z-index: 0;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  z-index: 1;
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  }

  .cta__title {
    margin: 0;
    padding: 0 50px 30px 50px;
    font-size: clamp(30px, 4vw, 35px);
    line-height: 1.5;
    font-family: var(--font-heading);
    text-align: center;
  }

.cta__copy {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffe65a;
}

.cta__divider {
  display: none;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.cta__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta__store img {
  display: block;
  height: 48px;
  width: auto;
}

.cta__search {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.cta__search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.cta__search-field input {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  min-width: 120px;
}

.cta__search-field input:focus {
  outline: none;
}

.cta__search-field input::-webkit-search-cancel-button {
  display: none;
}

.cta__search-field input[readonly] {
  cursor: default;
}

.cta__search-icon {
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  mask: url('../img/search_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg') center/contain no-repeat;
  -webkit-mask: url('../img/search_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg') center/contain no-repeat;
}

.cta__search-suffix {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

.cta__qr {
  width: 124px;
  height: 124px;
  border-radius: 16px;
  background: #fff url('../img/blogmiru_qrcode.png') center/70% no-repeat;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.2);
}

/* Partners --------------------------------------------- */

.partners {
  padding: clamp(56px, 12vw, 96px) 0;
  background: #f3f4f5;
}

.partners__inner {
  display: grid;
  gap: clamp(20px, 6vw, 40px);
  justify-items: center;
}

.partners__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  width: min(480px, 100%);
  padding: clamp(24px, 6vw, 36px) clamp(20px, 5vw, 32px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(15, 157, 88, 0.08);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partners__link span {
  font-size: clamp(16px, 3.6vw, 18px);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
}

.partners__link img {
  width: auto;
  max-width: 240px;
  max-height: clamp(48px, 10vw, 64px);
  object-fit: contain;
}

.partners__link:hover,
.partners__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15, 157, 88, 0.14);
}

.partners__link:focus-visible {
  outline: 3px solid rgba(15, 157, 88, 0.35);
  outline-offset: 6px;
}

/* Footer ----------------------------------------------- */

.footer {
  background: #0a4719;
  color: #fff;
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer__copy {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .hero {
    padding-top: 0;
    background-image: url('../img/mv_bg_sp.jpg');
    background-position: center top;
  }

  .hero__illustration {
    display: block;
    margin: 0;
  }

  .hero__illustration img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero__cta {
    flex-direction: column;
    gap: 20px;
  }

  .hero__stores {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .hero__cta-search {
    display: none;
  }

  .cta__search {
    display: none;
  }

  .pc-only {
    display: none;
  }

  .cta__copy {
    font-size: 20px;
  }

  .cta__divider {
    display: none;
  }

  .cta__stores {
    justify-content: center;
  }

  .hero__inner {
    text-align: center;
  }

  .hero__cta-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    padding-left: clamp(24px, 6vw, 32px);
    padding-right: clamp(24px, 6vw, 32px);
    background: transparent;
    color: #fff;
  }

  .hero__cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/media_militia-polygons-032b.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
  }

  .hero__cta-section > * {
    position: relative;
    z-index: 1;
  }

  .hero__badge {
    top: 0;
    right: 18%;
  }

  .hero__mockup {
    width: min(260px, 70vw);
    height: min(520px, 120vw);
  }

  .features {
    padding: 72px 0 0 0;
  }

  .feature-card {
    text-align: left;
  }

  .cta {
    padding: 80px 0;
  }

  .partners__link {
    width: 100%;
  }
}



@media (min-width: 769px) {
  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    grid-template-areas:
      'brand visual'
      'body visual';
    column-gap: 48px;
    row-gap: 32px;
    align-items: center;
  }

  .hero__brand-block {
    grid-area: brand;
    justify-content: flex-start;
  }

  .hero__brand {
    display: flex;
    align-items: flex-end;
    gap: 24px;
  }

  .hero__tagline {
    align-items: center;
    text-align: center;
  }

  .hero__visual {
    grid-area: visual;
    justify-self: center;
  }

  .hero__body {
    grid-area: body;
    align-items: flex-start;
    text-align: left;
  }

  .hero__cta-section {
    margin: 0;
    border-radius: 28px;
    align-items: flex-start;
    text-align: left;
    padding: 32px;
    max-width: none;
  }

  .hero__cta {
    justify-content: flex-start;
  }

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

  .partners__inner {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .partners__link {
    min-width: auto;
  }
}



@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 110px;
  }

  .hero__inner {
    gap: 60px;
  }

  .cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
  }

  .cta__content {
    align-items: flex-start;
    text-align: left;
    max-width: 680px;
    gap: 32px;
  }

  .cta__headline {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 36px;
    width: 100%;
  }

  .cta__divider {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    width: 100%;
  }

  .cta__copy {
    font-size: 26px;
    color: #ffe640;
  }

  .cta__title {
    white-space: nowrap;
  }

  .cta__stores {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 24px;
  }

  .cta__store img {
    height: 58px;
  }

  .cta__search {
    display: flex;
    align-items: center;
    margin-left: 80px;
  }

  .cta__search-field {
    padding: 18px 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    min-width: 280px;
  }

  .cta__search-suffix {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .cta__search-icon {
    width: 22px;
    height: 22px;
  }

  .cta__qr {
    width: 176px;
    height: 176px;
    border-radius: 20px;
    align-self: center;
  }
}
