/* むすび — ITマーケティング
   Hero: the word MUSUBI splits at the centre and a pill opens between the halves.
   Everything in the hero is sized from --fs, the font size of the word. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --fs: min(17vh, 10.4vw);
  --page: #ffffff;
  --paper: #f2f2f1;
  --ink: #1d1d1d;
  --ink-2: #3a3a3a;
  --ink-3: #62625c;
  --rule: #a9a9a6;
  --line: #dcdcd8;
  --btn: #1b1b1b;
  --red: #d24e2c;
  --red-text: #b03b1c; /* small red text on paper: 5:1 */
  --card: #ffffff;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --en: "Inter", var(--jp);
  --gut: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}
/* Korean version (/ko/) */
html[lang="ko"] { --jp: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[lang="ko"] body { letter-spacing: -.005em; word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: normal; }
html[lang="ko"] .statement, html[lang="ko"] .h2 { letter-spacing: -.02em; }
/* English (/en/) and Simplified Chinese (/zh/) */
html[lang="en"] { --jp: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang="en"] body { letter-spacing: -.005em; line-height: 1.7; font-feature-settings: normal; }
html[lang="en"] .statement, html[lang="en"] .h2 { letter-spacing: -.03em; line-height: 1.15; }
html[lang="en"] .h2 { line-height: 1.25; }
html[lang="en"] .cap { font-weight: 650; margin-top: .02em; }
html[lang="en"] .btn, html[lang="en"] .float-cta, html[lang="en"] .nav, html[lang="en"] .f > span, html[lang="en"] .f legend { letter-spacing: 0; }
html[lang^="zh"] { --jp: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang^="zh"] body { letter-spacing: .02em; font-feature-settings: normal; }

/* language switcher: JA · KO · EN · 中文 */
.langs { display: flex; align-items: center; gap: .9em; padding-left: 1.4em; border-left: 1px solid var(--rule); }
.langs a { color: var(--ink-3); font-family: var(--en); font-weight: 500; letter-spacing: .04em; }
.langs a:hover, .langs a[aria-current] { color: var(--ink); }
.langs a[aria-current]::after { transform: scaleX(1); }
.site-foot .langs { gap: 14px; padding-left: 24px; }
.site-foot .langs a { text-decoration: none; }
.site-foot .langs a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

a { color: inherit; }
img, video, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--ink); color: #fff; }

/* ───────────────────────── HERO ───────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--page);
  font-size: var(--fs);
}
html.js:not(.ready) .hero > :not(.paper) { visibility: hidden; }
html.js:not(.ready) .paper { opacity: 0; }

.paper { position: absolute; inset: 0; background: var(--paper); }
.flow { width: 100%; height: 100%; }
.flow path { fill: none; stroke: #fff; vector-effect: non-scaling-stroke; stroke-linecap: round; }

.word {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .085em;
  font: 800 1em/.8 var(--en);
  letter-spacing: -.045em;
  white-space: nowrap;
  color: var(--ink);
  cursor: default;
}
.half { display: block; padding-top: .02em; }
.ha { margin-right: -.045em; } /* cancel the trailing tracking so both gaps match */

