@media (max-width: 1200px) {
  .container {
    max-width: 800px;
  }

  /* ----------------title------------------- */
  .subtitle {
    font-size: 120px;
    font-weight: 600;
  }

  /* ---------------top page--------------- */
  #intro {
    font-size: 28px;
  }

  #service .title-container {
    padding-left: 24px;
  }

  .service-img,
  .about-img {
    width: clamp(280px, 30vw, 340px);
  }

  .contact-title {
    font-size: 40px;
  }

  .mail-icon {
    width: 200px;
  }
}

/* Tablet 横〜小さめPC */
@media (max-width: 1024px) {
  .container {
    max-width: 600px;
  }

  /* ---------------top--------------- */
  #top-logo img {
    width: 120px;
  }

  #top-title h1 {
    font-size: 64px;
  }

  #top-title h2 {
    font-size: 48px;
  }

  #top-title h3 {
    font-size: 32px;
  }

  /* ---------------main--------------- */
  .main-container {
    flex-direction: column;
    position: relative;
  }

  .top-img {
    display: none;
  }

  #service .main-item {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url("../images/top-service.jpg");
    background-position: 0 38%;
  }

  #about .main-item {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url("../images/top-about.png");
    background-position: center;
  }

  #service .main-item,
  #about .main-item {
    background-size: cover;

    width: 600px;
    padding: 40px;
  }

  .contact-title {
    font-size: 40px;
  }

  .mail-icon {
    display: none;
  }

  /* --------------- footer --------------- */
  footer .container {
    position: initial;
  }

  .copyright,
  .sns-icons {
    position: initial;
    top: initial;
    transform: initial;
  }

  .sns-icons {
    position: initial;
    font-size: 20px;
  }

  .sns-icons ul {
    justify-content: space-around;
    padding: 24px 160px 0;
  }

  .sns-icons li {
    padding-left: 0;
  }
}

/* Tablet 縦 */
@media (max-width: 768px) {
  .container {
    max-width: 440px;
  }

  body.is-no-scroll,
  html.is-no-scroll {
    overflow: hidden;
  }

  header {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 56px;
    background: #0e0e0e;
    z-index: 900;
    align-items: center;
  }

  .humberger-logo {
    position: fixed;
    left: 16px;
  }

  .logo-img {
    width: 48px;
  }

  .header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
  }

  /*---------------humberger button---------------*/
  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    z-index: 950;
    cursor: pointer;
  }

  .menu-button span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu-button.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-button.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /*---------------humberger menu---------------*/
  .nav {
    height: 100vh;
    inset: 0;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 800;
  }

  .header-logo {
    display: none;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-inner {
    height: 100%;
  }

  .nav ul {
    flex-direction: column;
    gap: 32px;
    justify-content: normal;
    position: absolute;
    top: 160px;
    left: 0;
  }

  .page {
    font-size: 24px;
  }

  /* ---------------top--------------- */
  #top-logo img {
    width: 80px;
  }

  #top-title h1 {
    font-size: 44px;
  }

  #top-title h2 {
    font-size: 32px;
  }

  #top-title h3 {
    font-size: 24px;
  }

  /* ---------------main---------------- */
  #intro {
    font-size: 23px;
    padding: 120px 0 60px;
  }

  #service .main-item,
  #about .main-item {
    width: 440px;
  }
  #price {
    padding-bottom: 80px;
  }

  .subtitle {
    font-size: 88px;
  }

  .contact-title {
    font-size: 32px;
  }

  dt {
    padding: 0 40px 0 8px;
  }

  dd {
    max-width: 400px;
  }

  /* --------------- footer --------------- */
  .sns-icons ul {
    padding: 24px 120px 0;
  }
}

/* Smartphone until 320px*/
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    max-width: 300px;
  }

  /* ----------------nav--------------- */
  header {
    height: 64px;
  }

  .logo-img {
    width: 40px;
  }

  .page {
    font-size: 16px;
  }

  /* ---------------top--------------- */
  #top-title h1 {
    font-size: 32px;
    font-weight: 600;
  }

  #top-title h2 {
    font-size: 26px;
    line-height: 1.8em;
    font-weight: 500;
  }

  #top-title h3 {
    font-size: 22px;
    font-weight: 500;
  }

  /* --------------scroll arrow--------------- */
  .scroll-arrow {
    height: 80px;
    width: 1px;
    bottom: 24px;
    right: 32px;
  }

  .scroll-arrow::before {
    letter-spacing: 4px;
    font-size: 14px;
    top: 4px;
    right: -20px;
  }

  .scroll-arrow::after {
    width: 1px;
    height: 20px;
    right: 4px;
  }

  /* ---------------main-------------- */
  #intro {
    font-size: 16px;
    padding: 80px 0 0;
  }

  .subtitle {
    font-size: 64px;
  }

  #service .main-item,
  #about .main-item {
    width: 300px;
  }

  #service .main-item {
    background-position: center;
  }

  .button {
    font-size: 13px;
  }

  #contact {
    padding-bottom: 48px;
  }

  .contact-title {
    font-size: 22px;
  }

  .contact-details {
    padding-top: 24px;
    line-height: 1.4em;
  }

  .contact-list {
    padding-top: 32px;
  }

  dd {
    width: 120px;
  }

  /* --------------- footer --------------- */
  .copyright {
    font-size: 14px;
  }
  .sns-icons ul {
    padding: 24px 72px 0;
  }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 530px) {
  /*---------------humberger menu---------------*/

  .nav ul {
    flex-direction: initial;
    flex-wrap: wrap;

    gap: 56px;
    justify-content: center;
    align-items: center;
    height: 50vh;
    margin: auto;
  }

  .nav li {
    width: 30%;
  }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 430px) {
  /*---------------humberger menu---------------*/

  .nav ul {
    top: 80px;
  }
}
