@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-top: 200px;
}

/* サイト名 */
.site-name-text {
  font-size: 42px;
  text-shadow: 1px 1px 5px #D88F8F;
}
.logo-text {
  padding: 20px 0 0;
}

/* キャッチフレーズ */
.tagline {
  font-size: 20px;
  margin: 0 0 10px;
  text-shadow: 1px 1px 5px #D88F8F;
}

/* ヘッダ固定 */
#header-container {
  position: fixed !important;
  width: 100%;
  top: 0px;
  z-index: 9999;
  overflow: hidden;
}

/* ヘッダ */
#header-container a {
  color: #ffffff;
}
#header-in {
  position: relative;
}

/* ヘッダ お問い合わせ */
.header-right {
    position: absolute;
    width: auto;
    right: 0px;
    top: 20px;
    font-size: 16px;
    justfy-content: center;
}

.header-right a {
    display: flex;
    gap: 8px;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    justify-content: center;
}

/*
#header {
  position: relative;
  width: 100%;
  top: 0px;
  z-index: 9997;
  overflow: hidden;
}

#header-in {
  width: 100%;
  height: 142px;
  background-color: #FFB7B7;
}

#navi {
  position: fixed !important;
  width: 100%;
  height: 62px;
  top: 0px;
  z-index: 9998;
  overflow: hidden;
}
*/

/* ナビメニュー */
#navi .navi-in a {
  font-weight: 800;
  text-shadow: 1px 1px 5px #D88F8F;
}

#navi .navi-in > ul > li > a {
  padding: 0 1.0em;
}

/* フッタ */
#footer {
  position: relative;
  z-index: 9999;
}

/* カレントメニュー */
.current_page_item {
  border-bottom: solid 2px #fff;
  margin-bottom: 2px;
}

/* コンテンツ */
.main {
  padding: 0;
}

.entry-content {
  padding: 32px;
}
.entry-content p:empty {
  display: none;
}

