@charset "utf-8";

:root {
  --ink: #171717;
  --muted: #666;
  --line: #eee;
  --indigoblue: #1a237e;
  --chip: #f6f6f6;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .06)
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-left: 0;
    padding-right: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 16px)
}

.row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap
}

.muted {
  color: var(--muted)
}


/*******************************************************
front-page.php #hero
*******************************************************/
.hero {
  position: relative;
  background: #000;
  color: #fff;
  display: flex;
  /* place-items: center; */
  height: 70vh;
  min-height: 400px;
  align-items: center;
  justify-content: flex-start;
}

.hero .hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.hero .hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero .hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  object-position: center;

}

.hero .hero-slider .slide.is-active {
  opacity: 1
}

.hero__pagination {
  position: absolute;
  inset: auto 0 24px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3
}

.hero__dot {
  width: 8px;
  height: 8px;
  /* border-radius: 50%; */
  background: rgba(255, 255, 255, .5);
  border: none;
}

.hero__dot.is-active {
  background: #fff
}

.hero__center {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: 92%;
  padding: 0 4%;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1200px;
  justify-content: start;
  /* text-align: right; */
}

.hero__center {
  font-size: clamp(12px, 2vw, 18px);
}

.hero__center h2 {
  letter-spacing: 0.15em;
  line-height: 2em;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
}

.hero__center p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  /* text-align: right !important; */
}

.hero__side {
  position: absolute;
  bottom: 50px;
  right: 150px;
  padding: 20px;
  background: linear-gradient(90deg, rgba(147, 198, 76, .7), rgba(0, 104, 182, .7));
  border-radius: 99999px;
  text-align: center;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__side p {
  text-align: center !important;
  line-height: 1.5em;
  margin-bottom: 0;
}

.side-menu {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  color: #fff;
  z-index: 2
}

.side-menu ul {
  display: grid;
  gap: 8px
}

.side-menu a {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: 13px
}

@media (min-width:1024px) {
  .side-menu {
    display: block
  }

  .hero {
    min-height: 250px;
  }
}


@media screen and (max-width:767.98px) {
  .hero {
    height: 85vh;
  }

  .hero__side {
    right: 20px;
    padding: 5px;
  }

  .hero__side p {
    font-size: 11px;
    margin-bottom: 0;
  }

  .hero__center {
        position: absolute;
    top: 20vh;
  }
}

@media screen and (min-width:768px) and (max-width:1023.98px) {
  .hero__side {
    right: 50px;
    bottom: 50px;
    padding: 5px;
  }

  .hero__side p {
    font-size: 12px;
    margin-bottom: 0;
  }
}

/*-----------元のやつ----------------*/
.top-company__box {
  display: grid;
  gap: 70px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.top-company__box .inner-right {
  width: 100%;
  aspect-ratio: 1.5/1;
}

.top-company__box .inner-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-company__box .inner-left p {
  line-height: 1.8em;
}


@media screen and (max-width:768px) {
  .top-company__box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 16px;
  }
}



/*******************************************************
front-page.php #about
*******************************************************/
.about {
  position: relative;
  overflow: hidden;

}

.about .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .15;
}

.about .veil {
  position: absolute;
  inset: auto 0 0 0;
  top: 18%;
  height: 56%;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(2px)
}

.about__inner {
  position: relative;
  z-index: 2
}

.about__h {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--indigoblue);
  /* letter-spacing: 0.1em; */
}

.about__p {
  /* max-width: 80ch; */
  color: #333;
  letter-spacing: 0.05em;
  /* margin-left: 20ch; */
  line-height: 2em;
  align-items: center;
  /* max-width: 960px; */
  margin: 0 auto;
  /* padding: 0 20px; */
}

.about__side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .2em;
  color: #333;
  font-weight: 700
}

.about__layout {
  /* display:grid;
     grid-template-columns:auto 1fr;
     gap:26px; */

}

@media (max-width:900px) {
  .about__layout {
    display: grid;
    gap: 0;
  }

  .about__side {
    writing-mode: horizontal-tb;
    transform: none;
    order: -1
  }

  .about__p {
    max-width: 100%;
    margin-left: 0;
    padding: 0;
    box-sizing: border-box;
  }
}


