/* ==========================
   法人・空室クリーニング全体
========================== */

.office-cleaning {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.office-cleaning-section {
  width: 100%;
  padding: 60px 0;
  text-align: left;
}

/* 子要素リセット（必要最低限に整理） */
.office-cleaning-section > * {
  margin: 0;
  padding: 0;
}

/* ==========================
   共通ヒーロー（位置以外）
========================== */

.office-hero {
  position: relative;
  margin: 0 0 40px;
  padding: 0;
}

.office-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.office-hero-text h1{
  font-size: 36px;
  line-height: 1.3;
}

.office-hero-text p{
  font-size: 18px;
  margin-top: 10px;
}

/* ==========================
   PCヒーロー
========================== */

.pc .office-hero-grid {
  display: flex;
  height: 500px;
}

.pc .office-hero-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.pc .office-hero-text {
  top: 30%;
}

/* ==========================
   SPヒーロー
========================== */

.sp .office-hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.sp .office-hero-sp-inner {
  position: relative;
  height: 100%;
}

.sp .office-hero-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.sp .office-hero-item.is-active {
  opacity: 1;
}

.sp .office-hero-text {
  top: 20%;
}

/* ==========================
   ヒーローテキスト装飾
========================== */

.office-hero-text h1 {
  display: inline-block;
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 10px 20px;
  margin: 6px 0;
  transform: skewX(-10deg);
  font-size: clamp(18px, 4vw, 42px);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.office-hero-text p {
  display: inline-block;
  background: rgba(255,255,255,0.9);
  color: #555;
  padding: 10px 20px;
  margin: 6px 0;
  transform: skewX(-10deg);
}

/* ==========================
   セクションタイトル
========================== */

.office-cleaning .section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #3F5F3F;
  margin-bottom: 40px;
}

/* ==========================
   カード（PC）
========================== */

.office-cleaning .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1100px;
}

.office-cleaning .card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  flex: 0 0 300px;
  max-width: 360px;
  min-width: 280px;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  transition: 0.5s;
}

/* hover（PCのみ） */
@media (hover: hover) and (pointer: fine) {
  .office-cleaning .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
}

.office-cleaning .card img {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.office-cleaning .card h3 {
  text-align: center;
  color: #3F5F3F;
  margin: 15px 0 10px;
}

.office-cleaning .card p {
  padding: 0 15px 20px;
}

/* ==========================
   SPカード（1列＋横並び）
========================== */

@media screen and (max-width: 767px) {

  .office-cleaning-section {
    padding: 50px 10px;
  }

  .office-cleaning {
    padding: 50px 0;
  }

  .office-cleaning .card-container {
    display: block;
    margin: 0;
    padding: 0 10px;
    max-width: 100%;
  }

  .office-cleaning .card {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 15px;
    border: 1px solid #f2f2f2;
    border-radius: 20px;
  }

  .office-cleaning .card img {
    width: 40%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
  }

  .office-cleaning .card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
  }

  .office-cleaning .card h3 {
    margin: 0 0 5px;
    text-align: left;
  }

  .office-cleaning .card p {
    margin: 0;
    padding: 0;
  }

  .office-cleaning .card:active {
    transform: scale(0.98);
  }
}


/* ==========================
   空室・居室清掃
========================== */

/* PC：画像左＋説明右 */
.akishitsu .card-container {
  max-width: 900px;
  margin: 0 auto;
}

.akishitsu .card {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: none;
  width: 100%;
  max-width: 900px;
}

.akishitsu .card:last-child {
  margin-bottom: 0;
}

/* 画像 */
.akishitsu .card img {
  width: 45%;
  flex-shrink: 0;
  border-radius: 20px 0 0 20px;
}

/* テキスト */
.akishitsu .card-text {
  flex: 1;
  padding: 0 20px;
}

/* h3はSEO用として残す */
.akishitsu .card h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* 説明文 */
.akishitsu .card p {
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

/* ==========================
   SP：画像上＋説明下
========================== */

@media screen and (max-width: 767px) {

  .akishitsu .card {
    display: block;
  }

  .akishitsu .card img {
    width: 100%;
    border-radius: 20px 20px 0 0;
  }

  .akishitsu .card-text {
    padding: 15px;
  }

  .akishitsu .card p {
    margin-top: 10px;
  }

}