/*
 * 記事ページ共通スタイル
 * memo/以下の記事で使用
 */

/* ヘッダー画像 */
header .heroimg {
  object-fit: cover;
  width: 100%;
  height: 200px;
}

/* 記事コンテンツ */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #333;
  border-bottom: 3px solid #ff9500;
  padding-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

.article-content p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2 {
  color: #333;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.4;
  background: #fff5e6;
  border-left: 5px solid #ff9500;
  padding: 1rem 1.25rem;
  border-radius: 4px;
}

.article-content h3 {
  color: #333;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: bold;
  line-height: 1.4;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0 0.5rem 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 蛍光ペン風ハイライト */
.highlight {
  background: linear-gradient(transparent 60%, rgba(255, 149, 0, 0.3) 60%);
  padding: 0 0.2rem;
}

/* 戻るリンク */
.back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: inherit;
  font-family: inherit;
}

.back-link:hover {
  background: #ff9500;
  color: white;
  text-decoration: none;
}

/* 注釈ボックス */
.note-box {
  background: #fffbf0;
  border: 1px solid #ff9500;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 8px;
}

/* 画像キャプション */
.image-caption {
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  padding-left: 20px;
  padding-right: 30px;
}

/* ゲームスクリーンショット */
.game-screenshot {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0 0.5rem 20px;
}

/* 引用ボックス */
.quote-box {
  background: #f8f9fa;
  border-left: 4px solid #ff9500;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

.quote-box p {
  margin-bottom: 0.5rem;
}

.quote-box p:last-child {
  margin-bottom: 0;
}

/* レシピセクション（料理記事用） */
.recipe-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid #ff9500;
}

.recipe-section h3 {
  color: #ff9500;
  margin-bottom: 1rem;
}

