@charset "utf-8";

/* 電話番号とお問い合わせボタン */
.header-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 24px 20px;
}

.header-phone {
  text-align: center;
}

.header-phone a {
  display: inline-block;
  color: #111;
  font-size: 40px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone span {
  display: block;
  margin-top: -6px;
  font-size: 16px;
  line-height: 2;
  text-align: right;
}

.header-contact > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 68px;
  padding: 16px 28px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  text-decoration: none;
}

.header-mail {
  background: #f2cb00;
  color: #111;
}

.header-estimate {
  background: #169b42;
  color: #fff;
}

/* PC：ロゴの右側で上下中央より少し上に配置 */
@media (min-width: 1300px) {
  header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  header h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-right: 24px;
  }

  header .logo {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding-right: 24px;
  }

  header .header-contact {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    padding: 0;
    margin: 0 24px 0 0;
    transform: translateY(-10px);
  }

  header .header-info {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  header #menubar {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

/* スマホ：電話番号の下にボタンを並べる */
@media (max-width: 599px) {
  .header-contact {
    gap: 10px;
    padding: 10px 16px 16px;
  }

  .header-phone {
    width: 100%;
  }

  .header-contact > a {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    font-size: 12px;
  }
}