/* ==========================================================================
   TOWARKS — Corporate Site Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  /* --- Brand palette --- */
  --c-ink: #333333;
  --c-ivory: #FAF7F0;
  --c-ivory-rgb: 250, 247, 240;
  --c-sky: #A8D5E9;
  --c-orange: #FFB47D;
  --c-brown: #CDAA8D;
  --c-gray: #BFC7CE;
  --c-ink-rgb: 51, 51, 51;

  /* --- Type --- */
  --f-display: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Outfit', sans-serif;

  /* --- Layout --- */
  --container: 1180px;
  --gutter: clamp(24px, 6vw, 64px);
  --section-py: clamp(88px, 12vw, 168px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  /* --- Motion --- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-s: .4s;
  --dur-m: .8s;
  --dur-l: 1.4s;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--c-ivory);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.en {
  font-family: var(--f-display);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: var(--section-py) 0;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--f-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-ink);
  opacity: .55;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: .02em;
  margin-top: .5em;
  line-height: 1.15;
}

.section-lede {
  margin-top: 1.1em;
  max-width: 46ch;
  color: rgba(var(--c-ink-rgb), .78);
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Line-mask reveal — used on headings in place of a "spinning
   letters" effect: text rises up from behind a clipped mask.
   -------------------------------------------------------------------- */
.title-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.title-mask-inner {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1s var(--ease);
}
.reveal.mask-reveal { transform: none; }
.reveal.mask-reveal.is-visible .title-mask-inner { transform: translateY(0); }

html.is-ready .hero-wordmark .title-mask-inner {
  transition: transform 1s var(--ease) .6s;
}
html.is-ready .hero-wordmark .title-mask-inner {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .title-mask-inner { transition: none; transform: none; }
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Signature thread line (scroll-drawn curve)
   -------------------------------------------------------------------------- */
.thread-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.thread-wrap svg { width: 100%; height: 100%; display: block; }
.thread-path {
  fill: none;
  stroke: var(--c-sky);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .55;
}
.thread-path.alt { stroke: var(--c-brown); opacity: .4; }

@media (max-width: 760px) {
  .thread-wrap { display: none; }
}

/* --------------------------------------------------------------------------
   Ambient blobs
   -------------------------------------------------------------------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  opacity: .5;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-ink);
  color: var(--c-ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark {
  width: 64px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.preloader-percent {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: .04em;
}
.preloader-bar {
  width: 160px;
  height: 1px;
  background: rgba(var(--c-ivory-rgb), .25);
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--c-sky);
}
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .preloader-mark { animation: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding var(--dur-s) var(--ease), background var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--c-ivory-rgb), 0);
  backdrop-filter: blur(0px);
  transition: background var(--dur-s) var(--ease), backdrop-filter var(--dur-s) var(--ease);
  z-index: -1;
}
.site-header.is-scrolled {
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(var(--c-ink-rgb), .06);
}
.site-header.is-scrolled::before {
  background: rgba(var(--c-ivory-rgb), .86);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.brand-mark img { height: 30px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: inherit;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--f-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-family: var(--f-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 10px 20px;
  border: 1px solid var(--c-ink);
  border-radius: 999px;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--c-ink); color: var(--c-ivory); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 210;
}
.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--c-ink);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen nav — always fixed & off-screen by default,
   regardless of viewport width, so it can never sit in normal
   document flow and bleed through the (transparent) header. */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--c-ivory);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.mobile-nav .nav-cta {
  display: inline-block;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
}

.hero-blob-a {
  width: min(60vw, 620px);
  height: min(60vw, 620px);
  top: -12%;
  right: -14%;
  background: radial-gradient(circle at 40% 40%, rgba(168,213,233,.55), rgba(168,213,233,0) 70%);
}
.hero-blob-b {
  width: min(46vw, 460px);
  height: min(46vw, 460px);
  bottom: -14%;
  left: -10%;
  background: radial-gradient(circle at 60% 60%, rgba(255,180,125,.4), rgba(255,180,125,0) 70%);
}

.hero-curve {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-curve svg { width: 100%; height: 100%; }
.hero-curve path {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 1.4;
  opacity: .16;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(72vw, 520px);
  opacity: 0;
  transform: translateY(18px) scale(.96);
}
html.is-ready .hero-logo {
  animation: heroLogoIn 1.2s var(--ease) .1s forwards;
}
@keyframes heroLogoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-wordmark {
  margin-top: clamp(18px, 2.6vw, 26px);
  opacity: 0;
}
html.is-ready .hero-wordmark {
  animation: heroFadeUp .9s var(--ease) .55s forwards;
}
.hero-wordmark-en {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: .16em;
}
.hero-wordmark-jp {
  margin-top: 8px;
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: rgba(var(--c-ink-rgb), .6);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-wordmark { animation: none !important; opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
}
html.is-ready .scroll-cue {
  animation: heroFadeUp .9s var(--ease) 1.1s forwards;
}
.scroll-cue span {
  font-family: var(--f-display);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .55;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--c-ink), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-ink);
  animation: cueDrip 1.8s ease-in-out infinite;
}
@keyframes cueDrip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; opacity: 1; }
  .scroll-cue .line::after { animation: none; display: none; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.about-copy p + p { margin-top: 1.3em; }
.about-copy .lead {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.6;
}
.about-copy .sub {
  color: rgba(var(--c-ink-rgb), .78);
}

/* ==========================================================================
   Service
   ========================================================================== */
.service-section { background: linear-gradient(180deg, rgba(168,213,233,.14), rgba(168,213,233,0) 60%); }

.service-list { position: relative; z-index: 1; }

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(32px, 4vw, 46px) 0;
  border-top: 1px solid rgba(var(--c-ink-rgb), .14);
  align-items: start;
}
.service-item:last-child { border-bottom: 1px solid rgba(var(--c-ink-rgb), .14); }

