/* ============================================
   SUMI — Japanese minimal corporate white page
   Palette: white / black / gray
   ============================================ */

:root {
  --bg: #fafafa;
  --bg-soft: #f3f3f3;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #8a8a8a;
  --line: #e4e4e4;
  --line-strong: #cfcfcf;
  --white: #ffffff;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.35;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__mark {
  font-family: var(--font-serif);
  font-size: 42px;
  letter-spacing: 0.35em;
  color: var(--white);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s;
  color: var(--white);
}

.site-header.is-solid {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  justify-self: center;
}

.logo__jp {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.4em;
  margin-right: -0.4em;
  line-height: 1;
}

.logo__en {
  font-size: 10px;
  letter-spacing: 0.45em;
  margin-right: -0.45em;
  opacity: 0.7;
  font-weight: 400;
}

.header-nav {
  justify-self: end;
}

.header-nav a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.header-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  justify-self: start;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  z-index: 150;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--surface);
  color: var(--ink);
  z-index: 160;
  padding: 88px 40px 40px;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.drawer__nav a {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.drawer__nav a:hover {
  opacity: 0.5;
}

.drawer__meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: #2a2a2a;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-solid ~ main .hero .btn--ghost,
.btn--ghost.on-light {
  color: var(--ink);
  border-color: var(--ink);
}

.btn--block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.8;
}

.hero__title {
  margin-bottom: 28px;
}

.hero__title-jp {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(56px, 12vw, 96px);
  letter-spacing: 0.45em;
  margin-right: -0.45em;
  line-height: 1;
  font-weight: 500;
}

.hero__title-en {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.55em;
  margin-right: -0.55em;
  opacity: 0.75;
  font-weight: 300;
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0.28em;
  margin: 0 0 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.7;
  writing-mode: vertical-rl;
  animation: floatY 2.4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
}

.section-head {
  margin-bottom: 64px;
}

.section-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* ---------- About ---------- */
.about {
  background: var(--surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.about__visual {
  overflow: hidden;
  background: var(--bg-soft);
}

.about__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.about__visual:hover img {
  transform: scale(1.04);
}

.about__kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 18px;
}

.about__heading {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 500;
}

.about__body p {
  color: var(--ink-soft);
  font-size: 15px;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.about__facts dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.about__facts dd {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- Philosophy ---------- */
.philosophy {
  background: var(--bg);
}

.philosophy__intro {
  max-width: 520px;
  margin: -36px 0 56px;
  color: var(--ink-soft);
  font-size: 15px;
}

.philosophy__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 96px;
}

.philosophy__item {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.philosophy__num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 20px;
}

.philosophy__item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 500;
}

.philosophy__item p {
  font-size: 14px;
  color: var(--ink-soft);
}

.philosophy__banner {
  position: relative;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  min-height: 56vh;
  overflow: hidden;
}

.philosophy__banner img {
  width: 100%;
  height: 100%;
  min-height: 56vh;
  object-fit: cover;
}

.philosophy__quote {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-content: center;
  padding: 40px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.38);
  color: var(--white);
}

.philosophy__quote p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: 0.12em;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 20px;
}

.philosophy__quote cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--surface);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}

.gallery__item {
  margin: 0;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: grayscale(12%);
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

.gallery__item--wide img {
  aspect-ratio: 16 / 9;
}

.gallery__item:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.gallery__item figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding: 16px 2px 0;
}

.gallery__cat {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery__item strong {
  font-weight: 400;
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  font-size: 16px;
}

.gallery__item figcaption span:last-child {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- News ---------- */
.news {
  background: var(--bg);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.news-list li {
  border-bottom: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 120px 130px 1fr;
  gap: 0 16px;
  align-items: baseline;
  padding: 22px 4px;
  transition: opacity 0.3s;
}

.news-list a:hover {
  opacity: 0.55;
}

.news-list time {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.news-list__cat {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.news-list__title {
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.contact__address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.contact__address strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contact__address a {
  border-bottom: 1px solid var(--line-strong);
  transition: opacity 0.3s;
}

.contact__address a:hover {
  opacity: 0.55;
}

.contact__address p + p {
  margin-top: 24px;
}

.contact__form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.form-row label span {
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 12px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
  appearance: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-bottom-color: var(--ink);
}

.form-note {
  min-height: 1.5em;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0;
}

.form-note.is-error {
  color: #7a2e2e;
}

.form-note.is-ok {
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 40px;
}

.site-footer__inner {
  display: grid;
  gap: 36px;
  justify-items: center;
  text-align: center;
}

.site-footer__brand .logo__jp {
  display: block;
  color: var(--white);
  margin-bottom: 6px;
}

.site-footer__brand .logo__en {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
}

.site-footer__nav a {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.site-footer__nav a:hover {
  opacity: 0.5;
}

.site-footer__copy {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__grid,
  .philosophy__list,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery__grid {
    gap: 32px 16px;
  }

  .news-list a {
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    padding: 18px 0;
  }

  .news-list__title {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .section {
    padding: 88px 0;
  }

  .philosophy__list {
    margin-bottom: 64px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header__inner {
    width: calc(100% - 24px);
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item figcaption span:last-child {
    margin-left: 0;
    width: 100%;
  }

  .hero__lead {
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .page-loader,
  .hero__media img,
  .hero__scroll,
  .page-loader__mark {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
