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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** リセットcss
************************************/
ul {
  list-style-type: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  &:hover {
    color: inherit;
  }
}

img {
  vertical-align: bottom;
  width: 100%;
  height: 100%;
}

/************************************
** 設定
************************************/
:root {
  --color-primary: #4663b4;
  --color-primary-dark: #3a5091;
  --color-secondary: #01b3a7;
  --color-secondary-dark: #019187;
  --color-accent: #ffd233;
  --color-accent-dark: #e0b42a;
}

/************************************
** 見出し
************************************/
.article h2 {
  border-left: 9px solid var(--color-primary);
}

.article h3 {
  border-left: 9px solid var(--color-primary);
  color: var(--color-primary);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

/************************************
** セカンダリーボタン
************************************/
.secondary-btn {
  -webkit-appearance: none;
  background-color: var(--color-secondary);
  background-image: none;
  border: none;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: "HiraKakuPro-W6", "ヒラギノ角ゴ Pro W6", "Meiryo", "Meiryo",
    "Noto Sans Japanese", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  min-width: 282px;
  padding: 17px 20px 14px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease 0s;
}

.secondary-btn:hover {
  background: var(--color-secondary-dark);
  color: #e2e2e2;
}

/************************************
** ヘッダー
************************************/
.header-container {
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.1));
}

/************************************
** ヘッダー メニュー
************************************/
.navi-in a:hover {
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  color: #000;
}

.menu-pc .menu-item::before {
  display: inline-block;
  background-color: var(--color-accent);
  bottom: 0;
  content: "";
  height: 5px;
  position: absolute;
  transition: width 0.3s ease;
  width: 0;
  left: 50%;
}

.menu-pc .menu-item::after {
  display: block;
  background-color: var(--color-accent);
  bottom: 0;
  content: "";
  height: 5px;
  position: absolute;
  transition: width 0.3s ease;
  width: 0;
  right: 50%;
}

.menu-pc .menu-item:not(:has(.sub-menu)):hover::before {
  width: 50%;
}

.menu-pc .menu-item:not(:has(.sub-menu)):hover::after {
  width: 50%;
}

@media screen and (min-width: 1024px) {
  .header-container {
    position: relative;
    z-index: 100;
  }
  .caption-wrap.custom-caption-wrap {
    gap: 10px;
    .item-label {
      display: inline-block;
      width: fit-content;
    }
    .top-has-sub {
      position: static;
      width: fit-content;
    }
  }
  .navi-in > ul {
    .sub-menu {
      transition: all 0.3s ease;
      /* border-top: 1px solid #4663b4; */
      width: 100%;
      background-color: #fff;
      display: block;
      opacity: 0;
      visibility: hidden;
    }
  }
  .menu-item-has-children:hover {
    .sub-menu {
      opacity: 1;
      visibility: visible;
    }
    .top-has-sub {
      transform: rotate(-90deg);
    }
  }
  .menu-item-has-children .top-has-sub {
    transition: transform 0.3s ease;
  }
}
/************************************
** メイン
************************************/
.main {
  border: 2px solid var(--bg-color-gray01, #e6e6e6);
  border-radius: 5px;
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.1));
}

.no-sidebar .content .main {
  width: 90%;
  margin: 0 auto;
}

/************************************
** お問い合わせフォーム
************************************/
/* recaptchaのバッジを非表示にする */
.grecaptcha-badge {
  visibility: hidden;
}
.recaptcha-notice {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
}
.recaptcha-notice a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #4663b4;
}

.contact-description {
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* フォームスタイル */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group textarea {
  height: 200px;
  resize: vertical;
}

.required {
  color: #ff0000;
  margin-left: 5px;
}

.submit-button {
  background-color: var(--color-accent);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 30px auto 0;
  font-size: 16px;
  transition: background-color 0.3s;
  font-weight: bold;
}

@media screen and (min-width: 1024px) {
  .submit-button:hover {
    background-color: var(--color-accent-dark);
  }
}
/* メッセージスタイル */
.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.validation-error-message {
  color: #d9534f;
  font-size: 14px;
  margin-bottom: 4px !important;
  font-weight: 500;
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
  .contact-container {
    padding: 20px 15px;
  }

  .contact-title {
    font-size: 24px;
  }

  .submit-button {
    width: 100%;
    padding: 12px;
  }
}

/************************************
** サイドバー
************************************/
.sidebar {
  border: 2px solid var(--bg-color-gray01, #e6e6e6);
  border-radius: 5px;
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.1));
}

.sidebar .sns-follow-buttons {
  display: none;
}

.widget-sidebar-title {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 15px !important;
  padding: 0 0 2px 0 !important;
  font-weight: bold;
  text-align: left;
  border-radius: 0;
  background-color: transparent !important;
  font-size: 18px;
}

/* サイドバー　目次*/
.sidebar .toc {
  padding: 0;
  border: 1px solid var(--color-primary);
  border-radius: 5px 5px 0 0;
}

.sidebar .toc-title {
  background: var(--color-primary);
  color: white;
}

