/* ============================================
   Pattern4 カスタマイズ - 調整要望1223対応
   ============================================ */

/* ============================================
   1. Hero Section - 白背景化
   ============================================ */

.hero {
  background: var(--color-white);
}

/* 背景画像を非表示 */
.hero__bg {
  display: none;
}

/* オーバーレイを削除 */
.hero__bg::after {
  display: none;
}

/* テキスト色を黒に変更 */
.hero__content {
  color: var(--color-text);
}

.hero__title {
  color: var(--color-text);
}

.hero__title-en {
  color: var(--color-text-light);
}

.hero__subtitle {
  color: var(--color-text-light);
}

/* スクロールインジケーターの色も調整 */
.hero__scroll-text {
  color: var(--color-text-muted);
}

.hero__scroll-line {
  background: var(--color-text-muted);
}

/* シャドウを削除 */
.hero__title,
.hero__title-en,
.hero__subtitle,
.hero__content {
  text-shadow: none;
  box-shadow: none;
}

/* ============================================
   1.5 About Image Section - Hero後の小セクション
   ============================================ */

.about-image-section {
  width: 100%;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  padding: 40px 0;
}

.about-image-section img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================
   2. WHO WE ARE Section - 全体背景画像
   ============================================ */

.split-section--whoweare {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

/* 背景画像（透明度80%）- PC用 */
.split-section--whoweare::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/who-we-are/whoweare_2.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 0;
}

/* テキストエリアを左側に配置（オーバーレイ） */
.split-section--whoweare .split-section__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: transparent;
  padding: 100px 80px;
  margin-left: var(--content-padding);
}

/* 画像エリアを非表示（背景画像を使用） */
.split-section--whoweare .split-section__image {
  display: none;
}

/* SP用画像（PC非表示） */
.split-section--whoweare .split-section__sp-images--whoweare {
  display: none;
}

/* ============================================
   3. SERVICE Section - 背景画像追加
   ============================================ */

.service-section {
  position: relative;
}

/* 背景画像（透明度80%）- 横幅100%に合わせる */
.service-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/service/service_1.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 0;
}

/* コンテンツを前面に */
.service-section .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   4. CSR Section - 全体背景画像
   ============================================ */

.split-section--csr {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
}

/* 背景画像（透明度80%）- 横幅100%に合わせる */
.split-section--csr::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/csr/CSR_1.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 0;
}

/* 左側の画像エリアを非表示 */
.split-section--csr .split-section__image {
  display: none;
}

/* テキストエリアを右側に配置（少し左寄せ） */
.split-section--csr .split-section__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: transparent;
  padding: 100px 80px;
  margin-right: 100px;
}

/* SP用画像（PC非表示） */
.split-section--csr .split-section__sp-images--csr {
  display: none;
}

/* ============================================
   5. RECRUIT Section - 背景画像差し替え
   ============================================ */

.recruit-section {
  min-height: 120vh;
  padding-bottom: 100px;
}

.recruit-section__bg--pc img {
  content: url('../images/recruit/recruit_1.png');
}

/* SP用背景（PC非表示） */
.recruit-section__bg--sp {
  display: none;
}

/* ============================================
   6. Background Colors - SERVICE, CSR, NEWSセクションを白背景に
   ============================================ */

.service-section,
.split-section--csr,
.news-section {
  background: #FFFFFF !important;
}

/* ============================================
   Responsive - Tablet & Mobile
   ============================================ */