.pill {
  position: relative;
  display: block;
  flex: none;
  width: 3.62em;
  height: 1.81em;
  border-radius: 999px;
  overflow: hidden;
  background: #d8d3cf;
  letter-spacing: 0;
  isolation: isolate;
}
.scene {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: max(4.2em, 100%);
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center 40%;
}
.hair { position: absolute; inset: 0; background: #b9b9b9; opacity: 0; pointer-events: none; }

.ico {
  position: absolute;
  top: 50%;
  width: .13em;
  height: .13em;
  transform: translateY(-50%);
  opacity: .85;
  color: #1d1d1d;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-l { left: .2em; }
.ico-r { right: .2em; padding: 0; border: 0; background: none; cursor: pointer; }
.ico-r svg { width: 100%; height: 100%; }
.ico-r .waves { transition: opacity .35s var(--ease); }
.ico-r[aria-pressed="false"] .waves { opacity: 0; }

/* nav */
.nav {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  padding: calc(var(--fs) * .14) calc(var(--fs) * .27) 0;
  font: 450 max(13px, calc(var(--fs) * .08))/1.4 var(--jp);
  letter-spacing: .04em;
  z-index: 2;
}
.nav ul { display: flex; gap: 1.6em; margin: 0; padding: 0; list-style: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-l li:first-child a { font-family: var(--en); }

/* footer bar */
.foot {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  gap: calc(var(--fs) * .2);
  padding: 0 calc(var(--fs) * .27) calc(var(--fs) * .2);
  z-index: 2;
}
.lede {
  flex: none;
  width: max(290px, calc(var(--fs) * 2.15));
  margin: 0;
  font-size: max(12.5px, calc(var(--fs) * .074));
  line-height: 1.8;
  color: var(--ink-2);
}
.cap {
  float: left;
  font-size: 2.35em;
  font-weight: 700;
  line-height: 1;
  margin: .08em .12em 0 0;
  color: var(--ink);
}
.rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  align-self: flex-end;
  margin-bottom: calc(max(13px, var(--fs) * .08) * 1.6);
  transform-origin: 50% 50%;
}

/* buttons */
.btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .9em;
  padding: .55em .55em .55em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font: 500 max(13px, calc(var(--fs) * .08))/1.4 var(--jp);
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .5s var(--ease), background .3s;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn-i {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-family: var(--en);
  transition: transform .5s var(--ease), background .3s;
}
.btn:hover .btn-i, .float-cta:hover .btn-i { transform: translateX(3px); background: var(--red); }

/* ───────────────────────── SECTIONS ───────────────────────── */
.sec {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(96px, 13vw, 180px) var(--gut) 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font: 500 12px/1 var(--en);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.statement {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 80px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: .01em;
}
.statement em { font-style: normal; color: var(--red); }
.h2 {
  margin: 0 0 clamp(40px, 5vw, 72px);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

/* about */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin: clamp(48px, 6vw, 88px) 0 0 auto;
  max-width: 820px;
  color: var(--ink-2);
}
.about-body p { margin: 0; }

/* issues */
.issue-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.issue-list li {
  display: flex;
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.6;
}
.issue-list span { font: 500 13px/1 var(--en); color: var(--red-text); letter-spacing: .08em; }
.issues-note { margin: 36px 0 0; color: var(--ink-2); }
.issues-note a { margin-left: .6em; font-weight: 700; color: var(--ink); text-underline-offset: 5px; }

/* service bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 30px 60px -40px rgba(30, 30, 20, .18);
  overflow: hidden;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 40px 70px -40px rgba(30, 30, 20, .26); }
.c-wide { grid-column: span 4; }
.card h3 { margin: auto 0 12px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.4; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.card .c-no { margin: 0 0 48px; font: 500 12px/1 var(--en); letter-spacing: .12em; color: var(--ink-3); }
.c-wide p:not(.c-no) { max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--paper); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.c-dark { background: #1b1b1b; color: #fff; }
.c-dark::before {
  content: ""; position: absolute; inset: 0;
  background: url("media/poster.jpg") center 30% / cover;
  opacity: .32;
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.c-dark:hover::before { opacity: .45; transform: scale(1.04); }
.c-dark > * { position: relative; }
.c-dark p, .c-dark .c-no { color: rgba(255, 255, 255, .78); }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.why-item { padding-top: 28px; border-top: 1px solid var(--ink); }
.why-k { margin: 0 0 26px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--red-text); }
.why-item h3 { margin: 0 0 14px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; }
.why-item p:last-child { margin: 0; color: var(--ink-2); font-size: 15px; }

/* process */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: ""; position: absolute; left: 22px; right: 0; top: 22px; height: 1px;
  background: linear-gradient(90deg, var(--red), var(--rule) 60%, transparent);
}
.steps li { position: relative; }
.st-n {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 30px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
  font: 600 13px/1 var(--en);
}
.steps li:first-child .st-n { background: var(--ink); color: #fff; }
.steps h3 { margin: 0 0 10px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* faq */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative;
  padding: 26px 56px 26px 0;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px;
  background: var(--ink); transition: transform .5s var(--ease);
}
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0); }
.qa details p { margin: 0; padding: 0 56px 30px 0; color: var(--ink-2); }

/* company */
.profile { margin: 0; border-top: 1px solid var(--ink); }
.profile div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.profile dt { font-weight: 700; font-size: 15px; }
.profile dd { margin: 0; color: var(--ink-2); }

/* contact */
.contact {
  max-width: none;
  margin: clamp(96px, 13vw, 180px) clamp(8px, 1.4vw, 20px) 0;
  padding: clamp(72px, 9vw, 140px) var(--gut);
  border-radius: clamp(28px, 3vw, 44px);
  background: #161616;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: clamp(48px, 6vw, 110px);
}
.contact .eyebrow { color: rgba(255, 255, 255, .55); }
.contact-head .statement { font-size: clamp(32px, 3.4vw, 52px); }
.contact-head > p:last-child { margin: 32px 0 0; color: rgba(255, 255, 255, .7); }

.form { display: grid; gap: 26px; align-content: start; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.f { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f > span, .f legend { font-size: 13px; color: rgba(255, 255, 255, .7); letter-spacing: .06em; padding: 0; }
.form b {
  margin-left: 8px; padding: 3px 8px; border-radius: 5px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 500; vertical-align: 1px;
}
.f input, .f textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .4s var(--ease);
}
.f textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.f input:focus, .f textarea:focus { border-color: #fff; }
.f textarea::placeholder { color: rgba(255, 255, 255, .5); }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topics legend { margin-bottom: 12px; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; }
.topics span {
  display: block; padding: 9px 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  font-size: 14px; line-height: 1.4;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.topics input:checked + span { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #fff; }
.topics input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 12px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .85); cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--red); }
.agree a { text-underline-offset: 4px; }
.f-send { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-lg { font-size: 16px; background: #fff; color: var(--ink); }
.btn-lg:hover { background: #fff; }
.btn-lg .btn-i { background: rgba(0, 0, 0, .08); }
.btn-lg:hover .btn-i { color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.f-note { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.f-note.ok { color: #fff; font-weight: 500; }

/* site footer */
.site-foot {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 56px var(--gut) 64px;
  font-size: 13px;
  color: var(--ink-2);
}
.sf-mark { margin: 0 auto 0 0; font: 800 22px/1 var(--en); letter-spacing: -.03em; color: var(--ink); }
.sf-mark span { margin-left: 10px; font: 500 12px var(--jp); letter-spacing: .1em; color: var(--ink-3); }
.site-foot ul { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sf-c { margin: 0; font-family: var(--en); }

/* floating CTA */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.float-cta.on { transform: none; opacity: 1; }
.float-cta .btn-i { width: 34px; height: 34px; }

/* scroll reveal */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ───────────────────────── PHONE ───────────────────────── */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .c-wide { grid-column: span 1; }
  .c-wide { grid-column: span 2; }
  .why { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --fs: min(30vw, 15vh); --gut: 20px; }
  .hero { min-height: 600px; }

  .word {
    top: 47%;
    flex-direction: column;
    gap: .1em;
    width: calc(100vw - 40px);
  }
  .ha { margin-right: 0; }
  .pill {
    width: 100%;
    height: calc((100vw - 40px) / 1.85);
    border-radius: min(9vw, 36px);
  }
  .scene {
    top: 50%;
    left: 0;
    width: 100%;
    height: calc((100vw - 40px) / 1.85);
    transform: translateY(-50%);
  }
  .ico { width: 18px; height: 18px; }
  .ico-l { left: 16px; }
  .ico-r { right: 16px; }

  .nav { padding: 18px 20px 0; font-size: 12.5px; }
  .nav .nav-r > li:not(.langs), .nav .nav-l > li:first-child { display: none; }
  .langs { padding-left: 1em; gap: .75em; }
  .site-foot .langs { padding-left: 0; border-left: 0; }
  .nav ul { gap: 1em; }

  .foot {
    flex-wrap: wrap;
    gap: 14px 16px;
    padding: 0 20px 20px;
  }
  .lede { width: 100%; font-size: 13px; line-height: 1.6; }
  .cap { font-size: 2.6em; }
  .rule { align-self: center; margin: 0; }
  .btn { font-size: 13px; padding: 0 5px 0 16px; height: 38px; gap: 10px; }
  .btn .btn-i { width: 28px; height: 28px; }
  .btn-lg { height: 52px; font-size: 15px; padding: 0 7px 0 22px; }
  .btn-lg .btn-i { width: 38px; height: 38px; }

  .about-body { grid-template-columns: 1fr; margin-top: 40px; }
  .bento { grid-template-columns: 1fr; }
  .card, .c-wide { grid-column: span 1; min-height: 0; }
  .card .c-no { margin-bottom: 36px; }
  .steps { grid-template-columns: 1fr; }
  .profile div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .f-row { grid-template-columns: 1fr; }
  .qa summary { padding-right: 40px; }
  .qa details p { padding-right: 0; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .float-cta { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card::before, .btn, .btn-i, .float-cta { transition: none; }
}
