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

/* KOTONOHA — quiet colors, generous spacing, native Cocoon templates. */
/* The illustration includes its own title; category labels remain below the article. */
#main .eye-catch .cat-label { display: none; }
:root {
  --kotonoha-rose: #c98d86;
  --kotonoha-sage: #919a7c;
  --kotonoha-sand: #b9a083;
  --kotonoha-brown: #7f6759;
  --kotonoha-ink: #413d38;
  --kotonoha-muted: #716a63;
  --kotonoha-paper: #f8f7f4;
  --kotonoha-line: #e8e4de;
}

body.public-page {
  background: var(--kotonoha-paper);
  color: var(--kotonoha-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}
.public-page a { color: #77594c; text-underline-offset: .22em; }
.public-page a:hover { color: #654338; }
.public-page a:focus-visible,
.public-page button:focus-visible,
.public-page input:focus-visible {
  outline: 3px solid #77594c;
  outline-offset: 4px;
}

/* The supplied transparent logo is used without recoloring or cropping. */
#header-container { background: #fff; border-top: 4px solid var(--kotonoha-rose); }
#header { background: transparent; }
#header-in { padding: 26px 20px 22px; min-height: 0; }
#header .logo { margin: 0; padding: 0; font-size: 0; line-height: 1; text-align: center; }
#header .site-name { display: inline-block; padding: 0; }
#header .site-logo-image { display: block; width: 144px; max-width: 100%; height: auto; max-height: none; margin: auto; }
#header .tagline { margin: 17px 0 0; padding: 0; color: var(--kotonoha-brown); font-size: 12px; letter-spacing: .1em; }
#navi { background: #fff; border-top: 1px solid var(--kotonoha-line); border-bottom: 1px solid var(--kotonoha-line); }
#navi:not(:has(a)) { display: none; }
#navi .menu-top { justify-content: center; flex-wrap: wrap; }
#navi .menu-top > li { width: auto; height: auto; min-width: 150px; }
#navi .menu-top > li > a { padding: 15px 22px; color: var(--kotonoha-ink); font-size: 13px; line-height: 1.6; }
#navi .menu-top > li > a:hover { background: #f8f2ef; }

/* One column for reading; wider space for article lists. */
#content { margin-top: 0; }
#content-in { max-width: 1180px; width: calc(100% - 56px); margin: 0 auto; padding: 40px 0 64px; }
.no-sidebar #main { width: 100%; max-width: 100%; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; }
.public-page:not(.wp-singular):not(.single):not(.page) #main { padding: 0; background: transparent; }
.public-page:is(.wp-singular, .single, .page) #main { max-width: 860px; padding: 44px 56px; background: #fff; }
.public-page .entry-title { margin: 0 0 24px; color: var(--kotonoha-ink); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.6; letter-spacing: .03em; }
.public-page .date-tags { margin: 14px 0 28px; color: var(--kotonoha-muted); font-size: 12px; }
.public-page .entry-content { overflow-wrap: anywhere; }
.public-page .entry-content p { margin: 0 0 1.8em; line-height: 2; }
.public-page .entry-content h2 { margin: 2.6em 0 1.2em; padding: 14px 18px; background: #f6f1ec; border: 0; border-left: 3px solid var(--kotonoha-rose); color: var(--kotonoha-ink); font-size: 22px; font-weight: 600; line-height: 1.65; }
.public-page .entry-content h3 { margin: 2.2em 0 1em; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--kotonoha-line); color: var(--kotonoha-ink); font-size: 19px; line-height: 1.7; }
.public-page .entry-content h4 { border: 0; color: var(--kotonoha-ink); font-size: 17px; }
.public-page .entry-content a { text-decoration: underline; }
.public-page .entry-content img { max-width: 100%; height: auto; }
.public-page .entry-content figure { max-width: 100%; }
.public-page .entry-content figcaption { color: var(--kotonoha-muted); font-size: 12px; }
.public-page .entry-content blockquote { background: var(--kotonoha-paper); border: 0; border-left: 3px solid var(--kotonoha-sage); color: #5b544c; padding: 22px 26px; }
.public-page .toc { max-width: 100%; padding: 22px 28px; border: 1px solid var(--kotonoha-line); background: #fbfaf8; font-size: 14px; }
.public-page .toc-title { color: var(--kotonoha-brown); font-weight: 600; }
.public-page .toc a { text-decoration: none; }
.public-page .sns-share { margin-top: 32px; }
.public-page .sns-share .sns-button { background: #fff; border: 1px solid #d6cec4; color: #66574b; border-radius: 2px; }
.public-page .sns-share .sns-button:hover { background: #f3ece6; color: #413d38; }
.public-page .sns-follow .sns-button { background: #fff; border: 1px solid #d6cec4; color: #66574b; border-radius: 2px; }
.public-page .sns-follow .sns-button:hover { background: #f3ece6; color: #413d38; }
.public-page .article-footer .cat-link { background: #f3ece6; color: #625044; border: 1px solid #d6cec4; padding: 4px 9px; }
.public-page .article-footer .cat-link:hover { background: #e9dfd4; color: #413d38; }
.public-page #related-entries:not(:has(.related-entry-card-wrap)) { display: none; }
.public-page .article-footer { margin-top: 40px; }

/* Card layout uses Cocoon's existing cards, links, dates and category labels. */
.public-page #list.ect-vertical-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.public-page #list.ect-vertical-card > .entry-card-wrap { display: block; width: 100%; margin: 0; padding: 14px; border: 1px solid var(--kotonoha-line); border-top: 3px solid var(--kotonoha-rose); background: #fff; border-radius: 0; color: var(--kotonoha-ink); transition: border-color .15s; }
.public-page #list.ect-vertical-card > .entry-card-wrap:nth-of-type(3n+2) { border-top-color: var(--kotonoha-sage); }
.public-page #list.ect-vertical-card > .entry-card-wrap:nth-of-type(3n+3) { border-top-color: var(--kotonoha-sand); }
.public-page #list.ect-vertical-card > .entry-card-wrap:hover { border-right-color: var(--kotonoha-sand); border-bottom-color: var(--kotonoha-sand); border-left-color: var(--kotonoha-sand); }
.public-page #list.ect-vertical-card .entry-card { display: flex; flex-direction: column; height: 100%; }
.public-page #list.ect-vertical-card .entry-card-thumb { width: 100%; float: none; margin: 0; }
.public-page #list.ect-vertical-card .entry-card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.public-page #list.ect-vertical-card .entry-card-content { display: flex; flex-direction: column; flex: 1; margin: 0; padding: 16px 4px 8px; }
.public-page #list.ect-vertical-card .entry-card-title { margin: 0 0 16px; font-size: 17px; font-weight: 600; line-height: 1.8; }
.public-page #list.ect-vertical-card .entry-card-meta { position: static; margin-top: auto; padding-top: 4px; color: var(--kotonoha-muted); }
.public-page #list.ect-vertical-card .entry-card-info { justify-content: flex-start; }
.public-page #list .cat-label { top: 8px; left: 8px; padding: 3px 8px; border: 0; background: #fff; color: #62554a; font-size: 11px; }
.public-page #list > :not(.entry-card-wrap) { grid-column: 1 / -1; width: 100%; }
.public-page .pagination a, .public-page .pagination .current { border: 1px solid var(--kotonoha-line); border-radius: 0; }
.public-page .pagination .current { background: #eee5dc; color: var(--kotonoha-ink); }

#footer { margin: 0; padding: 34px 24px 24px; border-top: 1px solid var(--kotonoha-line); background: #f0ede7; color: #665e56; }
#footer-in { max-width: 1124px; width: 100%; }
#footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#footer .footer-bottom::after { display: none; }
#footer .footer-bottom-logo { position: static; float: none; flex: 0 0 auto; }
#footer .logo-footer { height: auto; line-height: 1; }
#footer .logo-footer a { display: block; padding: 0; }
#footer .logo-footer img { display: block; width: 64px; height: auto; max-height: none; }
#footer .logo-text { font-size: 20px; letter-spacing: .12em; }
#footer .footer-bottom-content { float: none; margin-left: auto; font-size: 12px; }
#footer .copyright { font-size: 11px; }

/* Only the current preparation page gets this compact presentation. */
body.page-id-18 #main { padding: 40px 56px; border-top: 2px solid var(--kotonoha-sand); }
body.page-id-18 .entry-title { margin-bottom: 26px; color: var(--kotonoha-brown); font-size: 13px; letter-spacing: .12em; }
body.page-id-18 .entry-content h2 { margin-top: 0; padding: 0; border: 0; background: transparent; font-size: clamp(21px, 3vw, 28px); }
body.page-id-18 .date-tags, body.page-id-18 .article-footer { display: none; }

@media (max-width: 1000px) {
  .public-page #list.ect-vertical-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 834px) {
  #header-in { padding-top: 22px; }
  #header .site-logo-image { width: 120px; }
  #header .tagline { font-size: 11px; letter-spacing: .06em; }
  #content-in { width: calc(100% - 32px); padding: 28px 0 40px; }
  .public-page:is(.wp-singular, .single, .page) #main { padding: 30px 26px; }
  #navi .menu-top > li { min-width: 0; }
  #navi .menu-top > li > a { padding: 12px 16px; font-size: 12px; }
}
@media (max-width: 560px) {
  .public-page #list.ect-vertical-card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .public-page:is(.wp-singular, .single, .page) #main { padding: 26px 20px; }
  .public-page .entry-title { font-size: 24px; }
  .public-page .entry-content h2 { font-size: 20px; padding: 12px 14px; }
  .public-page .entry-content h3 { font-size: 18px; }
  .public-page .toc { padding: 18px; }
  #footer .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  #footer .footer-bottom-content { margin-left: 0; }
  body.page-id-18 #main { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-page #list.ect-vertical-card > .entry-card-wrap { transition: none; }
}
