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

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


/* ↓ここから貼り付け↓ */

/* --- グルーヴ温泉 投票システム 強化スタイル --- */

.onsen-vote-box {
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    background: #fff;
    box-shadow: 6px 6px 0px #eee;
}

/* 集計結果ボックス */
.onsen-summary {
    background: #333;
    color: #ffffff;
    padding: 20px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.summary-top { 
    font-size: 1.2em;
    font-weight: bold; 
    line-height: 1.6;
    width: 100%;
}

.winner-text-real { letter-spacing: 4px; }

/* 未投票時の隠し設定 */
.not-voted .vote-result-reveal {
    display: none; /* グラフと数値を隠す */
}

.is-voted .vote-result-reveal {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* データ数表示 */
.summary-meta { 
    font-size: 0.85em; 
    margin-top: 5px; 
    margin-bottom: 20px;
    color: #888; 
    text-align: center;
}

.vote-section { margin-bottom: 20px; }

.vote-group-label {
    display: block;
    font-weight: bold;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    border-left: 4px solid #333;
    padding-left: 10px;
}

.vote-options-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.vote-item { flex: 1; min-width: 100px; }

/* 選択ボタン */
.onsen-vbtn {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.onsen-vbtn.voted {
    background: #333;
    color: #ffffff;
    border-color: #333;
}

/* グラフ表示 */
.vote-bar-bg { height: 4px; background: #eee; margin-top: 5px; border-radius: 2px; }
.vote-bar-fill { height: 100%; background: #333; border-radius: 2px; transition: width 0.5s ease; }
.vote-percent-label { font-size: 0.7em; color: #999; text-align: right; display: block; }

/* 送信エリア */
.onsen-submit-area { 
    margin-top: 30px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.onsen-guide-box {
    text-align: center;
    margin-bottom: 10px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.vote-guide { font-size: 0.9em; font-weight: bold; color: #666; margin: 0 !important; }
.vote-guide .alert { color: #d32f2f; animation: blink 1.5s infinite; }
.vote-guide .ready { color: #2e7d32; }
@keyframes blink { 0% {opacity: 1;} 50% {opacity: 0.5;} 100% {opacity: 1;} }

.onsen-submit-btn {
    width: 100%;
    max-width: 500px;
    background: #333;
    color: #ffffff;
    border: 1px solid #333;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 0 #1a1a1a;
    transition: all 0.2s;
}

.onsen-submit-btn:disabled { background: #e0e0e0; color: #999; border-color: #d0d0d0; box-shadow: none; cursor: not-allowed; }
.onsen-submit-btn:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 #1a1a1a; }

/* スマホ対応 */
@media screen and (max-width: 480px) {
    .vote-item { min-width: 100%; }
    .onsen-vote-box { padding: 20px 15px; }
}

/* ↑ここまで貼り付け↑ */


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

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

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