/* ---------- Base, Variables & Reset ---------- */
:root {
  --primary-color: #22982E;
  --primary-light: #1c9e3f;
  --primary-dark: #046829;
  --text-color: #333;
  --bg-color: #fff;
  --light-gray: #f2f2f2;
  --border-color: #ccc;
  --session-bg: #bdf5ae;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
}
a:hover {
  color: var(--primary-dark);
}

/* ---------- Common Layout & Typography ---------- */
.container {
  padding: 2rem 1.2rem;
  max-width: 1000px;
  margin: auto;
}

.section-heading {
  padding: 0.5em 0.7em;
  border-left: 5px solid #136104;
  background: #dedede;
  display: inline-block;
  font-size: 1.5rem; /* x-large相当 */
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-content {
  font-size: 1.125rem; /* large相当 */
}
.section-content p,
.section-content ul,
.section-content li {
  margin-bottom: 1rem;
}
.section-content p:last-child,
.section-content ul:last-child,
.section-content li:last-child {
  margin-bottom: 0;
}
.section-content ul {
  list-style: disc inside;
  margin-left: 0.8rem;
}

.highlight-underline {
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 2px;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.download-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 3.2rem;
  background: var(--primary-dark);
  color: var(--light-gray);
}
.site-header__left {
  display: flex;
  flex-direction: column;
}
.site-title {
  font-size: 1.75rem; /* xx-large相当 */
  font-weight: bold;
}
.site-subtitle {
  font-size: 1rem;
  margin-top: 0.2rem;
  opacity: 0.9;
}
.site-header__logo-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.site-header__logo-wrap img {
  height: 40px;
}

/* ---------- Hero Section ---------- */
#hero {
  position: relative;
  text-align: center;
  color: #fff;
  min-height: 480px;
  overflow: hidden;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 25s infinite;
}
.hero__slides img:nth-child(1) { animation-delay: 0s; }
.hero__slides img:nth-child(2) { animation-delay: 5s; }
.hero__slides img:nth-child(3) { animation-delay: 10s; }
.hero__slides img:nth-child(4) { animation-delay: 15s; }
.hero__slides img:nth-child(5) { animation-delay: 20s; }

@keyframes fade {
  0% { opacity: 0; }
  4% { opacity: 0.8; }
  20% { opacity: 0.8; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 1000px;
  width: 100%;
  padding: 5rem 1.2rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}
.hero__theme-label, .hero__date-place {
  font-size: 1.5rem;
  color: var(--light-gray);
}
.hero__theme-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #fff;
}
.hero__date-place {
  margin-bottom: 2rem;
}
.hero__cta {
  margin-top: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  border: none;
  transition: background 0.3s;
  cursor: pointer;
}
.btn:hover {
  background: var(--primary-light);
  color: #fff;
}

/* ---------- Venue Section ---------- */
.map-container {
  margin-top: 1rem;
}
.map-container iframe {
  border: 0;
  width: 100%;
  height: 300px;
}

/* ---------- Program Section ---------- */
#program h3 {
  margin-top: 1rem;
}
.program-day-title {
  margin-top: 2rem;
}
.program-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  min-width: 600px;
}
.program-table thead th {
  background: var(--primary-light);
  color: #fff;
  padding: 0.5rem;
  text-align: center;
}
.program-table td, .program-table th {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}
.program-table .program-table__time {
  width: 140px;
}
.program-table tbody tr {
  background-color: var(--bg-color);
}
.program-table tbody td:first-child {
  background-color: var(--session-bg);
}

/* ---------- PDF / Flyer Section ---------- */
.pdf-container {
  margin: 1rem 0;
}
.pdf-embed {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border-color);
}

/* ---------- Photo Viewer ---------- */
.photo-viewer {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.photo-viewer img {
  border: 1px solid var(--border-color);
}
.photo-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  padding: 0 8px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  border: none;
}
.photo-viewer__nav:hover {
  background: rgba(0, 0, 0, 0.6);
}
.photo-viewer__nav--left { left: 0; }
.photo-viewer__nav--right { right: 0; }

/* ---------- Contact Section ---------- */
#contact {
  text-align: left;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-address-img {
  display: inline-block;
  height: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 1rem;
  text-align: center;
  background: var(--light-gray);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

/* ---------- Responsive (Mobile) ---------- */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1rem;
  }
  .site-title { font-size: 1.3rem; }
  .site-subtitle { font-size: 0.9rem; margin-top: 0.1rem; }
  .site-header__logo-wrap img { height: 32px; }

  .container { padding: 1.5rem 1rem; }
  
  .hero__content { padding: 3.5rem 1rem; }
  .hero__theme-title { font-size: 2rem; }
  .hero__theme-label, .hero__date-place { font-size: 1.2rem; }
  .hero__cta {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    text-align: center;
  }
  .btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .section-heading { font-size: 1.2rem; }
  .photo-viewer__nav { font-size: 1.6rem; padding: 0 6px; }
}