.service-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 34px; height: 34px; }
.service-item:nth-child(1) .service-icon { background: rgba(168,213,233,.45); }
.service-item:nth-child(2) .service-icon { background: rgba(255,180,125,.4); }
.service-item:nth-child(3) .service-icon { background: rgba(205,170,141,.35); }

.service-body-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  justify-content: space-between;
}

.service-name-en {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: .03em;
}
.service-name-jp {
  font-size: .88rem;
  color: rgba(var(--c-ink-rgb), .55);
  letter-spacing: .06em;
}

.service-desc {
  margin-top: 14px;
  max-width: 56ch;
  color: rgba(var(--c-ink-rgb), .78);
}

.service-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.service-tags span {
  font-family: var(--f-display);
  font-size: .72rem;
  letter-spacing: .06em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(var(--c-ink-rgb), .22);
  color: rgba(var(--c-ink-rgb), .72);
}

@media (max-width: 620px) {
  .service-item { grid-template-columns: 56px 1fr; }
  .service-icon { width: 52px; height: 52px; }
  .service-icon svg { width: 26px; height: 26px; }
}

/* ==========================================================================
   Artist / Produced by TOWARKS
   ========================================================================== */
.artist-section { position: relative; }

.artist-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 760px) {
  .artist-grid { grid-template-columns: 1fr; }
}

.artist-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--c-ink);
}

.artist-photo {
  position: relative;
  aspect-ratio: 4 / 3;
}
.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.artist-photo--mark img {
  object-position: center;
}

.artist-info {
  padding: clamp(26px, 3vw, 36px);
  color: var(--c-ivory);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.artist-info .eyebrow { color: var(--c-ivory); opacity: .6; }
.artist-info .eyebrow::before { background: var(--c-sky); }

.artist-name-jp {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  letter-spacing: .04em;
  line-height: 1.35;
}
.artist-name-jp.name-no-break { white-space: nowrap; }
.artist-name-jp.is-latin {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .02em;
}
.artist-name-jp.cafe-brand-name {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.5;
}

.artist-name-en {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: .84rem;
  letter-spacing: .14em;
  opacity: .65;
}

.artist-desc {
  font-size: .88rem;
  line-height: 1.75;
  opacity: .85;
}

.artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: auto;
  padding-top: 6px;
}
.artist-apply-link {
  color: var(--c-ivory);
}
.artist-apply-link .arrow-box { border-color: rgba(var(--c-ivory-rgb), .6); width: 30px; height: 30px; }
.artist-apply-link .arrow-box svg { width: 12px; height: 12px; }
.artist-apply-link:hover .arrow-box { background: var(--c-sky); border-color: var(--c-sky); color: var(--c-ink); }

@media (max-width: 480px) {
  .artist-name-jp.name-no-break { font-size: clamp(1.5rem, 8.5vw, 2.1rem); }
}

/* ==========================================================================
   Works
   ========================================================================== */
.works-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 32px);
}

