#topics {
  clear: both;
  padding: 60px 3% 100px;
  background: url(../img/topics-bg.jpg) no-repeat center bottom fixed;
  background-size: cover;
  overflow: hidden;
}


.section {
    margin-bottom: 20px;
}

.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
    max-width: 100%;
    margin: 0px auto;
}
section#company {
    max-width: 1050px;
    margin-bottom: 20px;
}
/* 表示された時に追加されるクラス */
.section.active {
    opacity: 1;
    transform: translateY(0);
}

/*===============================================
    Title Section start
================================================*/

.title-text {
    color: #FFF;
    font-size: 34px;
    letter-spacing: 10px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url(../img/main-top.png) no-repeat center center;
    background-size: cover;
    margin-bottom: 80px;
    position: relative;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 40px 20px;
}

.title-content {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    transform: translateX(-100%);
    opacity: 0;
    animation: slideInFromLeft 1s ease-out forwards;
}

.title-icon {
    width: 100px;
    height: 100px;
}

.title-text .main-text {
    font-size: 36px;
    margin: 0;
    letter-spacing: 10px;
}

.title-text small {
    font-size: 14px;
    margin-top: 10px;
    letter-spacing: 2px;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInFromRight 1s ease-out forwards;
    animation-delay: 0.5s; /* 少し遅れて動くと自然です */
}

/* 左から */
@keyframes slideInFromLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 右から */
@keyframes slideInFromRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
   .title-text {
        flex: none;
        height: 150px;
        margin: 0px 0px 0px 0px;
        width: 100%;
        max-width: 100%;
    }
    .title-icon {
    width: 50px;
    height: 50px;
    }
.title-text .main-text {
    font-size: 20px;
}

}

@media screen and (max-width: 480px) {
    .title-text {
        height: 100px;
    }
    .title-text .main-text {
        font-size: 18px;
    }
    .title-text small {
        font-size: 12px;
    }
    .title-icon {
        width: 40px;
        height: 40px;
    }
}

/*================================================
    Title Section end
================================================*/

/*================================================
    Contact Form Styles start
================================================*/

.contact-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 30px;
  font-family: 'Helvetica Neue', sans-serif;
  background:#b7d7ebff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-radius: 12px;
  margin-bottom: 100px;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #2c3e50;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
  color: #34495e;
  font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 5px;
  box-sizing: border-box;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form .required {
  color: red;
  font-size: 12px;
  margin-left: 5px;
}

.contact-form .checkbox-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-top: 10px;
}

.contact-form .checkbox-label input {
  margin-right: 10px;
}

.contact-form .checkbox-label a {
  text-decoration: underline;
  color: #2980b9;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 15px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #2980b9;
}

/* Responsive */
@media (max-width: 500px) {
  .contact-form {
    padding: 20px;
  }

  .contact-form h2 {
    font-size: 20px;
  }
}

/*================================================
    Contact Form Styles end
================================================*/

.container.company-profile {
    text-align: center;
}

.container.company-profile img {
    max-width: 100%;
    height: auto;
}

.container.company-profile small {
    display: block;
    margin-top: 10px;
    font-size: clamp(14px, 2vw, 18px);
    color: #888;
    margin-bottom: 1em;
    font-weight: bold;
}

.container.company-profile p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}
