/* =============================================================================
   em business partners ― Landing Page
   Coral / warm-paper editorial theme
   ========================================================================== */

:root {
  --paper:       #FBF6F2;
  --paper-deep:  #F4E9E2;
  --ink:         #2B2521;
  --ink-soft:    #5E534B;
  --ink-faint:   #8C7F75;
  --coral:       #FF6F5E;
  --coral-deep:  #D9433A;
  --coral-ink:   #E2574A;
  --blush:       #FFE4DC;
  --blush-2:     #FFD3C8;
  --line:        rgba(43, 37, 33, 0.12);
  --line-soft:   rgba(43, 37, 33, 0.07);

  --serif:  "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --latin:  "Cormorant Garamond", Georgia, serif;

  --maxw: 1180px;
  --gutter: clamp(22px, 6vw, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- reset ---------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--gothic);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; }

/* ---- fluid background canvas --------------------------------------------- */
#fluid {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  /* WebGL 非対応時のフォールバック：淡いコーラルのにじみ */
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(255, 111, 94, 0.18), transparent 60%),
    radial-gradient(55% 50% at 14% 82%, rgba(255, 150, 120, 0.14), transparent 62%),
    radial-gradient(70% 60% at 50% 50%, rgba(255, 211, 200, 0.10), transparent 70%);
}
/* 紙の質感を重ね、本文の可読性を担保する薄いベール */
.paper-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(251, 246, 242, 0.55) 0%, rgba(251, 246, 242, 0.20) 26%,
      rgba(251, 246, 242, 0.20) 74%, rgba(251, 246, 242, 0.62) 100%);
}

/* すべてのコンテンツは背景の上に */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---- layout helpers ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.04em;
  color: var(--coral-deep);
}

.section-no {
  font-family: var(--latin);
  font-style: italic;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1;
  color: var(--blush-2);
  font-weight: 600;
}

.jp-mark { color: var(--coral-deep); }

/* ---- header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), padding 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 246, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand__mark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral-deep);
}
.brand__name {
  font-family: var(--latin);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__link {
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s var(--ease);
}
.nav__link span {
  display: block;
  font-family: var(--latin);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--coral-deep);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--coral-deep);
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__cta:hover { background: var(--ink); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---- hero ----------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px var(--gutter) 90px;
}
.hero__inner { max-width: 1000px; }
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 8.4vw, 104px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hero__title .line { display: block; }
.hero__lead {
  margin-top: 36px;
  max-width: 640px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2.05;
  color: var(--ink-soft);
}
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; letter-spacing: 0.04em;
  padding: 15px 30px; border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--solid { background: var(--coral-deep); color: #fff; }
.btn--solid:hover { background: var(--ink); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--coral-deep); color: var(--coral-deep); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero__meta {
  margin-top: 64px;
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line); padding-top: 26px;
  max-width: 720px;
}
.hero__meta dt {
  font-family: var(--latin); font-style: italic;
  font-size: 12px; letter-spacing: 0.06em; color: var(--ink-faint);
  margin-bottom: 4px;
}
.hero__meta dd { font-size: 15px; color: var(--ink); font-weight: 500; }

.scroll-cue {
  margin-top: auto; padding-top: 40px;
  font-family: var(--latin); font-style: italic; font-size: 12px;
  letter-spacing: 0.18em; color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue::after {
  content: ""; width: 46px; height: 1px; background: var(--ink-faint);
  transform-origin: left; animation: scrollline 2.4s var(--ease) infinite;
}
@keyframes scrollline { 0%,100% { transform: scaleX(0.3); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* ---- generic section ------------------------------------------------------ */
.section { padding: clamp(86px, 13vw, 168px) 0; }
.section__head { margin-bottom: clamp(46px, 6vw, 78px); }
.section__head-row { display: flex; align-items: flex-start; gap: clamp(20px, 4vw, 48px); }
.section__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 52px); line-height: 1.4; letter-spacing: 0.01em;
  margin-top: 10px;
}
.section__title em {
  display: block; font-family: var(--latin); font-style: italic; font-weight: 500;
  font-size: clamp(15px, 1.6vw, 20px); color: var(--coral-deep);
  letter-spacing: 0.04em; margin-bottom: 14px;
}

/* ---- philosophy ----------------------------------------------------------- */
.philosophy__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 90px); align-items: start;
}
.philosophy__statement {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.7; letter-spacing: 0.01em;
}
.philosophy__statement .mark {
  background: linear-gradient(transparent 62%, var(--blush) 62%);
  padding: 0 2px;
}
.philosophy__body p { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 16.5px); line-height: 2.1; }
.philosophy__body p + p { margin-top: 22px; }
.philosophy__link { display: inline-flex; gap: 8px; margin-top: 28px; color: var(--coral-deep); font-size: 15px; }
.philosophy__link .arrow { transition: transform 0.25s var(--ease); }
.philosophy__link:hover .arrow { transform: translateX(4px); }

