/* ============================================
   responsive.css — senobit.co.jp
   ============================================ */

/* ============================================
   TAB: 768px 〜 1024px
   ============================================ */
@media (max-width: 1024px) {

  /* 事業内容カードを縦並びに */
  .service-card__body {
    flex-direction: column;
    gap: 2.0rem;
  }

  .service-card__left {
    width: 100%;
  }

}

/* ============================================
   SP: 〜 767px
   ============================================ */
@media (max-width: 767px) {

  :root {
    --container-pad: 2.0rem; /* 左右の余白を393pxに最適化 */
  }

  /* ---- セクション共通 --- */
  .section__title {
    font-size: 2.2rem;
  }

  .section__eyebrow {
    font-size: 1.2rem;
  }

  /* section-anchor */
  .section-anchor--services {
    height: 70px;
    margin-top: -70px;
  }

  .section-anchor--about {
  height: 70px;
  margin-top: -70px;
  }

  /* ---- ヘッダー ---- */
  .header {
      padding: 0 var(--container-pad);
  }
  /* ---- ハンバーガー表示 ---- */
  .hamburger { display: flex; }

  /* ---- SP ナビ ---- */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 60%;
    max-width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    z-index: 1100;
    padding: 2.4rem 2.4rem 4.0rem;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }

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

  /* 閉じるボタン
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    font-size: 2.0rem;
    color: var(--color-text-sub);
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 2.4rem;
    padding: 0.4rem 0;
  }
   */

  .nav__list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    width: 100%;
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.6rem;
    overflow: visible;
  }

  .nav__link-inner {
    display: flex;
    align-items: center;
    width: 100%;
  }

  /* SP用お問い合わせボタン */
  .btn--contact-sp {
    display: block;
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    background: none;
    color: var(--color-text);
    font-size: 1.6rem;
    font-weight: 400;
    padding: 1.0rem 0;
    border-radius: 0;
    text-align: left;
  }

  /* SP用お問い合わせ（SPでは表示） */
  .sp-only { display: block; }

  /* PCのお問い合わせボタンを非表示 */
  .pc-only { display: none !important; }

  /* SP ではホバーアニメーション無効 */
  .nav__link::after { display: none; }
  .nav__link:hover .nav__link-inner { transform: none; opacity: 1; }

  .nav__arrow {
    font-size: 1.4rem;
    color: var(--color-text-sub);
  }

  /* ---- Hero ---- */
  .hero {
    height: 40rem;
  }

  .hero__catch-wrap {
    padding-left: 3.0rem;
    padding-right: 3.0rem;
  }

  .hero__slide-catch {
    font-size: 2.2rem;
  }

  /* hero画像を暗くする */
  .hero__slide-overlay {
    background: rgba(0, 0, 0, 0.30);
  }

  /* ---- 事業内容 ---- */
  .services {
    padding-top: 5rem;
    padding-bottom: 1rem;
  }

  .service-card__body {
    flex-direction: column;
    gap: 2.6rem;
  }

  .service-card__left {
    width: 100%;
  }

  .service-card__label {
    font-size: 1.0rem;
  }

  .service-card__title {
    font-size: 1.6rem;
  }

  .service-card__tags {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .service-card__tag {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1.6rem 0 !important;
    margin: 0 2.0rem;
  }

  .service-card__tag:last-child {
    border-bottom: none;
  }

  .service-card__tag-label {
    font-size: 1.0rem;
  }

  .service-card__tag-text {
    font-size: 1.4rem;
  }

  /* ---- 会社概要 ---- */
  .company {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .company__row {
    gap: 2.0rem;
    padding: 1.6rem 0;
  }

  .company__label {
    width: 12rem;
    font-size: 1.3rem;
  }

  .company__value {
    font-size: 1.3rem;
  }

  /* ---- フェードイン SP では無効化（パフォーマンス） ---- */
  .fade-in-section {
    opacity: 1;
    transform: none;
  }

  /* ---- プライバシーポリシー ---- */
  .policy-page__title { font-size: 2.2rem; }
  .policy-body { padding: 0; }

  /* ---- お問い合わせページ ---- */

  /* SP表示 */
  .sp-br { display: block; }
}