/**
 * Design Override - 株式会社テンプレート
 * SCSSリビルド不要でデザイン差分を適用
 */

/* ===================================================
   KV: プレースホルダー <img> を <picture> と同等に扱う
   =================================================== */
.kv_bg img.kv_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.kv_bg img.kv_img.active {
  opacity: 1;
  z-index: 1;
}

/* ===================================================
   ヘッダー: pill shape 解除 → フラットヘッダー
   =================================================== */
header {
  border-radius: 0 !important;
  box-shadow: 0 1px 0 rgba(26, 92, 58, 0.15);
}
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #1a5c3a 30%, #7abf9e 70%, transparent 100%);
  pointer-events: none;
}

/* ===================================================
   ボタン: pill 形状に変更
   =================================================== */
.btn_a a,
.btn_a button {
  border-radius: 100px !important;
  border-color: #1a5c3a !important;
  letter-spacing: 0.1em;
}
.btn_a a::before,
.btn_a button::before {
  border-radius: 100px;
}
.btn_a a::after,
.btn_a button::after {
  border-radius: 100px;
}
.btn_c a {
  border-radius: 100px;
}

/* ===================================================
   セクション見出し h2_a: 左アクセントライン追加
   =================================================== */
.h2_a {
  padding-left: 20px;
  border-left: 4px solid #1a5c3a;
  position: relative;
}
/* philosophy / recruit セクション内では白いアクセントラインに */
.home_philos .h2_a,
.home_recruit .h2_a {
  border-left-color: rgba(255, 255, 255, 0.6);
}

/* ===================================================
   オープニング画面: グリーン背景 + 白ロゴ
   =================================================== */
.opening {
  background-color: #1a5c3a !important;
}
.opening .txt img {
  filter: brightness(0) invert(1);
  max-width: 300px;
}

/* ===================================================
   フッター: 上部アクセントボーダー
   =================================================== */
footer {
  border-top: 3px solid #1a5c3a;
  margin-top: 80px;
}

/* ===================================================
   ニュースセクション KV下: アクセントカラー
   =================================================== */
.home_news {
  border-left: 3px solid #1a5c3a;
}
.home_news .h2_home_news {
  font-size: 26px;
  letter-spacing: 0.15em;
}

/* ===================================================
   philosophy セクション: 上部に斜めライン装飾
   =================================================== */
.home_philos {
  position: relative;
  overflow: hidden;
}
.home_philos::before {
  display: none; /* 元の横線を非表示 */
}
.home_philos .inner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(122, 191, 158, 0.25);
  border-radius: 50%;
  pointer-events: none;
}
.home_philos .inner::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(122, 191, 158, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

/* ===================================================
   リクルートセクション
   =================================================== */
.home_recruit {
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
  margin-top: 180px;
  padding-top: 110px;
}

/* ===================================================
   代表メッセージ: 右側の仮画像を枠付きに
   =================================================== */
.home_message .right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 8px 8px 0 #7abf9e;
}

/* ===================================================
   about ページ: セクション画像
   =================================================== */
.about-content .sec1 .flex .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ===================================================
   ヘッダーロゴ: SVGサイズ調整
   =================================================== */
header .logo img {
  height: 36px;
  width: auto;
}
footer .logo img {
  height: 30px;
  width: auto;
  opacity: 0.85;
}
.opening .txt img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ===================================================
   NEWSタイトル: 折り返し防止
   =================================================== */
