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

/* =========================================================
   Coffee Tasting Log - Cocoon用 全体適用CSS
   サイト全体の本文・固定ページ・フォームに適用
========================================================= */

/* ---------- 基本カラー ---------- */
:root {
  --coffee-bg: #fcfaf7;
  --coffee-bg-soft: #f7f3ee;
  --coffee-line: #ddd4ca;
  --coffee-text: #2f2b27;
  --coffee-title: #26221e;
  --coffee-sub: #6f655d;
  --coffee-muted: #9a8d81;
  --coffee-accent: #6e4d3a;
  --coffee-accent-soft: rgba(110, 77, 58, 0.08);
  --coffee-shadow: rgba(47, 43, 39, 0.06);
}

/* ---------- サイト全体 ---------- */
body {
  background: #f8f5f0;
  color: var(--coffee-text);
}

/* ---------- Cocoon本文エリア ---------- */
.article {
  color: var(--coffee-text);
}

.entry-content {
  background: var(--coffee-bg);
  border: 1px solid var(--coffee-line);
  padding: 32px 28px;
  color: var(--coffee-text);
}

/* ---------- 記事・固定ページヘッダー ---------- */
.article-header {
  padding: 28px 0 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--coffee-line);
  text-align: center;
}

.article-header::before {
  content: "Coffee Tasting Log";
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coffee-muted);
}

.entry-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--coffee-title);
}

/* 日付・更新日を非表示 */
.date-tags {
  display: none;
}

.post-date,
.post-update {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 本文 ---------- */
.entry-content p {
  color: var(--coffee-text);
  line-height: 1.9;
}

.entry-content a {
  color: var(--coffee-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  opacity: 0.8;
}

/* ---------- 本文見出し ---------- */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--coffee-title);
  border-color: var(--coffee-line);
}

.entry-content h2 {
  margin-top: 36px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--coffee-line);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.entry-content h3 {
  margin-top: 28px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--coffee-accent);
}

.entry-content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--coffee-accent);
}

/* ---------- Contact Form 7 基本 ---------- */
.wpcf7 {
  margin: 0;
}

.wpcf7-form {
  display: grid;
  gap: 10px;
}

.wpcf7-form > p {
  margin: 0;
}

/* ラベル系 */
.wpcf7-form > p,
.wpcf7-form label,
.origin-single-field p,
.origin-blend-field p {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--coffee-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

/* ---------- 入力欄 ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid var(--coffee-line);
  background: #ffffff;
  color: var(--coffee-text);
  font-size: 16px;
  line-height: 1.7;
  border-radius: 8px;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #aaa099;
}

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

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--coffee-accent);
  box-shadow: 0 0 0 3px var(--coffee-accent-soft);
  background: #ffffff;
}

.wpcf7 select {
  cursor: pointer;
}

/* ---------- ラジオ・チェックボックス ---------- */
.wpcf7-radio,
.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}

.wpcf7-list-item {
  margin: 0;
}

.wpcf7-list-item label,
.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-radio .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coffee-sub);
  font-size: 14px;
  font-weight: 500;
}

.wpcf7-radio input,
.wpcf7-checkbox input {
  accent-color: var(--coffee-accent);
  margin: 0;
}

/* ---------- タグ・印象チェックボックスをボタン風に ---------- */
.coffee-tags .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.coffee-tags .wpcf7-list-item {
  display: inline-block;
  margin: 0;
}

.coffee-tags .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* 通常のチェックボックスを非表示 */
.coffee-tags input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* タグボタン */
.coffee-tags .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d8cfc5;
  border-radius: 999px;
  background: var(--coffee-bg);
  color: #3a312b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(47, 43, 39, 0.04);
}

.coffee-tags .wpcf7-list-item-label:hover {
  background: #f4eee8;
  border-color: #bfae9f;
  transform: translateY(-1px);
}

.coffee-tags input[type="checkbox"]:checked + .wpcf7-list-item-label {
  background: var(--coffee-accent);
  border-color: var(--coffee-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(110, 77, 58, 0.22);
}

.coffee-tags input[type="checkbox"]:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--coffee-accent);
  outline-offset: 3px;
}

/* ---------- 送信ボタン ---------- */
.wpcf7-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
  margin-top: 24px;
  border: 0;
  background: var(--coffee-accent);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(110, 77, 58, 0.18);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wpcf7-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(110, 77, 58, 0.22);
}

.wpcf7-submit:active {
  transform: translateY(0);
}

.wpcf7-spinner {
  margin-left: 12px;
}

/* ---------- CF7 メッセージ ---------- */
.wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--coffee-line) !important;
  border-radius: 8px;
  background: var(--coffee-bg-soft);
  color: var(--coffee-text);
  font-size: 14px;
  line-height: 1.7;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #9b3d2f;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Cocoonボックス系 ---------- */
.entry-content .blank-box,
.entry-content .information-box,
.entry-content .question-box,
.entry-content .alert-box {
  border-color: var(--coffee-line);
  background: var(--coffee-bg-soft);
  color: var(--coffee-text);
}

/* ---------- 記事フッター ---------- */
.article-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--coffee-line);
}

.footer-meta,
.author-link,
.author-name {
  color: var(--coffee-sub);
}

/* ---------- Cocoonの中央見出しブロック調整 ---------- */
.entry-content h2.wp-block-heading.has-text-align-center.has-cocoon-white-background-color.has-background.has-medium-font-size {
  font-size: 1em !important;
  background: transparent !important;
  color: var(--coffee-accent) !important;
  border: 1px solid var(--coffee-line);
  border-radius: 999px;
  padding: 10px 18px;
  margin: 20px auto;
  display: inline-block;
}

/* ---------- スマホ対応 ---------- */
@media screen and (max-width: 767px) {
  .article-header {
    padding: 10px 0 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--coffee-line);
    text-align: center;
  }

  .article-header::before {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .entry-title {
    margin: 0;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--coffee-title);
  }

  .entry-content {
    padding: 24px 16px;
    border-left: 0;
    border-right: 0;
  }

  .wpcf7-form {
    gap: 8px;
  }

  .wpcf7-form > p,
  .wpcf7-form label,
  .origin-single-field p,
  .origin-blend-field p {
    margin-top: 12px;
    font-size: 13px;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="url"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="number"],
  .wpcf7 input[type="date"],
  .wpcf7 select,
  .wpcf7 textarea {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 10px;
  }

  .wpcf7 textarea {
    min-height: 150px;
  }

  .wpcf7-submit {
    width: 100%;
    min-width: 0;
    padding: 15px 22px;
  }

  .coffee-tags .wpcf7-checkbox {
    gap: 6px;
  }

  .coffee-tags .wpcf7-list-item-label {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 13px;
  }
}

/* ---------- iPhoneの日付入力対策 ---------- */
@media screen and (max-width: 767px) {
  .wpcf7 input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 56px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 12px;
    color: var(--coffee-text);
    background: #ffffff;
  }
}

/* ---------- かなり小さい画面 ---------- */
@media screen and (max-width: 480px) {
  .entry-content {
    padding: 22px 14px;
  }

  .coffee-tags .wpcf7-list-item-label {
    padding: 8px 12px;
    font-size: 12.5px;
  }
}