/*
Theme Name: Cocoon Child
Template: cocoon-master
*/
@charset "utf-8";

/* ===============================================
 * 1. Cocoon標準要素の強制リセット（防波堤・隙間抹殺）
 * =============================================== */

/* 日付・メタ情報などを非表示 */
.entry-meta, .post-date, .post-update, .date-tags, .p-date, .u-date, 
.header-date, .entry-time, .fa-clock, .fa-history, .fa-repeat,
.entry-title, #sidebar, .breadcrumb, .ad-space, .mobile-header-menu-buttons {
    display: none !important;
}

/* ヘッダーとメインの間の線を消す */
#header, 
.header-container, 
.entry-title, 
#sidebar, 
.breadcrumb, 
.ad-space, 
.mobile-header-menu-buttons, 
.search-edit, 
.footer-meta,
.footer-bottom,
.copyright,
.source-org {
    display: none !important;
}

/* 全幅化 & 隙間の原因となるパディングを徹底排除 */
#container, 
.content, 
.main, 
#main,
.entry-content, 
.wrap, 
.column-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
/* Cocoonの見出し装飾（左線など）をリセット */
.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}


/* ===============================================
 * 2. サイト全体の基本設定
 * =============================================== */
body {
    position: relative !important;
    background-image: url('https://graziamusicschool.com/wp-content/uploads/2026/02/haikei2.jpg') !important;
    background-repeat: repeat !important;
    background-size: auto !important; 
    background-attachment: fixed !important;
    margin: 0;
    padding: 0;
}
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.8); z-index: -1;
}

/* ===============================================
 * 3. 自作ヘッダー & 波形（乖離防止）
 * =============================================== */
header { 
    background-color: #dfc7d1 !important; 
    width: 100% !important; 
    display: block !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative; /* 基準を明確にする */
    z-index: 10;
}
.header-inner { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    padding: 10px 20px !important; 
    max-width: 100% !important; 
    margin: 0 auto !important; 
    flex-wrap: nowrap !important;
}

/* ロゴ & ナビ（既存のまま） */
.logo { display: flex !important; align-items: center !important; gap: 10px !important; }
.logo-icon { width: 80px !important; height: auto !important; }
.logo-text { font-size: 2em; font-weight: bold; color: #5e3c8f; font-family: 'Zapfino', sans-serif; line-height: 1.2; }
.subtitle { font-size: 0.5em; display: block; color: #5e3c8f; }
.nav-links { display: flex !important; gap: 15px !important; list-style: none !important; }
.nav-links a { 
color: #8c178c;
text-decoration: none; 
font-weight: 500; font-family: "Hiragino Mincho ProN", serif; 
padding: 8px 10px; 
position: relative;
 }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0%; background-color: #8c178c; transition: 0.3s; }
.nav-links a:hover::after { width: 100%; }

/* 波（乖離を根性で埋める） */
.wave { 
    display: block !important;
    width: 100vw !important;
    vertical-align: bottom !important; /* topではなくbottomを試してください */
    margin-top: -1px !important;       /* 1px重ねて隙間を物理的に消す */
    line-height: 0 !important;
    font-size: 0 !important; 
}

/* --- 以下、コンテンツ・ギャラリー・フッターは既存のまま --- */

.container2 { 
    display: block !important; 
    max-width: 800px !important; 
    margin: 40px auto !important; 
    text-align: center !important; 
    padding: 0 20px !important; 
    font-family: "Hiragino Mincho ProN", serif; 
}
.container2 p { line-height: 2.3 !important; font-size: 1.1rem !important; font-family: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif  !important;}
.decorated-title { text-align: center; margin: 60px 0 20px 0; }
.decoration-bottom { width: 300px; display: block; margin: 0 auto; opacity: 0.7; }
h1,h2,h3 { font-family: "Hiragino Mincho ProN", serif !important; font-size: 2rem !important; text-align: center !important; }

.gallery { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 20px !important; 
    max-width: 1000px !important; 
    margin: 40px auto !important; 
}
.gallery-item { 
    background: rgba(246, 239, 249, 0.5); 
    border: 2.5px solid #a28700; 
    border-radius: 12px; 
    overflow: hidden; 
    transition: 0.3s; 
}
.gallery-item img { width: 100% !important; height: 250px !important; object-fit: cover !important; }
.gallery-item:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0,0,0,0.2); }
.caption {
  padding: 15px;
  font-size: 1.1em;
  color: #340634;
  font-family: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
  text-align: center;
}
/* ギャラリーキャプション構造 */

.caption-title{
  display:block;
  font-size:1.15rem;
  font-weight:600;
  margin-bottom:5px;
}

.caption-desc{
  display:block;
  font-size:1.0rem;
  color:#555;
  line-height:1.7;
}


.footer { 
    clear: both !important; 
    background-color: #dfc7d1 !important; 
    padding: 40px 20px !important; 
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    width: 100% !important; 
 　margin-top: auto !important;
}
.footer-container { 
    max-width: 1000px !important; 
    margin: 0 auto !important; 
    text-align: center !important; 
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #8c178c;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  text-decoration: none;
  color:#8c178c;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #000000; /* ホバー時に少し淡い紫へ */
}

.footer-copy {
  font-size: 0.8rem;
  color: #999;
}


@media screen and (max-width: 768px) {
    .header-inner { flex-direction: column; }
    .gallery { grid-template-columns: 1fr !important; }
}

/* --- 謎のフッター下の帯を抹殺 --- */

/* Cocoonのボトムメニュー（スマホ用ボタンなど）を非表示 */
.mobile-menu-buttons,
#footer-mobile-buttons,
.footer-bottom,
.footer-copy,
#copyright {
    display: none !important;
}

/* フッターの下に強制的に入る余白をゼロにする */
#container, #main, body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ページ全体の高さを調整して、フッターを底に密着させる */
html, body {
    height: 100%;
}

#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

