@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* =====================================================
   CHOMOTECH Green PokeDex
   完全整理版CSS（2026.01 最適化済み）

   【編集内容】
   ・重複定義の統合（Menu, Fonts）
   ・不要なパッチ記述の整理
   ・末尾の構文エラー修正
===================================================== */

/* =====================================================
   BASE（全体設定）
===================================================== */

/* はてなブログのベーステーマ */
@import url("https://usercss.blog.st-hatena.com/-/theme/8599973812270629022.css");

/* ゲームUI用フォント */
@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap');

body {
  background: #EEF2F7;
  color: #1F2D3D;
  font-family: "Noto Sans JP","Hiragino Sans","Helvetica",sans-serif;
  line-height: 1.85;
}

/* リンク */
a {
  color: #4F74B8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}


/* =====================================================
   ENTRY CONTENT（記事UI）
===================================================== */

/* ---- h2：▶付きセクション見出し ---- */
.entry-content h2 {
  background: #FFFFFF;
  border: 2px solid #6FC7A1;
  padding: 14px 18px;
  margin: 40px 0 20px;
  position: relative;
  box-shadow: 3px 3px 0 #BFE8D5;
}
.entry-content h2::before {
  content: "▶";
  position: absolute;
  left: -22px;
  top: 14px;
  color: #3C8F6B;
}

/* ---- h3：補助見出し ---- */
.entry-content h3 {
  margin: 30px 0 15px;
  padding-left: 10px;
  border-left: 4px solid #BFE8D5;
}


/* =====================================================
   TABLE（比較・評価テーブル）
===================================================== */

.entry-content table {
  width: 100%;
  margin: 20px 0;
  background: #F8FAFD;
  border: 2px solid #BFE8D5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #BFE8D5;
}

.entry-content thead th {
  background: #E3F5EC;
  color: #1F2D3D;
  padding: 14px 16px;
  font-weight: 700;
}

.entry-content tbody td:first-child {
  width: 35%;
  background: #EEF7F3;
  font-weight: 600;
  color: #1F2D3D;
  padding: 12px 14px;
}

.entry-content tbody td:last-child {
  background: #FFFFFF;
  text-align: right;
  font-weight: 700;
  color: #3C8F6B;
  padding: 12px 14px;
}

.entry-content tbody tr {
  border-bottom: 1px solid #E0E6EF;
}


/* =====================================================
   BUTTON（記事内ボタン）
===================================================== */

.chomo-btn,
.chomo-btn-blue {
  background: #6FC7A1;
  color: #fff !important;
  border: 2px solid #3C8F6B;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #BFE8D5;
  padding: 14px;
  text-align: center;
  display: block;
  margin: 14px 0;
}

.chomo-btn:hover,
.chomo-btn-blue:hover {
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 #BFE8D5;
}


/* =====================================================
   FOOTER
===================================================== */

#footer {
  background: #E4F2EC;
  border-top: 2px solid #BFE8D5;
  padding: 20px 0;
  color: #1F2D3D;
}


/* =====================================================
   GREEN DEX（図鑑メインUI）
===================================================== */

/* ---- 外枠 ---- */
.green-dex {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  padding: 12px;
  background: #F4FAF7;
  border: 3px solid #6FC7A1;
  border-radius: 14px;
  box-shadow:
    4px 4px 0 #BFE8D5,
    inset 0 0 0 2px #CDEBDD;
}

/* 左カラム */
.green-left {
  width: 130px;
  text-align: center;
}

/* 画像枠 */
.green-image {
  background: #FFFFFF;
  border: 2px solid #6FC7A1;
  border-radius: 10px;
  padding: 0;
  position: relative;
}

.green-image img {
  width: 100%;
  max-width: none;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #BFE8D5;
}

/* Noバッジ（GBA赤） */
.green-no {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(250, 248, 238, 0.95);
  border: 1px solid #C04040;
  border-radius: 6px;
  padding: 1px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #A83838;
  box-shadow: 1px 1px 0 #BFE8D5;
  font-family: "DotGothic16", "Kosugi Maru", sans-serif;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* 分類タグ */
.green-meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #3F5F8A;
  background: #E6EEFA;
  border: 1px solid #4F74B8;
  border-radius: 10px;
  display: inline-block;
  padding: 3px 12px;
  box-shadow: 1px 1px 0 #BFE8D5;
  font-family: "Kosugi Maru", "M PLUS Rounded 1c", sans-serif;
  line-height: 1.2;
}

