/* ============================================
   sp.css
   レスポンシブ対応（タブレット／スマートフォン）
============================================ */

/* ---------- タブレット ---------- */
@media screen and (max-width: 1024px) {
  .banner__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mv__title {
    font-size: 36px;
  }
}

/* ---------- スマートフォン ---------- */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 64px;
    --header-height-scrolled: 64px;
  }

  .inner {
    padding: 0 20px;
  }

  .sp-only {
    display: inline;
  }

  .section {
    padding: 80px 0;
  }

  /* お知らせ */
  .news {
    padding: 48px 0;
  }

  .news .inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section__title {
    font-size: 22px;
  }

  .section__head {
    margin-bottom: 44px;
  }

  /* header */
  .header__inner {
    padding: 0 20px;
  }

  .header__logo img {
    height: 30px;
  }

  .menu-btn {
    display: block;
  }

  .gnav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-primary-dark);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .gnav.is-active {
    transform: translateX(0);
  }

  .gnav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px 32px;
  }

  .gnav__list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .gnav__list a {
    display: block;
    padding: 20px 0;
    color: #fff;
    font-size: 16px;
  }

  .menu-btn.is-active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }

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

  .menu-btn.is-active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }

  /* MV */
  .mv__en {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .mv__title {
    font-size: 28px;
  }

  .mv__text {
    font-size: 18px;
  }

  /* お知らせ */
  .news__item {
    flex-direction: column;
    gap: 4px;
  }

  /* ごあいさつ */
  .message__body {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: left;
  }

  .message__aside {
    position: static;
    flex: 0 0 auto;
    width: 180px;
    margin: 0 auto;
    text-align: center;
  }

  .message__figure {
    width: 180px;
  }

  .message__content .message__catch {
    font-size: 22px;
  }

  /* 会社概要 */
  .about__table,
  .about__table tbody,
  .about__table tr,
  .about__table th,
  .about__table td {
    display: block;
    width: 100%;
  }

  .about__table th {
    padding-bottom: 4px;
  }

  .about__table td {
    padding-top: 0;
    padding-bottom: 22px;
  }

  /* 経営理念 */
  .philosophy__statement {
    font-size: 26px;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 40px;
  }

  .philosophy__brand-title,
  .philosophy__brand-subtitle,
  .philosophy__brand-heading2,
  .philosophy__brand-lead,
  .philosophy__brand p:not([class]),
  .philosophy__brand-narrow,
  .philosophy__brand-statement {
    text-align: left;
  }

  .philosophy__brand-title::after,
  .philosophy__brand-subtitle::after {
    margin-left: 0;
  }

  .philosophy__brand-narrow {
    margin-left: 0;
    margin-right: 0;
  }

  .philosophy__brand-title {
    font-size: 20px;
  }

  .philosophy__brand-lead {
    font-size: 22px;
  }

  .philosophy__brand-block {
    padding: 28px 20px;
  }

  /* ロゴマークについて */
  .logomark__body {
    flex-direction: column;
    gap: 28px;
  }

  .logomark__figure {
    order: 0;
    width: 100%;
    padding: 28px;
  }

  /* グループ会社 */
  .banner__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .banner__list--single {
    max-width: 100%;
  }
}
