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

/************************************
** Hide empty thumbnail placeholders
************************************/
.entry-card:not(.has-post-thumbnail) .entry-card-thumb {
  display: none !important;
}

.entry-card:not(.has-post-thumbnail) .entry-card-content {
  width: 100% !important;
  margin-left: 0 !important;
}

/************************************
** Full-width article previews
************************************/
.home.blog #content-in,
.archive #content-in,
.search #content-in {
  max-width: 1100px;
}

.home.blog .main,
.archive .main,
.search .main {
  width: 100%;
  max-width: none;
}

.home.blog .sidebar,
.archive .sidebar,
.search .sidebar {
  display: none;
}

.full-entry-preview {
  display: block;
  margin-bottom: 32px;
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.full-entry-preview .entry-card-content {
  width: 100% !important;
  margin-left: 0 !important;
  padding: 0;
}

.full-entry-preview .entry-card-title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.45;
}

.full-entry-preview .entry-card-title a {
  color: inherit;
  text-decoration: none;
}

.full-entry-preview .entry-card-meta {
  margin-bottom: 24px;
  color: #666;
}

.full-entry-preview .full-entry-preview-thumb {
  display: block;
  margin-bottom: 28px;
}

.full-entry-preview .full-entry-preview-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.full-entry-preview .entry-content {
  font-size: 18px;
  line-height: 2;
}

.full-entry-preview .entry-content p {
  margin: 0 0 1.45em;
}

.full-entry-preview-footer {
  margin-top: 28px;
}

.full-entry-preview-link {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #19448e;
  border-radius: 4px;
  color: #19448e;
  text-decoration: none;
}

.full-entry-preview-link:hover {
  background: #19448e;
  color: #fff;
}

.sns-follow,
.edit-link,
.post-edit-link,
.admin-pv,
.edit-post-link {
  display: none !important;
}

/************************************
** Author profile
************************************/
.bpj-author-profile {
  margin: 44px 0 0;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.8;
}