/* タグ複数 */
.green-tags {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.green-tags .tag {
  background: #E3F5EC;
  border: 1px solid #6FC7A1;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
  color: #3C8F6B;
  font-weight: 700;
  box-shadow: 1px 1px 0 #BFE8D5;
  font-family: "Kosugi Maru","Noto Sans JP",sans-serif;
  line-height: 1.2;
}

/* コスパバー */
.green-bar {
  margin-top: 10px;
  padding: 6px 8px;
  background: #F6FFFA;
  border: 1px solid #6FC7A1;
  border-radius: 10px;
  box-shadow: 1px 1px 0 #BFE8D5;
}
.bar-label {
  font-size: 11px;
  font-weight: 700;
  color: #3C8F6B;
  margin-bottom: 4px;
  text-align: center;
}
.bar-track {
  height: 8px;
  background: #D8EDE4;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg,#6FC7A1,#3C8F6B);
  border-radius: 4px;
}

/* 右カラム */
.green-right {
  flex: 1;
  background: #FFFFFF;
  border: 2px solid #6FC7A1;
  border-radius: 12px;
  padding: 10px 12px;
}

/* 図鑑行 */
.green-line {
  font-size: 13.5px;
  padding: 4px 0;
  border-bottom: 1px dashed #CDEBDD;
  font-family: "Noto Sans JP","Hiragino Sans","Helvetica",sans-serif;
  line-height: 1.6;
}

/* ラベル（GBA風） */
.green-line span {
  display: inline-block;
  background: #E6F4EE;
  border: 1px solid #8CC7A8;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #3C8F6B;
  margin-right: 8px;
  font-family: "Kosugi Maru", "M PLUS Rounded 1c", sans-serif;
  line-height: 1.2;
}

/* 図鑑タイトル行 */
.green-right .green-line:first-child {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* メモ欄（GBA説明ウィンドウ） */
.green-memo {
  margin-top: 8px;
  padding: 12px;
  background: #F8F0D8;
  border-left: 4px solid #C09040;
  border-radius: 10px;
  box-shadow: 2px 2px 0 #E8DCC4;
  font-size: 13.5px;
  line-height: 1.4;
  font-family: "DotGothic16", "Kosugi Maru", sans-serif;
}


/* =====================================================
   GAME MENU UI（アプリ型・完成版）
   ※ 色定義とレイアウトを統合済み
===================================================== */

/* グリッド：常に2列 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  max-width: 520px;
  margin: 0 auto;
}

/* 1メニュー単位 */
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ボタン本体（アイコンのみ・正方形） */
.menu-button {
  width: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  /* 共通スタイル */
  color: #fff;
  border: 3px solid #b0c4de;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}

.menu-button:hover {
  transform: translateY(-3px);
  box-shadow: 4px 6px 0px rgba(0,0,0,0.3);
}

.menu-button svg {
  width: 70%;
  height: 70%;
  max-width: 40px;
  max-height: 40px;
  fill: #fff;
}

/* ラベル（ボタンの外） */
.menu-label {
  margin-top: 6px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  font-family: 'DotGothic16', sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* 色分け（世界観直結） */
.menu-button.zukan { background: #ff6b6b; border-color: #d64545; }
.menu-button.latest { background: #ffa94d; border-color: #e07a1f; }
.menu-button.map { background: #69db7c; border-color: #38b24d; }
.menu-button.lab { background: #74c0fc; border-color: #4dabf7; }
.menu-button.bag { background: #ffd43b; border-color: #f0b429; }
.menu-button.trainer { background: #b197fc; border-color: #9775fa; }
.menu-button.gift { background: #ff99c8; border-color: #f06595; }
.menu-button.settings { background: #ced4da; border-color: #adb5bd; }


/* =====================================================
   SMARTPHONE
===================================================== */

@media screen and (max-width:600px){
  body { font-size: 15px; }
  .green-dex { flex-direction: column; }
  .green-left { width: 100%; }
}

@media screen and (max-width:480px){
  /* メニュー微調整 */
  .menu-label {
    font-size: 0.85em;
  }
}


/* =====================================================
   APPEAR BOX（ドットUI）
===================================================== */

.chomo-appear-box {
  border: 3px solid #000;
  background-color: #fff;
  padding: 12px 16px;
  margin: 20px 0;
  font-family: 'DotGothic16', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 4px 4px 0 #444;
  max-width: 100%;
}


/* =====================================================
   BATTLE UI（比較・ポケモン風）
===================================================== */

/* バトル比較UI（簡易版） */
.chomo-battle {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #F8F0D8;
  border: 3px solid #C09040;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #E8DCC4;
  margin: 24px 0;
}

.battle-side {
  width: 40%;
  text-align: center;
}

.battle-side img {
  width: 120px;
  max-width: 100%;
  image-rendering: pixelated;
}

.battle-text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.battle-vs {
  font-weight: bold;
  font-size: 18px;
  color: #B03030;
  margin-bottom: 24px;
}

.battle-side.left { transform: translateY(12px); }
.battle-side.right { transform: translateY(0); }


/* 完全ポケモンUI（詳細版） */
.poke-battle {
  background: #F8F0D8;
  border: 4px solid #C09040;
  border-radius: 14px;
  padding: 14px;
  margin: 28px 0;
  box-shadow: 3px 3px 0 #E8DCC4;
  font-size: 13px;
}

/* 共通ステータス */
.poke-status {
  background: #FFF;
  border: 2px solid #444;
  border-radius: 6px;
  padding: 6px 8px;
  width: 180px;
}

.poke-name {
  font-weight: bold;
  font-size: 12.5px;
  margin-bottom: 4px;
}

/* HPバー */
.poke-hp {
  background: #CCC;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.hp-bar {
  display: block;
  height: 100%;
}

.hp-green { background: #38A169; }
.hp-yellow { background: #D69E2E; }
.hp-red { background: #E53E3E; }

/* 相手サイド */
.poke-enemy {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.poke-enemy img {
  width: 110px;
  image-rendering: pixelated;
}

/* 自分サイド */
.poke-player {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.poke-player img {
  width: 120px;
  image-rendering: pixelated;
}

/* リンクと画像調整 */
.poke-battle a {
  display: inline-block;
}
.poke-battle a:hover {
  opacity: 0.85;
}
.poke-battle a img {
  margin: 0 !important;
  border: none !important;
  width: 120px;
  image-rendering: pixelated;
}

/* ちょもテック発話ウィンドウ */
.dex-talk {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}
/* ===========================
   トレーナープロフィール
   （カード上部UI）
=========================== */

.trainer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #E8E0C8;
  border: 2px solid #6B5A3A;
  border-radius: 10px;
  box-shadow: 2px 2px 0 #C0B090;
}

/* アイコン枠 */
.trainer-icon {
  width: 48px;
  height: 48px;
  background: #F8F0D8;
  border: 2px solid #6B5A3A;
  border-radius: 6px;
  box-shadow: inset 2px 2px 0 #E0D4B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 画像を使う場合 */
.trainer-icon img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

/* 情報テキスト */
.trainer-info {
  font-size: 13.5px;
  color: #3A2F1C;
  line-height: 1.4;
}

.trainer-name {
  font-weight: bold;
  margin-bottom: 2px;
}

.trainer-area {
  font-size: 12.5px;
  opacity: 0.85;
}
/* ===========================
   設定ページ：ON / OFF演出
=========================== */

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px dashed #C0A060;
  font-size: 13.5px;
}

.option-item:last-child {
  border-bottom: none;
}

.option-label {
  color: #3A2F1C;
}

/* スイッチ本体（ダミー） */
.option-switch {
  min-width: 44px;
  text-align: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 999px;
  border: 2px solid #6B5A3A;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.6);
}

/* ON状態 */
.option-switch.on {
  background: #88B060;
  color: #1F3A1F;
}

/* OFF状態 */
.option-switch.off {
  background: #D8C8A8;
  color: #6B5A3A;
  opacity: 0.8;
}

/* 注釈 */
.option-note {
  margin-top: 10px;
  font-size: 12px;
  color: #6B5A3A;
  opacity: 0.9;
}
/* =====================================================
   CHOMOTECH TALK WINDOW（GBA・サイバーブルーVer.）
===================================================== */

.chomo-dex-talk {
  background: #E3F2FD;        /* 液晶のベース色（明るい青） */
  color: #01579B;             /* 読みやすい濃い青 */
  padding: 22px 24px;
  margin: 25px 0;
  font-family: 'DotGothic16', sans-serif;
  position: relative;
  
  /* --- GBA風の二重線枠を再現 --- */
  border: 4px solid #0288D1;  /* 外側の濃い枠 */
  outline: 3px solid #E3F2FD; /* 枠の内側の白い（薄い青）余白 */
  outline-offset: -7px;
  box-shadow: 
    inset 0 0 0 7px #4FC3F7,  /* 内側の細い水色枠 */
    4px 4px 0 rgba(0,0,0,0.1); /* 外側の軽い影 */
  
  border-radius: 4px;         /* GBAっぽく、角丸はあえて控えめに */
  line-height: 1.7;
  font-size: 1.1rem;
}

/* ラベル：システムメッセージ */
.chomo-dex-talk::before {
  content: "CHOMOTECH SYSTEM";
  position: absolute;
  top: -15px;
  left: 12px;
  background: #0288D1;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
  border: 2px solid #E3F2FD;
}

/* 右下の点滅カーソル（次へボタン風） */
.chomo-dex-talk::after {
  content: "▼";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #4FC3F7;
  animation: chomo-blink 1s infinite;
}

@keyframes chomo-blink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* 強調文字 */
.chomo-dex-talk strong {
  color: #D32F2F;
  border-bottom: 2px dotted #D32F2F;
}