@charset "UTF-8";

/*!
Theme Name: Cocoon Child for Morifarms
Description: 森ファーム様用Cocoon子テーマ
Theme URI: https: //www.webandpeace.com/
Author: webandpeace
Template:   cocoon-master
Version:    1
last update:2025-10-07
*/

/* grobal --------------------------------------------------------------------------------------- */

:root {

  --deepgreen: #07361d;
  --lightgreen: #16a359;
  --graygreen: #718079;
  --lightgray: #f0f7f3;
  --main-gradient: linear-gradient(90deg, var(--lightgreen), var(--deepgreen));
}

html,
body {
  overflow-x: clip;
}

body:not(.wp-admin) #container {
  background: var(--main-gradient);
  min-height: 100vh;
}

/* header --------------------------------------------------------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header-in {
  width: auto;
  margin-left: 0;
  flex-direction: row;
  justify-content: flex-start;
}

#header-right {
  font-size: 80%;
  padding: 10px;
}

/*1023px以下*/
@media screen and (max-width: 1023px) {
  #header-in {
    justify-content: center;
    margin: auto;
  }

  #header-right {
    display: none;
  }

}

/* navi --------------------------------------------------------------------------------------- */
#navi {
  background: var(--main-gradient);
}

.navi-in a {
  color: #fff;
}

.navi-in.wrap {
  width: 100%;
}

.navi-in>ul {
  justify-content: flex-start;
  margin: auto 20px;
}

.navi-in>ul li {
  width: auto;
}

.navi-in>ul li a {
  padding: 0 20px;
}

.navi-in a:hover {
  background-color: initial;
  opacity: 0.9;
  transition: all 0.3s ease-in-out;
  color: #fff;
}

.navi-in>ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 0;
  height: 3px;
  background: #fff;
  transition: width 0.3s ease;
}

.navi-in>ul li a:hover::after {
  width: 100%;
}

.navBtn {
  display: none;
}

@media screen and (max-width: 1023px) {
  #navi {
    display: none;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
  }

  #navi .navi-in.wrap {
    margin: 0;
  }

  #navi .navi-in>.menu-mobile li {
    width: 100%;
  }

  .navi-in a:hover {
    color: var(--deepgreen);
    background: #fff;
  }

  /* navButton */
  .navBtn {
    position: absolute;
    display: block;
    width: 50px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background-color: transparent;
    right: 0;
    top: calc((83px - 60px)/2);
    z-index: 101;
  }

  .navBtn_Bar {
    position: relative;
    display: block;
    width: 26px;
    height: 4px;
    transition: all 0.15s ease-in;
  }

  .navBtn_Bar_b {
    transform: translateY(-9px) rotate(0deg);
  }

  .navBtn_Bar_c {
    transform: translateY(9px) rotate(0deg);
  }

  .navBtn_Bar span {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    transition: all 0.15s linear;
    background: var(--main-gradient);
  }

  .open .navBtn_Bar_a {
    opacity: 0;
  }

  .open .navBtn_Bar_b {
    transform: translateY(0) rotate(45deg);
  }

  .open .navBtn_Bar_c {
    transform: translateY(0) rotate(-45deg);
  }

}

/* content--------------------------------------------------------------------------------------- */
#content.content {
  background: #fff;
  margin: 0;
}

/* footer --------------------------------------------------------------------------------------- */
footer.footer {
  margin: 0;
  background: var(--main-gradient);
}

/* 一度リセットしておく */
div.footer-bottom-logo,
div.footer-bottom-content {
  position: static;
  float: inherit;
  flex: 1;
}

div.footer-bottom>.footer-wrap {
  display: flex;
  justify-content: space-between;
  margin: 24px auto;
}

div.footer-bottom-logo .logo {
  text-align: left;
}

.footer-bottom-logo img {
  height: auto;
}

div.footer-company {
  margin-top: 20px;
  font-size: 80%;
}

