@charset "UTF-8";
/* =====================================================
   Company page ("会社概要")
   ===================================================== */
.greeting {
  position: relative;
  padding: 110px 40px 60px;
  display: grid;
  grid-template-columns: fit-content(55%) minmax(0, 1fr);
  /* 幅が狭いほど溝を詰めて本文に幅を回す。 */
  gap: clamp(24px, 4vw, 60px);
  color: #fff;
}
.greeting__title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  font-size: 36px;
  letter-spacing: 5.4px;
  line-height: 1.8;
  color: #fff;
  margin: 0;
  align-self: start;
}
.greeting__body {
  max-width: 633px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2.4px;
  line-height: 2;
  color: #fff;
}
.greeting__body p { margin: 0 0 20px; }
.greeting__body p:last-of-type { margin-bottom: 0; }

.greeting__sign {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.greeting__sign-role {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: #fff;
}
.greeting__sign-name {
  width: 233px;
  height: auto;
}

.corp-info {
  position: relative;
  padding: 100px 80px 100px;
  display: grid;
  /* 見出しは「企業情報」の 4 文字だけなので、.greeting の 400px より
     左列を狭くしてテーブル側に幅を回す。
     minmax(0, ...) にしないと、列が中身の min-content 幅より小さくなれず
     グリッドが親をはみ出す（＝モバイルでページ全体が縮小される）。 */
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 60px;
  color: #fff;
}
.corp-info__title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  font-size: 38px;
  letter-spacing: 5.7px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}
/* 幅は grid の 2 列目に任せる（旧 max-width: 773px は、左列を狭めた分の
   広がりを打ち消してしまうため撤去）。 */
.corp-info__table {
  margin: 0;
}
.corp-info__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  letter-spacing: 2.7px;
  line-height: 2.3;
  color: #fff;
}
.corp-info__row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.9); }
.corp-info__row--multi { align-items: start; }
.corp-info__row dt { margin: 0; }
.corp-info__row dd { margin: 0; }
.corp-info__row a { color: #fff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.corp-info__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 2px;
}
.corp-info__contact:last-child { margin-bottom: 0; }
/* 「メールアドレス」は 18px + letter-spacing 2.7px で約 145px あり、
   width: 144px 固定だと 2 行に折れてしまっていた。
   min-width にして下限（＝ラベル同士の縦揃え）だけ保ちつつ、
   長いラベルは内容に合わせて伸ばす。 */
.corp-info__contact-label {
  min-width: 144px;
  flex-shrink: 0;
  white-space: nowrap;
}


/* =====================================================
   レスポンシブ
   - max-width: 1023px … タブレット。Figma に該当デザインが無いため PC からの補間値。
   - max-width: 767px  … Figma「SP-水素の杜-会社概要と代表あいさつ」(375px) の実寸。
   ===================================================== */

/* ----- タブレット（〜1023px） ----- */
@media (max-width: 1023px) {
  .greeting { padding: 90px 30px 50px; }
  .greeting__title { font-size: 30px; letter-spacing: 4px; }

  .corp-info { padding: 80px 30px; gap: 40px; }
  .corp-info__title { font-size: 32px; letter-spacing: 4px; }
  .corp-info__row { grid-template-columns: 130px minmax(0, 1fr); font-size: 16px; }
}

/* ----- スマートフォン（〜767px）: Figma SP デザイン準拠 ----- */
@media (max-width: 767px) {

  /* --- 代表あいさつ --- */
  /* 見出しは 375px 幅いっぱいの中央寄せ、本文だけ 335px に絞る。
     l-container の 85% だと左右 28px になってしまうので幅は 100% に戻す。 */
  .greeting {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 70px 0 0;
  }
  .greeting__title {
    font-size: 26px;
    letter-spacing: 2.6px;
    line-height: 1.5;
    text-align: center;
  }
  .greeting__body {
    width: 335px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    font-size: 14px;
    letter-spacing: 2.1px;
    line-height: 2.2;
  }
  /* SP は段落間を空けず、行送りだけで続けて流す。 */
  .greeting__body p { margin-bottom: 0; }

  /* 署名は本文（335px）の中で「代表取締役」を左端、サインを右端に置く。 */
  .greeting__sign {
    margin-top: 26px;
    justify-content: space-between;
    gap: 20px;
  }
  .greeting__sign-role {
    font-size: 18px;
    letter-spacing: 2.7px;
  }
  .greeting__sign-name { width: 196px; }

  /* --- 企業情報 --- */
  .corp-info {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 100px 20px 140px;
  }
  .corp-info__title {
    font-size: 30px;
    letter-spacing: 3px;
    line-height: 1.5;
  }
  /* SP は項目名と内容を 2 段（上下）に積む。
     罫線・余白（上下 30px）と行間 5px はそのままで、列指定だけ 1 列にする。 */
  .corp-info__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 30px 0;
    font-size: 16px;
    letter-spacing: 2.4px;
    line-height: 2.3;
  }
  .corp-info__row dt {
    font-size: 14px;
    letter-spacing: 2.1px;
  }
  .corp-info__contact {
    gap: 4px 20px;
    margin-bottom: 2px;
  }
  .corp-info__contact-label {
    min-width: 95px;
    font-size: 12px;
    letter-spacing: 1.8px;
  }
}
