@charset "utf-8";

/* ------------------------------------------------------------------
   株式会社めんま  corporate site
   ------------------------------------------------------------------ */

:root {
  --bg: #f5f1ea;
  --paper: #fffdf9;
  --ink: #241d18;
  --sub: #6b6058;
  --line: #ddd3c6;
  --brand: #9a3b23;
  --brand-deep: #722a17;
  --gold: #b08a52;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 2;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.inner { width: min(1080px, 90%); margin-inline: auto; }
.gothic { font-family: var(--gothic); }

/* --- header ------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.site-header.scrolled {
  background: rgba(245, 241, 234, .94);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
  backdrop-filter: blur(6px);
}
.logo { line-height: 1.2; }
.logo b { font-size: 1.15rem; letter-spacing: .18em; font-weight: 600; }
.logo span {
  display: block; font-family: var(--gothic);
  font-size: .58rem; letter-spacing: .42em; color: var(--sub); margin-top: 3px;
}
.site-header.on-hero .logo b,
.site-header.on-hero .logo span,
.site-header.on-hero .gnav a { color: #f4ebe0; }
.site-header.on-hero .gnav a::after { background: #f4ebe0; }

.gnav ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 40px); }
.gnav a {
  font-family: var(--gothic); font-size: .8rem; letter-spacing: .12em;
  color: var(--ink); position: relative; padding-bottom: 4px;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brand); transition: width .3s;
}
.gnav a:hover::after { width: 100%; }

.burger { display: none; width: 30px; height: 22px; position: relative; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--ink); transition: .3s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }

/* --- hero --------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: #f4ebe0; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.25), rgba(20,14,10,.72)),
              url("../img/hero.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero .inner { position: relative; padding-bottom: clamp(60px, 12vh, 130px); }
.hero .vertical {
  position: absolute; top: 22vh; right: clamp(16px, 5vw, 56px);
  writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .5em;
  color: rgba(244,235,224,.7); font-family: var(--gothic);
}
.hero h2 {
  font-size: clamp(2.1rem, 6.4vw, 4.2rem); font-weight: 600;
  letter-spacing: .1em; line-height: 1.5; text-shadow: 0 3px 30px rgba(0,0,0,.35);
}
.hero .lead {
  font-family: var(--gothic); font-size: clamp(.86rem, 2vw, 1rem);
  letter-spacing: .08em; margin-top: 24px; max-width: 30em; line-height: 2.1;
  color: #efe4d6;
}

/* --- shared section ---------------------------------------------- */
.block { padding: clamp(70px, 12vw, 130px) 0; }
.eyebrow {
  font-family: var(--gothic); font-size: .72rem; letter-spacing: .3em;
  color: var(--brand); display: inline-block; margin-bottom: 20px;
}
.eyebrow::before { content: "―― "; color: var(--gold); }
.block h3 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 600;
  letter-spacing: .08em; line-height: 1.6; margin-bottom: 34px;
}

/* --- greeting (asymmetric) --------------------------------------- */
.greeting .inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.greeting .figure { position: relative; }
.greeting .figure img { width: 100%; aspect-ratio: 11 / 13; object-fit: cover; border-radius: 2px; box-shadow: 0 24px 60px -30px rgba(36,29,24,.5); }
.greeting .figure figcaption {
  position: absolute; bottom: 18px; left: 18px; font-family: var(--gothic);
  font-size: .68rem; letter-spacing: .18em; color: #fff; background: rgba(36,29,24,.55);
  padding: 6px 12px; border-radius: 2px;
}
.greeting p { color: var(--sub); margin-bottom: 1.2em; }
.greeting p:last-child { margin-bottom: 0; }
.sign { font-family: var(--gothic); font-size: .8rem; letter-spacing: .1em; color: var(--ink); }
.sign b { font-size: 1.05rem; letter-spacing: .12em; margin-left: .4em; }

/* --- business list ----------------------------------------------- */
.business { background: var(--paper); border-block: 1px solid var(--line); }
.biz-list { list-style: none; border-top: 1px solid var(--line); }
.biz-list li {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(16px, 4vw, 48px);
  align-items: baseline; padding: 30px 4px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding-left .3s;
}
.biz-list li:hover { background: #faf6ee; padding-left: 14px; }
.biz-list .no { font-family: var(--gothic); font-size: 1.1rem; color: var(--gold); letter-spacing: .1em; }
.biz-list h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 6px; }
.biz-list p { font-family: var(--gothic); font-size: .84rem; color: var(--sub); line-height: 1.9; }

/* --- company table ----------------------------------------------- */
.company .inner { max-width: 860px; }
.info { width: 100%; border-collapse: collapse; font-family: var(--gothic); }
.info th, .info td { text-align: left; vertical-align: top; padding: 20px 6px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info th { width: 170px; color: var(--sub); font-weight: 600; letter-spacing: .12em; white-space: nowrap; }
.info td { line-height: 1.9; }
.purpose { list-style: none; }
.purpose li { position: relative; padding-left: 20px; }
.purpose li::before { content: ""; position: absolute; left: 2px; top: .9em; width: 8px; height: 1px; background: var(--gold); }

/* --- contact / footer -------------------------------------------- */
.contact { background: var(--ink); color: #efe4d6; text-align: center; }
.contact .eyebrow { color: var(--gold); }
.contact h3 { color: #fff; }
.contact p { font-family: var(--gothic); font-size: .88rem; color: #c8bcae; letter-spacing: .06em; }
.contact .company-name { font-size: 1.15rem; color: #fff; letter-spacing: .16em; margin: 8px 0 18px; font-family: var(--serif); }

.site-footer { background: #1a130f; color: #8a7c70; }
.site-footer .inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 26px 0; }
.site-footer .logo b { color: #d9cabb; }
.site-footer small { font-family: var(--gothic); font-size: .68rem; letter-spacing: .1em; }

/* --- reveal on scroll -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- responsive --------------------------------------------------- */
@media (max-width: 640px) {
  body { line-height: 1.9; }
  .burger { display: block; }
  .gnav {
    position: fixed; inset: 0; background: rgba(26,19,15,.97);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .gnav.open { opacity: 1; pointer-events: auto; }
  .gnav ul { flex-direction: column; gap: 30px; text-align: center; }
  .gnav a { color: #f4ebe0 !important; font-size: 1rem; }
  .greeting .inner { grid-template-columns: 1fr; }
  .greeting .figure { order: -1; }
  .biz-list li { grid-template-columns: 60px 1fr; gap: 14px; }
  .info th { width: 110px; }
  .hero .vertical { display: none; }
}
