/* ========================================
   CyberSell Japan - Website Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
  --color-primary: #1a1a2e;
  --color-accent: #e94560;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-heading: 'Inter', 'Noto Sans JP', sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero .accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 28px auto 0;
  border-radius: 2px;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 48px;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- About --- */
.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Contact --- */
.contact-info {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-info a {
  font-weight: 600;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #fff;
}

/* --- Policy Pages --- */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0 36px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.page-header .updated {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 8px;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-bg-alt);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content ul li {
  list-style: disc;
}

.page-content ol li {
  list-style: decimal;
}

.page-content a {
  font-weight: 600;
}

/* --- Deletion Form --- */
.deletion-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px;
  margin: 32px 0;
}

.deletion-form h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: #d63a52;
  transform: translateY(-1px);
}

/* --- Info Box --- */
.info-box {
  background: #eef6ff;
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.info-box p {
  color: var(--color-text);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .section {
    padding: 56px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-content {
    padding: 32px 20px 56px;
  }

  .deletion-form {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
