/* ========================================
   クラシノート株式会社 コーポレートサイト
   スタイルシート
   
   デザイン哲学：
   - 清潔感と信頼感を重視
   - 余白をしっかり取って読みやすく
   - 温かく誠実な雰囲気
   - シンプルで親しみやすい
   ======================================== */

/* ========================================
   リセット・基本スタイル
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
  font-size: 16px;
}

/* ========================================
   タイポグラフィ
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #003366;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #003366;
  display: inline-block;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: #003366;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* ========================================
   レイアウト基本
   ======================================== */

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

/* ========================================
   ヘッダー・ナビゲーション
   ======================================== */

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo:hover {
  opacity: 0.8;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  color: #333333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #003366;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #003366;
}

/* モバイルメニュー */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .header-content {
    padding: 1rem 1.5rem;
  }
}

/* ========================================
   ヒーロー・ファーストビュー
   ======================================== */

.hero {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555555;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

/* ========================================
   セクション共通
   ======================================== */

section {
  padding: 5rem 2rem;
}

section.alt-bg {
  background-color: #f9f9f9;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  display: inline-block;
  margin-bottom: 1rem;
  border-bottom: 2px solid #003366;
  padding-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666666;
  max-width: 600px;
  margin: 0 auto;
}

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

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

/* ========================================
   カード・グリッド
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 51, 102, 0.1);
  transform: translateY(-4px);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: #f0f5ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: #003366;
}

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

/* ========================================
   ボタン
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #003366;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background-color: #002244;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #00cc00;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #00aa00;
}

.btn-outline {
  background-color: transparent;
  color: #003366;
  border: 2px solid #003366;
}

.btn-outline:hover {
  background-color: #003366;
  color: #ffffff;
}

/* ========================================
   リスト
   ======================================== */

.feature-list {
  list-style: none;
  margin: 2rem 0;
}

.feature-list li {
  padding: 1rem 0;
  padding-left: 2rem;
  position: relative;
  color: #555555;
  line-height: 1.8;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00cc00;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ========================================
   テーブル
   ======================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: #ffffff;
}

th {
  background-color: #003366;
  color: #ffffff;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

tr:hover {
  background-color: #f9f9f9;
}

/* ========================================
   フッター
   ======================================== */

footer {
  background-color: #003366;
  color: #ffffff;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: #b0b0b0;
  font-size: 0.9rem;
}

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

  .footer-content {
    gap: 1.5rem;
  }
}

/* ========================================
   ユーティリティ
   ======================================== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.hidden {
  display: none;
}

.text-muted {
  color: #999999;
}

.text-small {
  font-size: 0.9rem;
}

/* ========================================
   アニメーション
   ======================================== */

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

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

  nav {
    gap: 0;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }
}

/* ========================================
   アクセシビリティ
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* フォーカス状態 */
button:focus,
a:focus,
input:focus {
  outline: 2px solid #003366;
  outline-offset: 2px;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #003366;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
