/* ================================================
   CSS カスタムプロパティ（デザイントークン）
   ※ここの値を変更するとサイト全体の色・余白が変わります
   ================================================ */
:root {
  /* カラーパレット */
  --color-primary: #3a6ea5;
  /* メインアクセント（ブルー） */
  --color-primary-light: #5b8db8;
  /* 明るいブルー */
  --color-primary-dark: #2c5282;
  /* 濃いブルー */
  --color-primary-bg: #eaf1f8;
  /* 超薄ブルー（背景ハイライト） */

  --color-bg: #ffffff;
  /* ページ背景 */
  --color-bg-section: #f7f9fc;
  /* セクション背景 */
  --color-surface: #ffffff;
  /* カード背景 */

  --color-text-base: #1e2a38;
  /* 本文テキスト */
  --color-text-muted: #6b7a8d;
  /* サブテキスト */
  --color-text-light: #9aafc4;
  /* 淡いテキスト */

  --color-border: #dce8f2;
  /* ボーダー */
  --color-border-hover: #a8c4de;
  /* ホバー時ボーダー */

  --color-success: #2e8b6e;
  /* 送信成功 */
  --color-error: #c0392b;
  /* バリデーションエラー */

  /* タイポグラフィ */
  --font-sans-en: 'Outfit', sans-serif;
  --font-sans-ja: 'Noto Sans JP', sans-serif;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 2rem;
  /* 32px */
  --text-4xl: 2.75rem;
  /* 44px */
  --text-5xl: 3.5rem;
  /* 56px */

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  /* 余白 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* 角丸 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* 影 */
  --shadow-sm: 0 1px 4px rgba(58, 110, 165, 0.08);
  --shadow-md: 0 4px 16px rgba(58, 110, 165, 0.12);
  --shadow-lg: 0 8px 32px rgba(58, 110, 165, 0.16);
  --shadow-card: 0 2px 12px rgba(30, 42, 56, 0.07);
  --shadow-card-hover: 0 8px 32px rgba(58, 110, 165, 0.18);

  /* ヘッダー高さ */
  --header-h: 68px;

  /* アニメーション */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* コンテナ幅 */
  --container-max: 1120px;
  --container-pad: var(--space-6);
}


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

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

body {
  font-family: var(--font-sans-ja);
  font-weight: var(--fw-regular);
  color: var(--color-text-base);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ================================================
   ユーティリティ
   ================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ================================================
   ヘッダー
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-name {
  font-family: var(--font-sans-en);
  font-weight: var(--fw-semi);
  font-size: var(--text-lg);
  color: var(--color-primary-dark);
  letter-spacing: 0.01em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-sans-en);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}


/* ================================================
   ボタン
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-sans-ja);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  line-height: 1;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-hover);
}

.btn--ghost:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--wide {
  width: 100%;
  max-width: 360px;
  padding-block: var(--space-4);
  font-size: var(--text-lg);
}


/* ================================================
   セクション 共通ヘッダー
   ================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  font-family: var(--font-sans-en);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: block;
}

.section-title {
  font-family: var(--font-sans-ja);
  font-weight: var(--fw-bold);
  font-size: var(--text-3xl);
  color: var(--color-text-base);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
}


/* ================================================
   ヒーロー（自己紹介）セクション
   ================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* 装飾blobシェイプ */
.blob {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.blob img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  /* 白い背景を乗算で透過させる */
  filter: brightness(1.15);
  /* 図形の明るさを引き上げる */
  opacity: 0.85;
  /* 全体を少し軽やかにする */
}

.blob--main {
  top: -60px;
  right: -80px;
  width: min(520px, 55vw);
  opacity: 0.75;
  animation: blob-float 8s ease-in-out infinite;
  z-index: 1;
  /* blueを下に */
}

.blob--accent {
  bottom: -40px;
  right: 80px;
  width: min(320px, 35vw);
  opacity: 0.45;
  animation: blob-float 10s ease-in-out 2s infinite reverse;
  z-index: 2;
  /* lightを上に */
}

@keyframes blob-float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(4deg);
  }
}

/* ヒーローコンテント */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  padding-block: var(--space-24);
  position: relative;
  z-index: 3;
}

.hero-text {
  max-width: 520px;
}

.hero-eyebrow {
  font-family: var(--font-sans-en);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
}

.hero-name {
  font-family: var(--font-sans-ja);
  font-weight: var(--fw-bold);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.2;
  color: var(--color-text-base);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.hero-name--accent {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-name--accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary-bg);
  z-index: -1;
  border-radius: var(--radius-full);
}

.hero-bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: var(--space-10);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ヒーロー右側画像エリア */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-box {
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--color-primary-bg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform var(--transition-slow);
}

