/* Ameblo-inspired overrides for Mainroad theme */

/* Color scheme: pink accent */
:root {
  --accent: #e8609a;
  --accent-dark: #c0396b;
  --accent-light: #fce4ec;
}

/* Font - Ameblo-like sizes */
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif !important;
  font-size: 15px !important;
}
.logo__title {
  font-size: 1.5rem !important;
}
.list__title {
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
}
.post__title {
  font-size: 1.3rem !important;
}
.widget__title {
  font-size: 0.9rem !important;
}
.widget__item {
  font-size: 0.85rem !important;
}
.entry-content, .post__content {
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* Header - Ameblo-like white */
.header {
  background: #fff !important;
  border-bottom: 1px solid #eee !important;
}
.logo__title, .logo__title a {
  color: #333 !important;
  font-weight: 700 !important;
}
.logo__tagline {
  color: #666 !important;
}
.menu__item a, .menu__item a:visited {
  color: #333 !important;
}
.menu__item a:hover {
  color: #e8609a !important;
  background: #f5f5f5 !important;
}

/* Sidebar widgets */
.widget {
  border: 1px solid #eee !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  margin-bottom: 20px !important;
}
.widget__title {
  color: #e8609a !important;
  border-bottom: 2px solid #e8609a !important;
  padding-bottom: 8px !important;
  font-weight: 700 !important;
}
.widget__item a, .widget__item a:visited {
  color: #333 !important;
}
.widget__item a:hover {
  color: #e8609a !important;
}

/* Post list (index) - Ameblo-like horizontal layout */
.list__item {
  display: flex !important;
  gap: 16px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid #eee !important;
  align-items: flex-start !important;
  position: relative !important;
  cursor: pointer !important;
}
.stretched-link::after {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  content: "" !important;
}
.list__item:last-child { border-bottom: none !important; }
.list__thumbnail {
  flex-shrink: 0 !important;
  width: 120px !important;
  height: 90px !important;
  overflow: hidden !important;
  border-radius: 4px !important;
}
.thumbnail__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-height: none !important;
}
.list__header {
  flex: 1 !important;
  min-width: 0 !important;
}
.list__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}
.list__title a, .list__title a:visited {
  color: #333 !important;
  text-decoration: none !important;
}
.list__title a:hover {
  color: #e8609a !important;
}
.list__meta {
  color: #999 !important;
  font-size: 0.8rem !important;
  margin-bottom: 6px !important;
}
.list__excerpt {
  color: #666 !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  margin-top: 4px !important;
}
.entry-content a {
  color: #e8609a !important;
}

/* Single post */
.post__title {
  color: #333 !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
}
.post__content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 6px !important;
}

/* Single post */
.entry-title {
  color: #333 !important;
  font-weight: 700 !important;
}
.entry-content h2 {
  color: #e8609a !important;
  border-left: 4px solid #e8609a !important;
  padding-left: 12px !important;
}
.entry-content h3 {
  color: #c0396b !important;
}
.entry-content img {
  border-radius: 6px !important;
  max-width: 100% !important;
}

/* Tags */
.tag {
  display: inline-block !important;
  background: #fce4ec !important;
  color: #c0396b !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  font-size: 0.75rem !important;
  text-decoration: none !important;
  margin: 2px !important;
}
.tag:hover {
  background: #e8609a !important;
  color: #fff !important;
}

/* Profile widget */
.widget-profile__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8609a, #c0396b);
  margin: 0 auto 10px;
}
.widget-profile__name {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.widget-profile__desc {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

/* Archive widget */
.widget-archive .widget__list {
  list-style: none;
  padding: 0;
}
.widget-archive .widget__item {
  padding: 4px 0;
  border-bottom: 1px dotted #ddd;
}
.widget-archive .widget__item:last-child {
  border-bottom: none;
}

/* Thumbnail size (Ameblo-like smaller) */
.thumbnail__image {
  max-height: 120px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
}

/* Footer */
.footer {
  background: #333 !important;
  color: #aaa !important;
}
.footer a { color: #e8609a !important; }

/* Responsive */
@media (max-width: 768px) {
  .wrapper { flex-direction: column !important; }
  .sidebar { width: 100% !important; }
}
/* Reduce hero image size in post content (Ameblo-like) */
.post__content > p:first-of-type img,
.entry-content > p:first-child img {
  max-width: 500px !important;
  margin: 0 auto 16px !important;
  display: block !important;
}EOF
hugo 2>&1 | tail -2 && npx wrangler pages deploy public --project-name ${PROJECT_NAME:-$(basename $(pwd))} --branch main 2>&1 | tail -3