@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* =========================================
   1. 新着記事ボックス (Index Tab Buttons)
   ========================================= */
/* ボックスのカラーを #00053A に変更 */
.index-tab-buttons,
.index-tab-button {
  background-color: #00053A !important;
  border-color: #00053A !important;
  color: #fff !important;
}

/* アクティブなタブも同色で維持 */
.index-tab-button:checked,
input[name="index_tab_buttons"]:checked+.index-tab-button {
  background-color: #00053A !important;
  opacity: 1;
}

/* =========================================
   2. 記事画像の統一 (Article Image Unification)
   ========================================= */
/* アスペクト比を16:9に固定し、画像をカバー表示にする */
.entry-card-wrap figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.entry-card-wrap figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   3. カスタム著者プロフィール (Custom Author Profile)
   ========================================= */
.custom-author-profile {
  margin: 60px 0 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.custom-author-profile:hover {
  transform: translateY(-2px);
}

/* 背景ロゴ透かし (Background Logo Watermark) */
.custom-author-profile::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background-image: url('images/kiyono-logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.custom-author-inner {
  display: flex;
  align-items: flex-start;
  gap: 35px;
  position: relative;
  z-index: 1;
}

.custom-author-image {
  flex-shrink: 0;
  position: relative;
}

.custom-author-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  background-color: #f0f2f5;
}

.custom-author-avatar-img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 12px 30px rgba(66, 133, 244, 0.2);
}

.custom-author-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

h3.custom-author-name {
  margin: 0 0 10px 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #222;
  line-height: 1.2;
}

.custom-author-name a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.custom-author-name a:hover {
  color: #4285f4;
}

.custom-author-description {
  font-size: 0.95rem;
  color: #5f6368;
  line-height: 1.7;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Action Area */
.custom-author-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.custom-author-social {
  display: flex;
  gap: 10px;
}

.author-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  color: #666;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 16px;
}

.author-social-link:hover {
  transform: translateY(-4px);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Social Colors */
.author-social-link.twitter:hover {
  background-color: #1DA1F2;
}

.author-social-link.facebook:hover {
  background-color: #1877F2;
}

.author-social-link.instagram:hover {
  background-color: #E4405F;
}

.author-social-link.linkedin:hover {
  background-color: #0A66C2;
}

.author-social-link.github:hover {
  background-color: #24292e;
}

.author-social-link.website:hover {
  background-color: #4285f4;
}

.custom-author-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background-color: #4285f4;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
  transition: all 0.3s ease;
}

.custom-author-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(66, 133, 244, 0.35);
  background-color: #3367d6;
}

.custom-author-link a::after {
  content: "\f138";
  font-family: "FontAwesome";
  font-weight: normal;
  margin-left: 10px;
  font-size: 1.1em;
  transition: transform 0.3s;
}

.custom-author-link a:hover::after {
  transform: translateX(4px);
}

/* Responsive */
@media screen and (max-width: 834px) {
  .custom-author-profile {
    padding: 25px;
    margin: 40px 0;
  }

  .custom-author-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .custom-author-actions {
    flex-direction: column;
    gap: 20px;
    border-top: none;
    padding-top: 10px;
    width: 100%;
  }

  .custom-author-social {
    justify-content: center;
    order: 2;
  }

  .custom-author-link {
    width: 100%;
    order: 1;
  }

  .custom-author-link a {
    width: 100%;
  }

  /* =========================================
     5. モバイルヘッダーカスタマイズ (Mobile Header Customization)
     ========================================= */
  /* ロゴを中央寄せ */
  .header-in {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    /* Pack items to top */
    padding: 10px 0 0 0 !important;
    /* Remove bottom padding */
  }

  /* Tagline might be taking space */
  .tagline {
    display: none !important;
  }

  .logo-header {
    margin: 10px auto 0px !important;
    /* Bottom margin reduced to 0 */
    float: none !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
    /* Ensure line-height doesn't add space */
  }

  .logo-header img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    display: block;
  }

  /* ナビゲーションを強制表示してロゴの下に配置 */
  #navi {
    display: block !important;
    width: 100% !important;
    background-color: transparent;
    /* 背景色が必要なら調整 */
    margin-top: 0px !important;
    /* Explicitly 0 */
    float: none !important;
  }

  #navi .navi-in {
    width: 100% !important;
    display: block !important;
  }

  /* PC用メニューを強制表示してスタイル適用 */
  #navi .menu-header,
  #navi .menu-pc {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
    float: none !important;
  }

  /* モバイル用メニュー（スリックナビ等）は非表示 */
  #navi .menu-mobile,
  .mobile-menu-buttons,
  .mobile-header-menu-buttons {
    display: none !important;
  }

  #navi .menu-header>.menu-item,
  #navi .menu-pc>.menu-item {
    display: inline-block !important;
    float: none !important;
    font-size: 0.9rem;
    /* モバイル用に少し小さく */
    width: auto !important;
  }

  #navi .menu-header>.menu-item>a,
  #navi .menu-pc>.menu-item>a {
    padding: 5px 10px;
    display: block;
    /* color: #333; 元の色を使用 */
  }

  /* List Title Centering - Targeting multiple potential structures */
  .list-title-in,
  .list-title,
  .index-tab-buttons,
  #main .list-title,
  .archive-title {
    text-align: center !important;
    justify-content: center !important;
    display: flex;
    /* Ensure flex for justify-content */
    width: 100%;
  }

  /* If it's the specific tab buttons container */
  .index-tab-buttons {
    display: flex !important;
    justify-content: center !important;
  }
}

/* =========================================
   4. テキストの長さを制限 (Text Truncation)
   ========================================= */
/* タイトルを2行に制限 */
.entry-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.4;
  height: 2.8em;
  /* 1.4 * 2 */
  margin-bottom: 8px;
}

/* 抜粋文を2行に制限 */
.entry-card-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.5;
  height: 3em;
  /* 1.5 * 2 */
  color: #666;
  margin-bottom: 10px;
}