/* Material Icons */
@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./fonts/material-icons.woff2") format("woff2"),
       url("./fonts/material-icons.woff") format("woff");
}

/* IBM Plex Sans JP */
@font-face {
  font-family: "IBM Plex Sans JP";
  font-style: normal;
  font-weight: 300;
  src: url("./fonts/IBMPlexSansJP-Light.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans JP";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/IBMPlexSansJP-Regular.woff2") format("woff2");
}

/* M PLUS 1 */
@font-face {
  font-family: "M PLUS 1";
  font-style: normal;
  font-weight: 300;
  src: url("./fonts/MPLUS1-Light.woff2") format("woff2");
}

@font-face {
  font-family: "M PLUS 1";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/MPLUS1-Regular.woff2") format("woff2");
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
}

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "M PLUS 1", sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

/* Navigation */
nav {
  background: #16213e;
  padding: 1rem 2rem;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #eee;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: #0f3460;
}

/* Page container */
.page {
  padding: 2rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home page */
.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideIn 0.6s ease;
}

.hero p {
  font-size: 1.2rem;
  color: #aaa;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Counter page */
.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 4rem;
}

.counter-value {
  font-size: 6rem;
  font-weight: bold;
  color: #e94560;
  transition: transform 0.2s ease;
}

.counter-value.bump {
  animation: bump 0.2s ease;
}

@keyframes bump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.counter-buttons {
  display: flex;
  gap: 1rem;
}

.counter-buttons button {
  background: #e94560;
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.counter-buttons button:hover {
  background: #ff6b6b;
  transform: scale(1.05);
}

.counter-buttons button:active {
  transform: scale(0.95);
}

/* About page */
.about {
  max-width: 600px;
  margin: 0 auto;
}

.about h1 {
  margin-bottom: 1rem;
}

.card {
  background: #16213e;
  padding: 2rem;
  border-radius: 16px;
  margin-top: 1rem;
  animation: cardIn 0.5s ease;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #0f3460;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .material-icons {
  color: #e94560;
}


/* Fonts comparison page */
.fonts-page {
  max-width: 800px;
  margin: 0 auto;
}

.fonts-page h1 {
  margin-bottom: 2rem;
}

.font-sample {
  background: #16213e;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.font-sample h2 {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0.75rem;
  font-weight: normal;
}

.font-sample p {
  font-size: 1.5rem;
}

.font-mplus1 {
  font-family: "M PLUS 1", sans-serif;
}

.font-ibm {
  font-family: "IBM Plex Sans JP", sans-serif;
}

.font-system {
  font-family: system-ui, sans-serif;
}


/* Test pages */
.test-page, .test-effect-page {
  max-width: 800px;
  margin: 0 auto;
}

.test-section {
  background: #16213e;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.test-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #e94560;
}

.test-desc {
  color: #888;
  margin-bottom: 1rem;
}

.test-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.test-buttons a,
.test-buttons button {
  background: #0f3460;
  color: #eee;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.test-buttons a:hover,
.test-buttons button:hover {
  background: #e94560;
}

.effect-result {
  background: #0f3460;
  padding: 1rem;
  border-radius: 8px;
  white-space: pre-wrap;
  font-family: monospace;
}
