@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/* 1023px以下 */
@media screen and (max-width: 1023px) {}

/* 834px以下 */
@media screen and (max-width: 834px) {}

/* 480px以下 */
@media screen and (max-width: 480px) {}

/*************************************
  非表示
*************************************/
/* 480px以下で表示 */
.visible-xs {
  display: none;
}

@media screen and (max-width: 480px) {
  .visible-xs {
    display: block;
  }
}

/*フロント固定ページのタイトル 投稿日 更新日 投稿者名 を非表示*/
.home.page .entry-title,
.page .post-date,
.page .post-update,
.page .author-info {
  display: none;
}

/*************************************
  色
*************************************/
:root {
  --white: #fff;
  --green01: #8fc31f;
  --green02: #3faf35;
  --gray: #ccc;
  --bg-color: #eff5e2;
  --text-color: #333;
}

/*************************************
  共通
*************************************/
@media screen and (max-width: 1023px) {
  body:where(.mblt-header-mobile-buttons, .mblt-header-and-footer-mobile-buttons) {
    margin-top: 66px;
  }
}

/* 全体の幅調整 */
.container.wrap {
  width: 100%;
}

/* リンク */
a:hover {
  color: var(--green02);
}

/* ボタン */
.wp-block-button__link {
  background: var(--green02);
  border-radius: 4px;
}

.wp-block-button__link:hover {
  background: var(--green01);
  color: var(--white);
}

/* 投稿・更新の日付 */
.post-date,
.post-update {
  font-size: 14px;
}

/* h1 */
.type-page .entry-title,
.type-page .article h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
  font-size: 24px;
  font-weight: bold;
  color: var(--green02);
  line-height: 1.5;
}

