/* ============================================================
 * らんど：サイト内検索・一覧ポータル・お気に入り／最近見た
 * ============================================================ */

/* ---------- ヘッダーの検索ボタン ---------- */
.land-search-item .land-search-ico,
.land-search-inline .land-search-ico { width: 1.05em; height: 1.05em; vertical-align: -0.15em; }
.land-search-inline a { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.1em; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); color: inherit; text-decoration: none; background: rgba(255,255,255,.7); }
.land-search-inline a:hover { background: #fff; }
.land-search-inline .caption-wrap, .land-search-inline .item-label { display: inline; }

/* PC：メニュー右端の丸い検索アイコン */
.land-navi-tools { display: none; }
@media screen and (min-width: 1024px) {
  #navi .navi-in:has(> .land-navi-tools) { display: flex; align-items: center; }
  #navi .navi-in:has(> .land-navi-tools) > .menu-pc { flex: 1 1 auto; min-width: 0; }
  .land-navi-tools { display: flex; align-items: center; flex: none; padding: 0 6px 0 14px; margin-left: 6px; border-left: 1px solid rgba(0,0,0,.1); align-self: stretch; }
  #navi .land-navi-search { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.1); color: inherit; transition: background-color .2s, transform .2s, box-shadow .2s; }
  #navi .land-navi-search:hover { background: #fff; transform: scale(1.06); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
}
/* スマホ：メニューの下に検索バー */
#navi .navi-in > .menu-mobile > li.land-search-item--bar { flex: 0 0 100% !important; width: 100% !important; height: auto !important; padding: 6px 12px 10px !important; }
#navi .navi-in > .menu-mobile > li.land-search-item--bar > a { display: flex !important; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.1); font-size: 14px; }
#navi .navi-in > .menu-mobile > li.land-search-item--bar .caption-wrap, #navi .navi-in > .menu-mobile > li.land-search-item--bar .item-label { height: auto !important; line-height: 1.2 !important; display: inline !important; }
html.land-dark #navi .land-navi-search, html.land-dark #navi .navi-in > .menu-mobile > li.land-search-item--bar > a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
html.land-dark .land-navi-tools { border-left-color: rgba(255,255,255,.12); }

/* ---------- 検索窓 ---------- */
html.land-search-open { overflow: hidden; }
.land-search { position: fixed; inset: 0; z-index: 2147482000; display: flex; justify-content: center; align-items: flex-start; padding: min(12vh, 110px) 16px 16px; }
.land-search[hidden] { display: none; }
.land-search__backdrop { position: absolute; inset: 0; background: rgba(10, 14, 22, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: lds-fade .2s ease; }
.land-search__panel { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - min(12vh, 110px) - 24px); display: flex; flex-direction: column; border-radius: 16px; background: #fff; color: #222; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; animation: lds-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes lds-fade { from { opacity: 0; } }
@keyframes lds-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.land-search__form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,.08); margin: 0; }
.land-search__form > svg { width: 22px; height: 22px; flex: none; color: #8a8f98; }
.land-search__form input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; font-size: 18px; padding: 6px 0 !important; color: inherit; box-shadow: none !important; }
.land-search__form input::-webkit-search-cancel-button { display: none; }
.land-search__x { flex: none; border: 1px solid rgba(0,0,0,.15); background: transparent; border-radius: 6px; font-size: 11px; padding: 3px 7px; color: #777; cursor: pointer; }
.land-search__results { overflow-y: auto; padding: 6px; min-height: 60px; transition: opacity .15s; }
.land-search__results.is-loading { opacity: .55; }
.land-search__label { margin: 10px 10px 4px !important; font-size: 12px; font-weight: 700; color: #8a8f98; }
.land-search__hint { margin: 18px 12px !important; color: #8a8f98; font-size: 14px; text-align: center; }
.land-search__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: inherit !important; text-decoration: none !important; }
.land-search__item:hover, .land-search__item.is-active { background: rgba(0, 120, 255, .08); }
.land-search__item img, .land-search__noimg { flex: none; width: 64px; height: 42px; object-fit: cover; border-radius: 6px; background: #eef1f5; }
.land-search__noimg { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #8a8f98; }
.land-search__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.land-search__txt strong { font-size: 15px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.land-search__txt small { font-size: 12px; color: #8a8f98; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.land-search__item em { flex: none; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: #555; max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.land-search__more { display: block; margin: 6px 4px 4px; padding: 10px; border-radius: 10px; text-align: center; font-size: 14px; text-decoration: none !important; background: #f3f5f8; color: #333 !important; }
.land-search__foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid rgba(0,0,0,.08); font-size: 11px; color: #8a8f98; }
@media (max-width: 600px) {
  .land-search { padding: 8px; }
  .land-search__panel { max-height: calc(100vh - 16px); border-radius: 14px; }
  .land-search__foot { display: none; }
}

/* ---------- 一覧ポータル ---------- */
.land-portal { margin: 0 0 2em; }
.land-portal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.land-portal__title, .land-my__title { margin: 0 !important; font-size: 1.3em; font-weight: 700; line-height: 1.4; padding-left: 12px; border-left: 5px solid var(--land-accent, #7fd3e0); }
html.land-dark .land-portal__title, html.land-dark .land-my__title { border-left-color: var(--dk-key-text, #7fd3e0); }
.land-portal__more { font-size: .9em; white-space: nowrap; }
.land-portal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.land-portal__q { flex: 1 1 220px; max-width: 360px; padding: 8px 14px !important; border-radius: 999px !important; border: 1px solid rgba(0,0,0,.15) !important; font-size: 14px; }
.land-portal__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.land-portal__chips button { border: 1px solid rgba(0,0,0,.14); background: #fff; color: #333; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; line-height: 1.4; transition: background-color .15s, color .15s; }
.land-portal__chips button small { opacity: .6; margin-left: 2px; }
.land-portal__chips button.is-on { background: #333; color: #fff; border-color: #333; }
.land-portal__grid { display: grid; grid-template-columns: repeat(var(--lp-cols, 3), minmax(0, 1fr)); gap: 16px; }
.land-portal__none { margin: 1em 0; color: #888; text-align: center; }
@media (max-width: 1023px) { .land-portal__grid { grid-template-columns: repeat(min(var(--lp-cols, 3), 3), minmax(0, 1fr)); } }
@media (max-width: 834px) { .land-portal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) { .land-portal--grid .land-portal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.land-pcard { position: relative; border-radius: 12px; background: #fff; border: 1px solid rgba(0,0,0,.08); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.land-pcard[hidden] { display: none; }
.land-pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.land-pcard__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
.land-pcard__img { display: block; aspect-ratio: 16 / 9; background: #eef1f5; overflow: hidden; }
.land-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.land-pcard:hover .land-pcard__img img { transform: scale(1.04); }
.land-pcard__noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2.2em; font-weight: 700; color: #b5bcc6; }
.land-pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.land-pcard__cat { align-self: flex-start; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #eef1f5; color: #555; }
.land-pcard__title { font-size: 15px; line-height: 1.45; }
.land-pcard__ex { font-size: 12.5px; line-height: 1.55; color: #777; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.land-pcard__date { font-size: 11px; color: #999; margin-top: auto; }

/* 大きなバナー（ゲームの特集枠） */
.land-portal--banner .land-portal__grid { grid-template-columns: repeat(min(var(--lp-cols, 2), 2), minmax(0, 1fr)); }
@media (max-width: 834px) { .land-portal--banner .land-portal__grid { grid-template-columns: 1fr; } }
.land-portal--banner .land-pcard { border: 0; border-radius: 16px; }
.land-portal--banner .land-pcard__img { aspect-ratio: 16 / 8; }
.land-portal--banner .land-pcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; pointer-events: none; }
.land-portal--banner .land-pcard__title { font-size: 1.25em; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.land-portal--banner .land-pcard__ex { color: rgba(255,255,255,.85); }
.land-portal--banner .land-pcard__cat { background: rgba(255,255,255,.22); color: #fff; }
.land-portal--banner .land-pcard__date { color: rgba(255,255,255,.7); }

/* 横長リスト */
.land-portal--list .land-portal__grid { grid-template-columns: 1fr; gap: 10px; }
.land-portal--list .land-pcard__link { flex-direction: row; }
.land-portal--list .land-pcard__img { width: 160px; flex: none; }
@media (max-width: 480px) { .land-portal--list .land-pcard__img { width: 110px; } }

/* ---------- ☆ボタン ---------- */
.land-fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #9aa1ab; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; transition: transform .15s, color .15s; }
.land-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.land-fav:hover { transform: scale(1.1); color: #f5a623; }
.land-fav.is-on { color: #f5a623; }
.land-fav.is-on svg { fill: currentColor; }
.land-fav.is-pop { animation: land-fav-pop .4s ease; }
@keyframes land-fav-pop { 40% { transform: scale(1.35); } }
.land-fav-row { display: flex; justify-content: flex-end; margin: 1.5em 0 .5em; }
.land-fav--pill { position: static; width: auto; height: auto; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(0,0,0,.14); background: #fff; color: #555; box-shadow: none; font-size: 14px; }
.land-fav--pill .land-fav__on { display: none; }
.land-fav--pill.is-on { color: #c07d00; border-color: #f5c56b; background: #fff8e8; }
.land-fav--pill.is-on .land-fav__on { display: inline; }
.land-fav--pill.is-on .land-fav__off { display: none; }

/* ---------- お気に入り・最近見た ---------- */
.land-my { margin: 0 0 2em; }
.land-my__title { margin: 0 0 10px !important; }
.land-my__tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.land-my__tabs button { border: 1px solid rgba(0,0,0,.14); background: #fff; color: #333; border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.land-my__tabs button.is-on { background: #333; color: #fff; border-color: #333; }
.land-my__items { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.land-my__items li { position: relative; margin: 0 !important; padding: 0 !important; }
.land-my__items li::before { display: none !important; }
.land-my__items a { display: flex; align-items: center; gap: 10px; padding: 6px 34px 6px 6px; border-radius: 10px; color: inherit !important; text-decoration: none !important; }
.land-my__items a:hover { background: rgba(0,0,0,.04); }
.land-my__items img, .land-my__noimg { width: 56px; height: 36px; flex: none; object-fit: cover; border-radius: 6px; background: #eef1f5; }
.land-my__noimg { display: flex; align-items: center; justify-content: center; color: #9aa1ab; font-weight: 700; }
.land-my__items a span { font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.land-my__rm { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #999; cursor: pointer; font-size: 16px; line-height: 1; }
.land-my__rm:hover { background: rgba(0,0,0,.06); color: #333; }
.land-my__empty { color: #888; font-size: 14px; margin: .5em 0 !important; }
.land-my__note { font-size: 11px; color: #999; margin: 8px 0 0 !important; }

.land-portal-empty-edit { padding: 16px; border: 1px dashed #bbb; border-radius: 8px; color: #666; font-size: 13px; }

/* ---------- ダークモード ---------- */
html.land-dark .land-search__panel { background: #1c1f26; color: #e3e6ea; }
html.land-dark .land-search__form, html.land-dark .land-search__foot { border-color: rgba(255,255,255,.1); }
html.land-dark .land-search__item:hover, html.land-dark .land-search__item.is-active { background: rgba(124, 200, 255, .12); }
html.land-dark .land-search__item img, html.land-dark .land-search__noimg, html.land-dark .land-search__item em { background: #2a2e37; color: #b8bec8; }
html.land-dark .land-search__more { background: #262a32; color: #e3e6ea !important; }
html.land-dark .land-search__x { border-color: rgba(255,255,255,.2); color: #aaa; }
html.land-dark .land-pcard { background: var(--dk-surface2, #23262d); border-color: rgba(255,255,255,.08); }
html.land-dark .land-pcard__img, html.land-dark .land-pcard__cat { background: #2a2e37; color: #b8bec8; }
html.land-dark .land-pcard__ex { color: #a4abb6; }
html.land-dark .land-portal--banner .land-pcard__cat { background: rgba(255,255,255,.2); color: #fff; }
html.land-dark .land-portal__chips button, html.land-dark .land-my__tabs button { background: #23262d; color: #e3e6ea; border-color: rgba(255,255,255,.15); }
html.land-dark .land-portal__chips button.is-on, html.land-dark .land-my__tabs button.is-on { background: #e3e6ea; color: #15171c; border-color: #e3e6ea; }
html.land-dark .land-fav { background: rgba(35,38,45,.92); color: #8b929d; }
html.land-dark .land-fav.is-on { color: #ffc34d; }
html.land-dark .land-fav--pill { background: #23262d; border-color: rgba(255,255,255,.15); color: #cfd4db; }
html.land-dark .land-fav--pill.is-on { background: #3a3120; border-color: #8a6a28; color: #ffc34d; }
html.land-dark .land-my__items a:hover { background: rgba(255,255,255,.05); }
html.land-dark .land-my__items img, html.land-dark .land-my__noimg { background: #2a2e37; }
html.land-dark .land-search-inline a { background: rgba(35,38,45,.8); border-color: rgba(255,255,255,.15); }

@media print { .land-fav, .land-fav-row, .land-search { display: none !important; } }

/* ---------- サイト型トップ（パターン） ---------- */
.land-hero-intro { background: linear-gradient(135deg, rgba(201,250,255,.55), rgba(255,236,250,.55)); }
.land-pillars .land-pillar { padding: 1.2em 1em 1.4em; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,.07); box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: transform .2s ease, box-shadow .2s ease; }
.land-pillars .land-pillar:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.land-pillars .land-pillar p, .land-pillars .land-pillar h3 { margin-bottom: .5em !important; }
.land-pillars .land-pillar h3 { border: 0 !important; padding: 0 !important; background: none !important; }
html.land-dark .land-hero-intro { background: linear-gradient(135deg, rgba(40,90,100,.35), rgba(90,50,90,.3)); }
html.land-dark .land-pillars .land-pillar { background: var(--dk-surface2, #23262d); border-color: rgba(255,255,255,.08); }

.land-pillars .land-pillar .wp-block-button__link { font-size: .9em; padding: .6em 1.5em; white-space: nowrap; }

/* 横にスクロール（単行本・グッズ・作品一覧向け） */
.land-portal--scroll .land-portal__grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px * (var(--lp-cols, 4) - 1)) / var(--lp-cols, 4)); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.land-portal--scroll .land-pcard { scroll-snap-align: start; }
@media (max-width: 834px) { .land-portal--scroll .land-portal__grid { grid-auto-columns: 42%; } }
@media (max-width: 480px) { .land-portal--scroll .land-portal__grid { grid-auto-columns: 62%; } }
.land-portal--scroll .land-pcard__img { aspect-ratio: 3 / 4; }
