@charset "UTF-8";

/* ============================================================
   CSS Variables — ふぁいん！ルートトップ
   (top-style.css / style.css と同一トークン)
   ============================================================ */
:root {
  --bg:           #ffffff;
  --bg-subtle:    #fafaf8;
  --bg-tint:      #f5f3ee;
  --border:       #e8e5de;
  --border-light: #f0ede6;

  --text:         #1a1a18;
  --text-body:    #3a3a36;
  --text-muted:   #7a7870;
  --text-subtle:  #b0ada4;

  --gold:         #c8980a;
  --gold-light:   #e8b820;
  --gold-pale:    #fdf4d8;
  --gold-border:  #e8d48a;

  --link:         #2a5fa8;

  --font-serif:   'Noto Serif JP', 'Noto Sans JP', serif;
  --font-sans:    'Noto Sans JP', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-xs:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.09);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);

  --transition: 0.22s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-subtle);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-tint); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease;
}

#loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.loader__logo {
  width: clamp(100px, 25vw, 180px);
  height: auto;
  animation: loaderPulse 1.8s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.96); }
}

.loader__bar-wrap {
  width: clamp(100px, 25vw, 180px);
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 2px;
  animation: loaderProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderProgress {
  0%   { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

/* ============================================================
   ナビゲーション (統一)
   ============================================================ */
.menu {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}

.menu01, .menu02, .menu03, .menu04 {
  display: inline-block;
  padding: 16px 20px 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: color var(--transition), border-color var(--transition);
  background: transparent;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-top: 2px;
}

.menu01:hover, .menu02:hover, .menu03:hover, .menu04:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.menu01 a, .menu02 a, .menu03 a, .menu04 a {
  text-decoration: none;
  color: inherit;
}

/* ロゴ */
.rogo01 {
  position: fixed;
  top: 8px;
  left: 20px;
  z-index: 201;
  width: 130px;
  height: auto;
}

/* ============================================================
   ハンバーガーメニュー (mobile) — 右側
   ============================================================ */
header { padding: 0; }
#nav-drawer { display: none; }
.nav-unshown { display: none; }

.header-logo-menu {
  position: fixed;
  z-index: 9999;
  top: 14px;
  right: 16px;
  left: auto;
  display: flex;
}

.san {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

#nav-open {
  display: inline-block;
  position: relative;
  width: 20px; height: 16px;
  vertical-align: middle;
}

#nav-open span,
#nav-open span::before,
#nav-open span::after {
  position: absolute;
  height: 2px; width: 20px;
  border-radius: 1px;
  background: var(--text-muted);
  display: block; content: '';
  cursor: pointer;
  transition: all 0.25s;
}
#nav-open span::before { bottom: -6px; }
#nav-open span::after  { bottom: -12px; }

#nav-close {
  display: none;
  position: fixed; z-index: 99;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26,26,24,0.4); opacity: 0;
  transition: 0.3s ease-in-out;
}

#nav-content {
  overflow: auto;
  position: fixed; top: 0; right: 0; left: auto;
  z-index: 9999;
  width: 80%; max-width: 280px; height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transition: 0.3s ease-in-out;
  transform: translateX(105%);
  padding: 56px 0 30px;
}

#nav-content > p {
  text-align: center;
  color: var(--gold); font-weight: 700; font-size: 11px;
  letter-spacing: 0.2em;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--border-light);
  margin: 0 0 8px;
}

#nav-content a { display: block; text-decoration: none; color: var(--text-body); transition: color var(--transition), background var(--transition); }
#nav-content a p { margin: 0; padding: 13px 24px; border-bottom: 1px solid var(--border-light); text-align: left; font-weight: 500; font-size: 14px; color: var(--text-body); }
#nav-content a:hover p { color: var(--gold); background: var(--gold-pale); }

#nav-input:checked ~ #nav-close  { display: block; opacity: 1; }
#nav-input:checked ~ #nav-content { transform: translateX(0%); box-shadow: -6px 0 24px rgba(0,0,0,0.12); }

/* ============================================================
   HERO — 動画背景
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
}

/* フォールバック背景画像（動画が読み込まれるまで or 再生不可時） */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* 動画 */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* グラデーションオーバーレイ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10,8,4,0.5)  0%,
      rgba(10,8,4,0.15) 45%,
      rgba(10,8,4,0.55) 100%);
}

/* テキスト */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  animation: heroFadeUp 1.2s 0.3s both;
}

@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.65);
  margin: 0 0 14px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.hero__title-mark {
  color: var(--gold-light);
  display: block;
  font-size: 0.72em;
}

.hero__sub {
  font-size: clamp(11px, 1.8vw, 14px);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.18em;
  margin: 14px 0 0;
}

/* ---- スクロールヒント ---- */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: hintFade 1s 1.8s both;
}

@keyframes hintFade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.scroll-hint__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
}

.scroll-hint__arrow { width: 20px; }

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(9px); opacity: 0.2; }
  100% { transform: translateY(0);   opacity: 1; }
}

.scroll-hint__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.chev { display: block; opacity: 0; }
.chev--1 { animation: chevFade 2s 0.0s ease-in-out infinite; }
.chev--2 { animation: chevFade 2s 0.2s ease-in-out infinite; }
.chev--3 { animation: chevFade 2s 0.4s ease-in-out infinite; }

@keyframes chevFade {
  0%   { opacity: 0;   transform: translateY(-4px); }
  40%  { opacity: 0.9; transform: translateY(0); }
  80%  { opacity: 0;   transform: translateY(4px); }
  100% { opacity: 0;   transform: translateY(4px); }
}

/* ============================================================
   SECTION 共通
   ============================================================ */
.section {
  padding: 72px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.section--tint { background: var(--bg-tint); }

.section__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  margin-bottom: 44px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.section__title-accent { color: var(--gold); }

.section__title-en {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  margin-top: 6px;
}

.section__rule {
  width: 40px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 2px;
  margin: 14px auto 20px;
}

/* ============================================================
   NEWS LIST
   ============================================================ */
.news-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 700px;
  border-top: 1px solid var(--border);
}

.news-list__item a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  text-decoration: none;
  transition: background var(--transition);
}

.news-list__item a:hover {
  background: var(--gold-pale);
}

.news-list__date {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  min-width: 90px;
}

.news-list__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
  transition: color var(--transition);
}

.news-list__item a:hover .news-list__text {
  color: var(--gold);
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-border);
}

.card__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: var(--bg-tint);
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__img { transform: scale(1.04); }

.card__body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.card__place {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-subtle);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  color: var(--text-subtle);
  font-size: 11px;
}

/* ============================================================
   Responsive — Mobile (≤ 829px)
   ============================================================ */
@media screen and (max-width: 829px) {

  #nav-drawer { display: block; }

  .rogo01 {
    position: fixed;
    top: 10px;
    left: 16px;
    z-index: 202;
    width: 20%;
    min-width: 80px;
  }

  .menu { display: none; }

  .section { padding: 52px 16px; }

  .card-grid,
  .card-grid--3 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .card__title { font-size: 12px; }

  .news-list__item a { gap: 12px; flex-wrap: wrap; }
  .news-list__date { min-width: auto; }

  .hero__title { font-size: 44px; }
}

/* ============================================================
   Responsive — Desktop (≥ 830px)
   ============================================================ */
@media screen and (min-width: 830px) {
  #nav-drawer { display: none; }
}