/* タイトル */
body:not(.home):not(.front-page) .entry-title {
  display: block !important;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #FFB7B7;
  text-align: center;

  /* 背景 */
  background: linear-gradient(180deg, #FFB7B720, #FFB7B780);
  padding: 32px 0px;

  /* 余白 */
  margin: 0;
}

.wp-block-columns .wp-block-cover {
  display: flex;
  align-items:  flex-start;
  justify-content: flex-start;
  border: solid 4px #FFB7B7;
}

.wp-block-cover .wp-block-cover__inner-container {
  width: 100%;
  height: 394px;
}

.wp-block-columns .wp-block-cover p:nth-child(1) {
  position: absolute;
  width: 250px;
  top: -36px;
  left: -15px;
  text-align: left;
}

.wp-block-columns .wp-block-cover p:nth-child(1) span {
  font-size: 22px;
  font-weight: bolder;
  color: #fff;
  background-color: #FFB7B7;
  margin: 0px !important;
  padding: 2px 40px !important;
  text-align: left;
/*
  text-shadow:  3px  3px  2px #000,
               -3px  3px  2px #000,
               -3px -3px  0px #000,
                3px -3px  0px #000;
*/
}

.wp-block-columns .wp-block-cover p:nth-child(2) {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wp-block-columns .wp-block-cover p:nth-child(2) span {
  font-size: 22px;
  font-weight: bolder;
  color: #FFF;
  text-shadow:
    -1px  0px 2px #FFB7B7,
     1px  0px 2px #FFB7B7,
     0px -1px 2px #FFB7B7,
     0px  1px 2px #FFB7B7,
    -1px -1px 2px #FFB7B7,
     1px -1px 2px #FFB7B7,
    -1px  1px 2px #FFB7B7,
     1px  1px 2px #FFB7B7;
}

/* テーブル */
.wp-block-table tr:nth-child(2n+1),
.wp-block-table tbody tr:nth-child(2n+1) {
  background: none !important;
}
.wp-block-table th:first-child {
  width: 200px;
}

/* グリッドレイアウト */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* 各アイテム */
.pdf-item {
  display: block;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

/* サムネ画像 */
.pdf-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: 0.3s;
}

/* タイトル */
.pdf-title {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  text-align: center;
}

/* ホバー演出（押した感じ＋暗く） */
.pdf-item:hover img {
  transform: scale(0.97);
  opacity: 0.8;
}

/* カーソル全体反応 */
.pdf-item:hover {
  cursor: pointer;
}

/* 送信ボタン */
input[type="submit"] {
  font-size: 24px;
}
input[type="submit"]:hover {
  background-color: #FFB7B7;
  color: #FFFFFF;
}

/* リンク */
a {
	text-decoration: none;
}

.contact_phone {
	width: 650px;
	margin: auto;
}

/* 蜂の上下アニメーション */
.header_contact_phone img,
.contact_phone img {
  animation: boundAnimation 1s infinite ease-in-out alternate;
}

@keyframes boundAnimation {
  0% {
    transform: translateY(0); /* 初期位置 */
  }
  100% {
    transform: translateY(-10px); /* 上に20px移動 */
  }
}

/* 埋め込み動画 */
video ~ * {
	pointer-events: none;
}

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

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
  body {
    padding-top: 140px;
  }
  #navi-menu-content {
    top: 190px;
  }
  body:not(.home):not(.front-page) .entry-title {
    padding-top: 70px;
  }
  .entry-content {
    padding: 20px;
  }
  #header {
    height: 140px;
  }
  #header .logo-text {
    padding: 5px 0px !important;
  }
  #header .site-name-text {
    font-size: 28px;
  }
  #header .header-right {
    width: 100% !important;
    right: auto;
  }
  #header .header-right span:nth-child(1) {
    display: flex;
    justify-content: center;
    align-items: baseline;
  }
  #header .header-right span:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: baseline;
    padding: 10px 0px;
  }
  #header-in .tagline {
    font-size: 12px;
    padding: 10px 0px;
  }
  #content #main {
    padding: 0px;
  }
  /* HOME */
  .page-id-39 .uagb-notice-text .fz-32px {
    font-size: 26px;
  }
  /* ホーム概要・料金 */
  .page-id-48 table tr th:first-child {
    width: 4em;
  }
  /* 訪問介護 */
  .page-id-58 table tr th:first-child {
    width: 2em;
  }
  /* 連絡先 */
  .page-id-60 table tr th:first-child {
    width: 6em;
  }
  /* 採用情報 */
  .page-id-54 table tr th:first-child {
    width: 2em;
  }
  /* 会社概要 */
  .page-id-52 table tr th:first-child {
    width: 6em;
  }
  /* ダウンロード */
  .page-id-56 .wp-block-column {
    height: 20px;
  }
  /* お問い合わせ */
  .page-id-43 .contact_phone {
    width: 100%;
  }
  .page-id-43 .contact_phone .fz-32px {
    font-size: 14px;
  }
  .page-id-43 .contact_phone .fz-48px {
    font-size: 20px;
  }
  .page-id-43 .contact_phone img {
    width: 32px !important;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  #header-container,
  #header-container-in,
  #header {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #header-in {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px;
    padding: 5px 6px !important;
    text-align: center;
  }

  /* サイトタイトル */
  #header-in .logo {
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
  }

  #header-in .site-name {
    font-size: 21px;
    line-height: 1.25;
  }

  /* 見学案内 */
  #header-in .tagline {
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }

  /* 会社名・電話番号 */
  #header-in .header-right {
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin: 5px 0 0 !important;
    text-align: center;
  }

  #header-in .header_contact_phone {
    margin: 0 !important;
    text-align: center;
    line-height: 1.25;
  }

  /* 会社名 */
  #header-in .header_contact_phone span:first-child {
    display: block;
    font-size: 13px;
  }

  #header-in .header_contact_phone img {
    width: 26px !important;
    height: auto;
    vertical-align: middle;
  }

  /* 電話番号 */
  #header-in .header_contact_phone span:last-child {
    display: block;
    margin-top: 1px;
    font-size: 23px;
  }
  
  #header-in .header_contact_phone .company-name {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: static;
  }

  /* 空室状況 */
  .uagb-notice-title {
    font-size: 16px;
    padding: 15px 0px !important;
  }

  /* スライダー調整 */
  .uagb-block-03aa9f48 .swiper-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .uagb-block-03aa9f48 .wp-block-uagb-container.uagb-is-root-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .uagb-block-03aa9f48 .uagb-ifb-desc img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .uagb-block-03aa9f48 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .entry-content .uagb-block-03aa9f48 {
    width: calc(100% + 64px) !important;
    max-width: none !important;
    margin-left: -32px !important;
    margin-right: -32px !important;
  }
  .uagb-block-03aa9f48 .swiper-button-prev,
  .uagb-block-03aa9f48 .swiper-button-next {
    display: none !important;
  }
}

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