/* =====================================================
   theme.css — サイト全体の共通スタイル
   各ページの <head> に <link rel="stylesheet" href="./css/theme.css"> で読み込む
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Cinzel:wght@400;500&display=swap');

/* ─── CSS変数 ─────────────────────────────────────── */
:root {
  --gold:        #c8a96e;
  --gold-light:  #e2c99a;
  --gold-dim:    rgba(200, 169, 110, 0.6);
  --gold-faint:  rgba(200, 169, 110, 0.18);
  --cream:       #ffffff;
  --cream-dim:   rgba(255, 255, 255, 0.7);
  --dark:        #0c0a08;

  --font-display: 'Cinzel', serif;
  --font-body:    'Cormorant Garamond', serif;
}

/* ─── ベースリセット ──────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  cursor: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  /* padding は各ページの <style> で上書き */
}

/* ─── 共通アニメーション ─────────────────────────── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes subtle-drift {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, 0.5%); }
}

/* ─── カスタムカーソル ───────────────────────────── */
.cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 0.5px solid var(--gold-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

body.hovering .cursor      { width: 10px; height: 10px; }
body.hovering .cursor-ring { width: 56px; height: 56px; border-color: var(--gold); }

/* ─── コーナー装飾 ───────────────────────────────── */
.corner {
  position: fixed;
  width: 24px;
  height: 24px;
  z-index: 4;
  opacity: 0;
  animation: fade-in 2s ease 1.8s forwards;
}

.corner-tl { top: 32px;    left: 32px;  border-top: 0.5px solid var(--gold-dim); border-left:  0.5px solid var(--gold-dim); }
.corner-tr { top: 32px;    right: 32px; border-top: 0.5px solid var(--gold-dim); border-right: 0.5px solid var(--gold-dim); }
.corner-bl { bottom: 32px; left: 32px;  border-bottom: 0.5px solid var(--gold-dim); border-left:  0.5px solid var(--gold-dim); }
.corner-br { bottom: 32px; right: 32px; border-bottom: 0.5px solid var(--gold-dim); border-right: 0.5px solid var(--gold-dim); }

/* ─── ルーラー線 ─────────────────────────────────── */
.rule-top,
.rule-bottom {
  position: fixed;
  left: 40px;
  right: 40px;
  height: 0.5px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  z-index: 3;
  opacity: 0;
  animation: fade-in 2s ease 1.5s forwards;
}
.rule-top    { top: 40px; }
.rule-bottom { bottom: 40px; }

/* ─── フッター ───────────────────────────────────── */
.site-footer {
  position: relative;
  text-align: center;
  margin-top: 48px;
  padding-bottom: 40px;
  z-index: 10;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0;
  animation: fade-in 2s ease 2s forwards;
}

@media (max-width: 480px) {
  .site-footer {
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.8;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--gold-light);
}

/* ─── eyebrow テキスト ───────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--gold-faint);
  text-transform: uppercase;
}

/* =====================================================
   共通レイアウト（内部ページ共通）
   ===================================================== */

/* ─── 背景レイヤー ───────────────────────────────── */
.bg-layer {
  position: fixed; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  animation: subtle-drift 30s ease-in-out infinite alternate;
}

.bg-overlay {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(12,10,8,0.2) 0%, rgba(12,10,8,0.75) 100%),
    linear-gradient(to bottom, rgba(12,10,8,0.5) 0%, rgba(12,10,8,0.1) 40%, rgba(12,10,8,0.6) 100%);
  z-index: 1;
}

.vignette {
  position: fixed; inset: 0; z-index: 2;
  box-shadow: inset 0 0 180px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* ─── コンテンツボックス ─────────────────────────── */
.content {
  position: relative; z-index: 10;
  width: min(640px, 90vw);
  padding-top: 14vh;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 48px;
  background: rgba(12, 10, 8, 0.55);
  border: 0.5px solid var(--gold-dim);
}

/* ─── ページタイトル ─────────────────────────────── */
.page-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  animation: rise-in 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}

.page-title-ja {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--cream);
  margin-bottom: 4px;
  opacity: 0;
  animation: rise-in 1.2s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}

.title-rule {
  width: 100%;
  height: 0.5px;
  background: linear-gradient(to right, var(--gold-dim), transparent);
  margin: 20px 0 40px;
  opacity: 0;
  animation: rise-in 1.2s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

/* ─── セクション ─────────────────────────────────── */
.section {
  margin-bottom: 48px;
  opacity: 0;
  animation: rise-in 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.section:nth-child(1) { animation-delay: 0.6s; }
.section:nth-child(2) { animation-delay: 0.7s; }
.section:nth-child(3) { animation-delay: 0.8s; }
.section:nth-child(4) { animation-delay: 0.9s; }
.section:nth-child(5) { animation-delay: 1.0s; }
.section:nth-child(6) { animation-delay: 1.1s; }
.section:nth-child(7) { animation-delay: 1.2s; }

.section-title {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--gold-dim);
}

.section p,
.section li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
}

/* ─── セクション内リスト ─────────────────────────── */
.section ul {
  list-style: none;
  padding: 0;
}
.section ul li {
  padding-left: 1.2em;
  position: relative;
}
.section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 12px;
}

/* ─── セクション内リンク ─────────────────────────── */
.section a,
.tool-group a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold-dim);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.section a:hover,
.tool-group a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ─── フィード（新着・記事一覧共通） ─────────────── */
#feed {
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 14px;
}

#feed dl.new {
  border-bottom: 0.5px solid var(--gold-dim);
  padding: 12px 0;
}

#feed dl.new dt {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

#feed dl.new dt span {
  color: var(--gold-dim);
}

#feed dl.new dd {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  line-height: 1.6;
}

#feed dl.new dd a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

#feed dl.new dd a:hover {
  color: var(--gold-light);
}

/* ─── お問い合わせ・インラインボタンリンク ────────── */
.contact-link {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ─── SNSリンク ──────────────────────────────────── */
.sns-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.sns-list a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.sns-list a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ─── ジャンルタグ ───────────────────────────────── */
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.genre-tag {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 0.5px solid var(--gold-dim);
  padding: 4px 14px;
}

/* ─── 名前ブロック ───────────────────────────────── */
.name-block {
  margin-bottom: 6px;
}
.name-ja {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.name-en {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-left: 12px;
}
.name-location {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-top: 4px;
}

/* ─── ツールグループ ─────────────────────────────── */
.tool-group {
  margin-bottom: 20px;
}
.tool-group-title {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  margin-bottom: 6px;
}
.tool-group p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream-dim);
}
