/* ホームページ専用。
   共通部分は css/styles.css にあります。トップページだけの見た目はこのファイルを編集します。 */

/* ファーストビューの画像とコピー */
/* .hero：トップページ最初のメインビジュアル全体です。 */

/* .lead：トップページ冒頭の説明文を読みやすい幅にします。 */
.lead {
  max-width: 700px;
  margin: 28px 0 34px;
  /*font-size: clamp(17px, 2vw, 22px);*/
}

/* トップページ各セクションの余白 */
/* .section：トップページ各ブロックの上下余白を決めます。 */
.section.services {
  padding: 62px clamp(20px, 5vw, 72px);
}

/* .section-head：各セクション見出しの幅と下余白を整えます。 */
.section-head {
  text-align: center;
}

@media (max-width: 768px) {

  /*.section.services {
    padding :0;
    margin: 0;
  }*/
  .section.news {
    padding: 0;
    margin: 0;
  }
  .section.services_1 {
    padding: 0;
  }
  .section.services {
    padding-bottom: 20px;
  }
}

/*@media (max-width: 768px) {

  .section {
    padding: 0px;
    margin: 0;
  }
}*/

.button-wrap {
  text-align: center;
  margin-top: 40px;
}

.section h2,
/* .recruit-band：採用情報への誘導エリアの見出しです。 */
.recruit-band h2,
/* .contact-band：お問い合わせへの誘導エリアの見出しです。 */
.contact-band h2 {
  margin: 0;
  /*font-size: clamp(32px, 4vw, 52px);*/
  line-height: 1.2;
  font-weight: 700;
}

/* News & Topics セクション */
/* .news：News & Topics全体の背景と余白を作ります。 */
.news {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.news::before {
  content: none;
}

.news-grid,
/* .notice-grid：旧お知らせカードを並べるためのグリッドです。 */
.notice-grid,
/* .notice-line-list：ISO認証・健康経営など注目情報を縦に並べます。 */
.notice-line-list,
/* .service-grid：事業案内カードを横並びにするグリッドです。 */
.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1080px;
  margin: 0 auto;
  gap: 22px;
}

.news-card,
.notice-card,
.service-grid article {
  background: rgba(255, 255, 255, 0);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.notice-card,
.service-grid article {
  padding: 24px;
}

.notice-card h3,
/* .notice-line-item：注目情報1件分のタイトル表示です。 */
.notice-line-item h3,
.service-grid h3 {
  margin: 0 0 12px;
  /*font-size: 20px;*/
  line-height: 1.45;
}

/*.notice-card p,
.notice-line-item p,
.service-grid p,
.contact-band p,
.recruit-band p {
  color: var(--muted);
}*/

/* 通常のお知らせ一覧 */
/* .news-reveal-list：通常のお知らせ3件を縦に並べる一覧です。 */
.news-reveal-list {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 24px auto 0;
}

.news>#news-title {
  max-width: 980px;
  margin: clamp(58px, 8vw, 92px) auto 0;
  /*font-size: clamp(24px, 3vw, 36px);*/
}

/* .news-reveal-item：通常のお知らせ1件分の画像と文章を並べます。 */
.news-reveal-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px) 0;
}

.news-reveal-item+.news-reveal-item {
  margin-top: clamp(20px, 4vw, 44px);
  border-top: 0;
}

.news-reveal-item+.news-reveal-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(-54px, -4vw, -20px);
  right: clamp(-54px, -4vw, -20px);
  height: 1px;
  background: #d7e1e9;
}

.news-reveal-item::after {
  content: none;
}

.news-reveal-item:nth-child(even) {
  grid-template-columns: 1fr minmax(220px, 32%);
}

.news-reveal-item:nth-child(even) .news-image-link {
  order: 2;
}

/* .news-image-link：お知らせ画像のクリック範囲と角丸を管理します。 */
.news-image-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 37, 57, .16);
}

.news-image-link img {
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .7s ease;
}

.news-image-link:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

/* .news-copy：お知らせのタイトル・本文・リンクをまとめます。 */
.news-copy h3 {
  max-width: 680px;
  margin: 0 0 12px;
  /*font-size: clamp(26px, 3.2vw, 44px);*/
  line-height: 1.14;
  letter-spacing: 0;
}

.news-copy p:not(.news-meta) {
  max-width: 560px;
  /*color: var(--muted);*/
  /*font-size: 15px;*/
}

.news-copy a:not(.news-image-link) {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
  /*font-size: 14px;*/
  text-decoration: none;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

.news-copy a:not(.news-image-link):hover {
  color: var(--blue-dark);
}

/* .news-meta：お知らせ内の補足ラベルを横並びで表示します。 */
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px !important;
  color: var(--muted);
  /*font-size: 12px;*/
  font-weight: 900;
}

.news-meta span {
  padding: 3px 8px;
  color: var(--blue);
  background: #eaf5fa;
  border: 1px solid #c9dfe9;
  border-radius: 4px;
}

.notice-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

/* 通常のお知らせより前に出す認証・健康経営情報 */
.notice-line-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(42px, 6vw, 72px);
  border-top: 0;
  column-gap: clamp(34px, 6vw, 84px);
}

.notice-line-item {
  position: relative;
  padding: 0;
  border-bottom: 0;
}

.notice-line-item+.notice-line-item {
  padding-left: 0;
  border-left: 0;
}

