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

/************************************
** 基本設定
************************************/
body {
  padding-bottom: 64px !important;
  background-color: #ffffff;
}

.header,
.main,
.footer,
.content,
.wrap,
.container {
  background-color: #ffffff;
}

.header,
.main,
.footer,
.content {
  border: none;
  box-shadow: none;
}

/************************************
** CTAボタン
************************************/
.cta-button .btn {
  background-color: #41c006;
}

/************************************
** 固定フッターバナー
************************************/
.fixed-footer-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

.fixed-footer-banner__link {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  border-radius: 10px;
  background: #007bff;
  color: #ffffff;
  text-decoration: none;
}

/************************************
** ヘッダーロゴ・ヘッダー画像
** TOPページ以外だけ非表示
************************************/
/* TOPでは何も強制表示しない
   → Cocoon本来の表示を活かす */

/* TOPページ以外のみ非表示 */
body:not(.home):not(.front-page) .header-logo,
body:not(.home):not(.front-page) .header-logo a,
body:not(.home):not(.front-page) .header-logo img,
body:not(.home):not(.front-page) .logo-header,
body:not(.home):not(.front-page) .logo-image,
body:not(.home):not(.front-page) .site-logo-image,
body:not(.home):not(.front-page) .header-image,
body:not(.home):not(.front-page) .header-image-in,
body:not(.home):not(.front-page) .eye-catch,
body:not(.home):not(.front-page) .eye-catch-wrap {
  display: none !important;
}

/************************************
** ヘッダー上の3カラム画像リンク
************************************/
.header-top-links {
  display: none;
}

@media screen and (max-width: 834px) {
  .header-top-links {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background: #ffffff;
    box-sizing: border-box;
    z-index: 20;
    overflow: hidden;
  }

  .header-top-links > div {
    flex: 0 0 auto;
  }

  .htl-left,
  .htl-right {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
  }

  .htl-left {
    margin-left: 6px;
  }

  .htl-right {
    margin-right: 6px;
  }

  .htl-left a,
  .htl-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
  }

  .header-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
  }

  .header-menu-trigger img,
  .htl-left img,
  .htl-right img {
    display: block;
    width: auto;
    height: 30px;
    max-width: none;
  }

  .htl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72%;
    max-width: 520px;
    height: 56px;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    pointer-events: none;
  }

  .htl-center a {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    text-decoration: none;
  }

  .htl-center img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
    max-width: 100%;
  }
}

/************************************
** グローバルメニュー固定
************************************/
.navi {
  display: block;
  position: relative;
  z-index: 1000;
  background: #ffffff;
}

.navi.is-fixed-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  animation: slideDownMenu 0.25s ease;
}

body.has-fixed-global-menu {
  padding-top: 52px;
}

body.admin-bar .navi.is-fixed-menu {
  top: 32px;
}

body.admin-bar.has-fixed-global-menu {
  padding-top: 84px;
}

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 834px) {
  .navi {
    display: block;
  }

  body.has-fixed-global-menu {
    padding-top: 48px;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .navi.is-fixed-menu {
    top: 46px;
  }

  body.admin-bar.has-fixed-global-menu {
    padding-top: 94px;
  }
}

@media screen and (max-width: 480px) {
  body.has-fixed-global-menu {
    padding-top: 44px;
  }

  .header-top-links {
    height: 48px;
    padding: 0 12px;
  }

  .htl-center {
    width: 68%;
    max-width: 360px;
    height: 48px;
  }

  .header-menu-trigger img,
  .htl-left img,
  .htl-right img {
    height: 28px;
  }
}

/************************************
** アニメーション
************************************/
@keyframes slideDownMenu {
  from {
    transform: translateY(-100%);
    opacity: 0.95;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/************************************
** 投稿者情報非表示
************************************/
.author-info,
.post-author,
.author-box,
.byline {
  display: none !important;
}

/************************************
** フッター周りの余白調整
************************************/
#main,
.main,
.content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.article-footer,
.entry-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.entry-content > *:last-child,
.article-content > *:last-child {
  margin-bottom: 0 !important;
}

.footer,
.footer-bottom,
footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#footer,
.footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.footer .widget,
.footer .widget-area,
.footer .widget-entry-cards,
.footer .sidebar,
.footer aside {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/************************************
** 右画像タップのスライドメニュー
************************************/
.header-menu-trigger {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: auto;
  appearance: none;
  -webkit-appearance: none;
}

.header-menu-trigger img {
  display: block;
}

.header-image-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.header-image-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.header-image-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 60px 20px 20px;
  overflow-y: auto;
}

.header-image-menu.is-active {
  transform: translateX(0);
}

.header-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.header-image-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-image-menu-list li {
  border-bottom: 1px solid #eeeeee;
}

.header-image-menu-list a {
  display: block;
  padding: 14px 4px;
  color: #333333;
  text-decoration: none;
  font-size: 16px;
}

body.menu-open {
  overflow: hidden;
}

@media screen and (min-width: 835px) {
  .header-menu-trigger,
  .header-image-menu,
  .header-image-menu-overlay {
    display: none;
  }
}

/************************************
** Google Maps
************************************/
.google-maps {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-bottom: 42%;
  height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

@media screen and (max-width: 834px) {
  .google-maps {
    padding-bottom: 60%;
  }
}

/************************************
** テーブル1行目だけ色
************************************/
table tr:first-child {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* TOPページ（フロントページ）の記事タイトルを非表示 */
.home .entry-title,
.home .archive-title {
  display: none !important;
}

/* Cocoonのヘッダーロゴリンクを無効化 */
.logo a,
.header .logo a,
#header .logo a,
.site-logo a {
  pointer-events: none !important;
  cursor: default !important;
}