.bpj-author-profile summary {
  cursor: pointer;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.bpj-author-profile summary:hover {
  color: #19448e;
}

.bpj-author-profile-body {
  margin-top: 9px;
}

.bpj-author-profile p {
  margin: 0 0 0.8em;
}

.bpj-author-profile p:last-child {
  margin-bottom: 0;
}

/************************************
** Header message
************************************/
.logo-header .site-name-text {
  color: #111827;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}

.logo-header .site-name-text::after {
  content: none;
}

.site-name-main {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
}

.site-name-subtitle {
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.site-paper-count {
  margin-top: 4px;
  padding: 3px 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

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

.logo-header .site-name-text-link::after {
  content: "遺伝子異常/ミトコンドリア異常/脳内ネットワーク異常等次々と研究が進む中、\A暴言や暴力が「性格」ではなく「症状」である事を広め「離婚」や「憎しみ」や\A「差別」がなくなる時代を夢見て...";
  display: inline-block;
  max-width: 660px;
  color: #555;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
}

.header-sleep-tool {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.bpj-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.bpj-title-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.bpj-site-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.bpj-title-head-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.bpj-header-logo .site-name-text-link {
  display: inline-block;
}

.bpj-header-logo .site-name-text-link::after {
  content: none;
  display: none;
}

.header-top-article-links {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  min-width: 190px;
  text-align: left;
}

.header-top-article-links a {
  display: block;
  padding: 6px 9px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #19448e;
  border-radius: 4px;
  color: #19448e;
  text-decoration: none;
}

.header-top-article-links a:hover {
  background: #eef5ff;
  color: #0f2f66;
}

.header-top-article-links span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.header-top-article-links small {
  display: block;
  margin-top: 2px;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.header-sleep-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.header-mental-network-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: min(94vw, 720px);
  margin-top: 10px;
  padding: 9px 14px;
  background: linear-gradient(90deg, #f8fafc 0%, #eef5ff 100%);
  border: 1px solid #c7d7ee;
  border-left: 5px solid #19448e;
  border-radius: 6px;
  color: #12356f;
  box-shadow: 0 6px 18px rgba(25, 68, 142, 0.08);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.header-mental-network-link:hover {
  background: linear-gradient(90deg, #eef5ff 0%, #e7f0ff 100%);
  color: #0f2f66;
}

.header-mental-network-label {
  color: #111827;
  font-size: 15px;
}

.header-mental-network-url {
  color: #19448e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bpj-header-logo .header-sleep-tool {
  display: block;
  margin-top: 0;
  color: #19448e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-sleep-qr-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.header-sleep-qr {
  display: block;
  width: 58px;
  height: 58px;
  padding: 3px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
}

.header-sleep-qr-label {
  white-space: nowrap;
}

.header-sleep-note {
  display: block;
  max-width: 720px;
  margin-top: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.header-contact-form {
  display: block;
  width: min(720px, 94vw);
  margin-top: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  box-sizing: border-box;
}

.header-contact-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.header-contact-fields label {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  gap: 3px;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.header-contact-fields input {
  width: 100%;
  height: 34px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
}

.header-contact-fields button {
  grid-column: span 2;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #19448e;
  border-radius: 4px;
  background: #19448e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.header-contact-fields button:hover {
  background: #0f2f66;
}

.header-contact-notice {
  width: min(720px, 94vw);
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}

.header-contact-notice.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.header-contact-notice.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.header-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.header-research-message {
  display: inline-block;
  max-width: 760px;
  color: #555;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

.header-research-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.header-bipolar-guide-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 16px;
  background: #19448e;
  border: 1px solid #19448e;
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}

.header-bipolar-guide-link:hover {
  background: #0f2f66;
  color: #fff;
}

.header-bipolar-guide-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-author-profile {
  display: block;
  max-width: 720px;
  margin: 5px 0 0 2px;
  text-align: left;
}

.header-author-profile summary {
  display: inline-block;
  color: #c7ced8;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-author-profile summary:hover {
  color: #9ca3af;
}

.header-author-profile summary::-webkit-details-marker {
  color: #d1d5db;
}

.header-author-profile-box {
  margin-top: 6px;
  padding: 8px 10px;
  background: #fbfcfe;
  border: 1px solid #edf1f7;
  border-radius: 4px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
}

.header-author-profile-box p {
  margin: 0 0 0.7em;
}

.header-author-profile-box p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 834px) {
  .site-name-main {
    font-size: 34px;
  }

  .logo-header .site-name-text-link {
    flex-direction: column;
    gap: 8px;
  }

  .bpj-header-logo {
    flex-direction: column;
    gap: 8px;
  }

  .bpj-title-head-row {
    flex-direction: column;
    gap: 8px;
  }

  .header-top-article-links {
    min-width: min(92vw, 320px);
    text-align: center;
  }

  .logo-header .site-name-text-link::after {
    max-width: min(92vw, 660px);
    font-size: 12px;
    text-align: center;
  }

  .header-sleep-tool {
    font-size: 13px;
  }

  .header-sleep-row {
    gap: 8px;
  }

  .header-mental-network-link {
    flex-direction: column;
    gap: 3px;
    padding: 9px 12px;
  }

  .header-mental-network-label {
    font-size: 14px;
  }

  .header-mental-network-url {
    font-size: 12px;
  }

  .header-sleep-qr {
    width: 56px;
    height: 56px;
  }

  .header-sleep-note {
    max-width: min(92vw, 720px);
    font-size: 12px;
  }

  .header-contact-form {
    width: min(92vw, 720px);
  }

  .header-research-message {
    max-width: min(92vw, 760px);
    font-size: 15px;
    text-align: center;
  }

  .header-research-stack {
    align-items: center;
    max-width: min(92vw, 760px);
  }

  .header-bipolar-guide-link {
    font-size: 16px;
  }

  .header-bipolar-guide-group {
    align-items: center;
  }

  .full-entry-preview {
    padding: 24px;
  }

  .full-entry-preview .entry-card-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 480px) {
  .site-name-main {
    font-size: 28px;
  }

  .site-name-subtitle {
    font-size: 10px;
  }

  .site-paper-count {
    font-size: 11px;
  }

  .header-sleep-row {
    flex-direction: column;
  }

  .header-sleep-qr {
    width: 72px;
    height: 72px;
  }

  .header-contact-fields {
    grid-template-columns: 1fr;
  }

  .header-contact-fields label,
  .header-contact-fields button {
    grid-column: auto;
  }

  .full-entry-preview {
    padding: 18px;
  }

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

  .full-entry-preview .entry-content {
    font-size: 16px;
  }
}

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

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

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

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