@charset "utf-8";

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

/* ========================== */
/* モダンなコンタクトフォーム */
/* ========================== */

:root {
  --primary-color: #667eea;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-color: #f093fb;
  --secondary-gradient: linear-gradient(135deg, #7d3dff 0%, #2e7eed 100%);
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ========================== */
/* subvisual */
/* ========================== */
#mainvisual {
  position: relative;
  /* background: var(--primary-gradient); */
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#mainvisual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./images/engineer.jpg") center/cover;
  opacity: 0.3;
  z-index: 1;
}

#mainvisual img {
  display: none;
}

/* #mainvisual .products-title {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

#mainvisual .products-title h2 {
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1em;
}

#mainvisual .products-title h2::after {
  background-color: #fff;
}

#mainvisual .products-title p {
  font-size: 1.25rem;
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
  font-weight: 300;
  color: #fff;
} */

#mainvisual .products-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.products-title h2 {
  color: #fff;
}

.products-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.products-title p {
  color: #fff;
}

/* ========================== */
/* コンタクトフォーム */
/* ========================== */

#contact {
  padding: 80px 20px;
  background: #ecece6;
  min-height: 100vh;
}

.box {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.form {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.form dl {
  display: grid;
  gap: 2rem;
  margin: 0;
}

.form dt {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.form dt span {
  background: var(--secondary-gradient);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.form dd {
  margin: 0;
}

.form dd input[type="text"],
.form dd input[type="email"],
.form dd input[type="tel"],
.form dd textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  background: var(--bg-white);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form dd input[type="text"]:focus,
.form dd input[type="email"]:focus,
.form dd input[type="tel"]:focus,
.form dd textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form dd input[type="text"],
.form dd input[type="email"],
.form dd input[type="tel"] {
  height: 3.5rem;
}

.form dd textarea {
  min-height: 8rem;
  resize: vertical;
  font-family: "Inter", sans-serif;
}

::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* プライバシーポリシー */
.privacy {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.privacy p {
  display: flex;
  gap: 8px;
}

.privacy input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.privacy a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.privacy a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 送信ボタン */
.button {
  text-align: center;
  margin-top: 2rem;
}

.wpcf7-spinner {
  display: none;
}

button {
  border: none;
  background: none;
}

.button input {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1.25rem 3rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.button input::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s;
}

.button input:hover::before {
  left: 100%;
}

.button input:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button input:active {
  transform: translateY(0);
}

.button button span {
  color: #fff;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  #subvisual {
    height: 300px;
  }

  #subvisual .products-title h2 {
    font-size: 2.5rem;
  }

  #subvisual .products-title p {
    font-size: 1rem;
  }

  #contact {
    padding: 40px 15px;
  }

  .form {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .form dl {
    gap: 1.5rem;
  }

  .form dt {
    font-size: 0.9rem;
  }

  .form dd input[type="text"],
  .form dd input[type="email"],
  .form dd input[type="tel"],
  .form dd textarea {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .form dd input[type="text"],
  .form dd input[type="email"],
  .form dd input[type="tel"] {
    height: 3rem;
  }

  .privacy {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .button button {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  #subvisual .products-title h2 {
    font-size: 2rem;
  }

  .form {
    padding: 1.5rem 1rem;
  }

  .form dt {
    font-size: 0.85rem;
  }

  .form dt span {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.form {
  animation: fadeInUp 0.6s ease-out;
}

.form dl>* {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.form dl>*:nth-child(1) {
  animation-delay: 0.1s;
}

.form dl>*:nth-child(2) {
  animation-delay: 0.2s;
}

.form dl>*:nth-child(3) {
  animation-delay: 0.3s;
}

.form dl>*:nth-child(4) {
  animation-delay: 0.4s;
}

.form dl>*:nth-child(5) {
  animation-delay: 0.5s;
}

.form dl>*:nth-child(6) {
  animation-delay: 0.6s;
}

/* フォーカス時のアニメーション */
.form dd input:focus,
.form dd textarea:focus {
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}
