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

/************************************
** NetWatcher デザイン
** 前提：Cocoon設定 → スキン「なし」
** 白いカードを薄いラベンダーの背景に並べる。差し色はピンク→紫→水色のグラデーション
** フォントは端末に入っているものだけを使う（Webフォントを読み込まない）
************************************/

/*色と文字*/
:root {
  --nw-bg: #f6f4fc;
  --nw-surface: #ffffff;
  --nw-soft: #f1edfb;
  --nw-ink: #1e1b2e;
  --nw-text: #34304a;
  --nw-sub: #7b7792;
  --nw-line: #e7e2f3;
  --nw-accent: #7a52f4;
  --nw-accent-deep: #5b34d6;
  --nw-pink: #ff4f9a;
  --nw-sky: #33c2ff;
  --nw-grad: linear-gradient(120deg, #ff4f9a 0%, #9b5cff 52%, #33c2ff 100%);
  --nw-radius: 16px;
  --nw-shadow: 0 1px 2px rgba(40, 24, 90, 0.06), 0 6px 18px rgba(40, 24, 90, 0.06);
  --nw-shadow-hover: 0 12px 30px rgba(96, 60, 220, 0.18);

  /*Cocoon本体の変数を上書き*/
  --cocoon-default-font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, "Noto Sans JP", sans-serif;
  --cocoon-text-color: var(--nw-text);
  --cocoon-pallid-text-color: var(--nw-sub);
  --cocoon-x-pallid-text-color: #8f8aa6;
  --cocoon-basic-border-color: var(--nw-line);
  --cocoon-thin-color: var(--nw-line);
  --cocoon-x-thin-color: var(--nw-soft);
  --cocoon-xx-thin-color: var(--nw-soft);
  --cocoon-xxx-thin-color: var(--nw-soft);
  --cocoon-basic-border-radius: 12px;
  --cocoon-badge-border-radius: 999px;
}

body {
  background-color: var(--nw-bg);
  color: var(--nw-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--nw-accent);
}

a:hover {
  color: var(--nw-accent-deep);
}

::selection {
  background: #ffd6ea;
  color: var(--nw-ink);
}

.content {
  margin-top: 28px;
}

/*一覧の画面は白い枠を使わず、背景の上にカードを直接並べる*/
.main {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/************************************
** ヘッダー（tmp/header-container.php）
** 1段目：ロゴと検索欄 / 2段目：グループのボタン
************************************/
.nw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nw-line);
}

.admin-bar .nw-header {
  top: 32px;
}

.nw-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--nw-grad);
}

.nw-header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  background: transparent;
}

.nw-header .logo {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: inherit;
  line-height: 1;
}

.nw-header .site-name-text-link,
.nw-header .site-name-text-link:hover {
  text-decoration: none;
}

.nw-header .site-name-text {
  display: inline-block;
  background: var(--nw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Arial Black", "Helvetica Neue", Arial, var(--cocoon-default-font);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/*幅の狭い画面では、ロゴの残りの幅まで縮める*/
.nw-search {
  position: relative;
  flex: 0 1 360px;
  min-width: 0;
  margin-left: auto;
}

.nw-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--nw-sub);
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.nw-search .nw-search-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 16px 0 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: var(--nw-soft);
  color: var(--nw-ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nw-search .nw-search-input:focus {
  border-color: var(--nw-accent);
  background-color: var(--nw-surface);
}

/*グループのボタン：PCは折り返して全部見せる。タブレット・スマホは横にスクロール*/
.nw-groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nw-groups-list::-webkit-scrollbar {
  display: none;
}

.nw-group {
  flex: 0 0 auto;
}

.nw-group a {
  display: block;
  padding: 7px 16px;
  border-radius: 999px;
  background-color: var(--nw-soft);
  color: var(--nw-text);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nw-group a:hover {
  background-color: #e4dbff;
  color: var(--nw-accent-deep);
}

.nw-group.is-current a {
  background: var(--nw-grad);
  color: #fff;
}

/************************************
** カード（共通）
************************************/
.nw-card {
  min-width: 0;
  background-color: var(--nw-surface);
  border-radius: var(--nw-radius);
  box-shadow: var(--nw-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nw-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nw-shadow-hover);
}

.nw-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--nw-ink);
  text-decoration: none;
}

.nw-card-link:hover {
  color: var(--nw-ink);
}

.nw-card-thumb {
  position: relative;
  margin: 0;
  background-color: var(--nw-soft);
}

.nw-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nw-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.nw-card-title {
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.nw-card:hover .nw-card-title {
  color: var(--nw-accent-deep);
}

/*グループ名と日時*/
.nw-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: auto;
  font-size: 12px;
  line-height: 1.4;
}

.nw-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--nw-soft);
  color: var(--nw-accent-deep);
  font-weight: bold;
}

