@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.2.0
*/

/* TsuzukiNavi soft-pop redesign 2026-07-26 */
:root {
  --tn-ink: #27324a;
  --tn-muted: #687086;
  --tn-coral: #ff6b7a;
  --tn-coral-deep: #eb5265;
  --tn-violet: #7167e8;
  --tn-mint: #55cdb1;
  --tn-lemon: #ffe48c;
  --tn-paper: #fffdfb;
  --tn-wash: #f8f7ff;
  --tn-line: #e9e5f2;
  --tn-shadow: 0 14px 40px rgba(55, 45, 90, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--tn-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 107, 122, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgba(113, 103, 232, 0.08), transparent 28rem),
    #fbfaff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0.012em;
}

a {
  color: #554bd2;
}

a:hover {
  color: var(--tn-coral-deep);
}

/* Header and navigation */
#header-container,
#header-container-in,
.header-container,
.header-container-in {
  background: linear-gradient(125deg, #fff8f6 0%, #f7f4ff 52%, #effcf9 100%);
  border-bottom: 1px solid rgba(113, 103, 232, 0.1);
  box-shadow: 0 8px 30px rgba(55, 45, 90, 0.05);
}

#header-container .header-in {
  min-height: 112px;
}

/* A legacy uploaded logo had a black background baked into the image. */
.header-site-logo-image {
  display: none !important;
}

.logo-text {
  padding: 28px 0 16px;
}

.logo-text .site-name-text {
  color: var(--tn-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 16px rgba(113, 103, 232, 0.12);
}

.tagline {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 18px;
  color: #665ca9;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(113, 103, 232, 0.1);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(55, 45, 90, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
}

#navi,
#navi .navi-in,
.navi,
.navi-in {
  background: transparent !important;
  box-shadow: none;
}

#navi .navi-in a,
#navi .navi-in a:hover {
  border-bottom: 0 !important;
}

.mobile-header-menu-buttons {
  display: none !important;
}

.mobile-menu-buttons {
  background: rgba(255, 255, 255, 0.94) !important;
  border-top: 1px solid var(--tn-line) !important;
  box-shadow: 0 -8px 24px rgba(55, 45, 90, 0.08) !important;
}

.mobile-menu-buttons .menu-button,
.mobile-menu-buttons .menu-button > a {
  color: var(--tn-ink) !important;
  background: transparent !important;
}

#navi .navi-in > .menu-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px 14px;
}

#navi .navi-in > .menu-header .menu-item {
  width: auto;
}

#navi .navi-in > .menu-header .menu-item > a {
  min-height: auto;
  padding: 10px 22px;
  color: var(--tn-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--tn-line);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#navi .navi-in > .menu-header .menu-item > a:hover {
  color: #fff;
  background: linear-gradient(110deg, var(--tn-coral), var(--tn-violet));
  box-shadow: 0 8px 20px rgba(113, 103, 232, 0.22);
  transform: translateY(-2px);
}

/* Layout */
#content {
  margin-top: 34px;
}

.main,
.sidebar .widget {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(233, 229, 242, 0.9);
  border-radius: 24px;
  box-shadow: var(--tn-shadow);
}