/*.notice-line-item h3 {
  font-size: clamp(22px, 2.4vw, 32px);
}*/

/* .certs：ISO認証ロゴを小さく整えて表示します。 */
.certs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 26px 0;
}

.certs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.certs a:hover {
  transform: translateY(-3px);
  opacity: .82;
}

.certs a:focus-visible {
  outline: 3px solid rgba(0, 166, 214, .24);
  outline-offset: 3px;
}

.cert-link-note {
  margin: -4px 0 14px !important;
  text-align: center;
}

.cert-link-note a {
  color: var(--blue);
  /*font-size: 13px;*/
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cert-link-note a:hover {
  color: var(--blue-dark);
}

.certs img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

/* .kenko：健康経営宣言ロゴを正方形で表示します。 */
.kenko {
  width: 138px;
  height: 138px;
  object-fit: contain;
  margin: 65px auto 18px;
}

.certs img,
.kenko {
  filter: drop-shadow(0 6px 14px rgba(6, 24, 39, .1));
}

/* トップページの事業案内セクション */
/* .services：トップページの事業案内セクションです。 */
.services {
  background: var(--white);
}

.service-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0;
}

.services .service-grid {
  position: relative;
  column-gap: 60px;
  /* ←追加 */
  row-gap: 0;
  background: none;
  border-top: 0;
}

.service-grid article {
  min-height: 180px;
  position: relative;
  overflow: hidden;
  padding: 34px 24px 24px;
  border-radius: 0;
}

.services .service-grid article {
  border-top: 0;
  border-bottom: 0;
}

.services .service-grid article::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #d7e1e9;
}

.service-grid article>span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cyan);
  /*font-size: 14px;*/
  font-weight: 900;
}

.services>.button {
  margin-left: calc((100% - min(1080px, 100%)) / 2);
}

.recruit-band,
/* トップページ下部のお問い合わせ誘導 */
.contact-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 620px) auto;
  align-items: center;
  gap: 30px;
  padding: 64px clamp(20px, 7vw, 96px);
  background:
    linear-gradient(135deg, rgba(8, 27, 44, .96), rgba(21, 83, 129, .96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px);
}



.section-label {
  font-size: 24px;
  color: #155381;
  font-weight: 700;
}

.recruit-band p,
.contact-band p {
  margin: 0;
  /*color: rgba(255, 255, 255, .84);*/
  /*font-size: 18px;*/
}


.contact-band {
  display: block;
  text-align: center;
  /*background: var(--bg);
  color: var(--ink);*/
  background: #c9dfe900;
}

.contact-band p {
  max-width: 720px;
  margin: 16px auto 26px;
  /*color: var(--muted);*/
}


/* スマホ時のトップページレイアウト */
@media (max-width: 900px) {

  .hero-media {
    clip-path: none;
  }

  .hero-media::before {
    content: none;
  }

  .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: cover;
    object-position: center right;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(7, 24, 40, .5), rgba(7, 24, 40, .68));
  }

  .hero::before {
    display: none;
  }



  .news-grid,
  .notice-grid,
  .notice-line-list,
  .service-grid,
  .recruit-band {
    grid-template-columns: 1fr;
    display: block;
  }

  .notice-line-item,
  .notice-line-item+.notice-line-item {
    padding-inline: 0;
    border-left: 0;
  }

  .notice-line-item+.notice-line-item {
    margin-top: 46px;
  }

  .services .service-grid::before {
    content: none;
  }

  .services .service-grid {
    background: none;
  }

  .services .service-grid article {
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .news-reveal-item,
  .news-reveal-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .news-image-link {
    width: min(100%, 360px);
  }

  .certs img {
    width: 118px;
    height: 118px;
  }

  .kenko {
    width: 124px;
    height: 124px;
  }

  .news-reveal-item:nth-child(even) .news-image-link {
    order: 0;
  }

  /*.news-copy h3 { font-size: clamp(28px, 9vw, 42px); }*/
  .recruit-band {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  /*.section {
    padding-block: 62px;
  }*/

  /*.hero h1 { font-size: 40px; }*/

  .news-image-link {
    width: min(100%, 280px);
  }
}


section.services {
  padding-bottom: 40px;
}

section.news {
  padding-top: 40px;
}

.button-center {
  text-align: center;
  margin-top: 30px;
}

/* ===================================
   News&Topicsへスクロールボタン
=================================== */

.scroll-to-news {

  position: absolute;

  left: 50%;
  bottom: 40px;

  width: 60px;
  height: 60px;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  color: #fff;
  font-size: 24px;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 10px 25px rgba(15, 23, 42, .35);

  transform: translateX(-50%);

  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    background .35s ease,
    box-shadow .35s ease;

  z-index: 9999;
}


/* ホバー */
@media (hover:hover) {

  .scroll-to-news:hover {

    background: linear-gradient(135deg, #2563eb, #1e3a8a);

    transform:
      translateX(-50%) translateY(-10px) scale(1.08) rotate(6deg);

    box-shadow:
      0 20px 40px rgba(15, 23, 42, .45);

  }

}


/* クリック */
.scroll-to-news:active {

  background-color: red;
  color: white;

  transform:
    translateX(-50%) translateY(-4px) scale(.96);

}


.section-divider {
  height: 0.1em;
  background: #d7e1e9;
  margin: 50px auto 0;
  position: relative;
}