.nw-time {
  color: var(--nw-sub);
}

/*順位（画像の左上）。1〜3位はグラデーション*/
.nw-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(30, 27, 46, 0.78);
  color: #fff;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nw-rank-1,
.nw-rank-2,
.nw-rank-3 {
  background: var(--nw-grad);
}

/*カードの並べ方*/
.nw-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.nw-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nw-cards-rank {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nw-sec-new .nw-cards-list {
  margin-top: 20px;
}

/************************************
** セクションの見出し
************************************/
.nw-sec {
  margin-top: 48px;
}

.nw-front > .nw-sec:first-child,
.archive-title + .nw-sec,
.search-title + .nw-sec {
  margin-top: 0;
}

.nw-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.nw-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nw-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.nw-sec-title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--nw-grad);
}

.nw-sec-more {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--nw-surface);
  box-shadow: var(--nw-shadow);
  color: var(--nw-accent-deep);
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

.nw-sec-more:hover {
  background-color: var(--nw-accent);
  color: #fff;
}

.nw-sec-more .fa {
  margin-left: 6px;
}

/*もっと見る（一覧の下のボタン）*/
.nw-more {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  padding: 13px 36px;
  border-radius: 999px;
  background: var(--nw-grad);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(155, 92, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nw-more:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(155, 92, 255, 0.4);
}

.nw-more .fa {
  margin-left: 8px;
}

/************************************
** トップページ
************************************/
/*新着：先頭の1件を大きく、続く4件を右に*/
.nw-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/*画像を枠いっぱいに広げる（画像の元の大きさで枠が伸びないよう、画像は枠に重ねて置く）*/
.nw-card-lead .nw-card-thumb,
.nw-card-mini .nw-card-thumb {
  min-height: 84px;
}

.nw-card-lead .nw-card-thumb img,
.nw-card-mini .nw-card-thumb img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

/*右の4件と高さをそろえる時は、画像を伸ばして余白を作らない*/
.nw-card-lead .nw-card-thumb {
  flex: 1 1 auto;
  min-height: 280px;
}

.nw-card-lead .nw-card-body {
  flex: 0 0 auto;
  padding: 18px 22px 22px;
}

.nw-card-lead .nw-card-title {
  font-size: 22px;
  line-height: 1.5;
}

.nw-lead-side {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/*右側の小さいカード：画像左・タイトル右*/
.nw-card-mini .nw-card-link {
  flex-direction: row;
  align-items: stretch;
}

.nw-card-mini .nw-card-thumb {
  flex: 0 0 38%;
}

.nw-card-mini .nw-card-body {
  gap: 6px;
  padding: 10px 14px;
}

.nw-card-mini .nw-card-title {
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

/************************************
** 一覧の見出し（グループ名・タグ名・検索語）
************************************/
.archive-title,
.search-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  padding: 28px 32px;
  border: 0;
  border-radius: 20px;
  background: var(--nw-grad);
  box-shadow: 0 10px 30px rgba(155, 92, 255, 0.25);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
}

.archive-title .fa,
.search-title .fa {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75em;
}

/*ページ送り*/
.pagination {
  margin-top: 36px;
}

.page-numbers {
  border: 0;
  border-radius: 999px;
  background-color: var(--nw-surface);
  box-shadow: var(--nw-shadow);
  color: var(--nw-ink);
  font-weight: bold;
}

.pagination .current {
  background: var(--nw-grad);
  color: #fff;
}

a.page-numbers:hover {
  background-color: var(--nw-soft);
  color: var(--nw-accent-deep);
}

.pagination-next-link {
  border: 0;
  border-radius: 999px;
  background: var(--nw-grad);
  color: #fff;
  font-weight: bold;
}

.pagination-next-link:hover {
  color: #fff;
  opacity: 0.9;
}

/************************************
** 記事ページ
** 白い枠の1列。読みやすい幅にして中央に置く
************************************/
body.single .content .main,
body.page .content .main {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 56px;
  border-radius: 24px;
  background-color: var(--nw-surface);
  box-shadow: var(--nw-shadow);
}

.entry-title {
  margin: 0 0 18px;
  padding: 0;
  color: var(--nw-ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.eye-catch-wrap {
  margin-bottom: 16px;
}

.eye-catch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.eye-catch .cat-label,
.cat-label {
  top: 12px;
  left: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--nw-grad);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  opacity: 1;
}

.date-tags {
  margin: 12px 0 0;
  color: var(--nw-sub);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.date-tags .post-date,
.date-tags .post-update {
  margin-right: 1em;
  font-size: inherit;
}

/*本文*/
.entry-content {
  margin-top: 1.8em;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.entry-content > * {
  line-height: 1.95;
}

/*1文ごとに段落が分かれるので、段落の間は詰める*/
.entry-content > p,
.entry-content > .wp-block-paragraph {
  margin-top: 0;
  margin-bottom: 1.05em;
}

.entry-content a {
  color: var(--nw-accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(122, 82, 244, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.entry-content a:hover {
  text-decoration-color: var(--nw-accent);
}

.entry-content img {
  border-radius: 12px;
}

.article h2 {
  position: relative;
  margin: 2.6em 0 1.2em;
  padding: 0 0 0.55em;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--nw-ink);
  font-size: 1.35em;
  font-weight: 800;
  line-height: 1.5;
}

.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff4f9a 0%, #9b5cff 30%, var(--nw-line) 30%);
}

.article h2::before {
  content: none;
}

.article h3 {
  position: relative;
  margin: 2.2em 0 1em;
  padding: 0 0 0 1.1em;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--nw-ink);
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.55;
}

.article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--nw-grad);
}

.article h3::after {
  content: none;
}

.article h4 {
  margin: 1.8em 0 0.8em;
  padding: 0;
  border: 0;
  font-size: 1.05em;
}

/*箇条書き（SNSの反応など）*/
.article ul,
.article ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.article ul li,
.article ol li {
  margin: 0 0 0.45em;
  line-height: 1.8;
}

.article ul li::marker,
.article ol li::marker {
  color: var(--nw-pink);
  font-weight: bold;
}

/*引用（発言・声明など）*/
.article blockquote {
  position: relative;
  margin: 0 0 1.6em;
  padding: 1.2em 1.4em;
  border: 0;
  border-left: 4px solid var(--nw-accent);
  border-radius: 0 14px 14px 0;
  background-color: var(--nw-soft);
  color: #3d3858;
  font-size: 0.95em;
}

.article blockquote::before,
.article blockquote::after {
  content: none;
}

.article blockquote p {
  margin: 0 0 0.6em;
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.article blockquote cite {
  display: block;
  margin-top: 0.6em;
  color: var(--nw-sub);
  font-size: 0.85em;
  font-style: normal;
}

/*X の埋め込み（読み込まれるまでの表示）*/
.article blockquote.twitter-tweet {
  max-width: 550px;
  margin: 0 auto 1.6em;
  padding: 16px 18px;
  border: 1px solid #cfd9de;
  border-radius: 14px;
  background-color: var(--nw-surface);
  color: var(--nw-text);
  font-size: 15px;
}

.wp-block-embed-twitter .wp-block-embed__wrapper,
.twitter-tweet-rendered {
  margin-left: auto !important;
  margin-right: auto !important;
}

/*目次*/
.toc {
  display: block;
  width: 100%;
  margin: 0 0 2em;
  padding: 1.1em 1.4em 1.2em;
  border: 0;
  border-radius: 16px;
  background-color: var(--nw-soft);
  font-size: 0.9em;
}

.toc-title {
  padding: 0 0 0.4em;
  color: var(--nw-ink);
  font-weight: bold;
  text-align: left;
}

.toc-title .fa {
  margin-right: 0.4em;
  color: var(--nw-accent);
}

.toc .toc-list {
  margin: 0;
}

.toc .toc-list li {
  margin: 0.25em 0;
}

.toc a {
  color: var(--nw-text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--nw-accent-deep);
  text-decoration: underline;
}

/*カテゴリー・タグ（本文下）*/
.entry-categories-tags {
  margin: 0 0 1.6em;
}

.cat-link,
.tag-link {
  border-radius: 999px;
  font-weight: bold;
}

.cat-link {
  padding: 4px 12px;
  background: var(--nw-grad);
  color: #fff;
}

.cat-link:hover {
  color: #fff;
  opacity: 0.9;
}

.tag-link {
  padding: 3px 12px;
  border: 0;
  background-color: var(--nw-soft);
  color: var(--nw-accent-deep);
}

.tag-link:hover {
  background-color: #e4dbff;
  color: var(--nw-accent-deep);
}

/*シェア・フォロー：丸みのある小さめのボタン*/
.sns-share-message,
.sns-follow-message {
  color: var(--nw-ink);
  font-size: 14px;
  font-weight: bold;
}

.sns-share .sns-buttons a.sns-button,
.sns-follow .sns-buttons a.sns-button {
  border-radius: 999px;
}

.article-footer {
  padding-top: 1.4em;
  border-top: 1px solid var(--nw-line);
}

.footer-meta {
  color: var(--nw-sub);
  font-size: 13px;
}

.footer-meta a {
  color: var(--nw-sub);
  text-decoration: none;
}

/************************************
** 記事下（コメント・このグループの他の話題・前後の記事）
************************************/
.related-entry-heading,
.comment-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2.4em 0 1em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nw-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.related-entry-heading::before,
.comment-title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: var(--nw-grad);
}

.related-entry-heading::after,
.comment-title::after {
  content: none;
}

/*コメント欄：薄い色の枠にまとめる*/
.comment-area {
  margin-top: 2.4em;
  padding: 4px 24px 24px;
  border-radius: 18px;
  background-color: var(--nw-soft);
}

.comment-area .comment-title {
  margin-top: 1.2em;
}

.comment-reply-title {
  margin: 0.6em 0 0.4em;
  border: 0;
  color: var(--nw-ink);
  font-size: 16px;
  font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  background-color: var(--nw-surface);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--nw-accent);
  outline: none;
}

.comment-form input[type="submit"],
.comment-btn {
  border: 0;
  border-radius: 999px;
  background: var(--nw-grad);
  color: #fff;
  font-weight: bold;
}

.comment-form input[type="submit"]:hover {
  opacity: 0.9;
}

.related-entries .nw-cards {
  margin-top: 4px;
}

.related-entries .nw-card-title {
  font-size: 14px;
}

.nw-empty {
  color: var(--nw-sub);
  font-size: 14px;
}

.pager-post-navi a {
  border-radius: 14px;
  color: var(--nw-ink);
}

.pager-post-navi a:hover {
  background-color: var(--nw-soft);
  color: var(--nw-accent-deep);
}

.pager-post-navi a .iconfont {
  color: var(--nw-accent);
}

/*パンくず*/
.breadcrumb {
  color: var(--nw-sub);
  font-size: 12px;
  line-height: 1.7;
}

.breadcrumb a {
  color: var(--nw-sub);
}

.breadcrumb a:hover {
  color: var(--nw-accent-deep);
}

/************************************
** フッター
************************************/
/*Cocoon設定のフッター背景色より強くするため #footer で指定*/
#footer {
  margin-top: 64px;
  border-top: 0;
  background: var(--nw-surface);
  color: var(--nw-text);
}

#footer::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--nw-grad);
}

