/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: '游明朝', 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
  overflow-x: hidden;
  font-weight: 500;
}

/* 赤いテクスチャ背景 */
.hero-background {
  background-image: url('https://page.gensparksite.com/v1/base64_upload/6746ba2bb29768558d7b12f1469fa361');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(139, 0, 0, 0.3);
}

/* 赤いテクスチャ背景のバリエーション */
.gradient-bg {
  background-image: url('https://page.gensparksite.com/v1/base64_upload/6746ba2bb29768558d7b12f1469fa361');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
}

.gradient-bg > * {
  position: relative;
  z-index: 1;
}

.gradient-bg-reverse {
  background-image: url('https://page.gensparksite.com/v1/base64_upload/6746ba2bb29768558d7b12f1469fa361');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.gradient-bg-reverse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 0;
}

.gradient-bg-reverse > * {
  position: relative;
  z-index: 1;
}

/* ヒーローセクション */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 40px;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  color: #ff8c00;
  line-height: 1.6;
}

.hero-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  margin: 40px auto;
}

/* CTAボタン - プロフェッショナルデザイン */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #8b0000 0%, #6b0000 100%);
  color: white;
  padding: 16px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin: 8px;
  letter-spacing: 0.05em;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4);
  background: linear-gradient(135deg, #6b0000 0%, #4b0000 100%);
}

.cta-button-secondary {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e2f6a 100%);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.cta-button-secondary:hover {
  background: linear-gradient(135deg, #1e2f6a 0%, #1e244a 100%);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

/* セクション共通スタイル */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 60px;
  color: #1e3a8a;
  position: relative;
  padding-bottom: 20px;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8b0000, #1e3a8a);
  border-radius: 2px;
}

/* 困りごとカードセクション - プロフェッショナル */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.problem-card {
  background: white;
  padding: 40px 32px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #8b0000;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.problem-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.problem-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

/* 目的カード */
.purpose-cards {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.purpose-card {
  background: white;
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #1e3a8a;
}

.purpose-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.purpose-card-description {
  color: #555;
  line-height: 1.8;
}

/* プログラムカード */
.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.program-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.program-card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e2f6a 100%);
  color: white;
  padding: 28px 24px;
  text-align: center;
}

.program-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.program-card-body {
  padding: 28px 24px;
}

.program-card-description {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.program-card-features {
  list-style: none;
  padding: 0;
}

.program-card-features li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: #333;
  line-height: 1.7;
}

.program-card-features li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: #8b0000;
  font-size: 0.8rem;
}

/* 訪問大学マップセクション */
.university-map-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.map-section-title {
  font-size: 1.5rem;
  color: #8b0000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.map-region {
  text-align: center;
}

.region-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid;
  letter-spacing: 0.05em;
}

.west-region .region-title {
  color: #1e3a8a;
  border-bottom-color: #1e3a8a;
}

.east-region .region-title {
  color: #8b0000;
  border-bottom-color: #8b0000;
}

.university-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.university-item {
  font-size: 0.95rem;
  color: #333;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 4px;
  border-left: 4px solid;
  text-align: left;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.west-region .university-item {
  border-left-color: #1e3a8a;
}

.east-region .university-item {
  border-left-color: #8b0000;
}

.university-item:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}



.map-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: #8b0000;
  font-weight: 600;
}

/* 大学カード */
.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.university-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.university-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.university-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.university-content {
  padding: 28px;
}

.university-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.university-rank {
  font-size: 0.9rem;
  color: #8b0000;
  font-weight: 600;
  margin-bottom: 12px;
}

.university-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

/* 大学画像ギャラリー */
.university-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.university-image-card {
  position: relative;
}

.university-image-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* 日程表 */
.schedule-table {
  width: 100%;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 40px;
  border: 1px solid #e5e7eb;
}

.schedule-day {
  border-bottom: 1px solid #e5e7eb;
  padding: 28px 24px;
  transition: background 0.2s ease;
}

.schedule-day:hover {
  background: #f9fafb;
}

.schedule-day:last-child {
  border-bottom: none;
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.schedule-date {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 10px 20px;
  border-radius: 4px;
  min-width: 140px;
  letter-spacing: 0.03em;
}

.schedule-location {
  font-size: 0.95rem;
  color: #8b0000;
  font-weight: 600;
}

.schedule-activities {
  padding-left: 160px;
}

.schedule-activity {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.schedule-activity::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #8b0000;
  font-weight: 600;
}

/* 参加者の声 */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  border-left: 4px solid #8b0000;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.testimonial-school {
  font-size: 0.9rem;
  color: #666;
}

/* 動画セクション */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.video-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 デフォルト */
  background: #000;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 縦型動画専用（9:16アスペクト比） */
.video-vertical {
  padding-bottom: 177.78%; /* 9:16 アスペクト比 */
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .video-vertical {
    max-width: 100%;
    padding-bottom: 177.78%;
  }
}

.video-info {
  padding: 24px;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.video-duration {
  font-size: 0.9rem;
  color: #8b0000;
  font-weight: 600;
}

/* 募集要項テーブル */
.info-table {
  width: 100%;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 40px;
  border: 1px solid #e5e7eb;
}

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  background: #f9fafb;
  padding: 24px;
  font-weight: 600;
  color: #1e3a8a;
  border-right: 1px solid #e5e7eb;
  letter-spacing: 0.03em;
}

.info-value {
  padding: 24px;
  color: #333;
  line-height: 1.8;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e2f6a 100%);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* CTAセクション */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #8b0000 100%);
  color: white;
}

.cta-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
}

.cta-section-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 12px auto;
  }
  
  .problem-cards,
  .program-cards,
  .university-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .info-row {
    grid-template-columns: 1fr;
  }
  
  .info-label {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .schedule-activities {
    padding-left: 20px;
  }
  
  /* 大学リストのモバイル対応 */
  .university-map-section {
    padding: 24px 16px;
  }
  
  .map-section-title {
    font-size: 1.3rem;
    margin-bottom: 32px;
  }
  
  .map-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .region-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }
  
  .university-item {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  
  .map-note {
    font-size: 0.85rem;
    margin-top: 24px;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* ヘッダー固定 */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* 区切り線 */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 60px 0;
}

/* 情報ボックス */
.info-box {
  padding: 24px;
  background: #fffbeb;
  border-radius: 4px;
  border-left: 4px solid #f59e0b;
  margin-top: 32px;
}

.info-box-text {
  font-size: 0.95rem;
  color: #92400e;
  line-height: 1.8;
}
