/* WASSYOI Portfolio — modern business-leaning layer
   Built on top of matsuri.css. Festival cues used as accent only. */

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { font-family: var(--m-font-body); color: var(--m-ink); background: var(--m-cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ========== shared layout primitives ========== */
.wp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wp-wrap--narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ========== Header — slim, modern ========== */
.wp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 233, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
}
.wp-header__inner {
  padding: 12px 32px;
  display: flex; align-items: center; gap: 24px;
}
.wp-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--m-ink);
}
.wp-logo__img {
  height: 48px; width: auto; display: block;
}
.wp-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.wp-nav a {
  padding: 8px 12px; border-radius: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--m-ink-2); text-decoration: none;
  transition: background-color 0.15s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.wp-nav a:hover { background: rgba(26,22,20,0.05); color: var(--m-ink); }
.wp-nav a:focus-visible, .wp-case__cta:focus-visible, .wp-founder__socials a:focus-visible { outline: 2px solid var(--m-ink); outline-offset: 3px; }
.wp-nav a.is-cta {
  background: var(--m-ink); color: var(--m-cream);
  margin-left: 8px;
}
.wp-nav a.is-cta:hover { background: var(--m-red); color: #fff; }

.wp-header .m-hachimaki { height: 6px; }

/* anchor offset for sticky header */
.wp-section, .wp-contact { scroll-margin-top: 80px; }

/* ========== Hero ========== */
.wp-hero { position: relative; padding: 96px 32px 80px; overflow: hidden; text-align: center; }
.wp-hero__inner { position: relative; }
.wp-hero__title {
  font-family: var(--m-font-display);
  font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 0.98;
  margin: 0 0 32px;
  text-wrap: balance;
}
.wp-hero__title .accent { color: var(--m-red); }
.wp-hero__lede,
.wp-section__lede,
.wp-concept__body p,
.wp-case__excerpt,
.wp-contact__lede {
  font-family: var(--m-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  color: var(--m-ink-2);
}
.wp-hero__lede {
  max-width: 920px; font-size: 17px;
  margin: 0 auto 24px;
}
.wp-hero__note,
.wp-section__note {
  font-family: var(--m-font-body);
  font-size: 13.2px;
  line-height: 1.8;
  color: var(--m-ink-3);
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}
.wp-section__note { margin: 16px auto 0; }
.wp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* festival decor — used as accent only (deco-1 baseline) */
.wp-decor { position: absolute; pointer-events: none; }
.wp-decor--halftone {
  position: absolute; right: -120px; bottom: -80px;
  width: 380px; height: 380px; opacity: 0.18;
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 65%);
  mask-image: radial-gradient(circle at center, black 30%, transparent 65%);
}

/* ========== Stat strip ========== */
/* ========== Section frame ========== */
.wp-section { padding: 96px 32px; position: relative; text-align: center; }
.wp-section--alt { background: var(--m-paper); }
.wp-section--ink { background: var(--m-ink); color: var(--m-cream); }
.wp-section__head { margin: 0 0 48px; }
.wp-section__title {
  font-family: var(--m-font-display); font-weight: 800;
  letter-spacing: -0.022em;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05; margin: 0;
  text-wrap: balance;
}
.wp-section--ink .wp-section__title { color: var(--m-cream); }
.wp-section__title .accent { color: var(--m-red); }
.wp-section--ink .wp-section__title .accent { color: var(--m-mustard); }
.wp-section__lede { margin: 20px auto 0; max-width: 880px; }
.wp-section--ink .wp-section__lede { color: rgba(251,245,233,0.78); }

/* ========== Concept ========== */
.wp-concept__body p { max-width: 880px; margin: 0 auto 24px; }
.wp-section--ink .wp-concept__body p { color: rgba(251,245,233,0.78); }

/* ========== Product ========== */
.wp-product {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: center; text-align: left;
}
.wp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wp-step {
  display: grid; grid-template-columns: 28px 20px 1fr; gap: 12px; align-items: start;
  padding: 16px 0; border-top: 1px solid rgba(26,22,20,0.1);
}
.wp-step:last-child { border-bottom: 1px solid rgba(26,22,20,0.1); }
.wp-step__num { font-size: 12px; color: var(--m-ink-3); font-variant-numeric: tabular-nums; line-height: 24px; }
.wp-step__icon { width: 20px; height: 20px; color: var(--m-ink-2); margin-top: 2px; }
.wp-step__title { font-family: var(--m-font-display); font-weight: 800; font-size: 18px; line-height: 24px; margin: 0; }
.wp-step__desc { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--m-ink-2); }
.wp-product__shot {
  margin: 0; background: #fff; border: 1px solid rgba(26,22,20,0.12);
  border-radius: 16px; overflow: hidden;
}
.wp-product__bar {
  display: flex; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid rgba(26,22,20,0.08); background: var(--m-cream);
}
.wp-product__bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(26,22,20,0.16); }
.wp-product__shot img { width: 100%; height: auto; }
.wp-product__empty { display: grid; place-items: center; aspect-ratio: 1425 / 1018; color: var(--m-ink-3); font-size: 14px; }

