/* =========================================================
   meR Hair (メルヘアー) — Stylesheet  [Mobile First]
   Design: 白基調 × ソフトなセージグリーン / 余白と上質感
   Base styles target mobile; min-width queries enhance up.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #FBFAF7;
  --bg-alt: #F2EFE8;
  --ink: #2E2E2C;
  --ink-soft: #6B6A64;
  --line: #E3DED3;
  --accent: #8A9A7B;
  --accent-deep: #5E6E4F;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .3s var(--ease);
}

a:hover {
  opacity: .6;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* keep Japanese phrases from breaking mid-word */
.np {
  display: inline-block;
}

/* ---------- Layout Helpers ---------- */
.wrap {
  width: min(88%, var(--maxw));
  margin-inline: auto;
}

.section {
  padding: 68px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.center {
  text-align: center;
}

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .12em;
  color: var(--accent-deep);
  display: block;
  margin-bottom: .8em;
}

.sec-title {
  font-size: clamp(1.45rem, 6vw, 2.3rem);
  letter-spacing: .1em;
  line-height: 1.6;
  margin-bottom: 1.3rem;
}

.sec-title .en {
  display: block;
  font-family: var(--serif);
  font-size: .72em;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: .55em;
  font-style: italic;
}

.lead {
  color: var(--ink-soft);
}

.center .lead {
  margin-inline: auto;
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1.05em 2.2em;
  font-size: .85rem;
  letter-spacing: .16em;
  border: 1px solid var(--accent-deep);
  color: var(--accent-deep);
  background: transparent;
  border-radius: 999px;
  transition: all .4s var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
  color: #fff;
  opacity: 1;
}

.btn--fill {
  background: var(--accent-deep);
  color: #fff;
}

.btn--fill:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn .arw {
  transition: transform .4s var(--ease);
}

.btn:hover .arw {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

.site-header.scrolled {
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(10px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .16em;
  font-weight: 600;
}

.brand__sub {
  font-size: .52rem;
  letter-spacing: .38em;
  color: var(--ink-soft);
  margin-top: .55em;
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.nav a {
  font-size: .82rem;
  letter-spacing: .14em;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: .7em 1.5em;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  color: var(--accent-deep);
}

.nav__cta::after {
  display: none;
}

.nav__cta:hover {
  background: var(--accent-deep);
  color: #fff;
}

/* Hamburger */
.burger {
  display: block;
  width: 28px;
  height: 20px;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 200;
}

.burger span {
  position: absolute;
  left: 0;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger span:nth-child(3) {
  bottom: 0;
}

.burger.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ---------- Mobile nav panel ---------- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(251, 250, 247, .98);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease);
}

.mnav.open {
  opacity: 1;
  visibility: visible;
}

.mnav a {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .16em;
}

.mnav a span {
  display: block;
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--ink-soft);
  text-align: center;
  margin-top: .4em;
}

.mnav .btn {
  margin-top: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to top, rgba(251, 250, 247, .97) 6%, rgba(251, 250, 247, .72) 30%, rgba(251, 250, 247, .2) 56%, rgba(251, 250, 247, 0) 76%),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: 74% top;
  background-repeat: no-repeat;
}

.hero__inner {
  width: min(88%, var(--maxw));
  margin-inline: auto;
  padding-bottom: clamp(64px, 12vh, 110px);
}

.hero__copy {
  max-width: 640px;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: .24em;
  font-size: .95rem;
  color: var(--accent-deep);
  margin-bottom: 1.1em;
  display: block;
}

.hero__catch {
  font-size: clamp(1.5rem, 7.5vw, 4rem);
  font-family: var(--serif);
  line-height: 1.5;
  letter-spacing: .07em;
  font-weight: 500;
  margin-bottom: .7em;
}

.hero__catch .np {
  display: block;
}

.hero__catch .accent {
  color: var(--accent-deep);
}

