/* --- 共通レイアウト・コンポーネント --- */

/* --- ヘッダー (ナビゲーション) --- */
.main-header {
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.Logo {
  text-decoration: none;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
}

/* --- 共通ボタン --- */
/* サインアップや主要なアクションに使用 */
.btn-signup {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

/* --- 共通カードスタイル --- */
.card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-top: 8px solid #cbd5e1;
}

/* --- 共通見出し --- */
.subtitle {
  text-align: center;
  margin-bottom: 3rem;
}

.subtitle h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  position: relative;
  display: inline-block;
}

.subtitle h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- フッター --- */
.main-footer {
  background-color: #374151;
  color: #e5e7eb;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* --- スマートフォン対応 (共通部分) --- */
@media (max-width: 768px) {
  /* ナビゲーション */
  .nav-links a:not(.btn-signup) {
    display: none;
  }

  /* カードの余白調整 */
  .card {
    padding: 1.5rem;
  }

  /* 見出しサイズ調整 */
  .subtitle h2 {
    font-size: 1.5rem;
    padding: 0 1.5rem;
  }

  /* フッター */
  .main-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* ボタンの幅調整 */
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
}