.hero-image-box:hover {
  transform: translateY(-6px);
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, #daeaf7 100%);
}

.image-placeholder-icon {
  font-size: 3rem;
  opacity: 0.45;
}

.image-placeholder-text {
  font-size: var(--text-sm);
  color: var(--color-primary-light);
  font-weight: var(--fw-medium);
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}


/* ================================================
   制作実績セクション
   ================================================ */
.works {
  background: #f0f7ff;
  padding-block: var(--space-32);
  position: relative;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* 実績カード */
.work-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.work-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.work-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* サムネイル画像エリア */
.work-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-primary-bg);
  overflow: hidden;
  position: relative;
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.work-card:hover .work-card__img {
  transform: scale(1.04);
}

.work-card__body {
  padding: var(--space-6);
}

/* サイト名 */
.work-card__title {
  font-family: var(--font-sans-ja);
  font-weight: var(--fw-semi);
  font-size: var(--text-lg);
  color: var(--color-text-base);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

/* 概要テキスト */
.work-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* サイトを見るリンク */
.work-card__cta {
  font-family: var(--font-sans-en);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

/* 実績なしプレースホルダー */
.works-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-24) var(--space-8);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-light);
}

.works-empty__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.works-empty__text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-light);
}


/* ================================================
   お問い合わせセクション
   ================================================ */
.contact {
  padding-block: var(--space-32);
  background: #e1effe;
  position: relative;
  overflow: hidden;
}

/* お問い合わせセクション用の装飾blob */
.contact::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-primary-bg) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: 0px;
  right: -15%;
  width: 500px;
  height: 500px;
  background: url('images/blob-light.png') no-repeat center/contain;
  mix-blend-mode: multiply;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-wrap {
  max-width: 680px;
  margin-inline: auto;
  padding: var(--space-8) 0;
}

@media (max-width: 768px) {
  .contact-wrap {
    padding: var(--space-6) 0;
  }
}

/* フォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.02em;
}

.required {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
  background: var(--color-primary-bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.form-input-wrapper {
  position: relative;
}

.form-input,
.form-textarea {
  font-family: var(--font-sans-ja);
  font-size: var(--text-base);
  color: var(--color-text-base);
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: all var(--transition-base);
  width: 100%;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow:
    0 4px 12px rgba(58, 110, 165, 0.08),
    0 0 0 4px rgba(58, 110, 165, 0.05);
  transform: translateY(-2px);
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--color-error);
  background: #fffafa;
}

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

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  font-weight: var(--fw-medium);
  min-height: 1.2em;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

/* 送信ボタンの強化 */
.contact .btn--primary {
  padding: var(--space-4) var(--space-12);
  font-size: var(--text-lg);
  box-shadow: 0 4px 20px rgba(58, 110, 165, 0.25);
  position: relative;
  overflow: hidden;
}

.contact .btn--primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 0;
  padding-bottom: 120%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
}

.contact .btn--primary:hover::after {
  transform: translate(-50%, -50%) scale(1);
}


/* 送信完了メッセージ */
.contact-success {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #f0f9f5;
  animation: fade-in 0.4s ease;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  color: #fff;
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-5);
}

.success-text {
  font-size: var(--text-base);
  color: var(--color-success);
  line-height: 1.8;
  font-weight: var(--fw-medium);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================================================
   フッター
   ================================================ */
.site-footer {
  background: var(--color-text-base);
  color: rgba(255, 255, 255, 0.6);
  padding-block: var(--space-8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-family: var(--font-sans-en);
  font-size: var(--text-sm);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-link {
  font-family: var(--font-sans-en);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

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


/* ================================================
   スクロールアニメーション（.reveal クラス）
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


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

/* タブレット (〜1024px) */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマートフォン (〜768px) */
@media (max-width: 768px) {
  :root {
    --container-pad: var(--space-5);
  }

  /* ヘッダー */
  .nav-list {
    gap: var(--space-5);
  }

  /* ヒーロー */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-block: var(--space-16);
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    order: 1;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-bio {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: 0;
  }

  .hero-image-box {
    width: min(240px, 70vw);
  }

  .blob--main {
    width: min(320px, 80vw);
    right: -40px;
    top: -20px;
    opacity: 0.5;
  }

  .blob--accent {
    display: none;
  }

  /* セクション */
  .section-title {
    font-size: var(--text-2xl);
  }

  /* 実績グリッド */
  .works-grid {
    grid-template-columns: 1fr;
  }

  /* フォーム送信ボタン */
  .btn--wide {
    max-width: 100%;
  }

  /* フッター */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* 極小 (〜480px) */
@media (max-width: 480px) {
  .nav-list {
    gap: var(--space-4);
  }

  .logo-name {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }
}