.navi-footer-in>.menu-footer {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.navi-footer-in>.menu-footer li,
.navi-footer-in>.menu-footer li:last-child {
  border: 0;
}

.navi-footer-in a {
  position: relative;
  padding: 5px 0px !important;
}

.navi-footer-in a:hover {
  background: inherit;
  transition: all 0.3s ease-in-out;
}

.navi-footer-in a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 3px;
  background: #fff;
  transition: width 0.3s ease;
}

.navi-footer-in a:hover::after {
  width: 100%;
}

/* フッターiso */
footer .iso {
  margin-top: 10px;
}

/* フッタープライバシー */
footer .privacy {
  margin-top: 10px;
}

/* フッター関連企業 */
div.footer-group {
  width: 100%;
  display: flex;
}

div.footer-group ul {
  display: flex;
  list-style-type: none;
  padding: 0;
}

div.footer-group li {
  padding-left: 1rem;
}

div.footer-group li a {
  text-decoration: none;
  position: relative;
}

div.footer-group li:before {
  content: "|";
  padding-right: 1rem;
}

div.footer-group li a:hover {
  transition: all 0.3s ease-in-out;
}

div.footer-group li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

div.footer-group li a:hover::after {
  width: 100%;
}

/*480px以下*/
@media screen and (max-width: 480px) {
  div.footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom-content,
  .navi-footer-in>.menu-footer {
    display: none;
  }

  div.footer-group,
  div.footer-group ul {
    flex-direction: column;
    font-size: 80%;
  }
div.footer-group li:before {
  content: none;
}

}

/* ぱんくず --------------------------------------------------------------------------------------- */
#breadcrumb .fa-folder,
#breadcrumb .fa-file {
  display: none;
}

/* 投稿ページ/固定ページ共通  --------------------------------------------------------------------------------------- */
#main.main {
  padding-top: 0;
}

.archive-title {
  margin: 0;
}

/* フロント以外。投稿・固定ページのヘッダー全体に帯を敷く */
body:not(.front-top-page) .article-header {
  position: relative;
  z-index: 0;
  padding: 2rem 0;
}

/* 帯を全幅に（見出し＋メタまとめて覆う） */
body:not(.front-top-page) .article-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: var(--lightgray);
}

/* メタの整形（Cocoonのメタは .post-meta or .entry-meta） */
body:not(.front-top-page) .article-header .post-meta,
body:not(.front-top-page) .article-header .entry-meta {
  margin-top: .75rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* 既存の .entry-title 側に帯を当てていた場合は解除しておく */
body:not(.front-top-page) .entry-title::before {
  content: none;
}

body:not(.front-top-page).archive .archive-title,
body:not(.front-top-page).archive .archive-header,
body:not(.front-top-page).archive .archive-title-wrap {
  position: relative;
  z-index: 0;
  padding: 2rem 0 3rem;
}

body:not(.front-top-page).archive .archive-title::before,
body:not(.front-top-page).archive .archive-header::before,
body:not(.front-top-page).archive .archive-title-wrap::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: var(--lightgray);
}

/* archiveとかの余白 */
#list.list,
body:not(.front-top-page) .entry-content {
  margin-top: 36px;
}

/* あちこち見出しアイコンなし */
.fa-folder,
.fa-folder-open,
.fa-clock {
  display: none;
}

/* 日付の見た目 */
.date-tags {
  margin-bottom: 0;
}

.post-date {
  letter-spacing: 1px;
  font-size: 0.8em;
}

.post-update {
  display: none;
}

/* 本文部分 */
.entry-content p {
  text-indent: 1rem;
}

/* 固定ページ --------------------------------------------------------------------------------------- */
.article.page .date-tags {
  display: none;
}

.author-info {
  display: none;
}

