@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* 上のメニューバーを小さく表示させる */
/* アニメーション用のスタイル */
body,
header,
.navi,
.content,
.main,
.footer {
  background-color: #F4F2F2;
}

.logo-text {
  padding: 0;
}

.main {
  margin: 0;
}

/* イベントのcss */
.event_now {
  text-align: center;
}

.event_now a img {
  display: inline;
  padding: 0px 20px;
}

.post-page-title {
  font-size: 32px;
  font-weight: 100;
  line-height: 1;
  text-align: center;
}

.single_page_title_wrapper a {
  text-decoration: none;
  color: #000;
}

.single_page_title {
  margin-top: 20px;
  text-align: center;
  font-weight: 100;
  font-size: 22px;
  line-height: 20px;
}

.single_page_title small {
  font-size: 10px;
}

.entry-title {
  text-align: center;
}

.entry-content {
  padding: 0px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.navi-in {
  max-width: 750px;
}

.navi-in ul li {
  width: auto;
  margin: 0px 10px;
}

.caption-wrap .item-label {
  font-size: 12px;
}

.post-page-title {
  text-align: center;
  padding: 1em 0 1.25em;
}

.post_ul {
  max-width: 640px;
  margin: auto;
  padding: 0 20px;
}

.post_ul li {
  list-style: none;
}

/* 太郎の夢大きく */
.big-dream-img {
  width: 80%;
  margin: 0 auto;
  margin-top: 80px;
  text-align: center;

  &h3 {
    width: 280px;
    margin: 0 auto;
    margin-bottom: 20px;
    position: relative;
    background: #555;
    box-shadow: 0px 0px 0px 5px #555;
    border: dashed 2px white;
    padding: 0.6em 0.5em;
    color: #fff;
    font-size: medium;
  }

  &h3:after {
    position: absolute;
    content: '';
    left: -7px;
    top: -7px;
    border-width: 0 0 15px 15px;
    border-style: solid;
    border-color: #F4F2F2 #F4F2F2 #888;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
  }

  &p {
    margin: 0;
    font-size: small;
  }

  &img {
    box-shadow: 10px 10px 10px #aaa;
    rotate: 3deg;
    width: 90%;
    margin-top: 20px;
    display: inline-block;
    min-width: 280px;
    transition: .5s;
  }

  &img:hover {
    opacity: 0.6;
    scale: 0.95;
    box-shadow: 0px 0px 0px #aaa;
  }
}

.caption-wrap .item-label {
  /* color: #00f; 水色に変更 */
}

/* 投稿の日付部分 */
.post-ul {
  max-width: 640px;
  margin: auto;
  padding: 0 20px;
}

.list-basic a {
  text-decoration: none;
  color: #000;
}

.list-basic {
  line-height: 1.5;
}

.list-basic .date-title {
  text-align: left;
  margin: auto;
}

.list-basic dd {
  padding: 0.7em 0 1em;
}

dd {
  font-size: 12px;
}

.c {
  font-size: 10px;
  color: #749B95;
}

.date-title {
  display: flex;
  align-items: center;
}

.date-title::after {
  margin-left: 0.5em;
  content: "";
  border-top: 1px solid #E5E5E5;
  flex-grow: 1;
}

html {
  scroll-behavior: smooth;
}

/* アニメーション用のスタイル */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#loading-spinner {
  border: 5px solid #f3f3f3;
  /*背景*/
  border-top: 5px solid #FFD464;
  /*動くところ*/
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* indexphpのハンバーガーメニュー */
.hum-nav {
  display: block;
  width: 200px;
  position: fixed;
  background-color: #ffffff;
  top: 0;
  left: -300px;
  bottom: 0;
  transition: all 0.5s;
  z-index: 3;
  opacity: 0;
}

.open .hum-nav {
  left: 0;
  opacity: 1;
}

.hum-nav .inner {
  padding: 25px;
}

.hum-nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hum-nav .inner ul li {
  margin: 0;
  border-bottom: 1px solid #333;
}

.hum-nav .inner ul li a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 1rem;
  transition-duration: 0.2s;
}

