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

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

:root {
  --tk-ink: #181a1f;
  --tk-muted: #646b75;
  --tk-paper: #f4f1ea;
  --tk-surface: #ffffff;
  --tk-line: #ded8cf;
  --tk-blue: #255c7a;
  --tk-blue-dark: #1c455c;
  --tk-green: #3f6f53;
  --tk-amber: #bd8432;
  --tk-night: #20242b;
  --tk-shadow: 0 18px 54px rgba(24, 26, 31, 0.12);
  --tk-soft-shadow: 0 12px 34px rgba(34, 30, 26, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--tk-ink);
  background: var(--tk-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.82;
  letter-spacing: 0;
}

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

a:hover {
  color: var(--tk-blue-dark);
}

.container,
.wrap {
  background: transparent;
}

.header-container,
.navi,
.footer {
  background: rgba(244, 241, 234, 0.94);
}

.header-container {
  border-bottom: 1px solid rgba(222, 216, 207, 0.92);
  backdrop-filter: blur(12px);
}

.header-container-in,
.navi-in,
.footer-in,
.content-in {
  width: min(1120px, calc(100% - 40px));
}

.logo-text,
.site-name-text {
  color: var(--tk-ink);
  font-weight: 850;
  letter-spacing: 0;
}

.tagline {
  color: var(--tk-muted);
  font-size: 0.86rem;
}

#navi .navi-in > ul {
  justify-content: center;
  gap: 4px;
}

#navi .navi-in a {
  border-radius: 999px;
  color: var(--tk-muted);
  font-weight: 750;
  line-height: 1.2;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

#navi .navi-in a:hover {
  color: var(--tk-blue-dark);
  background: rgba(37, 92, 122, 0.08);
  transform: translateY(-1px);
}

.content {
  margin-top: clamp(18px, 4vw, 38px);
}

.main,
.sidebar {
  border: 1px solid var(--tk-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--tk-soft-shadow);
}

.main {
  padding: clamp(22px, 4vw, 42px);
}

.sidebar {
  padding: 20px;
}

