/* =========================================================
  Company Page
========================================================= */

@media screen and (min-width: 432px) {
  .greeting {
    padding: 90px 0 110px;
    position: relative;
  }

  .greeting::after {
    content: "";
    position: absolute;
    width: 875px;
    height: 760px;
    bottom: 0;
    left: 0;
    right: 0;
    background: url("../img/img16.png") center / contain no-repeat;
  }

  .greeting__inner {
    display: grid;
    grid-template-columns: 180px 620px;
    column-gap: 210px;
    justify-content: center;
    align-items: start;
  }

  .greeting__title {
    padding: 0;
  }

  .greeting__body {
    padding-top: 4px;
  }

  .greeting__body p {
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.06em;
  }

  .greeting__signature {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-top: 58px;
  }

  .greeting__signature span {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .greeting__signature img {
    width: 250px;
    height: auto;
  }

  .company-detail {
    padding: 120px 0 120px;
    background: #f8f8f8;
  }

  .company-detail__head {
    margin-bottom: 70px;
  }

  .company-table {
    width: 710px;
    margin: 0 auto;
  }

  .company-table div {
    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: 80px;
    padding: 0 0 28px;
  }

  .company-table dt,
  .company-table dd {
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.06em;
  }

  .company-table dt {
    color: #555;
  }

  .company-table dd {
    color: #333;
  }

  .company-map {
    width: 1200px;
    height: 450px;
    margin: 80px auto 0;
    overflow: hidden;
  }

  .company-map iframe {
    display: block;
    width: 100%;
    height: 100%;
  }
}

/* =========================================================
  SP
========================================================= */

@media screen and (max-width: 431px) {
  .greeting__inner {
    position: relative;
  }

  .greeting__inner::before {
    content: "";
    width: 875px;
    height: 765px;
    background: url("../img/img27.png") center / contain no-repeat;
    position: absolute;
    left: -22px;
    bottom: -75px;
  }

  .greeting {
    padding: 64px 0 72px;
  }

  .greeting__inner {
    display: block;
    width: var(--inner);
    margin: 0 auto;
  }

  /* 見出しは縦書きのまま、本文の上に置く */
  .greeting__title {
    width: fit-content;
    margin: 0 0 40px;
    padding: 0;
  }

  .greeting__title h2 {
    writing-mode: vertical-rl;
  }

  .greeting__title span {
    writing-mode: vertical-rl;
  }

  /* 本文は見出しの下から横幅いっぱいで表示 */
  .greeting__body {
    width: 100%;
    padding-top: 0;
  }

  .greeting__body p {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 2.15;
    letter-spacing: 0.04em;
  }

  .greeting__signature {
    display: block;
    margin-top: 38px;
    padding-left: 120px;
  }

  .greeting__signature span {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
  }

  .greeting__signature img {
    width: 200px;
  }

  .company-detail {
    padding: 72px 0;
    background: #f8f8f8;
  }

  .company-detail__head {
    margin-bottom: 46px;
  }

  .company-table {
    width: var(--inner);
    margin: 0 auto;
  }

  .company-table div {
    display: block;
    padding: 0 0 24px;
  }

  .company-table dt {
    margin-bottom: 5px;
    font-size: 12px;
    color: #777;
  }

  .company-table dd {
    font-size: 12px;
    line-height: 2;
  }
  .company-map {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 25px;
  }

  .company-map iframe {
    width: 100%;
    height: 300px;
    display: block;
  }
}
