.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  header {
    height: 72px;
  }

  .header-nav {
    height: 72px;
    padding: 0 20px;
  }

  .logo img {
    width: 150px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 58px;
    height: 38px;
    padding: 0;
    color: #115cff;
    background: #fff;
    border: 1px solid #115cff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .menu-toggle span {
    grid-area: 1 / 1;
  }

  .menu-close-text {
    display: none;
  }

  .menu-toggle.is-open .menu-open-text {
    display: none;
  }

  .menu-toggle.is-open .menu-close-text {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    display: grid;
    gap: 0;
    width: min(320px, 100%);
    height: calc(100vh - 72px);
    padding: 28px 24px;
    background: #fff;
    box-shadow: -12px 0 28px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.3s,
      visibility 0.3s;
  }

  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 18px 0;
    font-size: 16px;
    border-bottom: 1px solid #dce3ee;
  }

  .nav-links .nav-contact {
    justify-content: center;
    margin-top: 16px;
    border-bottom: 0;
  }

  .nav-divider {
    display: none;
  }

  .hero {
    min-height: 780px;
    padding: 170px 24px 72px;
    background-position: 62% center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    margin: 0 0 24px;
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
  }

  .hero-title span {
    font-size: 1.12em;
    letter-spacing: -0.06em;
  }

  .contact-button {
    padding: 16px 30px;
    font-size: 15px;
  }

  section {
    scroll-margin-top: 72px;
  }

  .service-section,
  .flow-section,
  .scope-section {
    padding: 88px 24px;
  }

  .section-inner {
    width: 100%;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.25;
  }

  .section-lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .service-grid,
  .scope-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card,
  .scope-card {
    padding: 28px 24px;
  }

  .service-strip {
    padding: 20px 24px;
  }

  .service-strip-inner {
    font-size: 14px;
  }

  .flow-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 40px;
  }

  .flow-item {
    padding: 28px 24px;
  }

  .flow-number {
    font-size: 32px;
  }

  .scope-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
  }

  .site-footer {
    padding: 56px 24px 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
  }

  .contact-section,
  .company-section,
  .news-section,
  .privacy-section {
    padding: 120px 20px 80px;
  }

  .contact-form,
  .company-info,
  .news-empty,
  .privacy-content {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-direct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
  }

  .contact-direct p {
    width: 100%;
    margin: 0 0 4px;
  }

  .contact-direct a {
    font-size: 14px;
    white-space: nowrap;
  }

  .submit-button {
    width: 100%;
  }

  .company-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .business-purpose-list li {
    padding-left: 24px;
  }

  .news-item {
    display: block;
    padding: 22px 0;
  }

  .news-item h2 {
    margin-top: 10px;
    font-size: 16px;
  }

  .privacy-item {
    padding: 24px 12px;
  }

  .company-info .company-row {
    display: block !important;
    width: 100%;
    padding: 20px 12px;
  }

  .company-info .company-row dt,
  .company-info .company-row dd {
    width: 100% !important;
    margin: 0;
    padding: 0 !important;
    text-align: left !important;
  }

  .company-info .company-row dt {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .company-info .company-row dd {
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .company-info .company-row:first-child {
    border-top: 1px solid #dce3ee !important;
  }

  .privacy-item:first-child {
    border-top: 1px solid #dce3ee;
  }

  /* スマホで文章を自然に折り返す */
  p,
  h1,
  h2,
  h3,
  li,
  dt,
  dd,
  a,
  label {
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }
  .company-info dd,
  .contact-direct a,
  .contact-form input,
  .contact-form textarea {
    overflow-wrap: anywhere;
  }
}

/* タブレット・小さめPC */
@media (min-width: 769px) and (max-width: 1100px) {
  header,
  .header-nav {
    height: 88px;
  }

  .header-nav {
    padding: 0 32px;
  }

  .logo img {
    width: 175px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 64px;
    height: 40px;
    padding: 0;
    color: #115cff;
    background: #fff;
    border: 1px solid #115cff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .menu-toggle span {
    grid-area: 1 / 1;
  }

  .menu-close-text {
    display: none;
  }

  .menu-toggle.is-open .menu-open-text {
    display: none;
  }

  .menu-toggle.is-open .menu-close-text {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 88px;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(360px, 100%);
    height: calc(100vh - 88px);
    padding: 24px 32px 48px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -12px 16px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 0 4px;
    border-bottom: 1px solid #e5eaf1;
    font-size: 17px;
  }

  .nav-links .nav-contact {
    justify-content: center;
    margin-top: 24px;
    border: 0;
  }

  .nav-divider {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 180px 48px 80px;
  }

  .hero-title {
    font-size: clamp(4rem, 6vw, 5rem);
  }

  .service-section,
  .flow-section,
  .scope-section {
    padding: 100px 48px;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer {
    padding-right: 48px;
    padding-left: 48px;
  }

  .contact-section,
  .company-section,
  .news-section,
  .privacy-section {
    padding-right: 48px;
    padding-left: 48px;
  }
}
