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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.entry-card-wrap {
    margin-bottom: 0;
    padding: 2%;
    box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.13);
    border-radius: 4px;
}
.entry-card-title {
    position: relative;
    top: 0.5em;
    left: 0; */
    border-bottom: solid 2.3px #f3eee7;
    padding: 0 0 0 0;
    font-size: 21px;
}
/* テキストコンテンツ側の位置微調整 */
.entry-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* テキスト内の要素も中央へ */
    height: 100%;
}


input[type=text],
input[type=password],
input[type=date],
input[type=datetime],
input[type=email],
input[type=number],
input[type=search],
input[type=tel],
input[type=time],
input[type=url],
textarea,
select, .search-edit {
  border-radius: 10px !important;
}

/* 右下の固定ボタン（モバイルメニュー回避版） */
#add-list-trigger-fixed {
    position: fixed;
    /* 下からの距離を 100px 程度に広げてメニューを避ける */
    bottom: calc(env(safe-area-inset-bottom) + 100px); 
    right: 20px;
    z-index: 9999; /* モバイルメニューより前面に来るように数値を大きく */
    background: #6c3c1e;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* マイリスト追加セクション全体の調整 */
.list-add-section {
    padding: 20px 10px;
    background: #fdfaf5; /* 非常に薄いベージュで区切りを意識 */
    border-radius: 15px;
    border: 1px dashed #e5dfd3;
}

/* メインボタンのスタイリング */
.list-add-large-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #6c3c1e 0%, #4a3223 100%); /* 深みのあるグラデーション */
    color: #fff !important;
    padding: 18px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 50px; /* 丸みのあるモダンな形状 */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(108, 60, 30, 0.25);
    width: 100%;
    max-width: 400px; /* スマホでもPCでも適切なサイズに */
    position: relative;
    overflow: hidden;
}

/* クリックした瞬間の沈み込み */
.list-add-large-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(108, 60, 30, 0.2);
}

/* スマホ表示での最適化 */
@media screen and (max-width: 768px) {
    .list-add-large-btn {
        padding: 16px 25px;
        font-size: 1em;
        max-width: 100%; /* 横幅いっぱい */
    }
    
    .list-add-section {
        margin-top: 40px;
        padding: 30px 15px;
    }
}

/* ログイン前や制限がある場合のグレーアウト用（必要に応じて） */
.list-add-large-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* 画面幅が広い（PCなど）時は、下端に寄せる設定 */
@media screen and (min-width: 1024px) {
    #add-list-trigger-fixed {
        bottom: 30px;
    }
}

/* ホバー時に少し浮く演出 */
#add-list-trigger-fixed:hover {
    transform: scale(1.1);
}

/* モーダルの基本スタイル */
/* モーダル背景 */
.ml-modal {
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}

/* モーダルコンテンツ */
.ml-modal-content {
    background: #fff; margin: 10% auto; width: 90%; max-width: 420px;
    border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: mlFadeIn 0.3s ease-out;
}

@keyframes mlFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ヘッダー */
.ml-header { background: #f8f9fa; padding: 15px 20px; font-weight: bold; border-bottom: 1px solid #eee; position: relative; color: #333; }
.ml-close { position: absolute; right: 15px; top: 12px; font-size: 24px; cursor: pointer; color: #999; }

/* ボディ */
.ml-body { padding: 20px; }
.ml-section-title { font-size: 0.85em; color: #888; margin-bottom: 10px; font-weight: bold; }

/* リスト選択カード */
.list-scroll-area { max-height: 180px; overflow-y: auto; margin-bottom: 15px; }
.ml-list-card {
    display: flex; align-items: center; padding: 12px 15px; border: 1px solid #eee;
    border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: 0.2s; position: relative;
}
.ml-list-card:hover { background: #fffaf5; border-color: #e67e22; }
.ml-list-card input { display: none; }
.ml-list-card .fa-check-circle { position: absolute; right: 15px; color: #ddd; }
.ml-list-card input:checked + .ml-list-name { color: #e67e22; font-weight: bold; }
.ml-list-card input:checked ~ .fa-check-circle { color: #e67e22; }

/* 区切り線 */
.ml-divider { text-align: center; border-bottom: 1px solid #eee; line-height: 0.1em; margin: 25px 0; }
.ml-divider span { background:#fff; padding:0 10px; color: #ccc; font-size: 0.8em; }

/* 入力欄 */
.ml-input-group { position: relative; }
.ml-input-group i { position: absolute; left: 12px; top: 12px; color: #ccc; }
.ml-input-group input { width: 100%; padding: 10px 10px 10px 35px; border: 1px solid #ddd; border-radius: 8px; }

/* フッター */
.ml-footer { padding: 15px 20px; background: #f8f9fa; text-align: center; }
.ml-submit-btn {
    background: #e67e22; color: #fff; border: none; padding: 12px 40px;
    border-radius: 30px; font-weight: bold; width: 100%; cursor: pointer; transition: 0.3s;
}
.ml-submit-btn:hover { background: #d35400; transform: scale(1.02); }

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	.related-entry-card-title, .entry-card-title {
		font-size: 13px;
		margin: 0 0 0.4em 0;
		line-height: 1.6;
		font-weight: bold;
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical;
	}
	.popular-entry-card-title {
		font-size: 13px;
		margin: 0 0 0.4em 0;
		line-height: 1.6;
		font-weight: bold;
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 3 !important;
		-webkit-box-orient: vertical;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
	.related-entry-card-title, .entry-card-title {
		font-size: 13px;
		margin: 0 0 0.4em 0;
		line-height: 1.6;
		font-weight: bold;
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}
	.is-list-horizontal.large-thumb .widget-entry-card-link, .is-list-horizontal.large-thumb-on .widget-entry-card-link
	 {
		max-width: 180px;
	}
}
