@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){
  /*必要ならばここにコードを書く*/
}

/* tchmii board styling */
:root {
  --tchmii-blue: #1167ef;
  --tchmii-navy: #071f3f;
  --tchmii-orange: #ff5a16;
  --tchmii-sky: #eef5ff;
  --tchmii-line: #d9e6f7;
}

.site-name-text,
.logo-text {
  color: var(--tchmii-navy);
  font-weight: 800;
}

.logo-image img,
.header .site-logo-image img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

.header-container {
  border-top: 5px solid var(--tchmii-blue);
  border-bottom: 1px solid var(--tchmii-line);
}

.navi-in a:hover,
.navi-in .current-menu-item > a {
  color: var(--tchmii-blue);
}

.page-id-15,
.home.page {
  background: #f6f9fe;
}

.page-id-15 .breadcrumb,
.page-id-15 .date-tags,
.page-id-15 .entry-title,
.page-id-15 .sns-share,
.page-id-15 .sns-follow,
.page-id-15 .under-entry-content {
  display: none !important;
}

.page-id-15 .content,
.page-id-15 .content-in {
  display: block;
  background: transparent;
}

.page-id-15 .main {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px 56px;
  background: transparent;
  border: 0;
}

.page-id-15 .article {
  background: transparent;
  border: 0;
  padding: 0;
}

.page-id-15 .sidebar {
  display: none;
}

.tchmii-home {
  color: var(--tchmii-navy);
}

.tchmii-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px) 0 clamp(28px, 5vw, 54px);
  border-bottom: 1px solid var(--tchmii-line);
}

.tchmii-hero__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.tchmii-kicker {
  margin: 0 0 10px;
  color: var(--tchmii-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tchmii-hero h1 {
  margin: 0 0 16px;
  color: var(--tchmii-navy);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.tchmii-hero__copy p:not(.tchmii-kicker) {
  max-width: 680px;
  margin: 0;
  color: #36506f;
  font-size: 17px;
  line-height: 1.9;
}

.tchmii-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tchmii-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--tchmii-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(17, 103, 239, .22);
}

.tchmii-button--ghost {
  background: #fff;
  color: var(--tchmii-navy) !important;
  border: 1px solid var(--tchmii-line);
  box-shadow: none;
}

.tchmii-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.tchmii-info-grid div {
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--tchmii-line);
  border-radius: 8px;
  background: #fff;
}

.tchmii-info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tchmii-navy);
  font-size: 18px;
}

.tchmii-info-grid span {
  color: #4b6380;
  line-height: 1.75;
}

.tchmii-forum-panel {
  padding: 24px;
  border: 1px solid var(--tchmii-line);
  border-radius: 8px;
  background: #fff;
}

.tchmii-forum-panel h2 {
  margin: 0 0 18px;
  color: var(--tchmii-navy);
  font-size: 24px;
  letter-spacing: 0;
}

#bbpress-forums {
  color: var(--tchmii-navy);
  font-size: 15px;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  border: 0;
  background: var(--tchmii-navy);
  color: #fff;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
  margin: 10px 0;
  border: 1px solid var(--tchmii-line);
  border-left: 5px solid var(--tchmii-blue);
  border-radius: 8px;
  background: #fff;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
  color: var(--tchmii-navy);
  font-weight: 800;
}

#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-permalink:hover {
  color: var(--tchmii-blue);
}

#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbpress-forums #bbp_topic_submit,
#bbpress-forums #bbp_reply_submit {
  border: 0;
  border-radius: 8px;
  background: var(--tchmii-orange);
  color: #fff;
  font-weight: 800;
}

#bbpress-forums fieldset.bbp-form {
  border: 1px solid var(--tchmii-line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 782px) {
  .tchmii-hero,
  .tchmii-info-grid {
    grid-template-columns: 1fr;
  }

  .tchmii-hero {
    padding-top: 26px;
  }

  .tchmii-hero__brand {
    max-width: 260px;
  }

  .tchmii-button {
    width: 100%;
  }

  .tchmii-forum-panel {
    padding: 16px;
  }
}
/* tchmii header logo image */
.logo-header.logo-text .site-name-text {
  display: block;
  width: 220px;
  height: 86px;
  overflow: hidden;
  background: url("https://tchmii.com/wp-content/uploads/2026/05/tchmii-logo.png") center / contain no-repeat;
  color: transparent;
  text-indent: -9999px;
  white-space: nowrap;
}

