@charset "UTF-8";
/* ==========================================================================
   style.css - 横長風景画（1024×724 / 白銀比 √2:1）専用カスタマイズ版
   ホームページ・ビルダー編集対応スタイルシート
   ========================================================================== */

:root {
  /* --- ライトモード（DAYLIGHT：自然光のギャラリー）の配色 --- */
  --bg-color: #f6f4f0;
  --bg-gradient: radial-gradient(circle at 50% 35%, #ffffff 0%, #f3efe8 65%, #e8e2d8 100%);
  --text-main: #22201e;
  --text-sub: #6e675f;
  --text-muted: #9a9288;
  --accent-gold: #9e8456;

  /* --- 額縁・マットボードの色 --- */
  --frame-outer: #2c2520;
  --frame-inner: #4a3e35;
  --frame-gold-trim: #b89b67;
  --mat-bg: #fbf9f5;
  --frame-shadow: 0 28px 60px rgba(25, 20, 15, 0.18), 0 8px 20px rgba(25, 20, 15, 0.10);

  /* --- フォント設定 --- */
  --font-serif: 'Cormorant Garamond', 'Noto Serif JP', "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

/* --- ダークモード（NOCTURNE：夜間スポットライト展示）の配色 --- */
body.theme-nocturne {
  --bg-color: #121214;
  --bg-gradient: radial-gradient(circle at 50% 38%, #252320 0%, #151416 60%, #0b0b0d 100%);
  --text-main: #ece8e1;
  --text-sub: #b0a89e;
  --text-muted: #706a62;
  --accent-gold: #c8ad78;

  --frame-outer: #1b1714;
  --frame-inner: #332a23;
  --frame-gold-trim: #a88b56;
  --mat-bg: #f3EFEA;
  --frame-shadow: 0 35px 80px rgba(0, 0, 0, 0.75), 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   基本リセット・全体レイアウト
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.7;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  transition: background-color 0.8s ease, color 0.8s ease;
  -webkit-font-smoothing: antialiased;
}

/* 背景のやわらかなスポットライト演出 */
.ambient-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 250, 240, 0.14) 0%, transparent 60%);
  z-index: 0;
  transition: opacity 0.8s ease;
}

/* ==========================================================================
   ヘッダー（左上ロゴ・右上の照明切り替えスイッチ）
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
}

.brand-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  transition: opacity 0.3s ease;
}

.brand-link:hover {
  opacity: 0.7;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(158, 132, 86, 0.35);
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(158, 132, 86, 0.08);
}

.lamp-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  transition: transform 0.3s ease;
}

/* ==========================================================================
   メインエリア（少し上のタイトル＋中央の横長絵画）
   ========================================================================== */
.gallery-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 24px 36px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

/* --- 1. 絵画の少し上のタイトル --- */
.title-section {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeUpSlow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exhibition-subtitle {
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.exhibition-title {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.exhibition-lead {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-sub);
  letter-spacing: 0.12em;
}

/* --- 2. 中央の横長絵画と額縁（1024×724 ピッタリに設計） --- */
.artwork-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.frame-stage {
  perspective: 1400px;
  margin-bottom: 24px;
  animation: fadeUpSlow 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.museum-frame {
  position: relative;
  background: linear-gradient(145deg, var(--frame-inner), var(--frame-outer));
  padding: clamp(12px, 1.8vw, 18px);
  border-radius: 3px;
  box-shadow: var(--frame-shadow);
  border: 1px solid rgba(184, 155, 103, 0.35);
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.6s ease;
  outline: none;
}

.museum-frame:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-gold), var(--frame-shadow);
}

/* 額縁内側のマット台紙（白い余白部分） */
.mat-board {
  background-color: var(--mat-bg);
  padding: clamp(16px, 2.8vw, 34px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--frame-gold-trim);
  transition: background-color 0.6s ease;
}

/* 
  【重要】絵画キャンバスの開口部（添付画像 1024 × 724 px の比率に完全一致）
  ・横幅は画面サイズに応じて最大 680px までゆったり表示
  ・端のサインまで1ピクセルも切れないよう設計
*/
.canvas-opening {
  position: relative;
  width: min(82vw, 680px);
  aspect-ratio: 1024 / 724;
  overflow: hidden;
  background-color: #f7f4ee;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.22);
}

/* 作品アイテム */
.artwork-item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s ease;
  transform: scale(1.01);
}

.artwork-item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ホームページ・ビルダーのソース編集用メタ情報 */
.artwork-meta {
  display: none;
}

/* キャンバス表面の光の反射（グレア） */
.canvas-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.0) 45%, rgba(0, 0, 0, 0.05) 100%);
  mix-blend-mode: soft-light;
  transition: background 0.15s ease-out;
}

/* --- 3. 絵画の下のキャプション（美術館のネームプレート風） --- */
.placard-box {
  text-align: center;
  max-width: 580px;
  margin-bottom: 18px;
  animation: fadeUpSlow 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.placard-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.placard-artist {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.placard-detail {
  font-size: 0.78rem;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}

.placard-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- 4. 作品切り替えボタン（複数枚あるときのみ表示） --- */
.gallery-Controls {
  display: flex;
  align-items: center;
  gap: 18px;
  animation: fadeUpSlow 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.nav-arrow-btn,
.roman-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-arrow-btn:hover,
.roman-btn:hover {
  color: var(--text-main);
}

.roman-indicators {
  display: flex;
  gap: 8px;
}

.roman-btn {
  position: relative;
}

.roman-btn.is-active {
  color: var(--accent-gold);
  font-weight: 600;
}

.roman-btn.is-active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 1px;
  background-color: var(--accent-gold);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 16px 24px 24px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
}

/* ==========================================================================
   拡大鑑賞モーダル（ライトボックス）
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox-modal[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f5f2eb;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  padding: 6px 16px;
  margin-bottom: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-image-wrapper {
  max-height: 75vh;
  display: flex;
  justify-content: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(184, 155, 103, 0.4);
}

.lightbox-img {
  max-width: 88vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  text-align: center;
  color: #eae5dc;
  margin-top: 14px;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.lightbox-artist {
  font-size: 0.9rem;
  font-style: italic;
  color: #c8ad78;
}

.lightbox-detail {
  font-size: 0.78rem;
  color: #a59d93;
  margin-top: 2px;
}

/* ==========================================================================
   アニメーション・レスポンシブ対応
   ========================================================================== */
@keyframes fadeUpSlow {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 20px;
  }
  .brand-link {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
  }
  .canvas-opening {
    width: 86vw;
  }
}
