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

/************************************
** 子テーマ用のスタイルを書く
** Apple 公式サイト風デザイン
** （モノトーン基調＋ブルーのアクセント・たっぷりの余白・SF Proフォント）
************************************/

/*-----------------------------------
  デザインの基本設定（CSS変数）
  ※ここの色を変えるだけでサイト全体の配色が変わります
-----------------------------------*/
:root {
  --c-accent: #0071e3;          /* Appleブルー（ボタンなど） */
  --c-accent-hover: #0077ed;    /* ホバー時の少し明るいブルー */
  --c-link: #0066cc;            /* リンク文字のブルー */
  --c-text: #1d1d1f;            /* 本文の文字色（Appleの“ほぼ黒”） */
  --c-text-sub: #6e6e73;        /* 補足テキストのグレー */
  --c-bg: #ffffff;              /* ページ背景（白） */
  --c-bg-soft: #f5f5f7;         /* セクション背景（Appleの薄グレー） */
  --c-surface: #ffffff;         /* カードなどの背景 */
  --c-border: #d2d2d7;          /* 枠線（薄いグレー） */
  --c-border-soft: #e8e8ed;     /* さらに薄い枠線 */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, .12);
  /* Appleのシステムフォント（SF Pro）→ 日本語は游ゴシック・ヒラギノ */
  --font-base: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
    "Noto Sans JP", Meiryo, sans-serif;
  --transition: .35s cubic-bezier(.28, .11, .32, 1);
}

/*-----------------------------------
  全体
-----------------------------------*/
body {
  font-family: var(--font-base);
  color: var(--c-text);
  background-color: var(--c-bg);
  letter-spacing: -.01em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--c-link);
  text-decoration: underline;
}

::selection {
  background: rgba(0, 113, 227, .18);
  color: var(--c-text);
}

/*-----------------------------------
  ヘッダー（Apple特有の細い半透明ナビ）
-----------------------------------*/
#header-container {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-border-soft);
  box-shadow: none;
}

#header {
  background: transparent;
}

.header-in {
  min-height: auto;
}

.logo-header {
  padding: 22px 0 18px;
}

.site-name-text {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--c-text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.tagline {
  color: var(--c-text-sub);
  font-size: 12px;
  letter-spacing: .02em;
  margin-bottom: 0;
}

/*-----------------------------------
  グローバルナビ
-----------------------------------*/
#navi {
  background: transparent;
}

#navi .navi-in > ul > li > a {
  position: relative;
  color: var(--c-text);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -.01em;
}

#navi .navi-in > ul > li > a:hover {
  background: transparent;
  color: var(--c-text);
  opacity: .62;
}

#navi .navi-in > ul > li.current-menu-item > a {
  color: var(--c-text);
  font-weight: 500;
}

/* サブメニュー */
#navi .navi-in > ul .sub-menu {
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

#navi .navi-in > ul .sub-menu a {
  color: var(--c-text);
  font-size: 13px;
}

#navi .navi-in > ul .sub-menu a:hover {
  background: var(--c-bg-soft);
  color: var(--c-text);
}

/*-----------------------------------
  メインエリア・サイドバーの土台
-----------------------------------*/
#content {
  margin-top: 40px;
}

.main,
.sidebar {
  background: transparent;
  border: none;
}

.main {
  padding: 0;
}

/* 投稿・固定ページの本文はカードで包む */
.single .main .article,
.page .main .article {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 56px 48px;
}

/*-----------------------------------
  パンくずリスト
-----------------------------------*/
.breadcrumb {
  color: var(--c-text-sub);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--c-text-sub);
}

.breadcrumb a:hover {
  color: var(--c-link);
}

/*-----------------------------------
  記事一覧（エントリーカード）
-----------------------------------*/
.ect-entry-card .entry-card-wrap,
.entry-card-wrap {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--c-border-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

a.entry-card-wrap:hover {
  background: var(--c-surface);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border);
}

.entry-card-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-card-thumb img {
  transition: transform .7s cubic-bezier(.28, .11, .32, 1);
}

a.entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.05);
}

.entry-card-title {
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--c-text);
}

a.entry-card-wrap:hover .entry-card-title {
  color: var(--c-text);
}

.entry-card-snippet {
  color: var(--c-text-sub);
  line-height: 1.7;
}

.entry-card-meta,
.e-card-info {
  color: var(--c-text-sub);
}

/* カテゴリーラベル（サムネイル上の小さいラベル） */
.cat-label {
  top: 10px;
  left: 10px;
  border: none;
  border-radius: 980px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  max-width: 80%;
}

