/* base.css
 * サイト共通：リセット・フォント・カラー・基本UI定義
 */

@charset "UTF-8";

/* -------------------------------------------
   カスタム変数の定義（PCベース・グローバル）
--------------------------------------------- */
:root {
  /* カラー */
  --wp--preset--color--primary: #0077B6;
  --wp--preset--color--primary-accent: #2B9CD8;
  --wp--preset--color--primary-alt: #3AAFD6;
  --wp--preset--color--main: #2B2B2B;
  --wp--preset--color--main-accent: #555555;
  --wp--preset--color--tertiary: #F8F8F8;

  /* フォントサイズ（PC基準） */
  --font-size-note: 0.8rem; /* 最小文字（約12.8px） */
  --wp--preset--font-size--x-large: 2.75rem; /* h1サイズ */
  --wp--preset--font-size--large: 2.25rem;   /* h2サイズ */
  --wp--preset--font-size--base: 1rem;       /* 本文 */

/* h3とh4のフォントサイズの中間 */
.s-h3 h3 {
  font-size: calc((var(--wp--preset--font-size--medium) + var(--wp--preset--font-size--base)) / 2);
}
  
  /* 行間 */
  --wp--custom--line-height--body: 1.75;
}

/* 投稿記事ページのh1、h2見出しにスタイルを適用 */
.single-post h1,
.single-post h2 {
    /* 大文字化 */
    text-transform: uppercase;
    /* 行間を広げる */
    line-height: 1.5; /* 1.5は例、調整してね */
}
  /* h2見出し余白 */
.single-post h2 {
    padding-top: var(--wp--preset--spacing--x-large);
    padding-bottom: var(--wp--preset--spacing--small);
}
/* -------------------------------------------
   画面幅が768px以下の場合の調整（スマホ対応）
--------------------------------------------- */
@media (max-width: 768px) {
  :root {
    /* フォントサイズを縮小し、視認性とUI調和を維持 */
    --wp--preset--font-size--x-large: 2rem;
    --wp--preset--font-size--large: 1.5rem;
    --wp--preset--font-size--base: 1rem; /* 本文は同一サイズで維持 */

  }
}

/* -------------------------------------------
   title装飾
--------------------------------------------- */

/* ブログ一覧h1設定 */
.blog-index-title {
  max-width: var(--wp--style--global--wide-size);
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--wp--preset--spacing--small);		
  padding-right: var(--wp--preset--spacing--medium);	
  padding-bottom: var(--wp--preset--spacing--small);
  padding-left: 0; 
}

/* 記事カードh2設定 */
.post-title-h2-base {
  font-size: var(--wp--preset--font-size--base);
}

/* -------------------------------------------
   フォント
--------------------------------------------- */

/* 最小文字設定 */
.note-text {
  font-size: var(--font-size-note);
}
.mini-note-text {
  font-size: 0.6rem;
}

/* =============================
  アイキャッチ画像（blog.html・投稿ページ）
============================= */
.wp-block-post-featured-image {
  overflow: hidden;
  display: block;
}

.wp-block-post-featured-image img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-origin: center center;
}

/* PCなど hover 対応デバイス */
@media (hover: hover) and (pointer: fine) {
  .wp-block-post-featured-image:hover img {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  }
}

/* スマホなど touch デバイス */
@media (hover: none) and (pointer: coarse) {
  .wp-block-post-featured-image:active img {
    transform: scale(1.12);
  }
}

/* カード用：記事カード内専用 */
.article-card .wp-block-post-featured-image a:hover img {
  transform: scale(1.08);
  transition: transform 0.4s ease;
}

/* 投稿ページ：ホバー無効 */
.single-post .wp-block-post-featured-image img {
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}

/* =============================
  リンクホバー
============================= */
a {
  transition: color 0.2s ease;
}

a:hover,
a:focus,
a:active {
  color: var(--wp--preset--color--primary-alt);
}

.article-card .wp-block-post-title a,
.article-card .wp-block-post-terms a {
  transition: color 0.2s ease;
  text-decoration: none;
}

.article-card .wp-block-post-title a:hover,
.article-card .wp-block-post-terms a:hover {
  color: #90E0EF;
}


