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

/* ==========================================================
   Note Harbor Redesign 2026
   Calm editorial design for health, care, and practical guides.
   ========================================================== */

:root {
  --nh-bg: #f7f9f8;
  --nh-surface: #ffffff;
  --nh-surface-alt: #eef7f4;
  --nh-ink: #1d2b34;
  --nh-muted: #5d6f78;
  --nh-soft: #dbe7e4;
  --nh-line: #d7e1de;
  --nh-primary: #0f6a70;
  --nh-primary-dark: #0a4d52;
  --nh-primary-soft: #e4f4f1;
  --nh-accent: #d9684a;
  --nh-accent-soft: #fff0ea;
  --nh-warn: #b7791f;
  --nh-warn-soft: #fff7e6;
  --nh-ok: #23835f;
  --nh-shadow: 0 10px 28px rgba(29, 43, 52, 0.08);
  --nh-shadow-soft: 0 4px 14px rgba(29, 43, 52, 0.06);
  --nh-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, var(--nh-bg) 360px) !important;
  color: var(--nh-ink);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

#container,
.container {
  background: transparent !important;
}

a {
  color: var(--nh-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--nh-primary-dark);
}

img {
  border-radius: var(--nh-radius);
}

/* ==========================================================
   Site Header
   ========================================================== */

.site-header,
#header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--nh-line);
  box-shadow: 0 1px 0 rgba(29, 43, 52, 0.04);
}

.header-in,
.header-container-in {
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-name-text,
.logo-text,
.header .site-name-text {
  color: var(--nh-primary-dark) !important;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45 !important;
}

.logo-header,
.site-name-text-link {
  line-height: 1.45 !important;
}

.site-description-text,
.tagline {
  color: var(--nh-muted);
  font-size: 13px;
  font-weight: 600;
}

.header-logo-image {
  max-height: 58px;
}

/* ==========================================================
   Navigation
   ========================================================== */

.navi,
#navi {
  background: var(--nh-primary-dark) !important;
  border: none;
}

.navi-in ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navi-in li {
  margin: 0;
}