/* 固定ページ他で使われる見出しショートコード用 --------------------------------------------------------------------------------------- */
.dual-heading {
  line-height: 1.35;
  margin: 1.5rem 0 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25rem;
  background: transparent !important;
  border-bottom: 0 !important;
}

.dual-heading__eng {
  display: block;
  font-size: 11pt;
  text-transform: uppercase;
  color: var(--graygreen);
  letter-spacing: 0.5rem;
  margin-bottom: 10px;
  padding-left: 80px;
  position: relative;
}

.dual-heading__eng:before {
  content: '';
  position: absolute;
  top: calc((100% - 2px) /2);
  left: 0;
  width: 60px;
  border-top: 2px solid var(--graygreen);
}

.dual-heading--center {
  text-align: center;
}

.dual-heading--right {
  text-align: right;
}

h1.dual-heading {
  font-size: 150%;
}

h2.dual-heading {
  font-size: 125%;
}

h3.dual-heading {
  font-size: 100%;
}

/*  その他見出し -------------------------------------------------------------------------------------- */

.entry-content h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.7rem);
  border-bottom: 4px solid var(--graygreen);
  padding-bottom: .4em;
  background-color: transparent;
}

.entry-content h3 {
  border: 0;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  border-left: 4px solid var(--deepgreen);
  padding-left: .6em;
}

.entry-content h4 {
  border: 0;
  font-size: clamp(1.1rem, 1.9vw, 1.2rem);
  background: var(--lightgray);
  padding: .6em .9em;
  border-radius: 4px;
}


/*  トップページ -------------------------------------------------------------------------------------- */

body.front-top-page .main {
  padding-top: 0;
}

/* metaslider */
#front-slider {}

#front-slider img {
  height: 800px;
  object-fit: cover;
}

/*834px以下*/
@media screen and (max-width: 834px) {
  #front-slider img {
    height: 80vh;
  }
}

/*  front-newslist部分  */
body.front-top-page .entry-content {
  margin-top: 0;
}


#front-newslist {
  position: relative;
  z-index: 0;
}

#front-newslist::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: var(--main-gradient);
}

#front-newslist {
  color: #fff;
  padding: 10px 0;
}

#front-newslist a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

#front-newslist a:hover {
  transition: all 0.3s ease-in-out;
}

#front-newslist li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

#front-newslist li a:hover::after {
  width: 100%;
}

#front-newslist .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#front-newslist .wrap div:first-child,
#front-newslist .wrap div:last-child {
  text-align: center;
  width: 200px;
}

#front-newslist .wrap div:nth-child(2) {
  flex: 1;
}

#front-newslist .wrap div:last-child a {
  border: solid 1px #fff;
  padding: 5px 40px;
  outline: 1px solid;
  outline-color: #fff;
  outline-offset: -1px;
  display: inline-block;
  transition: .3s;
}

#front-newslist .wrap div:last-child a:hover {
  animation: light .8s 1;
}

@keyframes light {
  100% {
    outline-color: transparent;
    outline-offset: 12px;
  }
}

#front-newslist ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

/*834px以下*/
@media screen and (max-width: 834px) {
  #front-newslist .wrap {
    flex-direction: column;
  }

  #front-newslist .wrap div {
    margin: 10px auto;
  }
}

/*  会社情報 --------------------------------------------------------------------------------------- */
.company table th {
  width: 12rem;
}

/*  アクセスページ --------------------------------------------------------------------------------------- */
iframe.map {
  width: 100%;
  min-height: 600px;
  border: 0;
}

/*  採用情報 --------------------------------------------------------------------------------------- */
.recruit table th {
  width: 12rem;
}

/*  お知らせ記事一覧ページ--------------------------------------------------------------------------------------- */
.card-content {
  display: flex;
  align-items: center;
}

.entry-date {
  margin-right: 1rem;
}

.card-content h2 {
  margin-bottom: 0;
}

/*  --------------------------------------------------------------------------------------- */
/*  --------------------------------------------------------------------------------------- */


/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
}