/* nukumori-icon.com - Restored Site Styles */
/* Based on Twenty Sixteen theme aesthetic */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
  color: #494949;
  background-color: #f7f7f7;
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: #686868;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e8a4b8;
}

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

/* Site Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
  text-align: center;
}

.site-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #494949;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.site-title a {
  color: #494949;
}

.site-title a:hover {
  color: #e8a4b8;
}

.site-description {
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
}

/* Navigation */
.site-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
}

.site-nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.site-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #686868;
  letter-spacing: 0.03em;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: #e8a4b8;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #e8a4b8;
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 60%;
}

/* Main Content */
.site-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero / Intro */
.hero-section {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.hero-section h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #494949;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-description {
  font-size: 0.9rem;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #eee;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.category-card a {
  display: block;
  color: #494949;
}

.category-card a:hover {
  color: #e8a4b8;
}

.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.8rem;
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.category-name-en {
  font-size: 0.72rem;
  color: #aaa;
  text-transform: capitalize;
}

/* Page Title */
.page-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #494949;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8a4b8;
  display: inline-block;
}

.page-subtitle {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 2rem;
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.icon-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1.2rem 0.8rem 0.8rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-preview {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-preview svg {
  width: 64px;
  height: 64px;
}

.icon-label {
  font-size: 0.72rem;
  color: #888;
  line-height: 1.4;
  word-break: break-all;
}

/* Tags Section */
.tags-section {
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}

.tags-section h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #494949;
  margin-bottom: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #777;
  transition: all 0.2s ease;
}

.tag-cloud a:hover {
  background: #e8a4b8;
  color: #fff;
  border-color: #e8a4b8;
}

/* About / Content Pages */
.content-page {
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #eee;
  max-width: 700px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #494949;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8a4b8;
}

.content-page h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #494949;
  margin: 2rem 0 0.8rem;
}

.content-page p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 2;
  color: #555;
}

.content-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

.content-page ul li {
  margin-bottom: 0.4rem;
  line-height: 1.8;
}

.license-box {
  background: #fdf6f8;
  border: 1px solid #f0d4de;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.license-box h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c97d94;
  margin-bottom: 0.8rem;
}

.license-box p,
.license-box ul {
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.site-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #999;
}

.footer-nav a:hover {
  color: #e8a4b8;
}

.footer-copy {
  font-size: 0.75rem;
  color: #bbb;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: #aaa;
}

.breadcrumbs a:hover {
  color: #e8a4b8;
}

.breadcrumbs span {
  margin: 0 0.3rem;
}

/* Info Notice */
.info-notice {
  background: #fff;
  border-left: 3px solid #e8a4b8;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.8;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #e8a4b8;
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 2rem;
}

.error-page a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #e8a4b8;
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
}

.error-page a:hover {
  background: #d48fa5;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .site-nav-inner {
    gap: 0;
  }

  .site-nav a {
    padding: 0.6rem 0.6rem;
    font-size: 0.75rem;
  }

  .content-page {
    padding: 1.5rem;
  }

  .hero-section {
    padding: 1.5rem 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .footer-nav {
    gap: 0.8rem;
  }
}
