/**
 * 吉天堂 main.css — サイト全体共通スタイル
 * snippet 34（typography）の全ページ共通部分を移植
 * snippet 55（appbar/footer）のCSSも統合
 */

/* ===== フォント ===== */
@font-face {
  font-family: 'DenkiChip';
  font-display: swap;
  src: url('https://yoshives.com/wp-content/uploads/ebitendo-fonts/denkichip.woff2') format('woff2');
}

/* ===== CSS変数（inc/variables.phpでも注入するが、CSSのみでも機能する） ===== */
:root {
  --ink:  #1c1d21;
  --sub:  #8a8f98;
  --line: #e6e8eb;
  --mag:  #c026d3;
  --cyan: #0891b2;
  --bg:   #ffffff;
  --bg2:  #fafafb;
}

/* ===== リセット・ベース ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ", Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1c1d21;
  line-height: 1.6;
}

a {
  color: #c026d3;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== 全ページ背景（home/archive/page/single共通ドット） ===== */
body.home,
body.archive,
body.search,
body.blog,
body.page,
body.single,
body.error404 {
  background-color: #e8e8ec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='3' height='3' fill='%231c1d21' fill-opacity='0.10'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  animation: ebiBgDrift 16s linear infinite;
}

@keyframes ebiBgDrift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

/* ===== appbar ===== */
.ebi-appbar {
  position: sticky;
  top: 0;
  z-index: 9990;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 2px solid #1c1d21;
}

/* WP管理バー対応 */
#wpadminbar { display: block !important; }
body.admin-bar .ebi-appbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .ebi-appbar { top: 46px; }
}

.ebi-appbar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ブランド */
.ebi-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ebi-logo-icon {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  border-radius: 0;
  display: block;
}

.ebi-home-btn {
  font-family: 'DenkiChip', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: none;
  font-size: 13px;
  color: #1c1d21;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border: 2px solid #1c1d21;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  transition: 0.08s;
  text-decoration: none;
}

.ebi-home-btn:hover {
  background: #c026d3;
  color: #fff;
}

.ebi-home-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0;
}

/* タグ帯 */
.ebi-tagband {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  align-items: center;
  overflow-x: auto;
  padding: 0 4px 0 0;
  margin: 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent);
}

.ebi-tagband::-webkit-scrollbar {
  display: none;
}

.ebi-tag {
  flex: 0 0 auto;
  font-family: 'DenkiChip', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: none;
  font-size: 15px;
  color: #1c1d21;
  height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 2px solid #1c1d21;
  border-radius: 0;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  transition: 0.08s;
  text-decoration: none;
}

.ebi-tag:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0;
}

.ebi-tag:hover {
  background: #c026d3;
  color: #fff;
}

.ebi-tag:nth-child(2n):hover {
  background: #0891b2;
}

/* 検索 */
.ebi-search {
  position: relative;
  flex: 0 0 auto;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.ebi-search-toggle {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 2px solid #1c1d21;
  border-radius: 0;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.14);
  cursor: pointer;
  color: #1c1d21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.08s;
  padding: 0;
}

.ebi-search-toggle:hover {
  background: #c026d3;
  color: #fff;
}

.ebi-search-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0;
}

.ebi-search-pop {
  position: absolute;
  top: 0;
  right: 0;
  height: 52px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid #1c1d21;
  border-radius: 0;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.14);
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: width 0.22s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.18s ease;
  will-change: width, opacity;
}

.ebi-search.ebi-open .ebi-search-pop {
  width: 248px;
  opacity: 1;
  pointer-events: auto;
}

.ebi-search.ebi-open .ebi-search-toggle {
  visibility: hidden;
}

.ebi-search-input {
  border: none;
  outline: none;
  background: transparent;
  height: 100%;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 12px;
  font-size: 14px;
  color: #1c1d21;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
}

.ebi-search-input::placeholder {
  color: #b8bcc2;
}

.ebi-search-btn {
  border: none;
  border-left: 2px solid #1c1d21;
  background: #fff;
  height: 100%;
  padding: 0 13px;
  cursor: pointer;
  color: #1c1d21;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  transition: 0.08s;
}

.ebi-search-btn:hover {
  background: #c026d3;
  color: #fff;
}

.ebi-search-btn:active {
  transform: translate(1px, 1px);
}

@media screen and (max-width: 600px) {
  .ebi-search.ebi-open .ebi-search-pop {
    width: min(70vw, 248px);
  }
}

/* ===== スマホ用ナビ ===== */
.ebi-mob-nav {
  display: none;
  gap: 8px;
  align-items: center;
}

.ebi-mob-btn {
  font-family: 'DenkiChip', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: none;
  font-size: 14px;
  color: #1c1d21;
  height: 44px;
  padding: 0 14px;
  border: 2px solid #1c1d21;
  background: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
  transition: 0.08s;
  flex: 0 0 auto;
}

.ebi-mob-btn.open {
  background: #c026d3;
  color: #fff;
}

.ebi-dropdown {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #1c1d21;
  border-bottom: 2px solid #1c1d21;
  z-index: 9999;
  max-height: 65vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ebi-dropdown.open {
  display: block;
}

.ebi-dd-item {
  display: block;
  padding: 13px 20px;
  color: #1c1d21;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  font-weight: 500;
}

.ebi-dd-item:hover,
.ebi-dd-item:active {
  background: #f9f0ff;
  color: #c026d3;
}

@media (max-width: 600px) {
  .ebi-tagband {
    display: none !important;
  }
  .ebi-mob-nav {
    display: flex !important;
  }
}

/* ===== フッター ===== */
.ebi-footer {
  max-width: 1180px;
  margin: 64px auto 40px;
  padding: 30px 22px 0;
  text-align: center;
  color: #8a8f98;
  font-size: 12.5px;
  border-top: 3px solid #1c1d21;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
}

.ebi-footer-mark {
  display: inline-block;
  font-family: 'DenkiChip', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #1c1d21;
  border: 2px solid #1c1d21;
  box-shadow: 3px 3px 0 #c026d3;
  padding: 7px 18px;
  margin-bottom: 20px;
}

.ebi-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
}

.ebi-footer-links a {
  color: #1c1d21;
  font-size: 14px;
  font-weight: 600;
  padding: 2px 22px;
  border-right: 2px solid #1c1d21;
  transition: 0.1s;
  text-decoration: none;
}

.ebi-footer-links a:first-child {
  border-left: 2px solid #1c1d21;
}

.ebi-footer-links a:hover {
  color: #c026d3;
}

.ebi-footer-support {
  max-width: 600px;
  margin: 0 auto 18px;
  color: #8a8f98;
  font-size: 12.5px;
  line-height: 1.75;
}

.ebi-footer-copy {
  color: #8a8f98;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ===== ページ遷移ローディングバー（snippet47相当） ===== */
#ebi-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c026d3, #0891b2);
  z-index: 99999;
  transition: width 0.3s ease, opacity 0.4s ease;
  pointer-events: none;
}

/* ===== 選択ハイライト ===== */
::selection {
  background: #c026d3;
  color: #fff;
}

/* ===== ページネーション ===== */
.yoshi-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.yoshi-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid #1c1d21;
  background: #fff;
  color: #1c1d21;
  box-shadow: 3px 3px 0 rgba(28, 29, 33, 0.14);
  border-radius: 0;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.yoshi-pagination .page-numbers.current {
  background: #c026d3;
  color: #fff;
  border-color: #c026d3;
}

.yoshi-pagination a.page-numbers:hover {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

.yoshi-pagination .page-numbers.dots {
  border: none;
  box-shadow: none;
  background: transparent;
}
