/* =============================================
   CSS設計方針:
   - BEM風の命名規則（Block__Element--Modifier）
   - 意味ベースのclass名
   - モバイルファースト
   ============================================= */

/* -----------------------------------------
   リセット・基本設定
   ----------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

address {
  font-style: normal;
}

/* -----------------------------------------
   共通レイアウト
   ----------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: 0.875rem;
  color: #666;
  margin-top: 8px;
}

/* -----------------------------------------
   ボタン
   ----------------------------------------- */
.button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.button--primary {
  background-color: #2563eb;
  color: #fff;
}

.button--primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.button--full {
  width: 100%;
}

/* -----------------------------------------
   ヘッダー
   ----------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

/* ナビゲーション */
.global-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #555;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2563eb;
}

/* -----------------------------------------
   ヒーローセクション
   ----------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 100px 20px 60px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------
   About セクション
   ----------------------------------------- */
.about-section {
  background-color: #fff;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-heading {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.about-text {
  color: #555;
  margin-bottom: 12px;
}

.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.stat-label {
  font-size: 0.75rem;
  color: #666;
}

/* -----------------------------------------
   Services セクション
   ----------------------------------------- */
.services-section {
  background-color: #f8fafc;
}

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

.service-card {
  background-color: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #2563eb;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.125rem;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.service-description {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.7;
}

/* -----------------------------------------
   Portfolio セクション
   ----------------------------------------- */
.portfolio-section {
  background-color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
}

.portfolio-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-body {
  padding: 20px;
}

.portfolio-title {
  font-size: 1.0625rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.portfolio-category {
  display: inline-block;
  font-size: 0.75rem;
  color: #2563eb;
  background-color: #eff6ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.portfolio-description {
  font-size: 0.875rem;
  color: #666;
}

/* -----------------------------------------
   Contact セクション
   ----------------------------------------- */
.contact-section {
  background-color: #f8fafc;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-heading {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.contact-info-text {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-value {
  font-size: 0.9375rem;
  color: #333;
}

/* フォーム */
.contact-form {
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-required {
  font-size: 0.75rem;
  color: #dc2626;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

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

/* -----------------------------------------
   フッター
   ----------------------------------------- */
.site-footer {
  background-color: #1a1a2e;
  color: #fff;
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-nav-link:hover {
  color: #fff;
}

.footer-copyright {
  text-align: center;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

/* =============================================
   レスポンシブ対応
   ============================================= */

/* タブレット (768px以上) */
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

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

  /* ナビゲーション表示 */
  .global-nav {
    display: block;
  }

  /* ヒーロー */
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  /* About */
  .about-grid {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .about-image {
    flex: 1;
  }

  .about-body {
    flex: 1;
  }

  /* Services */
  .services-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    flex-direction: row;
    gap: 48px;
  }

  .contact-info {
    flex: 1;
  }

  .contact-form {
    flex: 1;
    padding: 32px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* デスクトップ (1024px以上) */
@media (min-width: 1024px) {
  .section {
    padding: 100px 0;
  }

  /* ヒーロー */
  .hero-title {
    font-size: 3.25rem;
  }

  /* About */
  .about-grid {
    gap: 64px;
  }

  .about-heading {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Services */
  .services-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .service-card {
    padding: 36px 28px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  /* Contact */
  .contact-grid {
    gap: 64px;
  }

  .contact-form {
    padding: 40px;
  }
}
