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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/********** インラインコード **********/
p code {
    color: #686262;
    background: #ffffff;
}
/********** コードブロック **********/
pre {
    background-color:#f4f3f3;
    border: 1px solid #c4c4c4;
    padding: 10px;
}

pre.wp-block-code code {
    display: block;
    font-size: 16px;
    white-space: pre;
    color: #2c2c2c;
    line-height: 2.1;
}

/********** コンタクトフォーム問い合わせ **********/
form.wpcf7-form {
  max-width: 800px;
  margin: 0 auto;
}

/* ========== テーブルスタイル ========== */
.CF7_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 30px;
  color: #fff;
}

.CF7_table tr {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
  align-items: start;
}

.CF7_table th {
  text-align: right;
  padding-top: 12px;
  font-weight: 500;
  font-size: 14px;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  border: none;
}

.CF7_table th p {
  margin-bottom: 0.5em;
}

.CF7_table td {
  width: 100%;
  border: none;
}

/* ========== ラベルスタイル ========== */
.CF7_req,
.CF7_unreq {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-right: 10px;
  text-transform: uppercase;
}

.CF7_req {
  background: rgba(255, 0, 110, 0.2);
  color: var(--accent-pink);
  border: 1px solid var(--accent-pink);
}

.CF7_unreq {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

/* ========== 入力フィールド共通 ========== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: #fff;
  border-radius: 8px;
  color: #8c8c8c;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  backdrop-filter: blur(5px);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ホバーエフェクト - シアングロー */

.wpcf7-form textarea:hover {
  border-color: #8665fc;
}

/* フォーカスエフェクト - パープルグロー */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #b366ff;
  box-shadow: 0 0 20px rgba(179, 102, 255, 0.8),
    inset 0 0 15px rgba(179, 102, 255, 0.15);
  background: #fff;
  transform: translateY(-2px);
}

/* ========== メッセージテキストエリア ========== */
.message-100 {
  grid-column: 1 / -1;
}

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

/* ========== 送信ボタン ========== */
.CF7_btn {
  text-align: center;
  margin-top: 40px;
}

.wpcf7-form input[type="submit"],
.wpcf7-form button {
  padding: 14px 40px;
  background: linear-gradient(135deg, #00d9ff 0%, #b366ff 100%);
  border: 2px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.4), 0 0 60px rgba(179, 102, 255, 0.2);
}

.wpcf7-form input[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.6),
    0 0 100px rgba(179, 102, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #00e6ff 0%, #cc33ff 100%);
}

.wpcf7-form input[type="submit"]:hover::before {
  left: 100%;
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5), 0 0 60px rgba(179, 102, 255, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ========== 入力検証フィードバック ========== */
.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  color: #f86c69;
  font-size: 12px;
  margin-top: 6px;
  opacity: 0;
  animation: slideInError 0.3s ease-out forwards;
}

.wpcf7-form .wpcf7-not-valid-tip::before {
  content: "⚠ ";
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  box-shadow: 0 0 20px rgb(235 22 134 / 66%);
  background: rgb(255, 255, 255) !important;
}

@keyframes slideInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== エラーメッセージ ========== */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  color: #fff;
  box-shadow: 0 0 20px rgb(235 22 134 / 97%);
}

/* ========== 成功メッセージ ========== */
.wpcf7-form .wpcf7-response-output {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wpcf7-form .wpcf7-mail-sent-ok {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent-cyan);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.wpcf7-form .wpcf7-validation-errors {
  background: rgba(255, 0, 110, 0.15);
  color: var(--accent-pink);
  border: 1.5px solid var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 0, 110, 0.4);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450;
  box-shadow: 0 0 20px rgb(235 22 134 / 97%);
  background-color: #174468;
  border: none;
  color: #fff;
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 768px) {
  .wpcf7-form {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .CF7_table tr {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .CF7_table th {
    text-align: left;
    padding-top: 0;
    margin-bottom: 8px;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form textarea {
    padding: 11px 12px;
  }

  .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 13px 20px;
  }

  .message-100 {
    grid-column: 1;
  }
}

/********** カテゴリ一ページ **********/
.category-blog.category-1 .archive-title {
  display: none;
}

.category-blog.category-1 .entry-card .cat-label {
  display: none;
}  

.category-blog.category-1 .entry-card .admin-pv {
  display: none;
}

/********** ブログカード横向き **********/
/* ブログカードを横向き（左サムネイル・右テキスト）にする */
/* 幅と中央寄せは <a> 側（.blogcard-wrap）に持たせる。
   ホバー背景は .a-wrap:hover に付くので、ここを枠と同じ幅にしないとはみ出す。 */
.entry-content .blogcard-wrap {
  display: block;
  width: 80%;         /* カード幅。お好みで調整 */
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;         /* .a-wrap の padding:1.5% を解除（ホバー範囲＝枠内） */
}
/* .blogcard の直下は label / thumbnail / content / footer。
   label は Cocoon側で position:absolute なのでグリッドの外。
   親テーマは float + margin-left:170px で組んでいるので、それを全部打ち消す。 */
.entry-content .blogcard {
  display: grid;
  grid-template-columns: 249px 1fr;   /* 左のサムネイル幅。min-height の 16:9 に合わせる */
  grid-template-areas:
    "thumb   content"
    "thumb   footer";
  align-items: stretch;   /* サムネイルをカードの高さいっぱいに伸ばす */
  width: 100%;
  max-width: 100%;
  min-height: 140px;      /* カードの高さ。249px の 16:9 ＝ 140px */
  padding: 0;             /* 画像を枠に密着させるため、カード自体には余白を持たせない */
  overflow: hidden;       /* 画像を枠の角丸で切り抜く */
}
/* サムネイルが取得できなかった場合（Cocoonのスクショ機能OFF時など）は
   左の空カラムが残ってしまうので、1カラムに畳む */
.entry-content .blogcard:has(.blogcard-thumbnail:empty) {
  grid-template-columns: 1fr;
  grid-template-areas:
    "content"
    "footer";
  min-height: 0;
}
.entry-content .blogcard-thumbnail {
  grid-area: thumb;
  float: none;        /* 親テーマの float:left を解除 */
  width: 100%;
  height: 100%;
  margin: 0;          /* 親テーマの margin-right:1.6% / margin-top:3px を解除 */
}
/* 内部カードの img は接頭辞付きクラスしか持たないので要素セレクタで指定。
   object-fit: cover で、元画像の大きさに関係なく枠いっぱいに敷き詰める。 */
.entry-content .blogcard-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;   /* 角丸は .blogcard の overflow:hidden 側で処理する */
}
/* 余白はテキスト側だけに持たせる（画像の上・左・下は枠に密着） */
.entry-content .blogcard-content {
  grid-area: content;
  margin-left: 0;     /* ← タイトル左の余白の正体（親テーマの 170px） */
  margin-right: 0;
  width: auto;
  padding: 10px 14px 0 20px;
  min-width: 0;       /* テキストが正しく折り返されるために必要 */
  min-height: 0;      /* 親テーマの min-height:100px を解除（下の余白の一因） */
  max-height: none;   /* 同 max-height:140px を解除 */
}
.entry-content .blogcard-footer {
  grid-area: footer;
  clear: none;        /* 親テーマの clear:both を解除 */
  align-self: end;
  padding: 8px 14px 12px 20px;
}
.entry-content .blogcard-title {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 8px;
}
.entry-content .blogcard-snippet {
  font-size: 13px;
  line-height: 1.6;
}

/* スマホでは縦積みに戻す */
@media (max-width: 480px) {
  .entry-content .blogcard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "content"
      "footer";
    min-height: 0;
  }
  /* 縦積みのときは高さを比率で決める（height:100% は伸びる先が無いため） */
  .entry-content .blogcard-thumbnail img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}


