@charset "UTF-8";

/* =========================================================
   About／画廊について
   ========================================================= */

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__block {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--uf));
}

.about__history {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--uf));
}

.about__history-year {
  margin: 0;
}

.about__history-events {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.about__history-events li {
  list-style: disc;
}

@media (max-width: 1023px) {
  .about {
    position: relative;
    padding-top: calc(232 * var(--u));
  }

  .about__title {
    position: absolute;
    left: calc(24 * var(--u));
    top: calc(131 * var(--u));
  }

  .about__photo--top {
    display: flex;
    justify-content: flex-end;
    padding-top: calc(40 * var(--u));
  }

  /* 幅 369u = 画面の幅 393u − 左の余白 24u。縦は元の 366 × 115 の比率で伸ばす */
  .about__photo--top img {
    width: calc(369 * var(--u));
    height: calc(115 * var(--u) * 369 / 366);
  }

  .about__catch {
    width: calc(345 * var(--u));
    margin: calc(60 * var(--u)) auto 0;
    font-size: max(var(--font-min), calc(var(--fs-catch) * var(--u)));
    line-height: var(--lh-catch);
    letter-spacing: var(--ls-catch);
  }

  .about__column {
    display: flex;
    flex-direction: column;
    gap: calc(40 * var(--u));
    width: calc(345 * var(--u));
    margin-inline: auto;
    padding-block: calc(40 * var(--u)) calc(80 * var(--u));
  }

  .about__photo--bottom img {
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 396;
  }
}

@media (min-width: 1024px) {
  .about__title {
    position: absolute;
    left: 4.141%;    /* 53 / 1280 */
    top: 14.784%;    /* 123 / 832 */
  }

  .about__photo--top {
    position: absolute;
    left: 43.359%;   /* 555 / 1280 */
    top: 3.846%;     /* 32 / 832 */
    width: 49.844%;  /* 638 / 1280 */
    height: 24.038%; /* 200 / 832 */
  }

  .about__catch {
    position: absolute;
    left: 4.141%;    /* 53 / 1280(ページ題と同じ) */
    top: 32.09%;
    font-size: max(var(--font-min), calc(var(--fs-catch) * var(--uf)));
    line-height: var(--lh-catch);
    letter-spacing: var(--ls-catch);
  }

  /* 文章量が多いので下端を基準にし、画面が縦に短いときは上へ伸ばす。
     上の写真と「会社概要」の間が空きすぎるため、列全体を少し上げる。
     上は写真の下まで。それより長いときは、列の中でスクロールする */
  .about__column {
    position: absolute;
    left: 43.359%;   /* 555 / 1280 */
    top: calc(27.884% + 24 * var(--uf));   /* 写真の下(32 + 200 / 832) */
    bottom: calc(var(--nav-h) + 26 * var(--uf));
    width: 49.844%;  /* 638 / 1280 */
    display: flex;
    flex-direction: column;
    gap: calc(72 * var(--uf));
    overflow-y: auto;
  }

  /* PCでは見出しの右に置く。短いときは下端にそろえる。
     「会社概要」と「お問い合わせ」の上は広く空ける(写真の下から 64) */
  .about__block:first-child {
    position: relative;
    margin-top: auto;
    padding-top: calc(40 * var(--uf));
  }

  .about__contact {
    position: absolute;
    right: 0;
    top: calc(40 * var(--uf));   /* 見出しの高さ(上の余白の下) */
    /* 幅は文字の長さで決めず、160 にする(部品の大きさの決まり → DESIGN-SYSTEM.md「公開サイト > 部品の大きさ」) */
    width: calc(160 * var(--uf));
    padding-inline: 0;
  }

  .about__photo--bottom {
    position: absolute;
    left: 0;
    bottom: calc(var(--nav-h) + 8 * var(--u));
    width: 36.016%;  /* 461 / 1280 */
    height: 34.255%; /* 285 / 832 */
  }

  /* PCの沿革は「1987年（昭和62年）：内容」を1行に。
     2件目以降は年の幅ぶんぶら下げて揃える(Figma) */
  .about__history-item {
    display: flex;
    align-items: baseline;
  }

  .about__history-year {
    flex-shrink: 0;
  }

  .about__history-year::after {
    content: "：";
  }

  .about__history-events {
    padding-left: 0;
    list-style: none;
  }

  .about__history-events li {
    list-style: none;
  }
}
