/* 起業準備ウェブサイト - 共通スタイル */
:root {
  --primary-green: #2d7a2d;
  --secondary-green: #4a9b4a;
  --dark-green: #1a5f1a;
  --light-green: #e8f5e8;
  --accent-green: #357a35;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --background: #ffffff;
  --border-color: #ddd;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

/* ヘッダー */
header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo::before {
  content: "🚀";
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--light-green);
}

/* ボタン型ナビゲーション */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 800px;
  align-items: center;
}

.nav-btn {
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover,
.nav-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn.active {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ナビゲーションバー */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.nav-logo a {
  color: white;
  text-decoration: none;
}

.nav-logo::before {
  content: "🚀";
  margin-right: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  max-width: 800px;
  align-content: flex-start;
  row-gap: 0.5rem;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--light-green);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* レスポンシブデザイン */
@media screen and (max-width: 1200px) {
  .nav-menu {
    gap: 1rem;
    row-gap: 0.3rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .nav-buttons {
    gap: 0.4rem;
    max-width: 700px;
  }
  
  .nav-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 1000px) {
  .nav-menu {
    gap: 0.8rem;
    row-gap: 0.2rem;
  }
  
  .nav-link {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .nav-buttons {
    gap: 0.3rem;
    max-width: 600px;
  }
  
  .nav-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 900px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-green);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
    max-width: none;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }

  .nav-buttons {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-green);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
    max-width: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-buttons.active {
    left: 0;
  }

  .nav-btn {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin: 0.5rem 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* メインコンテンツ */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

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

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, var(--light-green) 0%, white 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
  margin-top: 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-green);
  color: white;
}

/* カード */
.card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.card h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* カード内のボタンセンタリング */
.card .btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* トップページのカードタイトル */
#about .card h3,
#categories .card h3,
#getting-started .card h3,
#industry-guide .card h3 {
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

#about .card h3 .icon,
#categories .card h3 .icon,
#getting-started .card h3 .icon,
#industry-guide .card h3 .icon {
  display: inline-flex;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* 業種別起業ガイドのリスト */
.industry-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
}

.industry-points li {
  padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.industry-points li:last-child {
  border-bottom: none;
}

/* グリッドレイアウト */
.grid {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 特徴セクション用グリッド */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* セクション */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-green);
  font-weight: 700;
}

.section-alt {
  background: var(--light-green);
}

/* アイコン */
.icon {
  font-size: 2rem;
  margin-right: 0.5rem;
  display: inline;
  vertical-align: middle;
}

/* パンくずリスト */
.breadcrumb {
  background: var(--light-green);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li::after {
  content: ">";
  margin-left: 0.5rem;
  color: var(--text-light);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--primary-green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* コンテンツエリア */
.content {
  background: white;
  padding: 3rem 0;
  min-height: 60vh;
}

.content h1 {
  color: var(--primary-green);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.content h2 {
  color: var(--dark-green);
  font-size: 2rem;
  margin: 2rem 0 1rem;
  border-bottom: 3px solid var(--accent-green);
  padding-bottom: 0.5rem;
}

.content h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.content ul, .content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* フッター */
footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2d3436 100%);
  color: white;
  padding: 3rem 0 1rem;
  text-align: center;
}

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

.footer-section h3 {
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  color: #999;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section h2 {
    font-size: 2rem;
  }
}

/* スマホ用の追加調整（優先度を高くするため最後に配置） */
@media (max-width: 768px) {
  /* コンテンツエリアの余白調整 */
  .content {
    padding: 20px 0 !important;
  }
  
  /* パンくずリストの余白調整 */
  .breadcrumb {
    padding: 10px 0 !important;
    margin-bottom: 10px !important;
  }
  
  /* ヒーローセクションの余白調整 */
  .hero {
    padding: 25px 0 !important;
  }
  
  /* アラートボックスの余白調整 */
  .alert {
    padding: 20px !important;
    margin: 20px 0 !important;
  }
  
  /* セクション間の余白調整 */
  .section-item {
    background: white !important;
    border: 1px solid var(--light-green) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    box-shadow: 0 1px 3px rgba(45, 122, 45, 0.1) !important;
  }
  
  .section-item::before {
    height: 2px !important;
  }
  
  .section-item h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }
  
  .section-item p {
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
  }
  
  /* 定義ボックスの余白調整 */
  .definition-box {
    padding: 20px !important;
    margin: 20px 0 !important;
  }
  
  .definition-box h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }
  
  /* タイプセクションの余白調整 */
  .type-section {
    padding: 20px !important;
    margin: 20px 0 !important;
  }
  
  /* カードとグリッドの設定はcards.cssに統一 */
  
  /* コンテナの左右余白を3%に */
  .container {
    padding: 0 3% !important;
    max-width: 100% !important;
  }
  
  /* セクションの余白を調整 */
  .section {
    padding: 25px 0 !important;
  }
  
  /* チェックリストの余白調整 */
  .checklist {
    padding: 0 !important;
  }
  
  .checklist li {
    padding: 5px 0 5px 20px !important;
  }
  
  /* h1, h2, h3の余白調整 */
  .content h1 {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }
  
  .content h2 {
    font-size: 1.4rem !important;
    margin: 25px 0 15px !important;
    padding-bottom: 10px !important;
  }
  
  .content h3 {
    font-size: 1.2rem !important;
    margin: 20px 0 15px !important;
  }
  
  .content p {
    margin-bottom: 15px !important;
  }
  
  .content ul, .content ol {
    margin: 15px 0 !important;
    padding-left: 25px !important;
  }
  
  .content li {
    margin-bottom: 10px !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .content h1 {
    font-size: 2rem;
  }
  
  .content h2 {
    font-size: 1.5rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ハイライト */
.highlight {
  background: linear-gradient(120deg, var(--accent-green) 0%, var(--accent-green) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: 0 100%;
  transition: background-size 0.25s ease-in;
  padding-bottom: 2px;
}

.highlight:hover {
  background-size: 100% 0.3em;
}

/* チェックリスト */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* アラート */
.alert {
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  border-left: 4px solid var(--primary-green);
}

.alert-info {
  background: var(--light-green);
  color: var(--dark-green);
}

.alert-warning {
  background: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

.alert-success {
  background: var(--light-green);
  border-left-color: var(--primary-green);
  color: var(--dark-green);
}

/* 項目セクション装飾 */
.section-item {
  background: white;
  border: 2px solid var(--light-green);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 3px 15px rgba(45, 122, 45, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.section-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(45, 122, 45, 0.15);
  border-color: var(--accent-green);
}

.section-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  border-radius: 12px 12px 0 0;
}

.section-item h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.section-item p {
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* 定義ボックス */
.definition-box {
  background: linear-gradient(135deg, var(--light-green) 0%, #f8fffe 100%);
  border: 2px solid var(--accent-green);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(45, 122, 45, 0.1);
}

.definition-box::before {
  content: "📖";
  position: absolute;
  top: -10px;
  left: 20px;
  background: white;
  padding: 5px 10px;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.definition-box h3 {
  color: var(--dark-green);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* タイプ分類ボックス */
.type-section {
  background: linear-gradient(135deg, #f8fffe 0%, white 100%);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-green);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.type-section:hover {
  box-shadow: 0 4px 15px rgba(45, 122, 45, 0.1);
  transform: translateX(5px);
}

/* Utility Classes for removing inline styles */
.flex-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Google Tag Manager noscript iframe */
.gtm-noscript {
  display: none;
  visibility: hidden;
}

/* Color classes for pros and cons */
.text-green {
  color: var(--primary-green);
}

.text-red {
  color: #e74c3c;
}

/* グリッドレイアウトのレスポンシブ対応 */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}