/* ベーススタイル */
body {
  position: relative;
  background-color: #f9f9f7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, var(--primary-color) 10%, transparent 10%, transparent 90%, var(--primary-color) 90%, var(--primary-color)),
    linear-gradient(135deg, var(--primary-color) 10%, transparent 10%, transparent 90%, var(--primary-color) 90%, var(--primary-color));
  background-size: 20px 20px;
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
  background-size: 18px 18px;
}

#container {
  position: relative;
  z-index: 1;
}

:root {
  --primary-color: #80b918;
  --secondary-color: #f9c74f;
  --accent-color: #90be6d;
  --dark-color: #1b263b;
  --light-color: #f8f9fa;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Noto Sans JP', '游ゴシック Medium', YuGothic, YuGothicM,
    'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 1.1rem;
}

p {
  color: #333;
}

/* ヘッダー - グラデーションとアニメーション */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
  background-size: cover;
  opacity: 0.5;
}

header h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background-color: white;
}

/* ナビゲーション - モダンなスタイル */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--dark-color);
  font-weight: 700;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

nav ul li a:hover::before {
  left: 100%;
}

/* メインコンテンツ - カードスタイル */
#contents {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* セクション - グラスモーフィズム効果 */
section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 活動計画画像スタイル */
.plan-image-container {
  text-align: center;
  margin: 2rem 0;
}

.plan-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.plan-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* 見出し装飾 */
h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
  border-left: 5px solid var(--secondary-color);
  padding-left: 0.8rem;
}

/* フレックスレイアウト - モダンなスタイル */
.flex {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 2rem 0;
}

.image {
  flex: 1;
  max-width: 100px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.image:hover {
  transform: scale(1.02);
}

.text {
  flex: 1;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
}

/* メンバーグリッド */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 4rem;
  justify-items: center;
  text-align: center;
  margin-top: 2rem;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.member:hover {
  transform: scale(1.05);
}

.member img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 0.5rem;
}

.member p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* 画像ギャラリー風スタイル */
img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

/* メンバーコンテナ */
.member-container {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.member-left {
  width: 100px;
  text-align: center;
  margin-right: 20px;
}

.member-left img {
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.member-left img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.member-right {
  flex: 1;
}

/* ボタン風リンク */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* タイムラインスタイル */
.timeline-container {
  margin: 40px auto;
  max-width: 900px;
  padding: 0 20px;
}

.timeline {
  position: relative;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

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

.timeline-period {
  position: absolute;
  left: -50px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 0 0 4px white, 0 3px 8px rgba(0,0,0,0.2);
}

.timeline-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.timeline-content ul {
  padding-left: 20px;
  margin: 0;
}

.timeline-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.timeline-content li:last-child {
  margin-bottom: 0;
}

/* 成果物紹介スタイル */
.products-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
}

.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.product-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-header {
  margin-bottom: 1rem;
}

.product-header h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  border-left: 5px solid var(--secondary-color);
  padding-left: 0.8rem;
}

.photo-date {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 1rem;
}

.photo-description {
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}

.product-photos {
  margin-bottom: 1.5rem;
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.photo-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.photo-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.photo-container:hover .product-photo {
  transform: scale(1.05);
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 活動記録セクションのスタイル */
#records {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent-color);
}

.records-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.records-content {
  padding: 20px;
}

.records-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  margin: 20px 0;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.records-link:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.link-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

.records-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
  header h1 {
    font-size: 2.2rem;
  }

  .flex {
    flex-direction: column;
  }

  .image,
  .text {
    width: 100%;
  }
  
  .photo-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .photo-container {
    height: 180px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  nav ul li a {
    display: block;
    width: 100%;
    text-align: center;
  }

  section {
    padding: 1.5rem;
  }

  h2 {
    font-size: 1.6rem;
  }
  
  .timeline {
    padding-left: 40px;
  }
  
  .timeline-period {
    left: -40px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 0.8rem;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .product-item {
    padding: 1.5rem;
  }
  
  .photo-container {
    height: 150px;
  }
  
  .product-header h3 {
    font-size: 1.3rem;
  }
  
  #records {
    padding: 1.5rem;
  }
  
  .records-link {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  #contents {
    padding: 0 1rem;
  }

  section {
    padding: 1.2rem;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline {
    padding-left: 30px;
  }
  
  .timeline-period {
    left: -30px;
  }
  
  .product-item {
    padding: 1rem;
  }
  
  .photo-container {
    height: 120px;
  }
  
  .product-header h3 {
    font-size: 1.2rem;
  }
}

.video-link-container {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(128, 185, 24, 0.1), rgba(249, 199, 79, 0.1));
  border-radius: 15px;
  border: 2px dashed var(--primary-color);
}

.video-link-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-left: none;
  padding-left: 0;
}

.video-link-description {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.video-link {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  gap: 0.8rem;
}

.video-link:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.video-link-icon {
  font-size: 1.5rem;
}

/* レスポンシブ対応 - 追加 */
@media (max-width: 768px) {
  .video-link-container {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .video-link-title {
    font-size: 1.5rem;
  }
  
  .video-link {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .video-link-container {
    margin-top: 1.5rem;
    padding: 1.2rem;
  }
  
  .video-link-title {
    font-size: 1.3rem;
  }
  
  .video-link-description {
    font-size: 1rem;
  }
  
  .video-link {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .video-link-icon {
    font-size: 1.2rem;
  }
}