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

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

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

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

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

/* ========================================
   おでかけ部：最近更新した記事
======================================== */

.odekake-updated-posts {
    margin: 0;
    padding: 0;
}


/* 1記事 */
.odekake-updated-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}


/* 記事全体リンク */
.odekake-updated-link {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 0;

    color: inherit;
    text-decoration: none;
}


/* ホバー */
.odekake-updated-link:hover {
    opacity: 0.8;
}


/* アイキャッチ */
.odekake-updated-thumbnail {
    flex: 0 0 180px;
    width: 180px;
    overflow: hidden;
    border-radius: 4px;
}


.odekake-updated-thumbnail img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
    margin: 0;
}


/* 本文 */
.odekake-updated-body {
    flex: 1;
    min-width: 0;
}


/* タイトル */
.odekake-updated-title {
    margin: 0 0 8px;
    padding: 0;

    border: none;
    background: none;

    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}


/* 更新日 */
.odekake-updated-date {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    color: #777;
}


/* 「更新」ラベル */
.odekake-updated-label {
    display: inline-block;

    padding: 2px 7px;

    border: 1px solid #9baa8d;
    border-radius: 3px;

    color: #65725c;
    font-size: 11px;
    line-height: 1.4;
}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 600px) {

    .odekake-updated-link {
        gap: 12px;
        padding: 14px 0;
        align-items: flex-start;
    }


    .odekake-updated-thumbnail {
        flex: 0 0 110px;
        width: 110px;
    }


    .odekake-updated-thumbnail img {
        height: 75px;
    }


    .odekake-updated-title {
        margin-bottom: 5px;
        font-size: 15px;
        line-height: 1.5;
    }


    .odekake-updated-date {
        font-size: 11px;
    }


    .odekake-updated-label {
        padding: 1px 5px;
        font-size: 10px;
    }

}


/* ========================================
   更新記事一覧ページのページネーション
======================================== */

.odekake-updated-pagination {
    margin-top: 35px;
    text-align: center;
}


.odekake-updated-pagination .page-numbers {
    display: inline-block;

    margin: 3px;
    padding: 7px 12px;

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

    text-decoration: none;
}


.odekake-updated-pagination .current {
    background: #f3f5f1;
    font-weight: bold;
}

/* ========================================
   おでかけ部：トップページの記事一覧を統一
   2026-09-22
======================================== */
.entry-content .odekake-updated-item {
  margin: 0 0.2em 20px;
  padding: 0;
  border-bottom: 0;
}

.entry-content .odekake-updated-link {
  gap: 18px;
  align-items: flex-start;
  padding: 0;
  color: #1967d2;
  text-decoration: underline;
}

.entry-content .odekake-updated-thumbnail {
  flex: 0 0 150px;
  width: 150px;
  border-radius: 0;
}

.entry-content .odekake-updated-thumbnail img {
  width: 150px;
  height: 112.5px;
  object-fit: cover;
}

.entry-content h3.odekake-updated-title {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: #1967d2;
  text-decoration: underline;
}

.entry-content .odekake-updated-date {
  gap: 8px;
  font-size: 14.625px;
  line-height: 1.8;
  color: #333;
}

@media screen and (max-width: 600px) {
  .entry-content .odekake-updated-item {
    margin-bottom: 20px;
  }

  .entry-content .odekake-updated-link {
    gap: 12px;
    padding: 0;
  }

  .entry-content .odekake-updated-thumbnail {
    flex-basis: 110px;
    width: 110px;
  }

  .entry-content .odekake-updated-thumbnail img {
    width: 110px;
    height: 82.5px;
  }

  .entry-content h3.odekake-updated-title {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.5;
  }

  .entry-content .odekake-updated-date {
    font-size: 11px;
    line-height: 1.5;
  }
}


/* スマートフォン：Cocoonの見出しサイズ指定より優先 */
@media screen and (max-width: 600px) {
  .entry-content h3.odekake-updated-title {
    font-size: 15px !important;
  }
}


/* トップページのインライン指定より優先し、旅ブログ一覧と揃える */
@media screen and (max-width: 600px) {
  .page-id-34782 .entry-content h3.odekake-updated-title {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
}


/* ========================================
   更新記事一覧ページ：画像・タイトル・ページネーション調整
======================================== */
body.page .article .entry-content h3.odekake-updated-title {
  margin-top: 0 !important;
}

.odekake-updated-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 46px;
  height: 46px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