.hero__lead {
  color: var(--ink-soft);
  margin-bottom: 2em;
  max-width: 30em;
  font-size: .92rem;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: .62rem;
  letter-spacing: .3em;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 12px auto 0;
  background: linear-gradient(var(--accent-deep), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  45% {
    transform: scaleY(1);
    transform-origin: top
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom
  }
}

/* ---------- Media images ---------- */
.media {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ---------- Concept (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.split__media {
  aspect-ratio: 16/11;
}

.split__body .sec-title {
  margin-bottom: 1.2rem;
}

.split__body p+p {
  margin-top: 1.1em;
}

/* ---------- Feature cards (no icons) ---------- */
.grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.fcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 30px;
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.fcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -30px rgba(94, 110, 79, .5);
}

.fcard__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: .2em;
  display: inline-block;
}

.fcard__no::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: var(--accent);
  margin: 16px auto 0;
  opacity: .6;
}

.fcard h3 {
  font-size: 1.15rem;
  letter-spacing: .08em;
  margin: 22px 0 .9rem;
}

.fcard p {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ---------- Menu list ---------- */
.mlist {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.mrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
}

.mrow__name {
  font-size: 1rem;
  letter-spacing: .04em;
  line-height: 1.7;
}

.mrow__name .tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .1em;
  color: #fff;
  background: var(--accent-deep);
  padding: .28em .8em;
  border-radius: 999px;
  margin-right: .7em;
  vertical-align: middle;
}

.mrow__desc {
  display: block;
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: .5em;
  letter-spacing: .02em;
  line-height: 1.75;
}

.mrow__price {
  font-family: var(--serif);
  font-size: 1.35rem;
  white-space: nowrap;
}

.mrow__price small {
  font-size: .6em;
  letter-spacing: .1em;
  margin-left: .2em;
}

/* ---------- Staff ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.scard {
  text-align: center;
}

.scard__photo {
  aspect-ratio: 3/4;
  margin-bottom: 18px;
}

.scard__role {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-deep);
  letter-spacing: .16em;
  font-size: .82rem;
}

.scard__name {
  font-size: 1.25rem;
  letter-spacing: .1em;
  margin: .3em 0;
}

.scard__kana {
  font-size: .66rem;
  letter-spacing: .24em;
  color: var(--ink-soft);
}

.scard__career {
  display: inline-block;
  margin-top: .8em;
  font-size: .72rem;
  letter-spacing: .1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3em 1.1em;
  color: var(--ink-soft);
}

.scard__msg {
  margin-top: 1em;
  font-size: .86rem;
  color: var(--ink-soft);
}

/* placeholder (fallback) */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E9E3D6, #D3DAC7 60%, #BFCBB0);
}

.ph__label {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: .2em;
  color: rgba(94, 110, 79, .7);
  font-size: .9rem;
}

/* ---------- Info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}

.info-table th {
  display: block;
  padding-bottom: 4px;
  letter-spacing: .12em;
  color: var(--accent-deep);
  font-size: .82rem;
  border-bottom: 0;
}

.info-table td {
  display: block;
  padding-top: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding: 130px 0 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #EDE7DA, #DCE1D2 60%, #CBD5BE);
  opacity: .5;
}

.page-hero__en {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 11vw, 4rem);
  letter-spacing: .14em;
  color: var(--accent-deep);
  line-height: 1.1;
}

.page-hero__jp {
  display: block;
  letter-spacing: .34em;
  font-size: .72rem;
  margin-top: .7em;
  color: var(--ink-soft);
}

.crumbs {
  margin-top: 1.3em;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.crumbs a {
  color: var(--accent-deep);
}

/* ---------- Recruit ---------- */
.rec-hero-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.rec-hero-copy .big {
  font-size: clamp(1.4rem, 6.4vw, 2.6rem);
  line-height: 1.7;
  letter-spacing: .08em;
  margin-bottom: .8em;
}

.rec-hero-copy .big .accent {
  color: var(--accent-deep);
}

.rec-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.rpoint {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 28px;
}

.rpoint__no {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  letter-spacing: .2em;
}

.rpoint h3 {
  font-size: 1.1rem;
  margin: .6em 0 .7em;
  letter-spacing: .06em;
}

.rpoint p {
  font-size: .86rem;
  color: var(--ink-soft);
}

.job-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.job-table th,
.job-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}

.job-table th {
  display: block;
  background: var(--bg-alt);
  letter-spacing: .08em;
  color: var(--accent-deep);
  font-size: .84rem;
  border-bottom: 0;
}

