@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){
  /*必要ならばここにコードを書く*/
}

/************************************
** プロフィール-サイドバー
************************************/
.sidebar .widget_author_box {
  background: #fff;
  padding-top: 1.2em;
  border-radius: 3px 3px 0 0;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.sidebar .author-box {
  padding: 120px 0 0;
  border: none;
  position: relative;
  margin: 0 0 3em;
  max-width: 100%;
  overflow:hidden;
}
.sidebar .author-content {
  background:#989898;
  background-blend-mode: multiply,multiply;
  border-radius: 200px 200px 0px 0px / 100px 100px 0px 0px;
  color: #fff;
  padding: 20px;
  width:110%;
  margin-left:-5% !important;
}
.sidebar .author-box .author-name a {
  color: #000000;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 18px;
}
.sidebar .author-box .author-description {
  padding: 45px 25px 0px;
  text-align: justify;
  text-justify: inter-ideograph;
}
.sidebar .author-box p {
  line-height: 1.8;
  font-size: 14px;
}
.sidebar .author-box .author-thumb {
  width: 120px;
  margin: 0 auto;
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  bottom: 0;
}
.sidebar .author-box .author-name {
  font-size: 1.1em;
  font-weight: bold;
  position: absolute;
  margin-bottom: 0.4em;
  top: 23px;
  bottom: 0;
  right: 0;
  left: 0;
}
.sidebar .author-box .author-widget-name {
  position: absolute;
  top: 3px;
  bottom: 0;
  right: 0;
  left: 0;
  font-size: 0.7em;
  color: #bbb;
}
.sidebar .author-box .sns-follow {
  padding: 15px 10px;
}
.sidebar .author-box .sns-follow-buttons {
  display: flex;
  justify-content: space-evenly;
}
.sidebar .author-box .sns-follow-buttons a {
  border-radius: 50%;
  border: none;
  width: 45px;
  height: 45px;
  line-height: 45px;
  font-size: 30px;
  box-shadow: 0 0 10px rgba(66, 172, 231, .5), 0 0 5px -5px rgba(66, 172, 231);
  background:#fff;
}
.sidebar .author-box .sns-follow-buttons a:hover {
  box-shadow: 0 10px 20px -2px rgba(0, 0, 0, .2);
  opacity: 1;
}
.sidebar .author-box .sns-follow-buttons .follow-button span:before {
  color: #46CDFF;
}
.sidebar .icon-instagram-new:before {
  content: "\ea92";
  font-size: 24px;
}
.sidebar .author-box .to-profile {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  color: #46CDFF;
  box-shadow: 0 0 10px rgba(66, 172, 231, .5), 0 0 5px -5px rgba(66, 172, 231);
  top: 105px;
  right: 45px;
  font-size: 0.9em;
  font-weight: bold;
}
.sidebar .author-box .to-profile:hover {
  box-shadow: 0 10px 20px -2px rgba(0, 0, 0, .2);
}
.sidebar .author-box .sns-follow-message {
  margin-bottom: 10px;
  font-size: 13px;
}
.sidebar .author-box .sns-follow-message:before {
  content: "＼";
  margin-right: 5px;
}
.sidebar .author-box .sns-follow-message:after {
  content: "／";
  margin-left: 5px;
}
.sidebar .icon-twitter-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
.sidebar .icon-facebook-logo:before {
  position: absolute;
  top: 6px;
  bottom: 0;
  right: 8px;
  left: 0;
}
.sidebar .icon-hatebu-logo:before {
  position: absolute;
  top: 8px;
  bottom: 0;
  right: 0;
  left: 0;
}
.sidebar .icon-feedly-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
.sidebar .icon-rss-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
/* コンタクトフォーム7 カスタムスタイル */
.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wpcf7-form label {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #4a90d9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
  background: #357ab8;
}

/* 送信中はボタンを少し薄く */
.wpcf7-form.submitting input[type="submit"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 4px;
}

/* カード全体の基本スタイル(枠・シャドウ・浮き上がりアニメーション) */
.navi-entry-card-link.widget-entry-card-link.a-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid #dddddd;
  border-radius: 10px;
  box-shadow: 0 4px 15px -5px rgba(85,85,85,0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navi-entry-card-link.widget-entry-card-link.a-wrap:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 20px -5px rgba(85,85,85,0.75);
}

/* サムネイル画像の拡大アニメーション */
.navi-entry-card-link .entry-card-thumb {
  overflow: hidden;
}
.navi-entry-card-link .entry-card-thumb img {
  transition: transform 0.4s ease;
}
.navi-entry-card-link:hover .entry-card-thumb img {
  transform: scale(1.1);
}

/* ホバー時にタイトル・説明文を画像の上にふわっと重ねて表示 */
.navi-entry-card-link .entry-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 70%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.navi-entry-card-link:hover .entry-card-content {
  opacity: 1;
}
.navi-entry-card-link .entry-card-title,
.navi-entry-card-link .entry-card-title a,
.navi-entry-card-link .entry-card-snippet {
  color: #ffffff !important;
}

/* ==========================================
   THE GEAR ROOM
   カスタムHTML バナー中央寄せ
   PC・スマホ対応
   ========================================== */


/* ==========================================
   ① サイドバーのカスタムHTML
   ========================================== */

.sidebar .widget_custom_html {
    text-align: center !important;
}

.sidebar .widget_custom_html img {
    display: block !important;
    margin: 0 auto !important;
}


/* ==========================================
   ② 投稿記事内のカスタムHTML
   ========================================== */

/* カスタムHTMLブロック */
.article .wp-block-html,
.article .custom-html-widget {
    text-align: center !important;
}


/* バナーのリンク */
.article .wp-block-html a,
.article .custom-html-widget a {
    display: inline-block !important;
    text-align: center !important;
}


/* バナー画像 */
.article .wp-block-html img,
.article .custom-html-widget img {
    display: block !important;
    margin: 0 auto !important;
}


/* ==========================================
   ③ スマホ表示
   ========================================== */

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

    /* カスタムHTML */
    .article .wp-block-html,
    .article .custom-html-widget {
        width: 100% !important;
        text-align: center !important;
    }

    /* リンク */
    .article .wp-block-html a,
    .article .custom-html-widget a {
        display: inline-block !important;
        text-align: center !important;
    }

    /* バナー画像 */
    .article .wp-block-html img,
    .article .custom-html-widget img {
        display: block !important;
        margin: 0 auto !important;
    }

}

/* 投稿記事の表を全て中央揃えにする */
.entry-content table th,
.entry-content table td {
  text-align: center;
}

/* 表のセルに白い線を入れる */
.entry-content table {
  border-collapse: collapse;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid #fff;
}