/* ============================================================
 * layout.css - 全体レイアウト / コンテナ / セクション余白
 * ============================================================ */

.ieppy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #efefef;
  border-bottom: 1px solid var(--color-border);
  height: 52px;
}

.ieppy-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ieppy-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.ieppy-header__logo img {
  display: block;
  width: 34px;
  height: 34px;
  -o-object-fit: contain;
     object-fit: contain;
}

.ieppy-header__site-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.ieppy-header__nav-list {
  display: flex;
  gap: 24px;
  align-items: center;
}

.ieppy-header__nav-list a {
  color: var(--color-text);
  font-size: var(--font-size-base);
  text-decoration: none;
}

.ieppy-header__nav-list a:hover {
  color: var(--color-primary);
}

/* メインコンテンツ */
.ieppy-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 8px calc(var(--bottom-nav-height) + 16px);
  min-height: 60vh;
}

.ieppy-page-content {
  padding: 0 25px;
}

/* ページタイトル */
.ieppy-page-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 0 8px;
}

/* フッター */
.ieppy-footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 24px 16px;
  margin-top: 40px;
}

.ieppy-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.ieppy-footer__copy {
  font-size: var(--font-size-sm);
  color: #aaa;
}

.ieppy-footer__nav-list {
  display: flex;
  gap: 16px;
}

.ieppy-footer__nav-list a {
  color: #ccc;
  font-size: var(--font-size-sm);
}

/* 汎用ボタン */
.ieppy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
  cursor: pointer;
  border: none;
}

.ieppy-btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  color: var(--color-white);
}

/* 空状態 */
.ieppy-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--color-text-muted);
}

.ieppy-empty-state__text {
  margin-bottom: 16px;
}

/* お気に入りページ */
.ieppy-favorites-page .ieppy-favorites-bulk-cta {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  z-index: 50;
}

.ieppy-favorites-bulk-cta__btn {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ieppy-favorites-bulk-cta__empty-msg {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 8px;
}

.wp-block-image.aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wp-block-image.aligncenter img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}