/*
 * Home Page Specific Styles
 * Styles for sections on the front page
 */

/* コンセプトセクション */
.concept-section {
  padding: 100px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.concept-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.concept-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 0 clamp(2.5rem, -0.714rem + 14.29vw, 10rem) 0 0;
}

.text-content-wrapper {
  display: flex;
  width: 50%;
  gap: 50px;
  flex-direction: row-reverse;
  justify-content: center;
}

/* 事業内容セクション */
.service-section {
  padding: 140px 0;
  background-color: #ECE8D9;
  overflow: hidden;
}

.service-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.service-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: clamp(2.5rem, -0.714rem + 14.29vw, 10rem) 0 0 0;
}

/* 縦書きクラス共通スタイル */
.vertical-writing {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin: 0;
  line-height: 1.6;
}

/* 縦書きタイトル (共通) */
.section-title.vertical-writing {
  margin: 0;
  width: auto;
  /* 自動幅 */
  font-size: 32px;
  line-height: 1.6;
  color: #333;
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: left;
}

/* 縦書き本文テキスト (共通) */
.concept-text.vertical-writing,
.service-text.vertical-writing {
  margin: 0;
  width: auto;
  /* 自動幅 */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.concept-text.vertical-writing p,
.service-text.vertical-writing p {
  margin-bottom: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  color: #333;
}

/* 採用情報セクション */
.recruit-section {
  padding: 100px 0 140px;
  /* 下のpaddingを増やす */
  background-color: #ffffff;
}

.recruit-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.recruit-image-area {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.recruit-image-area::before,
.recruit-image-area::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.recruit-image-area::before {
  left: 0;
  background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}

.recruit-image-area::after {
  right: 0;
  background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}

.recruit-image {
  width: clamp(18.75rem, 13.393rem + 23.81vw, 31.25rem);
  object-fit: cover;
  flex-shrink: 0;
}

.recruit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.recruit-content .section-title.vertical-writing {
  font-size: 48px;
  font-weight: 500;
  height: auto;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0;
}

.recruit-text {
  margin-bottom: 0;
}

.recruit-text p {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.885rem + 0.51vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: #333;
}

/* ニュースセクション */
.news-section {
  padding: 60px 0;
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.news-title-wrapper {
  position: relative;
}

.news-items {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item-header {
  display: flex;
  align-items: center;
  gap: 25px;
}

.news-date {
  font-family: Segoe UI, sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #333;
}

.news-category {
  display: inline-block;
  padding: 4px 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #000;
  border: 1px solid #000;
}

.news-item-title {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #333;
}

/* ニュースアイテムの下線 */
.news-item-divider {
  width: 100%;
  height: 1px;
  background-color: #000;
  transition: background-color 0.3s;
}

/* =============================================
 * ニュース一覧リンク 色変化トランジション
 * @仕様: 色・枠線・背景色が0.3秒かけて変化
 * @対象: .news-item-title, .news-date, .news-category, .news-item-divider
 * ============================================= */
.news-item-title,
.news-date {
  transition: color 0.3s;
}

.news-category {
  transition: color 0.3s, border-color 0.3s;
}

/* =============================================
 * ニュース一覧リンク ホバー時の色変更
 * @仕様: ホバー時にテキスト色・枠線色を #1FAF38 に変更
 * @対象: .news-item-title, .news-date, .news-category, .news-item-divider
 * @制限事項: 背景色は変更しない
 * ============================================= */
.news-item-link:hover .news-item-title,
.news-item-link:hover .news-date {
  color: #1FAF38;
}

.news-item-link:hover .news-category {
  color: #1FAF38;
  border-color: #1FAF38;
}

.news-item-link:hover .news-item-divider {
  background-color: #1FAF38;
}

/* SNSセクション */
.sns-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.sns-content {
  max-width: 1124px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.sns-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instagram-icon {
  width: 30px;
  height: 30px;
  background-color: #12B1D4;
}

.sns-title {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #12B1D4;
}

.instagram-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  /* ここに具体的なフィードアイテムのスタイルが必要なら追加 */
}

.instagram-item {
  width: 300px;
  height: 300px;
  background-color: #F0F0F0;
}

/* PCデバイスのみのホバーエフェクト */
@media (hover: hover) and (pointer: fine) {

  /* ニュース一覧リンク ホバー時の色変更 */
  .news-item-link:hover .news-item-title,
  .news-item-link:hover .news-date {
    color: #1FAF38;
  }

  .news-item-link:hover .news-category {
    color: #1FAF38;
    border-color: #1FAF38;
  }

  .news-item-link:hover .news-item-divider {
    background-color: #1FAF38;
  }
}

/* タッチデバイス用の無効化 */
@media (hover: none) {

  .news-item-link:hover .news-item-title,
  .news-item-link:hover .news-date {
    color: #333;
  }

  .news-item-link:hover .news-category {
    color: #000;
    border-color: #000;
  }

  .news-item-link:hover .news-item-divider {
    background-color: #000;
  }
}

/* サブフッターセクションのスタイルは common.css に移動しました */