/* Canvas on EASEL: front-page-only design. Accent: #D11566 */
body .canvas-front { --cfp-accent:#D11566; --cfp-ink:#382832; --cfp-pale:#FBEAF1; --cfp-paper:#FFF8FB; color:var(--cfp-ink); font-size:16px; line-height:1.8; }
body .canvas-front *, body .canvas-front *::before, body .canvas-front *::after { box-sizing:border-box; }
body .canvas-front .cfp-container { width:min(1120px, calc(100% - 40px)); margin-inline:auto; }
body .canvas-front h1,body .canvas-front h2,body .canvas-front h3,body .canvas-front p { margin-top:0; }
body .canvas-front a { text-decoration:none; }
body .canvas-front .cfp-eyebrow { margin:0 0 8px; color:var(--cfp-accent); font-weight:700; letter-spacing:.13em; font-size:12px; }
body .canvas-front .cfp-section { padding:68px 0; background:#fff; }
body .canvas-front .cfp-section-tinted { background:var(--cfp-pale); }
body .canvas-front .cfp-section-title { font-size:clamp(24px,3vw,32px); line-height:1.35; margin-bottom:28px; color:var(--cfp-ink); }
/* Main artwork is full-width; no call-to-action over the image. */
body .canvas-front .cfp-hero { color:#fff; background:#341d2b; }
body .canvas-front .cfp-hero-visual { width:100%; background:#341d2b; }
body .canvas-front .cfp-hero-image { display:block; width:100%; height:auto; max-height:780px; object-fit:contain; margin:0 auto; }
body .canvas-front .cfp-hero-placeholder { min-height:clamp(320px,52vw,620px); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; padding:30px; text-align:center; background:linear-gradient(115deg,#341d2b,#7f345b 60%,#D11566); color:#ffdfec; font-size:14px; }
body .canvas-front .cfp-hero-placeholder-label { font-size:clamp(18px,4vw,38px); color:#fff; letter-spacing:.2em; font-weight:700; }
body .canvas-front .cfp-hero-caption { background:linear-gradient(115deg,#341d2b,#763151); padding:26px 0 28px; }
body .canvas-front .cfp-hero .cfp-eyebrow { color:#ffc9de; }
body .canvas-front .cfp-hero h1 { color:#fff; font-size:clamp(24px,3.6vw,38px); margin:0 0 4px; line-height:1.35; }
body .canvas-front .cfp-hero-description { max-width:740px; color:#fce4ee; margin-bottom:0; font-size:14px; }
body .canvas-front .cfp-button { display:inline-flex; justify-content:center; align-items:center; gap:10px; min-height:48px; padding:12px 22px; background:var(--cfp-accent); color:#fff; border:2px solid var(--cfp-accent); border-radius:8px; font-weight:700; text-align:center; line-height:1.4; transition:background .2s, transform .2s; }
body .canvas-front .cfp-button:hover { background:#a90d50; border-color:#a90d50; color:#fff; transform:translateY(-2px); }
body .canvas-front .cfp-button-white { background:#fff; color:#b50b55; border-color:#fff; margin-top:14px; }
body .canvas-front .cfp-button-white:hover { color:#b50b55; background:#ffe6f0; border-color:#ffe6f0; }
body .canvas-front .cfp-button-outline { background:transparent; color:var(--cfp-accent); }
body .canvas-front .cfp-button-outline:hover { color:#fff; }
body .canvas-front .cfp-comic-panel { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); overflow:hidden; border:1px solid #f0d6e0; border-radius:14px; background:#fff; box-shadow:0 10px 32px #4c16241a; }
body .canvas-front .cfp-comic-art { min-height:300px; background:linear-gradient(145deg,#472238,#bd7095); color:#ffe2ee; display:flex; justify-content:center; align-items:center; }
body .canvas-front .cfp-comic-art img { display:block; width:100%; height:100%; max-height:470px; min-height:300px; object-fit:cover; }
body .canvas-front .cfp-comic-info { padding:clamp(24px,4vw,52px); align-self:center; }
body .canvas-front .cfp-comic-info h3 { font-size:28px; margin-bottom:12px; }
body .canvas-front .cfp-comic-info p { color:#69525f; }
body .canvas-front .cfp-action-row { display:flex; gap:12px; flex-wrap:wrap; margin:26px 0 10px; }
body .canvas-front .cfp-latest-chapter { font-size:13px; }
/* Small, centered access counter between the comic feature and updates. */
body .canvas-front .cfp-counter-area { background:#fff; padding:0 0 28px; }
body .canvas-front .cfp-counter { width:min(410px,100%); margin:0 auto; padding:14px 18px; border:1px solid #efc4d7; border-radius:10px; background:var(--cfp-pale); text-align:center; }
body .canvas-front .cfp-counter .cfp-eyebrow { margin:0 0 1px; font-size:10px; }
body .canvas-front .cfp-counter-number { font:700 clamp(22px,3vw,30px)/1.25 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.1em; color:var(--cfp-accent); margin:3px 0; font-variant-numeric:tabular-nums; }
body .canvas-front .cfp-counter-description { margin:0 0 2px; font-size:12px; }
body .canvas-front .cfp-counter small { display:block; color:#866e7a; font-size:10px; }
body .canvas-front .cfp-update-list { border:1px solid #f0d6e0; border-radius:14px; padding:0 24px; }
body .canvas-front .cfp-update { display:grid; grid-template-columns:115px minmax(0,1fr); gap:24px; padding:22px 0; border-bottom:1px solid #f0d6e0; }
body .canvas-front .cfp-update:last-child { border-bottom:none; }
body .canvas-front .cfp-update-cover { background:#ecd0dc; border-radius:6px; min-height:115px; display:flex; justify-content:center; align-items:center; overflow:hidden; font-size:11px; color:#91647a; }
body .canvas-front .cfp-update-cover img { display:block; width:100%; height:120px; object-fit:cover; }
body .canvas-front .cfp-update-meta { color:var(--cfp-accent); font-size:12px; font-weight:700; margin-bottom:4px; }
body .canvas-front .cfp-update h3 { font-size:18px; line-height:1.4; margin-bottom:8px; }
body .canvas-front .cfp-update h3 a { color:var(--cfp-ink); }
body .canvas-front .cfp-update h3 a:hover { color:var(--cfp-accent); }
body .canvas-front .cfp-update-note { color:#685360; font-size:14px; margin-bottom:6px; }
body .canvas-front .cfp-text-link { font-size:13px; color:var(--cfp-accent); font-weight:700; }
body .canvas-front .cfp-pick { display:flex; justify-content:space-between; align-items:center; gap:30px; }
body .canvas-front .cfp-pick .cfp-section-title { margin-bottom:12px; }
body .canvas-front .cfp-pick p:last-child { margin-bottom:0; }
body .canvas-front .cfp-pick-button { flex-shrink:0; }
body .canvas-front .cfp-archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body .canvas-front .cfp-archive-card { display:flex; flex-direction:column; padding:25px; min-height:145px; background:var(--cfp-paper); border:1px solid #efcbd9; border-radius:10px; position:relative; color:var(--cfp-ink); transition:transform .2s,border-color .2s; }
body .canvas-front .cfp-archive-card:hover { border-color:var(--cfp-accent); transform:translateY(-3px); }
body .canvas-front .cfp-archive-english { font-size:11px; color:var(--cfp-accent); font-weight:700; letter-spacing:.08em; }
body .canvas-front .cfp-archive-card strong { font-size:20px; margin-top:14px; }
body .canvas-front .cfp-archive-arrow { position:absolute; right:22px; bottom:18px; color:var(--cfp-accent); }
body .canvas-front .cfp-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body .canvas-front .cfp-gallery-item { display:flex; align-items:center; justify-content:center; overflow:hidden; aspect-ratio:4/3; background:#e8bdcf; border-radius:8px; color:#805468; font-size:12px; transition:transform .2s; }
body .canvas-front .cfp-gallery-item:hover { transform:translateY(-3px); }
body .canvas-front .cfp-gallery-item img { display:block; width:100%; height:100%; object-fit:cover; }
body .canvas-front .cfp-gallery-more { text-align:center; margin-top:26px; margin-bottom:0; }
@media (max-width:780px) {
  body .canvas-front .cfp-section { padding:46px 0; }
  body .canvas-front .cfp-comic-panel { grid-template-columns:1fr; }
  body .canvas-front .cfp-comic-art,body .canvas-front .cfp-comic-art img { min-height:200px; max-height:320px; }
  body .canvas-front .cfp-pick { flex-direction:column; align-items:stretch; }
  body .canvas-front .cfp-pick-button { align-self:flex-start; }
  body .canvas-front .cfp-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body .canvas-front .cfp-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px) {
  body .canvas-front .cfp-container { width:calc(100% - 28px); }
  body .canvas-front .cfp-hero-placeholder { min-height:280px; }
  body .canvas-front .cfp-hero-caption { padding:18px 0 20px; }
  body .canvas-front .cfp-update-list { padding:0 12px; }
  body .canvas-front .cfp-update { grid-template-columns:80px minmax(0,1fr); gap:12px; padding:16px 0; }
  body .canvas-front .cfp-update-cover { min-height:90px; }
  body .canvas-front .cfp-update-cover img { height:95px; }
  body .canvas-front .cfp-update h3 { font-size:16px; }
  body .canvas-front .cfp-archive-card { min-height:120px; padding:16px; }
  body .canvas-front .cfp-archive-card strong { font-size:16px; }
  body .canvas-front .cfp-archive-arrow { right:12px; bottom:12px; }
  body .canvas-front .cfp-counter-number { letter-spacing:.08em; }
}

/* ===== 2026-10: preview-only header + search ===== */
body.cfp-custom-home #cfp-site-header,
body.cfp-custom-home #cfp-site-header * { box-sizing:border-box; }
body.cfp-custom-home #cfp-site-header {
  position:relative; z-index:9000; isolation:isolate;
  width:100%; margin:0 !important; padding:0 !important;
  height:auto !important; min-height:0 !important;
  border:0 !important; border-bottom:1px solid #efd7e1 !important;
  box-shadow:none !important; background:#fff !important;
}
body.cfp-custom-home #cfp-site-header .cfp-header-inner {
  max-width:1240px; width:calc(100% - 36px); min-height:68px;
  margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:10px 0;
}
body.cfp-custom-home #cfp-site-header .cfp-site-name {
  display:block; flex:0 0 auto; font-size:clamp(16px,1.8vw,23px) !important;
  font-weight:800 !important; line-height:1.3 !important;
  color:#D11566 !important; white-space:nowrap; text-decoration:none !important;
}
body.cfp-custom-home #cfp-site-header .cfp-desktop-nav { display:block; min-width:0; margin-left:auto; }
body.cfp-custom-home #cfp-site-header .cfp-nav-list {
  list-style:none !important; display:flex !important; flex-direction:row;
  align-items:center; flex-wrap:wrap; justify-content:flex-end;
  gap:5px 15px; padding:0 !important; margin:0 !important;
  background:transparent !important; border:0 !important;
}
body.cfp-custom-home #cfp-site-header .cfp-nav-list > li {
  display:block; float:none !important; position:static !important;
  width:auto !important; margin:0 !important; padding:0 !important;
  background:transparent !important; border:0 !important;
}
body.cfp-custom-home #cfp-site-header .cfp-nav-list > li > a {
  display:block !important; width:auto !important; height:auto !important;
  min-height:32px; padding:6px 0 !important; margin:0 !important;
  font-weight:600; font-size:13px !important; line-height:1.5 !important;
  white-space:nowrap; color:#483642 !important; background:transparent !important;
  border:0 !important; box-shadow:none !important; text-decoration:none !important;
}
body.cfp-custom-home #cfp-site-header .cfp-nav-list > li > a:hover,
body.cfp-custom-home #cfp-site-header .cfp-nav-list > li.current-menu-item > a { color:#D11566 !important; }
body.cfp-custom-home #cfp-site-header .cfp-desktop-search { flex:0 1 190px; min-width:145px; }
body.cfp-custom-home .cfp-search-form {
  display:flex !important; align-items:center; width:100% !important;
  min-width:0; height:39px; margin:0 !important; padding:0 !important;
  border:1px solid #e5bbce; border-radius:9px; background:#fff !important;
  overflow:hidden; box-shadow:none !important;
}
body.cfp-custom-home .cfp-search-form input[type="search"] {
  display:block !important; flex:1 1 auto; min-width:0 !important; width:100% !important;
  height:100% !important; min-height:0 !important; margin:0 !important;
  padding:7px 10px !important; border:0 !important; border-radius:0 !important;
  background:#fff !important; box-shadow:none !important; font:inherit !important;
  font-size:13px !important; line-height:1.4 !important; color:#382832 !important;
}
body.cfp-custom-home .cfp-search-form button {
  display:flex !important; align-items:center; justify-content:center;
  flex:0 0 40px; width:40px !important; height:100% !important; min-height:0 !important;
  margin:0 !important; padding:0 !important; border:0 !important;
  border-radius:0 !important; background:#D11566 !important; color:#fff !important;
  font-size:27px !important; font-weight:600 !important; line-height:1 !important;
  cursor:pointer; box-shadow:none !important;
}
body.cfp-custom-home .cfp-search-form button:hover { background:#AC1155 !important; }
body.cfp-custom-home .cfp-visually-hidden {
  position:absolute !important; overflow:hidden !important; clip:rect(0,0,0,0) !important;
  width:1px !important; height:1px !important; white-space:nowrap !important;
  padding:0 !important; margin:-1px !important; border:0 !important;
}
body.cfp-custom-home #cfp-site-header .cfp-mobile-menu,
body.cfp-custom-home #cfp-mobile-search { display:none !important; }

/* Mobile only: sticky header + native hamburger details (no JS dependency). */
@media screen and (max-width:850px) {
  body.cfp-custom-home #cfp-site-header {
    position:sticky !important; top:0; z-index:9800 !important;
    overflow:visible !important;
  }
  body.cfp-custom-home.admin-bar #cfp-site-header { top:46px; }
  body.cfp-custom-home #cfp-site-header .cfp-header-inner {
    width:calc(100% - 28px); min-height:60px; height:auto;
    padding:7px 0; gap:10px;
  }
  body.cfp-custom-home #cfp-site-header .cfp-site-name {
    flex:1 1 auto; min-width:0; white-space:normal;
    overflow-wrap:anywhere; font-size:19px !important;
  }
  body.cfp-custom-home #cfp-site-header .cfp-desktop-nav,
  body.cfp-custom-home #cfp-site-header .cfp-desktop-search { display:none !important; }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-menu {
    display:block !important; flex:0 0 auto; position:static !important;
    margin:0 !important; padding:0 !important; border:0 !important;
    background:transparent !important; overflow:visible !important;
  }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-menu-trigger {
    display:flex !important; align-items:center; justify-content:center; flex-direction:column;
    gap:3px; width:48px; height:46px; margin:0 !important; padding:4px !important;
    border:1px solid #e9bfd0; border-radius:8px;
    background:#FFF8FB; color:#D11566; cursor:pointer;
    list-style:none; position:relative; z-index:2;
    -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-menu-trigger::-webkit-details-marker { display:none; }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-menu-trigger::marker { content:""; }
  body.cfp-custom-home #cfp-site-header .cfp-menu-lines {
    display:flex; flex-direction:column; justify-content:space-between;
    width:20px; height:16px;
  }
  body.cfp-custom-home #cfp-site-header .cfp-menu-lines span {
    display:block; width:20px; height:2px; background:#D11566; border-radius:2px;
  }
  body.cfp-custom-home #cfp-site-header .cfp-menu-label {
    display:block; color:#D11566; font-size:9px; font-weight:800; line-height:1.1;
    letter-spacing:.07em;
  }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-menu[open] .cfp-mobile-menu-trigger {
    background:#FCE8F0; border-color:#D11566;
  }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-nav {
    display:block !important; position:absolute !important;
    top:100%; left:0; right:0; width:100% !important;
    margin:0 !important; padding:8px 18px 12px !important;
    max-height:calc(100dvh - 150px); overflow-y:auto;
    background:#fff !important; border:1px solid #F0D6E0 !important;
    border-top:3px solid #D11566 !important; border-radius:0 0 12px 12px;
    box-shadow:0 14px 24px rgba(56,40,50,.18) !important;
    z-index:1 !important;
  }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-nav .cfp-nav-list {
    display:flex !important; flex-direction:column !important;
    align-items:stretch !important; gap:0 !important;
  }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-nav .cfp-nav-list > li {
    display:block !important; width:100% !important;
    border-bottom:1px solid #f6e5ec !important;
  }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-nav .cfp-nav-list > li:last-child { border-bottom:0 !important; }
  body.cfp-custom-home #cfp-site-header .cfp-mobile-nav .cfp-nav-list > li > a {
    display:block !important; width:100% !important; height:auto !important;
    min-height:44px !important; padding:12px 8px !important;
    font-size:14px !important; white-space:normal !important;
  }
  body.cfp-custom-home #cfp-mobile-search {
    display:block !important; position:fixed !important;
    left:0; right:0; bottom:0; width:100% !important;
    margin:0 !important; padding:9px 14px calc(9px + env(safe-area-inset-bottom,0px)) !important;
    border-top:1px solid #efd0dc !important;
    background:rgba(255,255,255,.98) !important;
    box-shadow:0 -3px 16px rgba(56,40,50,.12) !important;
    z-index:9801 !important;
  }
  body.cfp-custom-home #cfp-mobile-search .cfp-search-form { height:42px; max-width:520px; margin:0 auto !important; }
  body.cfp-custom-home { padding-bottom:calc(68px + env(safe-area-inset-bottom,0px)) !important; }
}
/* On small phones WP admin bar is not fixed in the standard WP UI. Avoid a gap while scrolling. */
@media screen and (max-width:600px) {
  body.cfp-custom-home.admin-bar #cfp-site-header { top:0; }
}
@media (prefers-reduced-motion:reduce) {
  body.cfp-custom-home .cfp-mobile-menu-trigger { scroll-behavior:auto; }
}

/* ページ最下部の隠しリンク */
.cfp-secret-link-area {
    display: flex;
    justify-content: flex-end;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px 20px;
}

.cfp-secret-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #9A275A;
    border-radius: 8px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.cfp-secret-link:hover,
.cfp-secret-link:focus-visible {
    opacity: 1;
}

.cfp-secret-link img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* スマホ用 */
@media screen and (max-width: 768px) {
    .cfp-secret-link-area {
        padding: 12px 16px 20px;
    }
}

/* 1. 共通カラー：ローズピンクはアクセントに限定 */
body .canvas-front {
    --cfp-accent: #D11566;
    --cfp-ink: #30343B;
    --cfp-pale: #EFF0F2;
    --cfp-paper: #F7F8FA;
    color: var(--cfp-ink);
}

/* 2. 大きな背景面を淡いグレーに */
body .canvas-front .cfp-section-tinted {
    background-color: #EFF0F2;
}

/* 3. メインビジュアル下：ピンク系から落ち着いたチャコールへ */
body .canvas-front .cfp-hero,
body .canvas-front .cfp-hero-visual {
    background-color: #292C32;
}
body .canvas-front .cfp-hero-caption {
    background: linear-gradient(115deg, #292C32 0%, #41444C 100%);
}
body .canvas-front .cfp-hero-placeholder {
    background: linear-gradient(115deg, #292C32, #494D56);
    color: #F2F3F5;
}
body .canvas-front .cfp-hero .cfp-eyebrow {
    color: #F4BED6;
}
body .canvas-front .cfp-hero-description {
    color: #ECEEF1;
}

/* 4. 作品カード・更新履歴・アーカイブの枠と背景 */
body .canvas-front .cfp-comic-panel,
body .canvas-front .cfp-update-list {
    border-color: #D9DDE2;
}
body .canvas-front .cfp-comic-panel {
    box-shadow: 0 10px 28px rgba(34, 38, 45, .07);
}
body .canvas-front .cfp-comic-art {
    background: #E3E5E9;
    color: #505660;
}
body .canvas-front .cfp-comic-info p,
body .canvas-front .cfp-update-note {
    color: #5D636D;
}
body .canvas-front .cfp-update {
    border-bottom-color: #E0E3E7;
}
body .canvas-front .cfp-update-cover,
body .canvas-front .cfp-gallery-item {
    background: #E1E4E8;
    color: #626874;
}
body .canvas-front .cfp-archive-card {
    background: #F7F8FA;
    border-color: #D9DDE2;
}
body .canvas-front .cfp-archive-card:hover,
body .canvas-front .cfp-archive-card:focus-visible {
    border-color: #D11566;
}

/* 5. カウンター：小さなグレーのパネルに */
body .canvas-front .cfp-counter {
    background: #EFF0F2;
    border-color: #D9DDE2;
}
body .canvas-front .cfp-counter small {
    color: #666D76;
}

/* 6. ヘッダー・検索・ハンバーガーの薄ピンクをグレーに */
body.cfp-custom-home #cfp-site-header {
    border-bottom-color: #DDE0E4 !important;
}
body.cfp-custom-home .cfp-search-form {
    border-color: #D5D9DE;
}
body.cfp-custom-home #cfp-site-header .cfp-nav-list > li > a {
    color: #373B44 !important;
}
body.cfp-custom-home #cfp-site-header .cfp-mobile-menu-trigger {
    background: #F5F6F8;
    border-color: #D5D9DE;
}
body.cfp-custom-home #cfp-site-header .cfp-mobile-menu[open] .cfp-mobile-menu-trigger {
    background: #EFF0F2;
    border-color: #D11566;
}
body.cfp-custom-home #cfp-site-header .cfp-mobile-nav {
    border-color: #DDE0E4 !important;
    border-top-color: #D11566 !important;
    box-shadow: 0 14px 24px rgba(34, 38, 45, .16) !important;
}
body.cfp-custom-home #cfp-site-header .cfp-mobile-nav .cfp-nav-list > li {
    border-bottom-color: #E7E9EC !important;
}
body.cfp-custom-home #cfp-mobile-search {
    border-top-color: #DDE0E4 !important;
    box-shadow: 0 -3px 16px rgba(34, 38, 45, .10) !important;
}

/* 7. 隠しリンク：ホワイトアスパラ画像だけにする（ピンクの四角を削除） */
body.cfp-custom-home .cfp-secret-link-area {
    background: transparent !important;
}
body.cfp-custom-home .cfp-secret-link {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
body.cfp-custom-home .cfp-secret-link img {
    background: transparent !important;
    opacity: .72;
    filter: drop-shadow(0 1px 2px rgba(35, 38, 44, .60));
    transition: opacity .2s ease;
}
body.cfp-custom-home .cfp-secret-link:hover img,
body.cfp-custom-home .cfp-secret-link:focus-visible img {
    opacity: 1;
}
body.cfp-custom-home .cfp-secret-link:focus-visible {
    outline: 2px solid #D11566;
    outline-offset: 4px;
}

