/**
 * Common Sections - 共通セクションのスタイル
 * 
 * @package kai-rinkou
 * @since 1.0.0
 */

/* ==================================================
 * 業務内容セクション
 * ================================================== */

.services {
  padding: 80px 60px;
  width: fit-content;
  margin: 0 auto;
}

.services__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* 左側：画像エリア */
.services__image-area {
  flex-shrink: 0;
  width: clamp(28.125rem, 21.861rem + 13.03vw, 37.5rem);
  height: 400px;
  overflow: hidden;
}

.services__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右側：コンテンツエリア */
.services__content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* タイトル部分 */
.services__title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.services__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #4A4A4A;
  margin: 0;
}

.services__subtitle {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #D9BBA0;
  margin: 0;
  white-space: nowrap;
}

/* テキストコンテンツ */
.services__text-content {
  display: flex;
  flex-direction: column;
}

.services__main-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #4A4A4A;
  margin: 0;
}

.services__description {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #4A4A4A;
  margin: 0;
}

/* ボタン */
.services__cta {
  display: flex;
  justify-content: center;
}

.services__button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #FFFFFF;
  color: #4A4A4A;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.157;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 3px solid #A3C1A0;
  border-radius: 40px;
  transition: all 0.3s ease;
  text-align: center;
}

.services__button:hover {
  background-color: #A3C1A0;
  color: #FFFFFF;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ==================================================
 * 会社概要セクション
 * ================================================== */

.company {
  padding: 80px 60px;
  width: fit-content;
  margin: 0 auto;
}

/* タイトル部分 */
.company__title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 62px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.company__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #4A4A4A;
  margin: 0;
}

.company__subtitle {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #D9BBA0;
  margin: 0;
  white-space: nowrap;
}

/* 画像エリア */
.company__images {
  display: flex;
  gap: 38px;
  margin-bottom: 62px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.company__main-image {
  flex-shrink: 0;
  width: 540px;
  height: 360px;
  overflow: hidden;
}

.company__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company__sub-images {
  display: flex;
  flex-direction: column;
  gap: 31px;
  width: 249px;
}

.company__sub-image {
  width: 100%;
  height: 164px;
  overflow: hidden;
}

.company__sub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 会社情報テーブル */
.company__info-table {
  max-width: 1200px;
  margin: 0 auto;
}

.company__info-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.company__info-row:last-child {
  margin-bottom: 0;
}

/* 項目名（左側） */
.company__info-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 136px;
  flex-shrink: 0;
}

.company__label-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #4A4A4A;
  text-align: center;
  margin-bottom: 6px;
}

.company__label-line {
  width: 100%;
  height: 1px;
  background-color: #ABA6A2;
}

/* 内容（右側） */
.company__info-content {
  display: flex;
  flex-direction: column;
  width: 666px;
  flex-shrink: 0;
}

.company__content-text {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #4A4A4A;
  text-align: left;
  margin-bottom: 6px;
}

.company__content-line {
  width: 100%;
  height: 1px;
  background-color: #ABA6A2;
}

/* ==================================================
 * お問い合わせセクション（Figmaデザイン準拠）
 * ================================================== */

.kai-rinkou-contact {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 400px;
  background-image: url('../../images/bg-contact.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  border-radius: 0px 50px 50px 0px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  margin: 2rem 0;
}

/* 背景オーバーレイ */
.kai-rinkou-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 74, 74, 0.6);
  z-index: 1;
  transition: background 0.3s ease;
}

/* ホバー時のオーバーレイ */
.kai-rinkou-contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0);
  z-index: 1;
  transition: background 0.3s ease;
  pointer-events: none;
}

/* ホバー効果 */
.kai-rinkou-contact:hover::after {
  background: rgba(255, 255, 255, 0.6);
}

.kai-rinkou-contact:hover .kai-rinkou-contact__title,
.kai-rinkou-contact:hover .kai-rinkou-contact__subtitle,
.kai-rinkou-contact:hover .kai-rinkou-contact__description {
  color: #4A4A4A;
}

.kai-rinkou-contact__container {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #FFFFFF;
}

.kai-rinkou-contact__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* メインタイトル */
.kai-rinkou-contact__title {
  font-family: 'UD Digi Kyokasho NP', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
}

/* サブタイトル（太字説明文） */
.kai-rinkou-contact__subtitle {
  font-family: 'UD Digi Kyokasho NP', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
}

/* 詳細説明文 */
.kai-rinkou-contact__description {
  font-family: 'UD Digi Kyokasho NP', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.157;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
}

