/* ===== 企業理念ページ（新） =====
   カード内の文字や画像は「カードの幅」に合わせて伸び縮みします（cqi単位）
   max(○rem, ○cqi) の左側はスマホでの最小サイズ */
.cp {
  --cp-navy: #253d73;
  --cp-wave: #1766a6;
  --cp-text: #333;
  color: var(--cp-text);
  background: #fff;
  letter-spacing: 0.04em;
  word-break: auto-phrase; /* 文節で改行（Chrome/Edge） */
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

/* A4カード */
.cp-sec {
  position: relative;
  display: flex;
  background: #fff;
  aspect-ratio: 1 / 1.414;
  border: 1px solid #ccc;
  box-shadow: 1.2rem 1.2rem 0 #d5d5d5;
  container-type: inline-size;
}
.cp-sec + .cp-sec { margin-top: 5rem; }

/* 青い波（カードの左上・右下） */
.cp-sec::before,
.cp-sec::after {
  content: "";
  position: absolute;
  aspect-ratio: 5 / 4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 400'%3E%3Cpath fill='%231766a6' d='M0 0H500C470 90 400 150 290 172C150 200 50 240 0 400Z'/%3E%3C/svg%3E") no-repeat top left / 100% 100%;
  z-index: 0;
  pointer-events: none;
}
.cp-sec::before { top: 0; left: 0; width: 52%; }
.cp-sec::after  { bottom: 0; right: 0; width: 44%; transform: rotate(180deg); }

.cp-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 14cqi 8cqi;
}
.cp-thought .cp-inner,
.cp-actions .cp-inner { justify-content: flex-start; }

/* 見出し */
.cp-title {
  color: var(--cp-navy);
  font-size: max(2.4rem, 6.4cqi);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.05em;
  margin-bottom: 7cqi;
}

/* 筆のあしらい */
.cp-brush {
  padding: 0 0.3em 0.1em;
  background: url("../img/aboutus/philosophy/brush.png") no-repeat center bottom / 100% 70%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- 私たちの想い --- */
.cp-thought .cp-inner { padding-top: 22cqi; }
.cp-thought__head { margin-bottom: 8cqi; }
.cp-thought__head .cp-title { margin-bottom: 0; }
.cp-thought__tora {
  position: absolute;
  left: -6cqi;
  top: -7cqi;
  width: 32cqi;
}
.cp-thought__catch {
  align-self: center; /* ブロックごとカード中央に */
  text-align: left;
  font-size: max(1.9rem, 4.8cqi);
  font-weight: 900;
  line-height: 1.9;
  margin-bottom: 8cqi;
}
.cp-thought__catch2 { margin-left: 2em; }
.cp-thought__lead {
  font-size: max(1.4rem, 3.1cqi);
  font-weight: 700;
  line-height: 2.2;
  margin-bottom: 8cqi;
}
.cp-thought__text {
  align-self: center;
  text-align: left;
  font-size: max(1.3rem, 2.3cqi);
  font-weight: 700;
  line-height: 1.9;
}
.cp-thought__text p + p { margin-top: 1.6em; }

/* --- 5つの心得 --- */
.cp-rules__list {
  align-self: center;
  text-align: left;
  list-style: none;
}
.cp-rules__item {
  position: relative;
  padding-left: max(5.4rem, 9cqi);
}
.cp-rules__item + .cp-rules__item { margin-top: 7cqi; }
.cp-rules__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: max(4.2rem, 6.8cqi);
  aspect-ratio: 1;
  background: url("../img/aboutus/philosophy/tora_icon.png") no-repeat center / contain;
}
.cp-rules__main {
  font-size: max(1.6rem, 4.2cqi);
  font-weight: 700;
  line-height: 1.5;
}
.cp-rules__sub {
  font-size: max(1.2rem, 2.8cqi);
  margin-top: 0.5em;
}

/* --- スーパーヒーローになるために --- */
.cp-actions .cp-inner { padding: 30cqi 8cqi 34cqi; } /* 上下の波を避ける */
.cp-actions .cp-title { margin-bottom: 6cqi; }
.cp-actions__list { list-style: none; }
.cp-actions__item + .cp-actions__item { margin-top: 3rem; }
.cp-actions__main {
  font-size: max(1.5rem, 3.4cqi);
  font-weight: 700;
  line-height: 1.5;
}
.cp-actions__sub {
  font-size: max(1.1rem, 1.9cqi);
  line-height: 1.8;
  margin-top: 0.5em;
}

/* --- 締め --- */
.cp-closing__text {
  font-size: max(1.4rem, 3.1cqi);
  line-height: 2.3;
}
.cp-closing__text p + p { margin-top: 2.4em; }
.cp-closing__last {
  font-size: max(1.6rem, 3.7cqi);
  font-weight: 900;
  margin-top: 8cqi;
}
.cp-closing__tora {
  width: 30cqi;
  margin: 6cqi -2cqi -8cqi auto;
}

/* ===== PC ===== */
@media screen and (min-width: 750px) {
  /* カードを左右互い違いに、上下を少し重ねて配置 */
  .cp {
    display: flex;
    flex-direction: column;
    max-width: 140rem;
    margin: 0 auto;
    padding: 14rem 6rem 12rem;
  }
  .cp-sec {
    width: 56%;
    box-shadow: 2rem 2rem 0 #d5d5d5;
  }
  .cp-sec:nth-child(even) { align-self: flex-end; }
  .cp-sec + .cp-sec { margin-top: -9%; }

  /* 10項目はカード内で2列 */
  .cp-actions__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3cqi;
    row-gap: 4cqi;
  }
  .cp-actions__item + .cp-actions__item { margin-top: 0; }
}

/* ===== スマホ：波と文字がかぶらないように ===== */
@media screen and (max-width: 749px) {
  .cp-sec::before { width: 38%; }
  .cp-sec::after  { width: 32%; }

  .cp-inner { padding: 32cqi 6cqi 30cqi; }
  .cp-thought .cp-inner { padding-top: 36cqi; }
  .cp-actions .cp-inner { padding: 34cqi 6cqi 32cqi; }
}