/* nitd.co.jp - Base Styles */

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

:root {
  --color-primary: #1A1A2E;
  --color-accent: #3D5A80;
  --color-bg: #FAFBFC;
  --color-text: #333333;
  --color-text-sub: #666666;
  --color-border: #E5E7EB;
  --max-width: 860px;
  --font-family: 'Noto Sans JP', 'Source Sans 3', sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.4;
}

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

h2 {
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  opacity: 0.7;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

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

/* Header */
.site-header {
  background-color: var(--color-primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.site-logo:hover {
  opacity: 1;
  color: #ffffff;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

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

.site-nav a:hover {
  color: #ffffff;
  opacity: 1;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .site-nav.active {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-text {
  color: var(--color-text-sub);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #2a2a4e;
  opacity: 1;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  opacity: 1;
}

/* Sections */
.section {
  padding: 4rem 0;
  color: var(--color-text-sub);
}

.section-alt {
  background-color: #ffffff;
}

/* Experience Section */
.experience-list {
  list-style: none;
  padding-left: 0;
}

.experience-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-sub);
}

.experience-list li:last-child {
  border-bottom: none;
}

/* Case Cards */
.case-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-card {
  display: block;
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 1;
}

.case-card-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.case-card-title {
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.case-card p.text-sub {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Situation List */
.situation-list {
  list-style: none;
  padding-left: 0;
}

.situation-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-sub);
}

.situation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* Case Detail */
.case-detail {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.case-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.case-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.case-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.case-section {
  margin-bottom: 1.25rem;
}

.case-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.case-section-content {
  color: var(--color-text-sub);
}

/* Profile Section */
.profile-section {
  margin-bottom: 2.5rem;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.profile-content {
  color: var(--color-text-sub);
}

.skill-list {
  list-style: none;
  padding-left: 0;
}

.skill-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-sub);
  font-size: 0.95rem;
}

.skill-list li:last-child {
  border-bottom: none;
}

.tech-tags {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Contact Form */
.contact-intro {
  margin-bottom: 2rem;
  color: var(--color-text-sub);
}

.form-embed {
  background-color: #ffffff;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #ffffff;
  opacity: 1;
}

.footer-info {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-info p {
  margin-bottom: 0.25rem;
}

/* Utilities */
.text-sub {
  color: var(--color-text-sub);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .hero {
    padding: 3rem 0;
  }

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

  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}
