/* =========================================
   Top Page Styles
   style.css ver 2.3.1
   目的：TOPページ固有の見た目のみ（共通は common.css へ）
========================================= */

/* CHANGELOG
  2.3.1: Hero右下に画像ボタン（recrute_button.png）を配置
  2.3.0: 既存
*/

/* =========================
   Hero（TOP用：ヘッダーを除いて画面いっぱい）
========================= */

.hero {
  position: relative;
  height: calc(100vh - 107px); /* ヘッダー高さぶん引く */
  min-height: 520px;           /* 画面が低い環境でもそれなりの高さを確保 */
  overflow: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero_main.png") center center / cover no-repeat;
}

.hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 861px;
  max-width: 90%;
}

.hero__card img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   Hero CTA（画像ボタン）
========================= */

.hero__cta {
  position: absolute;
  right: 40px;
  bottom: 34px;
  z-index: 5;
}

/* 通常状態：影あり */
.hero__cta-link {
  display: inline-block;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* 画像本体 */
.hero__cta-img {
  display: block;
  width: 100%;
  height: 80px;
  transition: opacity 0.2s ease;
}

/* hover：影を消して半透明 */
.hero__cta-link:hover {
  box-shadow: none;
  transform: translateY(0); /* 位置は固定 */
}

.hero__cta-link:hover .hero__cta-img {
  opacity: 0.7;
}

/* focus */
.hero__cta-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* =========================
   Hero 左下：ドライバー急募バッジ
   目的：heroに半分かかる視覚フック
========================= */

.hero__badge {
  position: absolute;
  left: 40px;
  bottom: -60px; /* ← 半分はみ出させる肝 */
  z-index: 6;

  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__badge img {
  display: block;
  width: 260px;
  height: auto;
}

/* hover */
.hero__badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  opacity: 0.8;
}

/* focus（A11y） */
.hero__badge:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}



/* =========================================
   Features：宮下工務店の3つの特徴
========================================= */

.section--features {
  background: var(--c-bg);
  padding-top: 100px;
  padding-bottom: 140px;
}

.features {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 48px;
  align-items: flex-start;
}

.features__side {
  padding-top: 0;
}

.features__stripe {
  width: 80px;
}

.features__main {
  display: grid;
  /* 固定pxではなく比率に変更 */
  grid-template-columns: 1fr 1.5fr 1.5fr; 
  column-gap: 0;
  width: 100%; /* 親要素に合わせる */
}

.features__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features__col--left {
  padding-top: 130px;
}

.features__title-img {
  display: block;
  margin-bottom: 32px;
}

.features__lead {
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.9;
  max-width: 335px;
  text-align: left;
}

.features__col--center {
  padding-top: 60px;
}

.feature-item {
  font-size: 14px;
}

.feature-item__img {
  max-width: 260px;
  margin-inline: auto;
}

.feature-item__img img {
  width: 100%;
  height: auto;
}

.feature-item__text {
  margin: 10px 0 0;
  max-width: 340px;
}

.feature_experience {
  margin-bottom: 120px;
}

.features__col--right {
  justify-content: center;
}


/* =========================================
   Formwork：型枠工事とは
========================================= */

.section--formwork {
  background: var(--c-white);
}

.formwork {
  display: grid;
  grid-template-columns: 1fr 345px;
  column-gap: 80px;
  align-items: center;
}

.section-kicker {
  font-size: 12px;
  color: var(--c-gray);
  margin: 0 0 12px;
}

.section-kicker span {
  margin-left: 4px;
}

.formwork__text {
  font-size: 14px;
  margin: 0 0 14px;
}

.formwork__right .img-wave {
  width: 100%;
}


/* =========================================
   Craftsman：職人
========================================= */

.section--craftsman {
  background: var(--c-bg);
}

.craftsman {
  display: grid;
  grid-template-columns: 345px minmax(0, 1fr);
  column-gap: 80px;
  align-items: center;
}

.craftsman__title-img {
  max-width: 260px;
  margin-bottom: 24px;
}

.craftsman__text {
  font-size: 14px;
  margin: 0 0 16px;
}

.craftsman__right .img-wave {
  width: 100%;
}


/* =========================================
   Greeting & Company：代表挨拶 / 会社概要
========================================= */

.section--panels {
  padding: 80px 0;
  background-color: #f5f8fa;
}

.panels {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
}

.panel {
  position: relative;
  flex: 0 0 50%;
  height: 604px;
  overflow: hidden;
  color: #fff;
}

.panel_recruit {
  position: relative;
  flex: 0 0 50%;
  height: 400px;
  overflow: hidden;
  color: #fff;
}

.panel + .panel {
  margin-left: 0;
}

.panel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.panel--greeting .panel__overlay {
  background: rgba(0, 180, 133, 0.55);
}

.panel--company .panel__overlay {
  background: rgba(0, 132, 180, 0.55);
}

.panel__overlay--blue {
  background: rgba(3, 52, 145, 0.6);
}

.panel__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 80px 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 1.9em;
}

.panel__body_recruit {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  font-size: 1.8em;
}


/* =========================================
   News
========================================= */

.section--news {
  background: var(--c-white);
  padding: 20px 0 60px 0;
}

.news__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

.news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
}

.news__list li {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}

.news__date {
  min-width: 90px;
  color: var(--c-gray);
  font-variant-numeric: tabular-nums;
}


/* =========================================
   Activity report
========================================= */

.section--activity {
  background: var(--c-bg);
}

.activity {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.activity__bg {
  width: 100%;
  height: 370px;
  object-fit: cover;
}

.activity__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  color: #fff;
  text-align: center;
  font-size: 1.5em;
}

.activity__title {
  margin: 0 0 16px;
}