.logo-header.logo-text .site-name-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 782px) {
  .logo-header.logo-text .site-name-text {
    width: 170px;
    height: 68px;
  }
}
/* tchmii header logo crop */
.logo-header.logo-text .site-name-text {
  width: 270px;
  height: 96px;
  background-size: 270px 270px;
  background-position: center center;
}

@media (max-width: 782px) {
  .logo-header.logo-text .site-name-text {
    width: 210px;
    height: 74px;
    background-size: 210px 210px;
  }
}
/* tchmii header logo crop refinement */
.logo-header.logo-text .site-name-text {
  width: 320px;
  height: 128px;
  background-size: 320px 320px;
  background-position: center center;
}

@media (max-width: 782px) {
  .logo-header.logo-text .site-name-text {
    width: 230px;
    height: 92px;
    background-size: 230px 230px;
  }
}
/* tchmii reddit-like board refinement */
.logo-header.logo-text .site-name-text {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: none !important;
  color: var(--tchmii-navy) !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.logo-header.logo-text .site-name-text::after {
  content: "";
  display: inline-block;
  width: .28em;
  height: .28em;
  margin-left: .08em;
  border-radius: 999px;
  background: var(--tchmii-orange);
  vertical-align: .12em;
}

.header-container {
  border-top: 4px solid var(--tchmii-blue);
}

.header .tagline {
  margin-top: 10px;
  color: #4a6078;
  font-size: 13px;
}

.bbpress .article-header,
.bbpress .breadcrumb,
.bbpress .date-tags,
.bbpress .sns-share,
.bbpress .sns-follow,
.bbpress .under-entry-content,
.bbpress .pager-post-navi,
.bbpress .related-entry-heading,
.bbpress .sidebar,
.page-id-15 .article-header,
.page-id-15 .breadcrumb,
.page-id-15 .date-tags,
.page-id-15 .sns-share,
.page-id-15 .sns-follow,
.page-id-15 .under-entry-content,
.page-id-15 .sidebar,
.author-info,
.footer-meta,
.footer-bottom-logo,
.footer-bottom-content .source-org,
.footer-bottom-content .copyright,
.mobile-footer-menu-buttons {
  display: none !important;
}

.bbpress .content,
.bbpress .content-in,
.page-id-15 .content,
.page-id-15 .content-in {
  display: block !important;
  background: #f3f6fb !important;
}

.bbpress .main,
.page-id-15 .main {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 18px 56px !important;
  background: transparent !important;
  border: 0 !important;
}

.bbpress .article,
.page-id-15 .article {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.tchmii-app {
  color: var(--tchmii-navy);
}

.tchmii-app-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding: 34px 0 24px;
}

.tchmii-app-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 1px solid var(--tchmii-line);
  border-radius: 8px;
  background: #fff;
}

.tchmii-app-hero__media img {
  width: min(180px, 86%);
  height: auto;
}

.tchmii-app-hero h1 {
  margin: 0 0 10px;
  color: var(--tchmii-navy);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.tchmii-app-hero p:not(.tchmii-kicker) {
  margin: 0;
  color: #445d78;
  font-size: 16px;
  line-height: 1.8;
}

.tchmii-board-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: start;
}

.tchmii-feed,
.tchmii-community-panel,
.tchmii-forum-panel,
.tchmii-composer {
  border: 1px solid var(--tchmii-line);
  border-radius: 8px;
  background: #fff;
}

.tchmii-feed {
  border: 0;
  background: transparent;
}

.tchmii-feed-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--tchmii-line);
  border-radius: 8px;
  background: #fff;
}

.tchmii-feed-toolbar span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #48617d;
  font-weight: 800;
}

.tchmii-feed-toolbar .is-active {
  background: #e8f1ff;
  color: var(--tchmii-blue);
}

.tchmii-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
}

.tchmii-composer span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--tchmii-orange);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.tchmii-composer strong {
  color: var(--tchmii-navy);
  font-size: 17px;
}

.tchmii-composer small {
  color: #607890;
}

.tchmii-community-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.tchmii-community-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.tchmii-community-panel p,
.tchmii-community-panel li {
  color: #4a6078;
  line-height: 1.7;
}

.tchmii-community-panel ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.tchmii-forum-panel {
  padding: 0 !important;
  overflow: hidden;
}

