#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
================================================*/

/*===============================================
    Company Section start
================================================*/

.styled-company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  color: #333;
}

.styled-company-table th,
.styled-company-table td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
}

.styled-company-table th {
  background: #f0f4f8;
  font-weight: 600;
  width: 30%;
  border-bottom: 1px solid #e0e6ed;
}



.styled-company-table a {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .styled-company-table,
  .styled-company-table tr,
  .styled-company-table th,
  .styled-company-table td {
    display: block;
    width: 100%;
  }

  .styled-company-table th {
    background: #f0f4f8;
    padding: 14px 20px 6px;
    font-size: 14px;
    border-bottom: none;
  }

  .styled-company-table td {
    padding: 0 20px 16px;
    background: #fff;
    font-size: 15px;
    border-bottom: 1px solid #eaeaea;
  }
}


.company-profile {
    display: flex;
    flex-direction: column;
    align-items: center;         /* 中央配置 */
    text-align: center;
    padding: 0px 20px;
}

.company-logo {
    width: 100px;                /* デフォルトサイズ */
    height: auto;
    margin-bottom: 20px;
}

small.cate-subtitle {
    font-weight: bold;
}

/* スマホなど画面幅が狭いときに画像サイズを小さく調整 */
@media screen and (max-width: 600px) {
    .company-logo {
        width: 70px;
    }
    .company-profile img{
        width: 100px;            /* スマホ用のロゴサイズ */
        height: auto;
    }
}

.cate-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.company-desc {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
}

/*===============================================
    Company Section end 
================================================*/



/*===============================================
    History Section start
================================================*/


.history_box00 {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

.image-box {
    flex: 0 0 50%;
    min-height: 300px;
    background-image: url(../img/history1.png);
    background-size: cover;
    background-position: center;
}

.text-content00 {
    flex: 1;
    font-size: 24px;
    font-weight: bold;
}


/* テキストボックス */
.text-content00 {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

/* タイトル */
.text-content00 h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 0.3em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* 英語タイトル */
.text-content00 span {
    font-size: clamp(14px, 2vw, 18px);
    color: #888;
    margin-bottom: 1em;
    text-align: center;
}

/* パラグラフ調整 */
.text-content00 p {
    margin: 0.3em 0;
}

@media (max-width: 768px) {
    .history_box00 {
        flex-direction: column;
    }

    .history_box00 {
        display: block;
    }

    .image-box,
    .text-content00 {
        flex: 0 0 100%;
    }
}

/*===============================================
    History Section end
================================================*/