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

/************************************
** トップページ背景画像
************************************/
body.home .header-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.home .navi {
  margin-bottom: 0 !important;
}
body.home .main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.home .main::before {
  content: "";
  display: block;
  width: 100vw;
  height: 500px; /* PC用の高さ */
  background-image: url("https://lifepicphoto.com/wp-content/uploads/2025/08/背景.png");
  background-size: cover;
  background-position: bottom center;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 30px;
}
/* スマホ用 */
@media screen and (max-width: 767px) {
  body.home .main::before {
    height: auto;
    aspect-ratio: 16/9;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
  }
}

/************************************
** 見出しデザイン
************************************/
/* H2 */
.article h2 {
  border-bottom: 3px solid #F6D8D5;
  padding-bottom: 6px;
  color: #254876;
  font-weight: bold;
}
/* H3 */
.article h3 {
  border-left: 4px solid #F6D8D5;
  padding-left: 8px;
  color: #205057;
}

/************************************
** フッターロゴ
************************************/
.footer-logo img {
  max-width: 200px;
  height: auto;
}
@media screen and (max-width: 600px) {
  .footer-logo img {
    max-width: 120px;
  }
}

/************************************
** 記事関連
************************************/
/* 記事タイトル（トップページ非表示） */
.home .entry-title {
  display: none;
}
/* 投稿日・更新日・著者名を非表示 */
.entry-meta {
  display: none;
}

/************************************
** 本文の区切り線
************************************/
.article hr,
.entry-content hr {
  border: none !important;
  border-top: 3px dotted #a3d5ff !important;
  margin: 2em 0 !important;
}

/************************************
** レスポンシブ用ロゴ調整
************************************/
@media screen and (max-width: 767px) {
  .logo img {
    max-width: 180px;
    height: auto;
  }
}

/************************************
** ボタンデザイン
************************************/
.entry-content .btn,
.btn-wrap .btn,
a.btn,
input[type="submit"],
button {
  background-color: #a3d5ff !important;
  color: #333333 !important;
  border: 1px solid #8cbfe8 !important;
  padding: 0.6em 1.5em !important;
  border-radius: 10px !important;
  display: inline-block !important;
  text-align: center !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}
.entry-content .btn:hover,
.btn-wrap .btn:hover,
a.btn:hover,
input[type="submit"]:hover,
button:hover {
  background-color: #8cbfe8 !important;
  border-color: #76aadb !important;
  color: #333333 !important;
}

/************************************
** FAQデザイン
************************************/
.faq-box {
  border: 1px solid #a3d5ff;
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}
.faq-question {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 15px;
  background-color: #a3d5ff;
  color: #333;
  font-weight: bold;
  font-size: 1.1em;
}
.faq-answer {
  margin: 0;
  padding: 15px;
  background-color: #fff;
  line-height: 1.7;
  color: #333;
}

