@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: LCP特化の最軽量テーマ（ウィジェット対応＋サイドバー美調整）
Author: nekotatsu
Template: cocoon-master
Version: 1.0.3
*/

/* ------------------------------
 🖋 Webフォント（遅延読み込み向け）
------------------------------ */
@font-face {
  font-family: "CorporateLogo";
  src: url("fonts/Corporate-Logo-Bold-ver3.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------
 🌸 基本レイアウト（最小限）
------------------------------ */
body {
  font-family: "CorporateLogo", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

a {
  color: #336699;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ------------------------------
 🖼 LCPロゴ最適化（サイズ固定＋CLS防止）
------------------------------ */
.header-site-logo-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 480px) {
  .header-site-logo-image {
    width: 180px;
    height: 180px;
  }
}

/* ------------------------------
 ✅ サイドバー調整（表示＋デザイン最適化）
------------------------------ */
.sidebar {
  display: block !important;
  float: right;
  width: 300px;
  margin-left: 40px;
}

@media screen and (max-width: 768px) {
  .sidebar {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
}

/* 🎛 ウィジェットボックス */
.sidebar .widget {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 24px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.95em;
}

/* 🎯 ウィジェットタイトル */
.sidebar .widgettitle {
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

/* 🧩 セレクトボックス */
.sidebar select {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.95em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
  appearance: auto;
}

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

@media screen and (max-width: 480px) {
  body {
    font-size: 90%;
    padding: 8px;
  }
}