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

/* Garden record buttons */
.garden-record-button {
  display: block;
  width: 100%;
  margin: 1.35em 0;
  text-align: center;
}

.garden-record-button .wp-block-button__link {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  min-height: 58px;
  margin: 0 auto;
  padding: 14px 72px 14px 24px;
  color: #fff !important;
  background: linear-gradient(135deg, #30312d 0%, #1f211e 100%) !important;
  border: 2px solid #f3a052;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(31, 33, 30, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.garden-record-button .wp-block-button__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid #f3a052;
  border-radius: 50%;
  color: #f3a052;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.garden-record-button .wp-block-button__link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 32px;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  padding: 0;
  border-top: 2px solid #f3a052;
  border-right: 2px solid #f3a052;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .garden-record-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 33, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .garden-record-button .wp-block-button__link:hover::after {
    color: #fff;
    background-color: #f3a052;
  }

  .garden-record-button .wp-block-button__link:hover::before {
    border-color: #fff;
  }
}

.garden-record-button .wp-block-button__link:focus-visible {
  outline: 3px solid rgba(243, 160, 82, 0.42);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .garden-record-button .wp-block-button__link {
    width: calc(100% - 24px);
    min-height: 56px;
    padding: 13px 64px 13px 18px;
    font-size: 0.95em;
  }

  .garden-record-button .wp-block-button__link::after {
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .garden-record-button .wp-block-button__link::before {
    right: 27px;
  }
}

/*
  Post heading refinements for the Arofif Oyaji redesign preview.
  Scope is intentionally limited to published post bodies.
*/

body.single-post .article .entry-content h2,
body.single-post .article .entry-content h2.wp-block-heading {
	margin: 2.15em 0 1.05em;
	padding: .72em .9em .72em 1em;
	border: 1px solid #e5e0d6;
	border-left: 6px solid #6f7f4f;
	border-radius: 8px;
	background: linear-gradient(90deg, #ffffff 0%, #fbfaf6 100%);
	box-shadow: 0 4px 12px rgba(55, 50, 38, .05);
	color: #2f332d;
	font-size: clamp(1.25rem, 1.12rem + .38vw, 1.5rem);
	font-weight: 800;
	line-height: 1.42;
	letter-spacing: 0;
}

body.single-post .article .entry-content h3,
body.single-post .article .entry-content h3.wp-block-heading {
	margin: 1.75em 0 .8em;
	padding: .38em .6em .38em .82em;
	border: 0;
	border-left: 4px solid #7d8c5d;
	border-bottom: 1px solid rgba(229, 224, 214, .9);
	border-radius: 5px;
	background: rgba(248, 246, 240, .48);
	color: #2f332d;
	font-size: clamp(1.08rem, 1.02rem + .2vw, 1.28rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
}

@media screen and (max-width: 480px) {
	body.single-post .article .entry-content h2,
	body.single-post .article .entry-content h2.wp-block-heading {
		margin-top: 1.8em;
		margin-bottom: .9em;
		padding: .66em .78em .66em .86em;
		border-left-width: 5px;
		border-radius: 7px;
		box-shadow: 0 3px 9px rgba(55, 50, 38, .045);
		line-height: 1.38;
	}

	body.single-post .article .entry-content h3,
	body.single-post .article .entry-content h3.wp-block-heading {
		margin-top: 1.45em;
		margin-bottom: .68em;
		padding: .34em .5em .34em .68em;
		border-left-width: 3px;
		line-height: 1.42;
	}
}

/* Remove old Cocoon heading decorations only in post bodies */
body.single-post .article .entry-content h2::before,
body.single-post .article .entry-content h2::after,
body.single-post .article .entry-content h2.wp-block-heading::before,
body.single-post .article .entry-content h2.wp-block-heading::after,
body.single-post .article .entry-content h3::before,
body.single-post .article .entry-content h3::after,
body.single-post .article .entry-content h3.wp-block-heading::before,
body.single-post .article .entry-content h3.wp-block-heading::after {
	content: none;
	display: none;
}

/* Force H3 redesign over previous decorative heading style */
body.single-post .article .entry-content h3,
body.single-post .article .entry-content h3.wp-block-heading {
	margin: 1.75em 0 .8em;
	padding: .38em .6em .38em .82em;
	border: 0;
	border-left: 4px solid #7d8c5d;
	border-bottom: 1px solid rgba(229, 224, 214, .9);
	border-radius: 5px;
	background: rgba(248, 246, 240, .48);
	box-shadow: none;
	color: #2f332d;
	font-size: clamp(1.08rem, 1.02rem + .2vw, 1.28rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
}

@media screen and (max-width: 480px) {
	body.single-post .article .entry-content h3,
	body.single-post .article .entry-content h3.wp-block-heading {
		margin-top: 1.45em;
		margin-bottom: .68em;
		padding: .34em .5em .34em .68em;
		border-left-width: 3px;
		line-height: 1.42;
	}
}

body.single-post .article .entry-content h3,
body.single-post .article .entry-content h3.wp-block-heading {
	padding: .48em .7em .48em .9em;
	font-size: clamp(1.12rem, 1.04rem + .24vw, 1.32rem);
	background: rgba(248, 246, 240, .72);
}