* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ヘッダー・ナビゲーション（元のスタイルベース） */
.navbar {
  background: #40434e;
  color: #fff;
  padding: 10px 0 15px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-left: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-item {
  background-color: #fff;
  border-radius: 20px;
  padding: 0;
}

.nav-link {
  color: #f07;
  font-size: 18px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 20px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: #fff;
  background-color: #f07;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 10%;
  height: 2px;
  width: 0;
  background-color: #fff;
  transition: width 0.4s ease-out;
}

.nav-link:hover::after {
  width: 80%;
}

/* モバイルメニュー */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* メインビジュアル */
.main-visual {
  background: linear-gradient(135deg, #40434e 0%, #6b7280 100%);
  color: #fff;
  text-align: center;
  padding: 120px 20px 80px;
  margin-top: 70px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #fff;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f07;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

/* ボタン（元のスタイルベース） */
.btn {
  background-color: #0077cc;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: #f07;
  color: white;
}

.btn-primary:hover {
  background-color: #d06;
}

.btn-secondary {
  background-color: #40434e;
  color: white;
}

.btn-secondary:hover {
  background-color: #2a2d35;
}

.btn-white {
  background: white;
  color: #40434e;
}

.btn-white:hover {
  background: #f8f9fa;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: white;
  color: #40434e;
}

.btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

/* コンテンツセクション */
.content-section {
  padding: 60px 0;
  background: #f4f4f4;
  margin-bottom: 20px;
}

.content-section:nth-child(even) {
  background: #fff;
}

.bg-light {
  background-color: #f4f4f4;
}

.bg-primary {
  background: #f07;
  color: white;
}

.text-white {
  color: white;
}

.content-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #40434e;
  position: relative;
}

.content-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #f07;
  margin: 1rem auto;
  border-radius: 2px;
}

/* 開催概要 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.about-item:hover {
  transform: translateY(-5px);
  border-color: #f07;
}

.about-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #f07;
}

/* ニュース */
.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: white;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #f07;
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  min-width: 100px;
}

.news-category {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 1rem;
  background: #40434e;
  color: white;
}

.news-category.new {
  background: #f07;
  color: white;
}

.news-title {
  flex: 1;
  font-weight: 500;
}

/* タブ */
.schedule-tabs {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  display: flex;
  background: #40434e;
}

.tab-button {
  flex: 1;
  padding: 1rem;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
  background: #f07;
  color: white;
}

.tab-content {
  display: none;
  padding: 2rem;
  background: white;
}

.tab-content.active {
  display: block;
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
  border-bottom: none;
}

.time {
  font-weight: bold;
  color: #f07;
  min-width: 120px;
}

.event {
  flex: 1;
  font-size: 1.1rem;
}

/* カルーセル */
.speakers-carousel {
  max-width: 600px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #f07;
}

.carousel-container {
  position: relative;
  height: 400px;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.carousel-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-card {
  text-align: center;
  max-width: 300px;
}

.speaker-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 3px solid #f07;
}

.speaker-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #40434e;
}

.speaker-handle {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.speaker-handle::before {
  content: "🐦 ";
}

.speaker-title {
  color: #f07;
  font-weight: bold;
  margin-bottom: 1rem;
}

.speaker-bio {
  color: #666;
  line-height: 1.6;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f07;
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.carousel-btn:hover {
  background: #d06;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.carousel-dots {
  text-align: center;
  padding: 1.5rem;
  background: white;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #f07;
}

/* お問い合わせ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 2rem;
  color: #40434e;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #f07;
}

/* フォーム（元のスタイルベース） */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #40434e;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #f07;
}

.error-message {
  color: #f07;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

/* 参加登録セクション */
.join-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.join-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.join-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* アコーディオン */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 1.5rem 2rem;
  background: #40434e;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  font-weight: 500;
}

.accordion-header:hover {
  background: #2a2d35;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: #f07;
}

.accordion-content {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
}

.accordion-content.active {
  padding: 1.5rem 2rem;
  max-height: 200px;
}

/* フッター */
.footer {
  background: #f07;
  color: #fff;
  text-align: center;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ffccdd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #d06;
  padding-top: 1rem;
  text-align: center;
  color: #ffccdd;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid #f07;
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #40434e;
  color: white;
  border-radius: 8px 8px 0 0;
}

.modal-header h3 {
  margin: 0;
  color: white;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
  text-align: right;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #f07;
  transition: color 0.3s ease;
}

.close:hover {
  color: white;
}

/* 通知 */
.notification-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1500;
}

