/*
Theme Name: 或ル／画廊
Theme URI: https://arugarou.com
Description: 或ル／画廊のオリジナルテーマ
Version: 1.0
Author: 或ル／画廊
*/

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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-border: #d4d4d4;
  --color-border-light: #e8e8e8;
  --font-display: 'Shippori Mincho', serif;
  --font-body: 'Noto Serif JP', serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-text);
  text-decoration: none;
}

/* ─── Desktop Nav ─── */
.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* ─── Hamburger (mobile only) ─── */
.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.nav-overlay nav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.nav-overlay nav a:hover,
.nav-overlay nav a.active {
  color: var(--color-text);
}

/* ─── Main ─── */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  padding-top: 100px;
}

.page-content {
  min-height: calc(100vh - 100px);
  padding-top: 60px;
  padding-bottom: 120px;
}

/* ─── Section Heading ─── */
.section-heading {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

/* ─── Home: Exhibition ─── */
.home-exhibition {
  margin-bottom: 100px;
}

.home-exhibition-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.home-exhibition-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  margin-bottom: 32px;
  overflow: hidden;
}

.home-exhibition-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-exhibition-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.home-exhibition-title a {
  color: var(--color-text);
  text-decoration: none;
}

.home-exhibition-title a:hover {
  color: var(--color-text-secondary);
}

.home-exhibition-artist {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.home-exhibition-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ─── Home: Section ─── */
.home-section {
  padding-top: 60px;
  border-top: 1px solid var(--color-border-light);
  margin-bottom: 60px;
}

.home-concept {
  font-size: 0.85rem;
  line-height: 2;
}

.home-access-brief {
  font-size: 0.85rem;
  line-height: 2;
}

/* ─── Exhibition ─── */
.exhibition-current {
  margin-bottom: 100px;
}

.exhibition-upcoming {
  margin-bottom: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--color-border-light);
}

.exhibition-item {
  margin-bottom: 80px;
}

.exhibition-item:last-child {
  margin-bottom: 0;
}

.exhibition-item-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #f0f0f0;
  margin-bottom: 24px;
  overflow: hidden;
}

.exhibition-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.exhibition-item-title a {
  color: var(--color-text);
  text-decoration: none;
}

.exhibition-item-title a:hover {
  color: var(--color-text-secondary);
}

.exhibition-item-artist {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.exhibition-item-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.exhibition-item-description {
  font-size: 0.85rem;
  line-height: 2;
  max-width: 640px;
}

.exhibition-past {
  padding-top: 60px;
  border-top: 1px solid var(--color-border-light);
}

/* ─── Exhibition List ─── */
.past-list {
  list-style: none;
}

.past-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
  align-items: baseline;
  font-size: 0.85rem;
}

.past-list .past-date {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
}

.past-list .past-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.past-list .past-title a {
  color: var(--color-text);
  text-decoration: none;
}

.past-list .past-title a:hover {
  color: var(--color-text-secondary);
}

.past-list .past-artist {
  color: var(--color-text-secondary);
  text-align: right;
}

/* ─── Detail page ─── */
.detail-back {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 48px;
}

.detail-back:hover {
  color: var(--color-text);
}

.detail-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #f0f0f0;
  margin-bottom: 36px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.detail-artist {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.detail-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

.detail-statement {
  font-size: 0.85rem;
  line-height: 2.2;
  max-width: 640px;
}

.detail-statement p {
  margin-bottom: 1.2em;
}

.detail-statement p:last-child {
  margin-bottom: 0;
}

/* ─── Access ─── */
.access-map-large {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 48px;
  overflow: hidden;
}

.access-map-large iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.access-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.access-details .label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  margin-top: 24px;
}

.access-details .label:first-child {
  margin-top: 0;
}

.access-details p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* ─── Contact ─── */
.contact-intro {
  font-size: 0.85rem;
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 2;
}

.contact-info {
  margin-bottom: 60px;
}

.contact-info .label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  margin-top: 24px;
}

.contact-info .label:first-child {
  margin-top: 0;
}

.contact-info p {
  font-size: 0.85rem;
}

.contact-info a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.contact-info a:hover {
  border-bottom-color: var(--color-text);
}

.contact-form-section {
  max-width: 480px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.contact-form-section .section-heading {
  margin-bottom: 32px;
}

/* Contact Form 7 styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: transparent;
  outline: none;
  margin-bottom: 24px;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-bottom-color: var(--color-text);
}

.wpcf7 textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.8;
}

.wpcf7 input[type="submit"] {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 12px 40px;
  cursor: pointer;
  margin-top: 8px;
}

.wpcf7 input[type="submit"]:hover {
  border-color: var(--color-text);
}

.wpcf7 p {
  margin: 0;
}

/* ─── Footer ─── */
footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

footer p {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
}

/* ─── Responsive ─── */
@media (max-width: 680px) {
  .header-inner {
    padding: 16px 24px;
    align-items: center;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  main {
    padding: 0 24px;
    padding-top: 80px;
  }

  .home-access-content,
  .access-details {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .past-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .past-list .past-artist {
    text-align: left;
  }

  footer {
    padding: 40px 24px;
  }
}
