/* ===================================
   PreciseLight — 共通スタイルシート
   ダークテーマ + ゴールドアクセント
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ----- CSS Variables ----- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #1A1A1A;
  --border-color: #1A1A1A;
  --border-accent: #2A2A2A;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent-gold: #FFB800;
  --accent-gold-light: #FFD54F;
  --accent-gold-dim: rgba(255, 184, 0, 0.15);
  --accent-gold-glow: rgba(255, 184, 0, 0.3);
  --error-bg: #331100;
  --error-border: #662200;
  --max-width: 720px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-gold-light);
  opacity: 0.9;
}

/* ----- Layout ----- */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header ----- */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Tabler Icons global styles */
.ti {
  vertical-align: middle;
  line-height: 1;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* ----- Hero Section (Top Page) ----- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 0 40px var(--accent-gold-glow), 0 0 80px rgba(255, 184, 0, 0.1);
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 40px var(--accent-gold-glow), 0 0 80px rgba(255, 184, 0, 0.1);
  }

  50% {
    box-shadow: 0 0 50px var(--accent-gold-glow), 0 0 100px rgba(255, 184, 0, 0.15);
  }
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ----- Link Cards ----- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 60px;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card-icon {
  font-size: 28px;
  color: var(--accent-gold);
  margin-bottom: 14px;
  display: block;
}

.link-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.link-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ----- Content Page ----- */
.page-content {
  padding: 48px 0 80px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.page-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.section {
  margin-bottom: 36px;
}

.section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent-gold);
}

.section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  margin-top: 20px;
}

.section p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.section ul,
.section ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.section li {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* Info box */
.info-box {
  background: var(--accent-gold-dim);
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
}

.info-box .info-icon {
  margin-right: 8px;
}

/* ----- Contact Page ----- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact-detail h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-detail p {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-detail a {
  font-size: 15px;
  font-weight: 500;
}

.contact-notes {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.contact-notes h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-notes ul {
  list-style: none;
  padding: 0;
}

.contact-notes li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
}

.contact-notes li::before {
  content: '•';
  color: var(--accent-gold);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ----- Footer ----- */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .link-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-title {
    font-size: 22px;
  }

  .contact-card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}