@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Yuji+Syuku&display=swap");

.title-container {
  position: relative;
  display: inline-block;
  margin-bottom: 30px; /* 必要に応じて調整 */
  width: 100%;
  text-align: center;
}

.section-title {
  position: relative;
  z-index: 2;
}

.english-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1; /* 背面に表示 */
  color: #e7f3cc;
  font-size: 3.5em;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  transform: translateY(30%);
}

.calligraphy-title {
  font-family: "Yuji Syuku", serif;
  font-size: 2em;
}

/* ----------------------------------------
  Our Ideas セクション
---------------------------------------- */
.our-ideas {
  padding: 50px 10%;
  text-align: center;
}

/* サブセクションタイトルのスタイル */
.our-ideas-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* テキスト内容のスタイル */
.our-ideas-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.idea-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.idea-box {
  position: relative;
  /* ラベルを重ねるために relative */
  background: white;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0px 30px 30px 80px;
  text-align: left;
}

.idea-box-transparent {
  position: relative;
  /* ラベルを重ねるために relative */
  text-align: left;
}

/* 「基本理念」「指針」のラベル */
.idea-label,
.idea-label2 {
  position: absolute;
  top: 0px;
  left: -70px;
  background: #80cccc;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 60px;
  font-size: 1.2rem;
  border-radius: 40px 0 40px 0;
  /* 左上と右下を角丸 */
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.idea-content {
  padding-top: 30px;
  /* ラベルとずれないように */
}

/* 重要なテキストの強調 */
.highlight-text {
  font-weight: bold;
  color: #3c9a47;
}

/* 指針リスト */
.guideline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px 30px 30px 80px;
  z-index: 1;
}

.guideline-number {
  font-size: 2rem;
  font-weight: bold;
  color: #4ba810;
  position: relative;
}

.guideline-number::after {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  background: #ffdb38;
  margin-top: 2px;
}

/* ----------------------------------------
    社長挨拶
  ---------------------------------------- */
.message-container {
  display: flex;
  gap: 20px 40px;
}

.message-image {
  position: relative;
  width: 100%;
  max-width: 770px;
  text-align: center;
}

.message-image img {
  width: 100%;
  border-radius: 0 20px 20px 0;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: bold;
  color: #666;
}

.ceo-name {
  margin-top: 10px;
  font-size: 18px;
  text-align: right;
}

.message-text-container {
  line-height: 1.8;
}

/* PCでは横並び */
@media (min-width: 768px) {
  .message-container {
    flex-direction: row;
  }

  .message-header {
    width: 40%;
    text-align: center;
  }

  .message-text-container {
    width: 40%;
    max-width: 600px;
  }
}

/* モバイルでは縦並びにする */
@media (max-width: 767px) {
  .message-container {
    flex-direction: column;
    gap: 0;
  }

  .message-header {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .message-image img {
    width: 100%;
  border-radius: 0 ;

  }

  .message-text-container {
    width: 80%;
    margin: 40px auto 0;
  }
  .ceo-name {
  text-align: center;
}
}

/* ----------------------------------------
    会社概要
  ---------------------------------------- */
.company-profile {
  margin-top: 50px;
}

.profile-container {
  width: 50%;
  margin: 0 auto;
  border-radius: 20px;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  border: 1px solid #f9fbef;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  border: 2px solid #f9fbef;
  padding: 12px;
}

.profile-table th {
  background-color: #e7f3cc;
  color: #4ba810;
  width: 25%;
  text-align: center;
}

.profile-table td {
  background-color: white;
  color: #333;
}

/* モバイル */
@media screen and (max-width: 768px) {
  .profile-container {
    position: relative;
    width: 90%;
    text-align: center;
    margin-top: 30px;
  }

  .idea-label {
    position: absolute;
    top: -59px;
    left: 0px;
    font-size: 1.2rem;
    /* padding: 10px; */
    color: white;
    border-radius: 0 20px 0 0;
    background-color: #80cccc;
  }

  .idea-label2 {
    position: absolute;
    top: -30px;
    left: 0px;
    font-size: 1.2rem;
    /* padding: 10px; */
    color: white;
    border-radius: 0 20px 0 0;
    background-color: #80cccc;
  }

  /* 指針リスト */
  .guideline {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1;
  }

  /* 📊 テーブルを縦並びのリストに */
  .profile-table table {
    display: block;
    width: 100%;
  }

  .profile-table tr {
    display: flex;
    flex-direction: column;
  }

  .profile-table th {
    width: 100%;
    background-color: #e7f3cc;
    text-align: center;
    font-weight: bold;
    color: #333;
    border: none;
    padding: 5px 0;
    font-size: 1.1rem;
  }

  .profile-table td {
    width: 100%;
    border: none;
    font-size: 1rem;
    padding: 10px;
  }
}
