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

/************************************
** 子テーマ用のスタイルを書く
************************************/

:root{--custom-bg:#ebdcca;--custom-text:#1a1a1a;--custom-text-light:#6b6b6b;--custom-accent:#e8573d;--custom-accent-soft:#f0a08c;--custom-border:#e0ddd8;--custom-card-bg:#ffffff;--custom-shadow:0 2px 20px rgba(0,0,0,0.06);--custom-shadow-hover:0 8px 40px rgba(0,0,0,0.12);--custom-radius:10px}
body{background-color:var(--custom-bg)!important;font-family:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;color:var(--custom-text);line-height:1.8;-webkit-font-smoothing:antialiased}
.wrap{max-width:1200px}
.main,#content,.content-in{background:transparent!important}
.n2-section-smartslider{max-width:100vw!important;width:100vw!important;margin-left:calc(-50vw + 50%)!important;padding:0!important;overflow:hidden}
.widget-content-top{max-width:100vw!important;width:100vw!important;margin-left:calc(-50vw + 50%)!important;padding:0!important;overflow:hidden;margin-bottom:0!important}
.n2-ss-slider{max-width:100%!important;width:100%!important;margin:0!important}
.header-container,.header-container-in{background-color:var(--custom-bg)!important}
.site-name-text,.logo-header a{font-family:'Playfair Display','Noto Serif JP',serif;font-size:28px;font-weight:700;letter-spacing:2px;color:var(--custom-text)!important}
.tagline{font-size:12px;color:var(--custom-text-light);letter-spacing:2px}
.header-container{box-shadow:none!important;border-bottom:1px solid var(--custom-border)}
#navi,.navi-in,#navi .navi-in{background-color:var(--custom-bg)!important}
.navi-in>ul{justify-content:center}
.navi-in a{color:var(--custom-text)!important;font-size:13px;font-weight:400;letter-spacing:0.5px;padding:12px 20px!important;position:relative;background-color:transparent!important;transition:color 0.25s ease}
.navi-in a::after{content:'';position:absolute;bottom:0;left:50%;width:0;height:1.5px;background:var(--custom-accent);transition:width 0.3s ease,left 0.3s ease}
.navi-in a,.navi-in .current-menu-item>a,.navi-in .current_page_item>a{border-bottom:none!important}
#navi .navi-in a{border-bottom:none!important}
.navi-in a:hover{background-color:transparent!important;color:var(--custom-accent)!important}
.navi-in a:hover::after{width:100%;left:0}
.navi-in .current-menu-item>a,.navi-in .current_page_item>a{color:var(--custom-accent)!important;font-weight:500}
.navi-in .current-menu-item>a::after,.navi-in .current_page_item>a::after{width:100%;left:0}
.navi-in .has-icon{display:none!important}
.navi-in>ul .sub-menu{background:var(--custom-card-bg)!important;border:1px solid var(--custom-border);border-radius:6px;box-shadow:var(--custom-shadow);min-width:220px}
.navi-in>ul .sub-menu a{font-size:12px;padding:10px 18px!important}
.navi-in>ul .sub-menu a:hover::after{width:0}
.carousel{margin-bottom:0!important;background:#f0eeea}
.carousel-in{max-width:100%!important;padding:0!important}
.carousel .slick-slide{margin:0!important}
.carousel-entry-card-wrap{margin:0!important;padding:0!important}
.carousel .carousel-entry-card-thumb{aspect-ratio:1/1;overflow:hidden}
.carousel .carousel-entry-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94)}
.carousel-entry-card-wrap:hover .carousel-entry-card-thumb img{transform:scale(1.05)}
.carousel-entry-card-title{position:absolute;bottom:0;left:0;right:0;padding:40px 20px 20px;background:linear-gradient(transparent,rgba(0,0,0,0.6))!important;color:#fff!important;font-size:14px;font-weight:500;line-height:1.5;opacity:0;transform:translateY(8px);transition:opacity 0.4s,transform 0.4s}
.carousel-entry-card-wrap:hover .carousel-entry-card-title{opacity:1;transform:translateY(0)}
.carousel .slick-prev,.carousel .slick-next{width:44px!important;height:44px!important;background:rgba(255,255,255,0.9)!important;border-radius:50%!important;box-shadow:0 2px 12px rgba(0,0,0,0.1);z-index:10}
.carousel .slick-dots{bottom:16px!important}
.carousel .slick-dots li button::before{color:rgba(255,255,255,0.5)!important;font-size:10px}
.carousel .slick-dots li.slick-active button::before{color:#fff!important}
.recommended{max-width:1200px;margin:0 auto!important;padding:40px 24px 24px}
.recommended .navi-entry-cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;gap:20px!important;width:100%!important}
.recommended .navi-entry-cards .a-wrap,.recommended .navi-entry-cards a.a-wrap{display:block!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;float:none!important;background:transparent!important;transition:transform 0.3s ease}
.recommended .a-wrap:hover{background:transparent!important;transform:translateY(-4px)}
.recommended .widget-entry-card-thumb,.recommended .card-thumb,.recommended .no-image.card-thumb,.recommended .widget-entry-card-thumb.card-thumb{aspect-ratio:1/1!important;width:100%!important;height:auto!important;max-width:100%!important;border-radius:8px;overflow:hidden;margin:0 0 10px 0!important;padding:0!important;float:none!important}
.recommended .widget-entry-card-thumb img,.recommended .card-thumb img,.recommended .no-image.card-thumb img{width:100%!important;height:100%!important;object-fit:cover;transition:transform 0.4s ease}
.recommended .a-wrap:hover img{transform:scale(1.06)}
.recommended .widget-entry-cards .a-wrap,.recommended .widget-entry-cards.card-large-image .a-wrap,.recommended .widget-entry-cards.card-large-image .e-card{display:block!important;flex-direction:column!important}
.recommended .card-content,.recommended .widget-entry-card-content,.recommended .e-card .card-content{width:100%!important;max-width:100%!important;float:none!important;padding:0!important}
.recommended .card-title,.recommended .widget-entry-card-title{font-size:13px;font-weight:400;color:var(--custom-text);line-height:1.6;text-align:center}
.recommended .card-snippet,.recommended .card-meta,.recommended .card-date{display:none!important}
.recommended .ribbon{display:none}
.list::before{content:'New Articles'!important;display:block!important;grid-column:1/-1!important;font-family:'Playfair Display',serif;font-size:26px;font-weight:700;color:var(--custom-text);margin-bottom:4px;padding-bottom:12px;border-bottom:1px solid var(--custom-border)}
.single .list::before,.category .list::before,.tag .list::before,.search .list::before,.archive .list::before{content:none!important;display:none!important}
.list{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:24px!important}
.list .a-wrap{display:block!important;width:100%!important;float:none!important}
.entry-card-wrap{width:100%!important;max-width:100%!important;margin:0!important;float:none!important}
.entry-card-wrap.a-wrap{background:var(--custom-card-bg);border-radius:var(--custom-radius);overflow:hidden;box-shadow:var(--custom-shadow);padding:0!important;transition:transform 0.3s ease,box-shadow 0.3s ease}
.entry-card-wrap.a-wrap:hover{transform:translateY(-6px);box-shadow:var(--custom-shadow-hover);background:var(--custom-card-bg)!important}
.entry-card-thumb{aspect-ratio:16/10;overflow:hidden;border-radius:0;width:100%!important;float:none!important}
.entry-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.entry-card-wrap:hover .entry-card-thumb img{transform:scale(1.05)}
.entry-card-content{padding:18px 22px 22px;width:100%!important;float:none!important}
.cat-label{background:var(--custom-accent)!important;color:#fff!important;padding:2px 12px;border-radius:3px;font-size:10px;font-weight:500;letter-spacing:0.5px}
.entry-card-title{font-size:15px;font-weight:500;line-height:1.7;color:var(--custom-text)}
.entry-card .post-date,.entry-card .post-update{font-size:11px;color:var(--custom-text-light)}
.entry-card-snippet{font-size:12px;color:var(--custom-text-light);line-height:1.7;margin-top:8px}
.entry-card .post-views,.entry-card-meta .post-views,.post-views,.pv-count{display:none!important}
.entry-card .widget-entry-card-pv,.widget-entry-card-pv{display:none!important}
.pagination-next-link,.list-more-button{background:var(--custom-text)!important;color:#fff!important;border:none!important;border-radius:50px;padding:14px 40px;font-size:13px;letter-spacing:1px;transition:background 0.3s,transform 0.2s}
.pagination-next-link:hover,.list-more-button:hover{background:var(--custom-accent)!important;transform:translateY(-2px)}
.pagination .page-numbers{border-radius:50%;width:40px;height:40px;line-height:40px;font-size:13px;border:1px solid var(--custom-border);background:var(--custom-card-bg);color:var(--custom-text);transition:all 0.3s}
.pagination .current{background:var(--custom-text)!important;color:#fff!important;border-color:var(--custom-text)}
.pagination .page-numbers:hover:not(.current){background:var(--custom-accent)!important;color:#fff!important;border-color:var(--custom-accent)}
#sidebar{background:transparent}
.sidebar h3,.sidebar .widget-title{font-size:14px;font-weight:700;letter-spacing:1px;color:var(--custom-text);border-left:3px solid var(--custom-accent);padding-left:12px;margin-bottom:16px;border-bottom:none;background:transparent}
.author-box,.nwa .author-box{background:var(--custom-card-bg);border-radius:var(--custom-radius);box-shadow:var(--custom-shadow);padding:24px;border:none}
.widget-entry-cards .a-wrap{padding:8px!important;margin-bottom:8px!important;border-radius:6px;transition:background 0.3s}
.widget-entry-cards .a-wrap:hover{background:rgba(0,0,0,0.02)!important}
.widget-entry-card-thumb{border-radius:6px;overflow:hidden}
.footer,#footer,.footer-bottom,.footer-bottom-content{background:#1a1a1a!important;color:#c8c8c8}
.footer a,#footer a,.footer-bottom a{color:#888!important;transition:color 0.25s}
.footer a:hover,#footer a:hover,.footer-bottom a:hover{color:#fff!important}
#footer .widget-title,.footer .widget-title{color:#fff!important;font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:500;border:none;padding-left:0;margin-bottom:18px}
.footer-widgets{max-width:1200px;margin:0 auto;padding:48px 24px}
.copyright{font-size:11px;color:#555}
.footer-bottom-menu a{font-size:11px;color:#555!important}
.footer-bottom-menu a:hover{color:#aaa!important}
.mobile-footer-menu-buttons{background:#1a1a1a!important;border-top:1px solid rgba(255,255,255,0.08)}
.breadcrumb{font-size:11px;color:var(--custom-text-light);padding:12px 0;border-bottom:none}
.entry-title{font-size:28px;font-weight:700;line-height:1.6;color:var(--custom-text);margin-bottom:16px}
.entry-content{font-size:18px;line-height:2;color:#333}
.entry-content h2{font-size:22px;font-weight:700;color:var(--custom-text);padding:16px 0 12px;margin:48px 0 24px;border-bottom:2px solid var(--custom-accent);border-top:none;border-left:none;background:transparent!important}
.entry-content h3{font-size:18px;font-weight:700;color:var(--custom-text);padding:12px 0 8px;margin:36px 0 16px;border-bottom:1px solid var(--custom-border);border-left:3px solid var(--custom-accent);padding-left:14px;background:transparent!important}
.sns-share-buttons a,.sns-follow-buttons a{border-radius:50px!important;font-size:12px}
@keyframes customFadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.entry-card-wrap{animation:customFadeUp 0.5s ease forwards}
.entry-card-wrap:nth-child(1){animation-delay:0.05s}
.entry-card-wrap:nth-child(2){animation-delay:0.1s}
.entry-card-wrap:nth-child(3){animation-delay:0.15s}
.entry-card-wrap:nth-child(4){animation-delay:0.2s}
.entry-card-wrap:nth-child(5){animation-delay:0.25s}
.entry-card-wrap:nth-child(6){animation-delay:0.3s}
@media screen and (max-width:834px){
.site-name-text,.logo-header a{font-size:22px}
.navi-in a{font-size:12px;padding:10px 14px!important}
.list{grid-template-columns:repeat(2,1fr)!important;gap:16px!important}
.recommended .navi-entry-cards{grid-template-columns:repeat(3,1fr);gap:14px}
}
@media screen and (max-width:480px){
.list{grid-template-columns:1fr!important;gap:20px!important}
.recommended .navi-entry-cards{grid-template-columns:repeat(2,1fr);gap:12px}
.navi-in>ul{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;justify-content:flex-start;padding:0 12px}
.navi-in a{white-space:nowrap;padding:10px 12px!important}
.entry-card-content{padding:14px 16px 18px}
.entry-card-title{font-size:14px}
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/* ==========================================================
   ★ 最終修正：おすすめカードの完全センタリング＋横ズレ防止
   ========================================================== */
/* ①スライダー全幅化による横揺れ・数ピクセルのズレを防止 */
body {
  overflow-x: hidden !important;
}

/* ②コンテナの不要な左右余白を消去 */
.recommended {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ③【ズレの原因】リストの左パディングを強制リセットし中央配置 */
.recommended .navi-entry-cards {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important; /* ←ここが原因でした */
}

/* ④PC：4列の中央配置 */
.recommended .navi-entry-cards .a-wrap {
  flex: 0 1 calc(25% - 18px) !important;
  max-width: 260px !important;
  margin: 0 !important; /* 個別カードの余白もリセット */
}

/* タブレット：3列の中央配置 */
@media screen and (max-width: 834px) {
  .recommended .navi-entry-cards .a-wrap {
    flex: 0 1 calc(33.333% - 16px) !important;
  }
}

/* スマホ：2列の中央配置 */
@media screen and (max-width: 480px) {
  .recommended .navi-entry-cards .a-wrap {
    flex: 0 1 calc(50% - 12px) !important;
  }
}

/* ----------------------------------------------------------
   ★ エッセイ風テキストの微調整（余白・行間・文字幅）
   ---------------------------------------------------------- */
/* 記事本文のベース設定 */
.entry-content {
  color: #383838; /* ① 真っ黒（#000）を避けて、目に優しい上品な墨色に */
  line-height: 2.0; /* ② ゆったりとした行間（通常は1.7〜1.8程度を広めに） */
  letter-spacing: 0.06em; /* ③ 文字と文字の間にわずかな余白（明朝体が美しく見えます） */
  font-size: 16px; /* ④ スマホでもPCでも読みやすい基本サイズ */
}

/* 段落（Pタグ）の下の余白 */
.entry-content p {
  margin-bottom: 2.2em; /* ⑤ 段落ごとの間隔をしっかり取る */
}