/* ============================================================
   株式会社えるまの / HERUMANO INC. ─ コーポレートサイト
   Black × Saffron Editorial
   ============================================================ */

:root {
  --bg: #f4f1ea;
  --paper: #fdfbf5;
  --ink: #1a1a1a;
  --ink-soft: #3a3a36;
  --saffron: #e8a93a;
  --grey: #888888;
  --line: rgba(26, 26, 26, 0.18);
  --line-dash: rgba(26, 26, 26, 0.32);

  --font-display: "Bodoni Moda", "Noto Serif JP", serif;
  --font-serif-en: "Cormorant Garamond", serif;
  --font-jp: "Noto Serif JP", serif;
  --font-mono: "Space Mono", monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-jp);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.sp-only { display: none; }

/* ----- 共通: モノラベル ----- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ----- ボタン ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 30px; cursor: pointer; border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); transform: translateY(-3px); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ----- ロゴ ----- */
.logo { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-type { display: flex; flex-direction: column; line-height: 1.1; }
.logo-word {
  font-family: var(--font-display); font-weight: 900; font-size: 1.32rem;
  letter-spacing: 0.06em;
}
.logo-sub {
  font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.18em;
  color: var(--grey); margin-top: 3px;
}

/* ----- ヘッダー ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(244, 241, 234, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--saffron); transition: width 0.3s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 11px 22px; background: var(--ink); color: var(--paper);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--saffron); color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 11px;
}
.nav-toggle span { height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----- ヒーロー ----- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 80px; overflow: hidden;
}
.hero-watermark {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 56vh; height: 56vh; color: rgba(26, 26, 26, 0.05); z-index: 0;
}
.hero-watermark svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; }

.hero-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 34px;
}
.hero-meta .dash { width: 48px; height: 1px; background: var(--saffron); }

.hero-title {
  font-family: var(--font-jp); font-weight: 600;
  font-size: clamp(2.3rem, 8vw, 6.4rem); line-height: 1.22; letter-spacing: 0.02em;
}
.hero-title em {
  font-style: normal; position: relative; display: inline-block;
}
.hero-title em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.12em;
  height: 0.22em; background: var(--saffron); z-index: -1;
}

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 48px; margin-top: 48px; flex-wrap: wrap;
}
.hero-lead {
  font-family: var(--font-jp); font-weight: 300; font-size: 1.02rem;
  color: var(--ink-soft); max-width: 40ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-index {
  display: flex; gap: 40px; flex-wrap: wrap; margin-top: 64px;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ----- セクション共通 ----- */
.section { padding: 130px 0; position: relative; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-title { color: var(--paper); }
.section-dark .section-jp { color: rgba(253, 251, 245, 0.55); }

.section-head {
  display: flex; align-items: baseline; gap: 22px;
  padding-bottom: 22px; margin-bottom: 64px;
  border-bottom: 1px dashed var(--line-dash);
}
.section-dark .section-head { border-bottom-color: rgba(253, 251, 245, 0.28); }
.section-no {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.16em;
  color: var(--saffron); font-weight: 700;
}
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  letter-spacing: 0.01em; line-height: 1;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--saffron); }
.section-jp {
  font-family: var(--font-jp); font-weight: 400; font-size: 0.92rem;
  color: var(--grey); margin-left: auto;
}

/* ----- 01 私たちについて ----- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: start; }
.about-catch {
  font-family: var(--font-jp); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.55; margin-bottom: 28px;
}
.about-text { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 18px; }
.about-text strong {
  font-weight: 500; color: var(--ink); background: linear-gradient(transparent 62%, rgba(232,169,58,0.4) 62%);
}
.about-points { list-style: none; display: flex; flex-direction: column; gap: 0; }
.about-points li {
  display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px dashed var(--line-dash);
}
.about-points li:first-child { padding-top: 0; }
.about-points li:last-child { border-bottom: none; }
.point-no {
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem;
  color: var(--saffron); flex-shrink: 0; line-height: 1.3;
}
.about-points h3 { font-family: var(--font-jp); font-weight: 600; font-size: 1.08rem; margin-bottom: 4px; }
.about-points p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.8; }

/* ----- 02 事業内容 ----- */
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: flex; gap: 48px; padding: 48px 0;
  border-bottom: 1px dashed rgba(253, 251, 245, 0.28);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; padding-bottom: 0; }
