/* styles.css */

@charset "UTF-8";

/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

header p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* ナビゲーション */
nav {
  background: #34495e;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
  font-weight: 500;
  display: block;
}

nav a:hover,
nav a.active {
  background: #3498db;
  transform: translateY(-2px);
}

/* メインコンテンツ */
main {
  padding: 3rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* ヒーローセクション */
.hero {
  background: white;
  padding: 4rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  text-align: center;
}

.hero h2 {
  color: #2c3e50;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

.btn-small {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-small:hover {
  background: #2980b9;
}

/* 統計セクション */
.stats {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  color: #3498db;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  color: #666;
  font-weight: 500;
  font-size: 1.1rem;
}

/* 講座グリッド */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.course-card {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-card h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.course-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-card li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #555;
}

.course-card li:last-child {
  border-bottom: none;
}

.course-card li:before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  margin-right: 0.8rem;
}

/* 講座詳細セクション */
.course-detail-section {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.course-detail-section h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.course-detail-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.course-detail-section ul {
  list-style: none;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.course-detail-section li {
  padding: 0.7rem 0;
  font-size: 1rem;
  color: #555;
  position: relative;
}

.course-detail-section li:before {
  content: "▶";
  color: #3498db;
  font-size: 0.8rem;
  position: absolute;
  left: -1rem;
  top: 0.9rem;
}

/* 基礎知識セクション */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.concept-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #3498db;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.concept-card h4 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.concept-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* 学習資料セクション */
.resource-list-section {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-item {
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f9fa;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.resource-item h4 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.resource-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* コンテンツセクション (About, Privacy, Terms) */
.content-section {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.content-section h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.content-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.content-section ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.content-section li {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* 免責事項 */
.disclaimer {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.disclaimer h3 {
  color: #856404;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
}

.disclaimer p {
  color: #856404;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* フッター */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.2rem;
  }
  .course-grid,
  .concept-grid,
  .resource-list,
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }
  header p {
    font-size: 1rem;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav li {
    margin: 0.25rem 0;
    width: 100%;
    text-align: center;
  }
  nav a {
    padding: 0.6rem 1rem;
  }
  .hero {
    padding: 3rem 1.5rem;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  .page-header h2 {
    font-size: 2rem;
  }
  .page-header p {
    font-size: 1rem;
  }
  .course-card,
  .concept-card,
  .resource-item,
  .course-detail-section,
  .content-section {
    padding: 1.5rem;
  }
  .course-card h3,
  .concept-card h4,
  .resource-item h4,
  .course-detail-section h3,
  .content-section h3 {
    font-size: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .stat-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  header h1 {
    font-size: 1.8rem;
  }
  header p {
    font-size: 0.9rem;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .course-grid,
  .concept-grid,
  .resource-list,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .course-card h3,
  .concept-card h4,
  .resource-item h4,
  .course-detail-section h3,
  .content-section h3 {
    font-size: 1.3rem;
  }
  .disclaimer h3 {
    font-size: 1.1rem;
  }
  .disclaimer p {
    font-size: 0.85rem;
  }
}

/* お問い合わせフォーム */
.contact-form {
  background: #f8f9fa;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: auto;
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.form-note {
  font-size: 0.9rem;
  color: #777;
  margin-top: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  .contact-form .btn {
    padding: 0.7rem 2rem;
    font-size: 1rem;
  }
}