/* =========================
  Activity Report（BLOG導線）
  Mobile-first / BEM
========================= */

.section--activity {
  /* 既存の背景に合わせて調整OK（添付っぽい淡い水色） */
  padding-top: 56px;
  padding-bottom: 64px;
}

.activity-report__head {
  text-align: center;
  margin-bottom: 28px;
}

.activity-report__title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.activity-report__title::after {
  content: "";
  display: block;
  width: min(620px, 88%);
  height: 1px;
  margin: 14px auto 0;
  background: rgba(0, 0, 0, 0.35);
}

.activity-report__subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.75);
}

/* grid */
.activity-report__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

/* card */
.activity-report__card {
  background: transparent;
}

.activity-report__link {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.activity-report__figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.activity-report__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.activity-report__link:hover .activity-report__img {
  transform: scale(1.03);
}

.activity-report__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.activity-report__card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.activity-report__date {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.activity-report__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
  word-break: break-word;
}

/* actions */
.activity-report__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

/* 既存btnが無い/弱い場合の保険（btn--outlineが無ければ効く） */
.btn.btn--outline {
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* breakpoints */
@media (min-width: 768px) {
  .activity-report__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .activity-report__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
  }
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 960px) {
  

  /* Hero（TOP） */
  .hero {
    width: 100%;
    position: relative;
    left: 0;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
  }

  .hero__inner {
    position: absolute;
    inset: 0;
  }

  .hero__card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 420px;
  }

  /* Hero CTA（モバイル） */
  .hero__cta {
    right: 16px;
    bottom: 16px;
  }

  .hero__cta-img {
    width: 260px;
    height: auto;
  }

  /* Hero 左下バッジ（モバイル） */
.hero__badge {
  left: 16px;
  bottom: -40px;
}

.hero__badge img {
  width: 180px;
}


  /* Features */
  .section--features {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .features {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .features__side {
    display: none;
  }

  .features__stripe {
    width: 60px;
  }

  .features__main {
    width: 100%;
    grid-template-columns: 1fr;
    row-gap: 60px;
  }

  .features__col--left {
    padding-top: 0;
    align-items: center;
    text-align: center;
  }

  .features__head {
    margin-bottom: 24px;
  }

  .features__title-img {
    max-width: 280px;
    margin-inline: auto;
  }

  .features__lead {
    max-width: 100%;
    font-size: 13px;
    text-align: center;
  }

  .features__col--center {
    padding-top: 0;
    gap: 60px;
    align-items: center;
  }

  .feature_experience {
    margin-bottom: 0;
  }

  .feature-item__img {
    max-width: 200px;
  }

  .feature-item__text {
    max-width: 280px;
    font-size: 13px;
    text-align: center;
  }

  .features__col--right {
    align-items: center;
  }

  /* Formwork */
  .section--formwork {
    padding: 60px 0;
  }

  .formwork {
    grid-template-columns: 1fr;
    row-gap: 32px;
    grid-template-areas:
      "left"
      "right";
  }

  .formwork__left {
    grid-area: left;
    text-align: center;
  }

  .formwork__left .section-kicker {
    text-align: center;
  }

  .formwork__left .craftsman__title-img {
    margin-inline: auto;
  }

  .formwork__right {
    grid-area: right;
  }

  .formwork__text {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Craftsman */
  .section--craftsman {
    padding: 60px 0;
  }

  .craftsman {
    grid-template-columns: 1fr;
    row-gap: 32px;
    text-align: center;
  }

  .craftsman .section-kicker {
    text-align: center;
  }

  .craftsman__title-img {
    max-width: 220px;
    margin-inline: auto;
  }

  .craftsman__text {
    font-size: 13px;
  }

  /* Panels */
  .section--panels {
    padding: 60px 0;
  }

  .panels {
    flex-direction: column;
    gap: 20px;
  }

  .panel {
    height: 400px;
  }

  .panel__body {
    padding: 40px 24px;
    font-size: 1.5em;
  }

  /* Recruit */
  .section--recruit {
    padding: 60px 0;
  }

  .panel_recruit {
    height: 320px;
  }

  .panel__body_recruit {
    padding: 32px 24px;
    font-size: 1.5em;
  }

  /* News */
  .section--news {
    padding: 60px 0;
  }

  .news__list li {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }

  .news__date {
    min-width: auto;
  }

  /* Activity */
  .section--activity {
    padding: 60px 0;
  }

  .activity__bg {
    height: 300px;
  }

  .activity__body {
    font-size: 1.2em;
  }
}


/* =========================
   HERO モバイル：ボタン整理
========================= */
@media (max-width: 767px) {

  /* hero内で切れないように下の余白を確保 */
  .hero {
    padding-bottom: 120px;
    overflow: visible; /* 念のため（親で切れるのを防ぐ） */
  }

  /* 急募バッジ：半分サイズ＆hero内に収める */
  .hero__badge {
    left: 16px;
    bottom: 12px;      /* ← マイナス禁止 */
    z-index: 10;
  }

  .hero__badge img {
    width: 130px;
    height: auto;
  }

  /* 採用情報ボタン：右に横並び */
  .hero__cta {         /* 実際のクラス名に合わせてここを使う */
    position: absolute;
    left: 160px;
    bottom: 22px;
    z-index: 10;
  }
}


/* =========================================
   News セクション：ボタン位置調整
========================================= */
.news__footer {
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    margin-top: 30px;          /* 上の余白 */
    padding: 0 15px;           /* 画面端との微調整 */
}

/* スマホ表示（767px以下）の時は中央に寄せる */
@media screen and (max-width: 767px) {
    .news__footer {
        justify-content: center;
        margin-top: 24px;
    }
}
