/*
Theme Name: Cocoon Child
Template: cocoon
Author: Kyosuke
Description: Kyosuke Official Site Custom Child Theme
Version: 1.2.1
*/

/* =========================================================
   📘 フォント読み込み
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&family=Rubik+Glitch&family=Cinzel+Decorative:wght@700&display=swap');

/* =========================================================
   📘 基本設定
   ========================================================= */
body {
  background-color: #000;
  color: #fff;
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =========================================================
   📘 ヘッダーサイトタイトル
   ========================================================= */
.site-title a {
  font-family: 'Rock Salt', cursive !important;
  font-size: 2rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 
    0 0 4px rgba(255,255,255,0.6),
    0 0 10px rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.site-title a:hover {
  text-shadow:
    0 0 6px rgba(255,255,255,0.8),
    0 0 15px rgba(255,255,255,0.5);
}

/* =========================================================
   📘 ヒーローエリア
   ========================================================= */
.hero {
  height: 100vh;
  background-color: #0a0028; /* 背景カラー */
  background-image: url('http://kyosuke-official.com/wp-content/uploads/2025/11/Artist-photo.jpeg');
  background-repeat: no-repeat;
  background-size: contain; 
  background-position: left center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 背景暗めレイヤー */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

/* ヒーロー内テキスト */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 90%;
}

.hero-text h1 {
  position: relative;
  word-break: keep-all;
  white-space: pre-line;
  text-align: center;
  padding: 0 1rem;
  font-family: 'Rock Salt', cursive;
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255,255,255,0.8),
    2px 2px 12px rgba(0,0,0,0.6),
    -2px -2px 12px rgba(0,0,0,0.4);
  animation: fadeIn 2s ease-out, shakeY 6s infinite ease-in-out alternate;
}

/* 文字ノイズ */
.hero-text h1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/noise.png');
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* アニメーション定義 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shakeY {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-2px) rotate(-2deg) scale(1.03); }
  50% { transform: translateY(2px) rotate(2deg) scale(1.02); }
  75% { transform: translateY(-1.5px) rotate(-1.5deg) scale(1.03); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* スマホ対応（ヒーロー） */
@media (max-width: 480px) {
  .hero { background-size: cover; }
  .hero-text { top: 50%; transform: translate(-50%, -50%); }
  .hero-text h1 { font-size: clamp(2rem, 12vw, 5rem); line-height: 1.1; }
}

/* =========================================================
   📘 宣言文セクション
   ========================================================= */
.intro {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  font-family: 'Rock Salt', cursive;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  line-height: 1.8;
  letter-spacing: 0.05em;
  max-width: 900px;
  margin: 0 auto 35px;
  text-shadow: 0 0 4px rgba(255,255,255,0.5), 0 0 10px rgba(255,255,255,0.3);
  animation: fadeUp 1.5s ease-out;
}

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

/* =========================================================
   📘 プロフィールセクション
   ========================================================= */
.profile-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 20px;
  box-sizing: border-box;
}

.flame-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('http://kyosuke-official.com/wp-content/uploads/2025/11/Gibson-Guitar.gif') center/cover no-repeat;
  opacity: 0.45;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

.profile-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: floatText 6s ease-in-out infinite;
}

@keyframes floatText { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }

