@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@700&display=swap');

:root {
  --gold: #F5A800;
  --gold-dark: #D48C00;
  --black: #111111;
  --gray-dark: #333333;
  --gray-mid: #666666;
  --gray-light: #999999;
  --gray-border: #E0E0E0;
  --gray-bg: #F5F5F5;
  --white: #FFFFFF;
  --font: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--black); line-height: 1.7; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 36px; height: 36px; object-fit: contain; }
.logo-text {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--black);
}
.logo-text span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--gray-dark); text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }
.nav-admin {
  background: var(--black); color: var(--white);
  padding: 8px 18px; border-radius: 4px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s;
}
.nav-admin:hover { background: var(--gray-dark); color: var(--white); }

/* ===== HERO ===== */
.hero {
  background: var(--black);
  padding: 72px 2rem 80px;
  text-align: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  font-family: var(--font);
}
.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section + .section { border-top: 1px solid var(--gray-border); }

.section-heading {
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--black);
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.section-heading a {
  font-size: 0.78rem; font-weight: 400;
  color: var(--gray-mid); letter-spacing: 0.04em;
  transition: color 0.2s;
}
.section-heading a:hover { color: var(--gold); }

/* ===== FEATURED EVENT ===== */
.featured-event {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
  margin-bottom: 2.5rem;
}
.featured-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--gray-bg);
  overflow: hidden; position: relative;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-bg);
  color: var(--gray-light); font-size: 2rem;
}
.featured-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.6rem;
}
.featured-title {
  font-size: 1.5rem; font-weight: 700;
  line-height: 1.4; margin-bottom: 0.75rem;
  color: var(--black);
}
.featured-meta {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 1rem;
}
.featured-meta-item {
  font-size: 0.83rem; color: var(--gray-mid);
  display: flex; align-items: center; gap: 6px;
}
.featured-desc {
  font-size: 0.88rem; color: var(--gray-dark);
  line-height: 1.75; margin-bottom: 1.25rem;
}
.btn-detail {
  display: inline-block;
  border: 1.5px solid var(--black);
  padding: 9px 24px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--black); transition: background 0.2s, color 0.2s;
}
.btn-detail:hover { background: var(--black); color: var(--white); }

/* ===== EVENT NEWS GRID ===== */
.event-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.event-card { cursor: pointer; }
.event-card-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--gray-bg);
  overflow: hidden; margin-bottom: 0.75rem;
  position: relative;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.event-card:hover .event-card-img img { transform: scale(1.04); }
.event-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-bg); color: var(--gray-light); font-size: 2rem;
}
.event-card-date {
  font-size: 0.72rem; color: var(--gold); font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 4px;
}
.event-card-title {
  font-size: 0.88rem; font-weight: 700; line-height: 1.45;
  color: var(--black); transition: color 0.2s;
}
.event-card:hover .event-card-title { color: var(--gold-dark); }
.event-card-place {
  font-size: 0.75rem; color: var(--gray-light); margin-top: 4px;
}

