.philosophy-section {
  max-width: 850px;
  margin: 4rem auto;
  padding: 1rem;
  color: var(--color-text);
}

.philosophy-section h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.philosophy-block {
  display: flex;
  align-items: flex-start; /* ← 中央揃えをやめて上揃えに */
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* 上部の大きな理念画像だけに適用 */
.philosophy-main-img {
  width: 90%;
  max-width: 90%;
  border-radius: 8px;
  margin-bottom: 3rem;
}

/* 下のサブ画像（3つ）に適用 */
.philosophy-sub-img {
  flex: 1 1 300px;
  max-width: 320px;
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.align-left {
  display: block;
  text-align: left;
}

.align-center {
  display: block;
  text-align: center;
}

.philosophy-text {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.8;
}

.philosophy-text h3 span {
  display: block;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

/* ====== 番号付き2カラムリスト構造 ====== */
.custom-list2 {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.list-item {
  display: flex;
  align-items: flex-start;
}

.list-num {
  width: 3em;
  flex-shrink: 0;
  font-weight: bold;
  color: var(--color-main);
  line-height: 1.6;
}

.list-body {
  flex: 1;
  line-height: 1.6;
}

/* 補足など */
.note {
  font-size: 0.85em;
  color: var(--color-text-subtle); /* ← ここを変数にすることでテーマ対応 */
}

.note-right {
  display: block;
  text-align: right;
  font-size: 0.85em;
  color: var(--color-text-subtle); /* ← ここを変数にすることでテーマ対応 */
  margin-top: 0.2em;
}

/* === リンク群：右寄せ === */
.service-links-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 2em 0;
}

/* === 縦並び === */
.service-links {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* === 各リンク行 === */
.service-link {
  display: flex;
  align-items: center;
}

/* →アイコン */
.service-link .arrow {
  display: inline-block;
  width: 1.5em;
  text-align: right;
  color: var(--color-link);
  font-weight: bold;
}

/* テキストリンク */
.service-link a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 1rem;
  margin-left: 0.3em;
}

.service-link a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

/* ====== モバイル対応 ====== */
@media screen and (max-width: 768px) {
  .philosophy-block {
    flex-direction: column;
    text-align: center;
  }

  .philosophy-text {
    text-align: left;
  }

  .list-item {
    flex-direction: row;
  }

  .list-num {
    width: 3em;
    text-align: left;
  }
}
