/* タブレット版
画面サイズが48em(768px)以上
16px(ブラウザのデフォルトの文字サイズ) × 48 = 768px
-----------------------------------------------*/
@media screen and (min-width: 48em) {

  h1 {
    font-size: 3rem;
  }

  /* メインページ
------------------------------*/

  /* ヘッダー */
  .header {
    height: 100px;
  }

  .header-logo img {
    height: 80px;
    margin-top: 1rem;
  }

  .header-logo p {
    font-size: 3rem;
    padding: 0 4rem;
  }

  /* ハンバーガーメニューボタンここから */
  /* ボタン外側 */
  .toggle-button {
    width: 80px;
    height: 80px;
  }

  /* ボタン内側 */
  /* アニメーションの設定 */
  .toggle-button span {
    position: absolute;
    left: 14px;
    height: 5px;
    border-radius: 5px;
    background-color: #006a6c;
    width: 65%;
  }

  .toggle-button span:nth-last-of-type(1) {
    top: 22px;
  }

  .toggle-button span:nth-last-of-type(2) {
    top: 36px;
  }

  .toggle-button span:nth-last-of-type(3) {
    top: 50px;
  }

  .toggle-button span:nth-last-of-type(3)::after {
    /* 3つ目の要素のafterにMenu表示を指定 */
    content: "Menu";
    position: absolute;
    top: 7px;
    color: #006a6c;
    font-size: 1.6rem;
    text-transform: uppercase;
  }

  /* activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更する */
  #header-menu {
    margin-top: 100px;
    /* ヘッダー部分100pxを出す */
  }

  .toggle-button.active {
    top: 20px;
  }

  .toggle-button.active span:nth-last-of-type(3)::after {
    /* 3つ目の要素のafterにClose表示を指定 */
    top: 7px;
  }

  #header-menu-list ul li {
    font-size: 2rem;
  }

  /* main */
  .main img {
    width: 80%;
  }

  .main-top p,
  .main-top dl {
    font-size: 1.375rem;
  }

  .main-top-text {
    padding-bottom: 2rem;
  }

  .main-top-text h1 {
    font-size: 3.5rem;
  }

  .main-top h2 {
    font-size: 2.25rem;
  }

  .main-top-text p:nth-child(1) {
    font-size: 2.2em;
  }

  .main-top-text p:nth-child(3) {
    font-size: 1.8rem;
  }

  .main-top-text p {
    font-size: 2.4rem;
  }

  .link-button {
    font-size: 1.5rem;
  }

  /* about */
  .main-about-title {
    grid-template-rows: none;
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 4rem;
  }

  .main-about-title h2 {
    font-size: 2.2rem;
  }

  .main-about-title p {
    font-size: 1.2rem;
    padding-left: 4rem;
  }

  /* works */
  .main-works-title {
    text-align: center;
  }

  .main-works-title img {
    width: 80%;
  }

  .main-works-item {
    display: grid;
    grid-template-rows: none;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 1.5rem 3rem;
  }

  .main-works-item h2 {
    font-size: 2.2rem;
    padding-left: 0;
  }

  .main-works-item p {
    font-size: 1.2rem;
    padding-left: 4rem;
  }

  .advisory p {
    padding-left: 4rem;
  }

  .design p br:nth-of-type(1),
  .design p br:nth-of-type(3) {
    display: initial
  }

  .design p br:nth-of-type(2) {
    display: none;
  }

  /* contact */
  .contact {
    padding: 2rem 2rem 3rem;
  }

  .main-contact h1 {
    font-size: 3rem;
    padding-top: 4rem;
  }

  .main-contact h2 {
    font-size: 3rem;
    padding-top: 2rem;
  }

  .contact-text p {
    font-size: 1.4rem;
    line-height: 1.7;
    text-align: center;
  }

  .-contact-text {
    padding-bottom: 2rem;
  }

  .main-contact dl {
    font-size: 1.25rem;
  }

  .main-contact dt {
    padding-top: 1.25rem;
  }

  .input-text {
    line-height: 2;
  }

  .contact-form {
    text-align: left;
    font-size: 1.4rem;
    padding-bottom: 2rem;
  }

  .contact-form p {
    font-size: 1rem;
    text-align: center;
  }

  .contact-form p br {
    display: none;
  }

  .btn {
    font-size: 1.6rem;
    margin: 0;
  }

  .sns {
    padding: 3rem 2rem;
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
  }

  .sns-item {
    font-size: 6rem;
    padding: 0;
  }

  .sns-item h2 {
    font-size: 1.8rem;
  }

  .sns-item p {
    font-size: 1.2rem;
    padding: 0 1rem 2rem;
  }

  /* footer */
  .footer-nav {
    font-size: 2.5rem;

  }

  .footer-logo img {
    width: 220px;
  }

  .footer .copyright {
    font-size: 1.25rem;
  }

}