/* ==========================================================================
   野崎写真館 — Portfolio
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #555555;
  --line: #e5e3df;
  --overlay: rgba(0, 0, 0, 0.35);
  --overlay-strong: rgba(0, 0, 0, 0.55);
  --card-bg: #f1f0ee;
  --header-h: 84px;
  --serif: 'Shippori Mincho', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --hero-scrim: rgba(255, 255, 255, 0.72); /* トップ背景スライドショーの上に敷く、文字を読みやすくするための膜 */
}

/* ---- Night mode palette (tied to the Day/Night switch) ---- */
:root[data-theme="dark"] {
  --bg: #0e0e10;
  --ink: #f3f2ef;
  --ink-soft: #9c9a95;
  --line: #2b2b2d;
  --card-bg: #1b1b1d;
  --hero-scrim: rgba(14, 14, 16, 0.72);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------------------------------- Header ---------------------------------- */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.3s var(--ease);
}

#site-header.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  height: 68px;
}
:root[data-theme="dark"] #site-header.solid {
  background: rgba(14, 14, 16, 0.88);
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo span {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.3em;
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
}
.main-nav a {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 10px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a.current {
  border-color: var(--ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

/* ---- Day / Night toggle switch ---- */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  padding: 4px 2px;
}

.theme-toggle-track {
  position: relative;
  width: 46px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6df, #ffe9b0);
  border: 1px solid var(--line);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
:root[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(180deg, #1c1d27, #101018);
}

.theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
:root[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(21px);
  background: #26262b;
}

.theme-toggle-knob .icon {
  position: absolute;
  width: 12px;
  height: 12px;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.icon-sun { color: #d9a419; opacity: 1; transform: rotate(0deg); }
.icon-moon { color: #cbd0e8; opacity: 0; transform: rotate(-40deg); }
:root[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(40deg); }
:root[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg); }

.theme-toggle-label {
  position: relative;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 34px;
}
.mode-text {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  white-space: nowrap;
}
.mode-day { opacity: 1; position: static; transform: none; }
:root[data-theme="dark"] .mode-day { opacity: 0; position: absolute; }
:root[data-theme="dark"] .mode-night { opacity: 1; }

/* ---- Mobile header: logo on its own row, full-width tappable category bar ---- */
@media (max-width: 640px) {
  :root { --header-h: 112px; }

  #site-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px 18px 0;
    gap: 10px;
  }
  #site-header.solid { height: auto; padding-top: 12px; }

  .logo {
    text-align: center;
    font-size: 19px;
  }
  .logo span { text-align: center; }

  .main-nav {
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .main-nav a {
    flex: 1;
    text-align: center;
    padding: 13px 4px 11px;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    border-bottom: 2px solid transparent;
  }
  .main-nav a.current {
    border-bottom-color: var(--ink);
    font-weight: 500;
  }

  /* unwrap the grouping div so .main-nav flows as its own row and
     .theme-toggle / .social-icon can be pulled out to the corners of the logo row */
  .header-right {
    display: contents;
  }
  #header-instagram {
    position: absolute;
    top: 16px;
    left: 18px;
  }
  .theme-toggle {
    position: absolute;
    top: 12px;
    right: 16px;
    gap: 7px;
  }
  .theme-toggle-label { display: none; }
}

/* ---------------------------------- Views ---------------------------------- */

.view {
  display: none;
  min-height: 100vh;
}
.view.active {
  display: block;
  animation: fadeIn 0.6s var(--ease);
}

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

/* ---------------------------------- Home / Hero tiles ---------------------------------- */

#view-home { padding-top: 0; }

.hero-intro {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

/* ---- トップ背景スライドショー（Light/Darkそれぞれの全カテゴリー写真からランダム、3秒毎にクロスフェード） ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg-layer.is-visible { opacity: 1; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  transition: background-color 0.6s var(--ease);
}
.hero-intro-content {
  position: relative;
  z-index: 1;
}

.hero-intro .eyebrow {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}
.hero-intro p {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  max-width: 460px;
  margin: 0 auto;
}
.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 46px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--ink);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

.hero-tiles {
  display: flex;
  flex-direction: column;
  width: 100%;
  scroll-margin-top: var(--header-h); /* ヘッダーからの「ギャラリー」アンカースクロール用 */
}
/* 管理サイト（カテゴリー管理）の「段」設定ごとの行。
   同じ段番号のカテゴリーがこの中に並び、幅を均等に分け合う。 */
.hero-row {
  display: flex;
  width: 100%;
}
.tile {
  position: relative;
  flex: 1;
  height: 100vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: flex 0.6s var(--ease);
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: inherit;
}
.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  opacity: 1;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease), opacity 0.5s var(--ease);
  filter: saturate(0.85) contrast(1.02);
}
/* Day/Night切り替え時のトップタイル写真もクロスフェードさせる */
.tile-img.is-fading { opacity: 0; }
.tile:hover .tile-img {
  transform: scale(1.09);
  filter: saturate(1) contrast(1.05);
}
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.6) 100%);
  transition: background 0.4s var(--ease);
}
.tile:hover .tile-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.7) 100%);
}
.tile-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 3vw, 40px) clamp(36px, 6vw, 64px);
  color: #fff;
}
.tile-index {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0.75;
  margin-bottom: 14px;
}
.tile-label h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 46px);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 6px;
  transition: opacity 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}