.service-index {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--saffron); line-height: 0.9;
  flex-shrink: 0;
}
.service-name {
  font-family: var(--font-jp); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.service-name span {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--saffron);
  font-weight: 400; margin-top: 6px;
}
.service-text { font-size: 0.96rem; color: rgba(253, 251, 245, 0.72); max-width: 62ch; margin-bottom: 20px; }
.service-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.service-tags li {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  padding: 7px 14px; border: 1px solid rgba(253, 251, 245, 0.3); color: rgba(253,251,245,0.8);
}

/* ----- 03 実績 ----- */
.work-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.work-visual {
  position: relative; background: var(--ink); color: var(--paper);
  min-height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
}
.work-tag {
  position: absolute; top: 22px; left: 22px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--saffron);
  border: 1px solid var(--saffron); padding: 5px 11px;
}
.work-icon {
  width: clamp(96px, 14vw, 132px); height: auto; margin-bottom: 22px;
  box-shadow: 0 28px 48px -18px rgba(0, 0, 0, 0.55);
}
.work-bigtype {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1;
}
.work-pitch {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--saffron); margin-top: 14px; padding-left: 0.4em;
}
.work-info { padding: 52px 48px; background: var(--paper); }
.work-eyebrow {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--saffron); margin-bottom: 14px;
}
.work-name { font-family: var(--font-jp); font-weight: 600; font-size: 1.5rem; margin-bottom: 16px; }
.work-text { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 26px; }
.work-meta { list-style: none; border-top: 1px dashed var(--line-dash); }
.work-meta li {
  display: flex; gap: 18px; padding: 13px 0; font-size: 0.88rem;
  border-bottom: 1px dashed var(--line-dash);
}
.work-meta li:last-child { border-bottom: none; }
.work-meta span {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey); width: 96px; flex-shrink: 0;
  padding-top: 3px;
}
.work-meta a { border-bottom: 1px solid var(--saffron); transition: color 0.2s; }
.work-meta a:hover { color: var(--saffron); }

/* ----- 04 選ばれる理由 ----- */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strength-card {
  padding: 40px 28px; border: 1px solid var(--line); margin-left: -1px; margin-top: -1px;
  background: var(--paper); transition: background 0.3s var(--ease);
}
.strength-card:hover { background: var(--bg); }
.strength-num {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 3rem; color: var(--saffron); display: block; line-height: 1; margin-bottom: 18px;
}
.strength-num small { font-size: 1.1rem; }
.strength-card h3 { font-family: var(--font-jp); font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; }
.strength-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.8; }

/* ----- 05 メンバー ----- */
.member-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.member-card { flex: 1 1 360px; max-width: 540px; }
.member-card {
  display: flex; gap: 26px; padding: 40px; border: 1px solid var(--line);
  background: var(--paper); transition: transform 0.3s var(--ease);
}
.member-card:hover { transform: translateY(-4px); }
.member-initial {
  width: 72px; height: 72px; flex-shrink: 0; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-jp); font-weight: 500;
  font-size: 1.8rem; border-bottom: 4px solid var(--saffron);
}
.member-name { font-family: var(--font-jp); font-weight: 600; font-size: 1.3rem; }
.member-name span {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey);
  font-weight: 400; margin-top: 4px;
}
.member-role {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--saffron); margin: 8px 0 12px;
}
.member-text { font-size: 0.88rem; color: var(--ink-soft); }

