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

:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --accent-color: #ffe66d;
  --dark-color: #1a1a1a;
  --light-bg: #f7f7f7;
  --text-color: #333;
}

body {
  font-family: "Noto Sans JP", "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* ローディング画面 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 15px 5%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo svg {
  height: 38px;
  width: 180px;
  vertical-align: middle;
}

.logo svg .st0 {
  fill: var(--dark-color);
  transition: fill 0.3s ease;
}

.logo:hover svg .st0 {
  fill: var(--primary-color);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.contact-btn {
  background: var(--dark-color);
  color: white !important;
  padding: 10px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover::after {
  width: 0;
}

.contact-btn::after {
  display: none;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* ヒーローセクション */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-subtitle {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-description {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--dark-color);
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--dark-color);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--dark-color);
  color: white;
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.shape1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.shape2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  bottom: 20%;
  right: 30%;
  animation-delay: 2s;
}

.shape3 {
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  top: 50%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* セクション共通スタイル */
section {
  padding: 100px 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.section-description {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* サービスセクション */
#services {
  background: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
  width: 200px;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 36px;
  color: white;
}

.service-icon img {
  width: 80%;
  height: auto;
  /* object-fit: cover; */
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.service-card h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 500;
}

.service-card p {
  color: #666;
  line-height: 1.8;
}

/* 会社情報セクション */
#about {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.about-text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: start;
  gap: 15px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.about-visual {
  position: relative;
}

.about-image {
  width: 100%;
  height: 500px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.about-stats {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 30px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 50px;
}

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

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary-color);
}

.stat-label {
  color: #666;
  font-size: 14px;
}

/* 会社概要テーブル */
.company-info {
  margin-top: 100px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.company-info h3 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--dark-color);
}

.company-table {
  width: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.company-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th,
.company-table td {
  padding: 20px 30px;
  text-align: left;
}

.company-table th {
  background: #f8f8f8;
  font-weight: 600;
  color: var(--dark-color);
  width: 30%;
}

.company-table td {
  color: #666;
}

/* コンタクトセクション */
#contact {
  background: var(--dark-color);
  color: white;
  text-align: center;
}

#contact .section-subtitle {
  color: var(--secondary-color);
}

#contact .section-title h2 {
  color: white;
}

#contact .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  max-width: 600px;
  margin: 60px auto 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px var(--secondary-color);
}

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

.submit-btn {
  background: var(--secondary-color);
  color: var(--dark-color);
  padding: 15px 50px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

/* フッター */
footer {
  background: #0a0a0a;
  color: white;
  padding: 40px 5%;
  text-align: center;
}

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

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* スクロールアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.sp-br {
  display: none;
}

/* サンクスページ専用CSS */

/* サンクスセクション */
.thanks-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}

.thanks-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* サンクスタイトル */
.thanks-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--dark-color);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* サンクスメッセージ */
.thanks-message {
  font-size: 20px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

/* 情報ボックス */
.info-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.info-box h3 {
  font-size: 24px;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.info-box ul {
  list-style: none;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.info-box li {
  padding: 15px 0;
  padding-left: 35px;
  position: relative;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.info-box li:last-child {
  border-bottom: none;
}

.info-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 20px;
}

/* CTAボタンのアニメーション遅延 */
.thanks-section .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .company-table th,
  .company-table td {
    padding: 15px 20px;
  }

  .company-table th {
    width: 35%;
  }

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

  .footer-content {
    flex-direction: column;
  }

  .sp-br {
    display: inline;
  }

  .info-box {
    padding: 30px 20px;
  }

  .thanks-section .cta-buttons {
    gap: 15px; /* モバイルでの余白 */
  }
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  /* max-width: 300px; */
  height: 100vh;
  background: white;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 80px 60px 30px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: flex-end;
}

.close-menu {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-menu:hover {
  transform: rotate(90deg);
}

.close-menu span {
  position: relative;
  width: 25px;
  height: 25px;
}

.close-menu span::before,
.close-menu span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--dark-color);
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.close-menu span::before {
  transform: translateY(-50%) rotate(45deg);
}

.close-menu span::after {
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu ul {
  list-style: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s;
}

.mobile-menu.active ul {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu li {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  /* list-style: none; */
}

.mobile-menu.active li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active li:nth-child(1) {
  transition-delay: 0.3s;
}
.mobile-menu.active li:nth-child(2) {
  transition-delay: 0.4s;
}
.mobile-menu.active li:nth-child(3) {
  transition-delay: 0.5s;
}
.mobile-menu.active li:nth-child(4) {
  transition-delay: 0.6s;
}

.mobile-menu a {
  color: var(--dark-color);
  text-decoration: none;
  font-size: 32px;
  font-weight: 500;
  position: relative;
  /* display: inline-block; */
  display: block;
  padding: 0px 10px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(10px);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* reCAPTCHAバッジを非表示 */
.grecaptcha-badge {
  visibility: hidden;
}

/* ページヒーロー */
.page-hero {
  padding: 150px 5% 80px;
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--primary-color);
  opacity: 0.1;
  border-radius: 50%;
  top: -250px;
  right: -250px;
  filter: blur(100px);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
  opacity: 0.1;
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  filter: blur(100px);
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 20px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* サービス詳細セクション */
.services-detail {
  padding: 100px 5%;
  background: white;
}

.service-detail-card {
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.service-detail-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* .service-detail-card:nth-child(even) .service-detail-content {
  flex-direction: row-reverse;
} */

.service-detail-content {
  display: flex;
  gap: 80px;
  align-items: center;
}

.service-detail-text {
  flex: 1;
}

.service-detail-text h2 {
  font-size: 36px;
  margin-bottom: 4px;
  color: var(--dark-color);
}

.service-detail-text h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.service-detail-text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
  margin-bottom: 30px;
}

.service-features li {
  padding: 4px 0;
  padding-left: 30px;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 20px;
}

.service-detail-visual {
  flex: 1;
  position: relative;
}

.service-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: white;
}

/* CTA セクション */
.cta-section {
  padding: 100px 5%;
  background: var(--light-bg);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.cta-content p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .service-detail-content,
  .service-detail-card:nth-child(even) .service-detail-content {
    flex-direction: column;
    gap: 40px;
  }

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