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

  /*
    ============================================================
    カラー設定（ここを変更すればサイト全体の配色が変わります）
    --bg           : ページ背景色
    --text         : メインのテキスト色
    --text-sub     : サブテキスト（作品説明文など）
    --accent       : アクセントカラー（引き出し線・コメントカード）
    --border       : 区切り線・画像ボーダー
    ============================================================
  */
  :root {
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-sub: #555;
    --accent: #c0392b;
    --border: #e0e0e0;
  }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
  }

  /* ============================================================
     ページヘッダー
     - ページタイトル「事例」を表示
     - 不要なら <header class="page-header"> ごと削除してOK
     ============================================================ */
  /* .page-header {
    text-align: center;
    padding: 60px 20px 40px; 
  } */
  .page-header h1 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
    display: inline-block;
  }
  /* タイトル下のアクセントライン */
  .page-header h1::after {
    content: '';
    display: block;
    width: 40px;    /* ラインの横幅 */
    height: 2px;    /* ラインの太さ */
    background: var(--accent);
    margin: 12px auto 0;
  }

  /* ============================================================
     作品セクション（各作品のブロック）
     - max-width: コンテンツ最大幅（広くしたい場合は 1200px 等に）
     - margin-bottom: 作品間の余白
     ============================================================ */
  .work-section {
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 0 24px;
    /* opacity: 0; */
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .work-section.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* 作品タイトル */
  h3.work-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  /* 作品の簡単な説明 */
  .work-description {
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 28px;
  }

  /* ============================================================
     PC表示: 画像 + コメントの横並びレイアウト
     ============================================================ */
  .annotated-container {
    position: relative;
    display: flex;
    align-items: flex-start;
  }

  /*
    スクリーンショット画像の幅
    - flex-basis の % を変えると画像:コメントの比率が変わります
    - 例: 50% にすると画像とコメントが半々
  */
  .screenshot-wrapper {
    flex: 0 0 55%;
    max-width: 55%;
    position: relative;
  }
  .screenshot-wrapper img {
    width: 100%;
    display: block;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  }

  /* ============================================================
     PC: コメントカラム
     - JSで画像の高さに合わせて自動的に高さが設定されます
     ============================================================ */
  .comments-column {
    flex: 1;
    position: relative;
    padding-left: 20px;
    /* min-height は JS で画像の高さに合わせて動的に設定 */
  }

  /*
    各コメント（引き出し線 + カード）
    - style="top: XX%" で画像のどの位置を指すか調整
    - コメントを増やすには .annotation ブロックをコピーして
      top の値を変更するだけでOK
  */
  .annotation {
    position: absolute;
    left: 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .annotation.visible {
    opacity: 1;
    transform: translateX(0);
  }

  /*
    引き出し線
    - width: 線の長さ
    - background: 線の色（var(--accent) を参照）
  */
  .annotation-line {
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 18px;
  }

  /* 引き出し線の始点にある丸ドット */
  .annotation-dot {
    position: absolute;
    left: -6px;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
  }

  /*
    コメントカード（PC版）
    - background: カードの背景色
    - max-width: カードの最大幅
    - border-radius: 角丸の大きさ
  */
  .annotation-card {
    background: var(--accent);
    color: #fff;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.65;
    max-width: 340px;
    box-shadow: 0 2px 12px rgba(192, 57, 43, 0.2);
  }
  /* コメントカード内のラベル（小見出し） */
  .annotation-card .label {
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4px;
  }

  /* ============================================================
     セクション区切り線
     ============================================================ */
  .work-divider {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 24px;
  }
  .work-divider hr {
    border: none;
    height: 1px;
    background: var(--border);
  }

  /* ============================================================
     youtube用
     ============================================================ */
  .youtube{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.youtube iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

  /* ============================================================
     モバイル: オーバーレイポップアップ（PC時は非表示）
     ============================================================ */
  .mobile-overlay { display: none; }

  @media (max-width: 768px) {
    .work-section { padding: 0 16px; margin-bottom: 70px; }
    .annotated-container { flex-direction: column; }

    .screenshot-wrapper {
      flex: none;
      max-width: 100%;
      position: relative;
    }

    /* PC用コメントはモバイルで非表示 */
    .comments-column { display: none; }

    .mobile-overlay {
      display: block;
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      overflow: hidden;
      border-radius: 4px;
    }

    /*
      モバイル用コメント（オーバーレイ）
      - data-top="XX%" で画像上のどの位置に表示するか指定
      - スクロールでビューポートに入ると自動的にふわっと出現
    */
    .mobile-annotation {
      position: absolute;
      left: 0;
      width: 100%;
      padding: 0 14px;
      pointer-events: none;
      opacity: 0;
      transform: translateY(18px) scale(0.96);
      transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .mobile-annotation.show {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /*
      モバイル用ポップアップカード
      - すりガラス風の半透明デザイン
      - background の rgba で透明度を調整（最後の数値 0.0〜1.0）
      - backdrop-filter: blur() ですりガラス効果の強さを調整
      - border: 半透明ボーダーでフローティング感を演出
    */
    .mobile-card {
      background: rgba(255, 255, 255, 0.5);
      backdrop-filter: blur(16px) saturate(1.4);
      -webkit-backdrop-filter: blur(16px) saturate(1.4);
      color: var(--text);
      padding: 14px 16px 14px 28px;
      border-radius: 12px;
      font-size: 0.75rem;
      line-height: 1.6;
      border: 1px solid rgba(255, 255, 255, 0.5);
    }

    /* ポップアップ内のラベル */
    .mobile-card .label {
      font-weight: 600;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      color: var(--accent);
      margin-bottom: 3px;
    }

    /* 左端のアクセントバー（コメントの目印） */
    .mobile-card::before {
      content: '';
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 60%;
      background: var(--accent);
      border-radius: 2px;
      opacity: 0.7;
    }
  }