/* ----- 06 会社概要 ----- */
.company-table { border-top: 1px solid var(--ink); }
.company-table dl {
  display: flex; border-bottom: 1px dashed var(--line-dash); padding: 20px 4px;
}
.company-table dt {
  width: 220px; flex-shrink: 0; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey);
  padding-top: 2px;
}
.company-table dd { font-size: 0.98rem; }
.company-table dd a { border-bottom: 1px solid var(--saffron); }

/* ----- 07 お問い合わせ ----- */
.section-contact { padding-bottom: 130px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-catch {
  font-family: var(--font-jp); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.5; margin-bottom: 22px; color: var(--paper);
}
.contact-text { font-size: 0.95rem; color: rgba(253, 251, 245, 0.72); margin-bottom: 30px; }
.contact-direct { list-style: none; }
.contact-direct li {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
  border-top: 1px dashed rgba(253, 251, 245, 0.28);
}
.contact-direct li:last-child { border-bottom: 1px dashed rgba(253, 251, 245, 0.28); }
.contact-direct span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  color: var(--saffron); width: 52px; flex-shrink: 0;
}
.contact-direct a { font-family: var(--font-mono); font-size: 0.95rem; color: var(--paper); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(253, 251, 245, 0.7);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-jp); font-weight: 300; font-size: 0.95rem;
  padding: 14px 16px; background: transparent; color: var(--paper);
  border: 1px solid rgba(253, 251, 245, 0.32); border-radius: 0;
  transition: border-color 0.25s;
}
.contact-form select option { color: var(--ink); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(253,251,245,0.32); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--saffron);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.contact-form .btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.form-note {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-align: center; padding: 12px; line-height: 1.7;
}
.form-note.ok { color: var(--saffron); border: 1px solid var(--saffron); }
.form-note.err { color: #f0a0a0; border: 1px solid #f0a0a0; }

/* ----- フッター ----- */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 30px; }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(253, 251, 245, 0.18);
}
.footer-brand .logo { color: var(--paper); margin-bottom: 18px; }
.footer-brand .logo-sub { color: rgba(253, 251, 245, 0.5); }
.footer-tagline { font-family: var(--font-jp); font-weight: 400; font-size: 0.95rem; color: rgba(253,251,245,0.75); }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a {
  font-family: var(--font-jp); font-size: 0.88rem; color: rgba(253, 251, 245, 0.7);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--saffron); }
.footer-contact {
  font-family: var(--font-mono); font-size: 0.74rem; font-style: normal;
  line-height: 2; color: rgba(253, 251, 245, 0.7); letter-spacing: 0.04em;
}
.footer-contact a:hover { color: var(--saffron); }
.copyright {
  text-align: center; margin-top: 28px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(253, 251, 245, 0.42);
}

/* ----- スクロールアニメーション ----- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----- レスポンシブ ----- */
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .work-feature { grid-template-columns: 1fr; }
  .work-visual { min-height: 280px; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .sp-only { display: inline; }
  .section { padding: 84px 0; }
  .section-head { flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
  .section-jp { margin-left: 0; width: 100%; }
  .logo-sub { display: none; }

  .nav {
    position: fixed; top: 84px; right: 0; width: 80%; max-width: 320px;
    height: calc(100vh - 84px); background: var(--bg);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 30px 28px; border-left: 1px solid var(--line);
    transform: translateX(110%); transition: transform 0.4s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { width: 100%; padding: 16px 0; font-size: 0.86rem; border-bottom: 1px dashed var(--line-dash); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; text-align: center; padding: 15px; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 30px; }
  .hero-index { gap: 16px 28px; }

  .service-row { flex-direction: column; gap: 14px; padding: 36px 0; }
  .work-info { padding: 36px 26px; }
  .member-grid { grid-template-columns: 1fr; }
  .member-card { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .company-table dl { flex-direction: column; gap: 6px; }
  .company-table dt { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 460px) {
  .strength-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