@media (max-width: 1024px) {
  /* WHO WE ARE & CSR - タブレット対応 */
  .split-section--whoweare,
  .split-section--csr {
    justify-content: center;
  }

  .split-section--whoweare .split-section__content,
  .split-section--csr .split-section__content {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* Hero - モバイル対応 */
  .hero {
    min-height: 100vh;
  }

  /* WHO WE ARE - モバイル対応（CSRと同じ構造） */
  .split-section--whoweare {
    min-height: auto;
    display: block;
  }

  .split-section--whoweare::before {
    background-image: url('../images/who-we-are/whoweare_2_SP_1.png');
    background-size: 100% auto;
    background-position: top center;
  }

  .split-section--whoweare .split-section__content {
    max-width: 90%;
    padding: 60px 24px;
    margin-right: auto;
    margin-left: auto;
    background: transparent !important;
  }

  /* 見出しの文字切れ対策（全セクション共通） */
  .heading-xl,
  .split-section .heading-xl,
  .recruit-section .heading-xl,
  .contact-section .heading-xl {
    font-size: 24px;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
  }

  .section-label {
    font-size: 40px;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal !important;
    overflow: visible !important;
  }

  .service-header__title,
  .news-header__title {
    font-size: 22px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .service-header__label,
  .news-header__label {
    font-size: 48px;
    word-break: keep-all;
  }

  /* SP用画像をLearn Moreの下に表示 */
  .split-section--whoweare .split-section__sp-images--whoweare {
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .split-section--whoweare .split-section__sp-images--whoweare img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
  }

  /* SERVICE - モバイル対応（SP用画像に切り替え） */
  .service-section::before {
    background-image: url('../images/service/service_1_SP.png');
    background-size: 100% auto;
    background-position: top center;
  }

  /* CSR - モバイル対応（SP用画像に切り替え） */
  .split-section--csr {
    min-height: auto;
    display: block;
  }

  .split-section--csr::before {
    background-image: url('../images/csr/CSR_1_SP.png');
    background-size: 100% auto;
    background-position: top center;
  }

  .split-section--csr .split-section__content {
    max-width: 90%;
    padding: 60px 24px;
    margin-right: auto;
    margin-left: auto;
    background: transparent !important;
  }

  /* SP用画像をLearn Moreの下に表示 */
  .split-section--csr .split-section__sp-images--csr {
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .split-section--csr .split-section__sp-images--csr img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
  }

  /* RECRUIT - モバイル対応（SP用画像に切り替え） */
  .recruit-section {
    min-height: auto;
    padding-bottom: 0;
  }

  /* PC用背景を非表示 */
  .recruit-section__bg--pc {
    display: none;
  }

  /* SP用背景を表示（2枚縦並び） */
  .recruit-section__bg--sp {
    display: block;
    position: relative;
    width: 100%;
    z-index: 0;
  }

  .recruit-section__bg--sp img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* コンテンツを画像の上に重ねる */
  .recruit-section__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 60px 24px;
  }

  /* RECRUIT/CONTACT - 見出しの文字切れ対策 */
  .recruit-section__label,
  .contact-section__label {
    font-size: 48px;
    word-break: keep-all;
  }

  .recruit-section__title {
    font-size: 28px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .contact-section__title {
    font-size: 24px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

}

/* ============================================
   Tablet Responsive (412px以上〜PC未満)
   SP版表示 + 左右に帯
   ============================================ */

@media (min-width: 412px) and (max-width: 1024px) {
  /* 左右の帯用の背景色（透明度80%） */
  body {
    background-color: rgba(200, 200, 201, 0.8);
  }

  /* タブレット版でもSP用改行を表示 */
  .sp-only {
    display: inline;
  }

  /* Hero タイトルの改行対策 */
  .hero__title {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* 全セクションを中央配置・最大幅制限 */
  .hero,
  .about-image-section,
  .split-section,
  .service-section,
  .news-section,
  .recruit-section,
  .contact-section,
  .footer {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    background-color: #FFFFFF;
  }

  /* ヘッダーは固定なので特別対応 */
  .header {
    width: 540px;
    max-width: 100%;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    background-color: #FFFFFF;
  }

  /* タブレット版でもSP版ナビ表示 */
  .header__nav {
    display: none;
  }

  .header__contact {
    display: none;
  }

  .header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
  }

  .header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
  }

  .header__hamburger span:nth-child(1) {
    margin-bottom: 6px;
  }

  .header__hamburger span:nth-child(3) {
    margin-top: 6px;
  }

  .header__hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--color-white);
  }

  .header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--color-white);
  }

  /* 背景画像があるセクションも白背景を維持 */
  .split-section--whoweare,
  .split-section--csr,
  .recruit-section {
    background-color: #FFFFFF;
  }

  /* CONTACTセクション - ダーク背景を維持 */
  .contact-section {
    background-color: var(--color-bg-dark);
  }

  /* フッターの背景 */
  .footer--original {
    background-color: #1a1a1a;
  }

  /* ============================================
     タブレット版 背景画像設定（SP版と同じ）
     ============================================ */

  /* WHO WE ARE - SP用背景画像 */
  .split-section--whoweare {
    min-height: auto;
    display: block;
  }

  .split-section--whoweare::before {
    background-image: url('../images/who-we-are/whoweare_2_SP_1.png');
    background-size: 100% auto;
    background-position: top center;
  }

  .split-section--whoweare .split-section__content {
    background: transparent !important;
  }

  .split-section--whoweare .split-section__sp-images--whoweare {
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .split-section--whoweare .split-section__sp-images--whoweare img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
  }

  /* CSR - SP用背景画像 */
  .split-section--csr {
    min-height: auto;
    display: block;
  }

  .split-section--csr::before {
    background-image: url('../images/csr/CSR_1_SP.png');
    background-size: 100% auto;
    background-position: top center;
  }

  .split-section--csr .split-section__content {
    background: transparent !important;
  }

  .split-section--csr .split-section__sp-images--csr {
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .split-section--csr .split-section__sp-images--csr img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
  }

  /* SERVICE - SP用背景画像 */
  .service-section::before {
    background-image: url('../images/service/service_1_SP.png');
    background-size: 100% auto;
    background-position: top center;
  }

  /* RECRUIT - SP用画像 */
  .recruit-section {
    min-height: auto;
    padding-bottom: 0;
  }

  .recruit-section__bg--pc {
    display: none;
  }

  .recruit-section__bg--sp {
    display: block;
    position: relative;
    width: 100%;
  }

  .recruit-section__bg--sp img {
    display: block;
    width: 100%;
    height: auto;
  }

  .recruit-section__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 60px 24px;
  }

  /* ============================================
     タブレット版 レイアウト調整（SP版を踏襲）
     ============================================ */

  /* Hero セクション */
  .hero {
    min-height: 100vh;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.4;
  }

  .hero__title-en {
    font-size: 13px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  /* Split Section (WHO WE ARE / CSR) */
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-section__content {
    padding: 60px 32px;
  }

  /* 見出しの文字切れ対策（タブレット版） */
  .section-label {
    font-size: 42px;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal !important;
    overflow: visible !important;
  }

  .heading-xl,
  .split-section .heading-xl,
  .recruit-section .heading-xl,
  .contact-section .heading-xl {
    font-size: 26px;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
  }

  .text-body {
    font-size: 15px;
  }

  /* SERVICE セクション */
  .service-header__label {
    font-size: 56px;
    word-break: keep-all;
  }

  .service-header__title {
    font-size: 26px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .news-header__title {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .service-grid--3col,
  .service-grid--2col {
    grid-template-columns: 1fr;
  }

  .service-card__title {
    font-size: 17px;
  }

  .service-card__text {
    font-size: 13px;
  }

  /* NEWS セクション */
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .news-header__label {
    font-size: 48px;
  }

  .news-header__title {
    font-size: 22px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-item__arrow {
    display: none;
  }

  /* RECRUIT セクション */
  .recruit-section {
    min-height: 80vh;
  }

  .recruit-section__label {
    font-size: 56px;
    word-break: keep-all;
  }

  .recruit-section__title {
    font-size: 30px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .recruit-section__text {
    font-size: 16px;
  }

  /* CONTACT セクション */
  .contact-section {
    padding: 80px 24px;
  }

  .contact-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .contact-section__label {
    font-size: 48px;
    word-break: keep-all;
  }

  .contact-section__title {
    font-size: 26px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .contact-section__desc {
    font-size: 15px;
  }

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

  .contact-box {
    padding: 32px 24px;
  }

  .contact-box__value {
    font-size: 20px;
  }

  /* Footer */
  .footer--original .footer__logo-main {
    font-size: 36px;
  }

  .footer--original .footer__logo-sub {
    font-size: 11px;
  }

  .footer--original .footer__sitemap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer--original .footer__sitemap-col {
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  .footer--original .footer__sitemap-col:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
}
