/* =========================================================================
   KISOYA — Japanese minimalist design system
   Edit the variables below to retune the whole site at once.
   ========================================================================= */

:root {
  /* Palette ------------------------------------------------------------- */
  --paper:        #FBF9F4;   /* primary background, warm off-white         */
  --paper-soft:   #F3EEE3;   /* warm beige, alternating sections           */
  --paper-deep:   #ECE5D6;   /* deeper beige, cards / placeholders         */
  --ink:          #1E1C19;   /* primary text, warm near-black              */
  --ink-soft:     #6A645A;   /* secondary text                            */
  --line:         rgba(30, 28, 25, 0.14);  /* hairline borders            */
  --indigo:       #2A3550;   /* primary accent (ai / indigo)              */
  --vermilion:    #B23A2B;   /* sparing secondary accent (shu / red)      */

  /* Typography ---------------------------------------------------------- */
  --serif: "Noto Serif JP", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm -------------------------------------------------------------- */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Accessibility ---------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 1px; }
.skip-link {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  margin: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { color: var(--ink); }
.muted { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kana {                       /* small vertical/JP accent mark             */
  font-family: var(--serif);
  color: var(--vermilion);
  opacity: 0.85;
}

/* Layout helpers --------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--paper-soft); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 2.1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--indigo); border-color: var(--indigo); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light-solid { background: #fff; color: var(--ink); border-color:#fff; }
.btn--light-solid:hover { background: transparent; color:#fff; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.textlink:hover { color: var(--indigo); border-color: var(--indigo); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  padding-block: 1rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;     /* optical balance for tracking               */
  color: var(--ink);
}
.site-header.on-hero:not(.is-scrolled) .brand,
.site-header.on-hero:not(.is-scrolled) .nav a,
.site-header.on-hero:not(.is-scrolled) .nav-toggle span { color: #fff; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .nav-cta {
  border: 1px solid currentColor;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.nav-toggle { display: none; width: 28px; height: 20px; position: relative; }
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2c2a26 0%, #3b3833 45%, #514c43 100%);
  background-size: cover;
  background-position: center;
}
.hero__media img { width:100%; height:100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.45) 0%, rgba(20,18,16,0.15) 40%, rgba(20,18,16,0.65) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(4rem, 12vh, 8rem);
}
.hero .eyebrow { color: rgba(255,255,255,0.78); }
.hero h1 {
  margin: 1.2rem 0 1.4rem;
  max-width: 16ch;
  font-weight: 300;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  color: rgba(255,255,255,0.92);
  max-width: 30ch;
  line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 46px;
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* =========================================================================
   GENERIC SECTIONS
   ========================================================================= */
.statement {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.statement .kana { display:block; font-size: 1.6rem; margin-bottom: 1.4rem; letter-spacing: 0.3em; }
.statement h2 { font-weight: 300; margin-bottom: 1.5rem; }
.statement p { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-soft); }

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { display:block; margin-bottom: 1rem; }
.section-head h2 { font-weight: 300; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

/* Values cards ----------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card {
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.6rem, 3vw, 2.6rem);
}
.value-card .num {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--vermilion);
}
.value-card h3 { margin: 1rem 0 0.8rem; font-weight: 400; }
.value-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Split feature (founder teaser) ---------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: clamp(2rem, 6vw, 5rem);
}
.split__media { position: relative; min-height: 420px; }
.split__media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.split__body { align-self: center; max-width: 34rem; }
.split__body .eyebrow { display:block; margin-bottom: 1.2rem; }
.split__body h2 { font-weight: 300; margin-bottom: 1.4rem; }
.split__body blockquote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.split__body .sign {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 1.6rem 0 2rem;
}

/* Brands strip ----------------------------------------------------------- */
.brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.brand-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(30,28,25,0.5); }
.brand-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.brand-card__media img { width:100%; height:100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.brand-card:hover .brand-card__media img { transform: scale(1.04); }
.brand-card__body { padding: 1.8rem; display:flex; flex-direction:column; gap:0.8rem; flex:1; }
.brand-card__body h3 { font-weight: 400; }
.brand-card__tag { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.brand-card__body p { font-size: 0.95rem; color: var(--ink-soft); flex:1; }

/* Visit band ------------------------------------------------------------- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.visit dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 2rem; margin-top: 1.6rem; }
.visit dt { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.visit dd { font-size: 1rem; }
.visit__map {
  min-height: 320px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; align-items: stretch; justify-content: stretch;
}
.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  /* Soften Google's saturated palette to match the Japanese-minimalist tone. */
  filter: saturate(0.7) contrast(0.95);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem;
}
.site-footer a { color: rgba(255,255,255,0.72); transition: color 0.3s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.4em; color:#fff; text-transform: uppercase; }
.footer-brand + p { margin-top: 1.2rem; max-width: 26ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.3rem;
}
.footer-col li { margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================================
   STICKY MOBILE ORDER BUTTON
   ========================================================================= */
.mobile-cta {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(251, 249, 244, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  gap: 0.7rem;
}
.mobile-cta .btn { flex: 1; padding-block: 0.85rem; font-size: 0.74rem; }

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
/* Content is visible by default. It is only hidden for the scroll-reveal
   animation when JS is active (html.js). If JS fails, never loads, or a
   crawler/preview doesn't scroll, the html.reveal-all failsafe (and the
   no-JS case) keep all content visible. */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in,
html.reveal-all .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll::after { animation: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 300px; }
  .visit { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; max-width: 26rem; margin-inline:auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  body.nav-open .nav { transform: none; }
  .nav a { font-size: 1rem; color: var(--ink) !important; }
  .nav .nav-cta { padding: 0.8rem 1.8rem; }
  .nav-toggle { display: block; z-index: 70; }
  .site-header.on-hero:not(.is-scrolled) .nav-toggle span { background:#fff; }
  body.nav-open .nav-toggle span { background: var(--ink) !important; }
  .grid-3 { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 6.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { align-items: center; }
  .hero__inner { padding-bottom: 0; padding-top: 6rem; }
  .hero__scroll { display: none; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}

/* =========================================================================
   INTERIOR PAGES
   ========================================================================= */
.page-hero {
  padding: clamp(8rem, 18vh, 12rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero .eyebrow { display:block; margin-bottom: 1.1rem; }
.page-hero h1 { font-weight: 300; max-width: 18ch; margin-inline: auto; }
.page-hero p { margin: 1.4rem auto 0; max-width: 46ch; color: var(--ink-soft); }

/* Founder letter prose --------------------------------------------------- */
.prose { max-width: 40rem; margin-inline: auto; }
.prose .eyebrow { display:block; text-align:center; margin-bottom: 2rem; }
.prose p { margin-bottom: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.85; }
.prose .first { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.5; color: var(--ink); }
.prose ul { margin: 0 0 1.5rem; }
.prose ul li { font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.85; padding-left: 1.2rem; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--vermilion); }
.prose .signoff { font-family: var(--serif); font-size: 1.3rem; margin-top: 2.5rem; }
.prose hr { border:0; height:1px; background: var(--line); margin: 2.5rem 0; }

/* Team placeholder ------------------------------------------------------- */
.team-photo {
  aspect-ratio: 16 / 7;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================================
   FORMS
   ========================================================================= */
.form-wrap { max-width: 44rem; margin-inline: auto; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
}
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label .req { color: var(--vermilion); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: #fff;
}
.field input[type="file"] { padding: 0.7rem; cursor: pointer; }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); }
.form-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.2rem; }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.form-success.show { display: block; }
.form-success .kana { font-size: 1.6rem; display:block; margin-bottom: 1.2rem; letter-spacing: 0.3em; }
.form-success h3 { font-weight: 400; margin-bottom: 1rem; }
.form-success p { color: var(--ink-soft); max-width: 38ch; margin-inline: auto; }
form.hide { display: none; }

/* =========================================================================
   EMPLOYEES — password gate + document list
   ========================================================================= */
.gate { max-width: 28rem; margin-inline: auto; text-align: center; }
.gate .kana { font-size: 1.5rem; display:block; margin-bottom: 1.2rem; letter-spacing:0.3em; }
.gate form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.gate input {
  font-family: var(--sans); font-size: 1rem; text-align: center; letter-spacing: 0.3em;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; background: var(--paper);
}
.gate input:focus { outline: none; border-color: var(--indigo); background:#fff; }
.gate .err { color: var(--vermilion); font-size: 0.85rem; min-height: 1.2em; }

.docs { display: none; max-width: 50rem; margin-inline: auto; }
.docs.show { display: block; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-row:first-child { border-top: 1px solid var(--line); }
.doc-row h3 { font-weight: 400; font-size: 1.15rem; }
.doc-row p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.3rem; }
.doc-row .btn { flex-shrink: 0; padding: 0.75rem 1.5rem; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .doc-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
