/* 基本スタイル */
body {
  background-color: #f9fafb;
  color: #333;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

a.modern {
  color: #444;
  text-decoration: none;
  background-image: linear-gradient(to right, #f97316, #f97316);
  background-repeat: no-repeat;
  background-size: 100% 2px; /* 常に100%表示 */
  background-position: left bottom;
  transition: color 0.3s ease;
}

a.modern:hover,
a.modern:focus {
  color: #f97316;
  background-size: 100% 2px; /* ホバー時も100%を維持 */
}

/* ヘッダー */
.header {
  background: linear-gradient(to right, #fde047, #fb923c);
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header .logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  background-color: transparent;
}

.header h1, .header p {
  margin: 0;
  font-weight: bold;
  font-size: 1.5rem;
  white-space: nowrap;
}

.site-title {
  display: flex;
  align-items: center;
  justify-content: center; /* ← 中央寄せ */
  gap: 10px;
}

/* セクション */
.section {
  padding: 0 0 30px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* 更新日 */
div.update {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: right;
}

/* 記事設定 */
article.content h1 {
  margin-bottom: 0;
}

article.content p {
  text-indent: 1em;             /* 1文字分のインデント */
  margin-bottom: 3rem;          /* 適切な下方向の余白（お好みで調整可能）*/
  color: #444;                  /* 通常のテキスト色 */
  line-height: 1.7;             /* 読みやすい行間 */
}

/* 強調 */
.red {
  color: #dc2626;
}

.red_b {
  font-weight: bold;
  color: #dc2626;
}

/* 画像 */
img {
  display: block;
  margin: 0 auto;
  max-width: 100%; /*画像の横幅を、親要素の横幅までに。画像が小さい場合には、そのままのサイズを維持*/
  max-height: 100%;
  object-fit: contain; /* 画像のアスペクト比を保ちながら*/
}

.image {
  margin: 0 0 70px 0;
}

.btn_text {
  display: table;
  margin: 12px auto;
  background-color: #fb923c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.btn_text:hover {
  background-color: #f97316;
}

/* テーブル */
table.basic {
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

table.basic th,
table.basic td {
  padding: 0.3rem 0.3rem;
  text-align: center;
  border: 1px solid #e5e7eb; /* 薄いグレーの境界線 */
}

table.basic th {
  background-color: #ff8d00; /* ビットコインカラー */
  color: #ffffff; /* 白文字 */
  font-weight: 600;
}

table.basic td {
  background-color: #fffaf2; /* ソフトな背景色 */
  color: #333333; /* テキスト色 */
}

table.basic tr:nth-child(even) td {
  background-color: #ffffff; /* 偶数行の背景色を変えて視認性向上 */
}

table.basic tr:hover td {
  background-color: #ffe9cc; /* ホバー時に色が変化 */
}

/* カード */
.card {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 20px;
}

.card .thumb {
  display: block;
  width: 60%;
  margin: 0 auto 15px;
  border-radius: 5px;
}

.card .content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card .btn {
  display: inline-block;
  background-color: #fb923c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
}

.card .btn:hover {
  background-color: #f97316;
}

/* 価格表示部分 */
.chart-container {
  height: 300px;
  width: 100%;
  margin: auto;
}

.chart-btn {
  background-color: #fff;
  border: 2px solid #f97316;
  color: #f97316;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.chart-btn.active, .chart-btn:hover {
  background-color: #f97316;
  color: #fff;
}

.price-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 10px;
}

.price, .change {
  font-size: 1.6rem;
  font-weight: bold;
}

.chart-note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
}

/* カテゴリータグ */
.tags a {
  display: inline-block;
  background-color: #fed7aa;
  color: #000;
  padding: 5px 10px;
  margin-bottom: 3px;
  border-radius: 15px;
  text-decoration: none;
}

.tags a:hover {
  background-color: #fbbf24;
}

/* フッター */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

/* サイト内検索 */
.search-container {
  width: 100%;
  background-color: #fff;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.search-container input[type="text"] {
  width: 70%;
  max-width: 400px;
  padding: 8px 15px;
  border: 2px solid #f97316;
  border-radius: 20px;
  font-size: 16px;
}

.search-container button {
  padding: 8px 15px;
  border: none;
  background-color: #f97316;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-container button:hover {
  background-color: #fb923c;
}

/* TikTok */
.tiktok-video-container {
  position: relative;
  width: 100%;
  max-width: 325px; /* お好みで調整可 */
  margin: 0 auto;   /* 中央寄せ */
  margin-bottom: 50px;
  aspect-ratio: 9 / 16; /* この設定で縦長比率を維持 */
  overflow: hidden;
}

.tiktok-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tiktok-follow-container {
  text-align: center;
  margin: 50px 0 30px 0;
}

.tiktok-follow-button {
  font-size: 16px;
  padding: 8px 15px;
  background-color: #FE2C55;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tiktok-follow-button:hover {
  background-color: #e60045;
}

/* ページトップボタンのスタイル */
#pageTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #f97316;
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#pageTop:hover {
  background-color: #fb923c;
}

#pageTop.show {
  opacity: 1;
  visibility: visible;
}

/* 2カラムレイアウト対応 */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content {
  flex: 1;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.sidebar {
  width: 100%;
}

.sidebar .card {
  padding: 15px;
  margin-bottom: 20px;
}

/* パンくずリスト */
.breadcrumb {
  padding: 10px 10px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #f97316;
  text-decoration: none;
}

.breadcrumb span {
  color: #777;
}

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

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .grid {
    display: flex;
    gap: 20px;
  }

  .card {
    flex: 1;
  }

  /* 2カラムレイアウト対応 */
  .main-content {
    flex-direction: row;
  }

  .content {
    flex: 1; /* 本文が残りの横幅を全て使用 */
    margin-right: 20px;
  }

  .sidebar {
    width: 300px; /* 固定幅 */
    flex-shrink: 0;
  }
}

/* PR広告 */
#includ_pr{
  max-width: 1100px;     /* .container と揃える */
  margin: 0 auto; 
  padding: 0 20px;       /* .container と揃える */
  display: block;
  text-align: right;
  color: #757575;
}
#includ_pr p {
  padding: 0;
  margin: 0;
}
.index_pr {
  text-align: right;
  cursor: pointer;
}
#details_pr {
  text-align: left;
  display: none;
}

@media only screen and (min-width: 768px) {
  #includ_pr {
    font-size: 12px;
    max-width: 300px;
    margin: 0 0 0 auto; /* 右寄せ */
  }
}
@media only screen and (max-width: 768px) {
  #includ_pr{
    font-size: 11px;
  }
  #details_pr {
    background-color: #fafafa;
    border-radius: 5px;
  }
}