.ingredients {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.steps {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

/* 区切り線 */
.separator {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.2rem;
  color: #666;
}

/* ツール記事用スタイル */
.tool-image {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.demo-gif {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  display: block;
}

.feature-list {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.feature-list li {
  margin: 10px 0;
}

.tool-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin: 20px 0;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(255, 149, 0, 0.3);
}

.tool-link:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(255, 149, 0, 0.4);
}

.example-section {
  background: #f0f7ff;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* 5億円記事用スタイル */
.dialogue {
  background: #f8f9fa;
  border: 2px solid #ff9500;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 1.1rem;
  line-height: 2;
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}


.money-highlight {
  font-size: 1.3em;
  font-weight: bold;
  color: #dc3545;
  background: linear-gradient(transparent 60%, rgba(220, 53, 69, 0.2) 60%);
  padding: 0 0.3rem;
}

/* 区切り線 */
.article-divider {
  margin: 2rem 0;
  border: none;
  border-top: 2px solid #e0e0e0;
}

/* TRPG/シナリオ記事用スタイル */
.article-info-box {
  background: #e6f3ff;
  border-left: 4px solid #4f94ff;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.article-info-box p {
  margin-bottom: 0.5rem;
}

.article-info-box p:last-child {
  margin-bottom: 0;
}

.scenario-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.scenario-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.scenario-info dt {
  font-weight: bold;
  color: #495057;
}

.scenario-info dd {
  margin: 0;
  color: #666;
}

.article-content h4 {
  color: #999;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.5rem;
  }

  .article-content {
    font-size: 1rem;
    padding: 1.5rem 0.75rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.2rem;
  }

  .dialogue {
    font-size: 1rem;
    padding: 1rem;
  }

  .money-highlight {
    font-size: 1.2em;
  }

  /* スマホ用画像調整 */
  .article-content img {
    margin: 1rem 0;
    max-width: 100%;
    width: 100%;
    cursor: zoom-in;
  }

  .image-caption {
    padding-left: 0;
    padding-right: 0;
  }

  .game-screenshot {
    margin: 1rem 0;
    max-width: 100%;
  }
}

/* テキストユーティリティ */
.pre-wrap {
  white-space: pre-wrap;
}

/* ツール記事用 */
.tool-panel {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* コミッション記事用 */
.commission-notice {
  background: #fffbf0;
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.commission-notice-title {
  color: #e65100;
  margin: 0 0 10px 0;
  font-size: 1rem;
}

/* コードブロック */
.code-block {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  overflow-x: auto;
}

/* キャプション中央寄せ */
.image-caption.text-center {
  text-align: center;
}

/* 記事詳細ページのタイトル */
.article-detail-container h1 {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

/* 汎用画像スタイル（ボーダー付き） */
.article-img-bordered {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 1rem 0;
  display: block;
}

/* コードブロック（ハイライト版） */
.code-block-highlight {
  background: #f5f5f5;
  padding: 1rem;
  border-left: 4px solid #ff9500;
  border-radius: 4px;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block-highlight pre {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ツール記事用フォームスタイル */
.form-label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-required {
  color: #dc3545;
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.form-textarea:focus {
  outline: none;
  border-color: #ff9500;
}

.form-success {
  display: none;
  background: #28a745;
  color: white;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.form-success.show {
  display: block;
}

.form-submit-btn {
  background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(255, 149, 0, 0.3);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 149, 0, 0.4);
}

/* Q&A記事用スタイル（インタビュー・対談記事用） */
.intro-section {
  background: #fffdf7;
  border: 1px solid #e0e0e0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
}

.intro-section p {
  margin-bottom: 0.75rem;
  color: #333;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

.session-section {
  margin: 3rem 0;
}

.session-title {
  /* 既存のh2スタイルを継承 */
}

.qa-item {
  background: #fafafa;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border-left: 3px solid #e0e0e0;
}

.qa-item .question {
  font-weight: bold;
  color: #ff9500;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.qa-item .answer {
  color: #333;
  margin-bottom: 0.5rem;
}

.qa-item .answer:last-child {
  margin-bottom: 0;
}

.speaker-label {
  font-weight: bold;
  color: #ff6b35;
  margin-right: 0.5rem;
}

/* コミッションギャラリー記事用スタイル */
.commission-info {
  background: #fffbf0;
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.commission-info p:last-child {
  margin-bottom: 0;
}

.commission-section {
  margin: 3rem 0;
}

.commission-section h3 {
  color: #ff9500;
  margin-bottom: 1rem;
}

.service-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin: 1rem 0;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(255, 149, 0, 0.3);
}

.service-link:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(255, 149, 0, 0.4);
}

.illust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.illust-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.illust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.illust-item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .illust-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* TRPGリプレイログ記事用スタイル */
.section-title {
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ff9500;
}

.replay-entry {
  background: #fafafa;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.replay-entry p {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.replay-entry p:last-child {
  margin-bottom: 0;
}

.gm-info {
  font-weight: bold;
  color: #4f94ff;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* データベース記事用スタイル */
.db-entry {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.db-entry h3 {
  color: #ff9500;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ffd9a3;
}

.db-field {
  display: block;
  font-weight: bold;
  color: #666;
  font-style: normal;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.db-field:first-of-type {
  margin-top: 0;
}

.db-content {
  color: #333;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.db-content:last-child {
  margin-bottom: 0;
}

/* ツルが降るアニメーション（TRPGリプレイログ用） */
.tsuru-fall {
  position: fixed;
  top: -100px;
  width: 50px;
  height: 50px;
  background-image: url('/memo/trpg/img/tsuru.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 9999;
  animation: tsuru-falling 5s linear forwards;
}

@keyframes tsuru-falling {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 150px)) rotate(360deg);
    opacity: 0.8;
  }
}

/* 対話形式記事用スタイル（吹き出し風） */
.dialogue-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
}

.dialogue-table tr {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.dialogue-table td:first-child {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.dialogue-table td:first-child img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin: 0;
  border: 3px solid #fff;
}

.dialogue-table td:last-child {
  flex: 1;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  position: relative;
  line-height: 1.7;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dialogue-table td:last-child br {
  display: block;
  content: "";
  margin-top: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .dialogue-table td:first-child {
    width: 60px;
  }

  .dialogue-table td:first-child img {
    width: 50px;
    height: 50px;
  }

  .dialogue-table td:last-child {
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
  }

  .dialogue-table tr {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
}

/* コードブロックのスタイリング（Markdown用） */
.article-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ff9500;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  display: block;
}

/* インラインコード */
.article-content code {
  background: #f5f5f5;
  color: #e83e8c;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* コードブロックのスクロールバーカスタマイズ */
.article-content pre::-webkit-scrollbar {
  height: 8px;
}

.article-content pre::-webkit-scrollbar-track {
  background: #2d2d2d;
  border-radius: 4px;
}

.article-content pre::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.article-content pre::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* リスト内のコードブロック */
.article-content li code {
  background: #f5f5f5;
  color: #e83e8c;
}

/* テーブルスタイル（Markdown用） */
.article-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid #dee2e6;
}

.article-content th {
  background: #f8f9fa;
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #dee2e6;
  font-weight: bold;
}

.article-content td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

.article-content tr:hover {
  background: #f8f9fa;
}

/* ブロック引用（Markdown用） */
.article-content blockquote {
  border-left: 4px solid #ff9500;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

.article-content blockquote p {
  margin: 0.5rem 0;
}

.article-content blockquote p:first-child {
  margin-top: 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* リストスタイル */
.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin: 0.5rem 0;
  line-height: 1.7;
}

/* コピー時に含まれる注意書き（視覚的には非表示） */
.copy-notice {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  /* コピー時には含まれるが、画面には表示されない */
}

/* TIPSリスト */
.tips-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.tips-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #ff9500;
  border-radius: 4px;
  line-height: 1.8;
}

.tips-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.3rem;
  color: #ff9500;
  font-weight: bold;
}

.tips-list li strong {
  color: #333;
  font-weight: 600;
}

.tips-list li small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 参考リンクセクション */
.reference-links {
  background: #f0f7ff;
  border: 2px solid #4f94ff;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.reference-links h3 {
  color: #4f94ff;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.reference-links ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.reference-links li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.reference-links li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #4f94ff;
  font-weight: bold;
}

.reference-links a {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.reference-links a:hover {
  color: #004499;
  border-bottom-color: #004499;
}

/* 画像拡大モーダル */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.image-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-overlay img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 脚注スタイル */
.footnote-ref a {
  color: #ff9500;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85em;
  vertical-align: super;
  line-height: 1;
  transition: color 0.2s;
}

.footnote-ref a:hover {
  color: #ff6b35;
  text-decoration: underline;
}

.footnote-separator {
  margin: 3rem 0 1.5rem;
  border: none;
  border-top: 1px solid #ddd;
}

.footnotes {
  font-size: 0.9rem;
  color: #666;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.footnotes ol {
  margin: 0;
  padding-left: 1.5rem;
}

.footnotes li {
  margin: 0.5rem 0;
  line-height: 1.7;
}

.footnote-backref {
  color: #ff9500;
  text-decoration: none;
  margin-left: 0.5rem;
  font-size: 0.9em;
}

.footnote-backref:hover {
  color: #ff6b35;
}

/* 商品カード（Amazon等のアフィリエイトリンク用） */
.product-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fffaf5;
  border: 3px solid #ff9500;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.1);
}

.product-card:hover {
  background: #fff5eb;
  border-color: #ff6b35;
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.product-card-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
}

.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-card-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

/* 商品カード横並び */
.product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.product-cards .product-card {
  flex: 1 1 300px;
  margin: 0;
}

/* ================================================================
   商品リンクコンポーネント
   - テキスト（タイトル）と画像の両方をサポート
   - .article-content 内で確実に動作
   ================================================================ */

/* コンテナ */
.article-content .product-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

/* 各商品リンク */
.article-content .product-links .product-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

/* タイトル */
.article-content .product-links .product-link-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  transition: color 0.2s ease;
}

/* 画像 */
.article-content .product-links .product-link-image {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 4px;
  background: #f8f8f8;
}

/* ホバー効果 */
.article-content .product-links .product-link:hover .product-link-title {
  color: #ff6b35;
}

.article-content .product-links .product-link:hover .product-link-image {
  opacity: 0.9;
}

/* ================================================================
   ゲームリンクコンポーネント
   - OGP画像を使った横長リンク
   ================================================================ */

.article-content .game-links {
  margin: 2rem 0;
}

.article-content .game-links .game-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.article-content .game-links .game-link-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.article-content .game-links .game-link-image {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.article-content .game-links .game-link:hover .game-link-image {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .product-card-image {
    width: 120px;
    height: 120px;
  }

  .product-cards .product-card {
    flex: 1 1 100%;
  }

  /* 商品リンク（レスポンシブ） */
  .article-content .product-links .product-link-image {
    width: 100px;
    height: 100px;
  }

  .article-content .product-links .product-link.game-link .product-link-image {
    max-width: 100%;
  }
}

/* スマホ用：フル幅でコンテンツを表示 */
@media (max-width: 768px) {
  body {
    background-color: #fff !important;
  }

  main {
    background-color: #fff;
  }

  main .container {
    background-color: #fff;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    max-width: 100%;
  }

  /* 記事詳細コンテナをフル幅に */
  .article-detail-container {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    margin: 0;
  }

  .article-content {
    padding: 1rem;
    margin: 0;
    max-width: 100%;
  }

  .article-detail-container h1 {
    padding: 0;
    max-width: 100%;
  }
}

/* ================================================================
   OGP埋め込みカード
   - [ogp]URL[/ogp] から自動生成されるブログカード風リンク
   ================================================================ */

.article-content .ogp-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  max-width: 600px;
}

.article-content .ogp-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #ccc;
}

.article-content .ogp-card-image {
  width: 120px;
  min-width: 120px;
  height: 120px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.article-content .ogp-card-noimage {
  width: 120px;
  min-width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  flex-shrink: 0;
}

.article-content .ogp-card-content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  flex: 1;
}

.article-content .ogp-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content .ogp-card-description {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content .ogp-card-site {
  font-size: 0.75rem;
  color: #999;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .article-content .ogp-card {
    flex-direction: column;
    max-width: 100%;
  }

  .article-content .ogp-card-image {
    width: 100%;
    height: 160px;
  }

  .article-content .ogp-card-noimage {
    width: 100%;
    height: 80px;
  }

  .article-content .ogp-card-content {
    padding: 12px;
  }
}

/* ================================================================
   たんかどりくんアイコン
   - 丸く切り抜き、ふわふわアニメーション、オンマウスで右向き
   ================================================================ */

.tankadori-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.tankadori-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tankadori-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 149, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* 向き変更はJavaScriptで制御 */

.tankadori-name {
  font-size: 0.8rem;
  color: #ff9500;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.05em;
}

.tankadori-speech {
  font-size: 1rem;
  color: #333;
  background: #fff;
  border: 2px solid #ff9500;
  border-radius: 16px;
  padding: 0.6rem 1rem;
  position: relative;
  margin-left: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.tankadori-speech::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -24px;
  margin-top: -12px;
  border: 12px solid transparent;
  border-right: 12px solid #ff9500;
}

.tankadori-speech::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -19px;
  margin-top: -10px;
  border: 10px solid transparent;
  border-right: 10px solid #fff;
}

@keyframes tankadori-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
