@charset "UTF-8";

/* ============================================
   Responsive Styles
   ブレイクポイント: 540px / 840px / 1140px
   ============================================ */

/* === タブレット & 小型PC（1140px以下） === */
@media (max-width: 1140px) {
  :root {
    --fs-5xl: 3.5rem;
    --fs-4xl: 2.75rem;
    --fs-3xl: 2.25rem;
  }

  .container {
    padding: 0 24px;
  }

  .header__nav-list {
    gap: 24px;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .business-list {
    gap: 16px;
  }

  .business-card {
    padding: 36px;
  }
}

/* === タブレット（840px以下） === */
@media (max-width: 840px) {
  :root {
    --fs-5xl: 2.75rem;
    --fs-4xl: 2.25rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.625rem;
    --header-height: var(--header-height-sp);
  }

  /* ヘッダー */
  .header {
    height: var(--header-height-sp);
  }

  .header__inner {
    padding: 0 20px;
  }

  .header__nav,
  .header__contact {
    display: none;
  }

  .header__menu-btn {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 560px;
    height: 80vh;
  }

  .hero__message {
    padding: 32px 24px 32px 24px;
    max-width: 100%;
    width: 100%;
    border-right: none;
    border-bottom: 3px solid var(--color-accent);
  }

  .hero__title {
    font-size: 2rem;
    margin-bottom: 12px;
    white-space: normal;  /* タブレット以下は改行を許可 */
  }

  .hero__subtitle {
    font-size: var(--fs-base);
    margin-bottom: 20px;
  }

  .hero__desc {
    font-size: var(--fs-sm);
    margin-bottom: 24px;
  }

  .hero__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
  }

  .hero__pagination {
    flex-direction: row;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
  }

  .hero__scroll {
    display: none;
  }

  /* News Ticker */
  .news-ticker__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .news-ticker__label {
    padding-right: 0;
    border-right: none;
  }

  .news-ticker__items {
    flex-wrap: wrap;
    gap: 12px;
  }

  .news-ticker__title {
    width: 100%;
    white-space: normal;
  }

  /* About Intro */
  .about-intro__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-intro__visual {
    aspect-ratio: 4 / 5;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Business List */
  .business-list {
    grid-template-columns: 1fr;
  }

  .business-card {
    padding: 32px;
  }

  /* Business Card with bg image: 1カラム時は全幅で表示 */
  .business-card--bg {
    min-height: 340px;
  }

  .business-card--bg > * {
    max-width: 60%;
  }

  .business-card--bg::after {
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 75%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 75%);
  }

  /* Sitemap */
  .sitemap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Job List */
  .job-list {
    grid-template-columns: 1fr;
  }

  /* 採用詳細ページ */
  .job-hero {
    padding: 60px 0 32px;
  }

  .recruit-duties {
    grid-template-columns: 1fr;
  }

  .recruit-req {
    grid-template-columns: 1fr;
  }

  /* Service Detail Page */
  .service-hero {
    min-height: 340px;
    padding: 60px 0;
  }

  .service-hero__content {
    max-width: 60%;
  }

  .service-hero__bg {
    opacity: 0.5;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list__item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    padding: 20px 16px;
  }

  .process-list__item:last-child {
    border-bottom: none;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  /* Features */
  .features__list {
    grid-template-columns: 1fr;
  }

  /* News List */
  .news-list__item {
    grid-template-columns: 100px 100px 1fr 20px;
    gap: 12px;
    padding: 16px 4px;
  }

  /* Recruit Banner */
  .recruit-banner__inner {
    grid-template-columns: 1fr;
  }

  .recruit-banner__visual {
    min-height: 240px;
  }

  .recruit-banner__visual-label {
    font-size: 4rem;
  }

  .recruit-banner__content {
    padding: 60px 32px;
  }

  /* Page Header */
  .page-header {
    height: 240px;
  }

  .page-header--slim {
    height: 140px;
  }

  .page-header--slim .page-header__title--en {
    font-size: var(--fs-2xl);
  }

  /* Message */
  /* Corporate Message（タブレット以下） */
  .corp-message__title {
    font-size: var(--fs-4xl);
  }

  .corp-message__subtitle {
    font-size: var(--fs-lg);
    margin-bottom: 32px;
  }

  .corp-message__body p {
    line-height: 2.4;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
  }


  /* Vision */
  .vision-list {
    grid-template-columns: 1fr;
  }

  /* CSR Banner（タブレット）：レイアウトバランスのため人物画像は非表示 */
  .csr-banner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .csr-banner__bg-img {
    display: none;        /* タブレット以下では非表示（モバイルでもレイアウト維持） */
  }

  .csr-banner__inner {
    padding: 40px 32px;
  }

  .csr-banner__overlay {
    max-width: 100%;
  }

  .csr-banner__logos {
    gap: 32px;
    margin-bottom: 24px;
  }

  .csr-banner__logo {
    height: 90px;
  }

  .csr-banner__message {
    font-size: 14px;
    line-height: 2.4;
    letter-spacing: 0.06em;
  }

  /* Info Table */
  .info-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 8px;
  }

  /* Recruit Hero */
  .recruit-hero > div:first-child {
    padding: 0;
  }

  .recruit-hero__visual {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    border-radius: var(--radius-lg);
    min-height: 280px;
  }

  .recruit-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: span 2;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Section */
  .section {
    padding: var(--space-xl) 0;
  }
}

/* === モバイル（540px以下） === */
@media (max-width: 540px) {
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.625rem;
    --fs-2xl: 1.375rem;
    --fs-xl: 1.25rem;
    --space-2xl: 4rem;
    --space-xl: 3rem;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    min-height: 520px;
    height: 90vh;
  }

  .hero__message {
    padding: 24px 20px;
    border-bottom-width: 2px;
  }

  .hero__title {
    font-size: 1.5rem;
    line-height: 1.3;
    white-space: normal;
  }

  .hero__subtitle {
    font-size: var(--fs-sm);
  }

  .hero__desc {
    font-size: var(--fs-sm);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .btn {
    padding: 14px 24px;
    font-size: var(--fs-sm);
  }

  /* News List */
  .news-list__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 4px;
  }

  .news-list__arrow {
    display: none;
  }

  /* Feature numbers */
  .feature-item {
    padding: 32px 24px;
  }

  .feature-item__number {
    font-size: 3rem;
  }

  /* Recruit Banner Visual Label */
  .recruit-banner__visual-label {
    font-size: 2.5rem;
  }

  /* Page Header */
  .page-header {
    height: 200px;
  }

  .page-header--slim {
    height: 120px;
  }

  /* Business Card */
  .business-card {
    padding: 28px 24px;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__legal {
    flex-direction: column;
    gap: 8px;
  }

  /* Form */
  .form__submit .btn {
    width: 100%;
    min-width: auto;
  }

  /* CSR Banner（モバイル）：bg-imgは継承で非表示のまま */
  .csr-banner__inner {
    padding: 32px 20px;
  }

  .csr-banner__logos {
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .csr-banner__logo {
    height: 70px;
  }

  .csr-banner__message {
    font-size: 13px;
  }

  /* Scroll Top */
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  /* CTA */
  .cta-section__actions {
    flex-direction: column;
  }

  .cta-section__actions .btn {
    width: 100%;
  }
}
