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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* ホームページ：潤石カバーブロック（#jun）の文字と右イラスト間隔・スマホ表示最適化 */
#jun.wp-block-cover {
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 16px;
}

#jun.wp-block-cover .wp-block-cover__inner-container {
  z-index: 2;
}

#jun.wp-block-cover .wp-block-list {
  margin: 0;
  line-height: 1.85;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
}

@media screen and (max-width: 600px) {
  #jun.wp-block-cover {
    min-height: 380px !important;
    padding-left: 12px;
    padding-right: 8px;
  }

  #jun.wp-block-cover .wp-block-list {
    padding-left: 20px;
    font-size: 14px !important;
    line-height: 1.75;
  }
}

@media screen and (max-width: 420px) {
  #jun.wp-block-cover {
    min-height: 340px !important;
    padding-left: 8px;
    padding-right: 4px;
  }

  #jun.wp-block-cover .wp-block-list {
    padding-left: 18px;
    font-size: 13.5px !important;
    line-height: 1.7;
  }
}

/* =========================================================
   上部ヘッダー＆ナビゲーションメニュー改善（PC・スマホ対応）
   ========================================================= */
body #header-container {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.96) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 3px solid #D24726;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.admin-bar #header-container {
  top: 32px;
}

body #header-container #header-container-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px !important;
  min-height: 66px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
}

body #header-container #header {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

body #header-container .logo-header {
  padding: 0;
  margin: 0;
}

body #header-container .logo-header img {
  height: 36px !important;
  width: auto !important;
  max-width: 240px !important;
  display: block;
  transition: opacity 0.2s ease;
}

body #header-container .logo-header a:hover img {
  opacity: 0.82;
}

/* PCナビゲーション本体 */
body #header-container #navi {
  background-color: transparent !important;
  justify-content: flex-end !important;
  flex-grow: 1 !important;
}

body #header-container #navi .navi-in {
  width: auto;
  margin: 0;
}

body #header-container #navi .navi-in > ul.menu-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

body #header-container #navi .navi-in > ul.menu-header > li {
  width: auto;
  position: relative;
}

body #header-container #navi .navi-in > ul.menu-header > li > a {
  height: 66px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #222222 !important;
  background-color: transparent !important;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body #header-container #navi .navi-in > ul.menu-header > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: #D24726;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

body #header-container #navi .navi-in > ul.menu-header > li:hover > a,
body #header-container #navi .navi-in > ul.menu-header > li > a:hover {
  color: #D24726 !important;
  background-color: rgba(210, 71, 38, 0.04) !important;
}

body #header-container #navi .navi-in > ul.menu-header > li:hover > a::after,
body #header-container #navi .navi-in > ul.menu-header > li > a:hover::after {
  transform: scaleX(1);
}

body #header-container #navi .top-has-sub,
body #header-container #navi .sub-has-sub {
  color: #888888;
  transition: color 0.2s ease, transform 0.2s ease;
}

body #header-container #navi .navi-in > ul.menu-header > li:hover > a .top-has-sub {
  color: #D24726;
  transform: translateY(1px);
}

/* PCドロップダウン（第2・第3階層） */
body #header-container #navi .navi-in > ul.menu-header .sub-menu {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  width: 240px;
  min-width: 240px;
  top: 100%;
  left: 0;
  z-index: 1000;
}

body #header-container #navi .navi-in > ul.menu-header .sub-menu li {
  position: relative;
  width: 100%;
}

body #header-container #navi .navi-in > ul.menu-header .sub-menu a {
  height: auto !important;
  line-height: 1.5 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px !important;
  font-weight: 500;
  color: #333333 !important;
  background-color: transparent !important;
  transition: background-color 0.16s ease, color 0.16s ease;
}

body #header-container #navi .navi-in > ul.menu-header .sub-menu .item-label {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body #header-container #navi .navi-in > ul.menu-header .sub-menu li:hover > a,
body #header-container #navi .navi-in > ul.menu-header .sub-menu a:hover {
  background-color: #fdf3f0 !important;
  color: #D24726 !important;
}

body #header-container #navi .navi-in > ul.menu-header .sub-menu li:hover > a .sub-has-sub {
  color: #D24726;
}

/* 第3階層フライアウト */
body #header-container #navi .navi-in > ul.menu-header .sub-menu .sub-menu {
  position: absolute !important;
  top: -7px !important;
  left: calc(100% - 2px) !important;
  width: 296px !important;
  min-width: 296px;
  margin-left: 0;
}

body #header-container #navi .navi-in > ul.menu-header .sub-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 14px;
}

/* スマホ・タブレット対応（1023px以下） */
@media screen and (max-width: 1023px) {
  body.admin-bar #header-container {
    top: 0;
  }

  body #header-container #header-container-in {
    min-height: 56px;
    padding: 8px 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body #header-container #header {
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }

  body #header-container .logo-header img {
    width: auto !important;
    max-width: 210px !important;
    height: 34px !important;
    margin: 0 auto;
    object-fit: contain;
  }

  /* モバイル下部メニューバー */
  body .mobile-footer-menu-buttons.mobile-menu-buttons {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.07);
    height: 58px;
    justify-content: space-around;
    z-index: 1001 !important;
  }

  body .mobile-footer-menu-buttons .menu-button {
    flex: 1 1 0;
    width: auto;
    color: #333333;
  }

  body .mobile-footer-menu-buttons .menu-icon {
    font-size: 19px;
    color: #333333;
  }

  body .mobile-footer-menu-buttons .menu-caption {
    font-size: 10px;
    font-weight: 600;
    color: #555555;
    opacity: 1;
    margin-top: 2px;
  }

  body .mobile-footer-menu-buttons .menu-button:active .menu-icon,
  body .mobile-footer-menu-buttons .menu-button:active .menu-caption,
  body .mobile-footer-menu-buttons .menu-button:hover .menu-icon,
  body .mobile-footer-menu-buttons .menu-button:hover .menu-caption {
    color: #D24726;
  }

  /* スライドインメニュー（ドロワー） */
  body #navi-menu-content {
    background-color: #ffffff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.16);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 8px;
    z-index: 1002 !important;
  }

  body #navi-menu-content .navi-menu-close-button {
    width: 36px;
    height: 36px;
    margin: 6px 14px 10px auto;
    border-radius: 50%;
    background-color: #f3f3f3;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  body #navi-menu-content .menu-drawer {
    padding: 0 14px 40px;
  }

  body #navi-menu-content .menu-drawer > li > a {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
    background-color: #faf7f6;
    border-left: 3px solid #D24726;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin: 10px 0 4px;
    line-height: 1.45;
  }

  body #navi-menu-content .menu-drawer .sub-menu {
    padding-left: 12px;
    margin: 0;
  }

  body #navi-menu-content .menu-drawer > li > .sub-menu > li > a {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    padding: 11px 12px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.45;
  }

  body #navi-menu-content .menu-drawer .sub-menu .sub-menu {
    padding-left: 14px;
    margin: 4px 0 8px;
    border-left: 2px solid #ecd9d4;
  }

  body #navi-menu-content .menu-drawer .sub-menu .sub-menu > li > a {
    font-size: 13.5px;
    font-weight: 400;
    color: #555555;
    padding: 11px 12px;
    border-bottom: none;
    border-radius: 6px;
    line-height: 1.45;
  }

  body #navi-menu-content .menu-drawer a:hover,
  body #navi-menu-content .menu-drawer a:active {
    background-color: #fdf3f0;
    color: #D24726;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}