#footer a:not(.sns-button),
#footer .footer-title {
  color: var(--nw-ink);
}

#footer .site-name-text {
  background: var(--nw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Arial Black", "Helvetica Neue", Arial, var(--cocoon-default-font);
  font-size: 22px;
  font-weight: 900;
}

#footer .navi-footer-in a {
  color: var(--nw-text);
  font-size: 13px;
}

#footer .navi-footer-in a:hover {
  background-color: transparent;
  color: var(--nw-accent-deep);
}

.copyright {
  color: var(--nw-sub);
  font-size: 12px;
}

/*トップへ戻る*/
.go-to-top-button {
  border-radius: 50%;
  background: var(--nw-grad);
  color: #fff;
}

/*スマホ下部のメニューボタン*/
.mobile-menu-buttons {
  border-top: 1px solid var(--nw-line);
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 16px rgba(40, 24, 90, 0.08);
  color: var(--nw-ink);
}

.mobile-menu-buttons .menu-icon {
  color: var(--nw-accent);
}

.mobile-menu-buttons .menu-caption {
  color: var(--nw-ink);
}

.menu-content {
  background-color: var(--nw-surface);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1255px以下：Cocoon がサイト幅を画面幅に合わせるので、左右に余白を取る*/
@media screen and (max-width: 1255px){
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/*1023px以下*/
@media screen and (max-width: 1023px){
  .admin-bar .nw-header {
    top: 0;
  }

  .nw-groups-list {
    flex-wrap: nowrap;
  }

  .nw-card-lead .nw-card-thumb {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .nw-cards:not(.nw-cards-scroll) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nw-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .nw-lead-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  /*人気の話題とグループごとの新着は、横にスクロール*/
  .nw-cards-scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 40%;
    margin: 0 -20px;
    padding: 4px 20px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }

  .nw-cards-scroll::-webkit-scrollbar {
    display: none;
  }

  .nw-cards-scroll > .nw-card {
    scroll-snap-align: start;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .content {
    margin-top: 20px;
  }

  .nw-header-bar {
    gap: 14px;
    height: 58px;
  }

  .nw-header .site-name-text {
    font-size: 24px;
  }

  .nw-cards {
    gap: 14px;
  }

  .nw-cards:not(.nw-cards-scroll) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-cards-scroll {
    grid-auto-columns: 58%;
  }

  body.single .content .main,
  body.page .content .main {
    padding: 32px 22px;
    border-radius: 20px;
  }

  .entry-title {
    font-size: 25px;
  }

  .archive-title,
  .search-title {
    padding: 22px 22px;
    font-size: 24px;
  }
}

/*600px以下：一覧のカードは画像左・タイトル右の横長にする*/
@media screen and (max-width: 600px){
  .nw-cards.nw-cards-list,
  .nw-lead-side {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .nw-cards-list .nw-card-link {
    flex-direction: row;
    align-items: stretch;
  }

  .nw-cards-list .nw-card-thumb,
  .nw-card-mini .nw-card-thumb {
    flex: 0 0 40%;
  }

  .nw-cards-list .nw-card-thumb {
    min-height: 84px;
  }

  .nw-cards-list .nw-card-thumb img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .nw-cards-list .nw-card-body {
    gap: 6px;
    padding: 10px 12px;
  }

  .nw-cards-list .nw-card-title {
    font-size: 14px;
    line-height: 1.5;
  }

  .nw-cards-scroll {
    grid-auto-columns: 72%;
  }

}

/*480px以下*/
@media screen and (max-width: 480px){
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nw-cards-scroll {
    margin: 0 -14px;
    padding: 4px 14px 16px;
    scroll-padding: 0 14px;
  }

  .nw-header-bar {
    height: 54px;
  }

  .nw-header .site-name-text {
    font-size: 21px;
  }

  .nw-search .nw-search-input {
    height: 36px;
    font-size: 13px;
  }

  .nw-group a {
    padding: 6px 13px;
    font-size: 13px;
  }

  .nw-sec {
    margin-top: 40px;
  }

  .nw-sec-title {
    font-size: 19px;
  }

  .nw-card-lead .nw-card-body {
    padding: 14px 16px 16px;
  }

  .nw-card-lead .nw-card-title {
    font-size: 18px;
  }

  body.single .content .main,
  body.page .content .main {
    margin-left: -14px;
    margin-right: -14px;
    padding: 24px 16px;
    border-radius: 0;
    box-shadow: none;
  }

  .entry-title {
    font-size: 22px;
  }

  .entry-content {
    font-size: 16.5px;
    letter-spacing: 0.01em;
  }

  .entry-content > * {
    line-height: 1.85;
  }

  .article h2 {
    font-size: 19px;
  }

  .article h3 {
    font-size: 17px;
  }

  .comment-area {
    padding: 4px 16px 18px;
  }

  .related-entry-heading,
  .comment-title {
    font-size: 18px;
  }

  .archive-title,
  .search-title {
    padding: 18px 18px;
    border-radius: 16px;
    font-size: 21px;
  }
}