.job-table td {
  display: block;
  color: var(--ink-soft);
  font-size: .9rem;
}

.job-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--accent-deep);
  color: #fff;
  padding: 66px 0;
}

.cta-band .eyebrow {
  color: #D8E0CB;
}

.cta-band .sec-title {
  color: #fff;
}

.cta-band .lead {
  color: rgba(255, 255, 255, .82);
  margin-inline: auto;
  max-width: 560px;
}

.cta-band .btn {
  border-color: #fff;
  color: #fff;
  margin-top: 1.6em;
}

.cta-band .btn:hover {
  background: #fff;
  color: var(--accent-deep);
}

.cta-band .btn--fill {
  background: #fff;
  color: var(--accent-deep);
  border-color: #fff;
}

.cta-band .btn--fill:hover {
  background: rgba(255, 255, 255, .85);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #24261F;
  color: #CFCDC4;
  padding: 60px 0 30px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.foot-brand__logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: .16em;
  color: #fff;
}

.foot-brand__sub {
  font-size: .56rem;
  letter-spacing: .38em;
  margin-top: .6em;
  color: #9C9A90;
}

.foot-brand p {
  font-size: .8rem;
  color: #9C9A90;
  margin-top: 1.3em;
  line-height: 1.9;
}

.foot-col h4 {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: .16em;
  font-size: .9rem;
  color: #fff;
  margin-bottom: 1em;
}

.foot-col li {
  margin-bottom: .85em;
  font-size: .84rem;
}

.foot-col a:hover {
  color: #fff;
  opacity: 1;
}

.foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  font-size: .66rem;
  letter-spacing: .08em;
  color: #7C7A72;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: .1s;
}

.reveal.d2 {
  transition-delay: .2s;
}

.reveal.d3 {
  transition-delay: .3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  .hero__scroll::after {
    animation: none
  }
}

/* =========================================================
   MIN-WIDTH ENHANCEMENTS
   ========================================================= */

/* ---- Small tablets ≥600px ---- */
@media (min-width: 600px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 92px 0;
  }

  .grid3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .rec-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .mrow {
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: baseline;
  }

  .mrow__desc {
    margin-top: .55em;
  }

  .info-table th {
    display: table-cell;
    width: 30%;
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
  }

  .info-table td {
    display: table-cell;
    padding: 20px 4px;
  }

  .job-table th {
    display: table-cell;
    width: 28%;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
  }

  .job-table td {
    display: table-cell;
    padding: 22px 26px;
  }

  .foot-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }

  .foot-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---- Desktop ≥901px ---- */
@media (min-width: 901px) {
  .section {
    padding: clamp(100px, 11vw, 140px) 0;
  }

  .site-header {
    padding: 22px clamp(28px, 5vw, 56px);
  }

  .site-header.scrolled {
    padding-block: 14px;
  }

  .brand__logo {
    font-size: 1.7rem;
    letter-spacing: .18em;
  }

  .brand__sub {
    font-size: .58rem;
    letter-spacing: .42em;
  }

  .nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  /* Hero: full-height, centered, text left over light-left scrim */
  .hero {
    align-items: center;
  }

  .hero__media {
    background-position: right center;
    background-image:
      linear-gradient(105deg, rgba(251, 250, 247, .92) 0%, rgba(251, 250, 247, .6) 34%, rgba(251, 250, 247, .12) 60%, rgba(251, 250, 247, 0) 82%),
      url("../images/hero.jpg");
  }

  .hero__inner {
    padding-bottom: 0;
  }

  .hero__sub {
    font-size: 1.05rem;
    letter-spacing: .28em;
  }

  .hero__catch {
    letter-spacing: .1em;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
  }

  .split--rev .split__media {
    order: 2;
  }

  .split__media {
    aspect-ratio: 4/5;
  }

  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 3vw, 44px);
  }

  .eyebrow {
    font-size: 1.05rem;
  }

  .sec-title {
    letter-spacing: .14em;
  }
}

/* ---- Wide ≥1200px ---- */
@media (min-width: 1200px) {
  .hero__catch {
    font-size: 3rem;
  }
}