@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background: #0a0f1c;
  overflow-x: hidden;
}

/* ナビゲーション */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(19, 30, 61, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #cdad7d;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(205, 173, 125, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #cdad7d;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #cdad7d;
  transition: width 0.3s ease;
}

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

/* メインコンテンツ */
.top-content {
  position: relative;
  background: linear-gradient(135deg, #131e3d 0%, #1a2744 50%, #0f1926 100%);
  background-image: url("./img/top1.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* 全画面でナビゲーション分の余白を追加 */
}

.top-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 30, 61, 0.7);
  z-index: 1;
}

/* アニメーション用の背景エフェクト */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-elements::before,
.floating-elements::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(205, 173, 125, 0.1);
  animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -200px;
  animation-delay: -3s;
}

.floating-elements::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -150px;
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #cdad7d;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(205, 173, 125, 0.3);
}

.hero-text h1 span {
  background: linear-gradient(135deg, #cdad7d 0%, #e6c998 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #cdad7d 0%, #e6c998 100%);
  color: #131e3d;
  box-shadow: 0 10px 30px rgba(205, 173, 125, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(205, 173, 125, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #cdad7d;
  border: 2px solid #cdad7d;
}

.btn-secondary:hover {
  background: #cdad7d;
  color: #131e3d;
  transform: translateY(-2px);
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #cdad7d;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  height: 500px;
  animation: slideInRight 1s ease-out;
}

.visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.visual-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.card-1 {
  top: 0;
  left: 0;
  width: 280px;
}

.card-2 {
  top: 200px;
  right: 0px;
  width: 250px;
}

.card-3 {
  bottom: 0px;
  left: 0px;
  width: 220px;
}

.card-icon {
  font-size: 2rem;
  color: #cdad7d;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .top-content {
    padding-top: 100px; /* スマホではより多めの余白 */
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .stats {
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

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

  .stat-label {
    font-size: 0.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    width: 200px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-visual {
    order: 2;
    position: static; /* positionをstaticに変更 */
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .visual-card {
    position: static; /* positionをstaticに変更 */
    padding: 1.5rem;
    border-radius: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    transform: none; /* transformをリセット */
  }

  .card-1,
  .card-2,
  .card-3 {
    position: static;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .card-text {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .top-content {
    padding-top: 90px;
    min-height: 100vh;
  }

  .hero-content {
    padding: 1.5rem 0.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.1rem;
  }

  .stats {
    gap: 1rem;
  }

  .visual-card {
    max-width: 280px;
    padding: 1.2rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-text {
    font-size: 0.75rem;
  }
}

/* サービスセクション */
.service-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  background: #0f1926;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.service-text {
  flex: 1;
}

.service-text h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #cdad7d;
  margin-bottom: 2rem;
  line-height: 1.3;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease-out 0.8s forwards;
}

.service-text h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #cdad7d, #e6c998);
  border-radius: 2px;
  animation: expandWidth 1s ease-out 1.2s forwards;
}

.service-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.8s ease-out 1s forwards;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-left: 3px solid transparent;
  padding-left: 1.5rem;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(-30px);
}

.feature-item:nth-child(1) {
  animation: slideInLeft 0.6s ease-out 1.3s forwards;
}

.feature-item:nth-child(2) {
  animation: slideInLeft 0.6s ease-out 1.5s forwards;
}

.feature-item:nth-child(3) {
  animation: slideInLeft 0.6s ease-out 1.7s forwards;
}

.feature-item:hover {
  border-left-color: #cdad7d;
  background: rgba(205, 173, 125, 0.05);
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(205, 173, 125, 0.1);
}

.feature-item i {
  font-size: 1.3rem;
  color: #cdad7d;
  width: 24px;
  transition: all 0.3s ease;
}

.feature-item:hover i {
  transform: scale(1.2) rotate(360deg);
  text-shadow: 0 0 15px rgba(205, 173, 125, 0.5);
}

.feature-item span {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.feature-item:hover span {
  color: #cdad7d;
}

.service-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(50px) scale(0.9);
  animation: slideInScale 1s ease-out 0.8s forwards;
}

.image-wrapper:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
}

.image-wrapper:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 30, 61, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.overlay-text {
  text-align: center;
  color: white;
  cursor: pointer;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.image-wrapper:hover .overlay-text {
  transform: translateY(0);
}

.overlay-text i {
  font-size: 3rem;
  color: #cdad7d;
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.overlay-text:hover i {
  transform: scale(1.1);
  color: #e6c998;
}

.overlay-text span {
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.2s forwards;
}

/* 新しいアニメーション */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  to {
    width: 60px;
  }
}

@keyframes slideInScale {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 会社概要セクション */
.company-overview {
  background: linear-gradient(135deg, #1a2744 0%, #131e3d 50%, #0f1926 100%);
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.company-overview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23cdad7d" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.overview-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.section-header h3 {
  font-size: 3rem;
  font-weight: 800;
  color: #cdad7d;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #cdad7d, #e6c998);
  border-radius: 2px;
  animation: expandWidthCenter 1s ease-out 1s forwards;
}

.section-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.overview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.overview-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(205, 173, 125, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(205, 173, 125, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.overview-card:hover::before {
  left: 100%;
}

.overview-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.overview-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 1s forwards;
}

.overview-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

.overview-card:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 1.4s forwards;
}

.overview-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(205, 173, 125, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #cdad7d, #e6c998);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.overview-card:hover .card-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 10px 30px rgba(205, 173, 125, 0.4);
}

.card-icon i {
  font-size: 1.5rem;
  color: #131e3d;
}

.card-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #cdad7d;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.overview-card:hover .card-content h4 {
  color: #e6c998;
}

.card-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.overview-card:hover .card-content p {
  color: rgba(255, 255, 255, 0.95);
}

.company-image {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease-out 0.6s forwards;
}

.image-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(205, 173, 125, 0.1);
  animation: floatShape 6s ease-in-out infinite;
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 10%;
  animation-delay: -1s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 20%;
  animation-delay: -3s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: -5s;
}

.office-placeholder {
  background: url("./img/24A1306-e1614574425430.webp");
  background-size: cover;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(205, 173, 125, 0.3);
  border-radius: 20px;
  width: 250px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.office-placeholder:hover {
  transform: scale(1.05);
  background: linear-gradient(
    135deg,
    rgba(205, 173, 125, 0.3),
    rgba(230, 201, 152, 0.3)
  );
  border-color: rgba(205, 173, 125, 0.5);
}

.office-placeholder i {
  font-size: 4rem;
  color: #cdad7d;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.office-placeholder:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 20px rgba(205, 173, 125, 0.5);
}

.office-placeholder span {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.office-placeholder:hover span {
  color: #cdad7d;
}

@keyframes expandWidthCenter {
  to {
    width: 80px;
  }
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@media (max-width: 768px) {
  .company-overview {
    padding: 4rem 1rem;
  }

  .section-header h3 {
    font-size: 2.2rem;
  }

  .overview-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .overview-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .image-container {
    width: 300px;
    height: 300px;
  }

  .office-placeholder {
    width: 200px;
    height: 200px;
  }

  .office-placeholder i {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 1rem;
  }

  .service-text h3 {
    font-size: 2rem;
    text-align: center;
  }

  .service-text p {
    font-size: 1rem;
  }

  .image-wrapper img {
    height: 300px;
  }
}