/* =========================================================
   Cocoon 表デザイン（モノトーン・上品）
   ========================================================= */

/* 記事本文の表全体の土台 --------------------------------- */
.entry-content table {
  width: 100%;
  border-collapse: separate;   /* 角丸を効かせるため separate */
  border-spacing: 0;
  margin: 1.8em 0;
  line-height: 1.7;
  color: #333;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  overflow: hidden;            /* 角丸からはみ出す枠を隠す */
  /* うっすら影で浮かせて上品に */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* セル共通 --------------------------------------------- */
.entry-content table th,
.entry-content table td {
  padding: 13px 16px;
  border: none;
  border-bottom: 1px solid #ececec;  /* 横罫線 */
  border-right: 1px solid #ececec;   /* 縦罫線（列の区切り）*/
  text-align: left;
  vertical-align: middle;
}

/* 各行の右端セルは縦罫線を消して外枠と重ならないように */
.entry-content table th:last-child,
.entry-content table td:last-child {
  border-right: none;
}

/* 見出し行（1行目）------------------------------------- */
.entry-content table th {
  background: #4a5568;         /* 青みのある上品なスレートグレー */
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #3b4453;
  /* 見出しの列区切りは、背景になじむ少し明るい線に */
  border-right: 1px solid #5c667a;
  white-space: nowrap;         /* 見出しは折り返さない */
}

/* 左端の見出しセル（縦見出し）がある場合 --------------- */
/* .entry-content table td:first-child {
  font-weight: bold;
  color: #222;
  background-color: #fcfcfc;
  border-bottom: 1px solid #ececec;
} */

/* しま模様（偶数行をうっすらグレーに）----------------- */
.entry-content table tbody tr:nth-child(even) td {
  background: #f7f7f7;
}

/* マウスを乗せた行を少し強調（PCのみ）----------------- */
.entry-content table tbody tr:hover td {
  background: #eef0f2;
  transition: background 0.2s ease;
}

/* 最終行の下罫線は消してすっきり ----------------------- */
.entry-content table tbody tr:last-child td {
  border-bottom: none;
}

/* =========================================================
   スマホ対応（横スクロール）
   狭い画面では表を横スクロールできるようにして
   文字が潰れないようにする
   ========================================================= */
@media screen and (max-width: 600px) {
  .entry-content table {
    display: block;
    overflow-x: auto;            /* はみ出したら横スクロール */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;         /* セル内改行を抑えて崩れ防止 */
    border-radius: 8px;
  }

  .entry-content table th,
  .entry-content table td {
    padding: 11px 13px;
  }
}

/* =========================================================
   Cocoonブロックエディタの表ブロック（.wp-block-table）
   にも同じ見た目を効かせる保険
   ========================================================= */
.entry-content .wp-block-table table {
  border: 1px solid #e3e3e3;
}
.entry-content .wp-block-table {
  margin: 1.8em 0;
}

/* Cocoonの「スタイル」付きテーブルの既定色を上書きしたい
   場合の保険（不要ならこのブロックは消してOK）--------- */
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
  background: #f7f7f7;
}
.entry-content .wp-block-table.is-style-stripes {
  border-bottom: none;
}

.scrollable-table.stfc-sticky table:not(.wp-calendar-table) tr > *:first-child {
    background-color: #f4f4f4;
    color: #121010;
}


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

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

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