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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* 上部の余白を縮める */
.site-content,
.entry-content,
.page .entry-header,
header,
.wp-block-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ページタイトル部分（CocoonやTwenty Twenty-Five共通） */
.entry-header {
  display: none; /* ← タイトル自体も非表示にしたい場合 */
}

/* Cocoonの上部余白をさらに詰める（必要な場合だけ） */
#content,            /* コンテンツ全体のラッパー */
#main,               /* メインカラム */
.main,               /* 一部スキンで使われるクラス */
.breadcrumb,         /* パンくず */
.breadcrumb-area,    /* スキンにより */
.header-container, 
.header-in {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* おみくじ画像エリア */
.omikuji-space {
  width: 100%;
  text-align: center;
  margin: 10px 0 20px 0; /* 上下の余白（好みに調整） */
}

.omikuji-space img {
  max-width: 120px;      /* iPhone SEでも収まるサイズ */
  height: auto;
  border-radius: 10px;   /* 柔らかい印象に */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
#att-omikuji {
  margin-top: 20px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

#att-omikuji-emoji {
  font-size: 32px;
}

#att-omikuji-label {
  font-size: 22px;
  font-weight: bold;
  margin-top: 6px;
  color: #333;
}

#att-omikuji-img {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 10px auto 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#att-omikuji-bonus {
  font-size: 16px;
  margin-top: 6px;
  color: #d66;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 登下校スキャンページの余白を詰める */
h1, .entry-content h1 {
  margin-bottom: 0.4em !important; /* 下の余白を少なく */
}

.attendance-wrapper,
#att-scan-form {
  margin-top: 0 !important;  /* 上の余白を削除 */
  padding-top: 0 !important;
}

/* ページタイトルを消す（表示したいならここをコメントアウト） */
.entry-header { display: none !important; }

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

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

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

