/* Lab2.jp - Research Note Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  height: 220px;
  background-image: url('header.png');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .site-intro h1 {    display: block;  }
  .hero {
  max-width: 720px;
  margin: 0 auto;
    height: 320px;
    background-position: center 40%;
  }
}

/* Site Intro */
.site-intro {
  text-align: center;
  padding: 20px 0 24px;
}

.site-intro h1 {
  display: none;
  font-size: 1.3rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.site-intro p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

/* Section */
.section {
  margin-bottom: 36px;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.section-content {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  margin-top: 8px;
}

/* Item List */
.item-list {
  list-style: none;
}

.item-list li {
  border-bottom: 1px solid #eee;
}

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

.item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 8px;
  transition: background 0.15s;
}

.item:hover {
  background: #f5f5f5;
}

/* Badge */
.badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 6px;
  background: #e8e8e8;
  color: #666;
  border-radius: 3px;
  margin-top: 2px;
}

/* Item Content */
.item-content {
  flex: 1;
  min-width: 0;
}

.item-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.item-desc {
  display: block;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.4;
}

.item-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.tag {
  font-size: 0.6rem;
  padding: 1px 5px;
  background: #f0f0f0;
  color: #888;
  border-radius: 3px;
}

/* GPT Cards (with images) */
.gpt-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.gpt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gpt-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gpt-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.gpt-body {
  flex: 1;
  min-width: 0;
}

.gpt-body .badge {
  margin-bottom: 2px;
}

.gpt-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.gpt-desc {
  display: block;
  font-size: 0.75rem;
  color: #777;
  margin-top: 2px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 0.75rem;
  color: #aaa;
  border-top: 1px solid #e0e0e0;
  margin-top: 20px;
}

/* Responsive */
@media screen and (min-width: 480px) {
  .gpt-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .gpt-card {
    flex: 1;
    min-width: 160px;
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }
  
  .gpt-img {
    width: 56px;
    height: 56px;
  }
  
  .gpt-body .badge {
    display: inline-block;
  }
}

@media screen and (min-width: 640px) {
  .container {
    padding: 24px;
  }
}
