/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/
/*コピーライト非表示*/
.container.site-footer-copyright p:nth-of-type(2) {
  display: none;
}

/* ヘッダー全体 */
.site-header {
  background-color: #FFFFFF !important;
  padding: 10px 0;
  border-bottom: 1px solid #dd8500;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

/* Lightning の site-header-container は block に戻す（重要） */
#site-header-container {
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ロゴ＋連絡情報の横並びコンテナ */
.header-top {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;
  gap: 20px;
}

/* 左側ロゴ */
.site-header-logo-image {
  flex: 0 0 auto;
  text-align: left;
}

/* 右側連絡情報（右端に寄せる） */
.header-contact {
  flex: 0 0 auto;
  margin-left: auto; /* ← 右端に寄せる決定打 */
  max-width: 500px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  
  padding: 10px 15px;
  border-radius: 4px;
  background: #fff;
  font-weight: bolder;
}

.header-contact .note {
  color: #dd8500;
  font-weight: normal;
  font-size: 13px;
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: center;
  }

  .site-header-logo-image,
  .header-contact {
    text-align: left; /* ← 中央寄せ → 左寄せに変更 */
    margin-bottom: 10px;
    max-width: 100%;
  }
}

/*投稿者名非表示*/
.vcard.author{
  display: none;
}

/* スライドパネル（初期状態は右に隠す） */
.calendar-slide-panel {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
}

/* パネル内 */
.calendar-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.calendar-slide-inner iframe {
  width: 100%;
  height: 90%;
}

/* 閉じるボタン */
.calendar-close {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  background: none;
  border: none;
}

/* スマホ用：縦長フロートボタン */
.calendar-float-btn {
  position: fixed;
  top: 70%;
  right: 0; /* ← writing-mode なら 0 でピタッと右端に付く */
  background: #dd8500;
  color: #fff;
  border: none;
  padding: 12px 10px;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0.7;

  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* PCでは非表示 */
@media (min-width: 769px) {
  .calendar-float-btn {
    display: none;
  }
}

/* PC専用：右下固定カレンダー */
.pc-calendar-box {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 300px;
  background: #fff;
  border: 2px solid #dd8500;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* ヘッダー部分 */
.pc-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #dd8500;
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px 6px 0 0;
}

/* × ボタン */
.pc-calendar-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* 再表示ボタン */
.pc-calendar-open {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #dd8500;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  z-index: 9998;
  display: none; /* 初期は非表示 */
}

/* スマホでは非表示 */
@media (max-width: 768px) {
  .pc-calendar-box,
  .pc-calendar-open {
    display: none !important;
  }
}

.pc-calendar-box {
  opacity: 1;
  transition: opacity 0.8s ease; /* ← フェードアニメーション */
}

.pc-calendar-box.hidden {
  opacity: 0; /* ← 非表示状態 */
  pointer-events: none; /* ← クリック無効化（任意） */
}