.navi-in > ul > li > a {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.navi-in > ul > li > a:hover,
.navi-in > ul > li.current-menu-item > a {
  background: var(--nh-primary) !important;
  color: #ffffff !important;
}

/* ==========================================================
   Layout
   ========================================================== */

.content {
  margin-top: 28px;
}

.content-in {
  gap: 28px;
}

.main {
  background: var(--nh-surface);
  border: 1px solid var(--nh-line);
  border-radius: var(--nh-radius);
  box-shadow: var(--nh-shadow-soft);
  padding: 30px;
}

.article {
  color: var(--nh-ink);
}

.draft-editor-note {
  display: none !important;
}

.sidebar {
  color: var(--nh-ink);
}

.sidebar .widget {
  background: var(--nh-surface);
  border: 1px solid var(--nh-line);
  border-radius: var(--nh-radius);
  box-shadow: var(--nh-shadow-soft);
  padding: 18px;
  margin-bottom: 18px;
}

.sidebar .widget-title {
  color: var(--nh-primary-dark);
  border-bottom: 2px solid var(--nh-primary-soft);
  font-size: 15px;
  font-weight: 800;
  padding-bottom: 9px;
  margin-bottom: 12px;
}

/* ==========================================================
   Article Header
   ========================================================== */

.page .entry-title,
.single .entry-title,
.entry-title {
  color: var(--nh-ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.date-tags,
.post-date,
.entry-date,
.post-update {
  color: var(--nh-muted);
  font-size: 13px;
}

.page .article-header .sns-share,
.page .article-header .date-tags,
.page .article-footer .sns-share,
.page .article-footer .sns-follow {
  display: none !important;
}

.cat-label,
.cat-link,
.category-button {
  background: var(--nh-primary) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.eye-catch img,
.entry-card-thumb img {
  border-radius: var(--nh-radius);
}

/* ==========================================================
   Article Body
   ========================================================== */

.entry-content,
.article {
  font-size: 16px;
  line-height: 1.95;
}

.entry-content p,
.article p {
  margin: 0 0 1.25em;
}

.entry-content strong,
.article strong {
  font-weight: 800;
  background: linear-gradient(transparent 64%, rgba(217, 104, 74, 0.18) 64%);
}

.entry-content h2,
.article h2 {
  background: var(--nh-primary-soft);
  border-left: 5px solid var(--nh-primary);
  border-radius: 0 var(--nh-radius) var(--nh-radius) 0;
  color: var(--nh-primary-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  margin: 2.6em 0 1em;
  padding: 0.72em 0.9em;
}

.entry-content h3,
.article h3 {
  border-bottom: 2px solid var(--nh-line);
  color: var(--nh-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin: 2em 0 0.85em;
  padding: 0 0 0.35em;
}

.entry-content h4,
.article h4 {
  border-left: 3px solid var(--nh-accent);
  color: var(--nh-primary-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  margin: 1.6em 0 0.7em;
  padding: 0.1em 0 0.1em 0.75em;
}

.entry-content ul,
.entry-content ol,
.article ul,
.article ol {
  padding-left: 1.35em;
  margin: 0 0 1.35em;
}

.entry-content li,
.article li {
  margin: 0.35em 0;
}

.entry-content li::marker,
.article li::marker {
  color: var(--nh-primary);
  font-weight: 800;
}

.entry-content blockquote,
.article blockquote {
  background: #f4faf8;
  border-left: 5px solid var(--nh-primary);
  border-radius: 0 var(--nh-radius) var(--nh-radius) 0;
  color: #344851;
  margin: 1.8em 0;
  padding: 1.1em 1.25em;
}

.entry-content table,
.article table {
  border-collapse: collapse;
  border: 1px solid var(--nh-line);
  border-radius: var(--nh-radius);
  display: block;
  overflow-x: auto;
  width: 100%;
}

.entry-content th,
.entry-content td,
.article th,
.article td {
  border: 1px solid var(--nh-line);
  padding: 0.75em 0.85em;
  vertical-align: top;
}

.entry-content th,
.article th {
  background: var(--nh-primary-soft);
  color: var(--nh-primary-dark);
  font-weight: 800;
}

/* ==========================================================
   Cocoon TOC and Breadcrumb
   ========================================================== */

#toc_container,
.toc {
  background: var(--nh-surface-alt);
  border: 1px solid #bfd8d2;
  border-radius: var(--nh-radius);
  box-shadow: none;
  margin: 2em 0;
  padding: 18px 20px;
}

.toc-title,
#toc_container .toc_title {
  color: var(--nh-primary-dark);
  font-size: 15px;
  font-weight: 800;
}

.breadcrumb {
  color: var(--nh-muted);
  font-size: 12px;
  margin-bottom: 14px;
}

/* ==========================================================
   Index Cards
   ========================================================== */

.entry-card-wrap,
.related-entry-card-wrap,
.a-wrap {
  border-radius: var(--nh-radius);
  display: block;
  text-decoration: none;
}

.entry-card,
.related-entry-card {
  background: var(--nh-surface);
  border: 1px solid var(--nh-line);
  border-radius: var(--nh-radius);
  box-shadow: var(--nh-shadow-soft);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-card:hover,
.related-entry-card:hover {
  border-color: #b8d1cb;
  box-shadow: var(--nh-shadow);
  transform: translateY(-2px);
}

.entry-card-content,
.related-entry-card-content {
  padding: 16px;
}

.entry-card-title,
.related-entry-card-title {
  color: var(--nh-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.entry-card-snippet,
.entry-summary,
.related-entry-card-snippet {
  color: var(--nh-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================
   Utility Blocks for Articles
   ========================================================== */

.medical-note,
.caution-box,
.point-box,
.summary-box,
.product-card,
.affiliate-disclosure {
  border-radius: var(--nh-radius);
  margin: 1.8em 0;
  padding: 1.1em 1.25em;
}

.medical-note {
  background: var(--nh-primary-soft);
  border: 1px solid #b9d8d2;
  color: #21464a;
}

.medical-note::before {
  content: "医療情報の注意";
  display: block;
  color: var(--nh-primary-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 0.35em;
}

.affiliate-disclosure {
  background: var(--nh-accent-soft);
  border: 1px solid #f0c2b4;
  color: #653123;
  font-size: 14px;
}

.affiliate-disclosure::before {
  content: "広告について";
  display: block;
  color: #8f3e2a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 0.35em;
}

.point-box {
  background: #f1fbf7;
  border: 1px solid #bde2d3;
  color: #23483d;
}

.point-box::before {
  content: "Point";
  display: inline-block;
  background: var(--nh-ok);
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 0.55em;
  padding: 2px 8px;
}

.caution-box {
  background: var(--nh-warn-soft);
  border: 1px solid #e5c072;
  color: #5e4212;
}

.caution-box::before {
  content: "注意";
  display: inline-block;
  background: var(--nh-warn);
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 0.55em;
  padding: 2px 8px;
}

.summary-box {
  background: #f7fbfa;
  border: 2px solid var(--nh-primary);
}

.summary-box .summary-title {
  color: var(--nh-primary-dark);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0.7em;
}

.product-card {
  background: var(--nh-surface);
  border: 1px solid var(--nh-line);
  box-shadow: var(--nh-shadow-soft);
  position: relative;
}

.product-card::before {
  content: "生活支援の選択肢";
  display: inline-block;
  background: var(--nh-primary);
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 0.7em;
  padding: 2px 8px;
}

.product-card .product-name {
  color: var(--nh-ink);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0.35em;
}

.product-card .product-summary {
  color: var(--nh-muted);
  font-size: 14px;
}

.affiliate-product-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.3em 0 2em;
}

.affiliate-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.product-card .product-safety-note {
  color: var(--nh-text);
  font-size: 14px;
  margin: 0.2em 0 0.4em;
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* ==========================================================
   Buttons
   ========================================================== */

.btn-affiliate,
.btn-amazon,
.btn-rakuten,
.wp-block-button__link {
  border-radius: 6px !important;
  box-shadow: none;
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  padding: 0.75em 1.4em;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-affiliate,
.wp-block-button__link {
  background: var(--nh-primary) !important;
  color: #ffffff !important;
}

.btn-affiliate:hover,
.wp-block-button__link:hover {
  background: var(--nh-primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-affiliate.btn-secondary {
  background: #ffffff !important;
  border: 1px solid var(--nh-primary);
  color: var(--nh-primary-dark) !important;
}

.btn-affiliate.btn-secondary:hover {
  background: #eff7f4 !important;
  color: var(--nh-primary-dark) !important;
}

.btn-amazon {
  background: #f59e0b;
  color: #ffffff !important;
}

.btn-amazon:hover {
  background: #d97706;
  color: #ffffff !important;
}

.btn-rakuten {
  background: #b42318;
  color: #ffffff !important;
}

.btn-rakuten:hover {
  background: #8f1c13;
  color: #ffffff !important;
}

/* ==========================================================
   Comparison Blocks
   ========================================================== */

.pros-cons {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin: 1.7em 0;
}

.pros-cons .pros,
.pros-cons .cons {
  border-radius: var(--nh-radius);
  padding: 1em 1.1em;
}

.pros-cons .pros {
  background: #f0faf5;
  border: 1px solid #a5d9c0;
}

.pros-cons .cons {
  background: var(--nh-warn-soft);
  border: 1px solid #e5c072;
}

.pros-cons h4 {
  border: none;
  margin-top: 0;
  padding-left: 0;
}

/* ==========================================================
   Search, Forms, Footer
   ========================================================== */

input[type="text"],
input[type="search"],
input[type="email"],
textarea {
  border: 1px solid var(--nh-line);
  border-radius: 6px;
  color: var(--nh-ink);
  font-size: 16px;
  padding: 0.7em 0.8em;
}

button,
input[type="submit"] {
  background: var(--nh-primary);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 800;
  padding: 0.7em 1.2em;
}

button:hover,
input[type="submit"]:hover {
  background: var(--nh-primary-dark);
}

.footer,
#footer {
  background: #17363a !important;
  color: #c7d9d6 !important;
}

.footer a,
#footer a {
  color: #e4f4f1 !important;
}

.footer a:hover,
#footer a:hover {
  color: #ffffff !important;
}

.footer .site-name-text,
#footer .site-name-text,
.footer .logo-text,
#footer .logo-text {
  color: #e4f4f1 !important;
}

.footer .tagline,
#footer .tagline {
  color: #c7d9d6 !important;
}

.footer-copyright {
  color: #a8c2bd;
  font-size: 13px;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media screen and (max-width: 1023px) {
  .content {
    margin-top: 18px;
  }

  .main {
    padding: 24px;
  }
}

@media screen and (max-width: 834px) {
  body {
    font-size: 15px;
  }

  .main {
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 22px 18px;
  }

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

  .entry-content h2,
  .article h2 {
    font-size: 21px;
    margin-top: 2.2em;
  }

  .entry-content h3,
  .article h3 {
    font-size: 18px;
  }

  .navi-in > ul > li > a {
    padding: 11px 14px !important;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .affiliate-product-list {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .header-in,
  .header-container-in {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-name-text,
  .logo-text,
  .header .site-name-text {
    font-size: 18px !important;
    display: block;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-description-text,
  .tagline {
    font-size: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .page .entry-title,
  .single .entry-title,
  .entry-title {
    font-size: 23px;
  }

  .entry-content,
  .article {
    line-height: 1.9;
  }

  .btn-affiliate,
  .btn-amazon,
  .btn-rakuten,
  .wp-block-button__link {
    display: block;
    width: 100%;
  }
}
