@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){
  /*必要ならばここにコードを書く*/
}

/* 子テーマの style.css に追記 */
:root {
  --brand-primary:   #2563EB;  /* メインカラー（青系推奨） */
  --brand-accent:    #F59E0B;  /* アクセント */
  --text-base:       #1E293B;
  --radius-box:      6px;
}

/* h2見出しを統一 */
.article h2 {
  border-left: 4px solid var(--brand-primary);
  padding-left: 12px;
  font-size: 1.3rem;
}

/* スマホ優先のフォントサイズ・行間 */
body {
  font-size: 15px;
  line-height: 1.85;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.9;
  }
}

.entry-content h2 { margin-top: 2.5em; margin-bottom: 0.8em; }
.entry-content h3 { margin-top: 2em; margin-bottom: 0.6em; }

/* H2：左ボーダー＋薄グレー背景 */
.entry-content h2 {
  border-left: 5px solid #1a73e8;
  background: #f5f8ff;
  padding: 0.6em 1em;
  border-radius: 0 6px 6px 0;
  font-size: 1.25em;
}

/* H3：下線のみ */
.entry-content h3 {
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 0.3em;
  font-size: 1.1em;
}

.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  font-size: 0.9em;
}

.entry-content code {
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.entry-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.2em 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88em;
  line-height: 1.7;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.btn-cta {
  display: inline-block;
  background: #1a73e8;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.05em;
  text-decoration: none !important;
  text-align: center;
  transition: background 0.2s;
  box-shadow: 0 3px 8px rgba(26, 115, 232, 0.35);
}

.btn-cta:hover { background: #1557b0; }

.btn-wrap {
  text-align: center;
  margin: 2em 0;
}

/* ポイントボックス（青） */
.box-point {
  border: 2px solid #1a73e8;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin: 1.5em 0;
  background: #f5f8ff;
}

.box-point::before {
  content: "✅ ポイント";
  display: block;
  font-weight: bold;
  color: #1a73e8;
  margin-bottom: 0.5em;
  font-size: 0.95em;
}

/* 注意ボックス（オレンジ） */
.box-caution {
  border: 2px solid #e8711a;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin: 1.5em 0;
  background: #fff8f5;
}

.box-caution::before {
  content: "⚠️ 注意";
  display: block;
  font-weight: bold;
  color: #e8711a;
  margin-bottom: 0.5em;
  font-size: 0.95em;
}