/*
 * ビジョン・ミッションのページ (vision/index.html) だけで使う CSS。style.css と subpage.css のあとに読む。
 * 声明の文字を大きく組むことが見せ場。節の名前 (h2) は小さく置き、声明を主役にする。
 * 補足の文と、ミッション・バリューの説明は、どの節でも同じ縦の位置 (左から 7/12) から始める。
 */

.creed {
  padding-top: 88px;
  padding-bottom: 112px;
}

.creed__label {
  margin: 0 0 40px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

/* 声明。行の切れ目は span で決め、語の途中では折らない。広い画面では span ごとに 1 行 */
.statement {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.statement span {
  display: block;
}

/* 狭い画面では 2 行に分ける所 (中の span は、広い画面では続けて 1 行) */
.statement span span {
  display: inline-block;
  text-indent: 0;
}

.statement--purpose {
  font-size: clamp(32px, 6.2vw, 92px);
  line-height: 1.25;
}

.statement--vision {
  font-size: clamp(25px, 5.2vw, 76px);
  line-height: 1.3;
}

/* 行の頭のかぎ括弧は、字の左のあき (全角の左半分) のぶんだけ左へ出して、次の行の頭とそろえる。
   左のあき (いちばん狭いときで 40px。スマホは 20px だが、字下げも 16px まで) を越えて画面の外へは出さない */
.statement--vision > span:first-child {
  text-indent: max(-0.58em, -40px);
}

.creed__texts {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 64px;
  margin-top: 56px;
}

.creed__text {
  grid-column: 2;
  margin: 0;
  color: var(--text-sub);
  font-size: 17px;
  line-height: 2;
}

.creed__text + .creed__text {
  margin-top: 20px;
}

.creed__preface {
  max-width: 40em;
  margin: -16px 0 56px;
  color: var(--text-sub);
  font-size: 17px;
  line-height: 2;
}

/* ミッションとバリュー: 1 行に 1 つ。左に大きな言葉、右に説明 */

.tenets {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.tenet {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: baseline;
  column-gap: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.tenet__head {
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.tenet__num {
  flex: none;
  width: 1.2em;
  font-family: var(--font-num);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.3;
}

.tenet__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.tenet__text {
  margin: 0;
  color: var(--text-sub);
  font-size: 17px;
  line-height: 2;
}

/* バリューは英語の言葉が主役。括弧の中の日本語は小さく添える */
.tenet__title--word {
  font-size: clamp(32px, 4.4vw, 64px);
  letter-spacing: -0.02em;
}

.tenet__ja {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .creed__texts,
  .tenet {
    grid-template-columns: minmax(0, 1fr);
  }

  .creed__text {
    grid-column: 1;
  }

  .tenet {
    row-gap: 16px;
    padding: 32px 0;
  }
}

@media (max-width: 767px) {
  .creed {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .creed__label {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .statement--purpose {
    font-size: min(34px, (100vw - 40px) / 10);
  }

  /* いちばん長い行「リーディングカンパニーになる」」(15 字) が、1 行に入る大きさまで縮める */
  .statement--vision {
    font-size: min(28px, (100vw - 40px) / 14.9);
  }

  .creed__texts {
    margin-top: 32px;
  }

  .creed__text,
  .creed__preface,
  .tenet__text {
    font-size: 16px;
    line-height: 1.95;
  }

  .creed__preface {
    margin: -8px 0 36px;
  }

  .tenet {
    row-gap: 12px;
    padding: 28px 0;
  }

  .tenet__head {
    gap: 14px;
  }
}
