/* ================================================
   松本雅 プロフィール LP - メインスタイル
   ================================================ */

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #2c5aa0;
  --secondary-color: #f8a5c2;
  --accent-color: #4ecdc4;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 20px;
  
  /* Animations */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: var(--bg-gradient);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.cta-btn {
  background: var(--accent-color);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  transition: var(--transition);
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-light);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0;
}

.logo .title {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-gradient);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  position: relative;
  transform: rotate(3deg);
  transition: var(--transition-slow);
}

.profile-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.profile-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.profile-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.about-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-slow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.about-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Experience Section */
.experience {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--bg-gradient);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  margin-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 3rem;
}

.timeline-date {
  background: var(--bg-gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  position: relative;
}

.timeline-date::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  background: white;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-date::before {
  left: -30px;
}

.timeline-item:nth-child(even) .timeline-date::before {
  right: -30px;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  flex: 1;
  max-width: 400px;
}

.timeline-content h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.timeline-type {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.timeline-item.active .timeline-content {
  border: 2px solid var(--accent-color);
  background: linear-gradient(135deg, #fff 0%, #f0fdfc 100%);
}

/* Skills Section */
.skills {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--bg-gradient);
  transition: var(--transition-slow);
}

.skill-card:hover::before {
  left: 0;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.skill-card.featured {
  background: var(--bg-gradient);
  color: white;
  transform: scale(1.05);
}

.skill-card.featured h3,
.skill-card.featured p {
  color: white;
}

.skill-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(76, 205, 196, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-color);
}

.skill-card.featured .skill-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.skills-additional {
  text-align: center;
  margin-top: 3rem;
}

.skills-additional h3 {
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-tag {
  background: var(--bg-secondary);
  color: var(--text-dark);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Goals Section */
.goals {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.goals-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.goal-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--bg-gradient);
}

.goal-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.goal-card.dream {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.goal-card.dream h3,
.goal-card.dream p {
  color: white;
}

.goal-card.dream .goal-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.goal-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: rgba(76, 205, 196, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.goal-card ul {
  list-style: none;
  padding: 0;
}

.goal-card li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.goal-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.goal-card.dream li::before {
  color: white;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.contact-methods {
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: var(--transition);
}

.contact-method:hover {
  background: var(--accent-color);
  color: white;
  transform: translateX(10px);
}

.contact-method i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-method:hover i {
  color: white;
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

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

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-main h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-description {
  color: #cbd5e0;
  margin-top: 1rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 2rem;
  text-align: center;
  color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .profile-card {
    transform: none;
    margin: 2rem auto 0;
    max-width: 300px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    margin-left: 0;
  }
  
  .timeline-item .timeline-content {
    margin-left: 3rem !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-date::before {
    left: -30px !important;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-card.featured {
    transform: none;
  }
  
  .skill-tags {
    gap: 0.5rem;
  }
  
  .goals-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .profile-card {
    padding: 1.5rem;
  }
  
  .about-card,
  .skill-card,
  .goal-card {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease-out;
}