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

:root {
  --color-blue: #1a5fa8;
  --color-blue-dark: #0e4080;
  --color-blue-light: #e8f0fb;
  --color-green: #6abf9e;
  --color-green-dark: #4aa882;
  --color-green-light: #e8f7f2;
  --color-white: #ffffff;
  --color-black: #1d1d1f;
  --color-gray-bg: #f5f5f7;
  --color-bg: #ffffff;
  --color-text: #1d1d1f;
  --color-text-light: #6e6e73;
  --color-border: #d2d2d7;
  --font-base: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 17px;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.75;
}

ul {
  list-style: none;
}

/* ===== レイアウト共通 ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section--dark {
  background: var(--color-black);
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin-bottom: 16px;
  text-align: center;
}

.section--dark .section-label {
  color: var(--color-green);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-align: center;
}

.section--dark .section-title {
  color: var(--color-white);
}

.section-lead {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.7;
  text-align: center;
}

.section--dark .section-lead {
  color: rgba(255,255,255,0.55);
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(29, 29, 31, 0.97);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 48px;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  border-radius: 0;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav__link:hover {
  color: rgba(255,255,255,0.55);
  opacity: 1;
}

.nav__link--contact {
  background: var(--color-green);
  color: var(--color-white) !important;
  padding: 6px 16px;
  border-radius: 980px;
  height: auto;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.nav__link--contact:hover {
  background: var(--color-green-dark);
  color: var(--color-white) !important;
  opacity: 1;
}

/* ハンバーガーメニュー */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== ヒーローセクション ===== */
.hero {
  padding-top: 48px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,95,168,0.18) 0%, transparent 70%);
  top: -320px;
  right: -180px;
  animation: blob-drift-1 14s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106,191,158,0.16) 0%, transparent 70%);
  bottom: -220px;
  left: -160px;
  animation: blob-drift-2 18s ease-in-out infinite;
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,95,168,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,95,168,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-text);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.hero__logo-img {
  max-height: 280px;
  width: auto;
  margin-bottom: 48px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.1));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-light);
  border: 1px solid rgba(26,95,168,0.2);
  border-radius: 980px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-blue-dark);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(36px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.hero__title span {
  background: linear-gradient(120deg, #4aa882, #1a5fa8, #4aa882);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease-in-out infinite;
  display: inline;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 48px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.btn--primary:hover {
  background: var(--color-blue-dark);
  color: var(--color-white);
  opacity: 1;
}

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

.btn--outline:hover {
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  opacity: 1;
}

/* ===== 事業内容カード ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.business-card {
  background: #1e1e20;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.45s ease;
  position: relative;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.business-card:hover {
  transform: translateY(-8px);
  background: #252527;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 40px rgba(26,95,168,0.07);
}

.business-card:hover::before {
  transform: scaleX(1);
}

.business-card:hover::after {
  opacity: 1;
}

.business-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(26,95,168,0.22), rgba(106,191,158,0.15));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.business-card:hover .business-card__icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(26,95,168,0.3);
}

.business-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.business-card__text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.85;
  margin-bottom: 20px;
}

.business-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.business-card__list li {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  padding-left: 16px;
  position: relative;
}

.business-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--color-green);
  border-radius: 50%;
}

/* ===== 会社概要テーブル ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table tr:first-child {
  border-top: 1px solid var(--color-border);
}

.company-table th {
  width: 200px;
  padding: 20px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-gray-bg);
  vertical-align: top;
}

.company-table td {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--color-text);
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-required {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-white);
  background: #e05252;
  padding: 2px 8px;
  border-radius: 4px;
}

.form-optional {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-border);
  padding: 2px 8px;
  border-radius: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26,95,168,0.1);
}

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

.form-submit {
  text-align: center;
}

.btn--submit {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 16px 64px;
  font-size: 16px;
  border-radius: 980px;
  cursor: pointer;
  border: none;
  font-family: var(--font-base);
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.btn--submit:hover {
  background: var(--color-blue-dark);
}

/* 送信結果メッセージ */
.form-message {
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 15px;
}

.form-message--success {
  background: var(--color-green-light);
  color: var(--color-green-dark);
  border: 1px solid var(--color-green);
}

.form-message--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* ===== ページヒーロー（内部ページ用） ===== */
.page-hero {
  padding: 120px 0 64px;
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
}

.page-hero .section-label {
  color: var(--color-green);
}

.page-hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  color: var(--color-white);
}

.page-hero__lead {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
}

/* ===== フッター ===== */
.footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer__logo img {
  height: 36px;
  width: auto;
  opacity: 0.65;
  filter: brightness(0) invert(1);
}

.footer__info {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 12px;
  color: rgba(255,255,255,0.4);
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer__copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ===== パンくず ===== */
.breadcrumb {
  padding: 12px 0;
  background: var(--color-gray-bg);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
}

.breadcrumb__list li + li::before {
  content: '›';
  margin-right: 8px;
}

.breadcrumb__list a {
  color: var(--color-blue);
}

/* スマホ専用の改行（デスクトップでは非表示） */
br.sp-only {
  display: none;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  br.sp-only {
    display: block;
  }

  .section {
    padding: 72px 0;
  }

  .nav__list {
    display: none;
    position: fixed;
    inset: 48px 0 0;
    background: rgba(29,29,31,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__link {
    height: auto;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: var(--radius);
  }

  .nav__link:hover {
    background: rgba(255,255,255,0.07);
    color: var(--color-white);
  }

  .nav__link--contact {
    text-align: center;
    justify-content: center;
    margin-left: 0;
    margin-top: 8px;
    border-radius: var(--radius);
  }

  .nav__toggle {
    display: flex;
  }

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

  .company-table th {
    width: 120px;
    padding: 16px;
  }

  .company-table td {
    padding: 16px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__content {
    padding: 40px 0;
  }

  .hero__logo-img {
    max-height: 160px;
    margin-bottom: 32px;
  }

  .hero__title {
    font-size: clamp(24px, 8vw, 44px);
  }

  .hero__lead {
    font-size: 15px;
    max-width: 100%;
  }

  .btn {
    padding: 13px 24px;
    font-size: 14px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .section-lead {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .business-card {
    padding: 28px 24px;
  }

  .container {
    padding: 0 20px;
  }
}

/* ===== アニメーション ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-90px, 80px); }
  66%       { transform: translate(60px, -60px); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(90px, -80px); }
}

/* ヒーローコンテンツ 入場 */
.hero__logo-img  { animation: fade-up 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.1s  backwards; }
.hero__title     { animation: fade-up 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.25s backwards; }
.hero__lead      { animation: fade-up 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.4s  backwards; }
.hero__actions   { animation: fade-up 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.55s backwards; }

/* スクロールアニメーション */
.animate-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* カードアイコン内 SVG サイズ */
.business-card__icon svg {
  width: 36px;
  height: 36px;
}

/* ページヒーロー 入場アニメーション */
.page-hero__title {
  animation: fade-up 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s backwards;
}
.page-hero__lead {
  animation: fade-up 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

/* スクロール進行バー */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  z-index: 200;
  transition: width 0.1s linear;
}