/* 投稿記事本文中のpタグ内のリンクにスタイルを適用 */
.entry-content p a {
    /* 通常時のスタイル */
    color: var(--wp--preset--color--primary-accent);
    /* 滑らかな変化のためにtransitionを追加 */
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}

/* ホバー時のスタイル */
.entry-content p a:hover {
    /* ホバー時の文字色と下線を追加 */
    color: var(--wp--preset--color--primary-alt);
    text-decoration: underline;
}

/* =============================
  見出し：ドット装飾付き
============================= */

/* padding-left の強制を避けてセレクタ詳細度で対処 */
body .wp-block-uagb-container.uagb-block-8f59c37d {
  padding-left: 0;
}

.headline-with-dots {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.headline-ja {
  font-size: 1rem;
}

.dots {
  display: flex;
  gap: 0.4em;
}

.dots span {
  width: 8px;
  height: 8px;
  background-color: var(--wp--preset--color--primary-accent);
  border-radius: 50%;
  display: inline-block;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.6);
    opacity: 0.6;
  }
}



/* =============================
  グローバルナビ（ヘッダー・フッター共通）
============================= */

header a,
footer a,
.wp-block-navigation a {
  transition: color 0.2s ease;
  text-decoration: none !important;
}

header a:hover,
footer a:hover,
.wp-block-navigation a:hover {
  color: #90E0EF !important;
  text-decoration: none !important;
}

/* =============================
  パンくずリスト
============================= */
.p-breadcrumbs-container span a {
  text-decoration: none;
}

.breadcrumb_last,
.breadcrumb_last ~ .separator {
  display: none;
}

/* ========================================
   タグクラウド
======================================== */
.wp-block-tag-cloud a {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wp--preset--color--primary);
    background-color: #f1f1f1;
    margin: 0.15rem 0.4rem 0.4rem 0;
    padding: 0.3em 0.6em;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    
    /* ↓ここから追加・変更 */
    background-color: var(--wp--preset--color--base); /* 背景を白に */
    border: 1px solid var(--wp--preset--color--primary); /* 枠線を追加 */
    border-radius: 5px; /* 角丸を5pxに */
}

.wp-block-tag-cloud a:hover {
    background-color: #000;
    color: #fff;
    
    /* ↓ここから追加・変更 */
    background-color: var(--wp--preset--color--primary); /* ホバー時の背景色をプライマリーに */
    color: var(--wp--preset--color--base); /* ホバー時の文字色を白に */
}

/* スマホ（～599px）*/
@media (max-width: 599px) {
    .wp-block-tag-cloud a {
        font-size: var(--wp--preset--font-size--small) !important;
        padding: 0.5em 1em;
        line-height: 1;
    }
}

/* ========================================
  h2 装飾
======================================== */


/* ----------------------------
  新ぷるぷるドットデザイン
------------------------------ */


/* ぷるぷる横並び */
.flexible-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: 1rem 0;
}

.flexible-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--primary-accent);
  animation: dotBounce 1.4s ease-in-out infinite;
}

.flexible-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.6);
    opacity: 0.6;
  }
}

.vertical-dotted-headline{
text-align: center!important;}

/* ========================================
  背景 装飾
======================================== */

.gradation01 {
  background: linear-gradient(to bottom, #FAFAFA 0%, #F0FCFF 100%);
}

/* ========================================
  Topへ戻るボタン
======================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================
  目次装飾
======================================== */
.lwptoc_i {
    border: solid;
    border-radius: 5px;
    border-color: #e6e7e9;
}

/* ========================================
  logo
======================================== */
.logo-hover {
  cursor: pointer;
}
.logo-hover img:hover {
  transform: scale(1.05);
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* ========================================
 table
======================================== */

.ranking-table {
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.ranking-table,
.ranking-table th,
.ranking-table td {
    font-size: var(--wp--preset--font-size--x-small) !important;
}

@media (max-width: 768px) {
  .wp-block-group .ranking-table td:nth-child(2) {
    font-size: var(--wp--preset--font-size--x-small) !important;
  }
}