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

body {
  font-family: 'Noto Sans JP', 'Rajdhani', sans-serif;
  background: #0a0e17;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(10, 200, 185, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 170, 110, 0.05) 0%, transparent 50%),
    #0a0e17;
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='30' cy='30' r='0.5' fill='%23ffffff08'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 56px;
}

.header-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #0ac8b9, #c8aa6e);
  margin: 0 auto 20px;
  border-radius: 1px;
}

.header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f0e6d2 0%, #c8aa6e 50%, #0ac8b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #5a6a80;
  letter-spacing: 2px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Project Card */
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 22, 36, 0.95), rgba(10, 15, 25, 0.98));
  border: 1px solid rgba(200, 170, 110, 0.15);
  border-radius: 12px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8aa6e, #0ac8b9, transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover {
  border-color: rgba(200, 170, 110, 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(10, 200, 185, 0.05);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 200, 185, 0.1), rgba(200, 170, 110, 0.1));
  border: 1px solid rgba(200, 170, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #f0e6d2;
}

.keyword-summoner {
  color: #c8aa6e;
  font-weight: 700;
  letter-spacing: 2px;
}

.keyword-server {
  color: #7289da;
  font-weight: 700;
  letter-spacing: 2px;
}

.keyword-dash {
  color: #0bc4e3;
  font-weight: 700;
  letter-spacing: 2px;
}

.card-desc {
  font-size: 0.85rem;
  color: #6a7a90;
  line-height: 1.6;
}

.card-tag {
  display: inline-block;
  margin-top: auto;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0ac8b9;
  background: rgba(10, 200, 185, 0.08);
  border: 1px solid rgba(10, 200, 185, 0.2);
  border-radius: 4px;
  width: fit-content;
}

.card-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 1rem;
  color: #3a4a5a;
  transition: all 0.35s;
}

.card:hover .card-arrow {
  color: #0ac8b9;
  transform: translateX(4px);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 64px;
  font-size: 0.75rem;
  color: #3a4550;
  letter-spacing: 1px;
}

/* Site Info Links */
.site-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.site-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: #6a7a90;
  font-size: 0.85rem;
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid rgba(200, 170, 110, 0.1);
  transition: all 0.3s;
}

.site-link:hover {
  color: #f0e6d2;
  border-color: rgba(200, 170, 110, 0.25);
  background: rgba(15, 22, 36, 0.9);
}

.site-link-icon {
  font-size: 1rem;
}

.site-link-text {
  letter-spacing: 0.5px;
}

.global-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px 32px;
  border-top: 1px solid rgba(200, 170, 110, 0.1);
  margin-top: 40px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #6a7a90;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

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

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
}

/* ===== Page Layout (Privacy / Contact) ===== */
.page-container {
  padding-bottom: 40px;
}

.page-nav {
  margin-bottom: 20px;
}

.page-nav-back {
  color: #6a7a90;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.page-nav-back:hover {
  color: #0ac8b9;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 36px;
}

.policy-section h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0e6d2;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200, 170, 110, 0.15);
}

.policy-section p {
  font-size: 0.88rem;
  color: #b0b8c8;
  line-height: 1.8;
  margin-bottom: 10px;
}

.policy-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.policy-section li {
  font-size: 0.85rem;
  color: #b0b8c8;
  line-height: 1.8;
  margin-bottom: 6px;
}

.policy-section a {
  color: #0ac8b9;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 200, 185, 0.3);
  transition: border-color 0.3s;
}

.policy-section a:hover {
  border-color: #0ac8b9;
}

.policy-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 170, 110, 0.1);
}

.policy-meta p {
  font-size: 0.8rem;
  color: #5a6a80;
  line-height: 1.8;
}

/* Profile Table */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.profile-table th,
.profile-table td {
  padding: 10px 16px;
  font-size: 0.88rem;
  text-align: left;
  border-bottom: 1px solid rgba(200, 170, 110, 0.1);
}

.profile-table th {
  color: #8a9ab0;
  font-weight: 500;
  white-space: nowrap;
  width: 140px;
}

.profile-table td {
  color: #d0d8e8;
}

/* Profile Avatar */
.profile-avatar {
  text-align: center;
  margin-bottom: 20px;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200, 170, 110, 0.3);
  box-shadow: 0 0 20px rgba(10, 200, 185, 0.1);
}

/* Overview section: centered */
.profile-overview {
  text-align: center;
}

.profile-overview h2 {
  text-align: left;
}

/* Name display */
.profile-name {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  color: #f0e6d2 !important;
  text-transform: uppercase;
  margin: 8px 0 12px !important;
  background: linear-gradient(135deg, #f0e6d2 0%, #c8aa6e 60%, #0ac8b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* LoL Profile Card Image */
.profile-lol-card {
  margin: 12px 0 24px;
  text-align: center;
}

.profile-lol-card img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(200, 170, 110, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Contact form embed */
.form-embed {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid rgba(200, 170, 110, 0.1);
}

.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 600px;
}

/* SNS contact */
.contact-sns {
  margin-top: 16px;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
}

.sns-link-x {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sns-link-x:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .container {
    padding: 40px 16px 60px;
  }
  .header h1 {
    font-size: 1.6rem;
    letter-spacing: 3px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .form-embed iframe {
    min-height: 500px;
  }
}