/* ---- services ------------------------------------------------------------- */
.services__list { display: flex; flex-direction: column; }
.service {
  display: grid;
  grid-template-columns: 92px 1fr minmax(220px, 360px);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(36px, 5vw, 58px) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__no { font-family: var(--latin); font-style: italic; font-size: clamp(34px, 5vw, 58px); color: var(--blush-2); line-height: 1; }
.service__main h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 30px); line-height: 1.5; margin-bottom: 6px;
}
.service__main .service__en {
  font-family: var(--latin); font-style: italic; color: var(--coral-deep);
  font-size: 15px; letter-spacing: 0.04em; margin-bottom: 18px; display: block;
}
.service__main p { color: var(--ink-soft); font-size: 15.5px; line-height: 2.05; max-width: 56ch; }
.service__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; align-content: flex-start; }
.service__tags li {
  font-size: 12.5px; letter-spacing: 0.03em; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  background: rgba(255, 255, 255, 0.45);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.service:hover .service__tags li { border-color: var(--blush-2); }
.service__tags li:hover { color: var(--coral-deep); border-color: var(--coral-deep); background: #fff; }

/* ---- approach (3 steps) --------------------------------------------------- */
.approach__statement {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 3vw, 36px); line-height: 1.7;
  max-width: 22ch; margin-bottom: clamp(40px, 6vw, 72px);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step {
  padding: 34px 28px 38px;
  border-top: 2px solid var(--coral);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}
.step__no { font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--coral-deep); letter-spacing: 0.06em; }
.step h4 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 14px 0 12px; }
.step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.95; }

/* ---- company -------------------------------------------------------------- */
.company__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.company__lede {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.6;
}
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td {
  text-align: left; vertical-align: top; padding: 18px 0;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.profile th { width: 34%; font-weight: 600; color: var(--ink); white-space: nowrap; }
.profile td { color: var(--ink-soft); }
.profile .note { color: var(--ink-faint); font-size: 12.5px; }

/* ---- contact -------------------------------------------------------------- */
.contact { text-align: center; padding: clamp(96px, 14vw, 188px) 0; }
.contact__eyebrow { margin-bottom: 22px; }
.contact__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 6vw, 76px); line-height: 1.3; margin-bottom: 28px;
}
.contact__lead { color: var(--ink-soft); max-width: 540px; margin: 0 auto 42px; font-size: clamp(15px,1.6vw,17px); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.contact__mail { display: inline-block; margin-top: 30px; font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--coral-deep); }
.contact__mail:hover { text-decoration: underline; }

/* ---- footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand .brand__mark { font-size: 30px; }
.footer__brand address { font-style: normal; color: var(--ink-soft); font-size: 14px; line-height: 1.9; margin-top: 16px; }
.footer__nav { display: flex; gap: clamp(36px, 6vw, 80px); flex-wrap: wrap; }
.footer__col h5 { font-family: var(--latin); font-style: italic; font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; letter-spacing: 0.05em; }
.footer__col a { display: block; font-size: 14px; color: var(--ink-soft); padding: 5px 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--coral-deep); }
.footer__bottom {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-size: 12px; color: var(--ink-faint); line-height: 1.8;
}
.footer__credit a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--coral-deep); }

/* ---- reveal animation ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- mobile nav ----------------------------------------------------------- */
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 30px; background: rgba(251, 246, 242, 0.97);
    backdrop-filter: blur(8px);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { font-size: 22px; font-family: var(--serif); }
  .nav__link span { font-size: 12px; text-align: center; }
  .nav__cta { font-size: 16px; padding: 14px 30px; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    width: 34px; height: 24px; justify-content: center;
    background: none; border: 0; cursor: pointer; z-index: 60;
  }
  .nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 880px) {
  .philosophy__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 56px 1fr; }
  .service__tags { grid-column: 1 / -1; padding-left: 0; margin-top: 4px; }
  .steps { grid-template-columns: 1fr; }
  .company__grid { grid-template-columns: 1fr; }
  .section__head-row { flex-direction: column; gap: 6px; }
  .section-no { font-size: clamp(40px, 13vw, 64px); }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .hero { padding-top: 130px; }
  .profile th { width: 40%; }
  .footer__top { flex-direction: column; }
}
