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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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

/* TAKERU'S MAP article design 2026-11-24 */
body.single-post .sns-follow-buttons .website-button {background:#30373d;color:#f5f0e9;border-color:#566068}
body.single-post #sidebar .author-box {background:#20262d;color:#ddd8cf;border:1px solid #4c5053;border-radius:10px;padding:18px}
body.single-post #sidebar .author-box .author-name a {color:#ead5ad}
body.single-post #footer {position:relative;background:#20262d;color:#e9e3db;padding-bottom:80px}
body.single-post #footer a {color:#eee4d3}
body.single-post #footer a:hover,body.single-post #footer a:focus-visible {color:#ffe3ac;text-decoration:underline}
body.single-post #footer::before {content:"";position:absolute;inset:0 0 auto;height:2px;background:#c9aa75;pointer-events:none}
body.single-post .cat-label-5 {background:#514454;color:#fff7ff}
@media(max-width:600px){body.single-post #footer #navi-footer ul{display:flex;flex-direction:column;align-items:center;gap:8px}}

body.single-post #footer .site-name-text-link::after {content:"Everything I love, all in one place.";display:block;margin-top:.45rem;font:italic normal 1rem/1.4 Georgia,serif;color:#e2d6c6;letter-spacing:normal}

/* Article heading blend, follow buttons and footer clearance */
body.single-post article .entry-content h2:not(.toc h2,.related-entries h2,aside h2){background-size:100% 100%,cover!important;background-position:center,center 55%!important}
body.single-post .sns-follow-buttons a.follow-button {background:#20262d!important;color:#e2dad0!important;border:1px solid #51575c!important}
body.single-post .sns-follow-buttons a.follow-button:hover,body.single-post .sns-follow-buttons a.follow-button:focus-visible {background:#343b42!important;color:#fff!important}
body.single-post #footer {padding-bottom:calc(145px + env(safe-area-inset-bottom))}


/* TAKERU'S MAP: shared header and footer on every non-home page */
body:not(.home) #header-container-in {padding-top:22px;padding-bottom:22px}
body:not(.home) #header-container-in .tagline {color:#f2eee7;font-size:0!important;line-height:1.3;letter-spacing:.08em}
body:not(.home) #header-container-in .tagline::after {content:"好きなこと全部この場所に";display:block;font:500 clamp(1rem,1.6vw,1.25rem)/1.5 "Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.1em;color:#f2eee7}
body:not(.home) #header-container-in .site-name-text-link,body:not(.home) #header-container-in .site-name-text {color:#d5b477!important;font-family:Georgia,"Times New Roman","Yu Mincho",serif;font-weight:400;letter-spacing:.15em}
body:not(.home) #header-container-in .site-name-text-link {font-size:clamp(1.9rem,3.2vw,2.65rem)}
body:not(.home) #header-container-in .site-name-text-link:hover,body:not(.home) #header-container-in .site-name-text-link:focus-visible {color:#ead1a0!important}
body:not(.home) #footer {position:relative;background:#20262d;color:#e9e3db;padding-bottom:calc(145px + env(safe-area-inset-bottom))}
body:not(.home) #footer::before {content:"";position:absolute;inset:0 0 auto;height:2px;background:#c9aa75;pointer-events:none}
body:not(.home) #footer a {color:#eee4d3}
body:not(.home) #footer a:hover,body:not(.home) #footer a:focus-visible {color:#ffe3ac;text-decoration:underline}
body:not(.home) #footer .site-name-text-link::after {content:"Everything I love, all in one place.";display:block;margin-top:.45rem;font:italic normal 1rem/1.4 Georgia,serif;color:#e2d6c6;letter-spacing:normal}
@media(max-width:600px){body:not(.home) #footer #navi-footer ul {display:flex;flex-direction:column;align-items:center;gap:8px}body:not(.home) #header-container-in {padding-top:16px;padding-bottom:16px}body:not(.home) #header-container-in .site-name-text-link {font-size:1.8rem;letter-spacing:.12em}}

/* Article masthead on light mobile screens */
@media (max-width: 834px) and (prefers-color-scheme: light) {
  body.single-post:not(.home) #header-container-in .tagline::after {
    color: #373432;
  }
  body.single-post:not(.home) #header-container-in .site-name-text-link,
  body.single-post:not(.home) #header-container-in .site-name-text {
    color: #80591f !important;
  }
}

/* Keep the mobile article scroll area clear of the BGM dock. */
@media (max-width: 834px) {
  html:has(body.single-post #hiko-site-bgm) {
    scroll-padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }
  body.single-post #footer {
    padding-bottom: calc(180px + env(safe-area-inset-bottom));
  }
  body.single-post #hiko-site-bgm {
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }
  body.single-post:has(.mobile-footer-menu-buttons) #hiko-site-bgm {
    bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }
}

/* Compact copy and a prominent site name on mobile articles. */
@media (max-width: 834px) {
  body.single-post #header-container {
    background: #fff;
  }
  body.single-post:not(.home) #header-container-in .tagline::after {
    color: #34312e;
    font-size: .8125rem;
    letter-spacing: .035em;
  }
  body.single-post:not(.home) #header-container-in .site-name-text-link,
  body.single-post:not(.home) #header-container-in .site-name-text {
    color: #80591f !important;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}
@media (max-width: 834px) and (prefers-color-scheme: dark) {
  body.single-post #header-container {
    background: #18191a;
  }
  body.single-post:not(.home) #header-container-in .tagline::after {
    color: #f2eee7;
  }
  body.single-post:not(.home) #header-container-in .site-name-text-link,
  body.single-post:not(.home) #header-container-in .site-name-text {
    color: #d5b477 !important;
  }
}