.news_home .box .title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.news_home .box .flex {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.news_home .box .date {
  flex-shrink: 0;
  white-space: nowrap;
}
.news_home .box .cat_c {
  flex-shrink: 0;
}

/* ===================================================
   会社概要ページ
   =================================================== */
.about_intro {
  margin-bottom: 60px;
}
.about_intro p {
  font-size: 16px;
  line-height: 2;
  color: #444;
}
.about_overview,
.about_access {
  margin-bottom: 80px;
}
.about_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.about_table tr:first-child th,
.about_table tr:first-child td {
  border-top: 2px solid #1a5c3a;
}
.about_table th,
.about_table td {
  padding: 18px 24px;
  border-bottom: 1px solid #e0e8e4;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.8;
}
.about_table th {
  width: 200px;
  background: #f4f8f6;
  font-weight: 700;
  color: #1a5c3a;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .about_table th,
  .about_table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
  .about_table th {
    border-bottom: none;
    padding-bottom: 6px;
  }
}
.about_map {
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
}
.about_map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
.about_access_info {
  margin-top: 24px;
}
.about_access_info .row {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #e0e8e4;
  font-size: 15px;
}
.about_access_info dt {
  width: 100px;
  flex-shrink: 0;
  font-weight: 700;
  color: #1a5c3a;
}
.about_access_info dd {
  color: #444;
}

/* ===================================================
   採用情報ページ
   =================================================== */
.recruit_message_block {
  margin-bottom: 80px;
}
.recruit_msg_flex {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}
.recruit_msg_text {
  flex: 1;
}
.recruit_msg_text p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
  color: #444;
}
.recruit_msg_img {
  width: 420px;
  flex-shrink: 0;
}
.recruit_msg_img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 8px 8px 0 #7abf9e;
}
@media (max-width: 900px) {
  .recruit_msg_flex {
    flex-direction: column;
  }
  .recruit_msg_img {
    width: 100%;
  }
}
.recruit_jobs_block {
  margin-bottom: 80px;
}
.recruit_job_item {
  margin-top: 40px;
  background: #fff;
  border: 1px solid #d8e8e0;
  border-radius: 12px;
  overflow: hidden;
}
.recruit_job_title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: #1a5c3a;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.recruit_job_title span {
  font-size: 12px;
  font-weight: 400;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.recruit_job_table {
  width: 100%;
  border-collapse: collapse;
}
.recruit_job_table th,
.recruit_job_table td {
  padding: 14px 24px;
  border-bottom: 1px solid #e0e8e4;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.8;
}
.recruit_job_table th {
  width: 140px;
  background: #f4f8f6;
  font-weight: 700;
  color: #1a5c3a;
  white-space: nowrap;
}
.recruit_job_table tr:last-child th,
.recruit_job_table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  .recruit_job_table th,
  .recruit_job_table td {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }
  .recruit_job_table th {
    border-bottom: none;
    padding-bottom: 4px;
  }
}
.recruit_flow_block {
  margin-bottom: 80px;
}
.recruit_flow_list {
  display: flex;
  list-style: none;
  padding: 0;
  margin-top: 32px;
  gap: 0;
  counter-reset: none;
}
.recruit_flow_list li {
  flex: 1;
  text-align: center;
  padding: 32px 16px;
  background: #f4f8f6;
  position: relative;
}
.recruit_flow_list li + li {
  border-left: 1px solid #d8e8e0;
}
.recruit_flow_list li + li::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 12px solid #1a5c3a;
  z-index: 1;
}
.recruit_step_num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #1a5c3a;
  font-family: 'Georgia', serif;
  line-height: 1;
  margin-bottom: 10px;
}
.recruit_step_name {
  font-size: 15px;
  font-weight: 700;
  color: #1a5c3a;
  margin-bottom: 8px;
}
.recruit_step_desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .recruit_flow_list {
    flex-direction: column;
  }
  .recruit_flow_list li + li {
    border-left: none;
    border-top: 1px solid #d8e8e0;
  }
  .recruit_flow_list li + li::before {
    display: none;
  }
}
.recruit_cta_block {
  text-align: center;
  padding: 60px 40px;
  background: #f4f8f6;
  border-radius: 12px;
  margin-bottom: 40px;
}
.recruit_cta_block p {
  font-size: 16px;
  margin-bottom: 24px;
  color: #444;
}
.recruit_cta_block .btn_a {
  display: inline-block;
}

/* ===================================================
   事業内容ページ
   =================================================== */
.business_intro {
  margin-bottom: 60px;
}
.business_intro p {
  font-size: 16px;
  line-height: 2;
  color: #444;
}
.business_services {
  margin-bottom: 40px;
}
.business_item {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid #e0e8e4;
}
.business_item:last-child {
  border-bottom: none;
}
.business_item_inner {
  display: flex;
  gap: 60px;
  align-items: center;
}
.business_item--reverse .business_item_inner {
  flex-direction: row-reverse;
}
.business_item_text {
  flex: 1;
}
.business_item_img {
  width: 400px;
  flex-shrink: 0;
}
.business_item_img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 8px 8px 0 #7abf9e;
}
.business_item_num {
  font-size: 48px;
  font-weight: 700;
  color: #e0e8e4;
  font-family: 'Georgia', serif;
  line-height: 1;
  margin-bottom: 8px;
}
.business_item_title {
  font-size: 22px;
  font-weight: 700;
  color: #1a5c3a;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e8e4;
}
.business_item_lead {
  font-size: 15px;
  font-weight: 700;
  color: #555;
  margin-bottom: 16px;
}
.business_item_text > p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 20px;
}
.business_item_list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.business_item_list li {
  font-size: 13px;
  padding: 6px 14px;
  background: #f4f8f6;
  border: 1px solid #d8e8e0;
  border-radius: 100px;
  color: #1a5c3a;
}
@media (max-width: 900px) {
  .business_item_inner,
  .business_item--reverse .business_item_inner {
    flex-direction: column;
  }
  .business_item_img {
    width: 100%;
  }
}
.business_cta {
  text-align: center;
  padding: 60px 40px;
  background: #f4f8f6;
  border-radius: 12px;
  margin-bottom: 40px;
}
.business_cta p {
  font-size: 16px;
  margin-bottom: 24px;
  color: #444;
}
.business_cta .btn_a {
  display: inline-block;
}

/* ===================================================
   スクロールアニメーション: 緑のアンダーライン
   =================================================== */
.home_philos .philos_title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #7abf9e;
  margin: 16px auto 0;
}
