/* =========================================================
   Portfolio — Corporate Website Works
   ========================================================= */

:root {
  --c-bg: #f4f2ee;
  --c-paper: #fbfaf8;
  --c-ink: #141414;
  --c-ink-soft: #5c5c5c;
  --c-mute: #9a9a9a;
  --c-line: rgba(20, 20, 20, 0.12);
  --c-accent: #c8553d;

  --f-ja: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --f-en: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-label: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --w-max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-ja);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }

.inner {
  width: 100%;
  max-width: calc(var(--w-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Common ---------- */

.label {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.sec-title {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.95;
  margin-top: 16px;
}
.sec-title sup {
  font-family: var(--f-label);
  font-size: 13px;
  letter-spacing: 0.1em;
  vertical-align: top;
  margin-left: 8px;
  color: var(--c-mute);
}
.sec-desc { max-width: 400px; color: var(--c-ink-soft); font-size: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 26px 16px 30px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease); }
.btn:hover { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.btn:hover svg { transform: translateX(4px); }
.btn--ext:hover svg { transform: translate(3px, -3px); }

.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js-reveal.is-visible { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.12s; }
.js-reveal[data-delay="2"] { transition-delay: 0.24s; }
.js-reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease);
}
.header.is-scrolled {
  background: rgba(244, 242, 238, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
}
.nav ul { display: flex; gap: 40px; }
.nav a {
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.is-menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(20deg); }
.is-menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-20deg); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  padding: 160px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.hero__catch {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(52px, 10.5vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.hero__catch em { font-style: normal; color: var(--c-accent); }
.hero__catch .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__catch .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.4s var(--ease) forwards;
}
.hero__catch .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__catch .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero__foot {
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 40px;
  align-items: end;
  opacity: 0;
  animation: fade 1.6s var(--ease) 0.6s forwards;
}
.hero__ja { font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: 0.14em; line-height: 1.8; }
.hero__text { font-size: 13px; color: var(--c-ink-soft); }
.hero__scroll {
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.3em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-ink) 50%, var(--c-line) 50%);
  background-size: 1px 200%;
  animation: scrollLine 2.2s infinite var(--ease);
}

@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes scrollLine {
  0% { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Works ---------- */

.works { padding: clamp(100px, 12vw, 180px) 0; }
.works__list { display: grid; gap: clamp(96px, 12vw, 160px); }

.work {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.work:nth-child(even) { grid-template-columns: 1fr 1.55fr; }
.work:nth-child(even) .work__visual { order: 2; }

.work__visual { display: block; position: relative; }

/* Browser-frame thumbnail */
.thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-paper);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--c-line);
  transition: transform 1s var(--ease), box-shadow 1s var(--ease);
}
.work__visual:hover .thumb { transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4), 0 0 0 1px var(--c-line); }
.thumb__bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #ebe8e3;
  border-bottom: 1px solid var(--c-line);
}
.thumb__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3cfc8; }
.thumb__bar span {
  margin-left: 12px;
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--c-mute);
}
.thumb__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.thumb__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.4s var(--ease);
}
.work__visual:hover .thumb__screen img { transform: scale(1.04); }

/* Fallback art shown when no screenshot exists */
.thumb__art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 4%, 44px);
  color: #fff;
}
.thumb__art small {
  font-family: var(--f-label);
  font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 0.3em;
  opacity: 0.75;
}
.thumb__art strong {
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 36px);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-top: 8px;
}
.art--homeground { background: radial-gradient(90% 80% at 80% 20%, #e0a45c 0%, transparent 55%), linear-gradient(160deg, #23263a, #0f1018); }
.art--alcs       { background: radial-gradient(80% 90% at 15% 15%, #4d7cff 0%, transparent 55%), linear-gradient(150deg, #1b2233, #0b0e16); }
.art--mtgs       { background: radial-gradient(90% 80% at 85% 85%, #f2b36b 0%, transparent 55%), linear-gradient(160deg, #2f6e5b, #173a30); }
.thumb__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 80px);
}

.work__num {
  font-family: var(--f-en);
  font-style: normal;
  font-size: 22px;
  color: var(--c-accent);
}
.work__title {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  margin: 8px 0 6px;
}
.work__client { font-size: 13px; color: var(--c-ink-soft); }
.work__copy {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 1px solid var(--c-accent);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.work__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  font-size: 13px;
  margin-bottom: 32px;
}
.work__meta dt {
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mute);
  padding-top: 3px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tags li {
  font-size: 11px;
  line-height: 1;
  padding: 7px 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-paper);
}
.work__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 20px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-block;
  animation: marquee 40s linear infinite;
  font-family: var(--f-en);
  font-size: clamp(32px, 4vw, 56px);
  font-style: normal;
  font-weight: 500;
}
.marquee__track span { margin: 0 28px; }
.marquee__track span:nth-child(even) { color: var(--c-accent); font-style: normal; }

/* ---------- About ---------- */

.about { padding: clamp(100px, 12vw, 180px) 0; background: var(--c-paper); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 120px);
}
.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background:
    radial-gradient(70% 60% at 30% 30%, rgba(200, 85, 61, 0.35), transparent 60%),
    linear-gradient(160deg, #e3ded6, #cfc8bd);
  display: grid;
  place-items: center;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(20,20,20,0.4);
  overflow: hidden;
}
.about__photo { position: relative; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__name { margin: 40px 0 4px; font-size: 22px; font-weight: 500; letter-spacing: 0.16em; }
.about__role { font-family: var(--f-label); font-size: 11px; letter-spacing: 0.2em; color: var(--c-mute); text-transform: uppercase; }
.about__lead {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin: 24px 0 40px;
}
.about__body p + p { margin-top: 1.6em; }
.about__body p { color: var(--c-ink-soft); }

/* ---------- Service ---------- */

.service { padding: clamp(100px, 12vw, 180px) 0; }
.service__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-ink);
}
.service__item {
  padding: 40px 32px 48px 0;
  border-right: 1px solid var(--c-line);
}
.service__item + .service__item { padding-left: 32px; }
.service__item:last-child { border-right: 0; }
.service__num { font-family: var(--f-label); font-size: 11px; letter-spacing: 0.2em; color: var(--c-mute); }
.service__en { font-family: var(--f-en); font-size: 36px; line-height: 1.1; margin: 20px 0 4px; }
.service__ja { font-size: 13px; color: var(--c-ink-soft); margin-bottom: 20px; }
.service__text { font-size: 14px; color: var(--c-ink-soft); }
.service__tools { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.service__tools li {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--c-paper);
  border-radius: 4px;
}