.tile:hover .tile-cta {
  opacity: 1;
  letter-spacing: 0.32em;
}

@media (max-width: 860px) {
  /* スマホ・タブレットでは「段」設定に関わらず、全カテゴリーを1列で縦に並べる */
  .hero-row { flex-direction: column; }
  .tile { height: 62vh; }
  /* トップ画面は常に全画面表示にし、スクロール（スワイプ）しないと
     「プロフィール」以降が見えないようにする */
  .hero-intro { height: 100vh; min-height: 480px; }
}

@media (max-width: 640px) {
  .hero-intro h1 { font-size: clamp(38px, 13vw, 56px); }
  .hero-intro p { font-size: 13px; padding: 0 8px; }
  .scroll-cue { bottom: 24px; height: 34px; }

  .tile { height: 56vh; min-height: 300px; }
  .tile-label { padding: 0 20px clamp(28px, 8vw, 44px); }
  .tile-index { font-size: 12px; letter-spacing: 0.22em; margin-bottom: 10px; }
  .tile-label h2 { font-size: clamp(28px, 9vw, 38px); margin-bottom: 10px; }
  .tile-cta { font-size: 12px; }
}

/* ---------------------------------- Gallery views ---------------------------------- */

.gallery-view {
  padding: calc(var(--header-h) + 40px) clamp(20px, 4vw, 48px) 100px;
  max-width: 1600px;
  margin: 0 auto;
}
.gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 32px;
}
.gallery-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  margin: 0;
  letter-spacing: 0.02em;
}
.gallery-count {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.back-link {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.back-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---- カテゴリー切り替えボタン（ギャラリーページ上部） ---- */
.category-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
}
.category-switch-link {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.category-switch-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.category-switch-link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  pointer-events: none;
}

@media (max-width: 640px) {
  .gallery-view { padding-left: 20px; padding-right: 20px; }
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 22px;
  }
  .back-link { padding: 4px 0; }
  .category-switch { gap: 8px; margin-bottom: 26px; }
  .category-switch-link { padding: 8px 16px; font-size: 10.5px; }
}

