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

/*-----------------------------------------------------------*/
/* Simple GA Ranking  綺麗に表示させるCSS                    */
/*-----------------------------------------------------------*/
#simple_ga_rankig-2 ol.sga-ranking {/* 「section id」を設定する */
	counter-reset: pupular-ranking;
	padding-left: 0;
}

.sga-ranking-list img {/* サムネイル表示 */
	width: 120px;
	height: 68px;
	float:left;
	overflow: hidden;
	margin-bottom: .3em;
	margin-right: 0.8em
}

.sga-ranking img {
	border: 1px solid black;/* サムネイルの枠線 */
}

li.sga-ranking-list {
	position: relative;
	font-size: 13px;
	content: "";/* オリジナルの番号を非表示にする */
	clear: both;
	display: block;
	margin-bottom: 10px;/* 下の記事との間 */
}

.sga-ranking-list a {/* 記事の文字部分 */
	padding-left: 30px;/* ランキング数字との間 */
	display: block;
}

ol.sga-ranking li {
	clear: both;
	border: none;/* 区切り線を表示しない */
}
/*-----------------------------------------------------------*/



/*-----------------------------------------------------------*/
/*                  簡易MBTIテスト用CSS  */
/*-----------------------------------------------------------*/

/* MBTIテスト全体のラッピング */
#mbti-test {
  width: 80%;
  max-width: 800px; /* 大画面では最大幅800pxまで */
  margin: 20px auto;
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* うっすら影を付ける */
}

/* 質問セットのラッパ */
.question-set {
  margin-bottom: 30px; /* 質問セット間の余白 */
}

/* 各質問ブロックのスタイル */
.question {
  position: relative;    /* ?アイコンをabsolute配置するため */
  margin-bottom: 20px;
  padding: 15px 15px 15px 50px; /* 左側にアイコンの分だけ余白をとる */
  background: #fff;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* ?アイコンのスタイル */
.question-icon {
  position: absolute;
  left: 15px;   /* 質問ブロック左端からの距離 */
  top: 15px;    /* 質問ブロック上端からの距離 */
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #FFD54F; /* 好みで調整 */
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  box-sizing: border-box;
}

/* ラジオボタンとラベルの並び調整 */
.question input[type="radio"] {
  vertical-align: middle; /* ラジオボタンと文字の高さを揃える */
  margin-right: 5px;
}

.question label {
  display: inline-block;  /* 横並び */
  vertical-align: middle; /* 高さを揃える */
  margin: 0;              /* 不要な余白を削除 */
  font-weight: bold;
}

/* 送信ボタンのスタイル */
#submit-btn {
  display: block;
  width: auto;
  padding: 15px 30px;
  margin-top: 30px;
  font-size: 20px;
  background: #5C6BC0;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#submit-btn:hover {
  background: #3949AB;
}

/* 診断結果表示欄 */
#result {
  margin-top: 20px;
  padding: 20px;
  background: #ddd;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
  #mbti-test {
    width: 95%;
  }

  /* ?アイコンを大きく崩れないようブロック化して下に余白を作る */
  .question {
    padding-left: 15px; /* アイコンの分の左余白を少なめに */
  }

  .question-icon {
    position: relative; /* absoluteを解除 */
    left: auto;
    top: auto;
    display: block;     /* ブロックにして上下に余白を取りやすく */
    margin-bottom: 8px; /* アイコンの下の余白 */
    margin-right: 0;
  }

  label {
    margin-left: 5px; /* スマホではマージン少なめ */
  }
}


/*-----------------------------------------------------------*/

/*アフィリエイト用のボタン*/
.af_button>a{
    display: inline-block; 
    padding: 0.5em 2em; 
    text-decoration: none; 
    color: #ee827c;/*文字の色*/
    border: solid 2px #ee827c;/*枠の色*/
    border-radius: 25px; 
    transition: .4s;
    font-weight: bold;
}
.af_button>a:hover{
    background: #ee827c;/*ボタンの色*/
    color: white;
}
.af_button{
text-align:center;/*中央寄せ*/
}

/*リンク　アンダーライン無し*/
// デコレーションなし
a {
text-decoration: none;
}