@charset "UTF-8";

.main {
  width: 880px;
}
.content {
  background-color: #f5f5f5;
  margin-top: 0;
  padding-top: 20px;
}
.wrap {
  width: 1280px;
}
.content .content-in .main ol,
.content .content-in .main ul {
  list-style-type: revert;
}
.content .content-in .main li {
  list-style-type: revert;
}

@media screen and (max-width: 1299px) {
  .wrap {
    width: auto;
  }
  .content-in {
    padding: 0 10px;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1299px) {
  .content-in .main {
    width: 67.4%;
  }
  .content-in .sidebar {
    padding: 1.5%;
    width: 30%;
  }
}
/* 261102 記事ページのヘッダー：768px 以上は項目を途中で折り返さない（フィリピン・インドネシアの layout.css の header_main と同じ値。WP のヘッダーは class が無く layout.css の条件に当たらない） */
@media screen and (min-width: 768px) {
  #header:not(.header_biz) #pnav > li a,
  #header:not(.header_biz) #pnav > li a span {
    white-space: nowrap;
  }
  #header:not(.header_biz) .siteid {
    white-space: normal;
    min-width: 190px;
  }
  #header:not(.header_biz) .siteid h1,
  #header:not(.header_biz) .siteid .h1 {
    word-break: auto-phrase;
  }
}
@media screen and (min-width: 768px) and (max-width: 1180px) {
  #header:not(.header_biz) #header_nav {
    padding-left: 12px;
  }
  #header:not(.header_biz) #pnav > li {
    margin-right: 10px;
  }
  #header:not(.header_biz) #pnav > li:not(.pnav_new) > a {
    font-size: 13px;
  }
  #header:not(.header_biz) #pnav > li a.top_menu span {
    font-size: 15px;
  }
  #header:not(.header_biz) #pnav > li a.top_menu {
    width: clamp(84px, calc(50vw - 340px), 185px);
    min-width: max-content;
    padding: 0 10px;
  }
  #header:not(.header_biz) #pnav > li a.top_menu_new {
    margin-right: 8px;
  }
  #header:not(.header_biz) #pnav > li a.top_menu img {
    width: auto;
    height: 20px;
    margin-right: 6px;
  }
}
@media screen and (min-width: 768px) and (max-width: 859px) {
  #header:not(.header_biz) .siteid {
    min-width: 150px;
  }
  #header:not(.header_biz) .logo img {
    width: 150px;
  }
  #header:not(.header_biz) #pnav > li a.top_menu img {
    display: none;
  }
}

.widget h2 {
  font-size: 16px;
}
.sidebar h2, .sidebar h3 {
  background-color: #0e6aa0;
  color: #fff;
  margin: 0;
}
.sidebar .widget-sidebar .wp-block-group ul, .sidebar .widget-sidebar .wp-block-group ol {
  border: 1px solid #ddd;
  padding: 10px;
}
.content-in {
  font-size: 15px;
  margin-bottom: 30px;
}
.widget_block ul li a {
  padding: 0;
}
/* 261119 Cocoon 2.9.6.3 の `:is(.is-layout-flow, .is-layout-constrained) > * { margin-block-start: 0 }` が
   WordPress の block gap（24px）を打ち消すため、サイドバー「最近の投稿」の項目の区切りが無くなる。
   上の `padding: 0` と組み合わせて行送りだけが続く状態になるので、2.6.8.4 と同じ 24px を入れ直す */
.widget_block .wp-block-latest-posts__list > li + li {
  margin-top: 24px;
}
/* 261119 Cocoon 2.9.6.3 は入力欄の指定を `font-size: var(--cocoon-default-text-size)`（18px）から
   `font-size: inherit` に変えた。サイドバーの検索は親（.content-in の 15px）を継ぐため
   18px → 15px に小さくなるので、2.6.8.4 と同じ 18px に戻す
   （iOS Safari は入力欄の文字が 16px 未満だとフォーカス時に画面を拡大するため、16px 以上にも保つ）。
   対象は WordPress 検索ブロックの input（.wp-block-search__input）。Cocoon の .search-edit は
   モバイルメニューの検索で、配布側に 16px の指定があるため前後で変わらない */
.sidebar .wp-block-search__input {
  font-size: 18px;
}
.entry-card-snippet, .related-entry-card-snippet {
  font-size: 14px;
}

/* 261119 FAQ ページ：Cocoon 2.9.6.3 では本文の出力に余分な閉じタグ `</p>` が 44 個増える
   （閉じ 204 → 248。公開中の post・page 30 ページを比べて faq だけ）。
   ブラウザはこれを空の `<p></p>` に作り直すので（p:empty が 79 → 123）、本文側の
   `.ts-faq p:last-child { margin-bottom: 0 }` が空の段落に当たり、回答の箱（.ts-faq__at）の
   最後の段落の下余白 15.5px（SP 15px）が残る。
   空の段落は本文側で display: none のため、その直前の段落の下余白を 0 にして 2.6.8.4 と同じに戻す。
   この規則が当たるのは 40 か所（回答の箱 35・リード 1・節見出し 4）で、見た目が変わるのは回答の箱の
   35 か所だけ（リードと節見出しは 2.6.8.4 でも 0px）。空白だけの p 9 個は `p:empty` に当たらないが、
   2.6.8.4 と同じ状態なので対象外 */
.ts-faq p:has(+ p:empty) {
  margin-bottom: 0;
}

.comment-reply-link {
  color: #fff;
  background-color: #175170;
  border-radius: 3px;
  border-color: #175170;
}
.comment-form .submit {
  margin: 20px auto;
}
.pagination-next-link, .comment-btn {
  background-color: #175170;
  border: 1px solid #175170;
  border-radius: 5px;
  color: #fff;
  font-size: 1em;
  text-decoration: none;
  width: auto;
  text-align: center;
  padding: 10px 40px;
  margin: 20px auto;
  display: table;
}
input[type='submit'] {
  width: auto;
  background-color: #175170;
  border: 1px solid #175170;
  border-radius: 5px;
  color: #fff;
  padding: 10px 40px;
  margin: 20px auto;
  display: table;
}
.search-edit, input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], textarea, select {
  outline: none;
}