@charset "UTF-8";
/*
Theme Name: Emanon Pro child
Theme URI: https://wp-emanon.jp
Author: 株式会社イノ・コード
Author URI: https://innocord.co.jp/
Description: Emanon Pro の子テーマです。
Template: emanon-pro
Version: 1.2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, three-columns, left-sidebar, right-sidebar, theme-options

Emanon Pro 子テーマ用のスタイルを以下に記述 
カスタマイズ機能のCSS圧縮をオンにしている場合、オフに切り替えてからスタイルを追加し、その後、再度CSS圧縮を
オンにしてください。
*/
/* 著者ボックス（チョコレート系） */
.author-box{
  /* 基本 */
  margin: 24px 0;
  padding: 18px 18px 16px;
  border-radius: 14px;

  /* 色（チョコ/クリーム） */
  background: #fff7ef;                 /* クリーム寄り */
  border: 1px solid #e7d4c3;           /* ミルクチョコ感 */
  box-shadow: 0 6px 18px rgba(60, 30, 10, 0.08);

  /* アクセント */
  position: relative;
  overflow: hidden;
}

.author-box::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #6b3f2a, #b07a4a); /* カカオ→キャラメル */
}

.author-box::after{
  /* ほんのり光のニュアンス（好みで削除OK） */
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0));
  transform: rotate(10deg);
  pointer-events: none;
}

/* 文章の整形 */
.author-box p{
  margin: 0 0 10px;
  line-height: 1.75;
  color: #3a2418; /* ダークチョコ文字 */
  font-size: 15px;
}

.author-box p:last-child{
  margin-bottom: 0;
}

/* 見出しっぽい1行目（「この記事を書いた人」） */
.author-box p:first-child strong{
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(107, 63, 42, 0.10);
  color: #5a3423;
}

/* 名前行（2行目想定） */
.author-box p:nth-child(2) strong{
  font-size: 18px;
  color: #2b160f;
}

/* 肩書き（（チョコレートライター））を少し柔らかく見せたい場合 */
.author-box p:nth-child(2){
  margin-top: 4px;
  margin-bottom: 12px;
  color: #5a3a2b;
}

/* モバイル微調整 */
@media (max-width: 600px){
  .author-box{
    padding: 16px 14px 14px;
    border-radius: 12px;
  }
  .author-box p{
    font-size: 14px;
  }
  .author-box p:nth-child(2) strong{
    font-size: 17px;
  }
}
/* ========== アフィリエイト紹介セクション（チョコ系） ========== */
.affiliate-section{
  margin: 32px 0;
  padding: 20px 18px;
  border-radius: 16px;

  background: #fff7ef;                 /* クリーム */
  border: 1px solid #e7d4c3;           /* ミルクチョコ枠 */
  box-shadow: 0 10px 26px rgba(60, 30, 10, 0.08);

  position: relative;
  overflow: hidden;
}

.affiliate-section::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #6b3f2a, #b07a4a); /* カカオ→キャラメル */
}

.affiliate-section::after{
  content: "";
  position: absolute;
  top: -50px;
  right: -70px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0));
  transform: rotate(10deg);
  pointer-events: none;
}

/* 見出し */
.affiliate-section h2{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: #2b160f; /* ダークチョコ */
  padding-left: 10px; /* 左のアクセントと距離 */
}

/* 注意文 */
.affiliate-notice{
  margin: 0 0 14px;
  font-size: 13px;
  color: #6a4a3b;
  background: rgba(107, 63, 42, 0.08);
  border: 1px dashed rgba(107, 63, 42, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
}

/* テーブルをスマホで横スクロールできるように */
.affiliate-section table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #ead7c8;
  border-radius: 12px;
  overflow: hidden; /* 角丸を効かせる */
}

/* ヘッダー */
.affiliate-section thead th{
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: #2b160f;
  background: #f3e4d8;  /* ココアミルク */
  padding: 12px 12px;
  border-bottom: 1px solid #ead7c8;
  white-space: nowrap;
}

/* ボディ */
.affiliate-section tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid #f1e3d8;
  font-size: 14px;
  color: #3a2418;
  vertical-align: middle;
}

/* 交互に薄く */
.affiliate-section tbody tr:nth-child(even) td{
  background: #fffaf5;
}

.affiliate-section tbody tr:last-child td{
  border-bottom: none;
}

/* 1列目（アイテム）を少し強調 */
.affiliate-section tbody td:first-child{
  font-weight: 700;
  color: #2b160f;
}

/* リンク＝ボタン化 */
.affiliate-section tbody td a{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(107, 63, 42, 0.25);
  background: rgba(107, 63, 42, 0.10);
  color: #5a3423;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.affiliate-section tbody td a:hover{
  background: rgba(107, 63, 42, 0.16);
  border-color: rgba(107, 63, 42, 0.35);
  transform: translateY(-1px);
}

.affiliate-section tbody td a:active{
  transform: translateY(0);
}

/* ========== スマホ最適化 ========== */
@media (max-width: 768px){
  .affiliate-section{
    padding: 18px 14px;
    border-radius: 14px;
  }

  .affiliate-section h2{
    font-size: 17px;
  }

  /* 横スクロール（表を崩さず見せる） */
  .affiliate-section table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 列が詰まりすぎないように */
  .affiliate-section thead th,
  .affiliate-section tbody td{
    padding: 10px 10px;
    font-size: 13px;
  }

  /* リンクボタンも少しコンパクトに */
  .affiliate-section tbody td a{
    padding: 7px 10px;
    font-size: 12px;
  }
}
