/* ------------------------------
  Base
------------------------------ */
:root {
  --miil-red: #be3029;
  --miil-green: #2eaf67;
  --miil-brown: #9a8a63;
  --ink: #222;
  --int-soft: #7b7b7b;
  --ink-weak: #6e6e6f;
  --bg: #fff;
  --beige: #faf2e5;
  --radius: 12px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --hero-gap: clamp(16px, 5vh, 60px);
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Montserrat", system-ui, -apple-system,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* Utility */
.container {
  width: 100%;
  margin-inline: auto;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.accent {
  font-size: 35px;
  color: var(--miil-red);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin: 0 0 var(--space-2);
  line-height: 1.25;
  color: var(--ink-weak);
  font-weight: 700;
}
.section__title small {
  display: block;
  font-size: 0.6em;
  letter-spacing: 0.05em;
  color: var(--ink-weak);
  margin-top: 0.6rem;
  font-weight: 600;
}
.section__intro {
  text-align: center;
  max-width: 70ch;
  color: var(--ink-weak);
  line-height: 2.5em;
  font-weight: 600;
}

/* Divider (red dots) */
.divider {
  display: block;
  width: 200px;
  height: 10px;
  margin: var(--space-2) auto var(--space-3);
  padding-bottom: 35px;
  background: radial-gradient(var(--miil-red) 2px, transparent 3px) repeat-x
    left center / 14px 12px;
}

.divider-black {
  display: block;
  width: 800px;
  height: 8px;
  margin: var(--space-1) auto var(--space-2);
  padding-bottom: 35px;
  background: radial-gradient(var(--ink-weak) 1px, transparent 2px) repeat-x
    left center / 9px 8px;
}

.lead {
  text-align: center;
  line-height: 2.7em;
  font-weight: 400;
}

.lead span {
  color: var(--miil-red);
}

.hero {
  padding: var(--space-3) var(--space-2);
  position: relative;
  min-height: 60vh;
  isolation: isolate;
}

.miil {
  background: #be3029;
  width: max-content;
  color: white;
  border-radius: 1px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 20%;
  z-index: 1;
}

.miil p {
  font-size: 75px;
  font-weight: 900;
  padding: 0 5px;
  margin: 0;
  letter-spacing: 0.09em;
}

.miil p span {
  font-size: 55px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__inner {
  color: var(--ink-weak);
  background: rgba(255, 255, 255, 0.88);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  text-align: center;
  padding-bottom: 35px;
}

/* Hero brand mark (simple logo) */

/* ------------------------------
  Lines (three brand lines)
------------------------------ */
.section--beige {
  background: var(--beige);
  padding: 5em 0;
}

/* ------------------------------
  Message + product image
------------------------------ */
.message {
  padding: 5em 0;
}
.product-figure {
  margin: 10px auto 0;
  text-align: center;
}
.product-figure img {
  max-width: 920px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Back button */
.back-wrap {
  text-align: center;
  margin-top: var(--space-1);
}
.btn-back {
  appearance: none;
  border: none;
  background: #d7b16a;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease;
  font-size: 20px;
}

.btn-back:hover {
  filter: brightness(1.05);
}
.btn-back:active {
  transform: translateY(1px);
}

.container-2 {
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 3em;
}

.brand-line {
  background: var(--beige);
}

.brand-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7rem;
}

.brand-card {
  text-align: center;
  width: 160px;
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -1em;
}

.brand-card .desc {
  font-size: 14px;
  color: var(--ink-weak);
  width: 190px;
  font-weight: 600;
}

/* MiiL Box Design */
.miil-box {
  width: 100%;
  border-radius: 1px;
}

.miil-top p {
  font-size: 60px;
  color: white;
  letter-spacing: 0.1em;
  font-weight: 900;
  margin: 0;
}

.miil-top p span {
  font-size: 50px;
}

/* Lower white part */
.miil-bottom {
  background: #fff;
}

.miil-bottom .kasumi {
  padding-left: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.6em;
  color: var(--ink-weak);
  margin: 0;
}

.miil-bottom .jp {
  font-size: 10px;
  color: var(--ink-weak);
  margin: 0.2rem 0 0;
}

.miil-bottom .en {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
}

.miil-box.red .miil-top {
  background: var(--miil-red);
}
.miil-box.green .miil-top {
  background: var(--miil-green);
}
.miil-box.brown .miil-top {
  background: var(--miil-brown);
}

.lead span {
  color: var(--miil-red);
}

footer {
  width: 100%;
  height: 50px;
  background-color: #f3f3f3;
}
.logo {
  background-color: #f3f3f3;
  text-align: center;
  padding: 2%;
}

.logo img {
  width: 10%;
  min-width: 100px;
}

.copy {
  text-align: center;
  font-size: 0.7em;
  color: #6e6e6f;
  background-color: #f3f3f3;
}

/* ------------------------------
  Responsive
------------------------------ */
@media (max-width: 1024px) {
  :root {
    --hero-gap: clamp(16px, 5vh, 40px);
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 25vh;
  }
  .hero__inner {
    padding: var(--space-3);
  }
  .miil p {
    font-size: 28px;
    padding: 0 3px;
    letter-spacing: 0.04em;
  }
  .miil p span {
    font-size: 20px;
  }
  .miil {
    margin-left: 18%;
  }
  .accent {
    font-size: 16px;
  }
  .lead {
    line-height: 2.5em;
    font-weight: 600;
    font-size: 8px;
  }
  .container {
    min-height: 25vh;
  }
  .hero__title {
    padding-bottom: 13px;
    font-size: 15px;
  }
  .divider {
    padding-bottom: 5px;
  }
  .brand-cards {
    gap: 1.5rem;
  }
  .brand-card {
    width: 100px;
    gap: 0em;
  }
  .brand-card .desc {
    font-size: 8px;
    width: 110px;
  }
  .divider-black {
    width: 250px;
    margin-bottom: 10px;
    background: radial-gradient(var(--ink-weak) 1px, transparent 2px) repeat-x
      left center / 6px 5px;
  }
  .section--beige {
    padding: 3em 0;
  }
  .section__intro {
    font-size: 7px;
  }
  .miil-top p {
    font-size: 42px;
    letter-spacing: 0.09em;
  }
  .miil-top p span {
    font-size: 30px;
  }
  .miil-bottom .kasumi {
    padding-left: 6px;
    font-size: 12px;
  }
  .miil-bottom .jp {
    font-size: 7px;
    margin: 0.05rem 0 0;
  }
  .miil-bottom .en {
    font-size: 10px;
    padding-bottom: 2px;
  }
  .message {
    padding: 3em 0;
  }
  .section__title {
    padding-bottom: 13px;
    font-size: 15px;
  }
  footer {
    height: 25px;
  }
}

/* --- Mobile fine-tune: phones <= 640px --- */
@media (max-width: 640px) {
  :root {
    --hero-gap: clamp(12px, 4vh, 28px);
  }
  .accent {
    font-size: 18px;
  }

  .lead {
    line-height: 2.4em;
    font-weight: 600;
    font-size: 12px; /* 8px -> 12px */
  }

  .hero__title {
    padding-bottom: 14px;
    font-size: 17px; /* 15px -> 17px */
  }

  .section__intro {
    font-size: 12px; /* 7px -> 12px */
    line-height: 2.2em;
  }

  .section__title {
    font-size: 17px; /* 15px -> 17px */
    padding-bottom: 14px;
  }

  .miil p {
    font-size: 32px; /* 28px -> 32px */
    letter-spacing: 0.05em;
  }
  .miil p span {
    font-size: 24px;
  } /* 20px -> 24px */

  .miil-top p {
    font-size: 46px; /* 42px -> 46px */
    letter-spacing: 0.1em;
  }
  .miil-top p span {
    font-size: 34px;
  } /* 30px -> 34px */

  .miil-bottom .kasumi {
    font-size: 14px;
  } /* 12px -> 14px */
  .miil-bottom .jp {
    font-size: 9px;
  } /* 7px  -> 9px  */
  .miil-bottom .en {
    font-size: 12px; /* 10px -> 12px */
    letter-spacing: 0.08em; /* 少しだけ字間を広げる */
  }

  .brand-card {
    width: 120px;
  }
  .brand-card .desc {
    font-size: 11px; /* 8px -> 11px */
    width: 140px;
  }

  .divider-black {
    width: 280px;
    background: radial-gradient(var(--ink-weak) 1px, transparent 2px) repeat-x
      left center / 6px 5px;
  }

  .btn-back {
    font-weight: 700;
    padding: 0.6rem 2.2rem;
    font-size: 13px; /* 11px -> 13px */
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