.profile-content h2 {
  font-size: clamp(2.2rem,5vw,3.5rem);
  margin-bottom: 40px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: 'Cinzel Decorative', serif;
  background: linear-gradient(135deg,#d4af37,#f8f8f8 40%,#b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(255,255,255,0.2),0 4px 16px rgba(0,0,0,0.8);
  animation: metallicGlow 6s ease-in-out infinite alternate;
}

@keyframes metallicGlow { 0%{text-shadow:0 0 10px rgba(255,255,200,0.3),0 0 30px rgba(255,215,100,0.2);} 50%{text-shadow:0 0 20px rgba(255,255,255,0.6),0 0 40px rgba(255,220,150,0.4);} 100%{text-shadow:0 0 8px rgba(255,240,200,0.3),0 0 25px rgba(255,200,120,0.2);} }

.profile-content p {
  font-size: clamp(1rem,2.8vw,1.15rem);
  line-height: 1.9;
  font-weight: 400;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
  max-width: 780px;
  margin: 0 auto;
  letter-spacing: 0.02em;
  text-align: justify;
  text-justify: inter-character;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.profile-content p + p { margin-top: 1.2em; }

/* スマホ対応（プロフィール） */
@media (max-width:768px){
  .profile-section{ min-height:100dvh; padding:60px 15px; align-items:flex-start; }
  .profile-content{ margin-top:15vh; animation:none; max-width:90%; margin:0 auto; padding:0 5%; }
  .profile-content h2{ font-size:2.5rem; margin-bottom:30px; }
  .profile-content p{ font-size:15px; line-height:2; letter-spacing:0.04em; text-align:left; text-justify:inter-word; word-break:keep-all; overflow-wrap:anywhere; hyphens:manual; }
  .profile-content p + p{ margin-top:1.2em; }
  .profile-content p span{ white-space:nowrap; }
}

/* =========================================================
   📘 メッセージ部分
   ========================================================= */
.profile-message {
  margin-top:3em;
  text-align:left;
  border-left:3px solid rgba(255,255,255,0.25);
  padding-left:1.2em;
}

.profile-message p {
  font-size:1.1rem;
  line-height:2;
  letter-spacing:0.05em;
  margin:1.5em 0;
  font-family:'Montserrat',sans-serif;
  font-style:italic;
  opacity:0.9;
  text-shadow:0 0 6px rgba(255,255,255,0.15),0 0 12px rgba(255,255,255,0.1);
  transition:opacity 0.3s ease;
}

.profile-message p:hover { opacity:1; text-shadow:0 0 8px rgba(255,255,255,0.25),0 0 20px rgba(255,255,255,0.15); }

/* 最後の一文は強めに */
.profile-message p:last-child{
  font-style:normal;
  font-weight:600;
  opacity:1;
  text-shadow:0 0 8px rgba(255,255,255,0.3),0 0 16px rgba(255,255,255,0.2);
}

/* スマホ対応 */
@media(max-width:768px){
  .profile-message{ padding-left:0.8em; }
  .profile-message p{ font-size:15px; line-height:1.9; }
}

/* =========================================================
   📘 自作SNSリンク（残す）
   ========================================================= */
.social-links{
  margin-top:2em;
  display:flex;
  justify-content:center;
  gap:30px;
}

.social-icon{
  color:#fff;
  font-size:1.8rem;
  transition:all 0.3s ease;
}

.social-icon:hover{
  color:#ff3c00;
  transform:scale(1.15);
}

@media(max-width:768px){
  .social-links{ gap:22px; }
  .social-icon{ font-size:1.6rem; }
}

/* =========================================================
   📘 親テーマSNS（LINE・X・Facebook等）を完全非表示
   ========================================================= */
.ss-top .sns-share-buttons,
.ss-bottom .sns-share-buttons,
.ss-top .sns-share-buttons a,
.ss-bottom .sns-share-buttons a,
[class*=bc-brand-color] .facebook-button,
[class*=bc-brand-color] .line-button,
[class*=bc-brand-color] .x-button {
  display: none !important; /* 親テーマSNSを完全非表示 */
}

/* =====================================
   デフォルトサイドバー・ウィジェット非表示
   ===================================== */
#sidebar, .sidebar, .widget, .widget-area,
#page-top, .widget_search {
  display: none !important; /* 完全非表示 */
}

/* =====================================
   カスタムサイドバー基本スタイル
   ===================================== */
.custom-sidebar {
  position: fixed;       /* 常に画面上に表示 */
  top: 50%;             /* 縦中央 */
  left: 0;              /* 左端に固定 */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0,0,0,0.6); /* 背景半透明 */
  padding: 20px;
  border-radius: 0 10px 10px 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.custom-sidebar a {
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-family: 'Rock Salt', cursive;
  transition: all 0.3s ease;
}

.custom-sidebar a:hover {
  color: #ff3c00;
  transform: scale(1.1);
}

.custom-sidebar a.active {
  color: #ff3c00;
  text-decoration: underline;
}

/* =====================================
   スマホ対応（横型トップバーに変換）
   ===================================== */
@media (max-width: 768px) {
  .custom-sidebar {
    flex-direction: row;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    padding: 10px 0;
    justify-content: space-around;
    border-radius: 0;
    background: rgba(0,0,0,0.85);
  }
  .custom-sidebar a {
    font-size: 14px;
  }
}

/* Cocoonのサイドバーを完全非表示 */
#sidebar,
#sidebar-footer,
#sidebar-mobile {
    display: none !important;
}

