
/* ==========================
   基本設定
========================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --navy: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --background: #ffffff;
  --background-light: #f8fafc;
  --border: #e2e8f0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo, sans-serif;

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

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

a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 4px;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

/* ==========================
   ヘッダー
========================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--navy);
  white-space: nowrap;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-links .nav-contact {
  background: var(--primary);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 18px;
}

.nav-links .nav-contact:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

/* ==========================
   メインビジュアル
========================== */

.hero {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;

  min-height: 600px;
  padding: 110px 0;

  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #f1f5ff 55%,
    #dbeafe 100%
  );
}

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

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.5;
  color: var(--navy);
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  margin-top: 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ==========================
   ボタン
========================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 13px 26px;
  border-radius: 9px;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.2);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.button-secondary {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: var(--background-light);
}

.hero-decoration {
  position: absolute;
  width: 400px;
  height: 400px;

  right: -100px;
  top: 80px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12),
    transparent 70%
  );

  pointer-events: none;
}

/* ==========================
   共通セクション
========================== */

.section {
  padding: 105px 0;
}

.section-light {
  background: var(--background-light);
}

.section-heading {
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-heading h2,
.contact-box h2 {
  color: var(--navy);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================
   自己紹介
========================== */

.about-card {
  display: flex;
  align-items: center;
  gap: 45px;

  padding: 48px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: #ffffff;

  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.04);
}

.profile-photo {
  flex-shrink: 0;
  display: block;

  width: 140px;
  height: 140px;

  object-fit: cover;
  border-radius: 24px;
}

.about-text h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 14px;
  font-size: 15px;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.profile-link {
  display: inline-block;
  margin-top: 20px;

  color: var(--primary);
  font-size: 14px;
  font-weight: 700;

  transition: color 0.2s ease;
}

.profile-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================
   コンテンツカード
========================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 38px 30px;

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.feature-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 14px;
}

.feature-card p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

/* ==========================
   お問い合わせ
========================== */

.contact-box {
  padding: 70px 30px;
  text-align: center;

  background: #f1f5ff;
  border-radius: 20px;
}

.contact-box > p {
  margin: 22px auto 30px;
  max-width: 540px;

  font-size: 15px;
  color: var(--muted);
}

.contact-box .email-address {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ==========================
   フッター
========================== */

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

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

.footer .logo {
  font-size: 21px;
}

.footer p {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================
   スマートフォン対応
========================== */

@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 15px 0;
  }

  .nav-links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 12px;
  }

  .nav-links .nav-contact {
    padding: 7px 11px;
  }

  html {
    scroll-padding-top: 145px;
  }

  .hero {
    min-height: auto;
    padding: 100px 0;
  }

  .hero h1 {
    font-size: clamp(30px, 7vw, 42px);
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 15px;
  }

  .section {
    padding: 70px 0;
  }

  .about-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
  }

  .profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 50px 22px;
  }

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

@media (max-width: 380px) {

  .nav-links {
    gap: 10px;
  }

  .button {
    padding: 12px 17px;
    font-size: 13px;
  }

  .hero-buttons {
    gap: 10px;
  }
}

/* ==========================
   アクセシビリティ
========================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