.sidebar .toc-content {
  padding: 0 1em;
  background-color: rgba(44, 153, 181, 0.04);
  overflow-y: scroll;
  max-height: 450px;
}

.toc a.active {
  color: var(--color-primary);
  font-weight: bold;
}

/*サイドバー　A8広告*/
.sidebar .ad-label {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 15px;
  padding-bottom: 2px;
  font-weight: bold;
  text-align: left;
}

.sidebar .ad-wrap img {
  width: 100%;
  object-fit: contain;
}

/************************************
** 目次
************************************/
.toc-list > li > ol > li {
  list-style: none;
  position: relative;
}

.toc-list > li > ol > li:before {
  position: absolute;
  content: "\2023";
  display: inline-block;
  width: 14px;
  height: 28px;
  line-height: 28px;
  font-size: 18px;
  color: #5f7b96;
  left: -10px;
}

/************************************
** カテゴリーラベル
************************************/
.category_right .cat-label {
  position: static !important;
  display: inline-block;
  margin-top: 3px;
  padding: 2px 10px;
  font-size: 11px;
  border: none;
}

/*関連記事カテゴリラベル*/
.related-entry-card .cat-label {
  position: static !important;
  display: inline-block;
  margin-top: 3px;
  padding: 2px 10px;
  border: none;
}

.related_category_side {
  margin-bottom: -5px;
}

.related-entry-card-content card-content e-card-content {
  font-size: initial;
}

/*投稿記事内のカテゴリーラベル*/
.article-header .cat-label {
  position: static !important;
  display: inline-block;
}

/************************************
** シングル投稿
************************************/
.eye-catch-wrap {
  display: block;
  width: 100%;
}

/************************************
** カスタム投稿（work）
************************************/

/* アーカイブカスタムページ */
.archive-work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 24px;
}

.archive-work-item {
  position: relative;
  display: block;
  background: #fff;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.16);
  transition: box-shadow 0.3s ease;
}
@media screen and (min-width: 1024px) {
  .archive-work-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }
}

.archive-item-img-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #efefef;
  aspect-ratio: 16 / 9;
}

.archive-item-img {
  width: 100%;
  height: 100%;
}

.archive-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* ホバー時の画像拡大とオーバーレイ効果 */
.archive-item-img-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

@media screen and (min-width: 1024px) {
  .archive-work-item:hover .archive-item-img img {
    transform: scale(1.1);
  }

  .archive-work-item:hover .archive-item-img-wrap::after {
    background: rgba(0, 0, 0, 0.2);
  }
}
.archive-item-body {
  padding: 12px;
}

.archive-item-meta {
  display: inline-block;
  color: #fff;
  background-color: var(--color-primary);
  padding: 0px 6px;
  font-size: 12px;
}

.archive-item-tag {
  color: #fff;
}

.archive-item-title {
  margin-top: 8px;
  font-weight: bold;
  font-size: 16px;
}

.archive-item-excerpt {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.genre-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.genre-nav-link {
  font-weight: bold;
  transition: all 0.2s;
  border-radius: 5px 5px 0 0;
}

.genre-nav-link a {
  display: inline-block;
  padding: 3px 8px;
}

@media screen and (min-width: 1024px) {
  .genre-nav-link:hover {
    background-color: var(--color-primary);
    color: #fff;
  }
}
.genre-nav-link.active {
  background-color: var(--color-primary);
  color: #fff;
}

/*834px以下*/
@media screen and (max-width: 1023px) {
  .archive-work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
}

/*480px以下*/
@media screen and (max-width: 834px) {
  .archive-work-list {
    display: block;
  }

  .archive-work-item + .archive-work-item {
    margin-top: 40px;
  }
}

/* シングルカスタムワークページ */

.entry-img {
  border: 1px solid #efefef;
}

.entry-work-body {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .entry-work-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .entry-work-content {
    line-height: 1.875;
  }
}

.entry-work-content {
  line-height: 2.25;
}

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

@media screen and (max-width: 767px) {
  .entry-work-content {
    padding-right: 0;
    line-height: 1.875;
  }
}

.entry-work-btn {
  margin-top: 32px;
  text-align: center;
}

/* シングルカスタムページ関連記事 */
.entry-work-related {
  margin-top: 40px;
}

.entry-work-related-head {
  font-weight: bold;
  font-size: 20px;
  text-align: center;
}

.entry-work-related-entries {
  width: 70%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 24px;
}

.entry-work-related-entries .entry-item {
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.16);
}

.entry-work-related-entries .entry-item-img {
  border-bottom: 1px solid #efefef;
  height: 180px;
}

.entry-work-related-entries .entry-item-img img {
  object-fit: cover;
}

.entry-work-related-entries .entry-item-body {
  padding: 12px;
}

.entry-work-related-entries .entry-item-meta {
  display: inline-block;
  color: #fff;
  background-color: #333;
  padding: 0px 6px;
  font-size: 12px;
}

.entry-work-related-entries .entry-item-tag {
  font-size: 14px;
}

.entry-work-related-entries .entry-item-title {
  font-size: 14px;
}

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

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

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