/* ==========================================================================
   合同会社Nabia — 共通スタイル
   Tailwind(CDN) で足りない部分だけをここに置く。
   ========================================================================== */

:root {
  --gold-muted: #947A48;
  --gold-dark: #6B5834;
  --gold-bright: #C9A227;
}

html {
  scroll-behavior: smooth;
  /* ヘッダーが position:fixed のため、アンカー移動時に見出しが隠れないようにする */
  scroll-padding-top: 6rem;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* フォント ---------------------------------------------------------------- */
.font-serif-en { font-family: 'Merriweather', serif; }
.font-serif-jp { font-family: 'Noto Serif JP', serif; }

/* ゴールド ---------------------------------------------------------------- */
.text-gold   { color: var(--gold-muted); }
.bg-gold     { background-color: var(--gold-muted); }
.border-gold { border-color: var(--gold-muted); }

.gold-gradient {
  background: linear-gradient(45deg, var(--gold-dark), var(--gold-muted), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ヘッダー ---------------------------------------------------------------- */
.site-header {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

/* スクロール後は不透明にして本文と混ざらないようにする（main.js が付与） */
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ハンバーガー */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ヒーロースライド --------------------------------------------------------- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  animation: kenburns 24s ease-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.22) translate(-2%, -1%); }
}

/* 写真のトーン統一 --------------------------------------------------------- */
/* 素材の彩度が高いままだと黒ゴールドから浮くため、全体に薄く金を回す */
.toned {
  position: relative;
}

.toned img {
  filter: saturate(.25) contrast(1.04) brightness(.95);
}

.toned::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(148, 122, 72, .22), rgba(11, 11, 11, .30) 70%);
  mix-blend-mode: soft-light;
}

/* 代表ポートレート --------------------------------------------------------- */
/* 人物写真は彩度を落としすぎると肌色が濁るため、背景写真より弱く。
   白背景を黒基調に馴染ませるため brightness を少し下げている（B案）。 */
.portrait-img {
  filter: saturate(.85) contrast(1.05) brightness(.90);
  object-position: 50% 20%;
}

.portrait-veil {
  background: linear-gradient(150deg, rgba(148, 122, 72, .18), rgba(11, 11, 11, .30) 70%);
  mix-blend-mode: soft-light;
}

/* フォーム ---------------------------------------------------------------- */
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, .3);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
}

/* アクセシビリティ --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide,
  .hero-slide img,
  .nav-toggle-bar {
    animation: none !important;
    transition: none !important;
  }
}
