/* Bawic Studio — トークンの原本は design-system/bawic-studio/MASTER.md */
:root {
  --cream: #F3EEE3;
  --cream-deep: #E9E2D3;
  --ink: #17140F;
  --ink-soft: #564F44;
  --line: #17140F;
  --hair: rgba(23, 20, 15, .16);
  --vermilion: #DD4320;
  --vermilion-text: #B02E10;
  --tint-sun: #F4D35E;
  --tint-leaf: #A8D5BA;
  --tint-sky: #A9C9E8;
  --tint-rose: #F1B7A6;

  --f-latin: "Bricolage Grotesque", "Zen Kaku Gothic New", sans-serif;
  --f-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.9;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* 紙の粒子 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--cream);
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .625rem var(--pad);
  background: rgba(243, 238, 227, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--f-latin);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -.01em;
}
.brand__dot {
  width: .875rem;
  height: .875rem;
  border-radius: 50%;
  background: var(--vermilion);
  transition: transform .5s var(--ease);
}
.brand:hover .brand__dot { transform: scale(1.5); }
.nav { display: none; gap: .25rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .875rem;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat .875rem calc(100% - 9px) / 0 2px;
  transition: background-size .35s var(--ease);
}
.nav a:hover { background-size: calc(100% - 1.75rem) 2px; }

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-right: -.75rem;
  font-family: var(--f-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.lang:hover { color: var(--vermilion-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--vermilion-text); transform: translateY(-2px); }
.btn--small { min-height: 44px; padding: 0 1.125rem; font-size: .875rem; }

.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link:hover { color: var(--vermilion-text); }

.label {
  font-family: var(--f-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vermilion-text);
}
.label::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .625rem;
  border-radius: 50%;
  background: var(--vermilion);
}
.label--light { color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) var(--pad) clamp(3.5rem, 9vw, 7rem);
}
.hero__sun {
  position: absolute;
  top: clamp(1rem, 5vw, 3.5rem);
  right: -18vw;
  width: clamp(15rem, 62vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--vermilion);
  animation: sun 1.4s var(--ease) both;
}
.hero__sun { overflow: hidden; }
.hero__globe { display: block; width: 100%; height: 100%; }
.acro {
  position: relative;
  display: grid;
  font-family: var(--f-latin);
  font-size: clamp(2.9rem, 10.5vw, 7.75rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.045em;
}
.acro__line { display: block; animation: rise .9s var(--ease) both; }
.acro__line b { font-weight: 800; }
.acro__line:nth-child(2) { animation-delay: .08s; }
.acro__line:nth-child(3) { animation-delay: .16s; }
.acro__line:nth-child(4) { animation-delay: .24s; }
.acro__line:nth-child(5) { animation-delay: .32s; }
.hero__text {
  position: relative;
  max-width: 34rem;
  animation: rise .9s var(--ease) .5s both;
}
.hero__title {
  font-family: var(--f-mincho);
  font-weight: 900;
  font-size: clamp(1.75rem, 6.4vw, 2.75rem);
  line-height: 1.4;
  letter-spacing: .01em;
}
.hero__lead { margin-top: 1.25rem; color: var(--ink-soft); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

/* ---------- sections ---------- */
.sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad);
}
.sec__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec__title {
  margin-top: .75rem;
  font-family: var(--f-mincho);
  font-weight: 900;
  font-size: clamp(1.875rem, 6.6vw, 3.5rem);
  line-height: 1.3;
}

