/*
Theme Name: 特殊顔文字キャラ図鑑
Description: キャラ別の特殊顔文字図鑑のための軽量テーマ。「特殊顔文字キャラ図鑑（機能）」プラグインと一緒に使います。ミルキー＋チェリー配色。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kaomoji-zukan-theme
*/

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #EEF2F8;
  color: #2E3440;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.7;
}
a { color: #2E3440; }
a:hover { color: #D81B60; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.kzt-skip:focus {
  clip: auto; width: auto; height: auto; margin: 0; padding: 8px 16px; z-index: 10000;
  top: 8px; left: 8px; background: #FFFFFF; border-radius: 8px;
}

/* スマホの幅で中央に置く（PCでもアプリのような1カラム） */
.kzt-app {
  max-width: 560px; margin: 0 auto; min-height: 100vh;
  background: #F7F9FC; display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(46,52,64,.06);
}
.kzt-main { flex: 1; padding-bottom: 32px; }

/* ---------- ヘッダー ---------- */
.kzt-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: rgba(255,255,255,.85); position: relative; z-index: 20;
}
.kzt-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.kzt-logo__mark {
  flex: none; font-family: var(--kz-face, system-ui, sans-serif); font-size: 15px; color: #FFFFFF;
  background: linear-gradient(135deg, #F2558B, #D81B60); border-radius: 999px; padding: 4px 10px;
}
.kzt-logo__name { font-size: 16px; font-weight: 900; color: #D81B60; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kzt-menu { position: relative; }
.kzt-menu__btn {
  list-style: none; width: 44px; height: 44px; border-radius: 14px; cursor: pointer; color: #D81B60;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 48%), linear-gradient(160deg, #FFFFFF 0%, #E8EDF5 100%);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 0 rgba(46,52,64,.22), 0 10px 20px rgba(216,27,96,.14);
}
.kzt-menu__btn::-webkit-details-marker { display: none; }
.kzt-menu[open] .kzt-menu__btn { transform: translateY(3px); box-shadow: inset 0 3px 6px rgba(46,52,64,.18); }
.kzt-menu__panel {
  position: absolute; right: 0; top: 54px; width: 240px; padding: 8px;
  background: #FFFFFF; border: 1.5px solid #FFC6D7; border-radius: 18px;
  box-shadow: 0 12px 30px rgba(216,27,96,.18);
}
.kzt-menu__list { list-style: none; margin: 0; padding: 0; }
.kzt-menu__list a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.kzt-menu__list a:hover { background: #FFE3EC; color: #2E3440; }

.kzt-gingham {
  height: 14px; background-color: #FFC6D7;
  background-image: linear-gradient(90deg, rgba(255,255,255,.55) 50%, transparent 50%), linear-gradient(rgba(255,255,255,.55) 50%, transparent 50%);
  background-size: 14px 14px;
}

/* ---------- 共通の段落 ---------- */
.kzt-section { padding: 32px 20px 0; }
.kzt-section--first { padding-top: 16px; }
.kzt-heading { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; }
.kzt-heading h1, .kzt-heading h2 { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.4; }
.kzt-heading h1 { font-size: 24px; color: #D81B60; }
.kzt-en, .kzt-hero__en {
  font-family: "Josefin Sans", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: #D81B60;
}
.kzt-intro { margin: 0 0 14px; font-size: 14px; }
.kzt-note { margin: 10px 0 0; font-size: 11px; color: #5B6270; }
.kzt-page-title { margin: 0 0 16px; font-size: 24px; font-weight: 900; line-height: 1.4; color: #D81B60; }
.kzt-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0; font-size: 12px; color: #5B6270; }
.kzt-breadcrumb a { color: #5B6270; }

/* ---------- トップ ---------- */
.kzt-hero { padding: 24px 20px 6px; display: flex; flex-direction: column; gap: 14px; }
.kzt-hero__en {
  margin: 0; font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: .06em;
  background: linear-gradient(90deg, #9CC3F5 0%, #C7B8F5 35%, #F4A3C0 65%, #F2C46D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kzt-hero__title { margin: 2px 0 0; font-size: 32px; font-weight: 900; line-height: 1.35; color: #D81B60; }
.kzt-hero__lead { margin: 0; font-size: 14px; line-height: 1.8; }

.kzt-search {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px;
  background: rgba(255,255,255,.9); border: 1px solid #FFFFFF; border-radius: 999px; color: #D81B60;
  box-shadow: inset 0 2px 5px rgba(46,52,64,.12);
}
.kzt-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; color: #2E3440;
}
.kzt-section .kzt-search { margin-bottom: 14px; }

.kzt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kzt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kz-card--mini { min-height: 76px; padding: 10px 6px; align-items: center; }
.kz-card--mini .kz-card__k { font-size: 15px; padding: 0; max-width: 100%; }
.kz-card--mini .kz-card__name { font-size: 12px; }

.kzt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.kzt-chip { min-height: 42px; font-size: 14px; }
.kzt-chip.is-current { color: #FFFFFF; background: linear-gradient(180deg, #F2558B 0%, #D81B60 100%); transform: translateY(3px); box-shadow: inset 0 3px 6px rgba(60,20,40,.25); }

/* ---------- キャラページ ---------- */
.kzt-profile {
  margin: 14px 20px 0; padding: 18px; border: 3px solid #FFFFFF; border-radius: 26px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 30px rgba(216,27,96,.12);
}
.kzt-profile__top { display: flex; justify-content: space-between; align-items: center; }
.kzt-profile__count { font-size: 12px; font-weight: 700; }
.kzt-profile__k {
  margin: 0; font-size: 44px; text-align: center; padding: 14px 8px;
  background: rgba(255,255,255,.75); border-radius: 20px; white-space: normal;
}
.kzt-profile__name { margin: 0; font-size: 28px; font-weight: 900; text-align: center; color: #D81B60; }
.kzt-parts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kzt-parts div { background: rgba(255,255,255,.75); border-radius: 14px; padding: 8px 12px; }
.kzt-parts dt { font-size: 11px; font-weight: 700; color: #5B6270; }
.kzt-parts dd { margin: 2px 0 0; font-size: 17px; }
.kzt-profile__lead { margin: 0; font-size: 13px; line-height: 1.8; }
.kzt-profile__my { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border-radius: 16px; padding: 10px 12px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.kzt-profile__mykey { flex: 1; min-width: 0; font-size: 20px; text-align: center; background: #FFF6CC; border-radius: 12px; padding: 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 固定ページ本文 ---------- */
.kzt-content { font-size: 15px; }
.kzt-content h2 { font-size: 20px; font-weight: 900; margin: 32px 0 12px; }
.kzt-content h3 { font-size: 17px; font-weight: 900; margin: 24px 0 8px; }
.kzt-content .kz-list { margin: 16px 0; }
.kzt-postlist { padding-left: 1.2em; }

/* ---------- 広告 ---------- */
.kzt-ad { margin: 32px 20px 0; text-align: center; }
.kzt-ad__label { display: block; font-size: 11px; color: #5B6270; margin-bottom: 4px; }

/* ---------- 404 ---------- */
.kzt-404 { text-align: center; }
.kzt-404__k { font-size: 44px; margin: 16px 0 0; }
.kzt-404 .kzt-chips { justify-content: center; margin: 16px 0; }

/* ---------- フッター ---------- */
.kzt-footer { background: rgba(255,255,255,.85); border-top: 1px solid #FFFFFF;padding: 22px 20px 28px; font-size: 12px; }
.kzt-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.kzt-footer__copy { margin: 12px 0 0; color: #5B6270; }

/* ---------- ミニAA ---------- */
.kzt-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; font-weight: 700; }
.kzt-pager a { color: #D81B60; }
.navigation.pagination { margin: 24px 0 0; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.navigation.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; background: #FFFFFF; border: 1.5px solid #FFC6D7;
}
.navigation.pagination .page-numbers.current { background: #D81B60; border-color: #D81B60; color: #FFFFFF; }
.kzt-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 20px;
  text-decoration: none; color: #2E3440; border: 3px solid #FFFFFF;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 48%), linear-gradient(160deg, #E4F0FF 0%, #EFEAFF 100%);
  box-shadow: 0 4px 0 rgba(46,52,64,.22), 0 10px 20px rgba(216,27,96,.14);
}
.kzt-banner:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(46,52,64,.22); }
.kzt-banner__text { display: flex; flex-direction: column; gap: 2px; }
.kzt-banner__title { font-size: 16px; font-weight: 900; }
.kzt-banner__sub { font-size: 12px; color: #5B6270; }
.kzt-banner__art { font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 11px; line-height: 1.1; white-space: pre; margin: 0; }
