/* Elu corporate site v3 — 生成り × 紺 × 金 */
:root {
  --paper: #F7F4EE;
  --paper-deep: #EFE8DA;
  --navy: #1D3260;
  --ink: #1F2A44;
  --sub: #4A5470;
  --gold: #C9A227;
  --gold-deep: #7C5A17;
  --gold-grad: linear-gradient(180deg, #C9A227 0%, #A8841F 55%, #7C5A17 100%);
  --line: rgba(29, 50, 96, 0.16);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --maxw: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 880px; }
.sp { display: none; }
.nw { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header-inner {
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand img { width: 58px; height: auto; }
.gnav ul { display: flex; gap: 32px; align-items: center; }
.gnav a {
  font-size: 14px; letter-spacing: 0.08em; color: var(--navy); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.gnav a:hover { border-bottom-color: var(--gold); }
.gnav .gnav-contact {
  padding: 8px 18px; border: 1px solid var(--gold); color: var(--navy);
}
.gnav .gnav-contact:hover { background: rgba(201, 162, 39, 0.1); }

/* ---------- FV ---------- */
.fv {
  position: relative;
  min-height: max(100vh, 680px);
  min-height: max(100svh, 680px);
  display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(247,244,238,.92) 0%, rgba(247,244,238,.78) 34%, rgba(247,244,238,0) 56%),
    var(--paper) url("assets/fv_pc.webp") right center / auto 100% no-repeat;
  overflow: hidden;
}
.fv-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 32px 96px 6vw;
}
.fv-motto {
  font-family: var(--serif); font-size: 15px; color: var(--navy);
  letter-spacing: 0.62em; margin-bottom: 48px;
}
.fv-title {
  display: flex; align-items: flex-end; gap: 0.35em;
  font-family: var(--serif); font-weight: 600; line-height: 1;
}
.fv-title-pre {
  display: flex; flex-direction: column; gap: 0.35em;
  font-size: clamp(20px, 2.1vw, 30px); font-weight: 500; color: var(--navy);
  letter-spacing: 0.2em; padding-bottom: 0.6em;
}
.fv-title-main {
  font-size: clamp(104px, 11.5vw, 200px);
  white-space: nowrap;
  letter-spacing: 0.02em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: 0.04em 0 0.02em;
}
.fv-lead {
  max-width: 34em;
  margin-top: 44px;
  font-family: var(--serif); font-size: clamp(17px, 1.45vw, 20px); font-weight: 500;
  color: var(--navy); line-height: 1.9; letter-spacing: 0.08em;
}
.fv-sub {
  position: relative; display: inline-block;
  margin-top: 28px; padding: 14px 28px;
  font-size: 15px; color: var(--sub); line-height: 1.9; letter-spacing: 0.1em;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.fv-sub::before, .fv-sub::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 10px;
  border: solid var(--gold); border-width: 1px 1px 0 0;
  background: transparent;
}
.fv-sub::before { left: -5px; transform: translateY(-50%) rotate(-135deg); }
.fv-sub::after  { right: -5px; transform: translateY(-50%) rotate(45deg); }
.fv-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 64px; overflow: hidden;
}
.fv-scroll span {
  position: absolute; inset: 0; background: var(--gold);
  animation: scrollline 2.4s ease-in-out infinite;
}
@keyframes scrollline {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Common section ---------- */
.section { padding: 152px 0; position: relative; }
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: 0.24em; color: var(--gold-deep);
  margin-bottom: 22px;
}
.label::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.label-center { justify-content: center; }
.label-center::after { content: ""; width: 32px; height: 1px; background: var(--gold); }
.h2 {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.55; letter-spacing: 0.08em;
}
.h3 {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.6; letter-spacing: 0.08em;
}
.sec-head { margin-bottom: 72px; }
.sec-head-center { text-align: center; }
.prose p + p { margin-top: 1.4em; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start;
}
.about-head { position: sticky; top: calc(var(--header-h) + 48px); }
.about-head .h2 { font-size: clamp(26px, 2.5vw, 36px); }
.about-body { display: grid; gap: 44px; padding-top: 8px; }
.about-body .prose { padding-left: 28px; border-left: 1px solid var(--line); }
.about-close {
  margin: 128px auto 0; padding: 0 24px; text-align: center;
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(28px, 4vw, 52px); letter-spacing: 0.14em; line-height: 1.5;
}
.about-close::before, .about-close::after {
  content: ""; display: block; width: 1px; height: 56px; margin: 0 auto;
  background: var(--gold);
}
.about-close::before { margin-bottom: 36px; }
.about-close::after { margin-top: 36px; }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, var(--paper) 0%, #F3EEE4 100%); padding-top: 104px; }
.svc-list { display: grid; gap: 96px; }
.svc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.svc:nth-child(even) .svc-fig { order: 2; }
.svc-fig {
  aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: center;
}
.svc-fig img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.svc-no {
  display: block; font-family: var(--serif); font-size: 15px; color: var(--gold-deep);
  letter-spacing: 0.2em; margin-bottom: 12px;
}
.svc-name {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(22px, 2.3vw, 30px); line-height: 1.5; letter-spacing: 0.06em;
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.onehand {
  margin: 136px auto 0; max-width: 760px; text-align: center;
}
.onehand .h3 { margin-bottom: 36px; }
.onehand .h3::after {
  content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin: 28px auto 0;
}

/* ---------- Stance ---------- */
.stance { background: var(--paper-deep); text-align: center; padding: 176px 0; }
.stance .narrow { max-width: 1040px; }
.stance-def {
  margin-top: 16px;
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(24px, 3.2vw, 42px); line-height: 1.8; letter-spacing: 0.1em;
}
.stance-body { margin-top: 56px; font-size: 17px; }
.stance-credit {
  margin-top: 40px; font-family: var(--serif); font-size: 15px; color: var(--sub); letter-spacing: 0.16em;
}

/* ---------- Company ---------- */
.company-table { border-top: 1px solid var(--navy); }
.company-table > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
}
.company-table dt { font-weight: 500; color: var(--navy); letter-spacing: 0.12em; }
.company-table dd { line-height: 1.9; }
.biz li { position: relative; padding-left: 1.1em; }
.biz li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 5px; height: 1px; background: var(--gold-deep); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: 176px; border-top: 1px solid var(--line); }
.contact-body p + p { margin-top: 1.2em; }
.contact-invite {
  margin-top: 44px !important;
  font-family: var(--serif); font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; color: var(--navy);
  line-height: 1.8; letter-spacing: 0.08em;
}
.contact-mail {
  margin-top: 40px !important;
  font-family: var(--serif); font-size: 20px; letter-spacing: 0.12em; color: var(--navy);
}
.btn {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 28px; padding: 20px 48px;
  background: var(--navy); color: var(--paper); text-decoration: none;
  font-size: 16px; font-weight: 500; letter-spacing: 0.14em;
  border: 1px solid var(--navy); outline: 1px solid var(--gold); outline-offset: 4px;
  transition: background .25s, color .25s;
}
.btn::after { content: "→"; font-family: var(--sans); transition: transform .25s; }
.btn:hover { background: transparent; color: var(--navy); }
.btn:hover::after { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--paper); }
.footer-inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.footer-brand img { width: 64px; }
.fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.fnav a { font-size: 13px; color: var(--sub); text-decoration: none; letter-spacing: 0.06em; }
.fnav a:hover { color: var(--navy); }
.copyright { font-size: 12px; color: var(--sub); letter-spacing: 0.1em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fv-scroll span { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .gnav ul { gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-head { position: static; }
  .svc { gap: 40px; }
}

/* ---------- FV: portrait / tablet uses the vertical background ---------- */
@media (max-width: 1024px), (max-aspect-ratio: 5/4) {
  .fv {
    align-items: flex-start;
    min-height: 0;
    background: var(--paper) url("assets/fv_sp.webp") center bottom / 100% auto no-repeat;
  }
  .fv-inner { padding: calc(var(--header-h) + 56px) 6vw 70vw; }
  .fv-scroll { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; line-height: 1.95; }
  .pc { display: none; }
  .sp { display: inline; }
  .wrap, .header-inner { padding: 0 20px; }
  .brand img { width: 48px; }
  .gnav li:not(:last-child) { display: none; }
  .gnav .gnav-contact { padding: 6px 14px; font-size: 13px; }

  .fv-inner { padding: calc(var(--header-h) + 32px) 20px 72vw; }
  .fv-motto { font-size: 12px; letter-spacing: 0.32em; margin-bottom: 32px; }
  .fv-title-pre { font-size: 18px; }
  .fv-title-main { font-size: clamp(64px, 21vw, 104px); }
  .fv-lead { margin-top: 28px; font-size: 17px; }
  .fv-sub { margin-top: 20px; padding: 10px 18px; font-size: 13.5px; letter-spacing: 0.06em; }
  .fv-scroll { display: none; }

  .section { padding: 96px 0; }
  .sec-head { margin-bottom: 48px; }
  .about-body .prose { padding-left: 18px; }
  .about-close { margin-top: 80px; }
  .services { padding-top: 64px; }
  .svc-fig { max-width: 240px; }

  .svc-list { gap: 72px; }
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .svc:nth-child(even) .svc-fig { order: 0; }
  .svc-fig { max-width: 260px; }
  .onehand { margin-top: 96px; text-align: left; }
  .onehand .h3 { text-align: center; }

  .stance { padding: 112px 0; }
  .stance-body { margin-top: 40px; }

  .company-table > div { grid-template-columns: 1fr; gap: 4px; padding: 20px 4px; }
  .company-table dt { font-size: 13px; color: var(--gold-deep); }

  .contact { padding-bottom: 120px; }
  .contact-body { text-align: left; }
  .contact-invite, .contact-mail { text-align: center; }
  .contact-body .btn { display: flex; justify-content: center; }
}
