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

.shadow {
    margin-top: 5px; /* 画像の上の余白*/
    display: inline-block; 
    box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.8); /*横方向　下方向　ぼかし　広がり　色 */
}

dl {
	margin-bottom: 20px;
  }
  
  dt {
	font-weight: bold;
	margin-bottom: 5px;
	color: #333;
	border-bottom: 1px solid #ccc;
	padding-bottom: 3px;
  }
  
  dd {
	margin-left: 0;
	margin-bottom: 15px;
	line-height: 1.5;
  }
  
  dd p {
	margin: 0;
  }

.box26 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #95ccff;
    border-radius: 8px;
}
.box26 .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 19px;
    background: #FFF;
    color: #95ccff;
    font-weight: bold;
}
.box26 p {
    margin: 0; 
    padding: 0;
}

/* ボタン装飾 */
a.button_0129 {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	width: 100%;
	margin: auto;
	padding: 1rem 4rem;
	font-weight: bold;
	border: 2px solid #27acd9;
	background: #27acd9;
	color: #fff;
	border-radius: 100vh;
	transition: 0.5s;
}
a.button_0129:hover {
	color: #27acd9;
	background: #fff;
}

/* 最近更新された記事 */


.wp-block-latest-posts__list.lastupdated-posts {
  padding: 0;
  margin: 0;
}

.wp-block-latest-posts__list.lastupdated-posts ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.wp-block-latest-posts__list.lastupdated-posts li {
  padding: 0;
  margin: 0 0 0.8em 0;
  list-style: none;
}

.wp-block-latest-posts__list.lastupdated-posts a {
  color: black;    /* リンクカラー */
}

.skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line:nth-child(even) { width: 100%; }
.skeleton-line:nth-child(4n+1) { width: 80%; }
.skeleton-line:nth-child(4n+3) { width: 90%; }

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (min-width: 768px) {
    .skeleton-loader {
        gap: 15px;
    }
    .skeleton-line {
        height: 18px;
    }
}


/* 以下、blur関係のCSS */

/* コンテナを相対位置指定 */
.blur-container {
  position: relative;
  min-height: 400px; /* 最小高さを設定 */
}

/* 初期状態では常にモザイクがかかった状態 */
.blurred-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* 認証後にJavaScriptでこのクラスが追加される */
.blurred-content.authenticated {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

/* オーバーレイは記事コンテンツ部分のみをカバー（上部に配置） */
.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(0, 0, 0, 0.8);*/
  background: transparent; /* 背景を透明に */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* center から flex-start に変更 */
  padding-top: 20px; /* 上部に少し余白を追加 */
  z-index: 100;
  backdrop-filter: blur(5px);
}

/* JavaScriptでこのクラスが追加されると非表示になる */
.blur-overlay.hidden {
  display: none;
}

/* 認証モーダル */
.auth-modal {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease;
  margin-bottom: 20px; /* 下部に余白を追加 */
}

@keyframes modalSlideIn {
  from {
      transform: translateY(-50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

.auth-modal h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.5rem;
}

.auth-modal p {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.6;
}

/* 認証フォーム */
.auth-form {
  margin-bottom: 1.5rem;
}

.auth-form input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.auth-form input[type="text"]:focus {
  outline: none;
  border-color: #007cba;
}

.auth-button {
  background: linear-gradient(135deg, #007cba, #005a87);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.auth-button:hover {
  background: linear-gradient(135deg, #005a87, #007cba);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* 認証コード取得リンク */
.auth-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.auth-link a {
  color: #007cba;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.auth-link a:hover {
  color: #005a87;
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .blur-overlay {
      padding-top: 10px;
  }
  
  .auth-modal {
      padding: 1.5rem;
      margin: 1rem;
  }
  
  .auth-modal h3 {
      font-size: 1.3rem;
  }
}