/* ========================================
   #content 配下の the_content 装飾
======================================== */

#content {
  font-size: 16px;
  line-height: 1.9;
  color: #334155;
  /* slate-700 */
}

/* ----- 見出し ----- */

#content h2 {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 4px solid #0f766e;
  /* teal-700 */
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  /* slate-900 */
}

#content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e2e8f0;
  /* slate-200 */
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

#content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155;
}

/* ----- 段落 ----- */

#content p {
  margin-bottom: 1.25rem;
}

/* ----- リンク ----- */

#content a {
  color: #0d9488;
  /* teal-600 */
  text-decoration: underline;
  text-underline-offset: 3px;
}

#content a:hover {
  color: #0f766e;
}

/* ----- リスト ----- */

#content ul,
#content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

#content ul li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

#content ol li {
  margin-bottom: 0.5rem;
  list-style: decimal;
}

/* ----- 引用 ----- */

#content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: #f1f5f9;
  /* slate-100 */
  border-left: 4px solid #0f766e;
  font-style: italic;
  color: #475569;
}

/* ----- テーブル ----- */

#content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  table-layout: fixed;
  /* ← 横幅をラッパーに合わせる */
}

#content th,
#content td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  text-align: left;
  word-break: break-word;
  /* はみ出し防止 */
}

#content th {
  background-color: #f8fafc;
  font-weight: 600;
}

#content tr:nth-child(even) {
  background-color: #f9fafb;
}


/* ----- 画像 ----- */

#content img {
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
}

/* ----- 区切り線 ----- */

#content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}


/* =========================
   Gutenberg ファイルブロック
   ティールアウトライン版
========================= */

#content .wp-block-file {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

/* ファイル名リンク */
#content .wp-block-file a:not(.wp-block-file__button) {
  color: #0f766e;
  /* teal-700 */
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color .2s ease;
}

#content .wp-block-file a:not(.wp-block-file__button):hover {
  color: #115e59;
}

/* PDFバッジ（リンク側のみ） */
#content .wp-block-file a[href$=".pdf"]:not(.wp-block-file__button)::after {
  content: "PDF";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: .6rem;
  padding: .18rem .55rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  background: #dc2626;
  border-radius: .4rem;
}

/* =========================
   ダウンロードボタン（軽量・上品）
========================= */

#content .wp-block-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .1rem 1.2rem;
  /* ← 少しコンパクトに */
  border-radius: 9999px;
  background: #ffffff;
  color: #0f766e;
  font-size: .9rem;
  /* ← 少し小さく */
  font-weight: 600;
  /* ← 少し軽く */
  text-decoration: none;
  border: 1.5px solid #0f766e;
  /* ← 細くする */
  transition: all .2s ease;
}


/* ボタンにPDFバッジは付けない */
#content .wp-block-file__button[href$=".pdf"]::after {
  content: none !important;
}

/* PDFアイコン（線だけで軽く） */
#content .wp-block-file__button[href$=".pdf"]::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 2h7l5 5v15a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14 2v6h6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 2h7l5 5v15a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14 2v6h6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* hover時 */
#content .wp-block-file__button:hover {
  background: #0f766e;
  color: #ffffff;
  transform: translateY(-1px);
}

/* active */
#content .wp-block-file__button:active {
  transform: translateY(0);
}