.home .main {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sidebar .widget {
  margin-bottom: 24px;
  overflow: hidden;
}

.sidebar .widget-title,
.sidebar .wp-block-heading {
  margin: 0;
  padding: 15px 20px;
  color: var(--tn-ink);
  background: linear-gradient(110deg, #fff1f3, #f0efff);
  border: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* Homepage */
.home.page .entry-title,
.home.page .date-tags,
.home.page .sns-share,
.home.page .sns-follow {
  display: none;
}

.page .sns-share,
.page .sns-follow {
  display: none;
}

.home.page .article {
  padding-top: 0;
}

.tn-hero {
  position: relative;
  margin-bottom: 28px;
  padding: clamp(30px, 6vw, 62px);
  overflow: hidden;
  background: linear-gradient(135deg, #fff2f3 0%, #f5f1ff 52%, #ecfbf6 100%);
  border: 1px solid rgba(113, 103, 232, 0.12);
  border-radius: 30px;
  box-shadow: var(--tn-shadow);
}

.tn-hero::before,
.tn-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.tn-hero::before {
  top: -75px;
  right: -45px;
  width: 210px;
  height: 210px;
  background: rgba(255, 228, 140, 0.48);
}

.tn-hero::after {
  right: 12%;
  bottom: -90px;
  width: 180px;
  height: 180px;
  background: rgba(85, 205, 177, 0.2);
}

.tn-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 13px;
  color: #5f55c5;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(113, 103, 232, 0.15);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.tn-hero h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 12px;
  color: var(--tn-ink);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.tn-hero h1 em {
  color: var(--tn-coral-deep);
  font-style: normal;
}

.tn-hero > p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--tn-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.tn-search {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 680px;
  padding: 7px;
  background: #fff;
  border: 1px solid rgba(113, 103, 232, 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(55, 45, 90, 0.11);
}

.tn-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  color: var(--tn-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.tn-search button {
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(110deg, var(--tn-coral), var(--tn-violet));
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tn-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tn-chips a {
  padding: 9px 15px;
  color: var(--tn-ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--tn-line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.tn-chips a:hover {
  color: #fff;
  background: var(--tn-violet);
}

.tn-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.tn-trust-card {
  padding: 21px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--tn-line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(55, 45, 90, 0.06);
}

.tn-trust-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--tn-ink);
  font-size: 1rem;
}

.tn-trust-card span {
  color: var(--tn-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.tn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 11px;
  background: #fff3f4;
  border-radius: 12px;
  font-size: 1.1rem;
}

.tn-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 18px;
  padding: 0;
  color: var(--tn-ink);
  background: none;
  border: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.tn-section-title::before {
  width: 10px;
  height: 28px;
  content: "";
  background: linear-gradient(var(--tn-coral), var(--tn-violet));
  border-radius: 999px;
}

/* Post cards */
.entry-card-wrap,
.new-entry-card-link {
  display: block;
  margin-bottom: 20px;
  color: inherit;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--tn-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(55, 45, 90, 0.07);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.entry-card-wrap:hover,
.new-entry-card-link:hover {
  color: inherit;
  border-color: rgba(113, 103, 232, 0.28);
  box-shadow: 0 18px 42px rgba(55, 45, 90, 0.13);
  transform: translateY(-4px);
}

.entry-card {
  min-height: 178px;
}

.entry-card-thumb {
  overflow: hidden;
  background: linear-gradient(135deg, #f2efff, #fff2f3);
}

.entry-card-thumb img,
.new-entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.entry-card-wrap:hover img,
.new-entry-card-link:hover img {
  transform: scale(1.035);
}

.entry-card-content {
  padding: 20px 22px;
}

.entry-card-title {
  margin-bottom: 9px;
  color: var(--tn-ink);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 800;
  line-height: 1.58;
}

.entry-card-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tn-muted);
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cat-label {
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  color: #4c456b;
  background: rgba(255, 245, 198, 0.95);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 5px 15px rgba(55, 45, 90, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-pv,
.entry-card .admin-pv {
  display: none !important;
}

/* Article pages */
.article .entry-title {
  margin-bottom: 20px;
  color: var(--tn-ink);
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  font-weight: 850;
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.article .eye-catch-wrap,
.article .eye-catch {
  border-radius: 20px;
  overflow: hidden;
}

.article .eye-catch-wrap {
  box-shadow: 0 14px 35px rgba(55, 45, 90, 0.12);
}

.article p,
.article li {
  line-height: 1.95;
}

.article h2 {
  margin: 2.4em 0 1em;
  padding: 18px 21px;
  color: var(--tn-ink);
  background: linear-gradient(110deg, #fff0f2, #f1efff);
  border: 0;
  border-left: 7px solid var(--tn-coral);
  border-radius: 14px;
  box-shadow: none;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.5;
}

.article h3 {
  margin: 2em 0 0.85em;
  padding: 12px 16px;
  color: var(--tn-ink);
  background: #f7f6ff;
  border: 0;
  border-left: 5px solid var(--tn-violet);
  border-radius: 10px;
  font-size: 1.18rem;
}

.article strong {
  color: #d9435b;
}

.article .toc {
  max-width: 680px;
  margin: 28px auto;
  padding: 20px 24px;
  background: #fffdfd;
  border: 1px solid #eadfe8;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(55, 45, 90, 0.05);
}

.article .toc-title {
  color: var(--tn-ink);
  font-weight: 850;
}

.article .wp-block-group.has-border-color {
  background: linear-gradient(135deg, #fff9f8, #f7f5ff) !important;
  border-color: #e3ddf4 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(55, 45, 90, 0.05);
}

.article iframe {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(55, 45, 90, 0.12);
}

.breadcrumb {
  color: var(--tn-muted);
  font-size: 0.82rem;
}

.post-date,
.post-update {
  color: #8a90a0;
}

/* Footer */
#footer,
.footer {
  color: #e9e8f3;
  background: #282d44;
  border-top: 0;
}

#footer a,
.footer a {
  color: #fff;
}

.footer-bottom-logo .site-name-text {
  color: #fff;
}

.footer-bottom.fnm-text-width .menu-footer li {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Inputs and buttons */
.search-box,
input[type="text"],
input[type="search"],
textarea {
  border-color: var(--tn-line);
  border-radius: 12px;
}

.wp-block-search__button,
input[type="submit"],
.button {
  color: #fff !important;
  background: linear-gradient(110deg, var(--tn-coral), var(--tn-violet)) !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 800;
}

@media screen and (max-width: 834px) {
  #navi {
    display: none !important;
  }

  #content {
    margin-top: 18px;
  }

  .main,
  .sidebar .widget {
    border-radius: 18px;
  }

  .tn-hero {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .tn-trust-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .tn-trust-card {
    padding: 17px;
  }

  .article .entry-title {
    font-size: 1.58rem;
  }

  .article h2 {
    padding: 15px 16px;
    border-left-width: 6px;
  }

  .article .toc {
    padding: 16px 18px;
  }
}

@media screen and (max-width: 600px) {
  #header-container .header-in {
    min-height: 84px;
  }

  .logo-text {
    padding: 14px 0 10px;
  }

  .logo-text .site-name-text {
    font-size: 2rem;
  }

  .tagline {
    padding: 6px 14px;
    font-size: 0.76rem;
  }

  .tn-hero h1 {
    font-size: 2.05rem;
  }

  .tn-search {
    display: block;
    padding: 6px;
  }

  .tn-search input,
  .tn-search button {
    width: 100%;
  }

  .tn-search button {
    margin-top: 5px;
  }

  .entry-card {
    display: block;
  }

  .entry-card-thumb {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }

  .entry-card-content {
    width: 100%;
    padding: 17px 18px 19px;
  }

  .entry-card-title {
    font-size: 1rem;
  }

  .entry-card-snippet {
    -webkit-line-clamp: 2;
  }

  .article .entry-title {
    font-size: 1.42rem;
  }

  .article p,
  .article li {
    line-height: 1.85;
  }
}