.article h1,
.entry-title,
.archive-title {
  color: var(--tk-ink);
  font-size: clamp(2rem, 4.7vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.article h2 {
  position: relative;
  margin-top: 2.6em;
  margin-bottom: 0.95em;
  padding: 0 0 0.52em;
  border: 0;
  border-bottom: 1px solid var(--tk-line);
  color: var(--tk-ink);
  background: transparent;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 850;
  line-height: 1.3;
}

.article h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: var(--tk-blue);
}

.article h3 {
  margin-top: 2.1em;
  padding-left: 0.75em;
  border-left: 4px solid var(--tk-green);
  color: var(--tk-ink);
  font-size: clamp(1.18rem, 2.3vw, 1.45rem);
  font-weight: 850;
}

.article p,
.article li,
.article dd,
.article dt {
  color: var(--tk-muted);
  overflow-wrap: anywhere;
}

.article p {
  margin: 1.05em 0;
}

.article ul,
.article ol {
  padding-left: 1.3em;
}

.article li + li {
  margin-top: 0.35em;
}

.article table {
  overflow: hidden;
  border: 1px solid var(--tk-line);
  border-radius: 8px;
  background: var(--tk-surface);
  box-shadow: 0 8px 22px rgba(34, 30, 26, 0.05);
}

.article th,
.article td {
  border-color: var(--tk-line);
  padding: 14px;
}

.article th {
  color: var(--tk-muted);
  background: #faf8f2;
  font-size: 0.86rem;
}

.entry-card-wrap,
.related-entry-card-wrap,
.popular-entry-card-wrap,
.widget-entry-card,
.blogcard,
.blank-box,
.information-box,
.question-box,
.alert-box,
.memo-box,
.comment-box,
.common-icon-box {
  border: 1px solid var(--tk-line);
  border-radius: 10px;
  background: var(--tk-surface);
  box-shadow: var(--tk-soft-shadow);
}

.entry-card-wrap,
.related-entry-card-wrap,
.popular-entry-card-wrap {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.entry-card-wrap:hover,
.entry-card-wrap.is-focus-within,
.related-entry-card-wrap:hover,
.related-entry-card-wrap.is-focus-within,
.popular-entry-card-wrap:hover,
.popular-entry-card-wrap.is-focus-within {
  border-color: rgba(37, 92, 122, 0.35);
  box-shadow: var(--tk-shadow);
  transform: translateY(-3px);
}

.entry-card-title,
.related-entry-card-title,
.popular-entry-card-title {
  color: var(--tk-ink);
  font-weight: 850;
  line-height: 1.42;
}

.entry-card-snippet,
.related-entry-card-snippet,
.popular-entry-card-snippet,
.post-date,
.post-update,
.author-info,
.breadcrumb {
  color: var(--tk-muted);
}

.cat-label,
.cat-link,
.tag-link,
.entry-category {
  border-radius: 999px;
  background: rgba(37, 92, 122, 0.1);
  color: var(--tk-blue-dark);
  font-weight: 800;
}

.widget {
  margin-bottom: 24px;
}

.widget h2,
.widget-title,
.sidebar h3 {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--tk-line);
  color: var(--tk-ink);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 850;
}

.author-box {
  border: 1px solid var(--tk-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--tk-soft-shadow);
}

.author-thumb img,
.profile img,
.wp-block-image img,
.eye-catch img {
  border-radius: 10px;
}

.btn,
.wp-block-button__link,
.ranking-item-link-buttons a,
.article .button,
.tk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff !important;
  background: var(--tk-blue);
  box-shadow: 0 10px 24px rgba(37, 92, 122, 0.18);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.wp-block-button__link:hover,
.ranking-item-link-buttons a:hover,
.article .button:hover,
.tk-button:hover {
  color: #fff !important;
  background: var(--tk-blue-dark);
  box-shadow: 0 14px 30px rgba(37, 92, 122, 0.24);
  transform: translateY(-2px);
}

.tk-button.is-secondary {
  color: var(--tk-blue-dark) !important;
  border-color: var(--tk-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.tk-button.is-secondary:hover {
  color: var(--tk-blue-dark) !important;
  background: #fff;
}

.tk-card,
.tk-cta,
.tk-profile-box,
.tk-section {
  border: 1px solid var(--tk-line);
  border-radius: 12px;
  background: var(--tk-surface);
  box-shadow: var(--tk-soft-shadow);
}

.tk-card,
.tk-section {
  padding: clamp(20px, 4vw, 34px);
}

.tk-cta {
  display: grid;
  gap: 14px;
  margin: 2.2em 0;
  padding: clamp(22px, 4vw, 34px);
  color: #fff;
  background: var(--tk-night);
}

.tk-cta h2,
.tk-cta h3,
.tk-cta p {
  margin: 0;
  color: #fff;
}

.tk-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.tk-cta .tk-button {
  width: fit-content;
  background: var(--tk-blue);
}

.tk-profile-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 2.2em 0;
  padding: clamp(18px, 4vw, 28px);
}

.tk-profile-box img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.tk-profile-box h2,
.tk-profile-box h3,
.tk-profile-box p {
  margin: 0;
}

.tk-profile-box p {
  color: var(--tk-muted);
}

.tk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer {
  margin-top: 48px;
  border-top: 1px solid var(--tk-line);
  color: var(--tk-muted);
}

.footer a {
  color: var(--tk-muted);
}

.go-to-top-button {
  border-radius: 999px;
  background: var(--tk-blue);
  box-shadow: 0 10px 26px rgba(37, 92, 122, 0.22);
}

.tk-home {
  color: var(--tk-ink);
  background: var(--tk-paper);
}

.tk-home .tk-eyebrow {
  margin: 0 0 12px;
  color: var(--tk-green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tk-ad-label {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 6px 10px;
  border: 1px solid rgba(37, 92, 122, 0.28);
  border-radius: 6px;
  color: var(--tk-blue-dark);
  background: rgba(37, 92, 122, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
}

.tk-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 98px) 0;
}

.tk-home-hero-copy {
  max-width: 820px;
}

.tk-home h1,
.tk-home h2,
.tk-home h3,
.tk-home p {
  overflow-wrap: anywhere;
}

.tk-home h1,
.tk-home h2,
.tk-home h3 {
  margin: 0;
  line-height: 1.18;
}

.tk-home h1 {
  max-width: 11em;
  font-size: clamp(2.35rem, 7vw, 5rem);
  font-weight: 900;
}

.tk-home h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
}

.tk-home h3 {
  font-size: 1.25rem;
  font-weight: 850;
}

.tk-home-hero-copy > p:not(.tk-ad-label, .tk-eyebrow),
.tk-home-heading p,
.tk-home-card p,
.tk-feature-card p,
.tk-home-cta p {
  color: var(--tk-muted);
}

.tk-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tk-home-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--tk-line);
  border-radius: 10px;
  background: var(--tk-surface);
  box-shadow: var(--tk-soft-shadow);
}