/* ========== Product slider ========== */
.wp-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wp-ptitle__logo { display: inline-block; height: 1.15em; width: auto; vertical-align: -0.2em; }
.wp-ptitle__slot { display: inline-block; overflow: hidden; vertical-align: top; text-align: left; }
.wp-ptitle__strip { display: flex; }
.wp-ptitle__strip > span { flex: 0 0 auto; white-space: nowrap; }
.wp-slider {
  display: grid; grid-template-columns: 44px minmax(0, 1140px) 44px;
  grid-template-areas: "prev track next" ". count .";
  column-gap: 24px; row-gap: 24px; justify-content: center; align-items: center;
}
.wp-slider__track {
  grid-area: track; display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.wp-slider__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wp-slider__track { scroll-behavior: smooth; }
}
.wp-slider__track:focus-visible { outline: 2px solid var(--m-ink); outline-offset: 4px; border-radius: 16px; }
.wp-pslide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative;
  padding: 0 4px; /* 隣のスライドの端が境目にのぞかないように */
  text-align: left; display: flex; flex-direction: column; gap: 32px;
}
.wp-pslide .wp-product { width: 100%; }
.wp-pslide--cta { justify-content: center; align-items: center; text-align: center; min-height: 100%; }
.wp-pslide__title {
  font-family: var(--m-font-display); font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em;
  line-height: 1.2; margin: 0;
}
.wp-pslide__desc { margin: 12px 0 0; font-weight: 500; font-size: 16px; line-height: 1.9; color: var(--m-ink-2); }
.wp-slider__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--m-ink);
  background: #fff; color: var(--m-ink); display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.wp-slider__btn--prev { grid-area: prev; }
.wp-slider__btn--next { grid-area: next; }
.wp-slider__btn:hover { background: var(--m-paper); }
.wp-slider__btn:focus-visible { outline: 2px solid var(--m-ink); outline-offset: 4px; }
.wp-slider__btn svg { width: 20px; height: 20px; }
.wp-slider__dots { grid-area: count; display: flex; justify-content: center; gap: 4px; }
.wp-slider__dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.wp-slider__dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--m-ink); background: transparent;
  transition: background-color 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.wp-slider__dot[aria-current="true"]::before { background: var(--m-ink); }
.wp-slider__dot:focus-visible { outline: 2px solid var(--m-ink); outline-offset: 2px; border-radius: 50%; }