/* ---------- Process ---------- */

.process { padding: clamp(100px, 12vw, 180px) 0; background: var(--c-ink); color: var(--c-paper); }
.process .label { color: rgba(255,255,255,0.6); }
.process .sec-desc { color: rgba(255,255,255,0.6); }
.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process__item {
  padding: 32px 28px 40px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  transition: background 0.5s var(--ease), border-color 0.5s;
}
.process__item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.32); }
.process__item::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--f-en);
  font-style: normal;
  font-size: 40px;
  color: var(--c-accent);
  display: block;
  line-height: 1;
  margin-bottom: 28px;
}
.process__title { font-size: 17px; font-weight: 500; letter-spacing: 0.1em; margin-bottom: 10px; }
.process__text { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.9; }

/* ---------- Contact CTA ---------- */

.cta { padding: clamp(100px, 12vw, 180px) 0; }
.cta__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  margin-top: 32px;
}
.cta__title {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(48px, 10vw, 150px);
  line-height: 1;
  transition: letter-spacing 0.8s var(--ease), color 0.5s;
}
.cta__title em { font-style: normal; }
.cta__link:hover .cta__title { letter-spacing: 0.03em; color: var(--c-accent); }
.cta__circle {
  flex-shrink: 0;
  width: clamp(64px, 9vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--c-ink);
  display: grid;
  place-items: center;
  transition: background 0.5s var(--ease), color 0.5s, transform 0.8s var(--ease);
}
.cta__circle svg { width: 30%; }
.cta__link:hover .cta__circle { background: var(--c-ink); color: var(--c-paper); transform: rotate(-45deg); }
.cta__sub { margin-top: 24px; color: var(--c-ink-soft); font-size: 14px; }

/* ---------- Footer ---------- */

.footer { padding: 40px 0; border-top: 1px solid var(--c-line); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-ink-soft);
}
.footer__sns { display: flex; gap: 24px; }
.footer__sns a:hover { color: var(--c-accent); }

/* ---------- Work detail page ---------- */

.detail-hero { padding: clamp(160px, 18vw, 240px) 0 clamp(56px, 7vw, 96px); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-mute);
  margin-bottom: 48px;
}
.breadcrumb li + li::before { content: "/"; margin-right: 12px; opacity: 0.6; }
.breadcrumb a:hover { color: var(--c-ink); }
.detail-hero__title {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.95;
  margin-top: 20px;
}
.detail-hero__client { margin-top: 20px; font-size: 15px; color: var(--c-ink-soft); }