.work-card {
  background: #fff;
  border: 1px solid rgba(var(--c-ink-rgb), .1);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-ink);
  cursor: pointer;
  overflow: hidden;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.04); opacity: .95; }
.work-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(var(--c-ivory-rgb), .92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.work-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.play-btn svg { width: 18px; height: 18px; margin-left: 3px; }

.work-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-tags span {
  font-family: var(--f-display);
  font-size: .68rem;
  letter-spacing: .08em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(168,213,233,.35);
  color: var(--c-ink);
}
.work-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.5;
}
.work-sub {
  font-size: .85rem;
  color: rgba(var(--c-ink-rgb), .6);
}
.work-client {
  font-size: .8rem;
  color: rgba(var(--c-ink-rgb), .5);
  margin-top: -2px;
}

.work-card.is-placeholder {
  border-style: dashed;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  color: rgba(var(--c-ink-rgb), .4);
  gap: 8px;
}
.work-card.is-placeholder .placeholder-mark {
  font-family: var(--f-display);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ==========================================================================
   History
   ========================================================================== */
.history-block {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.history-label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(var(--c-ink-rgb), .45);
  margin-bottom: 16px;
}
.history-list { display: flex; flex-direction: column; }
.history-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(var(--c-ink-rgb), .12);
}
.history-list li:last-child { border-bottom: 1px solid rgba(var(--c-ink-rgb), .12); }
.history-date {
  font-size: .88rem;
  letter-spacing: .04em;
  color: rgba(var(--c-ink-rgb), .55);
}
.history-event { font-size: .95rem; }

@media (max-width: 480px) {
  .history-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Company
   ========================================================================== */
.company-panel {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(var(--c-ink-rgb), .14);
}
.company-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(var(--c-ink-rgb), .14);
}
.company-row dt {
  font-family: var(--f-display);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(var(--c-ink-rgb), .5);
  padding-top: 2px;
}
.company-row dd {
  margin: 0;
  font-size: .98rem;
  line-height: 1.75;
}
.company-row a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 620px) {
  .company-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   Contact (inverted)
   ========================================================================== */
.contact-section {
  background: var(--c-ink);
  color: var(--c-ivory);
}
.contact-section .eyebrow { color: var(--c-ivory); opacity: .5; }
.contact-section .eyebrow::before { background: var(--c-sky); }

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: .01em;
}

.contact-note {
  margin-top: 24px;
  max-width: 40ch;
  color: rgba(var(--c-ivory-rgb), .72);
  font-size: .95rem;
  line-height: 1.9;
}

.contact-email {
  display: inline-block;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(var(--c-ivory-rgb), .35);
  padding-bottom: 4px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact-email:hover { color: var(--c-sky); border-color: var(--c-sky); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(var(--c-ivory-rgb), .75);
}
.form-row .required {
  margin-left: 8px;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--c-orange);
  border: 1px solid rgba(255, 180, 125, .5);
  border-radius: 999px;
  padding: 1px 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(var(--c-ivory-rgb), .3);
  color: var(--c-ivory);
  font-family: var(--f-body);
  font-size: .98rem;
  padding: 10px 2px;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(var(--c-ivory-rgb), .4); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-sky);
}

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
  color: var(--c-ivory);
}
.form-submit .arrow-box { border-color: rgba(var(--c-ivory-rgb), .5); }
.form-submit:hover .arrow-box { background: var(--c-sky); border-color: var(--c-sky); color: var(--c-ink); }
.form-submit:disabled { opacity: .5; pointer-events: none; }

.form-status {
  font-size: .88rem;
  min-height: 1.4em;
}
.form-status.is-success { color: var(--c-sky); }
.form-status.is-error { color: var(--c-orange); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 150;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(var(--c-ink-rgb), .25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s var(--ease);
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--c-sky); color: var(--c-ink); }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .2s linear; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--c-ink);
  color: rgba(var(--c-ivory-rgb), .7);
  padding: 40px 0 34px;
  border-top: 1px solid rgba(var(--c-ivory-rgb), .12);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { height: 22px; width: auto; }
.footer-brand span {
  font-family: var(--f-display);
  font-size: .8rem;
  letter-spacing: .08em;
}
.footer-meta {
  font-size: .78rem;
  letter-spacing: .04em;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons (creative-agency style, not "詳しくはこちら→")
   ========================================================================== */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .1em;
}
.btn-arrow .arrow-box {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease), background .35s var(--ease);
}
.btn-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn-arrow:hover .arrow-box { transform: rotate(45deg); }

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