.tk-home-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tk-home-visual figcaption {
  padding: 14px 16px;
  color: var(--tk-muted);
  font-size: 0.86rem;
}

.tk-home-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 104px) 0;
}

.tk-home-band {
  width: 100%;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: #fff;
}

.tk-home-heading {
  max-width: 840px;
  margin-bottom: 30px;
}

.tk-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tk-home-card,
.tk-feature-card {
  border: 1px solid var(--tk-line);
  border-radius: 10px;
  background: var(--tk-surface);
  box-shadow: var(--tk-soft-shadow);
}

.tk-home-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.tk-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
}

.tk-feature-card h3 {
  margin-top: 12px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.tk-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--tk-blue-dark);
  background: rgba(37, 92, 122, 0.1);
  font-size: 0.75rem;
  font-weight: 850;
}

.tk-card-number {
  color: var(--tk-amber);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.tk-card-link {
  margin-top: auto;
  color: var(--tk-blue);
  font-weight: 850;
  text-decoration: none;
}

.tk-card-link::after {
  content: " →";
}

.tk-home-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  color: #fff;
  background: var(--tk-night);
}

.tk-home-cta h2,
.tk-home-cta p {
  color: #fff;
}

.tk-home-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.tk-home-cta code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
  .header-container-in,
  .navi-in,
  .footer-in,
  .content-in {
    width: min(100% - 28px, 920px);
  }

  .main,
  .sidebar {
    border-radius: 10px;
  }

  .tk-grid,
  .tk-home-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .content {
    margin-top: 16px;
  }

  .main,
  .sidebar {
    padding: 22px;
  }

  .article h1,
  .entry-title,
  .archive-title {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
  }

  .tk-grid,
  .tk-profile-box,
  .tk-home-hero,
  .tk-feature-card,
  .tk-home-cta {
    grid-template-columns: 1fr;
  }

  .tk-home-hero,
  .tk-home-section {
    width: min(100% - 28px, 920px);
  }

  .tk-home-grid {
    grid-template-columns: 1fr;
  }

  .tk-profile-box img {
    width: 84px;
    height: 84px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  .header-container-in,
  .navi-in,
  .footer-in,
  .content-in,
  .tk-home-hero,
  .tk-home-section {
    width: min(100% - 20px, 100%);
  }

  .main,
  .sidebar {
    padding: 18px;
    border-radius: 8px;
  }

  .article h2 {
    margin-top: 2.2em;
  }

  .tk-home-hero {
    padding-top: 34px;
  }

  .tk-home h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .entry-card-wrap,
  .related-entry-card-wrap,
  .popular-entry-card-wrap,
  .tk-card,
  .tk-home-card,
  .tk-feature-card,
  .tk-home-visual,
  .tk-cta,
  .tk-profile-box,
  .tk-section {
    border-radius: 8px;
  }

  .btn,
  .wp-block-button__link,
  .ranking-item-link-buttons a,
  .article .button,
  .tk-button,
  .tk-home-actions .tk-button {
    width: 100%;
    min-height: 50px;
  }

  .article th,
  .article td {
    padding: 10px;
    font-size: 0.92rem;
  }
}