/* 縦型カード表示時 */
.ecb-entry-card .entry-card-wrap,
.ect-vertical-card .entry-card-wrap {
  padding: 0 0 16px;
  overflow: hidden;
}

.ect-vertical-card .entry-card-thumb {
  border-radius: 0;
}

.ect-vertical-card .entry-card-content {
  padding: 0 16px;
}

/*-----------------------------------
  記事ページ（Apple風の大きく詰まった見出し）
-----------------------------------*/
.entry-title,
.archive-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-text);
}

.date-tags {
  color: var(--c-text-sub);
}

.eye-catch {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article {
  line-height: 1.8;
  font-size: 17px;
}

.article p {
  margin-bottom: 1.6em;
}

/* 見出し H2：シンプルに大きく、下に細いライン */
.article h2 {
  position: relative;
  background: none;
  color: var(--c-text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  padding: 0 0 14px;
  border: none;
  border-bottom: 1px solid var(--c-border-soft);
  border-radius: 0;
  margin: 2.4em 0 1.1em;
  box-shadow: none;
}

/* 見出し H3：太字のみ、装飾は最小限 */
.article h3 {
  position: relative;
  background: none;
  border: none;
  color: var(--c-text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 0;
  margin: 2em 0 .9em;
}

.article h3::before {
  content: none;
}

/* 見出し H4 */
.article h4 {
  border: none;
  color: var(--c-text);
  padding: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 1.8em 0 .8em;
}

.article h5,
.article h6 {
  border: none;
  color: var(--c-text);
  font-weight: 600;
}

/* 引用 */
.article blockquote {
  background: var(--c-bg-soft);
  border: none;
  border-radius: var(--radius-md);
  color: var(--c-text);
  padding: 24px 28px;
}

.article blockquote::before,
.article blockquote::after {
  color: var(--c-border);
}

/* 本文内の画像 */
.article .wp-block-image img,
.article .entry-content img {
  border-radius: var(--radius-md);
}

/* 表 */
.article table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article th {
  background: var(--c-bg-soft);
  color: var(--c-text);
  font-weight: 600;
}

.article th,
.article td {
  border: none;
  border-bottom: 1px solid var(--c-border-soft);
  padding: 13px 16px;
}

.article tr:last-child th,
.article tr:last-child td {
  border-bottom: none;
}

.article tr:nth-of-type(2n+1) {
  background: transparent;
}

/* インラインコード */
.article code:not(pre code) {
  background: var(--c-bg-soft);
  color: #d6336c;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .9em;
}

/*-----------------------------------
  目次
-----------------------------------*/
.toc {
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
  padding: 28px 32px;
  box-shadow: none;
}

.toc-title {
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--c-text);
}

.toc-content a {
  color: var(--c-text-sub);
}

.toc-content a:hover {
  color: var(--c-link);
  text-decoration: none;
}

/*-----------------------------------
  ボタン類（Appleブルーの錠剤型ボタン）
-----------------------------------*/
.btn,
.comment-btn,
.form-submit input[type="submit"],
.list-more-button,
.pagination-next-link {
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-weight: 500;
  letter-spacing: -.01em;
  box-shadow: none;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover,
.comment-btn:hover,
.form-submit input[type="submit"]:hover,
.list-more-button:hover,
.pagination-next-link:hover {
  color: #fff;
  background: var(--c-accent-hover);
  transform: scale(1.02);
  box-shadow: none;
}

/* ページ送り（1,2,3…） */
.pagination .page-numbers {
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: none;
  font-weight: 500;
  transition: all var(--transition);
}

.pagination .page-numbers:hover {
  background: var(--c-bg-soft);
  color: var(--c-text);
}

.pagination .current {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* 前後の記事ナビ */
.pager-post-navi a {
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.pager-post-navi a:hover {
  background: var(--c-bg-soft);
}

/*-----------------------------------
  サイドバー・ウィジェット
-----------------------------------*/
.sidebar .widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar h2,
.sidebar h3,
.widget-sidebar-title {
  background: none;
  color: var(--c-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 0 0 14px;
  margin-bottom: 16px;
  border: none;
  border-bottom: 1px solid var(--c-border-soft);
  position: relative;
}

.sidebar h2::after,
.sidebar h3::after,
.widget-sidebar-title::after {
  content: none;
}

.sidebar .widget ul li a {
  color: var(--c-text);
  border-radius: var(--radius-sm);
}

.sidebar .widget ul li a:hover {
  background: var(--c-bg-soft);
  color: var(--c-text);
}

/* プロフィールボックス */
.author-box {
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: none;
}

.author-box .author-thumb img {
  border: 1px solid var(--c-border-soft);
}

/* タグクラウド */
.tagcloud a,
.entry-tags a {
  border: 1px solid var(--c-border);
  border-radius: 980px;
  background: var(--c-surface);
  color: var(--c-text-sub);
  padding: 4px 13px;
  transition: all var(--transition);
}

.tagcloud a:hover,
.entry-tags a:hover {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}

/* 記事下のカテゴリーリンク */
.entry-categories a {
  border-radius: 980px;
  background: var(--c-accent);
  color: #fff;
  padding: 4px 14px;
}

/*-----------------------------------
  検索ボックス
-----------------------------------*/
.search-box {
  position: relative;
}

.search-edit {
  border: 1px solid var(--c-border);
  border-radius: 980px;
  padding: 11px 48px 11px 20px;
  background: var(--c-bg-soft);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-edit:focus {
  outline: none;
  background: var(--c-surface);
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .15);
}

.search-submit {
  color: var(--c-text-sub);
  right: 8px;
}

.search-submit:hover {
  color: var(--c-accent);
}

/* フォーム全般 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .15);
}

/*-----------------------------------
  ブログカード・関連記事
-----------------------------------*/
.blogcard-wrap {
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-soft);
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blogcard-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blogcard {
  border: none;
}

.blogcard-label {
  background: var(--c-text);
  color: #fff;
  border-radius: 980px;
}

.related-entry-heading,
.comment-title {
  font-weight: 700;
  letter-spacing: -.01em;
  border: none;
  background: none;
  font-size: 24px;
  color: var(--c-text);
}

.related-entry-card-wrap {
  border-radius: var(--radius-md);
  padding: 12px;
  transition: background var(--transition);
}

.related-entry-card-wrap:hover {
  background: var(--c-bg-soft);
}

.related-entry-card-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/*-----------------------------------
  SNSシェア・フォローボタン
-----------------------------------*/
.sns-share-buttons a,
.sns-follow-buttons a {
  border-radius: var(--radius-md);
  transition: transform var(--transition), opacity var(--transition);
}

.sns-share-buttons a:hover,
.sns-follow-buttons a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.sns-share-message,
.sns-follow-message {
  font-weight: 600;
  color: var(--c-text-sub);
}

/*-----------------------------------
  フッター（Apple風の薄グレー背景）
-----------------------------------*/
#footer {
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  margin-top: 80px;
  padding-top: 48px;
  position: relative;
  border-top: 1px solid var(--c-border-soft);
}

#footer::before {
  content: none;
}

#footer a {
  color: var(--c-text-sub);
}

#footer a:hover {
  color: var(--c-text);
}

#footer .widget-footer-title,
#footer h2,
#footer h3 {
  color: var(--c-text);
  background: none;
  border: none;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--c-border-soft);
  margin-top: 32px;
  padding-top: 24px;
  background: transparent;
}

