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

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

html, body, h1, h2, h3, h4, h5, ol, dl, dt, dd, div, span, img, a, table, tr, th, td, article, figure {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
	color: blue;
	text-decoration: none;
}


h2 {
  position: relative;
  padding: 0.6em 1em;
  background: #e0edff;
  background: #eeeef1;
	border-radius: 10px;
	/* font-size: 1rem; */
  margin: 0;
}

h2:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 30px;
  border: 15px solid transparent;
  border-top: 15px solid  #eeeef1;
  width: 0;
  height: 0;

}

.simple-box6 {
    margin-bottom: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: .8rem;
	 padding: 20px;
}

h3 {
    background-color: #ffffff;
    color: #cccccc;
    border-color: #ffffff;
}

.box1bak {
	/* position: relative; */
    padding: 1.5em;
    margin: 0 0 2em;
    font-weight: 700;
    background: #f0ebeb;
}



/* 親コンテナに最大幅を決める（画像の幅と合わせる） */
.media-wrap {
  max-width: 600px;   /* ここを画像と同じ最大幅にする */
  margin: 0 auto;     /* 中央寄せ */
  width: 100%;
  box-sizing: border-box;
}

/* 画像はコンテナに合わせてレスポンシブ */
.media-wrap .sample-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ボタンラッパー（span）を幅いっぱいにして中央に寄せる */
.box1 {
  display: flex;
  flex-direction: column;
  gap: 10px;            /* ボタン間隔 */
  align-items: center;  /* 中央寄せは維持（子に max-width を与える） */
  width: 100%;
  padding: 0.2em 0;
  box-sizing: border-box;
  /* height: 150px;  ← 固定高さは外す方が安全です */
}

/* span をブロックで幅を制御（親の max-width に従う） */
.hover-button,
.hover-button2 {
  display: block;
  width: 100%;
  max-width: 100%; /* media-wrap の max-width を継承するように */
  box-sizing: border-box;
}

/* 実際のリンクは親幅いっぱいにする */
.hover-button a,
.hover-button2 a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
}

.hover-button a { background-color: #ff9900; }
.hover-button2 a { background-color: #1bd179; }

.hover-button a:hover,
.hover-button2 a:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* スマホでの調整 */
@media (max-width: 480px) {
  .media-wrap { padding: 0 8px; } /* 余白のため */
  .hover-button a,
  .hover-button2 a {
    font-size: 16px;
    padding: 10px;
  }
}




/* DMMバナー中央寄せ */
.center-banner {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

.center-banner .banner-comment {
  font-size: 14px;
  color: #777;
  margin: 0 0 4px 0; /* 上下の余白を最小限に */
}

.center-banner .widget-banner {
  display: inline-block;
}


/* ============================
   共通余白設計ルール
   小: 8px / 中: 16px / 大: 32px
   ============================ */

/* ページタイトル */
h1 {
  margin-top: 0;
  margin-bottom: 32px;
}

/* 見出し */
h2 {
  margin-top: 32px;
  margin-bottom: 32px;
}
h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

/* 本文 */
p {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.7; /* 読みやすさをプラス */
}

/* リスト */
ul, ol {
  margin-top: 16px;
  margin-bottom: 16px;
  padding-left: 20px; /* インデント調整 */
}

/* 画像 */
img {
  display: block;
  margin-top: 16px;
  margin-bottom: 16px;
  max-width: 100%;
  height: auto;
}

/* 引用 */
blockquote {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 16px;
  border-left: 4px solid #ccc;
  background-color: #f9f9f9;
  font-style: italic;
  color: #555;
}

/* 表 */
table {
  margin-top: 24px;
  margin-bottom: 24px;
  border-collapse: collapse;
  width: 100%;
}
table th,
table td {
  padding: 8px;
  border: 1px solid #ddd;
}

/* ボタン・CTA */
.button,
.cta {
  display: inline-block;
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 12px 24px;
  background-color: #ff9900;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.button:hover,
.cta:hover {
  background-color: #e68a00;
}

/* 記事全体 */
.article {
  margin-bottom: 48px;
}



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

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

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