/* work */
.work { display: grid; gap: 2.5rem; }
.work__item { padding-top: 1.5rem; border-top: 4px solid var(--line); }
.work__en {
  font-family: var(--f-latin);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  color: var(--vermilion-text);
}
.work__title {
  margin: .25rem 0 1rem;
  font-family: var(--f-mincho);
  font-weight: 900;
  font-size: 1.625rem;
  line-height: 1.4;
}
.work__item > p:not(.work__en) { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags li {
  padding: .25rem .875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.7;
}

/* products */
.prod { border-top: 4px solid var(--line); }
.prod li { border-bottom: 1px solid var(--line); }
.prod__row {
  position: relative;
  display: grid;
  gap: .375rem;
  padding: 1.75rem 0;
  text-decoration: none;
  isolation: isolate;
  transition: padding .45s var(--ease);
}
.prod__row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -1);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.prod__row--sun::before { background: var(--tint-sun); }
.prod__row--leaf::before { background: var(--tint-leaf); }
.prod__row--sky::before { background: var(--tint-sky); }
.prod__row--rose::before { background: var(--tint-rose); }
.prod__row:hover::before, .prod__row:focus-visible::before { transform: scaleY(1); }
.prod__name {
  font-family: var(--f-latin);
  font-weight: 800;
  font-size: clamp(2.125rem, 8.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.prod__name--ja {
  font-family: var(--f-mincho);
  font-weight: 900;
  font-size: clamp(1.875rem, 7.4vw, 3.375rem);
  line-height: 1.2;
  letter-spacing: 0;
}
.prod__kind {
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
}
.prod__desc { max-width: 32rem; color: var(--ink-soft); }
.prod__row:hover .prod__desc, .prod__row:focus-visible .prod__desc { color: var(--ink); }
.prod__go {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.prod__go span { transition: transform .35s var(--ease); }
.prod__row:hover .prod__go span { transform: translate(4px, -4px); }

/* studio */
.studio { display: grid; gap: 3rem; }
.studio__text p + p { margin-top: 1.25rem; color: var(--ink-soft); }
.studio__big {
  font-family: var(--f-mincho);
  font-weight: 700;
  font-size: clamp(1.375rem, 4.6vw, 1.875rem);
  line-height: 1.6;
}
.studio__big em {
  font-family: var(--f-latin);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--vermilion-text);
}
.facts { border-top: 4px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hair);
}
.facts dt { font-size: .875rem; font-weight: 700; line-height: 2.05; }
.facts dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -.4rem 0;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.facts dd a:hover { color: var(--vermilion-text); }

/* contact */
.contact { background: var(--ink); color: var(--cream); }
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 11vw, 8rem) var(--pad);
}
.contact__title {
  margin-top: .75rem;
  font-family: var(--f-mincho);
  font-weight: 900;
  font-size: clamp(1.875rem, 6.6vw, 3.5rem);
  line-height: 1.3;
}
.contact__lead { max-width: 32rem; margin-top: 1.25rem; color: #CFC8BA; }
.contact__mail {
  display: inline-block;
  margin-top: 2.5rem;
  padding: .25rem 0;
  font-family: var(--f-latin);
  font-weight: 800;
  font-size: clamp(1.5rem, 6.6vw, 4.25rem);
  line-height: 1.3;
  letter-spacing: -.035em;
  color: var(--cream);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--vermilion), var(--vermilion)) no-repeat 0 100% / 100% 4px;
  transition: background-size .45s var(--ease);
}
.contact__mail:hover { background-size: 100% 46%; }

/* footer */
.foot {
  display: grid;
  gap: .25rem;
  padding: 2rem var(--pad) 2.5rem;
  background: var(--ink);
  color: #CFC8BA;
  border-top: 1px solid rgba(243, 238, 227, .18);
  font-size: .875rem;
}
.foot__brand { font-family: var(--f-latin); font-weight: 800; font-size: 1.125rem; color: var(--cream); }
.foot__tag { font-family: var(--f-mono); font-size: .8125rem; }
.foot__copy { margin-top: .75rem; }

/* ---------- English page ---------- */
:lang(en) body { line-height: 1.75; }
:lang(en) .hero__title,
:lang(en) .sec__title,
:lang(en) .contact__title,
:lang(en) .work__title {
  font-family: var(--f-latin);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}
:lang(en) .work__title { font-size: 1.625rem; line-height: 1.2; }
:lang(en) .studio__big { font-family: var(--f-latin); font-weight: 500; letter-spacing: -.02em; line-height: 1.4; }
:lang(en) .prod__name--ja { font-family: var(--f-latin); font-weight: 800; letter-spacing: -.04em; }

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: none; }
}
@keyframes sun {
  from { opacity: 0; transform: scale(.6) translate(10%, 12%); }
  to { opacity: 1; transform: none; }
}
.js .reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- wider ---------- */
@media (min-width: 48rem) {
  .nav { display: flex; }
  .work { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; }
  .prod__row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
    grid-template-areas: "name desc go" "kind desc go";
    align-items: center;
    column-gap: 2.5rem;
    padding: 2.25rem 0;
  }
  .prod__row:hover, .prod__row:focus-visible { padding-left: 1rem; }
  .prod__name { grid-area: name; }
  .prod__kind { grid-area: kind; }
  .prod__desc { grid-area: desc; }
  .prod__go { grid-area: go; }
  .studio { grid-template-columns: 6fr 5fr; gap: 4.5rem; align-items: start; }
}
@media (min-width: 64rem) {
  .hero { grid-template-columns: 7fr 5fr; align-items: end; gap: 3rem; }
  .work { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .hero__sun { right: auto; left: 19%; top: 1.75rem; width: 26rem; }
  .hero__text { padding-bottom: .75rem; }
  .hero__title { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
