@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: ahogekobo R18 テーマ
Author: ahogekobo
Template: cocoon-master
Version: 1.0.0
*/

/************************************
** 🖋 フォント定義：ラノベPOP
************************************/
@font-face {
  font-family: "LightNovelPOP";
  src: url("fonts/LightNovelPopV2-V2.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/************************************
** 🌸 全体スタイル設定
************************************/
body {
  background-color: #fefefe;
  color: #333;
  font-family: "LightNovelPOP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
}

/* 見出し */
h1, h2, h3, h4 {
  color: #222;
  font-weight: bold;
}

/************************************
** 🔗 リンク色をクラシックな青に統一
************************************/
a {
  color: #3366cc;
  text-decoration: underline;
}
a:hover {
  color: #224499;
  text-decoration: underline;
}

/************************************
** 🎨 ボタンスタイル
************************************/
button,
input[type="submit"] {
  background-color: #c090a0;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
button:hover,
input[type="submit"]:hover {
  background-color: #a07080;
}

/************************************
** 📚 サイドバーとフッター
************************************/
.sidebar {
  background-color: #f8f8f8;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.2);
}

footer {
  background-color: #f3f3f3;
  color: #555;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
}

/* ================================
🔞 R18年齢確認ポップアップ：デザイン演出
================================= */
#age-gate {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.6s ease-out forwards;
}
#age-gate.visible {
  display: flex;
}

.age-gate-inner {
  background: rgba(30, 0, 30, 0.9);
  padding: 2em;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 64, 96, 0.4);
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease-in-out;
  color: #fff;
  font-family: "LightNovelPOP", sans-serif;
}
.age-gate-inner.show {
  opacity: 1;
  transform: scale(1);
}

/* 🛑 見出しの強調 */
.age-gate-inner h2 {
  font-size: 1.8em;
  font-weight: bold;
  background: linear-gradient(90deg, #c04060, #a03050);
  padding: 0.8em 1.5em;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 64, 96, 0.6);
  animation: glowPulse 1.5s infinite ease-in-out;
  display: inline-block;
  margin-bottom: 1em;
}

/* 🌸 ボタン */
.age-gate-buttons button {
  background: #c090a0;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 0.7em 2em;
  border-radius: 10px;
  margin: 0 1em;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 0 8px rgba(255, 128, 160, 0.4);
  transition: background 0.3s;
}
.age-gate-buttons button:hover {
  background: #a07080;
}

/* 🌈 フェード・グローアニメーション */
@keyframes glowPulse {
  0%   { box-shadow: 0 0 8px rgba(255, 64, 96, 0.4); }
  50%  { box-shadow: 0 0 24px rgba(255, 64, 96, 0.8); }
  100% { box-shadow: 0 0 8px rgba(255, 64, 96, 0.4); }
}

@keyframes fadeInBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/************************************
** 📱 レスポンシブ対応
************************************/
@media screen and (max-width: 1023px){
  body {
    font-size: 95%;
  }
}

@media screen and (max-width: 834px){
  .sidebar {
    display: none;
  }
}

@media screen and (max-width: 480px){
  body {
    font-size: 90%;
    padding: 10px;
  }
  h1, h2 {
    font-size: 1.4em;
  }
}