/* 西園寺聖樹 オフィシャルサイト - スタイルシート */

:root {
  --primary: #1E40AF;
  --primary-foreground: #F0F9FF;
  --secondary: #F3F4F6;
  --muted: #F7F7F7;
  --muted-foreground: #6B7280;
  --foreground: #1F2937;
  --background: #FFFFFF;
  --border: #E5E7EB;
  --card: #FFFFFF;
  --accent: #F3F4F6;
  --accent-foreground: #111827;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1E3A8A;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  height: 64px;
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--foreground);
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.75rem;
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

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

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

section.bg-primary a {
  color: white;
}

/* Hero Section */
.hero {
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    display: none;
  }
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text .subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #1E3A8A;
}

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

.btn-outline:hover {
  background-color: rgba(30, 64, 175, 0.1);
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Profile Section */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-section {
    grid-template-columns: 1fr;
  }
}

.profile-text p {
  margin-bottom: 1.5rem;
}

.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .profile-info {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background-color: var(--muted);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.info-box .label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-box .title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-box .description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* YouTube Video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--muted);
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Achievement Cards */
.achievement-card {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.achievement-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}

.achievement-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.achievement-bar {
  flex: 1;
  height: 4rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(30, 64, 175, 0.1));
  border-radius: 0.5rem;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #FBBF24;
}

.testimonial-text {
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-info {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Article Cards */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.article-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(30, 64, 175, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.article-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  flex: 1;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

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

/* Footer */
footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-white {
  color: white;
}

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

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

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

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

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

  .hero-text .subtitle {
    font-size: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  section {
    padding: 2rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text .subtitle {
    font-size: 0.875rem;
  }

  .hero-text p {
    font-size: 0.875rem;
  }
}
