@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/
/* =========================================================
//  コピペで簡単！SWELLの投稿リストをToDoリスト風にカスタマイズ
// ========================================================= */
/* カスタムプロパティの設定 */
.p-postListWrap.-todo {
  /* チェックマークアイコン（-true:達成／-false:未達成） */
  --icon_todo-true: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwb2x5bGluZSBwb2ludHM9IjkgMTEgMTIgMTQgMjIgNCI+PC9wb2x5bGluZT48cGF0aCBkPSJNMjEgMTJ2N2EyIDIgMCAwIDEtMiAySDVhMiAyIDAgMCAxLTItMlY1YTIgMiAwIDAgMSAyLTJoMTEiPjwvcGF0aD48L3N2Zz4=);
  --icon_todo-false: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjMiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PC9zdmc+);
  /* チェックマーク色 */
  --color_todo-true: rgb(67, 152, 10);    /* 達成：緑 */
  --color_todo-false: rgba(0, 0, 0, .8);  /* 未達成：黒 */
}

/* 投稿リストのデフォルト装飾打ち消し */
.p-postListWrap.-todo .p-postList.-type-simple { border-top: none; }
.p-postListWrap.-todo .p-postList.-type-simple .p-postList__link { border-bottom: none; padding: 0.25em; }
.p-postListWrap.-todo .p-postList .p-postList__link:hover { background-color: transparent; }

/* ToDoリストのデフォルト装飾（デフォルトは達成済） */
.p-postListWrap.-todo .p-postList .p-postList__item {
  padding: 0 0 0 2em;
  --icon_todo: var(--icon_todo-true);
  --color_todo: var(--color_todo-true);
  color: var(--color_todo);
}

/* チェックマーク */
.p-postListWrap.-todo .p-postList .p-postList__item::before {
  content: "";
  display: block;
  position: absolute;
  width: 1.5em;
  aspect-ratio: 1;
  background: var(--color_todo);
  top: 0.2em;
  left: 0;
  -webkit-mask-image: var(--icon_todo);
          mask-image: var(--icon_todo);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
/* 未達成の場合 */
.p-postListWrap.-todo .p-postList .p-postList__item:has(a[href="#false"]) { 
  pointer-events: none;
  --icon_todo: var(--icon_todo-false);
  --color_todo: var(--color_todo-false);
}
.p-postListWrap.-todo .p-postList .p-postList__item:has(a[href="#false"]) .p-postList__meta {
  opacity: 0;
}

/* 達成済みでリンク無効の場合 */
.p-postListWrap.-todo .p-postList .p-postList__item:has(a[href="#"]) { 
  pointer-events: none;
}

/* リンクありホバー時のマーカーアニメーション */
.p-postListWrap.-todo .p-postList .p-postList__item .p-postList__title { 
  position: relative;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.p-postListWrap.-todo .p-postList .p-postList__item .p-postList__title::after {
  content: "";
  display: block;
  width: 100%;
  height: 0.5em;
  background: var(--color_todo-true);
  opacity: 0.3;
  position: absolute;
  bottom: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}
.p-postListWrap.-todo .p-postList .p-postList__item:hover .p-postList__title::after {
  transform: scaleX(1);
}

/* 日付をタイトル下に移動 */
.p-postListWrap.-todo .p-postList .p-postList__body {
  display: flex;
  flex-direction: column-reverse;
}

/* 更新日アイコンを「達成日：」文字に変更 */
.p-postListWrap.-todo .p-postList .c-postTimes__modified::before {
  content: "達成日：";
  font-family: var(--swl-font_family) !important;
  font-size: 10px;
  top: 0;
}
