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


body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

img{
  width:100%;
}

/* CSS変数の定義 */
:root {
  --primary-color: green;
  --secondary-color: green;
  --primary-gradient: linear-gradient(135deg, lightgreen, green);
  --secondary-gradient: linear-gradient(135deg, lightgreen, green);
  --border-radius: 10px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 4px 15px rgba(0, 0, 0, 0.15);
  --section-spacing: 3rem;
}

/* ヘッダー */
header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
}

.nav-menu li {
  border-right: 1px solid #e0e0e0;
}

.nav-menu li:last-child {
  border-right: none;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 400;
  padding: 0.75rem 1.5rem;
  display: block;
  transition: all 0.3s;
  font-size: 0.95rem;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* メインビジュアル */
.hero-visual {
  background: #9cc869;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.hero-visual img {
  width: 100%;
  max-width: 120vh;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* セクション共通 */
.section {
  margin: var(--section-spacing) 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: calc(50% - 30px);
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-wrap{
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

/* 新着情報 */


.news-list {
  list-style: none;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  background: var(--secondary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  min-width: 100px;
  text-align: center;
}

.news-title {
  flex: 1;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.news-badge {
  background: #ff6b6b;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* 大会概要 */


/* タブナビゲーション */
.tab-navigation {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: #f0f4ff;
}

.tab-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.entry-button:focus,
.entry-button2:focus,
.apply-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* タブコンテンツ */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

/* 詳細情報レイアウト */
.detail-grid {
  display: grid;
  gap: 1.5rem;
}

.detail-item {
  background: #f8f9ff;
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.detail-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-content {
  color: #555;
  line-height: 1.7;
}

.detail-content strong {
  color: #555;
  font-weight: 600;
}

/* エントリーの流れ */


.entry-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.flow-step {
  width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  position: relative;
  transition: all 0.3s;
}

.flow-step:focus,
.flow-step:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  /* transformを避けてアウトラインのみでフォーカス表示 */
}

.step-icon-circle {
  background: var(--primary-gradient);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.step-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.step-timing {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
}

.flow-arrow {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.flow-step:last-child + .flow-arrow {
  display: none;
}

.entry-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.summary-card {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-top: 3px solid #1745c9;
}

.summary-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summary-title {
  font-weight: bold;
  color: #1745c9;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.summary-text {
  font-size: 0.95rem;
  color: #666;
}

.entry-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, lightgreen, green);
  border-radius: 10px;
  color: white;
}

.entry-button {
  background: white;
  color: #1745c9;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}
.entry-button2 {
  background: white;
  color: #1745c9;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}
.is-disabled{
  background: #777 !important;
  color: #fff !important;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}


.organizer-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.organizer-table th{
  background: green;
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  width: 15%;
}

.organizer-table td{
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  line-height: 1.6;
  color: #555;
}

.organizer-table tr:last-child td{
  border-bottom: none;
}

/* 組織名のスタイリング */
.org-name {
  display: block;
  margin-bottom: 0.3rem;
  color: #333;
}

.org-name:last-child {
  margin-bottom: 0;
}

/* 審査基準の可視化 */
.scoring-visual {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.score-item {
  flex: 1;
  text-align: center;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 2px solid #f0f0f0;
}

.score-value {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  display: block;
}

.score-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* 重要情報のハイライト */
.highlight-box {
  background: linear-gradient(135deg, lightgreen, green);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
}
.highlight-title{
  font-size: 2rem;
  letter-spacing: .8rem;
}

.highlight-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.highlight-box p {
  opacity: 0.9;
  line-height: 1.6;
}

/* プレイベント */
.event-section {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-overview {
  text-align: center;
  margin-bottom: 2rem;
}

.event-overview h3 {
  font-size: 1.8rem;
  margin: 1rem 0;
  color: #333;
}

.event-overview p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  text-align: left;
}

.event-info-card,
.event-apply-card {
  background: #f8f9ff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid green;
}

.event-info-card h4,
.event-apply-card h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}

.workshop-section {
  margin-bottom: 2rem;
}

.workshop-section h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}
.workshop-section p {
  text-align: left;
}

.apply-button {
  background: var(--secondary-gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.event-date-badge {
  background: var(--secondary-gradient);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.event-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 700;
  line-height: 1.3;
}

.event-card p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.event-details {
  background: #f8f9ff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.event-details h4 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8ecf7;
  display: flex;
  align-items: center;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-icon {
  display: none;
}

/* ワークショップ構造 */
.workshop-list {
  margin-top: 1rem;
}

.workshop-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9ff;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

.workshop-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.workshop-content {
  flex: 1;
  margin: 0 auto;
}

.workshop-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.workshop-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.event-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.skill-tag {
  background: linear-gradient(135deg, #e8ecf7, #f0f4ff);
  color: var(--secondary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid #e8ecf7;
  transition: all 0.3s ease;
}

.message-card {
  background: linear-gradient(135deg, #f8f9ff, #ffffff);
  border: 2px solid #e8ecf7;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--box-shadow);
}

.professor-info {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e8ecf7;
  gap: 1.5rem;
}

.professor-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.professor-details {
  flex: 1;
}

.professor-title {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.professor-name {
  font-size: 1.3rem;
  color: #333;
  font-weight: 700;
}

/* .message-text {
            text-align: center;
        } */

.message-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin: 0;
  font-style: italic;
  position: relative;
}

/* .message-text p::before {
  content: '"';
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  left: -1rem;
  top: -0.5rem;
  font-family: serif;
} */

/* .message-text p::after {
  content: '"';
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  font-family: serif;
} */

/* カルーセルナビ */
.carousel-section {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-item {
  width: 120px;
  height: 80px;
  background: #f0f7ff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.carousel-item.active {
  background: #1745c9;
  color: white;
  border-color: #1745c9;
}

/* スポンサーバナー */
.sponsor-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.sponsor-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #666;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sponsor-logo {
  width: 120px;
  height: 60px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8rem;
}

.sponsor-logo-link {
  display: block;
  transition: transform 0.3s ease;
}

.sponsor-logo-image {
  width: auto;
  height: 75px;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
}

/* 漫画セクション */


.manga-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.manga-panel {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  max-width: 300px;
  margin: 0 auto;
}

.manga-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* SARTRAS セクション */
.sartras-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.sartras-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.sartras-text {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

/* フッター */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-info {
  margin-top: 1.5rem;
  font-size: 1rem;
  opacity: 0.8;
}

/* 過去大会 */
.archive-title {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #666;
}

/* ボタンコンテナ */
.past-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* 各ボタンの共通スタイル */
.past-btn {
  flex: 1 1 calc(25% - 1rem);
  text-align: center;
  padding: 0.75em 1em;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}

/* 4色のボタンカラー */
.btn-color1 { background-color: #00653d; } /* 赤 */
.btn-color2 { background-color: #e8649d; } /* 青 */
.btn-color3 { background-color: #00e5e5; } /* 緑 */
.btn-color4 { background-color: #5874b8; } /* オレンジ */

/* ホバー時の明るさ */
.past-btn:hover {
  filter: brightness(1.1);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .past-btn {
    flex: 1 1 100%;
  }
  .pc-space{
    width: 20px;
    margin-left: 20px;
  }
  .tab-button {
  padding: .1rem .2rem;
}
.entry-button{
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.entry-button2{
  padding: 0.8rem 1rem;
   font-size: 1rem;
}
.highlight-box b{
  font-size: 1.4rem;
  letter-spacing: 0cm;
}
}

/* タブレット対応 */
@media (min-width: 768px){
  .header-content {
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .tab-navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .tab-button {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }

  .entry-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .manga-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
  }

  .manga-panel {
    max-width: 250px;
  }

  .workshop-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .workshop-image {
    width: 100%;
    height: 500px;
    margin-bottom: 1rem;
  }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 90px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: left;
    transition: 0.3s;
    padding: 0;
    box-shadow: var(--box-shadow);
  }

  .nav-menu li {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .news-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .news-date {
    min-width: 80px;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-badge {
    margin-left: auto;
  }

  .event-overview h3 {
    font-size: 1.4rem;
  }

  .event-overview p {
    font-size: 1rem;
  }

  .event-info-card,
  .event-apply-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .event-info-card h4,
  .event-apply-card h4 {
    font-size: 1rem;
  }

  .workshop-section h4 {
    font-size: 1.1rem;
  }

  .carousel-nav {
    flex-direction: column;
    align-items: center;
  }

  .carousel-item {
    width: 200px;
  }

  .manga-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .workshop-item {
    flex-direction: column;
    text-align: center;
    padding: 0.8rem;
    margin-bottom: 1rem;
  }

  .workshop-image {
    width: 100%;
    height: 300px;
    margin-bottom: 0.8rem;
  }

  .workshop-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .workshop-description {
    font-size: 1rem;
    text-align: left;
  }

  .entry-flow {
    gap: 0.8rem;
    margin: 1.5rem 0;
  }

  .flow-step {
    width: 100%;
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .step-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-right: 0;
    margin-bottom: 0.8rem;
  }

  .step-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .step-description {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .step-timing {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  .flow-arrow {
    font-size: 1.2rem;
    margin: 0.3rem 0;
  }

  .sponsor-logos {
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.image-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* 画像間の余白 */
  justify-content: center;
  margin-top: 1.5rem;
}

.image-wrapper img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .image-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

/* アニメーション無効化 - パフォーマンス優先 */
.fade-in {
  opacity: 1;
}

.fade-in.active {
  opacity: 1;
}

/* パフォーマンス最適化 */
img {
  image-rendering: optimizeQuality;
}

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




/* phase2追加 */
.contestants-panel {
  margin-top: 1rem;
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.contestants-controls {
  display:flex;
  gap:0.5rem;
  margin-bottom:1rem;
  align-items:center;
  padding: 0 1.5rem;
}
.contestants-controls .contestants-search { flex:1; padding:0.5rem; border-radius:6px; border:1px solid #ccc; }
.contestants-controls .contestants-filter-grade { padding:0.45rem; border-radius:6px; border:1px solid #ccc; background:#fff; }

.contestants-title{
  /* background: green; */
  /* margin-bottom: 2rem; */
  color: #333;
  padding: 1rem 1.5rem;
  padding-left: 2.5rem;
  position: relative;
}

.contestants-title::before{
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.5rem;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.contestants-root{
  padding: 1.5rem;
  padding-top: 0rem;
}

/* Card grid */
.contestants-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr)); /* 最大3列 */
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
/* タブレット幅では2列 */
@media (max-width: 960px) {
  .contestants-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/* スマホでは1列 */
@media (max-width: 520px) {
  .contestants-list {
    grid-template-columns: 1fr;
  }
}
.contestant-card {
  display:flex;
  gap:0.9rem;
  padding:1rem;
  border-radius:10px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  box-shadow:0 2px 6px rgba(20,30,60,0.06);
  border:1px solid #eef3f8;
  align-items:flex-start;
  height:100%;
  box-sizing:border-box;
  transition: transform .18s ease, box-shadow .18s ease;
  outline: none;
}
.contestant-card:hover,
.contestant-card:focus-within {
  transform: translateY(-4px);
  box-shadow:0 8px 20px rgba(20,30,60,0.08);
}

/* 番号 */
.card-number {
  font-weight:700;
  color:#1745c9;
  min-width:44px;
  min-height:44px;
  text-align:center;
  background:#f1f6ff;
  padding:0.45rem 0.6rem;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.95rem;
  flex-shrink:0;
}
/* 本体レイアウト */
.card-body {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:0.4rem;
  padding-top: 0.6rem;
}
/* ヘッダー（氏名 + バッジ） */
.card-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:0.6rem;
}
.card-name {
  margin:0;
  font-size:1.06rem;
  font-weight:700;
  color:#1b2430;
}
.card-grade-badge {
  background:#eef3ff;
  color:#1745c9;
  padding:0.22rem 0.5rem;
  border-radius:999px;
  font-weight:700;
  font-size:0.8rem;
  white-space:nowrap;
  flex-shrink:0;
}
/* 学校はサブテキストのスタイルを活かす */
.card-school {
  color:#61666b;
  font-size:0.8rem;
  line-height:1.3;
}
/* メタ情報（必要ならアイコン等を追加） */
.card-meta {
  display:flex;
  gap:0.6rem;
  font-size:0.86rem;
  color:#6a6f74;
  flex-wrap:wrap;
}
/* 作品タイトル（強調、行数制限） */
.card-title {
  margin-top:0.6rem;
  font-weight:700;
  color:#0f1724;
  font-size:0.995rem;
  line-height:1.35;
}

/* ラベル/値が必要な場合の小さな調整 */
.card-field {
  display:flex;
  gap:0.5rem;
  align-items:center;
  margin:0;
  flex-wrap:wrap;
}
.card-label {
  font-size:0.78rem;
  color:#8b8f94;
  min-width:56px;
}
.card-value {
  font-size:0.96rem;
  color:#222;
}
.card-field.card-work {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.25rem;
  margin-top:1rem;
}
.card-field.card-work .card-label {
  font-size:0.82rem;
  color:#7a7a7a;
  line-height:1;
}
.card-field.card-work .card-value {
  font-size:0.98rem;
  color:#0f1724;
  line-height:1.3;
  margin-top: 0.2rem;
  /* タイトルは既存の省略ルールを継承（必要に応じ変更可） */
}

/* 小画面調整 — カードを縦積みにして読みやすく */
@media (max-width: 520px) {
  .contestant-card {
    flex-direction:column;
    gap:0.65rem;
    padding:0.9rem;
  }
  .card-number {
    align-self:flex-start;
  }
  .card-header { flex-direction:row; align-items:center; gap:0.5rem; }
  .card-title { -webkit-line-clamp:3; } /* モバイルでは行数を少し増やす */
}

/* 既存の小画面ルールに合わせる */
@media (max-width: 768px) {
  .contestants-controls { flex-direction:column; align-items:stretch; }
  .card-number { min-width:40px; }
}


/* schedule */
.schedule {
  margin-top: 3rem;
  width: 100%;
  background: #fff;
}
.schedule-image{
  width: 100%;
}










/* result */


/* ===== 審査結果セクション ===== */

/* 結果発表画像 */
.results-announcement {
  margin-bottom: 3rem;
}

.results-announcement img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* サブセクションタイトル */
.subsection-title {
  font-size: 1.5rem;
  color: #333;
  margin: 3rem 0 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  text-align: center;
}

/* 受賞作品リスト */
.awards-list {
  max-width: 1000px;
  margin: 0 auto;
}

/* 賞セクション共通 */
.award-section {
  margin-bottom: 3rem;
}

.award-section h2 {
  font-size: 1.6rem;
  border-bottom: 3px solid #f0f0f0;
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* 賞ごとの色分け */
.grand-prize h2 {
  color: #DAA520;
  border-color: #DAA520;
}

/* カード基本スタイル */
.award-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 最優秀賞カード */
.award-card.featured {
  background: #FFFBEA;
  border: 2px solid #FFD700;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(218, 165, 32, 0.15);
}

.award-card.featured .work-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

/* 単独カード(優秀賞など) */
.award-card.single {
  max-width: 600px;
  margin: 0 auto;
}

.award-card.single:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ファイナリストカード */
.award-card.finalist {
  border: 1px solid #e0e0e0;
  padding: 1.2rem;
}

.award-card.finalist:hover {
  background-color: #f8fbff;
  border-color: #c0d0e0;
}

/* 作品タイトル */
.work-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  line-height: 1.4;
}

/* 受賞者情報 */
.winner-name {
  font-size: 1.05rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.winner-details {
  line-height: 1.8;
}

.winner-details p {
  margin: 0.5rem 0;
  color: #555;
}

.winner-details-compact {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
}

.kana {
  font-size: 0.85em;
  color: #888;
}

/* 受賞内容エリア */
.award-content {
  margin-bottom: 1.5rem;
}

/* 賞ごとの左ボーダー */
.excellence .award-content {
  border-left: 4px solid #007bff;
  padding-left: 1rem;
}

.good .award-content {
  border-left: 4px solid #28a745;
  padding-left: 1rem;
}

.idea .award-content {
  border-left: 4px solid #fd7e14;
  padding-left: 1rem;
}

.special .award-content {
  border-left: 4px solid #6f42c1;
  padding-left: 1rem;
}

/* 2カラムレイアウト */
.award-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* グランプライズ用グリッド */
.award-grid-grandprize {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* マルチカードグリッド */
.multi-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* 動画サムネイル */
.video-thumb {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail--grandprize {
  max-width: 450px;
  margin: 0;
}

.video-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 再生アイコン */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  max-width: 70px;
  min-width: 50px;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
  pointer-events: none;
}

.video-thumb:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

/* ファイナリスト賞セクション */
.finalist-section {
  margin-top: 3rem;
}


/* ローディングインジケーター */
.loading-indicator {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid #f0f0f0;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-indicator p {
  color: #666;
  font-size: 1rem;
}

/* モーダル */
.modal {
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.modal__container {
  background: #000;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal__header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 1rem;
  background: none;
  border-bottom: none;
}

.modal__close {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1) rotate(90deg);
}

.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__content {
  padding: 0;
}

.modal__content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* スライダー */
.gallery-slider {
  max-width: 1200px;
  margin: 2rem auto 0;
}

.swiper {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #fff;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}
/* モバイル用のカスタマイズ */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8); /* 背景を少し透明に */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* シャドウを軽く */
  }

  /* モバイルではhoverを無効化 */
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    transform: none;
    box-shadow: none;
  }

  .swiper-button-next:active,
  .swiper-button-prev:active {
    transform: scale(1.1); /* タップ時に拡大 */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2); /* タップ時のシャドウ */
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px; /* アイコンサイズを小さく */
    color: #555; /* アイコンの色を薄めに */
  }
}

.swiper-pagination {
  bottom: 15px !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #fff;
  width: 32px;
  border-radius: 5px;
}

.swiper-thumbs {
  height: 100px;
  margin-top: 15px;
}

.swiper-thumbs .swiper-slide {
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
}

.swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--primary-color);
}

.swiper-thumbs .swiper-slide:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* レスポンシブ対応 */
@media (max-width: 968px) {
  .award-wrap {
    grid-template-columns: 1fr;
  }

  .award-grid-grandprize {
    flex-direction: column;
  }

  .thumbnail--grandprize {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .subsection-title {
    font-size: 1.3rem;
  }

  .award-section{
    margin-bottom: 0rem;
  }
  .award-section.grand-prize{
    margin-bottom: 2rem;
  }

  .award-section h2 {
    font-size: 1.4rem;
  }

  .award-card.featured {
    padding: 1.5rem;
  }

  .award-card.featured .work-title {
    font-size: 1.5rem;
  }

  .work-title {
    font-size: 1.2rem;
  }

  .multi-card-grid {
    grid-template-columns: 1fr;
  }

  .finalist-pagination {
    flex-direction: row;
    gap: 0.5rem;
  }

  .finalist-page-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  .swiper {
    height: 400px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }

  .swiper-thumbs {
    height: 70px;
  }

  .swiper-pagination {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 8px 16px;
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .modal__container {
    width: 95%;
  }

  .modal__content iframe {
    height: auto;
  }

  .modal__close {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .award-card.featured .work-title {
    font-size: 1.3rem;
  }

  .work-title {
    font-size: 1.1rem;
  }

  .winner-name {
    font-size: 1rem;
  }

  .winner-details-compact {
    font-size: 0.9rem;
  }
}