.detail-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-ink);
  margin-top: clamp(48px, 6vw, 80px);
}
.detail-info div { padding: 20px 20px 0 0; }
.detail-info dt {
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.detail-info dd { font-size: 14px; margin-top: 4px; line-height: 1.8; }
.detail-info a { text-decoration: underline; text-underline-offset: 3px; }
.detail-info a:hover { color: var(--c-accent); }

.detail-visual { padding-bottom: clamp(80px, 10vw, 140px); }

.detail-body { padding: clamp(80px, 10vw, 140px) 0; background: var(--c-paper); }
.detail-sec {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  padding: 48px 0;
  border-top: 1px solid var(--c-line);
}
.detail-sec:last-child { border-bottom: 1px solid var(--c-line); }
.detail-sec h2 {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.1;
}
.detail-sec h2 small {
  display: block;
  font-family: var(--f-ja);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-ink-soft);
  margin-top: 10px;
}
.detail-sec p + p { margin-top: 1.4em; }
.detail-sec ul.points { display: grid; gap: 14px; }
.detail-sec ul.points li { padding-left: 24px; position: relative; }
.detail-sec ul.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 10px;
  height: 1px;
  background: var(--c-accent);
}
.todo {
  background: rgba(200, 85, 61, 0.08);
  border: 1px dashed rgba(200, 85, 61, 0.5);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--c-accent);
  font-size: 13px;
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-line);
}
.detail-nav a {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  transition: background 0.5s var(--ease);
}
.detail-nav a + a { border-left: 1px solid var(--c-line); text-align: right; }
.detail-nav a:hover { background: var(--c-paper); }
.detail-nav small { font-family: var(--f-label); font-size: 11px; letter-spacing: 0.2em; color: var(--c-mute); text-transform: uppercase; }
.detail-nav strong {
  display: block;
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .work,
  .work:nth-child(even) { grid-template-columns: 1fr; }
  .work:nth-child(even) .work__visual { order: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
  .service__list { grid-template-columns: 1fr; }
  .service__item,
  .service__item + .service__item { padding: 32px 0 40px; border-right: 0; border-bottom: 1px solid var(--c-line); }
  .process__list { grid-template-columns: 1fr 1fr; }
  .hero__foot { grid-template-columns: 1fr; gap: 20px; }
  .hero__scroll { display: none; }
  .detail-info { grid-template-columns: 1fr 1fr; }
  .detail-sec { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--c-ink);
    color: var(--c-paper);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav ul { flex-direction: column; gap: 28px; text-align: center; }
  .nav a { font-family: var(--f-en); font-size: 40px; text-transform: none; letter-spacing: 0.02em; }
  .is-menu-open .nav { opacity: 1; visibility: visible; }
  .is-menu-open .header { color: var(--c-paper); background: transparent; backdrop-filter: none; }
  .is-menu-open .logo { position: relative; z-index: 110; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process__list { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .detail-nav { grid-template-columns: 1fr; }
  .detail-nav a + a { border-left: 0; border-top: 1px solid var(--c-line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal { opacity: 1; transform: none; }
  .hero__catch .line > span { transform: none; }
  .hero__foot { opacity: 1; }
}

/* ---------- Display type tuning (sans-serif headings) ---------- */
.hero__catch,
.sec-title,
.work__title,
.cta__title,
.detail-hero__title,
.marquee__track,
.service__en,
.detail-sec h2,
.detail-nav strong { letter-spacing: -0.035em; }
.hero__catch { font-size: clamp(44px, 8.4vw, 132px); line-height: 1.02; }
.sec-title { font-size: clamp(44px, 6.6vw, 92px); }
.cta__title { font-size: clamp(44px, 8.4vw, 128px); }
.detail-hero__title { font-size: clamp(48px, 9vw, 132px); }
.marquee__track { font-weight: 500; }
.marquee__track span:nth-child(even) { font-size: 0.6em; vertical-align: middle; }
.work__num { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; }
.process__item::before { font-size: 32px; font-weight: 500; }
.cta__link:hover .cta__title { letter-spacing: -0.01em; }

/* ---------- Price ---------- */
.price { padding: clamp(100px, 12vw, 180px) 0; background: var(--c-paper); }
.price__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: clamp(36px, 4vw, 56px);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-bg);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(0,0,0,0.35); }
.plan--featured { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.plan__badge {
  position: absolute;
  top: clamp(36px, 4vw, 56px);
  right: clamp(36px, 4vw, 56px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
}
.plan__en {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.plan__name { font-size: 20px; font-weight: 700; letter-spacing: 0.1em; margin-top: 6px; }
.plan__price {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(56px, 6.4vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 28px 0 24px;
}
.plan__yen { font-size: 0.45em; margin-right: 4px; vertical-align: 0.6em; }
.plan__lead { font-size: 14px; color: var(--c-ink-soft); padding-bottom: 28px; border-bottom: 1px solid var(--c-line); }
.plan--featured .plan__lead { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.16); }
.plan__items { margin-top: 24px; display: grid; gap: 10px; font-size: 14px; }
.plan__items li { position: relative; padding-left: 28px; line-height: 1.8; }
.plan__items li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--c-accent);
  border-bottom: 1.5px solid var(--c-accent);
  transform: rotate(-45deg);
}
.plan__items strong { font-weight: 700; color: #f0a48f; }
.price__note { margin-top: 24px; font-size: 12px; color: var(--c-mute); }

@media (max-width: 768px) {
  .price__list { grid-template-columns: 1fr; }
  .plan__badge { position: static; display: inline-block; margin-bottom: 20px; }
}

/* ---------- Team ---------- */
.about__intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 120px);
  margin-bottom: clamp(64px, 8vw, 112px);
}
.about__intro .about__lead { margin-top: 0; }
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.member__photo {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #e3ded6;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(100%);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.04); }
.member__role {
  margin-top: 24px;
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.member__name { font-size: 22px; font-weight: 700; letter-spacing: 0.14em; margin-top: 4px; line-height: 1.6; }
.member__name span {
  display: block;
  font-family: var(--f-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--c-mute);
}
.member__text { margin-top: 14px; font-size: 13px; color: var(--c-ink-soft); line-height: 1.9; }

@media (max-width: 960px) {
  .about__intro { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .team { grid-template-columns: 1fr; gap: 56px; }
  .member__photo { aspect-ratio: 4 / 5; }
}
@media (hover: none) {
  .member__photo img { filter: none; }
}

/* ---------- Result ---------- */
.detail-sec strong { font-weight: 700; }
.result { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.result li {
  padding: 28px;
  border-radius: 10px;
  background: var(--c-ink);
  color: var(--c-paper);
  display: grid;
  gap: 8px;
}
.result__value {
  font-family: var(--f-en);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f0a48f;
}
.result__value::after { content: " ↑"; font-size: 0.7em; }
.work__result { color: var(--c-accent); font-weight: 700; }

/* =========================================================
   Hero v2 — "Commit to your business"
   ========================================================= */
.hero { overflow: hidden; justify-content: center; padding-bottom: 56px; }
.hero__inner { position: relative; z-index: 2; }

/* floating color blobs */
.hero__blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: transform 1.2s var(--ease); }
.hero__blobs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blob 18s ease-in-out infinite alternate;
}
.hero__blobs i:nth-child(1) { width: 46vw; height: 46vw; right: -8vw; top: -10vw; background: #f0a48f; }
.hero__blobs i:nth-child(2) { width: 30vw; height: 30vw; right: 22vw; top: 30vh; background: #f6d3a8; animation-duration: 22s; animation-delay: -6s; }
.hero__blobs i:nth-child(3) { width: 26vw; height: 26vw; left: -6vw; bottom: -8vw; background: #c9d6e8; animation-duration: 26s; animation-delay: -12s; }
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-4vw, 3vw) scale(1.12); }
  100% { transform: translate(3vw, -2vw) scale(0.94); }
}

/* giant outlined background word */
.hero__bgword {
  position: absolute;
  left: 0;
  bottom: 18%;
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: clamp(120px, 18vw, 300px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 20, 20, 0.08);
}
.hero__bgword span { display: inline-block; animation: marquee 60s linear infinite; }

.hero__label { opacity: 0; animation: fade 1s var(--ease) 0.1s forwards; }

/* main JP headline */
.hero__title {
  margin-top: 28px;
  font-size: clamp(36px, 7vw, 104px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.04em 0 0.08em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: rise 1.3s var(--ease) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.14s; }

/* marker highlight that sweeps in */
.hl {
  background-image: linear-gradient(transparent 62%, rgba(200, 85, 61, 0.38) 62%, rgba(200, 85, 61, 0.38) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: marker 1.1s var(--ease) 1.1s forwards;
  color: var(--c-accent);
}
@keyframes marker { to { background-size: 100% 100%; } }
.hl--scroll { animation: none; transition: background-size 1.2s var(--ease) 0.4s; }
.is-visible .hl--scroll { background-size: 100% 100%; }

/* key phrase: Marketing × Experience, low cost */
.hero__key {
  margin-top: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.kw {
  display: inline-block;
  padding: 0.32em 0.9em;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-paper);
  opacity: 0;
  transform: translateY(24px) scale(0.85);
  animation: pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.kw--1 { animation-delay: 1.5s; }
.kw--2 { animation-delay: 1.85s; }
.kw--3 { animation-delay: 2.35s; background: var(--c-accent); }
@keyframes pop { to { opacity: 1; transform: none; } }
.x {
  display: inline-block;
  color: var(--c-accent);
  font-size: 1.2em;
  opacity: 0;
  animation: spinIn 0.9s var(--ease) 1.7s forwards;
}
@keyframes spinIn {
  from { opacity: 0; transform: rotate(-180deg) scale(0.3); }
  to   { opacity: 1; transform: none; }
}
.hero__key-rest { opacity: 0; animation: fade 0.8s var(--ease) 2.1s forwards; }
.hero__key-rest--2 { animation-delay: 2.6s; }

/* foot */
.hero__foot {
  grid-template-columns: 1.3fr auto auto;
  animation-delay: 2.6s;
  border-top-color: rgba(20, 20, 20, 0.18);
}
.hero__prices { display: flex; gap: 12px; }
.hero__prices li {
  display: grid;
  padding: 14px 22px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: rgba(251, 250, 248, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1.3;
}
.hero__prices small { font-size: 11px; color: var(--c-ink-soft); letter-spacing: 0.08em; }
.hero__prices b { font-family: var(--f-en); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.hero__prices b span { font-family: var(--f-ja); font-size: 13px; font-weight: 700; margin-left: 2px; letter-spacing: 0.04em; }

/* ---------- Strength statement ---------- */
.statement {
  position: relative;
  padding: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(56px, 7vw, 96px);
  border-radius: 16px;
  background: var(--c-ink);
  color: var(--c-paper);
  overflow: hidden;
}
.statement::before {
  content: "";
  position: absolute;
  width: 50%;
  aspect-ratio: 1;
  right: -12%;
  top: -40%;
  border-radius: 50%;
  background: var(--c-accent);
  filter: blur(90px);
  opacity: 0.45;
  animation: blob 16s ease-in-out infinite alternate;
}
.statement > * { position: relative; }
.statement__no {
  font-family: var(--f-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f0a48f;
}
.statement__title {
  margin: 16px 0 28px;
  font-size: clamp(30px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.statement__title .hl { color: #fff; background-image: linear-gradient(transparent 62%, rgba(200, 85, 61, 0.85) 62%, rgba(200, 85, 61, 0.85) 92%, transparent 92%); }
.statement__text { max-width: 760px; font-size: 15px; color: rgba(255, 255, 255, 0.78); }

@media (max-width: 960px) {
  .hero__foot { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { padding-top: 120px; }
  .hero__prices { flex-wrap: wrap; }
  .hero__bgword { bottom: 8%; }
  .hero__blobs i { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span, .kw, .x { transform: none; opacity: 1; }
  .hero__label, .hero__key-rest { opacity: 1; }
  .hl { background-size: 100% 100%; }
}

/* ---------- Maintenance plan ---------- */
.care {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(32px, 4vw, 48px) clamp(36px, 4vw, 56px);
  border: 1px dashed rgba(20, 20, 20, 0.3);
  border-radius: 12px;
  background: var(--c-bg);
}
.care__price {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 20px;
  white-space: nowrap;
}
.care__unit { font-family: var(--f-ja); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; margin-left: 6px; color: var(--c-ink-soft); }
.care__lead { font-size: 14px; color: var(--c-ink-soft); }
.care__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.care__items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.5;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.care__items li:hover { transform: translateY(-4px); border-color: var(--c-accent); }
.care__items b { font-weight: 700; }
.care__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(200, 85, 61, 0.1);
  color: var(--c-accent);
}
.care__icon svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .care { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .care__items { grid-template-columns: 1fr; }
}

/* ---------- Misc (review fixes) ---------- */
.detail-cta { margin-top: 32px; }
.footer__top-link { transition: color 0.3s; }
.footer__top-link:hover { color: var(--c-accent); }

/* ---------- Mobile headline: no orphan characters ---------- */
.hero__title .line > span { white-space: nowrap; }
@media (max-width: 768px) {
  .hero__title { font-size: calc((100vw - 40px) / 11.4); line-height: 1.45; }
  .hero__key { font-size: clamp(15px, 4.2vw, 18px); }
  .hero__key-rest { white-space: nowrap; }
}

/* ---------- Brand: MXD ---------- */
.logo { font-size: 18px; font-weight: 700; letter-spacing: 0.14em; }
.logo__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--c-mute);
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--c-line);
}
.is-menu-open .logo__sub { color: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.3); }
@media (max-width: 768px) { .logo__sub { display: none; } }

/* ---------- Concept: scroll-linked story ---------- */
.concept { position: relative; background: var(--c-ink); color: var(--c-paper); }
.concept .label { color: rgba(255, 255, 255, 0.6); }

/* fallback (no JS): steps simply stack */
.cstep { padding: clamp(72px, 10vw, 120px) 0; }
.cstep__inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.cstep--intro .cstep__inner,
.cstep--formula .cstep__inner { grid-template-columns: 1fr; }

.cstep__title {
  margin-top: 18px;
  font-size: clamp(36px, 5.6vw, 80px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.cstep__text { margin-top: 28px; max-width: 520px; font-size: clamp(14px, 1.2vw, 16px); line-height: 2.1; color: rgba(255, 255, 255, 0.72); }
.cstep__text b { color: #fff; }
.cstep__word {
  font-family: var(--f-en);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.cstep__word b { color: #fff; font-weight: 700; font-size: 1.3em; }
.cstep__word span { font-family: var(--f-ja); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--c-accent); }
.cstep--x .cstep__word b { color: #f0a48f; }
.cstep__hint {
  margin-top: 56px;
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.cstep__hint::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #fff 50%, rgba(255,255,255,0.2) 50%);
  background-size: 1px 200%;
  animation: scrollLine 2.2s infinite var(--ease);
}

/* giant letter: outline that fills */
.cstep__letter {
  justify-self: end;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: clamp(220px, 34vw, 540px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.45);
  background-image: linear-gradient(to top, #fff 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.cstep--x .cstep__letter {
  -webkit-text-stroke-color: rgba(240, 164, 143, 0.75);
  background-image: linear-gradient(to top, var(--c-accent) 50%, transparent 50%);
}

.cstep__formula {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.25em;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: clamp(88px, 15vw, 230px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.cstep__formula i { font-style: normal; font-weight: 300; color: var(--c-accent); }
.cstep__eq { margin-top: 24px; font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.75); }
.cstep__title--end { margin-top: 40px; font-size: clamp(30px, 4.4vw, 60px); }
.hl--step { animation: none; color: #fff; background-image: linear-gradient(transparent 60%, rgba(200, 85, 61, 0.9) 60%, rgba(200, 85, 61, 0.9) 92%, transparent 92%); transition: background-size 1s var(--ease) 1.1s; }

.concept__ui { display: none; }

/* ---------- scrolly mode (JS adds .is-scrolly) ---------- */
.concept.is-scrolly .concept__track { height: 640vh; }
.concept.is-scrolly .concept__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--c-ink);
  transition: background 1.2s var(--ease);
}
.concept.is-scrolly[data-step="3"] .concept__sticky { background: #2a1812; }
.concept.is-scrolly .cstep {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  align-items: center;
  visibility: hidden;
  transition: visibility 0s linear 0.9s;
}
.concept.is-scrolly .cstep.is-active { visibility: visible; transition-delay: 0s; }

/* copy lines rise in, and float up on exit */
.concept.is-scrolly .cstep__copy > * {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.concept.is-scrolly .cstep.is-past .cstep__copy > * { transform: translateY(-60px); }
.concept.is-scrolly .cstep.is-active .cstep__copy > * { opacity: 1; transform: none; }
.concept.is-scrolly .cstep.is-active .cstep__copy > :nth-child(2) { transition-delay: 0.12s; }
.concept.is-scrolly .cstep.is-active .cstep__copy > :nth-child(3) { transition-delay: 0.24s; }
.concept.is-scrolly .cstep.is-active .cstep__copy > :nth-child(4) { transition-delay: 0.36s; }

/* letter: scale in, fill on arrival */
.concept.is-scrolly .cstep__letter {
  opacity: 0;
  transform: translateY(12%) scale(1.25);
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease), background-position 1.2s cubic-bezier(0.77, 0, 0.18, 1) 0.5s;
}
.concept.is-scrolly .cstep.is-past .cstep__letter { transform: translateY(-12%) scale(0.9); }
.concept.is-scrolly .cstep--x .cstep__letter { transform: rotate(-120deg) scale(0.5); }
.concept.is-scrolly .cstep.is-active .cstep__letter { opacity: 1; transform: none; background-position: 0 100%; }

/* formula pieces drop in one by one */
.concept.is-scrolly .cstep__formula > * {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.concept.is-scrolly .cstep.is-active .cstep__formula > * { opacity: 1; transform: none; }
.concept.is-scrolly .cstep.is-active .cstep__formula > :nth-child(2) { transition-delay: 0.15s; }
.concept.is-scrolly .cstep.is-active .cstep__formula > :nth-child(3) { transition-delay: 0.3s; }
.concept.is-scrolly .cstep.is-active .cstep__formula > :nth-child(4) { transition-delay: 0.45s; }
.concept.is-scrolly .cstep.is-active .cstep__formula > :nth-child(5) { transition-delay: 0.6s; color: var(--c-accent); }
.concept.is-scrolly .cstep--formula .cstep__copy > :nth-child(2) { transition-delay: 0.7s; }
.concept.is-scrolly .cstep--formula .cstep__copy > :nth-child(3) { transition-delay: 0.9s; }
.concept.is-scrolly .cstep.is-active .hl--step { background-size: 100% 100%; }

/* indicator */
.concept.is-scrolly .concept__ui {
  display: flex;
  align-items: center;
  gap: 28px;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 4vh, 40px);
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}
.concept__count { color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.concept__count span { color: #fff; font-weight: 600; }
.concept__index { display: flex; gap: 24px; }
.concept__index li { transition: color 0.5s var(--ease); white-space: nowrap; }
.concept__index li b { font-weight: 700; }
.concept__index li.is-active { color: #fff; }
.concept__index li.is-active b { color: var(--c-accent); }
.concept__bar { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.16); position: relative; overflow: hidden; }
.concept__bar i {
  position: absolute;
  inset: 0;
  background: var(--c-accent);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

@media (max-width: 768px) {
  .cstep__inner { grid-template-columns: 1fr; gap: 8px; }
  .cstep__letter { justify-self: start; order: -1; font-size: clamp(120px, 38vw, 200px); }
  .cstep__title { font-size: clamp(30px, 8.6vw, 44px); }
  .cstep__text { margin-top: 18px; font-size: 13px; line-height: 1.95; }
  .cstep__formula { font-size: clamp(64px, 20vw, 110px); }
  .concept__index { display: none; }
  .concept.is-scrolly .concept__ui { gap: 16px; }
}

/* concept: statement + brand steps */
.cstep__title--lg { font-size: clamp(34px, 5.4vw, 84px); line-height: 1.45; }
.strike { position: relative; display: inline-block; color: rgba(255, 255, 255, 0.45); transition: color 0.6s var(--ease) 1.1s; }
.strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 54%;
  height: 0.09em;
  background: var(--c-accent);
  transform: scaleX(1) rotate(-4deg);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.8s;
}
.concept.is-scrolly .strike { color: #fff; }
.concept.is-scrolly .strike::after { transform: scaleX(0) rotate(-4deg); }
.concept.is-scrolly .cstep.is-active .strike { color: rgba(255, 255, 255, 0.4); }
.concept.is-scrolly .cstep.is-active .strike::after { transform: scaleX(1) rotate(-4deg); }

.cstep__brand {
  display: flex;
  gap: 0.04em;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.cstep__brand span:nth-child(2) { color: var(--c-accent); }
.concept.is-scrolly .cstep__brand span {
  display: inline-block;
  opacity: 0;
  transform: translateY(50%) rotate(8deg);
  transition: opacity 0.6s var(--ease), transform 1s var(--ease);
}
.concept.is-scrolly .cstep.is-active .cstep__brand span { opacity: 1; transform: none; }
.concept.is-scrolly .cstep.is-active .cstep__brand span:nth-child(2) { transition-delay: 0.1s; }
.concept.is-scrolly .cstep.is-active .cstep__brand span:nth-child(3) { transition-delay: 0.2s; }
.cstep--brand .cstep__title { margin-top: 28px; }
.cstep__title--end { line-height: 1.6; }
@media (max-width: 768px) {
  .cstep__title--lg { font-size: clamp(26px, 7.4vw, 40px); }
  .cstep__brand { font-size: clamp(96px, 32vw, 160px); }
  .cstep__title--end { font-size: clamp(20px, 5.4vw, 28px); }
}

/* ---------- Team: 4 members ---------- */
.team { grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.member__catch {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.member__catch::before {
  content: "";
  width: 14px;
  height: 16px;
  background: var(--c-accent);
  clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%);
}
@media (max-width: 1100px) { .team { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (max-width: 768px) { .team { grid-template-columns: 1fr; gap: 56px; } }

/* =========================================================
   Responsive UI/UX upgrade
   ========================================================= */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
section[id] { scroll-margin-top: 64px; }
.hero { min-height: 100vh; min-height: 100svh; }

/* header hide/show */
.header { transition: background 0.5s var(--ease), padding 0.5s var(--ease), transform 0.5s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }
.is-menu-open .header { transform: none; }

/* desktop: hide mobile-only menu parts */
.nav small, .nav__foot { display: none; }
.team__hint { display: none; }

/* back to top */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-ink);
  color: var(--c-paper);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.to-top svg { width: 16px; height: 16px; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.is-menu-open .to-top { opacity: 0; visibility: hidden; }

@media (max-width: 768px) {
  /* ---- menu overlay ---- */
  .nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    place-items: initial;
    padding: calc(88px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  .nav ul { counter-reset: nav; gap: 0; text-align: left; }
  .nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  }
  .is-menu-open .nav li { opacity: 1; transform: none; }
  .is-menu-open .nav li:nth-child(2) { transition-delay: 0.05s; }
  .is-menu-open .nav li:nth-child(3) { transition-delay: 0.1s; }
  .is-menu-open .nav li:nth-child(4) { transition-delay: 0.15s; }
  .is-menu-open .nav li:nth-child(5) { transition-delay: 0.2s; }
  .is-menu-open .nav li:nth-child(6) { transition-delay: 0.25s; }
  .nav a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
    padding: 14px 0;
    font-family: var(--f-en);
    font-size: clamp(28px, 8.4vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }
  .nav a::before {
    counter-increment: nav;
    content: "0" counter(nav);
    font-family: var(--f-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    min-width: 20px;
  }
  .nav a::after { display: none; }
  .nav a:active { color: #f0a48f; }
  .nav small {
    display: block;
    margin-left: auto;
    font-family: var(--f-ja);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
  }
  .nav__foot {
    display: block;
    margin-top: 36px;
    opacity: 0;
    transition: opacity 0.6s var(--ease) 0.35s;
  }
  .is-menu-open .nav__foot { opacity: 1; }
  .nav__brand { font-family: var(--f-label); font-size: 10px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.5); }
  .nav__prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
  .nav__prices li {
    display: grid;
    gap: 2px;
    padding: 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
  }
  .nav__prices b { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }

  /* ---- hero ---- */
  .hero { padding-top: 112px; padding-bottom: 40px; }
  .hero__foot { gap: 18px; padding-top: 24px; }
  .hero__text { font-size: 13px; line-height: 1.95; }
  .hero__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__prices li { padding: 12px 14px; }
  .hero__prices small { font-size: 10px; }
  .hero__prices b { font-size: 28px; }

  /* ---- section rhythm ---- */
  .works, .about, .service, .process, .price, .cta { padding: 88px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-desc { font-size: 13px; }

  /* ---- works ---- */
  .works__list { gap: 80px; }
  .work__title { font-size: 40px; }
  .work__copy { margin: 20px 0; font-size: 15px; }
  .work__meta { font-size: 12px; margin-bottom: 20px; grid-template-columns: 64px 1fr; }
  .tags { margin-bottom: 24px; }
  .work__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .work__links .btn { justify-content: center; padding: 14px 10px; gap: 10px; font-size: 11px; }
  .thumb { border-radius: 8px; }
  .thumb__bar { height: 22px; padding: 0 10px; }
  .thumb__bar i { width: 7px; height: 7px; }

  /* ---- team: swipe carousel ---- */
  .about__intro { margin-bottom: 40px; }
  .about__lead { font-size: 21px; }
  .team {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .team::-webkit-scrollbar { display: none; }
  .member { flex: 0 0 76%; scroll-snap-align: start; }
  .member__photo { aspect-ratio: 4 / 5; }
  .member__name { font-size: 19px; }
  .team__hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-family: var(--f-label);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--c-ink-soft);
  }
  .team__hint span { color: var(--c-ink); font-weight: 600; }
  .team__hint i {
    font-style: normal;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
  }
  .team__hint i::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    animation: swipeHint 1.8s var(--ease) infinite;
  }
  @keyframes swipeHint {
    0% { transform: translateX(-6px); opacity: 0.3; }
    50% { transform: translateX(6px); opacity: 1; }
    100% { transform: translateX(-6px); opacity: 0.3; }
  }

  /* ---- strength ---- */
  .statement { border-radius: 12px; padding: 32px 24px; }
  .statement__text { font-size: 13px; }
  .service__item, .service__item + .service__item { padding: 28px 0 32px; }
  .service__en { font-size: 30px; margin-top: 12px; }

  /* ---- process: vertical timeline ---- */
  .process__list { gap: 0; }
  .process__item {
    position: relative;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 0 0 36px 28px;
    background: none !important;
  }
  .process__item:last-child { border-left-color: transparent; padding-bottom: 0; }
  .process__item::before { font-size: 26px; margin-bottom: 8px; }
  .process__item::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 4px var(--c-ink);
  }

  /* ---- price ---- */
  .plan { padding: 28px 22px; }
  .plan__price { font-size: 52px; margin: 20px 0 18px; }
  .plan__items { font-size: 13px; }
  .care { padding: 28px 22px; }
  .care__items li { padding: 12px 14px; }

  /* ---- contact / footer ---- */
  .cta__title { font-size: 56px; }
  .cta__sub { font-size: 13px; }
  .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

  /* ---- detail pages ---- */
  .detail-hero { padding-top: 120px; }
  .breadcrumb { margin-bottom: 28px; }
  .detail-info { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .detail-info div { padding: 16px 0 0; }
  .detail-sec { padding: 32px 0; gap: 16px; }
  .detail-sec h2 { font-size: 28px; }
  .result__value { font-size: 36px; }
  .result li { padding: 22px; }
}

/* small phones */
@media (max-width: 374px) {
  .hero__prices { grid-template-columns: 1fr; }
  .nav__prices { grid-template-columns: 1fr; }
  .work__links { grid-template-columns: 1fr; }
}

/* keep Japanese phrases intact at line breaks */
.detail-info dd, .work__meta dd, .hero__prices small, .nav__prices li { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 768px) { .detail-info dd { font-size: 13px; } }

/* ---------- AI music option ---------- */
.care--music { border-style: solid; border-color: transparent; background: linear-gradient(120deg, #1b1b1f, #2a1812); color: var(--c-paper); position: relative; overflow: hidden; }
.care--music::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-accent);
  filter: blur(80px);
  opacity: 0.35;
}
.care--music > * { position: relative; }
.care--music .care__unit,
.care--music .care__lead { color: rgba(255, 255, 255, 0.7); }
.care--music .care__items li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.care--music .care__icon { background: rgba(240, 164, 143, 0.15); color: #f0a48f; }
/* equalizer bars next to the price */
.care--music .care__price::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 22px;
  margin-left: 14px;
  vertical-align: middle;
  background:
    linear-gradient(var(--c-accent), var(--c-accent)) 0 100% / 4px 60% no-repeat,
    linear-gradient(var(--c-accent), var(--c-accent)) 7px 100% / 4px 100% no-repeat,
    linear-gradient(var(--c-accent), var(--c-accent)) 14px 100% / 4px 40% no-repeat,
    linear-gradient(var(--c-accent), var(--c-accent)) 21px 100% / 4px 80% no-repeat;
  animation: eq 1.1s ease-in-out infinite alternate;
}
@keyframes eq {
  0%   { background-size: 4px 60%, 4px 100%, 4px 40%, 4px 80%; }
  33%  { background-size: 4px 100%, 4px 45%, 4px 85%, 4px 35%; }
  66%  { background-size: 4px 35%, 4px 80%, 4px 100%, 4px 55%; }
  100% { background-size: 4px 85%, 4px 30%, 4px 60%, 4px 100%; }
}
