/* ---------------------------------
   ベーススタイル
--------------------------------- */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa; /* 背景を少し明るめのグレーに */
  }
  
  /* ---------------------------------
     ヘッダー
  --------------------------------- */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #ffffff; /* 白背景 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* さりげないシャドウ */
    height: 60px; /* ヘッダーの高さ */
  }
  
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
  }
  
  canvas {
    position: fixed; /* ページ全体に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 背景に配置 */
  }
  
  /* タイトル */
  .navbar h1 {
    font-size: 1.4rem;
    font-weight: bold;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 10px 0 0;
  }
  
  /* 画面全体の余白調整（ヘッダー固定のため） */
  main {
    padding-top: 80px; /* ヘッダーの高さ + 余白 */
  }
  
  /* ---------------------------------
     ハンバーガーメニュー
  --------------------------------- */
  #menuToggle {
    display: none; /* チェックボックスは非表示 */
  }
  
  .menu-icon {
    display: none; /* PC表示時は非表示。モバイル表示でブロックに変更 */
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
  }
  
  /* ハンバーガーライン */
  .menu-icon span {
    background-color: #333;
    display: block;
    height: 3px;
    margin: 6px 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  
  /* メニューリスト */
  .menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .menu li {
    display: inline-block;
  }
  
  .menu a {
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    transition: color 0.3s ease;
  }
  
  .menu a:hover {
    color: #007acc;
  }
  
  /* ---------------------------------
     ヒーローセクション
  --------------------------------- */
  .hero {
    text-align: center;
    background-color: #ffffff;
    padding: 20px 20px 30px;
    margin-top: 20px;
    margin-bottom: 20px; /* ヘッダー分の上マージンを多めに */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5em;
    border-left: none;
    padding-left: 0;
  }
  
  .hero p {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #555;
  }
  
  /* ボタン */
  .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    color: #fff;
    background-color: #007acc;
    text-decoration: none;
    border-radius: 30px; /* 丸みを増やす */
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color: #005fa3;
  }
  
  /* ---------------------------------
     セクション共通スタイル
  --------------------------------- */
  section {
    margin: 40px auto;
    max-width: 1200px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  section:not(:first-of-type) {
    margin-top: 60px; /* ヒーローとの間を広げる */
  }
  
  section h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #007acc;
    padding-left: 10px;
    font-size: 1.5rem;
  }
  
  /* 画像を自動でサイズ調整 */
  section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
  }
  
  /* ---------------------------------
     各種活動セクション
  --------------------------------- */
  #activities {
    padding: 20px;
    background-color: #f9f9f9;
  }
  
  #activities h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
  }
  
  /* グリッドレイアウト */
  .activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  /* カードスタイル */
  .activity-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* カード内テキスト */
  .activity-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #007acc;
  }
  
  .activity-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
  }
  
  /* リンクスタイル */
  .activity-card a {
    display: inline-block;
    font-size: 1rem;
    color: #007acc;
    text-decoration: none;
    border: 1px solid #007acc;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .activity-card a:hover {
    background-color: #007acc;
    color: #fff;
  }
  
  /* ---------------------------------
     制作物セクション (カード形式)
  --------------------------------- */
  #projects {
    padding: 20px;
    background-color: #f9f9f9;
  }
  
  #projects h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* カード間の間隔 */
    padding: 0;
  }
  
  /* 制作物のカード */
  .project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  
  .project-card h3 {
    font-size: 1.2rem;
    margin: 15px;
    color: #333;
  }
  
  .project-card p {
    font-size: 1rem;
    margin: 0 15px 15px;
    color: #555;
    line-height: 1.5;
  }
  
  /* ---------------------------------
     構成図セクション
  --------------------------------- */
  #architecture img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    display: block;
  }
  
  /* ---------------------------------
     SNSリンクセクション
  --------------------------------- */
  #sns {
    padding: 20px;
    background-color: #f9f9f9;
  }
  
  #sns h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
  }
  
  /* グリッドレイアウト */
  .sns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  /* カードスタイル */
  .sns-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .sns-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  }
  
  .sns-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #007acc;
  }
  
  .sns-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
  }
  
  /* リンクスタイル */
  .sns-card a {
    display: inline-block;
    font-size: 1rem;
    color: #007acc;
    text-decoration: none;
    border: 1px solid #007acc;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .sns-card a:hover {
    background-color: #007acc;
    color: #fff;
  }
  
  /* ---------------------------------
     フッター
  --------------------------------- */
  footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #777;
  }
  
  /* ---------------------------------
     レスポンシブ対応
  --------------------------------- */
  @media screen and (max-width: 768px) {
    /* ハンバーガーアイコンを表示する */
    .menu-icon {
      display: block;
    }
  
    /* PCサイズ用メニューを非表示 -> モバイル時のみ表示 */
    .menu {
      display: none;
      position: absolute;
      top: 60px;  /* ヘッダー下に表示 */
      right: 20px;
      flex-direction: column;
      gap: 0;
      background-color: #ffffff;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 10px;
      width: 200px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
  
    /* チェックが入ったときにメニューを表示 */
    #menuToggle:checked ~ .menu {
      display: flex;
    }
  
    /* メニュー項目 */
    .menu li {
      margin: 10px 0;
    }
  
    /* ハンバーガーラインを「×」に変形する */
    #menuToggle:checked + .menu-icon span:nth-of-type(1) {
      transform: translateY(9px) rotate(45deg);
    }
    #menuToggle:checked + .menu-icon span:nth-of-type(2) {
      opacity: 0;
    }
    #menuToggle:checked + .menu-icon span:nth-of-type(3) {
      transform: translateY(-9px) rotate(-45deg);
    }
  }
  