/*
 Theme Name:     Twenty Twenty-Five Child
 Description:    Twenty Twenty-Five の子テーマ
 Template:       twentytwentyfive
 Version:        1.0
 License:        GNU General Public License v2 or later
 License URI:    https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:    twenty-twenty-five-child
*/

/* ここから先にCSSを書く */

/* --------------------------------------------------
  基本：フォントと本文レイアウト
-------------------------------------------------- */
body {
  font-family:  "Noto Sans JP", "M PLUS 1p",  "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #222222;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* 本文全体を中央に固定（ズレ補正） */
.wp-block-post-content {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1em;
  padding-right: 1em;
  box-sizing: border-box;
}

/* 念のため main や article にも補正 */
main, article {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* 段落やリスト下の余白 */
.entry-content p {
  margin-bottom: 1.8em;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.8em;
}

/* --------------------------------------------------
  見出し：H1〜H4の軽め装飾
-------------------------------------------------- */
h1 {
  border-bottom: 3px solid #005BA1;
  padding-bottom: 0.5em; 
  margin-bottom: 1em;
  font-size: 2rem;
  line-height: 1.4;
  color: #222222; 
}

h2 {
  border-bottom: 2px solid #005BA1;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
  margin-bottom: 1.2em;
  line-height: 1.4;
}

h3 {
  border-left: 4px solid #0073CE;
  margin-top: 0.8em;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  padding-left: 0.8em;
  line-height: 1.4;

}

h4 {
  border-left: 3px dashed #0073CE;
  padding-left: 0.8em;
  margin-left: 0;
  line-height: 1.4;
}

blockquote {
  font-size: 1rem;
  line-height: 1.8;
  color: #222222;
  border-left: 4px solid #CCCCCC;
  padding-left: 1.2em;
  margin: 1.8em 0;
  background: #f9f9f9; 
  font-style: normal;
}

blockquote cite {
  display: block; 
  font-size: 0.9em;
  color: #555555;
  margin-top: 0.8em;
  text-align: right;
  font-style: normal;
}

strong {
  font-weight: 700;
}

.entry-content ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0em;
}

/* インラインコード（例：<code>） */
code {
  background-color: #F2F7FB; color: #222222;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.95em;
}

pre.wp-block-code {
  background-color: #fafafa;
  display: block;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.95em;
  line-height: 1.5;
  border: 1px solid #999;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
  display: inline-block;
  min-width: 1.75em;
  padding: 0.5em;
  margin: 0.25em;
  text-align: center;
  border: 1px solid #005BA1; /* WordPressブルー */
  border-radius: 4px;
  text-decoration: none;
  background: #ffffff; /* 白背景 */
  color: #005BA1;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: all 0.3s ease;
}

.wp-block-query-pagination-numbers a:hover {
  background: #004B88; /* 濃いめの青（ホバー時） */
  color: #ffffff;
  border-color: #004B88;
}

.wp-block-query-pagination-numbers .current {
  background: #005BA1;
  color: #ffffff;
  border-color: #005BA1;
  font-weight: bold;
}

.wp-block-query-pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  line-height: 1.5;
}

.wp-block-embed,
.wp-block-embed__wrapper,
.wp-embed,
figure.wp-block-embed {
  overflow: hidden !important;
}

nav.breadcrumb {
  font-size: 0.85rem;
  color: #666;
  max-width: var(--wp--style--global--wide-size, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0 1.5rem 0;
  line-height: 1.6;
}

nav.breadcrumb .separator {
  margin: 0 0.5em;
  color: #aaa;
}

nav.breadcrumb span:last-child {
  font-weight: bold;
  color: #333;
}

/* 続きを読むボタンの中央寄せ */
a.more-link {
  display: inline-block;
  margin: 2em auto;
  padding: 0.6em 1.6em;
  background-color: #005BA1; /* 緑系 */
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  border-radius: 9999px; /* pill型（角丸） */
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

a.more-link:hover {
  background-color: #004B88;
}

a.more-link {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

div.article-meta-info {
  color: #666;
  line-height: 1.2;
}

/* 送信ボタンのスタイル（ホバー時に真っ白になるのを防止） */
.wp-element-button,
.wp-block-button__link {
  background-color: var(--wp--preset--color--button-bg, #005BA1);
  color: var(--wp--preset--color--button-text, #ffffff);
  border: none;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  background-color: #004B88;
  color: #ffffff;
}

/* ─────────────────────────────────────────
   検索フォーム & カテゴリードロップダウン 完全統一
───────────────────────────────────────── */

/* 検索フォームの枠とレイアウト */
.wp-block-search__inside-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  height: 50px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 検索入力欄 */
.wp-block-search__inside-wrapper input.wp-block-search__input {
  flex: 1;
  border: none;
  background-color: inherit;
  padding: 0 0.75em;
  height: 100%;
  font-size: 1rem;
  box-sizing: border-box;
}

/* 検索ボタン */
.wp-block-search__inside-wrapper .wp-block-search__button {
  flex: 0 0 44px;
  border: none;
  background-color: #005BA1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0;
  transition: background-color .3s ease;
}
.wp-block-search__inside-wrapper .wp-block-search__button:hover {
  background-color: #004B88;
}

/* カテゴリードロップダウンの枠とレイアウト */
.wp-block-categories-dropdown {
  display: inline-flex;
  align-items: center;
  overflow: visible;
  margin: 0;
  vertical-align: middle;
  box-sizing: border-box;
  width: 100%;

}

/* セレクト本体 */
.wp-block-categories-dropdown select.postform {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  padding: 0 0.75em;
  height: 50px;
  font-size: 1rem;
  line-height: 1.2;
  appearance: auto;
  background-image: none;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
}

ul.simpletoc-list {
  padding: 1em 0.5em 1em 2.4em;
  background-color: #F2F7FB; 
  border: 1px solid #0073CE;
  color: #222222;
  border-radius: 6px;
  font-size: 0.95em;
}

/* ─────────────────────────────────────────
   コメントフォーム: タイポグラフィの統一
───────────────────────────────────────── */
.comment-notes,
.comment-form .comment-notes,
.comment-form label,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  font-size: 1rem;
  line-height: 1.6;
}

/* プレースホルダ */
.comment-form ::placeholder {
  font-size: 1rem;
  opacity: 0.6;
}


@media (max-width: 768px) {
  .wp-block-columns,
  .wp-block-column,
  .entry-content,
  .site-main {
    overflow-x: hidden;
    max-width: 100%;
  }

*, *::before, *::after {
  box-sizing: border-box;
}

img, iframe, input, select, table {
  max-width: 100%;
  width: 100%;
  display: block;
}

  img.custom-logo {
    width: 240px !important;
    height: auto;
    max-width: 100%;
  }

[class*="wp-block"] {
  max-width: 100vw;
}

   body {
     font-size: 1em;
     overflow-x: hidden;
   }

  .entry-content {
     font-size: 1em !important;
  }

  .entry-header {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .wp-block-group.is-layout-constrained {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box;
  }
  
  header h1 {
     font-size: 1.4rem;
  }

  article h2 {
     font-size: 1.5rem;
  }

  article h3 {
     font-size: 1.4rem;
  }

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: 0.95em;
  line-height: 1.6;
}

.comment-form-cookies-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.3em;
}

.comment-form-cookies-consent label {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
}

}