.type-page .entry-title::before,
.type-page .entry-title::after,
.type-page .article h1::before,
.type-page .article h1::after {
  content: "";
  width: 34px;
  height: 8px;
  background: url(https://www.kamakura-life.co.jp/wp-content/uploads/2023/12/entry-title_bg.png) no-repeat center center / 100%;
}

@media screen and (max-width: 480px) {

  .type-page .entry-title,
  .type-page .article h1 {
    margin-bottom: 26px;
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {

  .type-page .entry-title,
  .type-page .article h1 {
    padding-left: 0;
    padding-right: 0;
  }
}

.article h2,
.related-entry-heading {
  padding: 0 0 0 10px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  border-left: 6px solid var(--green02);
  border-radius: 0;
  background: transparent;
}

.article h3 {
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  border: none;
  border-bottom: 2px solid var(--green02);
}

.article h4 {
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.7;
  border: none;
  border-bottom: 2px solid var(--gray);
}

@media screen and (max-width: 834px) {

  .article h2,
  .related-entry-heading,
  .article h3,
  .article h4 {
    margin-bottom: 16px;
  }
}


/*************************************
  header
*************************************/
.header-container-in.hlt-center-logo-top-menu {
  flex-direction: column;
}

.header .header-in {
  min-height: 0;
}

.logo-image {
  padding: 22px 0;
}

/* header nav */
.navi-in>ul li:not(:last-child) {
  position: relative;
}

.navi-in>ul li:not(:last-child)::after {
  content: "";
  background: var(--white);
  width: 2px;
  height: 36px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

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

#navi .navi-in a {
  font-size: 20px;
  font-weight: bold;
}

#navi .navi-in a:hover {
  background: var(--green01);
}

/* submenu */
.navi-in>ul .sub-menu li::after {
  display: none;
}

.has-sub .fa-angle-down::before {
  margin-right: 10px;
  font-size: 20px;
  vertical-align: middle;
}

/*************************************
  mobile header
*************************************/
@media screen and (max-width: 1023px) {
  .mobile-menu-buttons {
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 2px solid var(--green02);
    box-shadow: none;
  }

  /* ロゴボタン */
  .logo-menu-button {
    min-width: auto;
    max-width: 193px;
    margin-right: 20px;
    padding-top: 0;
  }

  .logo-menu-button img {
    max-height: 36px;
  }

  .has-logo-button .menu-button {
    width: auto;
  }

  /* -------- メニューボタン（ハンバーガーボタン） -------- */
  .menu-open {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5px 0;
  }

  .mobile-menu-buttons .menu-icon {
    width: 36px;
    height: 36px;
    background: var(--green02);
    color: var(--white);
    position: relative;
    border-radius: 2px;
  }

  /* 三本線 */
  .mobile-menu-buttons .menu-icon span,
  .mobile-menu-buttons .menu-icon span::before,
  .mobile-menu-buttons .menu-icon span::after {
    content: "";
    display: block;
    height: 3px;
    width: 28px;
    border-radius: 2px;
    background: var(--white);
    transition: 0.5s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .mobile-menu-buttons .menu-icon span::before {
    top: -7px;
  }

  .mobile-menu-buttons .menu-icon span::after {
    top: 10px;
  }

  /* メニューの文字 */
  .mobile-menu-buttons .menu-caption {
    font-size: 12px;
    font-weight: bold;
    color: var(--green02);
    opacity: 1;
  }

  /* -------- メニューの中身 -------- */
  .mobile-menu-buttons .menu-content {
    background: rgba(0, 0, 0, 0.6);
  }

  /* 閉じるボタン */
  .menu-close-button {
    width: 36px;
    height: 36px;
    margin: 10px 16px 27px auto;
    background: var(--green02);
    color: var(--white);
    position: relative;
    border-radius: 2px;
  }

  .menu-close-button::after {
    content: "閉じる";
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -19px;
  }

  /* ×線 */
  .menu-close-button span,
  .menu-close-button span::before,
  .menu-close-button span::after {
    content: "";
    display: block;
    height: 3px;
    width: 28px;
    border-radius: 2px;
    background: var(--white);
    transition: 0.5s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .menu-close-button span {
    background-color: transparent;
  }

  .menu-close-button span::before {
    top: 0;
    left: 0;
    transform: rotate(45deg);
  }

  .menu-close-button span::after {
    top: 0;
    left: 0;
    transform: rotate(-45deg);
  }

  /* -------- ドロワーメニュー -------- */
  /* 右からスライドイン */
  .navi-menu-content {
    left: auto;
    right: 0;
    transform: translateX(105%);
  }

  /* ドロワー中身 */
  .menu-content .menu-drawer {
    margin-top: 20px;
    padding: 0;
  }

  .menu-drawer li {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: var(--green02);
  }

  .menu-drawer>li:not(:last-child) {
    border-bottom: 1px dashed var(--white);
  }

  .menu-drawer a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 8px 8px 8px 32px;
    color: var(--white);
    text-align: left;
  }

  .menu-drawer a::after {
    content: "";
    width: 0.4em;
    height: 0.4em;
    margin-left: 8px;
    border-top: 3px solid var(--white);
    border-right: 3px solid var(--white);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  /* 2階層も表示する時 */
  .menu-drawer .sub-menu {
    padding-left: 0;
  }

  .menu-drawer .sub-menu a {
    padding-left: 64px;
  }

  .menu-drawer .sub-menu li {
    background: var(--green01);
  }

  .menu-drawer .sub-menu li:not(:last-child) {
    border-bottom: 1px dashed var(--white);
  }

  .menu-drawer .sub-menu li:first-child {
    border-top: 1px dashed var(--white);
  }
}

/* スマホ時は幅いっぱいでメニュー表示 */
@media screen and (max-width: 480px) {
  .menu-content {
    max-width: 100%;
  }
}

@media screen and (max-width: 360px) {
  .mobile-menu-buttons .menu-caption {
    margin-top: 2px;
    font-size: 9px;
  }
}

/*************************************
  main
*************************************/
.main,
.no-sidebar .content .main {
  max-width: 1000px;
  margin: auto;
}


/*************************************
  ニュース一覧
*************************************/
.news_list li {
  display: grid;
  align-items: center;
  grid-template-columns: 90px 1fr;
  gap: 40px;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--gray);
  position: relative;
}

@media screen and (max-width: 834px) {
  .news_list li {
    gap: 17px;
  }
}

.news_list li time {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  font-size: 16px;
  font-weight: bold;
}

.news_list li a {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 100%;
  padding-right: calc(17px + 0.4em + 1rem);
  color: var(--text-color);
  text-decoration: none;
  line-height: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 矢印 */
.news_list li::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-left: auto;
  border-top: 3px solid var(--green02);
  border-right: 3px solid var(--green02);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  order: 3;

  position: absolute;
  top: 50%;
  right: 1rem;
}

/* 一覧を見る */
.newslist_link {
  margin: 16px 1rem 16px 0;
}

.newslist_link a {
  font-weight: bold;
  text-decoration: none;
}

.newslist_link a::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 5px;
  border-top: 3px solid var(--green02);
  border-right: 3px solid var(--green02);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}


/*************************************
  table
*************************************/
figure.wp-block-table table {
  width: 100%;
  border-collapse: separate;
}

figure.wp-block-table tr {
  border: none;
  background: transparent;
}

figure.wp-block-table th,
figure.wp-block-table td {
  padding: 10px 24px;
  border: none;
  border-top: 4px solid var(--white);
  border-bottom: 4px solid var(--white);
}

@media screen and (max-width: 834px) {

  figure.wp-block-table th,
  figure.wp-block-table td {
    display: block;
    border: none;
    font-size: 15px;
  }
}

figure.wp-block-table th {
  background: var(--bg-color);
  border-radius: 8px;
  text-align: left;
}


/*************************************
  footer
*************************************/
.footer-bottom.fnm-text-width .menu-footer li {
  border: none;
}

.navi-footer-in a:hover {
  background: transparent;
}

.copyright {
  margin-top: 40px;
  font-size: 12px;
}

@media screen and (max-width: 834px) {
  .copyright {
    margin-top: 20px;
    font-size: 12px;
  }
}


/*************************************
  トップページ
*************************************/
/* -------- fv アピールポイント -------- */
.appeal-in {
  max-width: 1000px;
  min-height: auto;
  margin: 16px auto 0;
  padding: 0;
}

.appeal-in::before {
  content: "";
  width: 100%;
  max-width: 1000px;
  height: 320px;
  background: url(https://www.kamakura-life.co.jp/wp-content/uploads/2024/01/mv_pc.png) no-repeat center center / cover;
}

@media screen and (max-width: 1023px) {
  .appeal-in {
    margin-top: 0;
  }

  .appeal-in::before {
    height: 31.9vw;
    padding-bottom: 1px;
  }
}

@media screen and (max-width: 480px) {
  .appeal .appeal-in {
    min-height: auto;
  }

  .appeal-in::before {
    height: 106vw;
    background-image: url(https://www.kamakura-life.co.jp/wp-content/uploads/2024/01/mv_sp.png);
  }
}


/*************************************
  ニュース一覧
*************************************/
/* 管理者のPVとカテゴリーを非表示 */
.admin-pv,
.no-thumbnail .e-card-meta .e-card-categorys {
  display: none;
}

.entry-card-wrap {
  padding: 0;
  margin-bottom: 0;
}

.entry-card-wrap:hover {
  background-color: transparent;
}

.entry-card-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--gray);
  position: relative;
}

.entry-card-content::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-left: auto;
  border-top: 3px solid var(--green02);
  border-right: 3px solid var(--green02);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  order: 3;
  position: absolute;
  top: 50%;
  right: 1rem;
}

@media screen and (max-width: 834px) {
  .entry-card-content {
    gap: 16px;
  }
}

.entry-card-title {
  order: 2;
  font-weight: normal;
  margin: 0;
  padding-right: calc(16px + 0.4em + 1rem);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}


/* 更新日 */
.no-thumbnail .entry-card-meta,
.entry-card-meta {
  order: 1;
  margin: 0;
}

.entry-card-info .entry-date {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.entry-card-info .far {
  display: none;
}

/* ページネーション */
/* 「次のページ」を非表示 */
.pagination-next {
  display: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: var(--bg-color);
  color: var(--green02);
  font-weight: bold;
}

.pagination .current {
  background: var(--green02);
  color: var(--white);
}

.fa-angle-right:before,
.fa-angle-left:before {
  font-weight: bold;
}

.pagination a:hover {
  background: var(--bg-color);
  color: var(--green02);
}

.a-wrap:hover {
  background: var(--bg-color);
}


/*************************************
  各種方針・規約
*************************************/
/* グループ */
body .policy_list {
  justify-content: center;
  gap: 40px;
  text-align: center;
}

@media screen and (max-width: 834px) {
  body .policy_list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    text-align: left;
    margin-bottom: 24px !important;
  }
}

/* リンク */
p.policy_link {
  margin: 0;
}

.policy_link a {
  color: var(--text-color);
  text-decoration: none;
}

.policy_link a::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 10px;
  border-top: 3px solid var(--green02);
  border-right: 3px solid var(--green02);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
