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

/************************************
** 子テーマ用のスタイル
************************************/
/* デフォルト */
a {
  transition: 0.5s;
}
.navi-in > ul {
  flex-wrap: unset;
}
main .article p {
  margin-bottom: 0.8em;
}
/* ヘッダー */
.header-in {
  justify-content: unset;
}
.logo-image {
  padding: 30px 0;
}

/* 罫線除去 */
.header-container:after,
.footer:before {
  background: unset;
}
/* フッター位置調整 */
#footer {
  padding-bottom: 20px;
}
/* アピールリスト */
.appeal-message {
  text-align: left;
}
.appeal-in {
  padding-left: 0;
  padding-right: 0;
}
.appeal-content {
  max-width: unset;
  background-color: unset;
  border: 2px dashed #ccc;
}
/* ボタンブロックホバー */
a.wp-block-button__link:hover {
  opacity: 0.7;
}
/* 投稿日付 */
.date-tags {
  margin-top: 1.5em;
}
body .post-date,
.post-update {
  font-family: unset;
}

/* クエリーループグリッド表示 */
.wp-block-post-template.is-layout-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 表示したい列数 */
  gap: 24px !important;
}

/* スマホ表示 */
@media (max-width: 786px) {
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
/* 横並びのアイコンと日付の間隔 */
.top-archive .is-layout-flex {
  gap: 3px;
}
/* メディアとテキストブロック */
.wp-block-media-text {
  gap: 1.5em;
}
.wp-block-media-text > .wp-block-media-text__content {
  padding: 0;
}

/* Contact Form 7 */
form.wpcf7-form input[type="submit"] {
  font-size: 18px;
  background-color: #fce2cc;
  border: unset;
  border-radius: 100px;
}

/* ボタン */
.button-block,
.wp-block-button {
  white-space: nowrap;
}
.box-content a {
  box-sizing: content-box;
}

/* モバイルメニュー */
.mobile-footer-menu-buttons {
  bottom: 0 !important;
}

/* YouTube動画 */
.is-provider-youtube .video-container {
  max-width: unset;
}

/*-------------------------
Stripe API
---------------------------*/
/* 入力フォーム */
#stripe-bank-transfer-wrapper {
  max-width: 580px;
  margin: 50px auto;
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(7, 6, 6, 0.06);
}
form#stripe-bank-transfer-form h3 {
  margin-bottom: 1em;
  text-align: center;
  border-width: 2px;
}
form#stripe-bank-transfer-form > p {
  font-size: 16px;
  color: #666;
}
form#stripe-bank-transfer-form dl > div {
  margin-bottom: 18px;
}
form#stripe-bank-transfer-form dt {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: bold;
}
form#stripe-bank-transfer-form dt span {
  color: #d9534f;
}
form#stripe-bank-transfer-form dd {
  margin-left: unset;
}
form#stripe-bank-transfer-form dd input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

/* ご支援の種類 */
#sbt_type-group dd label {
  margin-bottom: 10px;
  padding: 5px 15px;
  background-color: #f9fbfd;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: block;
  cursor: pointer;
}
#sbt_type-group dd strong {
  font-size: 15px;
}
#sbt_type-group dd p {
  font-size: 14px;
  color: #555;
}

/* 掲載用のお名前 */
#sbt-display-name-group {
  margin-bottom: 15px;
  padding: 12px;
  background-color: #f0f6fc;
  border: 1px solid #cce0f5;
  border-radius: 6px;
  display: none;
}
#sbt-display-name-group dt {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: bold;
}
#sbt-display-name-group dd p {
  margin-top: 4px;
  color: #555;
  font-size: 14px;
}

/* お名前・メールアドレス・支援金額 */
#sbt-name-group dt,
#sbt-email-group dt,
#sbt-amount-group dt {
  margin-bottom: 5px;
  font-weight: bold;
}

/* 支援金額 */
#sbt-amount-group dt #sbt-min-note {
  color: #666;
  font-weight: normal;
}
#sbt-amount-group dd div {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
#sbt-amount-group dd button {
  padding: 8px;
  color: #0066cc;
  font-size: 15px;
  font-weight: bold;
  background-color: #fff;
  border: 1px solid #0066cc;
  border-radius: 6px;
  flex: 1;
  cursor: pointer;
}
#sbt-amount-group button.sbt-high-btn {
  display: none;
}
#sbt-amount-group #sbt-amount {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* 発行する */
#sbt-submit-btn {
  width: 100%;
  padding: 14px;
  background: #0066cc;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

/* ローディング */
div#sbt-loading {
  display: none;
  text-align: center;
  margin-top: 12px;
  color: #0066cc;
  font-weight: bold;
}

/* 口座案内表示エリア */
#stripe-bank-result {
  display: none;
}
#stripe-bank-result div {
  margin-bottom: 15px;
  padding: 10px;
  text-align: center;
  background: #e8f5e9;
  border-radius: 8px;
}
#stripe-bank-result div h3 {
  margin: 0;
  color: #2e7d32;
  font-size: 18px;
}
#stripe-bank-result div p {
  font-size: 12px;
  color: #444;
  margin: 5px 0 0 0;
}
#stripe-bank-result table {
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
  border-collapse: collapse;
}
#stripe-bank-result th {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  background: #f9f9f9;
  width: 35%;
}
#stripe-bank-result td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
#stripe-bank-result #res-number {
  font-size: 18px;
  font-weight: bold;
  color: #d9534f;
  letter-spacing: 1px;
}
#stripe-bank-result #copy-btn {
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 12px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
#stripe-bank-result #res-description {
  margin-top: 15px;
  padding: 12px;
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  font-size: 12px;
  color: #5d4037;
  line-height: 1.5;
}
#stripe-bank-result #res-hosted {
  margin-top: 20px;
  text-align: center;
}
#stripe-bank-result #res-hosted-link {
  padding: 10px 20px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  background: #6c757d;
  border-radius: 6px;
  display: inline-block;
}
