/* ============================================
   ookiichimpo.com - Global Stylesheet
   Design Philosophy: Clinical Void (臨床的な虚無)
   - 徹底的なミニマリズム
   - 冷徹なグリッド
   - 「そこにあるだけ」の存在感
   ============================================ */

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

html {
  font-size: 16px;
}

body {
  background-color: #ffffff;
  color: #111111;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: none;
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s linear;
}

a:hover {
  border-bottom-color: #2fc0b8;
}

/* ============================================
   Layout & Spacing
   ============================================ */

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.header {
  padding: 3rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.footer {
  padding: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(17, 17, 17, 0.6);
  margin-top: 4rem;
}

/* ============================================
   Navigation
   ============================================ */

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #2fc0b8;
  transition: width 0.2s linear;
}

nav a:hover::after {
  width: 100%;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background-color: transparent;
  color: #111111;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s linear;
  text-decoration: none;
}

.btn:hover {
  border-color: #2fc0b8;
  color: #2fc0b8;
}

.btn-primary {
  background-color: #2fc0b8;
  color: #ffffff;
  border-color: #2fc0b8;
}

.btn-primary:hover {
  background-color: transparent;
  color: #2fc0b8;
  border-color: #2fc0b8;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* ============================================
   Tables
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

th {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-weight: 400;
  letter-spacing: 0.01em;
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Forms
   ============================================ */

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
  color: #111111;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  transition: border-color 0.2s linear;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2fc0b8;
}

/* ============================================
   Geometric Shapes (Abstract Icons)
   ============================================ */

.shape {
  display: inline-block;
  margin: 0 0.5rem;
}

.circle {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: inline-block;
}

.square {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid rgba(0, 0, 0, 0.3);
  display: inline-block;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.text-muted {
  color: rgba(17, 17, 17, 0.6);
  font-size: 0.875rem;
}

.spacer {
  height: 2rem;
}

.divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.accent {
  color: #2fc0b8;
}

/* ============================================
   Animations
   ============================================ */

@keyframes subtle-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: subtle-pulse 3s linear infinite;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-1px);
  }
  75% {
    transform: translateX(1px);
  }
}

.shape:hover {
  animation: shake 0.3s linear;
}

/* ============================================
   Images
   ============================================ */

.top-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav {
    gap: 1rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  nav {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.5rem 0.25rem;
  }
}