/* =============================================
 front-page.php   Service 
 ============================================= */
.top-service__box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.top-service__inner a {
  position: relative;
  width: 100%;
  display: grid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;
  /* background: linear-gradient(90deg, rgba(147, 198, 76, .7), rgba(0, 104, 182, .7)); */
  background-color: rgb(243, 243, 243);
  aspect-ratio: 1 / 1.2;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .15);
  grid-template-rows: 1fr 50px;
  grid-template-columns: 1fr;
}

.top-service__inner img {
  width: 60%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 99999px;
  object-fit: cover;
  margin: 0 auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.top-service__inner a p.obi {
  background-color: var(--cp-color);
  padding: 10px 5px;
  text-align: center !important;
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-bottom: 0;
  line-height: 1.5em;
}

/*hoverした時*/
.top-service__inner a:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .45);
}

.top-service__inner a:hover p.obi {
  background: linear-gradient(90deg, rgba(147, 198, 76, .99), rgba(0, 104, 182, .99));
}

.top-service__inner a:hover img {
  opacity: 0.5;
  transform: scale(1.1);
  /* 少し拡大 */
}

/*　カテゴリーごとの画像なしver　*/
.top-service__photo {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 350px;
}

.top-service__photo_right {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.top-service__photo_right img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

#top-service a.c-btn {
    margin-top: 30px;
    display: block;
    border: 1px solid var(--cp-color);
    padding: 15px;
    color: var(--cp-color);
    text-decoration: none;
    text-align: center;
    max-width: 250px;
    margin: 30px auto;
}

/* 画像無しverの時のみセンタリング無し */
#top-service .top-service__photo a.c-btn {
  margin: 30px 0;
}

#top-service a.c-btn:hover {
  color: #fff;
  border-color: #fff;
}

@media screen and (min-width:768px) and (max-width:1023.98px) {
  .top-service__box {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-service__inner a {
    aspect-ratio: 1/1.0;
  }
}

@media screen and (min-width:426px) and (max-width:767.98px) {
  .top-service__box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width:425px) {
  .top-service__box {
    grid-template-columns: 1fr;
  }

  .top-service__inner a {
    grid-template-rows: 1fr 40px;
    aspect-ratio: 1/1.05;
  }

  .top-service__inner a p {
    font-size: 14px;
  }
}

@media screen and (max-width:768px) {
  .top-service__photo {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
}


/* =============================================
  front-page.php company/recruit
============================================= */

.top-features__inner {
  width: var(--container, min(1100px, calc(100% - 40px)));
  margin-inline: auto;
  display: grid;
  gap: 26px;
}

.featureBlock {
  padding: 0 !important;
}

/* containerの幅制限を外す */
.top-features__inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  gap: 40px;
}

/* ---------- 共通ブロック ---------- */
.featureBlock {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 320px;
}

/* 画像は端いっぱい */
.featureBlock__media {
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* aspect-ratio: 16/9; */
}

.featureBlock__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* テキスト側 */
.featureBlock__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8%;
  color: #fff;
  /* background: rgb(228, 230, 253); */
  background: var(--arch-bg);
  position: relative;
  z-index: 3;
}

.featureBlock a.c-btn {
  border: 1px solid #fff;
  padding: 10px;
  display: block;
  text-decoration: none;
  text-align: center;
  color: #fff;
  max-width: 15em;
}

/* ---------- 上段：会社概要
   左テキスト / 右画像
--------------------------- */
.featureBlock--company {
  grid-template-columns: 2fr 2fr;
}

.featureBlock--company .featureBlock__body {
  order: 1;
}

.featureBlock--company .featureBlock__media {
  order: 2;
}

/* ---------- 下段：採用情報
   左画像 / 右テキスト
--------------------------- */
.featureBlock--recruit {
  grid-template-columns: 2fr 2fr;
}

.featureBlock--recruit .featureBlock__media {
  order: 1;
}

.featureBlock--recruit .featureBlock__body {
  order: 2;
}