/* ===== CALENDAR ===== */
.calendar-section-inner {
  display: grid; grid-template-columns: 1fr 280px; gap: 3rem;
}
.calendar-months { display: flex; flex-direction: column; gap: 2.5rem; }
.month-label {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--black); margin-bottom: 1rem;
}
/* イベント名表示のため7列固定幅グリッドに変更 */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-head {
  text-align: center; font-size: 0.7rem; font-weight: 700;
  color: var(--gray-light); padding: 6px 0; letter-spacing: 0.04em;
}
/* cal-dayはaタグ・divタグ両方に対応 */
.cal-day {
  min-height: 52px;
  display: flex; flex-direction: column;
  font-size: 0.78rem; border-radius: 3px;
  cursor: default; position: relative;
  transition: background 0.15s;
  color: var(--gray-dark);
  padding: 2px;
  text-decoration: none;
}
.cal-day-inner {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
}
.cal-day-num {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  font-weight: 400;
}
.cal-day.empty { opacity: 0; pointer-events: none; }
.cal-day.today .cal-day-num {
  background: var(--black); color: var(--white);
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 1px auto 2px; font-weight: 700; font-size: 0.72rem;
}
.cal-day.has-event { cursor: pointer; }
.cal-day.has-event:hover { background: #FFF8E6; }
.cal-day.sun .cal-day-num { color: #CC0000; }
.cal-day.sat .cal-day-num { color: #0055CC; }
.cal-day.today .cal-day-num { color: var(--white) !important; }
/* イベント名ラベル */
.cal-event-name {
  display: block;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

/* Sidebar upcoming */
.sidebar-heading {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-light);
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 0.5rem; margin-bottom: 1rem;
}
.upcoming-list { display: flex; flex-direction: column; }
.upcoming-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-border);
  cursor: pointer; transition: opacity 0.2s;
}
.upcoming-item:hover { opacity: 0.7; }
.upcoming-item:last-child { border-bottom: none; }
.upcoming-date-box {
  flex-shrink: 0; text-align: center;
  width: 44px; padding: 4px 0;
  border: 1.5px solid var(--gray-border); border-radius: 3px;
}
.upcoming-date-m { font-size: 0.62rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }
.upcoming-date-d { font-size: 1.2rem; font-weight: 700; color: var(--black); line-height: 1; }
.upcoming-date-w { font-size: 0.62rem; color: var(--gray-light); }
.upcoming-info {}
.upcoming-title { font-size: 0.82rem; font-weight: 700; color: var(--black); line-height: 1.4; margin-bottom: 3px; }
.upcoming-place { font-size: 0.72rem; color: var(--gray-light); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000; align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); width: 100%; max-width: 560px;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: mIn 0.25s ease;
}
@keyframes mIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
.modal-img { width: 100%; height: 200px; background: var(--gray-bg); overflow: hidden; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--gray-light); }
.modal-body { padding: 1.75rem 2rem; }
.modal-label { font-size: 0.7rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.modal-title { font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin-bottom: 1rem; color: var(--black); }
.modal-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.modal-meta-item { font-size: 0.85rem; color: var(--gray-mid); display: flex; align-items: center; gap: 8px; }
.modal-desc { font-size: 0.88rem; color: var(--gray-dark); line-height: 1.75; border-top: 1px solid var(--gray-border); padding-top: 1rem; margin-bottom: 1.25rem; }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; }
.btn-modal-close {
  padding: 9px 22px; border: 1.5px solid var(--gray-border);
  font-size: 0.82rem; cursor: pointer; font-family: var(--font);
  color: var(--gray-mid); background: var(--white); transition: border-color 0.2s;
  border-radius: 2px;
}
.btn-modal-close:hover { border-color: var(--black); color: var(--black); }
.btn-modal-apply {
  padding: 9px 22px; background: var(--gold); border: none;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  font-family: var(--font); color: var(--black); transition: background 0.2s;
  border-radius: 2px;
}
.btn-modal-apply:hover { background: var(--gold-dark); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black); color: rgba(255,255,255,0.6);
  padding: 48px 2rem 28px;
  margin-top: 60px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; }
.footer-logo-text { font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-logo-text span { color: var(--gold); }
.footer-desc { font-size: 0.82rem; line-height: 1.75; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { font-size: 0.82rem; transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem;
}
.footer-catchcopy { color: var(--gold); }

/* ===== IMG FALLBACK ===== */
.img-fallback {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background: var(--gray-bg);
}
.img-fallback-wrap { width:100%; height:100%; }

/* イベントカードをaタグにした場合のリセット */
a.event-card { display:block; }
a.event-card:hover { text-decoration:none; }
a.upcoming-item { display:flex; color: inherit; }
a.upcoming-item:hover { text-decoration:none; }

/* カレンダーのaタグ日付 */
a.cal-day {
  display:flex; align-items:center; justify-content:center;
  color: var(--black);
}
a.cal-day:hover { text-decoration:none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-event { grid-template-columns: 1fr; gap: 1.5rem; }
  .calendar-section-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav .nav-link { display: none; }
  .hero { padding: 48px 1.5rem 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .container { padding: 0 1.25rem; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .event-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