.hum-nav .inner ul li :hover {
  background-color: #e4e4e4;
}

.toggle-btn {
  display: block;
  position: fixed;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  z-index: 999;
  cursor: pointer;
}

.toggle-btn span {
  position: absolute;
  display: block;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #333;
  transition: all 0.5s;
  border-radius: 4px;
}

.toggle-btn span:nth-child(1) {
  top: 4px;
}

.toggle-btn span:nth-child(2) {
  top: 14px;
}

.toggle-btn span:nth-child(3) {
  bottom: 4px;
}

.open .toggle-btn span {
  background-color: #fff;
}

.open .toggle-btn span:nth-child(1) {
  transform: translateY(10px) rotate(-315deg);
}

.open .toggle-btn span:nth-child(2) {
  opacity: 0;
}

.open .toggle-btn span:nth-child(3) {
  transform: translateY(-10px) rotate(315deg);
}

#mask {
  display: none;
  transition: all 0, 5s;
}

.open #mask {
  display: flex;
  z-index: 2;
  background-color: #000;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  opacity: 0.8;
  cursor: pointer;
}

/* フェードインのアニメーション用のスタイル */
.fade-in {
  opacity: 0;
  /* 最初は透明に設定 */
  transition: all 1s;
  /* アニメーションの設定 */
}

.post-title {
  text-align: center;
}

.post ul {
  list-style: none;
}

.index_body {
  height: 100px;
  margin: 0px;
  width: 100%;
}

.first_section {
  height: 100%;
  position: relative;
  transition: height 600ms ease;
  /* transition: height 0.3s ease; */
}

.first_section .slides li img {
  height: 100%;
}

.video {
  margin: 50px 10px;
}

h3 {
  text-align: center;
}

/* JavaScriptでスクロール時にクラスを追加します */
.shrink {
  height: calc(50% - 48px);
}

.page_title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.page_title span {
  color: #ffffff;
  text-shadow: 0px 0px 5px #333333;
}

.page_title small {
  font-size: 10px;
}

.page-numbers-wrapper {
  text-align: center;
}

.page-numbers {
  display: inline;
  border: none;
  border-radius: 0;
  font-size: 12px;
}

.current {
  border-bottom: solid 1px #333333;
}

/* 後で各々のcssのプロパティを確認する */
.main_img_wrapper {
  height: 100%;
  position: relative;
  transition: height 600ms;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: -1;
}

.main_img_wrapper img {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  transform: translateZ(0);
  transition: object-position 400ms linear;
  position: fixed;
  z-index: 0;
  height: 100%;
}

.posts {
  display: flex;
}

.post {
  min-width: 330px;
  margin: 30px 0px 0px 0px;
}

.view-all {
  display: inline-block;
  text-align: center;
  font-size: 15px;
  border: solid 1px #749b95;
  color: #749b95;
  width: 100px;
}

.posts_class {
  display: flex;
  justify-content: space-around;
  max-width: 870px;
  padding: 0 10px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* 最新の記事3件 */
.cards {
  display: flex;
  justify-content: center;
  gap: 2em;
}

.card {
  padding: 5px;

  img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
  }
}

/* スライドのcss */
.slick-slider {
  padding: 0;
}

.slick-slide img {
  padding: 0px 20px;
}

.slick-track {
  list-style-type: none;
}

.card-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/* 最新の記事一覧 */
/*900px以下*/
@media screen and (max-width: 900px) {
  .cards {
    display: block;
    justify-content: unset;
  }

  .card {
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
  }

  .slick-dots {
    display: block !important;
  }

  .slick-slide img {
    display: inline-block;
  }

  .slick-slide {
    text-align: center;
  }
}

/* snsのロゴ */
.sns {
  margin-top: 50px;
}

.sns-logos {
  width: 100%;
  text-align: center;
}

.sns-logos a img {
  display: inline;
  width: 40px;
  margin: 0px 8px;
}

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

  /*必要ならばここにコードを書く*/
  .posts {
    display: block;
  }

  .posts ul {
    padding: 10px;
  }
}

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

  /*必要ならばここにコードを書く*/
  .card {
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
  }
}