.tchmii-forum-panel h2 {
  margin: 0 !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--tchmii-line);
  background: #fff !important;
  color: var(--tchmii-navy) !important;
  font-size: 20px !important;
}

#bbpress-forums {
  margin: 0 !important;
  padding: 0 14px 14px !important;
  color: var(--tchmii-navy);
}

#bbpress-forums div.bbp-search-form {
  float: none !important;
  margin: 14px 0 !important;
}

#bbpress-forums #bbp-search-form {
  display: flex;
  gap: 8px;
}

#bbpress-forums #bbp_search {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--tchmii-line);
  border-radius: 8px;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  display: none !important;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums li.bbp-body div.reply {
  position: relative;
  margin: 10px 0 !important;
  padding: 16px 18px 16px 74px !important;
  border: 1px solid var(--tchmii-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

#bbpress-forums li.bbp-body ul.forum::before,
#bbpress-forums li.bbp-body ul.topic::before,
#bbpress-forums li.bbp-body div.reply::before {
  content: "▲\A0\A▼";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  color: #8aa0b8;
  white-space: pre;
  text-align: center;
  font-weight: 900;
  line-height: 1.15;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
  color: var(--tchmii-navy) !important;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none !important;
}

#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
  color: #526a84 !important;
  font-size: 13px !important;
  line-height: 1.65;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count {
  color: #607890;
  font-weight: 800;
}

#bbpress-forums fieldset.bbp-form {
  margin-top: 16px !important;
  border: 1px solid var(--tchmii-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

#bbpress-forums fieldset.bbp-form legend {
  padding: 0 8px;
  color: var(--tchmii-navy);
  font-weight: 900;
}

#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbpress-forums #bbp_topic_submit,
#bbpress-forums #bbp_reply_submit {
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--tchmii-orange) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  .tchmii-board-shell,
  .tchmii-app-hero {
    grid-template-columns: 1fr;
  }

  .tchmii-community-panel {
    position: static;
  }

  .tchmii-app-hero__media {
    min-height: 120px;
    justify-content: flex-start;
    padding-left: 18px;
  }

  .tchmii-app-hero__media img {
    width: 160px;
  }
}

@media (max-width: 520px) {
  .tchmii-feed-toolbar {
    overflow-x: auto;
  }

  #bbpress-forums li.bbp-body ul.forum,
  #bbpress-forums li.bbp-body ul.topic,
  #bbpress-forums li.bbp-body div.reply {
    padding-left: 56px !important;
  }

  #bbpress-forums li.bbp-body ul.forum::before,
  #bbpress-forums li.bbp-body ul.topic::before,
  #bbpress-forums li.bbp-body div.reply::before {
    left: 12px;
  }
}
/* tchmii remove remaining blog/admin chrome */
.page-id-15 .toc,
.bbpress .toc,
#admin-panel,
.footer,
.mobile-footer-menu-buttons,
.mobile-menu-buttons,
.go-to-top-button,
.go-to-top {
  display: none !important;
}

.page-id-15 .entry-content > p:empty,
.bbpress .entry-content > p:empty {
  display: none !important;
}

.page-id-15 #container,
.bbpress #container {
  padding-bottom: 0 !important;
}
/* tchmii no guest identity fields */
body:not(.logged-in) #new-post fieldset.bbp-form fieldset.bbp-form:has(#bbp_anonymous_author),
body:not(.logged-in) #bbp_anonymous_author,
body:not(.logged-in) #bbp_anonymous_email,
body:not(.logged-in) #bbp_anonymous_website,
body:not(.logged-in) label[for="bbp_anonymous_author"],
body:not(.logged-in) label[for="bbp_anonymous_email"],
body:not(.logged-in) label[for="bbp_anonymous_website"] {
  display: none !important;
}
/* tchmii no guest identity fields refinement */
body:not(.logged-in) #new-post fieldset.bbp-form fieldset.bbp-form:has(input[name="bbp_anonymous_name"]),
body:not(.logged-in) #new-post p:has(#bbp_anonymous_author),
body:not(.logged-in) #new-post p:has(#bbp_anonymous_email),
body:not(.logged-in) #new-post p:has(#bbp_anonymous_website),
body:not(.logged-in) #bbp_anonymous_author,
body:not(.logged-in) #bbp_anonymous_email,
body:not(.logged-in) #bbp_anonymous_website {
  display: none !important;
}