/************************************
** スマホ表示の画像調整
************************************/
@media screen and (max-width: 768px) {
  /* 全体の画像は横幅100%に収める */
  .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* 縦写真（portraitクラスを付けた画像のみ） */
  .wp-block-image img.portrait {
    max-height: 70vh; /* 画面の70%まで */
    width: auto;
    display: block;
    margin: 0 auto;
  }
}
/************************************
** ボタンデザイン（最優先適用）
************************************/
.entry-content .btn,
.btn-wrap .btn,
a.btn,
input[type="submit"],
button {
  background-color: #a3d5ff !important;
  color: #333333 !important;
  border: 1px solid #8cbfe8 !important;
  padding: 0.6em 1.5em !important;
  border-radius: 10px !important;
  display: inline-block !important;
  text-align: center !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

.entry-content .btn:hover,
.btn-wrap .btn:hover,
a.btn:hover,
input[type="submit"]:hover,
button:hover {
  background-color: #8cbfe8 !important;
  border-color: #76aadb !important;
  color: #333333 !important;
}
/************************************
** ボタンデザイン（最優先適用）
************************************/
.entry-content .btn,
.btn-wrap .btn,
a.btn,
input[type="submit"],
button {
  background-color: #a3d5ff !important; /* 淡い水色 */
  color: #333333 !important;            /* 文字は濃いグレー */
  border: 1px solid #8cbfe8 !important; /* 枠は少し濃い水色 */
  padding: 0.6em 1.5em !important;
  border-radius: 10px !important;       /* ほどよい角丸 */
  display: inline-block !important;
  text-align: center !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

.entry-content .btn:hover,
.btn-wrap .btn:hover,
a.btn:hover,
input[type="submit"]:hover,
button:hover {
  background-color: #8cbfe8 !important; /* ホバー時に少し濃い水色 */
  border-color: #76aadb !important;
  color: #333333 !important;
}
/************************************
** Cocoon本文ボタン専用デザイン
************************************/
.entry-content .btn,
.btn-wrap .btn,
a.btn,
.button-block a {
  background-color: #a3d5ff !important; /* 淡い水色 */
  color: #333333 !important;            /* 濃いグレー文字 */
  border: 1px solid #8cbfe8 !important; /* 少し濃い水色で枠線 */
  padding: 0.6em 1.5em !important;
  border-radius: 10px !important;       /* ほどよい角丸 */
  display: inline-block !important;
  text-align: center !important;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

.entry-content .btn:hover,
.btn-wrap .btn:hover,
a.btn:hover,
.button-block a:hover {
  background-color: #8cbfe8 !important; /* ホバー時に少し濃い水色 */
  border-color: #76aadb !important;
  color: #333333 !important;
}
/************************************
** WordPress標準ボタンブロック用デザイン
************************************/
.wp-block-button__link {
  background-color: #a3d5ff !important; /* 淡い水色 */
  color: #333 !important;              /* 濃いグレー文字 */
  border: 1px solid #8cbfe8 !important;
  border-radius: 10px !important;      /* ほどよい角丸 */
  padding: 0.6em 1.5em !important;
  font-weight: bold;
  text-decoration: none !important;
  display: inline-block;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

.wp-block-button__link:hover {
  background-color: #8cbfe8 !important; /* ホバーで濃い水色 */
  border-color: #76aadb !important;
  color: #333 !important;
}
/************************************
** ボタン：水色枠＋白抜き（統一デザイン）
************************************/

/* WordPress標準のボタンブロック */
.wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff !important;                 /* 白抜き */
  color: #254876 !important;                   /* 文字色は見出しと合わせたブルー系 */
  border: 2px solid #a3d5ff !important;        /* 水色の枠 */
  border-radius: 10px !important;              /* ほどよい角丸 */
  padding: 0.6em 1.5em !important;
  text-decoration: none !important;
  box-shadow: none !important;
  display: inline-block;
  transition: background-color .2s, color .2s, border-color .2s !important;
}
.wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #a3d5ff !important;              /* ホバーで水色塗り */
  color: #333 !important;                      /* 可読性の高い濃グレー */
  border-color: #8cbfe8 !important;
}

/* Cocoonの[btn]ショートコード等（本文ボタン） */
.entry-content .btn,
.btn-wrap .btn,
a.btn,
.button-block a {
  background: #fff !important;                 
  color: #254876 !important;
  border: 2px solid #a3d5ff !important;
  border-radius: 10px !important;
  padding: 0.6em 1.5em !important;
  text-decoration: none !important;
  box-shadow: none !important;
  display: inline-block !important;
  transition: background-color .2s, color .2s, border-color .2s !important;
}
.entry-content .btn:hover,
.btn-wrap .btn:hover,
a.btn:hover,
.button-block a:hover {
  background: #a3d5ff !important;
  color: #333 !important;
  border-color: #8cbfe8 !important;
}
/************************************
** メディアとテキストの画像調整（スマホ）
************************************/
@media screen and (max-width: 768px) {
  /* メディアとテキスト内の画像を最大幅に収める */
  .wp-block-media-text img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  /* 縦写真（追加クラス portrait を付けた場合のみ） */
  .wp-block-media-text img.portrait {
    max-height: 70vh !important; /* 画面の70%に収める */
    width: auto !important;
    height: auto !important;
    object-fit: contain; /* はみ出し防止 */
  }
}
