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

/* オリパポイント表示 */
.oripa-points-box {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f8f8ff;
    font-weight: 600;
}

/* オリパを引くボックス */
.oripa-draw-box {
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.oripa-draw-box p {
    margin-bottom: 8px;
}

.oripa-draw-box form {
    margin-top: 12px;
    margin-bottom: 12px;
}

.oripa-draw-box button {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    background: #ff9800;
    color: #fff;
    transition: transform 0.05s ease-out, box-shadow 0.05s ease-out, background 0.2s;
}

.oripa-draw-box button:hover {
    background: #fb8c00;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.oripa-draw-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fffaf0;
    border: 1px solid #ffe0b2;
}

/* オリパ履歴テーブル */
.oripa-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.oripa-history-table th,
.oripa-history-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}

.oripa-history-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* オリパ一覧 */
.oripa-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.oripa-list-item {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    transition: box-shadow 0.15s, transform 0.1s;
}

.oripa-list-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.oripa-list-title {
    margin: 0 0 8px;
    font-size: 16px;
}

.oripa-list-title a {
    text-decoration: none;
}

/* ===========================
   オリパ(single-oripa)用デザイン
   =========================== */

body.single-oripa {
    background: #101016;
}

.oripa-single {
    padding: 40px 16px 60px;
}

.oripa-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.oripa-article {
    background: #181824;
    border-radius: 16px;
    padding: 24px 18px 28px;
    color: #f5f5f5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.oripa-header {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
}

.oripa-title {
    font-size: 22px;
    margin: 0 0 6px;
}

.oripa-cost {
    font-size: 14px;
    color: #ffd54f;
}

.oripa-content {
    margin-top: 12px;
}

/* 既存の抽選ボックスを暗い背景に馴染ませる */
.oripa-article .oripa-draw-box {
    background: #222233;
    border-color: rgba(255,255,255,0.08);
}

.oripa-article .oripa-draw-message {
    background: #263238;
    border-color: #ffa726;
    color: #fffde7;
}

/* 注意書き */
.oripa-notice {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,0.18);
    font-size: 12px;
    color: #b0bec5;
}

.oripa-notice-title {
    font-size: 13px;
    margin: 0 0 4px;
}

.oripa-notice-list {
    margin: 0;
    padding-left: 18px;
}

/* オリパ一覧カードとの雰囲気も合わせておく */
body.page .oripa-list-item {
    background: #ffffff;
}

/* ===========================
   オリパページ全面ダーク化
   =========================== */

/* ページ全体 */
body.single-oripa {
    background: #0c0c11 !important;
}

/* Cocoon のコンテンツ枠（白背景）を消す */
body.single-oripa .wrap {
    background: transparent !important;
    box-shadow: none !important;
}

/* Cocoon の本文コンテナを広げる */
body.single-oripa #content,
body.single-oripa #main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* サイドバー非表示 */
body.single-oripa #sidebar {
    display: none !important;
}

/* 記事トップの無駄な余白を消す */
body.single-oripa .entry-container,
body.single-oripa .entry-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* オリパの本体をセンターに置く */
.oripa-wrap {
    max-width: 780px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

/* オリパ一覧（[oripa_list]）カード調整 */
.oripa-list-item {
    background: #1a1c22 !important;
    color: #f1f1f1;
    border: 1px solid #2a2d35;
    padding: 18px 20px;
    border-radius: 14px;
}

.oripa-list-item a {
    color: #ffb74d !important;
    font-weight: bold;
    text-decoration: none;
}

body.single-page .oripa-history-table {
    background: #1e1f26;
    color: #fff;
}

.oripa-history-table th {
    background: #2a2c33;
    color: #fff;
}

.oripa-history-table td {
    border-color: #333;
}

body.single-page .oripa-history-table {
    background: #1e1f26;
    color: #fff;
}

.oripa-history-table th {
    background: #2a2c33;
    color: #fff;
}

.oripa-history-table td {
    border-color: #333;
}
