@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* 用語サイトでは一覧サムネイルを使用しない */
.entry-card-thumb,
.related-entry-card-thumb,
.new-entry-card-thumb,
.popular-entry-card-thumb {
  display: none !important;
}

.entry-card-content,
.related-entry-card-content,
.new-entry-card-content,
.popular-entry-card-content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* 辞書型カテゴリ一覧：カテゴリページは完全な1カラム */
.category .sidebar,
.category #sidebar {
  display: none !important;
}
.category .content-in,
.category #content-in {
  display: block !important;
}
.category .main,
.category #main,
.category .gemukoto-dictionary-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

/* 辞書型カテゴリ一覧 */
.gemukoto-dictionary-main {
  width: 100% !important;
  max-width: 920px;
  margin: 0 auto;
}

.gemukoto-dictionary-heading {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
}

.gemukoto-term-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 18px;
}

.gemukoto-term-link {
  display: block;
  padding: 10px 6px;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  font-weight: 600;
}

.gemukoto-term-link:hover {
  text-decoration: underline;
}

.gemukoto-index-section {
  margin-top: 28px;
}

.gemukoto-index-heading {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #222;
  font-size: 20px;
}

.gemukoto-kana-group {
  margin-top: 20px;
}

.gemukoto-kana-heading {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

/* 辞書型の個別用語ページ */
.single .sidebar,
.single #sidebar {
  display: none !important;
}

.single .content-in,
.single #content-in {
  display: block !important;
}

.gemukoto-single-main {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  float: none !important;
}

.gemukoto-entry {
  padding: 8px 0 24px;
}

.gemukoto-breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
}

.gemukoto-entry-term {
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.35;
}

.gemukoto-entry-content h2,
.gemukoto-related-terms h2 {
  margin: 32px 0 12px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid #d9d9d9;
  background: none;
  font-size: 21px;
}

.gemukoto-entry-content p {
  margin: 0 0 16px;
  line-height: 1.9;
}

.gemukoto-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.gemukoto-related-list a {
  text-decoration: none;
}

.gemukoto-related-list a:hover {
  text-decoration: underline;
}

/* 用語辞書ではブログ用の目次を表示しない */
.single .gemukoto-entry .toc {
  display: none !important;
}

/* ホーム：ブログではなく辞書の入口として表示 */
body.home {
  background: #fff;
}

.gemukoto-home {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 24px 64px;
}

.gemukoto-home-hero {
  margin-bottom: 42px;
}

.gemukoto-home-hero h1 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.4;
}

.gemukoto-home-search {
  display: flex;
  width: 100%;
  max-width: 680px;
  gap: 8px;
}

.gemukoto-home-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  font-size: 16px;
}

.gemukoto-home-search button {
  padding: 0 22px;
  border: 1px solid #222;
  border-radius: 0;
  background: #222;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.gemukoto-home-section {
  margin-top: 34px;
}

.gemukoto-home-section h2 {
  margin: 0 0 14px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 2px solid #222;
  background: none;
  font-size: 20px;
}

.gemukoto-game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 20px;
}

.gemukoto-game-list a {
  display: block;
  padding: 12px 6px;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  font-weight: 600;
}

.gemukoto-game-list a:hover {
  text-decoration: underline;
}

.home .sidebar,
.home #sidebar,
.home .sns-share,
.home .sns-follow,
.home .date-tags,
.home .post-date,
.home .toc,
.home .entry-title,
.home .article-header,
.home .article-footer {
  display: none !important;
}

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

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

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