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

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

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/************************************
** 固定トップページ
************************************/

/* 固定ページをフロントページにしたとき、通常のページタイトル等を隠す */
body.home.page .article-header,
body.home.page .date-tags,
body.home.page .sns-share,
body.home.page .sns-follow {
  display: none;
}

body.home.page .article > .entry-content {
  margin-top: 0;
}

.doteiou-home {
  --doteiou-home-accent: #bd513f;
  --doteiou-home-accent-dark: #963c2f;
  --doteiou-home-text: #262422;
  --doteiou-home-muted: #746f69;
  --doteiou-home-line: #e6dfd6;
  --doteiou-home-soft: #fbf8f3;
}

.doteiou-home-intro {
  margin: 0 0 48px;
  padding: 30px 34px;
  background: #fff3df;
  border: 1px solid #ead8bd;
  border-left: 6px solid var(--doteiou-home-accent);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(75, 55, 38, 0.06);
}

.article .doteiou-home-intro__title {
  margin: 0 0 14px;
  padding: 0;
  color: var(--doteiou-home-text);
  background: transparent;
  border: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.45;
}

.article .doteiou-home-intro__text {
  margin: 0 !important;
  color: #2b2521 !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

.doteiou-home-category {
  margin: 0 0 58px;
}

.doteiou-home-category:last-child {
  margin-bottom: 8px;
}

.doteiou-home-category__header {
  margin-bottom: 24px;
}

.article .doteiou-home-category__title {
  margin: 0 0 12px;
  padding: 0 0 12px;
  color: var(--doteiou-home-text);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--doteiou-home-line);
  border-radius: 0;
  font-size: clamp(23px, 2.7vw, 29px);
  font-weight: 700;
  line-height: 1.5;
}

.article .doteiou-home-category__title::after {
  display: block;
  width: 64px;
  height: 2px;
  margin: 12px 0 -14px;
  content: "";
  background: var(--doteiou-home-accent);
}

.doteiou-home-category__description {
  max-width: 880px;
  margin-top: 16px;
  padding: 0;
  color: #453f3a;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.doteiou-home-category__description > :first-child {
  margin-top: 0;
}

.doteiou-home-category__description > :last-child {
  margin-bottom: 0;
}

.doteiou-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.doteiou-home-card {
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--doteiou-home-line);
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(45, 39, 33, 0.05);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.doteiou-home-card:hover {
  transform: translateY(-2px);
  border-color: #d8c9bb;
  box-shadow: 0 12px 28px rgba(45, 39, 33, 0.09);
}

.doteiou-home-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.doteiou-home-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--doteiou-home-soft);
  overflow: hidden;
}

.doteiou-home-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.doteiou-home-card:hover .doteiou-home-card__image img {
  transform: scale(1.025);
}

.doteiou-home-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 19px 16px;
}

.article .doteiou-home-card__title {
  display: -webkit-box;
  margin: 0 0 10px;
  padding: 0;
  color: var(--doteiou-home-text);
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article .doteiou-home-card__title::after {
  display: none;
}

.doteiou-home-card__excerpt {
  display: -webkit-box;
  margin: 0 0 14px !important;
  color: var(--doteiou-home-muted);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.doteiou-home-card__date {
  margin-top: auto;
  color: var(--doteiou-home-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.doteiou-home-category__more {
  display: table;
  margin: 24px 0 0 auto;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--doteiou-home-accent, #bd513f);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none !important;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.doteiou-home-category__more:hover {
  transform: translateY(-1px);
  background: var(--doteiou-home-accent-dark, #963c2f);
}

.doteiou-home-category__empty,
.doteiou-home-notice {
  padding: 14px 16px;
  background: var(--doteiou-home-soft);
  border: 1px solid var(--doteiou-home-line);
  border-radius: 7px;
}

.doteiou-home-notice {
  color: #9a3327;
}

@media screen and (max-width: 680px) {
  .doteiou-home-intro {
    margin-bottom: 40px;
    padding: 24px 22px;
  }

  .doteiou-home-category {
    margin-bottom: 48px;
  }

  .article .doteiou-home-intro__text {
    font-size: 16.5px;
    line-height: 1.9;
  }

  .doteiou-home-category__description {
    margin-top: 12px;
    padding: 0;
    font-size: 15px;
    line-height: 1.85;
  }

  .doteiou-home-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .doteiou-home-card__body {
    padding: 16px;
  }

  .article .doteiou-home-card__title {
    font-size: 17px;
    -webkit-line-clamp: 3;
  }

  .doteiou-home-card__excerpt {
    -webkit-line-clamp: 4;
  }

  .doteiou-home-category__more {
    display: block;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
    text-align: center;
  }
}


/************************************
** ブロックエディターで編集できる固定トップページ
************************************/
.doteiou-editable-home {
  --doteiou-editable-text: #2d2925;
  --doteiou-editable-muted: #4f4943;
  --doteiou-editable-accent: #bd513f;
  --doteiou-editable-line: #ded4c8;

  /* 記事カード・「もっと見る」ボタンでも共通利用する変数 */
  --doteiou-home-accent: #bd513f;
  --doteiou-home-accent-dark: #963c2f;
  --doteiou-home-text: #2d2925;
  --doteiou-home-muted: #4f4943;
  --doteiou-home-line: #ded4c8;
  --doteiou-home-soft: #fbf8f3;

  color: var(--doteiou-editable-text);
}

.doteiou-editable-home__intro {
  margin-bottom: 54px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--doteiou-editable-line);
}

.article .doteiou-editable-home__intro-title {
  margin: 0 0 18px;
  padding: 0;
  color: var(--doteiou-editable-text);
  background: transparent;
  border: 0;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.45;
}

.article .doteiou-editable-home__intro-text {
  margin: 0;
  color: #342f2b;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.95;
}

.doteiou-editable-home__section {
  margin-bottom: 62px;
}

.doteiou-editable-home__section:last-child {
  margin-bottom: 0;
}

.article .doteiou-editable-home__section-title {
  margin: 0 0 16px;
  padding: 0 0 12px;
  color: var(--doteiou-editable-text);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--doteiou-editable-line);
  border-radius: 0;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.5;
}

.article .doteiou-editable-home__section-title::after {
  display: block;
  width: 62px;
  height: 2px;
  margin: 12px 0 -14px;
  content: "";
  background: var(--doteiou-editable-accent);
}

.article .doteiou-editable-home__description {
  margin: 0 0 24px;
  color: #3f3934;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.95;
}

.doteiou-editable-home .doteiou-home-grid--single {
  grid-template-columns: minmax(0, calc(50% - 11px));
}

@media screen and (max-width: 680px) {
  .doteiou-editable-home__intro {
    margin-bottom: 44px;
    padding-bottom: 24px;
  }

  .article .doteiou-editable-home__intro-text {
    font-size: 16.5px;
    line-height: 1.9;
  }

  .doteiou-editable-home__section {
    margin-bottom: 50px;
  }

  .article .doteiou-editable-home__description {
    margin-bottom: 20px;
    font-size: 15.5px;
    line-height: 1.9;
  }

  .doteiou-editable-home .doteiou-home-grid--single {
    grid-template-columns: 1fr;
  }
}
