:root {
  --white: #ffffff;
  --black: #111111;
  --gray: #767676; /* #888 is below AA contrast for small text */
  --pad: 6vw;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }

.en { font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: -0.04em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wordmark { display: block; width: 100%; height: auto; }
.foot-logo { display: block; width: 140px; height: auto; }

.pad { padding: 22vh var(--pad); }
.label { font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 2.5rem; }
.small { font-size: 0.875rem; }

/* Hero */
.hero { min-height: 100svh; padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5vh; text-align: center; background: var(--black); color: var(--white); }
.hero-icon { font-size: 0; width: min(46vw, 320px); min-width: 160px; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-icon img { display: block; width: 100%; height: auto; }
.hero-sub { font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; font-size: clamp(.8rem, 1.6vw, 1rem); line-height: 1.9; opacity: .8; animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.tagline { letter-spacing: -0.01em; font-size: clamp(1.2rem, 2.6vw, 1.9rem); margin-top: 3vh; animation: rise .8s .1s cubic-bezier(.2,.7,.2,1) both; }

@keyframes rise { from { opacity: .01; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Type scale */
.big { font-size: clamp(2.8rem, 11vw, 11rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.mid { font-size: clamp(2.4rem, 9vw, 8rem); line-height: 1.1; }
.mid-jp { font-size: clamp(1.6rem, 5vw, 4.4rem); line-height: 1.4; font-weight: 700; margin-top: 4rem; }

/* Mission — left */
.mission .vision { margin-top: 6rem; color: var(--black); }

/* About — right */
.about { text-align: right; }
.about .small { margin-top: 3rem; }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; border-block: 0; padding: 6vh 0; }
.marquee-track { display: inline-flex; animation: marquee 28s linear infinite; font-family: "Inter", sans-serif; font-weight: 800; font-size: clamp(3rem, 9vw, 9rem); letter-spacing: -0.04em; line-height: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Promise — staggered */
.promises li { font-size: clamp(1.9rem, 6.4vw, 5.6rem); font-weight: 700; line-height: 1.3; margin-bottom: 5rem; }
.promises li:nth-child(2) { margin-left: 12vw; }
.promises li:nth-child(3) { margin-left: 4vw; }
.promises li:nth-child(4) { margin-left: 16vw; }

/* Artists — center */
.artists { text-align: center; }
.artist-list li { font-family: "Inter", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 10vw, 9rem); letter-spacing: -0.04em; line-height: 1.2; padding: 1.2rem 0; }
.artist-list a { text-decoration: none; }

/* Story */
.story-body { max-width: 34rem; margin-left: auto; }
.story-body p { font-size: 1rem; margin-bottom: 6rem; }
.story-body .last { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.5; margin-bottom: 0; }

/* Contact */
.contact { text-align: center; }
.contact .big { margin-bottom: 4rem; }
.mail { font-family: "Inter", sans-serif; font-weight: 500; font-size: clamp(1rem, 3vw, 1.6rem); text-underline-offset: 0.3em; }
.mail:hover { text-decoration-thickness: 2px; }

/* Header + dot menu */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 40; mix-blend-mode: difference; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 1.2vh var(--pad); pointer-events: none; }
.site-head > * { pointer-events: auto; }
.head-logo img { display: block; width: 120px; height: auto; filter: invert(1); }
.dots { margin-left: auto; width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; position: relative; z-index: 40; }
.dots i { display: block; width: 30px; height: 2px; background: currentColor; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.dots:hover i:nth-child(2), .dots:focus-visible i:nth-child(2) { transform: translateX(8px); }
.dots[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.dots[aria-expanded="true"] i:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }
.dots:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.menu { position: fixed; inset: 0; z-index: 35; background: var(--black); color: var(--white); display: flex; align-items: center; padding: 0 var(--pad); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu[hidden] { display: flex; }
.menu.open { opacity: 1; visibility: visible; }
.menu a { display: block; font-family: "Inter", sans-serif; font-weight: 800; font-size: clamp(3rem, 12vw, 9rem); line-height: 1.15; letter-spacing: -0.04em; text-decoration: none; }
.menu a:hover { opacity: .5; }
.menu a:focus-visible { outline-color: var(--white); }

/* Footer */
.site-foot { padding-block: 10vh 6vh; display: grid; gap: 2.5rem; }
.foot-nav { display: flex; gap: 2rem; font-family: "Inter", sans-serif; font-weight: 500; font-size: .9rem; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-foot .small { color: var(--gray); }

/* Sub pages */
.sub main, .home main { display: block; }
.page-head { padding-top: 24vh; padding-bottom: 12vh; }
.page-title { font-size: clamp(4rem, 16vw, 15rem); line-height: 1; margin-bottom: 4rem; }
.lead { margin-top: 0; }
.intro { max-width: 30rem; margin-top: 6rem; margin-left: auto; }
.intro p { margin-bottom: 2.5rem; font-size: 1rem; }
.intro-s { margin-top: 3rem; }
.more { display: inline-block; margin-top: 4rem; font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 500; font-size: clamp(1rem, 2.4vw, 1.4rem); text-underline-offset: .3em; }
.artist-list .note { display: block; font-family: "Noto Sans JP", sans-serif; font-weight: 400; font-size: .875rem; letter-spacing: 0; margin-top: .4rem; color: var(--gray); }

/* Form */
.form-wrap { padding-top: 4vh; }
form { max-width: 34rem; margin-left: auto; }
label { display: block; font-size: .875rem; margin-bottom: 3rem; }
input, textarea, select { display: block; width: 100%; margin-top: .6rem; padding: .6rem 0; font: inherit; font-size: 1rem; color: var(--black); background: transparent; border: 0; border-bottom: 1px solid var(--gray); border-radius: 0; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 0; border-bottom: 2px solid var(--black); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; border-radius: 0; }
.send { font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--white); background: var(--black); border: 0; padding: 1rem 2rem; cursor: pointer; border-radius: 0; }
.send:hover { opacity: .8; }
.note { margin-top: 1.5rem; min-height: 1.5em; }
.direct { margin-top: 4rem; }
.direct .mail { display: inline-block; }
@media (min-width: 900px) { .direct { text-align: right; } }
.direct .mail { font-size: inherit; }

/* Cursor-free: focus */
a:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }

@media (min-width: 900px) {
  :root { --pad: 8vw; }
  .story-body { max-width: 38rem; margin-right: 10vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon, .tagline, .hero-sub { animation: none; }
  .marquee-track { animation: none; }
  .menu, .dots i { transition: none; }
}

/* Ikikata buttons, popup, detail */
.name-btn { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.name-btn:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.name-btn:focus-visible { outline: 2px solid var(--black); outline-offset: 6px; }
.ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eee; }
.ph-empty { display: flex; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-size: .8rem; color: var(--gray); }
.sns { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; font-family: "Inter", sans-serif; font-weight: 500; font-size: .9rem; }
.sns a { text-underline-offset: .3em; }

.popup { border: 0; padding: 0; margin: auto; width: min(44rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; background: var(--white); color: var(--black); }
.popup::backdrop { background: rgba(17, 17, 17, .72); }
.popup-close { display: block; margin: 1rem 1rem 0 auto; font-family: "Inter", sans-serif; font-weight: 500; font-size: .9rem; color: var(--black); background: none; border: 0; padding: .5rem; cursor: pointer; }
.popup-inner { display: grid; gap: 1.5rem; padding: 0 1.5rem 2rem; }
.popup-name { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
.popup-way { font-weight: 700; font-size: 1.15rem; line-height: 1.6; margin: 1rem 0; }
.popup .more { margin-top: 2rem; }
.popup .ph { aspect-ratio: 1 / 1; }
@media (min-width: 640px) { .popup .ph { aspect-ratio: 4 / 5; } .popup-inner { grid-template-columns: 14rem 1fr; gap: 2rem; padding: 0 2rem 2.5rem; } }

.detail-body { max-width: 34rem; margin-left: auto; margin-top: 6rem; }
.detail-body .ph { max-width: 22rem; margin-bottom: 2rem; }
.detail-body p { margin-bottom: 2rem; }
.back { padding-top: 0; }

/* Popup motion: only the box moves, never the text or the photo */
.popup[open] { animation: pop-in .6s cubic-bezier(.2,.8,.2,1) both; }
.popup[open]::backdrop { animation: fade-in .5s ease both; }
.popup.closing { animation: pop-out .3s ease both; }
.popup.closing::backdrop { animation: fade-out .3s ease both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(32px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .popup, .popup *, .popup::backdrop { animation: none !important; } }

.biz .mid-jp { margin-top: 0; font-size: clamp(1.5rem, 4.4vw, 3.4rem); }
.biz .small { margin-top: 2rem; max-width: 30rem; }
.biz { text-align: right; }
.biz .small { margin-left: auto; }

/* News */
.news-list { display: grid; gap: 3.5rem; }
.news-item { display: block; text-decoration: none; }
.news-meta { display: block; font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 500; font-size: .8rem; letter-spacing: .06em; color: var(--gray); margin-bottom: .6rem; }
.news-title { display: block; font-weight: 700; font-size: clamp(1.3rem, 3.4vw, 2.4rem); line-height: 1.4; }
.news-item:hover .news-title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: .06em; }
.news-item:focus-visible { outline: 2px solid var(--black); outline-offset: 6px; }
.news-page { padding-top: 0; }
.news .more { margin-top: 5rem; }
.news-list { max-width: 44rem; }
#news-detail .detail-body { margin-left: 0; margin-top: 4rem; }

/* Form extras, preview bar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: .9rem; margin-bottom: 2rem; padding-left: .8rem; border-left: 3px solid var(--black); }
.preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--black); color: var(--white); font-size: .8rem; padding: .7rem 1rem; text-align: center; }
.preview-bar a { color: var(--white); margin-left: .5rem; }