/* =========================
   アーチ境界（手描き風）
========================= */

.featureBlock {
  --arch-size: 320px;
  --arch-x: 0.90;
  --arch-bg: linear-gradient(rgb(147, 198, 76) 0%,
      rgb(0, 104, 182) 100%);
}

/* 画像側にアーチカット */
.featureBlock__media::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--arch-size) * var(--arch-x));
  /* 横だけ短く */
  height: var(--arch-size);
  /* background:rgb(228, 230, 253); */
  background: var(--arch-bg);
  border-radius: 140px;
  z-index: 5;
  pointer-events: none;
}

/* 上段（会社概要）→ 右が画像 → 左側に食い込ませる */
.featureBlock--company .featureBlock__media::after {
  left: calc(var(--arch-size) * -0.50);
}

/* 下段（採用情報）→ 左が画像 → 右側に食い込ませる */
.featureBlock--recruit .featureBlock__media::after {
  right: calc(var(--arch-size) * -0.50);
}


/* =========================
   SP
========================= */

@media (max-width:767.98px) {

  .top-features__inner {
    gap: 0;
  }

  .featureBlock {
    grid-template-columns: 1fr;
    min-height: auto;
    height: 100%;
  }

  .featureBlock__media {
    aspect-ratio: 2 / 1;
  }

  .featureBlock__body {
    padding: 40px 20px;
  }

  /* SPは下側アーチ */
  .featureBlock__media::after {
    display: none;
  }

  .featureBlock--company .featureBlock__body {
    grid-area: company-body;
  }

  .featureBlock--company .featureBlock__media {
    grid-area: company-media;
  }

  .featureBlock--company {
    grid-template-areas: "company-media"
      " company-body";
  }
}

/* ==================================================
  front-page.php  ふるさと納税
================================================== */

.top-furusato {
  padding: 0!important;
}

.top-furusato a {
  display: block;
  margin: 0 auto;
  width:100%;
}

.top-furusato a img {
  width: 100%;
}

.top-furusato a:hover {
  opacity: 0.5;
}

/* ==================================================
  front-page.php  TOP NEWS
================================================== */

.top-news {
  padding: 80px 0;
  background: #fff;
}

.top-news__inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- ヘッダー ---- */
.top-news__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.top-news__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.top-news__more {
  font-size: 14px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  position: relative;
}

.top-news__more::after {
  content: "›";
  margin-left: 6px;
}

/* ---- リスト ---- */

.top-news__list {
  border-top: 1px solid #e5e7eb;
}

.newsRow {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: background .2s ease;
}

.newsRow:hover {
  background: rgba(0, 0, 0, .02);
}

/* 日付 */
.newsRow__date {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* ラベル */
.newsRow__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  background: #2b2f7f;
  color: #fff;
  white-space: nowrap;
}

/* タイトル */
.newsRow__link {
  text-decoration: none;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  transition: color .2s ease;
}

.newsRow__link:hover {
  color: var(--cp-green);
}

/* 空メッセージ */
.top-news__empty {
  padding: 24px 0;
  color: #666;
  font-size: 14px;
}


.top-news__more {
  display: block;
  border: 1px solid #333;
  padding: 10px;
  color: #333;
  font-size: 20px;
  margin: 50px auto;
  width: 200px;
  text-align: center;
  font-weight: normal;
}

/* =========================
   SP
========================= */

@media (max-width: 768px) {

  .newsRow time {
    grid-area: time;
  }

  .newsRow span {
    grid-area: cat-tag;
  }

  .newsRow a {
    grid-area: link;
  }

  .top-news {
    padding: 60px 0;
  }

  .newsRow {
    grid-template-columns: 80px 1fr;
    grid-template-areas: "time cat-tag" "link link";
    gap: 8px;
    padding: 16px 0;
  }

  .newsRow__date {
    order: 1;
  }

  .newsRow__tag {
    order: 2;
    width: fit-content;
  }

  .newsRow__link {
    order: 3;
    font-size: 14px;
  }

  .top-news__head {
    margin-bottom: 20px;
  }

  .top-news__title {
    font-size: 18px;
  }

}