.masonry {
  --gallery-gap: 12px; /* スマホは2列でも窮屈にならない余白に */
  column-count: 2;
  column-gap: var(--gallery-gap);
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
@media (min-width: 640px) { .masonry { --gallery-gap: 20px; } }
@media (min-width: 1000px) { .masonry { --gallery-gap: 26px; column-count: 3; } }
@media (min-width: 1400px) { .masonry { column-count: 4; } }
/* Day/Night切り替え時、グリッド全体を完全にフェードアウトしてから
   写真を差し替え、フェードインさせる（前後の写真が同時に映らないように） */
.masonry.is-fading { opacity: 0; }

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--gallery-gap, 14px);
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.001);
  filter: saturate(0.9);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.masonry-item:hover img {
  transform: scale(1.045);
  filter: saturate(1.05);
}
.masonry-item .zoom-hint {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.masonry-item:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.item-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.62) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}
.item-title {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.item-camera {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

/* ---------------------------------- Lightbox ---------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lb-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 90px;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-stage img.show {
  opacity: 1;
  transform: scale(1);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  z-index: 10;
}
.lb-close {
  top: 24px; right: 28px;
  font-size: 30px;
  font-weight: 300;
  opacity: 0.85;
  line-height: 1;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 46px;
  font-weight: 200;
  padding: 10px 16px;
  opacity: 0.7;
  transition: opacity 0.25s var(--ease);
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-counter {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.lb-caption {
  position: absolute;
  left: 28px; bottom: 60px;
  max-width: min(440px, 60vw);
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.lb-caption.empty { display: none; }
.lb-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}
.lb-title:empty { display: none; }
.lb-meta {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.lb-meta:empty { display: none; }
.lb-note {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.lb-note:empty { display: none; }

@media (max-width: 640px) {
  .lb-stage { padding: 78px 14px; }
  .lb-close {
    top: 10px; right: 10px;
    font-size: 26px;
    padding: 12px;
  }
  .lb-prev, .lb-next {
    font-size: 30px;
    padding: 16px 14px;
    opacity: 0.85;
  }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
  .lb-counter { bottom: 16px; font-size: 11px; }
  .lb-caption { left: 16px; right: 16px; bottom: 42px; max-width: none; }
  .lb-title { font-size: 15px; }
}

/* ---------------------------------- Footer ---------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}
.footer-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------- Social icon (Instagram) ---------------------------------- */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { color: var(--ink); }
footer .social-icon svg { width: 16px; height: 16px; }

/* ---------------------------------- Reusable section heading ---------------------------------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
  display: block;
}
.section-heading {
  text-align: center;
  padding: clamp(60px, 10vw, 110px) 20px clamp(36px, 6vw, 56px);
}
.section-heading h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------------------------------- Profile section（人物紹介） ---------------------------------- */

.profile-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 88px);
  flex-wrap: wrap;
  scroll-margin-top: var(--header-h); /* ヘッダーからの「プロフィール」アンカースクロール用 */
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 130px) 24px clamp(40px, 6vw, 60px);
}
.profile-section[hidden] { display: none; }
.profile-photo {
  display: block;
  width: auto;
  max-width: min(360px, 80vw);
  height: auto;
  max-height: 70vh;
  border-radius: 6px;
  flex-shrink: 0;
}
.profile-photo[hidden] { display: none; }
.profile-text {
  max-width: 480px;
  text-align: left;
}
.profile-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.profile-text p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  white-space: pre-line;
}

@media (max-width: 640px) {
  .profile-section { text-align: center; padding-top: 70px; }
  .profile-text { text-align: center; }
}

/* ---------------------------------- Contact section（コンタクト） ---------------------------------- */

.contact-section {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: clamp(80px, 10vw, 130px);
  scroll-margin-top: var(--header-h); /* ヘッダーからの「コンタクト」アンカースクロール用 */
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 90px);
  padding: 0 24px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.contact-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-value {
  font-size: 16px;
  letter-spacing: 0.02em;
}
a.contact-value:hover { color: var(--ink-soft); }

.contact-form { display: flex; flex-direction: column; }
.contact-form label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn-submit {
  align-self: flex-start;
  margin-top: 28px;
  padding: 13px 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.btn-submit:hover { opacity: 0.75; }
.btn-submit:disabled { opacity: 0.5; cursor: default; }

.contact-status {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  min-height: 1.4em;
}
.contact-status.ok { color: #6fa87d; }
.contact-status.warn { color: #c56a5e; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .contact-row { flex: 1 1 40%; border-bottom: none; padding-bottom: 0; }
}