/* 旧スタイルのリセット（後方互換性のため残す） */
.kai-rinkou-contact__text,
.kai-rinkou-contact__info,
.kai-rinkou-contact__phone,
.kai-rinkou-contact__hours,
.kai-rinkou-contact__label,
.kai-rinkou-contact__phone-link,
.kai-rinkou-contact__hours-text,
.kai-rinkou-contact__cta,
.kai-rinkou-contact__link {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .services {
    padding: 60px 40px;
  }

  .services__container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .services__image-area {
    width: 100%;
    max-width: 600px;
    height: 300px;
  }

  .services__title-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .services__content-area {
    gap: 32px;
  }

  .services__text-content {
    gap: 32px;
  }

  .services__cta {
    justify-content: center;
  }

  .company {
    padding: 60px 40px;
  }

  .company__images {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .company__main-image {
    width: 100%;
    max-width: 540px;
    height: 280px;
  }

  .company__sub-images {
    flex-direction: row;
    width: 100%;
    max-width: 540px;
    gap: 20px;
  }

  .company__sub-image {
    width: calc(50% - 10px);
    height: 140px;
  }

  .company__info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .company__info-label {
    width: 100%;
    align-items: flex-start;
  }

  .company__label-text {
    text-align: left;
    margin-bottom: 8px;
  }

  .company__info-content {
    width: 100%;
  }

  .company__content-text {
    margin-bottom: 8px;
  }

  .kai-rinkou-contact {
    padding: 60px 40px;
    border-radius: 0px 30px 30px 0px;
  }

  .kai-rinkou-contact__container {
    max-width: 600px;
  }

  .kai-rinkou-contact__title {
    font-size: 32px;
  }

  .kai-rinkou-contact__subtitle {
    font-size: 18px;
  }

  .kai-rinkou-contact__description {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 40px 20px;
  }

  .services__title {
    font-size: 28px;
  }

  .services__subtitle {
    font-size: 18px;
  }

  .services__main-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .services__description {
    font-size: 16px;
    line-height: 1.6;
  }

  .services__image-area {
    height: 240px;
  }

  .services__content-area {
    gap: 24px;
  }

  .services__text-content {
    gap: 24px;
  }

  .company {
    padding: 40px 20px;
  }

  .company__title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 40px;
  }

  .company__title {
    font-size: 28px;
  }

  .company__subtitle {
    font-size: 18px;
  }

  .company__main-image {
    height: 220px;
  }

  .company__sub-images {
    gap: 16px;
  }

  .company__sub-image {
    width: 100%;
    height: 120px;
  }

  .company__label-text,
  .company__content-text {
    font-size: 18px;
  }

  .company__info-row {
    margin-bottom: 32px;
  }

  .kai-rinkou-contact {
    padding: 40px 20px;
    border-radius: 0px 20px 20px 0px;
    min-height: 300px;
  }

  .kai-rinkou-contact__container {
    max-width: 100%;
  }

  .kai-rinkou-contact__content {
    gap: 20px;
  }

  .kai-rinkou-contact__title {
    font-size: 28px;
    line-height: 1.3;
  }

  .kai-rinkou-contact__subtitle {
    font-size: 16px;
    line-height: 1.4;
  }

  .kai-rinkou-contact__description {
    font-size: 18px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 32px 16px;
  }

  .services__title {
    font-size: 24px;
  }

  .services__subtitle {
    font-size: 16px;
  }

  .services__main-title {
    font-size: 20px;
  }

  .services__description {
    font-size: 14px;
  }

  .services__button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .services__image-area {
    height: 200px;
  }

  .company {
    padding: 32px 16px;
  }

  .company__title {
    font-size: 24px;
  }

  .company__subtitle {
    font-size: 16px;
  }

  .company__main-image {
    height: 180px;
  }

  .company__sub-image {
    height: 100px;
  }

  .company__label-text,
  .company__content-text {
    font-size: 16px;
    line-height: 1.4;
  }

  .company__info-row {
    margin-bottom: 24px;
  }

  .kai-rinkou-contact {
    padding: 32px 16px;
    border-radius: 0px 15px 15px 0px;
  }

  .kai-rinkou-contact__content {
    gap: 16px;
  }

  .kai-rinkou-contact__title {
    font-size: 24px;
  }

  .kai-rinkou-contact__subtitle {
    font-size: 14px;
  }

  .kai-rinkou-contact__description {
    font-size: 16px;
  }
}