/* ベーススタイル */
:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-light: #93c5fd;
  --color-secondary: #f3f4f6;
  --color-secondary-dark: #e5e7eb;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-white: #fff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 0.375rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

/* ヘッダー */
.header {
  background-color: var(--color-white);
  color: #3b82f6;;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 50px;
  height: 70px;
  border-radius: 0.25rem;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;  
}

.nav-menu a {
  transition: all 0.3s;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a:hover {
  color: var(--color-primary-dark);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease-in-out;
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-button span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  border-radius: 3px;
}

.giving-section {
  background-color: #fffbeb;
  color: #92400e;
  padding: 2rem 1rem;
  text-align: center;
  border: 2px solid #fcd34d;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.giving-note {
  font-size: 1.3rem;
  margin-top: 1rem;
}

/* ヒーローセクション */
.hero {
  background-color: #eff6ff;
  padding: 4rem 0;
  text-align: center;
}

.hero h2 {
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ボタン */
.button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.primary {
  background-color: var(--color-primary);
  color: white;
}

.primary:hover {
  background-color: var(--color-primary-dark);
}

.secondary {
  background-color: white;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.secondary:hover {
  background-color: var(--color-secondary);
}

/* セクション共通 */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: #eff6ff;
}

/* ギャラリー */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.gallery-info {
  padding: 1rem;
}

.gallery-info h3 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.gallery-creator {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.modal-image-container {
  height: 300px;
  position: relative;
}

#modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info {
  padding: 1.5rem;
}

.modal-info h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

#modal-creator {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* 活動紹介 */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.activity-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.activity-icon {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.icon {
  width: 4rem;
  height: 4rem;
}

.activity-card h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ユニオン紹介 */
.union-content {
  max-width: 800px;
  margin: 0 auto;
}

.union-info {
  background-color: #eff6ff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.university-card {
  background-color: white;
  border: 1px solid #dbeafe;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.university-card:hover {
  box-shadow: var(--shadow);
}

.university-icon {
  width: 3rem;
  height: 3rem;
  background-color: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-primary);
}

.university-info h4 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.university-department {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* 協賛について */
.sponsorship-content {
  max-width: 800px;
  margin: 0 auto;
}

.sponsorship-info {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.merit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.merit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-success);
  flex-shrink: 0;
}

.check-icon-sm {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-success);
  flex-shrink: 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.plan-card.bronze {
  border-top: 4px solid #b45309;
}

.plan-card.silver {
  border-top: 4px solid var(--color-primary);
  transform: scale(1.05);
}

.plan-card.gold {
  border-top: 4px solid #d97706;
}

.plan-card.diamond {
  border-top: 4px solid #d97706;
}

.plan-popular {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 0.25rem;
  font-size: 0.875rem;
  font-weight: bold;
}

.plan-content {
  padding: 1.5rem;
}

.plan-price {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.plan-price span {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.plan-features {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.document-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.document-card:hover {
  box-shadow: var(--shadow-lg);
}

.document-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pdf-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #ef4444;
}

.document-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.document-description {
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.3s;
}

.download-link:hover {
  color: var(--color-primary-dark);
}

.download-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
}

/* お問い合わせフォーム */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background-color: #eff6ff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.required {
  color: var(--color-error);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  background-color: white;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.path {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

.form-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.form-success {
  background-color: #eff6ff;
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius);
}

.success-icon {
  width: 4rem;
  height: 4rem;
  color: var(--color-success);
  margin: 0 auto 1rem;
}

.hidden {
  display: none;
}

/* フッター */
.footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 1.5rem;
    box-shadow: var(--shadow);
  }

  .nav-menu.active a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-secondary);
  }

  .nav-menu.active a:last-child {
    border-bottom: none;
  }}

  .plan-card.silver {
    transform: none;
  }

  .plan-grid {
    gap: 1rem;
  }


@media (max-width: 576px) {
  h2 {
    font-size: 1.5rem;
  }

  .button-group {
    flex-direction: column;
  }

  .modal-image-container {
    height: 200px;
  }
}

/* --- 静大祭セクション --- */
.fes-section { padding: 48px 16px; background: linear-gradient(180deg,#fff,#f9fafb); color:#111; }
.fes-section .container { max-width:1100px; margin:0 auto; }
.fes-header h2 { font-size:1.8rem; margin:0 0 8px; }
.fes-header .lead { margin:0 0 6px; color:#333; font-weight:500; }
.fes-header .when { color:#b33; font-weight:600; margin-top:6px; }

.fes-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:20px; margin-top:22px; align-items:start; }
@media (max-width:800px) {
  .fes-grid { grid-template-columns: 1fr; }
}

.fes-item { background:#fff; border:1px solid #e6e6e6; padding:12px; border-radius:8px; box-shadow:0 1px 2px rgba(16,24,40,0.03); }
.fes-item h3 { margin:10px 0 6px; font-size:1.05rem; }
.fes-item p { margin:0; color:#444; line-height:1.5; font-size:0.95rem; }

/* 画像ボタン */
.img-btn { display:block; width:100%; padding:0; border:0; background:transparent; cursor:pointer; text-align:left; }
.img-btn img { width:100%; height:180px; object-fit:cover; border-radius:6px; display:block; }
.gacha-imgs { display:flex; gap:8px; }
.gacha-imgs .img-btn { flex:1; }

/* 映画サムネイル */
.movie-placeholder { width:100%; height:180px; display:flex; align-items:center; justify-content:center; border-radius:6px; background:#eee; }

/* フッター小さな注釈 */
.fes-footer .note { margin-top:12px; font-size:0.85rem; color:#666; }

/* モーダル (簡易) */
.fes-modal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); z-index:1200; }
.fes-modal .modal-inner { max-width:90%; max-height:90%; }
.fes-modal img { display:block; max-width:100%; max-height:80vh; border-radius:6px; }
.fes-modal .close-btn { position:absolute; top:18px; right:18px; background:#fff; border-radius:50%; width:36px; height:36px; border:0; cursor:pointer; }