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


/************************************
** LinkRing
************************************/

:root {
  --lr-ink: #303236;
  --lr-muted: #777;
  --lr-light: #aaa;
  --lr-line: #e7e7e7;
  --lr-bg: #f6f6f6;
  --lr-accent: #3d8ea7;

  --lr-buy: #5f8f82;
  --lr-life: #5f82a7;
  --lr-media: #8b759c;
  --lr-outing: #b1845b;
  --lr-work: #6d747d;

  --lr-max: 1180px;
}


/* ==================================================
   BASE
================================================== */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--lr-bg);
  color: var(--lr-ink);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

a:hover {
  opacity: .8;
}


/* ==================================================
   HEADER
================================================== */

#header-container,
.header-container {
  background: #fff;
  box-shadow: none;
}

.header-in {
  display: flex !important;
  align-items: center !important;

  width: min(var(--lr-max), calc(100% - 32px)) !important;
  min-height: 90px !important;
  height: 90px !important;
  max-width: var(--lr-max) !important;

  margin: 0 auto !important;
  padding: 0 !important;
}


/* LinkRing + キャッチコピー */
.logo,
.logo-header {
  position: relative;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;

  width: auto !important;
  height: 90px !important;

  margin: 0 auto 0 0 !important;
  padding: 0 !important;

  text-align: left !important;
}


/* LinkRing */
.site-name-text {
  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: var(--lr-ink);

  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;

  text-align: left !important;
}


/* ロゴ直下キャッチコピー */
.logo::after {
  content: "買ったもの、読んだもの、行ったところ。";

  display: block;

  margin: 5px 0 0 !important;
  padding: 0 !important;

  color: #999;

  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;

  white-space: nowrap;
}

.tagline {
  display: none !important;
}


/* ==================================================
   GLOBAL NAV
================================================== */

#navi {
  background: #fff;

  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid var(--lr-line);

  box-shadow: none;
}

#navi .navi-in {
  width: min(var(--lr-max), calc(100% - 32px));
  max-width: var(--lr-max);

  margin: 0 auto;
}

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

#navi .navi-in > ul > li > a {
  min-height: 46px;

  padding: 13px 20px;

  border-left: 1px solid #f2f2f2;

  color: var(--lr-ink);

  font-size: 12px;
  font-weight: 700;
}

#navi .navi-in > ul > li:last-child > a {
  border-right: 1px solid #f2f2f2;
}


/* ==================================================
   HOME WRAPPER
================================================== */

.home #content {
  margin-top: 26px;
}

.home .content-in {
  width: min(var(--lr-max), calc(100% - 20px));
  max-width: var(--lr-max);

  margin: 0 auto;
}

.home .main {
  width: 100%;

  padding: 42px 46px;

  background: #fff;

  border: 1px solid #ececec;
  border-radius: 0;

  box-shadow: none;
}

.home .entry-content {
  width: 100%;
  max-width: none !important;

  margin: 0;

  color: var(--lr-ink);

  font-size: 14px;
  line-height: 1.9;
}


/* Homeでは記事ページ用要素を消す */
.home .sns-share,
.home .sns-follow,
.home .date-tags,
.home .author-info,
.home .entry-title,
.home .article-header {
  display: none !important;
}


/* ==================================================
   HERO
================================================== */

