/* DJURGARDEN — gallery site
   colors: accent #ff5757 / text #232323 / paper #ffffff            */

:root {
  --accent: #ff5757;
  --ink: #232323;
  --muted: #7a7a7a;
  --rule: #ececec;
  --paper: #ffffff;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  font-feature-settings: "palt" 1;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  padding: 44px 0 30px;
  text-align: center;
}

.site-title {
  font-family: var(--serif);
  font-variant: small-caps;
  font-size: 26px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.site-nav {
  margin-top: 16px;
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--serif);
  font-variant: small-caps;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- home ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0 110px;
}

/* 赤い丸。文字(.circle-label)は固定で、赤い円(.circle-disc)だけが揺れます。
   揺れの大きさは @keyframes wiggle の px の数値、速さは .circle-disc の
   animation の秒数（今は 1.8s）で調整できます。 */
.circle-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 230px;
  text-decoration: none;
  transition: opacity .25s ease;
}

.circle-link:hover { opacity: .92; }

.circle-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: wiggle 1.8s ease-in-out infinite;
  will-change: transform;
}

.circle-label {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 17px;
  line-height: 1.5;
}

@keyframes wiggle {
  0%   { transform: translate(0, 0) scale(1); }
  14%  { transform: translate(-6px, 4px) scale(1.015); }
  28%  { transform: translate(6px, -4.5px) scale(0.985); }
  42%  { transform: translate(-4.5px, -6px) scale(1.012); }
  56%  { transform: translate(5px, 5.5px) scale(0.99); }
  70%  { transform: translate(-3px, -2.5px) scale(1.008); }
  85%  { transform: translate(2px, 2px) scale(0.996); }
  100% { transform: translate(0, 0) scale(1); }
}

/* OSで「視差効果を減らす」を有効にしている人には動かさない */
@media (prefers-reduced-motion: reduce) {
  .circle-disc { animation: none; }
}

.home-now {
  text-align: center;
  margin: -70px 0 90px;
}

.home-now .now-artist {
  font-size: 15px;
  letter-spacing: .05em;
  margin: 0 0 4px;
}

.home-now .now-title {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 500;
}

.home-now .now-period { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- section heading ---------- */

.section-label {
  font-family: var(--serif);
  font-variant: small-caps;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 34px;
}

.section-label.center { text-align: center; }

/* ---------- contact ---------- */

.contact { padding: 60px 0 20px; text-align: center; }

.map {
  max-width: 760px;
  margin: 0 auto 34px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
}

.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-lines { font-size: 14px; line-height: 2.2; }

.contact-lines a { color: var(--accent); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer {
  padding: 70px 0 56px;
  text-align: center;
  border-top: 1px solid var(--rule);
  margin-top: 80px;
}

.footer-name {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 18px;
  margin: 0 0 6px;
}

.footer-meta { font-size: 12.5px; color: var(--muted); line-height: 2; margin: 0; }

.footer-ig { display: inline-block; margin: 18px 0 6px; }
.footer-ig svg { width: 26px; height: 26px; }

.footer-mail { font-size: 12.5px; }
.footer-mail a { color: var(--muted); text-decoration: none; }
.footer-mail a:hover { color: var(--accent); }

/* ---------- exhibition list ---------- */

.year-block { margin-bottom: 64px; }

.year-label {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px 28px;
}

.ex-card { text-decoration: none; display: block; }

.ex-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
  margin-bottom: 14px;
}

.ex-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ex-card:hover .thumb img { transform: scale(1.04); }

.ex-card .c-artist { font-size: 13px; color: var(--muted); line-height: 1.7; }
.ex-card .c-title { font-size: 15px; line-height: 1.7; margin-top: 2px; }
.ex-card .c-period { font-size: 12px; color: var(--muted); margin-top: 6px; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: .14em;
  font-size: 12px;
  padding: 1px 10px;
  margin-bottom: 8px;
}

/* ---------- exhibition detail ---------- */

.ex-detail {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
}

.ex-visual { position: sticky; top: 30px; }

.ex-body h1 {
  font-size: 24px;
  line-height: 1.7;
  margin: 0 0 6px;
  font-weight: 500;
}

.ex-body .artist {
  font-size: 15px;
  color: var(--accent);
  margin: 0 0 18px;
  letter-spacing: .05em;
}

.ex-body .period {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.ex-body p { margin: 0 0 1.05em; font-size: 14px; }

.ex-body p.note { color: var(--muted); font-size: 13px; }

.ex-body p.credit {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  margin-top: 1.6em;
  margin-bottom: 2.2em;
}

.ex-body h2.sub {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
  margin: 2.2em 0 .8em;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: .16em;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
}

.back-link:hover { text-decoration: underline; }

/* ---------- about ---------- */

.about-body { max-width: 720px; }
.about-body h2 {
  font-size: 16px;
  margin: 46px 0 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
}
.about-body p { margin: 0 0 1.2em; font-size: 14px; }
.about-body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.about-body li { font-size: 14px; margin-bottom: .2em; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .ex-detail { grid-template-columns: 1fr; gap: 32px; }
  .ex-visual { position: static; max-width: 460px; }
  .site-title { font-size: 20px; letter-spacing: .16em; }
  .hero { padding: 60px 0 80px; }
  .circle { width: 190px; height: 190px; font-size: 15px; }
  .home-now { margin: -50px 0 70px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .ex-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 16px; }
  .site-nav { gap: 22px; }
}