.notification {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: white;
  min-width: 300px;
  position: relative;
  animation: slideInRight 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification-success {
  background: #28a745;
}

.notification-error {
  background: #f07;
}

.notification-warning {
  background: #ffc107;
  color: #333;
}

.notification-info {
  background: #40434e;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.notification-close:hover {
  opacity: 1;
}

/* スクロールトップボタン */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #f07;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover {
  background: #d06;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: #40434e;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
    background: transparent;
  }

  .nav-link {
    background: #fff;
    margin: 0 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .hero-image img {
    max-width: 250px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .btn-large {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* ナビゲーションの改善 */
  .nav-logo {
    font-size: 1.2rem;
    margin-left: 5px;
  }

  .nav-container {
    padding: 0 15px;
  }

  /* コンテンツセクションの改善 */
  .content-section {
    padding: 40px 0;
  }

  .container {
    width: 95%;
    padding: 0 15px;
  }

  .content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  /* 開催概要グリッドの改善 */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-item {
    padding: 1.5rem;
  }

  /* ニュースアイテムの改善 */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.2rem;
  }

  .news-date {
    min-width: auto;
    font-size: 0.8rem;
  }

  .news-category {
    margin: 0;
  }

  /* タブボタンの改善 */
  .tab-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .tab-button {
    min-width: 60px;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }

  /* スケジュールアイテムの改善 */
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.8rem 0;
  }

  .time {
    min-width: auto;
    font-size: 0.9rem;
  }

  .event {
    font-size: 1rem;
  }

  /* カルーセルの改善 */
  .carousel-container {
    height: 350px;
  }

  .carousel-slide {
    padding: 1.5rem;
  }

  .speaker-card {
    max-width: 280px;
  }

  .speaker-card img {
    width: 120px;
    height: 120px;
  }

  .speaker-card h3 {
    font-size: 1.3rem;
  }

  .carousel-btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .prev {
    left: 5px;
  }

  .next {
    right: 5px;
  }

  /* お問い合わせフォームの改善 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-item {
    margin-bottom: 1.5rem;
  }

  /* アコーディオンの改善 */
  .accordion-header {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
  }

  .accordion-content.active {
    padding: 1.2rem 1.5rem;
  }

  /* フッターの改善 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  /* モーダルの改善 */
  .modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 85vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.2rem;
  }

  .modal-header h3 {
    font-size: 1.3rem;
  }

  /* 通知の改善 */
  .notification {
    min-width: 280px;
    margin-bottom: 0.8rem;
  }

  .notification-container {
    top: 80px;
    right: 10px;
    left: 10px;
  }
}

/* さらに小さなスマホ対応 */
@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
  }

  .hero-image img {
    max-width: 200px;
  }

  .about-item {
    padding: 1.2rem;
  }

  .about-item h3 {
    font-size: 1.1rem;
  }

  .news-item {
    padding: 1rem;
  }

  .carousel-container {
    height: 320px;
  }

  .speaker-card img {
    width: 100px;
    height: 100px;
  }

  .speaker-card h3 {
    font-size: 1.2rem;
  }

  .speaker-bio {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .btn-large {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* 横向きスマホ対応 */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .main-visual {
    padding: 80px 15px 40px;
    min-height: 40vh;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-image img {
    max-width: 200px;
  }
}

@media screen and (max-width: 768px) {
  .main-visual {
    padding: 100px 15px 60px;
    min-height: 50vh;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-image {
    order: -1;
    margin-top: 0;
    margin-bottom: 1rem;
  }
}