/* ========== Cases ========== */
.wp-cases {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
.wp-cases__cta {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}
.wp-case {
  background: #fff;
  border: 1px solid rgba(26,22,20,0.12);
  border-radius: 16px;
  overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr;
  transition: border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.wp-case:hover { border-color: rgba(26,22,20,0.28); }
.wp-case__cover {
  background: var(--m-paper); position: relative;
  min-height: 320px; overflow: hidden;
  display: block;
}
.wp-case__cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
#case-jsf .wp-case__cover img { object-position: top left; }
#case-jsf35 .wp-case__cover img { object-position: center; }
.wp-case--reverse { grid-template-columns: 1fr 1.05fr; }
.wp-case--reverse .wp-case__cover { order: 2; }
.wp-case--reverse .wp-case__body { order: 1; }
.wp-case__body {
  padding: 40px 40px 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
  text-align: left;
}
.wp-case__meta {
  font-family: var(--m-font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--m-ink-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.wp-case__meta .dot { width: 3px; height: 3px; background: var(--m-ink-3); border-radius: 99px; }
.wp-case__place { color: var(--m-ink-3); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.wp-case__title {
  font-family: var(--m-font-display); font-weight: 800;
  font-size: 30px; letter-spacing: -0.02em; line-height: 1.18;
  margin: 0;
}
.wp-case__excerpt { margin: 0; }
.wp-case__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.wp-case__tag {
  font-family: var(--m-font-mono); font-size: 11px;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(26,22,20,0.06); color: var(--m-ink-2);
}
.wp-case__cta {
  margin-top: auto; padding-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--m-red);
  text-decoration: none; align-self: flex-start;
}
.wp-case__cta .arrow { transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
.wp-case:hover .wp-case__cta .arrow { transform: translateX(4px); }

/* ========== Founders ========== */
.wp-founders {
  max-width: 400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; align-items: stretch;
}
.wp-founder {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--m-ink);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; text-align: center;
  box-shadow: 4px 4px 0 var(--m-ink);
}
.wp-founder:hover .wp-founder__name { color: var(--m-red); }
a.wp-founder__name::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 1;
}
.wp-founder__avatar,
.wp-founder__socials {
  position: relative;
  z-index: 2;
}
.wp-founder__avatar {
  width: 132px; height: 132px; border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--m-cream);
  box-shadow: 0 4px 14px rgba(26,22,20,0.12);
  margin-bottom: 4px;
}
.wp-founder__avatar img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.wp-founder__name {
  font-family: var(--m-font-display); font-weight: 800;
  font-size: 28px; letter-spacing: -0.01em;
  color: var(--m-ink); margin: 0; line-height: 1.2;
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
a.wp-founder__name:hover { color: var(--m-red); }
.wp-founder__name-en {
  font-family: var(--m-font-mono); font-size: 12px;
  letter-spacing: 0.12em; color: var(--m-ink-2);
  margin-top: -4px;
}
.wp-founder__socials {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; gap: 8px; align-items: center; justify-content: center;
}
.wp-founder__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--m-ink-2);
  background: rgba(26,22,20,0.04);
  transition: color 0.15s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.wp-founder__socials a:hover {
  color: var(--m-red);
  background: rgba(179,29,0,0.08);
}
.wp-founder__socials svg {
  width: 18px; height: 18px;
  fill: currentColor;
}
/* ========== Contact ========== */
.wp-contact { text-align: center; padding: 96px 32px; scroll-margin-top: 80px; }
.wp-contact__title {
  font-family: var(--m-font-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.02em;
  line-height: 1.15; margin: 0 0 24px;
  text-wrap: balance;
}
.wp-contact__title .accent { color: var(--m-red); }
.wp-contact__lede { max-width: 620px; margin: 0 auto 32px; }
.wp-contact__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.wp-contact__cta a { font-size: 16px; padding: 16px 28px; }

/* ========== Footer ========== */
.wp-footer { background: var(--m-ink); color: var(--m-cream); padding: 56px 32px 40px; }
.wp-footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  font-size: 12px; opacity: 0.82;
}
.wp-footer__brand { display: inline-flex; align-items: center; justify-content: center; }
.wp-footer__brand .mark {
  height: 52px; width: auto; display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.wp-footer__copy { letter-spacing: 0.04em; }

/* ========== Responsive ========== */
@media (max-width: 920px) {
  .wp-case, .wp-case--reverse { grid-template-columns: 1fr; }
  .wp-case__cover { min-height: 220px; aspect-ratio: 16/10; border-bottom: 1px solid rgba(26,22,20,0.1); }
  .wp-case--reverse .wp-case__cover { order: 0; }
  .wp-case--reverse .wp-case__body { order: 1; }
  .wp-product { grid-template-columns: 1fr; gap: 32px; }
  .wp-slider {
    grid-template-columns: 44px 1fr 44px;
    grid-template-areas: "track track track" "prev count next";
    column-gap: 16px;
  }
}
@media (max-width: 640px) {
  .wp-section { padding: 64px 20px; }
  .wp-hero { padding: 64px 20px 56px; }
  .wp-contact { padding: 80px 20px; }
  .wp-header__inner { padding: 12px 20px; }
  .wp-footer { padding: 48px 20px 32px; }
  .wp-nav a:not(.is-cta) { display: none; }
}