.copyright {
  color: var(--c-text-sub);
  font-size: 12px;
}

/*-----------------------------------
  トップへ戻るボタン
-----------------------------------*/
.go-to-top-button {
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background var(--transition);
}

.go-to-top-button:hover {
  background: rgba(0, 0, 0, .7);
  transform: translateY(-4px);
}

/*-----------------------------------
  モバイル用ボトムメニュー
-----------------------------------*/
.mobile-menu-buttons {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border-soft);
  box-shadow: none;
}

.mobile-menu-buttons .menu-button > a,
.mobile-menu-buttons .menu-button .menu-button-in {
  color: var(--c-text);
}

/*-----------------------------------
  アニメーションを控えたい人への配慮
  （OSで「視差効果を減らす」を設定している場合）
-----------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  #content {
    margin-top: 28px;
  }

  .single .main .article,
  .page .main .article {
    padding: 44px 36px;
  }

  .entry-title,
  .archive-title {
    font-size: 34px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .logo-header {
    padding: 16px 0 12px;
  }

  .site-name-text {
    font-size: 21px;
  }

  .entry-title,
  .archive-title {
    font-size: 30px;
  }

  .article {
    font-size: 16px;
  }

  .article h2 {
    font-size: 24px;
  }

  .article h3 {
    font-size: 20px;
  }

  .sidebar .widget {
    padding: 20px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  #content {
    margin-top: 16px;
  }

  .single .main .article,
  .page .main .article {
    padding: 32px 20px;
    border-radius: var(--radius-md);
  }

  .entry-card-wrap {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .entry-title,
  .archive-title {
    font-size: 26px;
  }

  .article h2 {
    font-size: 21px;
  }

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

  .toc {
    padding: 22px;
  }
}