.home .entry-content
.wp-block-group:has(.home-hero-title) {
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

.home .entry-content
.wp-block-columns:has(.home-hero-title) {
  display: grid !important;

  width: 100% !important;
  max-width: none !important;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(320px, .8fr) !important;

  gap: 44px !important;

  align-items: center !important;

  margin: 0 !important;

  padding:
    24px
    24px
    40px !important;

  box-sizing: border-box;

  border-bottom: 1px solid #eee;
}


/*
  重要：
  ここではpaddingを0にしない。
  前版ではこれがhome-hero-noteの
  padding-leftを上書きしていた。
*/
.home .entry-content
.wp-block-columns:has(.home-hero-title)
> .wp-block-column {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;

  flex: none !important;
  flex-basis: auto !important;

  margin: 0 !important;
}


/* LINKRING */
.home .home-hero-kicker {
  margin: 0 0 5px !important;
  padding: 0 !important;

  color: var(--lr-light);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
}


/* メインコピー */
.home .home-hero-title {
  width: 100% !important;
  max-width: none !important;

  margin: 7px 0 13px !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;

  color: var(--lr-ink) !important;

  font-size: 38px !important;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.025em;
}


/* PCでは意図した改行以外で割らない */
@media screen and (min-width: 835px) {

  .home .home-hero-title {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

}


/* 左側本文 */
.home .home-hero-title + p {
  width: 100%;
  max-width: 640px;

  margin: 0 !important;
  padding: 0 !important;

  color: #666;

  font-size: 14px;
  line-height: 1.9;
}


/* ==================================================
   HERO NOTE
   このブログについて
================================================== */

/*
  右カラムそのものに強いセレクタで指定。
  青線から文章まで27px確保する。
*/

.home .entry-content
.wp-block-columns:has(.home-hero-title)
> .wp-block-column.home-hero-note {
  position: relative !important;

  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;

  padding:
    8px
    4px
    8px
    27px !important;

  box-sizing: border-box !important;

  border: 0 !important;
  border-left: 0 !important;
}


/* 青い縦線 */
.home .entry-content
.wp-block-columns:has(.home-hero-title)
> .wp-block-column.home-hero-note::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 3px;

  background: var(--lr-accent);
}


/* 右カラム内の余計な余白をリセット */
.home .home-hero-note > * {
  margin-left: 0 !important;
  padding-left: 0 !important;

  text-align: left !important;
}


/* 「このブログについて」 */
.home .home-hero-note > *:first-child {
  width: 100%;

  margin:
    0
    0
    10px !important;

  padding: 0 !important;

  color: var(--lr-ink);

  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}


/* 説明文 */
.home .home-hero-note p {
  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  color: #666;

  font-size: 14px !important;
  line-height: 1.9 !important;

  text-align: left !important;
}


/* ==================================================
   H2 COMMON
================================================== */

.home .entry-content h2 {
  background: transparent;
  border: 0;

  color: var(--lr-ink);
}

.home .entry-content h2::before {
  content: none !important;
  display: none !important;
}


/* ==================================================
   PICK UP SECTION
================================================== */

.home .home-pickup-kicker {
  margin:
    46px
    0
    3px !important;

  padding: 0 !important;

  color: var(--lr-light);

  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;

  text-align: center;
}

.home .home-pickup-title {
  margin:
    0
    0
    24px !important;

  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;

  color: var(--lr-ink);

  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.5;

  text-align: center;
}


/* ==================================================
   PICK UP GRID
================================================== */

.home .home-pickup-grid {
  display: grid !important;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 17px !important;

  width: 100%;

  margin:
    0
    0
    46px !important;
}

.home .home-pickup-grid .new-entry-card-link {
  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden;

  background: #fff;

  border: 1px solid #e3e3e3;
  border-radius: 3px;

  box-shadow: none;
}

.home .home-pickup-grid .new-entry-card {
  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* PICK UP画像 */
.home .home-pickup-grid .new-entry-card-thumb {
  float: none !important;

  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}

.home .home-pickup-grid .new-entry-card-thumb img {
  display: block !important;

  width: 100% !important;
  height: 145px !important;

  object-fit: cover !important;
}


/* PICK UP本文 */
.home .home-pickup-grid .card-content,
.home .home-pickup-grid .entry-card-content,
.home .home-pickup-grid .new-entry-card-content {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  min-height: 145px;

  margin: 0 !important;

  padding:
    13px
    14px
    15px !important;

  box-sizing: border-box;

  text-align: left !important;
}


/* PICK UPタイトル */
.home .home-pickup-grid .new-entry-card-title {
  margin:
    0
    0
    7px !important;

  padding: 0 !important;

  color: var(--lr-ink);

  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.55;

  text-align: left !important;
}


/* PICK UP抜粋 */
.home .home-pickup-grid .new-entry-card-snippet {
  display: -webkit-box !important;

  margin:
    0
    0
    9px !important;

  padding: 0 !important;

  overflow: hidden;

  color: var(--lr-muted);

  font-size: 12px !important;
  line-height: 1.7;

  text-align: left !important;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* PICK UP日付 */
.home .home-pickup-grid .entry-card-meta,
.home .home-pickup-grid .post-date {
  color: var(--lr-light);

  font-size: 9px !important;

  text-align: left !important;
}


/* ==================================================
   LATEST + SIDEBAR
================================================== */

.home .wp-block-columns:has(.home-latest-list) {
  gap: 36px !important;

  align-items: flex-start !important;

  margin:
    0
    0
    36px !important;
}


/* 新着見出し */
.home .wp-block-columns:has(.home-latest-list) h2 {
  margin:
    0
    0
    7px !important;

  padding:
    0
    0
    8px !important;

  background: transparent !important;

  border: 0 !important;
  border-bottom:
    2px solid #444 !important;

  color: var(--lr-ink);

  font-size: 20px !important;
  font-weight: 700;
}


/* ==================================================
   LATEST LIST
================================================== */

.home .home-latest-list {
  width: 100%;

  margin: 0;
}

.home .home-latest-list .new-entry-card-link {
  display: block;

  margin: 0 !important;

  padding:
    17px
    0 !important;

  background: #fff;

  border: 0;
  border-bottom: 1px solid #eee;
}

.home .home-latest-list .new-entry-card {
  display: grid !important;

  grid-template-columns:
    185px minmax(0, 1fr);

  gap: 16px;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  align-items: start;
}


/* 新着画像 */
.home .home-latest-list .new-entry-card-thumb {
  float: none !important;

  width: 185px !important;

  margin: 0 !important;
}

.home .home-latest-list .new-entry-card-thumb img {
  display: block;

  width: 185px !important;
  height: 105px !important;

  object-fit: cover;
}


/* 新着本文 */
.home .home-latest-list .card-content,
.home .home-latest-list .entry-card-content {
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  text-align: left !important;
}

.home .home-latest-list .new-entry-card-title {
  margin:
    3px
    0
    6px !important;

  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.5;

  text-align: left !important;
}

.home .home-latest-list .new-entry-card-snippet {
  display: -webkit-box !important;

  margin: 0;

  overflow: hidden;

  color: var(--lr-muted);

  font-size: 12px !important;
  line-height: 1.7;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* ==================================================
   MORE BUTTON
================================================== */

.home .home-more-button {
  display: flex;

  width: 100%;

  margin:
    22px
    0
    0 !important;

  justify-content: center;
}

.home .home-more-button .wp-block-button__link,
.home .wp-block-button.home-more-button .wp-block-button__link {
  padding:
    8px
    23px !important;

  background: #fff !important;

  border:
    1px solid #aaa !important;

  border-radius: 0 !important;

  color: var(--lr-ink) !important;

  font-size: 12px !important;
  font-weight: 500;
}


/* ==================================================
   PROFILE
================================================== */

.home .profile-box,
.home .author-box {
  margin:
    0
    0
    17px;

  padding: 18px;

  background: #fff;

  border:
    1px solid #e3e3e3;

  border-radius: 0;

  box-shadow: none;

  text-align: center;
}

.home .profile-box img,
.home .author-box img {
  float: none;

  display: block;

  width: 65px;
  height: 65px;

  margin:
    0
    auto
    8px;

  border-radius: 50%;

  object-fit: cover;
}

.home .profile-box-description,
.home .author-description {
  color: var(--lr-muted);

  font-size: 12px;
  line-height: 1.7;

  text-align: left;
}


/* ==================================================
   SIDEBAR CATEGORY
================================================== */

.home .home-side-title {
  margin:
    0
    0
    10px !important;

  padding:
    0
    0
    7px !important;

  background: transparent !important;

  border: 0 !important;
  border-bottom:
    2px solid
    var(--lr-accent) !important;

  font-size: 14px !important;
  font-weight: 700;
}

.home .wp-block-categories,
.home .wp-block-categories-list {
  margin: 0;

  padding: 18px;

  background: #fff;

  border:
    1px solid #e3e3e3;

  list-style: none;
}

.home .wp-block-categories li,
.home .wp-block-categories-list li {
  display: flex;

  justify-content: space-between;

  margin: 0;

  padding:
    7px
    0;

  border-bottom:
    1px dotted #ddd;

  font-size: 12px;
}


/* ==================================================
   CATEGORY HEADINGS
================================================== */

.home .home-cat-label {
  margin:
    36px
    0
    5px !important;

  padding-top: 38px;

  border-top:
    1px solid #eee;

  color: var(--lr-light);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
}

.home .home-cat-title {
  margin:
    0
    0
    18px !important;

  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;

  color: var(--lr-ink) !important;

  font-size: 22px !important;
  font-weight: 700;
}


/* ==================================================
   CATEGORY GRID
================================================== */

.home .home-cat-grid {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px !important;

  width: 100%;

  margin:
    0
    0
    34px !important;
}

.home .home-cat-grid .new-entry-card-link {
  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden;

  background: #fff;

  border:
    1px solid #e3e3e3;

  border-radius: 3px;

  text-align: left !important;
}

.home .home-cat-grid .new-entry-card {
  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}

.home .home-cat-grid .new-entry-card-thumb {
  float: none !important;

  width: 100% !important;

  margin: 0 !important;
}

.home .home-cat-grid .new-entry-card-thumb img {
  display: block !important;

  width: 100% !important;
  height: 160px !important;

  object-fit: cover !important;
}

.home .home-cat-grid .card-content,
.home .home-cat-grid .entry-card-content {
  width: 100% !important;

  min-height: 150px;

  margin: 0 !important;

  padding:
    18px
    20px
    19px !important;

  box-sizing: border-box;

  text-align: left !important;
}

.home .home-cat-grid .new-entry-card-title {
  margin:
    0
    0
    9px !important;

  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.6;

  text-align: left !important;
}

.home .home-cat-grid .new-entry-card-snippet {
  display: -webkit-box !important;

  margin:
    0
    0
    12px !important;

  overflow: hidden;

  color: var(--lr-muted);

  font-size: 12px !important;
  line-height: 1.8;

  text-align: left !important;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home .home-cat-grid .post-date,
.home .home-cat-grid .entry-card-meta {
  color: var(--lr-light);

  font-size: 9px !important;

  text-align: left !important;
}


/* ==================================================
   NO IMAGE
================================================== */

.home .no-image {
  background: #f5f5f5 !important;
  color: #ccc !important;
}


/* ==================================================
   ABOUT
================================================== */

.home .entry-content > h2:last-of-type {
  margin:
    45px
    0
    0 !important;

  padding:
    26px
    26px
    7px !important;

  background: #fafafa !important;

  border:
    1px solid #e5e5e5 !important;

  border-bottom: 0 !important;

  font-size: 20px !important;
}

.home .entry-content > h2:last-of-type + p {
  margin: 0;

  padding:
    0
    26px
    26px;

  background: #fafafa;

  border:
    1px solid #e5e5e5;

  border-top: 0;

  color: #666;

  font-size: 13px;
  line-height: 1.8;
}


/* ==================================================
   FOOTER
================================================== */

#footer,
.footer {
  margin-top: 45px;

  background: #333;

  color: #ddd;
}

#footer a,
.footer a {
  color: #ddd;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/


/*1023px以下*/
@media screen and (max-width: 1023px) {

  .home .main {
    padding:
      34px
      28px;
  }

  .home .home-hero-title {
    font-size: 33px !important;
  }

  .home .entry-content
  .wp-block-columns:has(.home-hero-title) {
    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(290px, .85fr) !important;

    gap: 36px !important;
  }

}


/*834px以下*/
@media screen and (max-width: 834px) {

  .header-in {
    min-height: 68px !important;
    height: 68px !important;
  }

  .logo,
  .logo-header {
    height: 68px !important;
  }

  .site-name-text {
    font-size: 24px !important;
  }

  .logo::after {
    font-size: 10px;
  }

  #navi {
    display: none;
  }

  .home #content {
    margin-top: 8px;
  }

  .home .content-in {
    width: calc(100% - 14px);
  }

  .home .main {
    padding:
      19px
      12px;
  }


  /* HERO */

  .home .entry-content
  .wp-block-columns:has(.home-hero-title) {
    display: block !important;

    width: 100% !important;

    padding:
      18px
      7px
      26px !important;
  }

  .home .home-hero-title {
    font-size: 28px !important;

    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .home .home-hero-note {
    display: none;
  }


  /* PICK UP */

  .home .home-pickup-kicker {
    margin-top: 32px !important;
  }

  .home .home-pickup-title {
    font-size: 22px !important;
  }

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

  .home .home-pickup-grid
  .new-entry-card-thumb img {
    height: auto !important;

    aspect-ratio: 16 / 9;
  }


  /* LATEST */

  .home .wp-block-columns:has(.home-latest-list) {
    display: block !important;
  }

  .home .home-latest-list .new-entry-card {
    grid-template-columns:
      110px minmax(0, 1fr);

    gap: 10px;
  }

  .home .home-latest-list
  .new-entry-card-thumb {
    width: 110px !important;
  }

  .home .home-latest-list
  .new-entry-card-thumb img {
    width: 110px !important;
    height: 80px !important;
  }

  .home .home-latest-list
  .new-entry-card-snippet {
    display: none !important;
  }


  /* CATEGORY */

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

  .home .home-cat-grid
  .new-entry-card-thumb img {
    height: auto !important;

    aspect-ratio: 16 / 9;
  }

}


/*480px以下*/
@media screen and (max-width: 480px) {

  .home .main {
    padding:
      18px
      12px;
  }

  .home .home-hero-title {
    font-size: 26px !important;
  }

  .home .home-cat-label {
    margin-top: 28px !important;
    padding-top: 30px;
  }

}