/* ==============================
   Responsive (768px breakpoint)
============================== */

/* タブレット以下 */
@media (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }

  .hero__title {
    font-size: 36px;
  }

  .about__title {
    font-size: 32px;
  }

  .features__title {
    font-size: 26px;
  }

  .experts__title {
    font-size: 24px;
  }

  .section-title {
    font-size: 26px;
  }

  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ */
@media (max-width: 767px) {
  /* レイアウト基本 */
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  /* ===== Header（SP・忠実再現版） ===== */

  /* SP時はヘッダー全体高さを縮小 */
  :root {
    --header-top-height: 70px;
    --header-bottom-height: 64px;
    --header-total-height: 134px;
  }

  main {
    padding-top: 134px;
  }

  .header__top {
    height: 70px;
    padding-top: 12px;
  }

  .header__bottom {
    height: 64px;
  }

  /* 第1段：ロゴ画像縮小＋ログインブロック簡略化 */
  .header__brand-img {
    height: 36px;
  }

  .header__top-right {
    gap: 12px;
  }

  .header__login-text,
  .header__qr-text {
    font-size: 9px;
  }

  .header__qr-img {
    width: 36px;
    height: 36px;
  }

  .header__login-icon svg {
    width: 18px;
    height: 18px;
  }

  /* 第2段：Ai助ロゴ縮小＋バーガー */
  .header__aisuke-tag {
    font-size: 9px;
  }

  .header__aisuke-img {
    height: 40px;
  }

  /* ナビは右からスライドイン */
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 280px;
    max-width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
    padding: 0 32px;
  }

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

  .header__nav-link {
    width: 100%;
    font-size: 15px;
    padding: 14px 16px;
    text-align: center;
    justify-content: center;
    border: 0;
    box-shadow: none;
    background-color: transparent;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }

  .header__overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* ===== Hero ===== */
  .hero {
    padding: 40px 0 56px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__title {
    font-size: 28px;
    text-align: center;
  }

  .hero__lead {
    font-size: 15px;
    text-align: center;
  }

  .hero__cta {
    align-items: center;
  }

  .hero__cta-row {
    justify-content: center;
  }

  /* ===== セクション見出し ===== */
  .section-title {
    font-size: 22px;
    gap: 12px;
    margin-bottom: 32px;
  }

  .section-title::before,
  .section-title::after {
    flex-basis: 30px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  /* ===== News ===== */
  .news__banners {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .news__list {
    padding: 16px 20px;
  }

  .news__item {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    padding: 12px 0;
  }

  .news__date {
    width: auto;
    font-size: 12px;
  }

  .news__title {
    width: 100%;
    flex: none;
    font-size: 13px;
  }

  /* ===== App Download ===== */
  .app-download {
    padding: 40px 0;
  }

  .app-download__title {
    font-size: 17px;
  }

  .app-badge {
    min-width: 0;
    padding: 10px 16px;
  }

  /* ===== About ===== */
  .about {
    padding: 64px 0;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about__title {
    font-size: 26px;
  }

  .about__text {
    font-size: 15px;
    text-align: left;
  }

  /* ===== Features ===== */
  .features {
    padding: 64px 0;
  }

  .features__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features__content {
    order: 1;
  }

  .features__visual {
    order: 2;
  }

  .features__title {
    font-size: 22px;
  }

  .features__text {
    font-size: 15px;
  }

  /* ===== Solutions ===== */
  .solutions {
    padding: 64px 0;
  }

  .solutions__intro {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .solutions__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .solution-card {
    padding: 24px 16px;
  }

  .solution-card__visual {
    height: 120px;
  }

  .solution-card__title {
    font-size: 16px;
  }

  /* ===== Targets ===== */
  .targets {
    padding: 64px 0;
  }

  .targets__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .target-card {
    padding: 24px 20px;
  }

  .target-card__title {
    font-size: 18px;
  }

  /* ===== Experts ===== */
  .experts {
    padding: 64px 0;
  }

  .experts__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .experts__title {
    font-size: 22px;
    text-align: center;
  }

  .experts__text {
    font-size: 15px;
  }

  .experts__cta {
    justify-content: center;
  }

  /* ===== Video Section ===== */
  .video-section {
    padding: 64px 0;
  }

  .video-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .video-section__title {
    font-size: 22px;
  }

  .video-section__text {
    font-size: 15px;
  }

  .video-section__play-btn {
    width: 64px;
    height: 64px;
  }

  .video-section__play-btn::before {
    border-left-width: 18px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }

  /* ===== Voice ===== */
  .voice {
    padding: 64px 0;
  }

  .voice__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  /* ===== CTA Re ===== */
  .cta-re {
    padding: 64px 0;
  }

  .cta-re__title {
    font-size: 26px;
  }

  .cta-re__lead {
    font-size: 15px;
  }

  /* ===== News banner repeat ===== */
  .news-banner-repeat {
    padding: 40px 0;
  }

  .news-banner-repeat__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ===== Seminar ===== */
  .seminar {
    padding: 64px 0;
  }

  .seminar__table th,
  .seminar__table td {
    font-size: 13px;
    padding: 12px 10px;
  }

  /* ===== Footer ===== */
  .footer {
    padding: 48px 0 20px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* ===== Buttons ===== */
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .btn--large {
    padding: 14px 32px;
    font-size: 16px;
  }
}
