@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 {
  background-color: #318889;
  font-feature-settings: "halt";
  /* google fonts */
}
.font-serif {
  font-family: "Noto Serif JP", serif;
}
/* ヘッダー全体をコンテンツ幅に固定 */
.wrap {
  width: 1200px; /* お使いのコンテンツ幅に合わせて調整 */
}

/* コンテンツ */
.content-in {
  width: 1100px;
  margin: 0px auto;
}
#main {
  padding: 0 29px 36px;
}
/* 文字 */
.font-w700 {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-color_main01 {
  color: #00aa95;
}

/* 改行 */
.br-pc {
  display: block;
}
.br-sp {
  display: none;
}

/* ------------------------------ header ------------------------------ */
.container {
  background-color: #ffffff;
}

/* タイトルを左上に固定 4列グリッドレイアウト*/
.header-in {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.header-in .tagline {
  text-align: left;
  padding-top: 1em;
  padding-left: 10px;
  margin-bottom: 0;
}
.page-id-10 .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 50px 470px 1fr 100px;
}
body.page-header .grid-container {
  /* HOME以外のヘッダーレイアウト functions.php内で各ページへの定義*/
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 50px 1fr 1fr 1fr;
}
.header .header-in {
  min-height: 350px; /* HOME以外のヘッダー高さ */
}

/* 固定ページでヘッダー画像変える
finction.phpのヘッダーレイアウトに関する記載も変更 */
.page-id-20 .header .header-in {
  background-image: url(../img/header/header-bg_nyukyo.jpg); /* ご購入までの流れ */
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.page-id-264 .header .header-in {
  background-image: url(../img/header/header-bg_risou.jpg); /* 理想の住まい */
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.page-id-266 .header .header-in {
  background-image: url(../img/header/header-bg_jisseki.jpg); /* 販売実績 */
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.page-id-268 .header .header-in {
  background-image: url(../img/header/header-bg_company.jpg); /* 会社概要 */
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.page-id-1894 .header .header-in {
  background-image: url(../img/header/header-bg_bunjo.jpg); /* お問い合わせ */
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.page-id-1902 .header .header-in {
  background-image: url(../img/header/header-bg_bunjo.jpg); /* プライバシーポリシー */
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.archive-fudo .grid-container {
  /* 不動産プラグインのためのヘッダー調整 */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 50px 1fr 1fr 1fr;
}
.fudo-template-default .grid-container {
  /* 不動産プラグインのためのヘッダー調整 */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 50px 1fr 1fr 1fr;
}
.archive-fudo .header .header-in {
  /* 不動産プラグイン 検索結果ページ */
  background-image: url(../img/header/header-bg_bunjo.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
  min-height: 350px;
}
.fudo-template-default .header .header-in {
  /* 不動産プラグイン 物件詳細ページ */
  background-image: url(../img/header/header-bg_jisseki.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
  min-height: 350px;
}

/* タイトルとロゴマーク */
.header-in .logo {
  grid-column: 1/3;
  grid-row: 1/2;
  text-align: left;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 10px;
}
.logo-header {
  position: relative;
}
.site-name::after {
  content: " 有限会社プログレッソ";
  position: absolute;
  top: 13px;
  margin-left: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow:
    0px 1px 13px rgba(0, 170, 149),
    0px 1px 1px rgba(0, 170, 149, 1);
}
.site-name-text-link {
  padding: 0 2em;
}

/* 電話番号 */
.header-in .header-tel {
  grid-column: 3/5;
  grid-row: 1/2;
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-right: 40px;
  font-weight: 700;
  color: #ffffff;
  text-shadow:
    0px 1px 13px rgba(0, 170, 149),
    0px 1px 1px rgba(0, 170, 149, 1);
}
.header-in .header-tel a {
  position: absolute;
  top: 18px;
  text-decoration: none;
  color: #ffffff;
}
.header-in .header-tel a::before {
  content: "大阪市内の不動産購入・売買ならお任せください!";
  font-size: 14px;
  color: #ffffff;
  padding-right: 10px;
}

/* 破線 */
.header-in .header-dotted-line {
  grid-column: 1/5;
  grid-row: 2/3;
  border-top: 3px dotted #ffffff;
  margin: 0 30px;
}

/* お問い合わせ */
.header-in .header-contact {
  grid-column: 2/4;
  grid-row: 3/4;
  text-align: center;
  position: relative;
}
.header-in .header-contact a {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.header-in .header-contact-img {
  background-image: url(../img/header/btn-mail-bg.gif);
  background-size: contain;
  width: 320px;
  height: 56px;
  margin-left: auto;
  margin-right: auto;
}

/* キャッチコピー */
.header-in .header-catchcopy {
  grid-column: 1/4;
  grid-row: 2/3;
  width: 550px;
  background-image: url(../img/header/header-catchcopy.png);
  background-size: contain;
  background-repeat: no-repeat;
  top: 55px;
  left: 175px;
}
.page-id-10 .header-in {
  margin-bottom: 14px;
}
.page-id-10 .header-in .header-catchcopy2 {
  grid-column: 1/5;
  grid-row: 4/5;
  text-align: center;
  font-size: 1.3em;
  line-height: 1.6em;
  margin-top: 8px;
}
body:not(.page-id-10) .header-in .header-catchcopy2 {
  display: none; /* キャッチコピー2をHOMEだけ表示 */
}

/* ------------------------------ メニュー ------------------------------ */
/* グローバルメニュー */
.navi-in {
  height: 30px;
}
.navi-in a:hover {
  background-color: transparent;
}
.navi-in #menu-item-26,
#menu-item-80,
#menu-item-24,
#menu-item-25,
#menu-item-272,
#menu-item-271,
#menu-item-270 {
  border-radius: 5px;
  width: auto;
  height: 30px;
  --cocoon-text-color: #fff;
  font-weight: 700;
  margin: 0 6px;
  padding: 0 10px;
}
.navi-in #menu-item-26 {
  background-color: #f39800;
}
.navi-in #menu-item-80 {
  background-color: #8dc554;
}
.navi-in #menu-item-24 {
  background-color: #318889;
}
.navi-in #menu-item-25 {
  background-color: #3e7593;
}
.navi-in #menu-item-272 {
  background-color: #f16f78;
}
.navi-in #menu-item-271 {
  background-color: #72559b;
}
.navi-in #menu-item-270 {
  background-color: #858686;
}
.navi-in [id^="menu-item-"]:hover {
  opacity: 0.5;
}
#navi .navi-in > ul > li:last-child {
  display: none;
}

/* ------------------------------ 各ページ ------------------------------ */
/* エントリータイトル */
body .page-id-74 {
  /* HOMEだけ非表示 */
  display: none;
}

/* お問い合わせボタン キャッチコピー 表示 非表示 */
.header-in .header-contact {
  display: none;
}
.page-id-10 .header-in .header-contact {
  display: block;
}
.header-in .header-catchcopy {
  display: none;
}
.page-id-10 .header-in .header-catchcopy {
  display: block;
}
/* ------------------------------ footer ------------------------------ */
.footer-in {
  position: relative;
  height: 320px;
  background-image: url(../img/fototer/footer-bg.jpg);
  background-position: bottom 30px;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 14px;
}
.footer-bottom {
  position: absolute;
  right: 20px;
  bottom: 10px;
}

/* フッター 3分割を解除 */
#footer .footer-center,
.footer-right {
  display: none; /* 真ん中、右を非表示 */
}
#footer-l {
  position: relative;
}

/* インフォメーション */
.foot-info {
  margin-left: 350px;
  margin-top: 10px;
}
.foot-info a {
  color: #010b9e;
}
.footer-info-company {
  font-weight: 700;
  line-height: 2rem;
}
.footer-info-company p:first-of-type {
  font-size: 32px;
  line-height: 2.5rem;
}
.footer-contact {
  position: absolute;
  left: 50%;
  bottom: 50px; /* 親要素の下に寄せる */
  transform: translate(-50%, -50%);
  background-image: url(../img/header/btn-mail-bg.gif);
  background-size: contain;
  width: 320px;
  height: 56px;
}
.footer-contact a {
  display: grid;
  justify-items: center; /* 水平方向中央 */
  align-items: center; /* 垂直方向中央 */
  height: 56px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  transform: translateY(-2px); /* 文字位置調整 */
}

/* ------------------------------ 投稿ページ ------------------------------ */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
  /* ------------------------------ 共通 ------------------------------ */
  /* コンテナ幅をPC幅に */
  #container,
  #main,
  .wrap {
    max-width: 1200px !important;
  }

  /* 2カラムレイアウトを維持 */
  #content-in {
    display: flex !important;
    flex-direction: row !important;
  }
  /* bodyを上詰め */
  .admin-bar:where(.mblt-header-mobile-buttons, .mblt-header-and-footer-mobile-buttons) {
    margin-top: 0;
  }
  /* header画像制御 */
  .header {
    background-size: 1200px auto; /* ← 明示的に固定 */
    background-repeat: no-repeat;
    background-position: center top;
  }
  /* ハンバーガーメニューを非表示 */
  .mobile-header-menu-buttons {
    display: none;
  }
  /* PCナビを表示 */
  #navi .menu-pc {
    display: flex;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
  /* ------------------------------ 共通 ------------------------------ */
  /* コンテナ幅をPC幅に */
  #container,
  #main,
  .wrap {
    max-width: 1200px;
  }

  /* ------------------------------ header ------------------------------ */
  .header div.header-in {
    min-height: 350px;
  }

  /* ------------------------------ footer ------------------------------ */
  .footer-widgets {
    display: block;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
  /* ------------------------------ 共通 ------------------------------ */
  /* 全体をコンテンツ幅に固定 */
  .wrap {
    width: 100%;
    height: auto;
  }
  /* 改行 */
  .br-pc {
    display: none;
  }
  .br-sp {
    display: block;
  }
  /* ハンバーガーメニューを非表示 */
  .mobile-header-menu-buttons {
    display: flex;
  }
  /* PCナビを非表示 */
  #navi .menu-pc {
    display: none;
  }

  /* ------------------------------ header ------------------------------ */
  #header {
    background-position: top right; /* 右上基準 */
    background-repeat: no-repeat;
    background-size: auto 250px;
    height: auto;
  }
  /* HOME ヘッダー全体の高さ */
  .page-id-10 .header-in {
    margin-bottom: 0;
  }
  /* HOME以外のヘッダー高さ */
  .page-id-20 .header-container,
  .page-id-264 .header-container,
  .page-id-266 .header-container,
  .page-id-268 .header-container,
  .page-id-1894 .header-container,
  .page-id-1902 .header-container {
    height: 250px;
  }
  .page-id-20 #header .header-in,
  .page-id-264 #header .header-in,
  .page-id-266 #header .header-in,
  .page-id-268 #header .header-in,
  .page-id-1894 #header .header-in,
  .page-id-1902 #header .header-in {
    min-height: 350px;
    background-position: top right; /* 右上基準 */
    background-repeat: no-repeat;
    background-size: auto 250px;
  }
  .archive-fudo .header-container {
    height: 250px;
  }
  .archive-fudo #header .header-in {
    background-position: top right; /* 右上基準 */
    background-repeat: no-repeat;
    background-size: auto 250px;
  }
  .fudo-template-default .header-container {
    height: 250px;
  }
  .fudo-template-default #header .header-in {
    background-position: top right; /* 右上基準 */
    background-repeat: no-repeat;
    background-size: auto 250px;
  }

  /* ヘッダーサイズ */
  .page-id-10 .grid-container {
    grid-template-rows: 40px 160px 40px 1fr;
    max-width: 100%;
  }
  body.page-header .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 40px 1fr 1fr 1fr;
  }
  .archive-fudo .grid-container {
    /* 不動産プラグインのためのヘッダー調整 一覧ページ */
    display: grid;
    grid-template-rows: 40px 160px 40px 1fr;
    max-width: 100%;
  }
  .fudo-template-default .grid-container {
    /* 不動産プラグインのためのヘッダー調整 詳細ページ */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 40px 1fr 1fr 1fr;
  }

  /* タイトルとロゴマーク */
  .header-in .logo {
    grid-column: 1/4;
    grid-row: 1/2;
    text-align: left;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 10px;
  }
  .site-name {
    position: relative;
  }
  .site-name::after {
    display: none;
  }
  .site-name-text-link {
    padding-top: 0;
    padding-left: 10px;
  }
  .site-name-text img {
    width: 80%;
  }

  /* 電話番号 */
  .header-in .header-tel {
    grid-column: 4/5;
    grid-row: 1/2;
    margin-top: -30px;
    margin-right: 20px;
    font-size: 2em;
    font-weight: 500;
  }
  .header-in .header-tel a::before {
    display: none;
  }
  .header-in .header-tel .phone-number {
    display: none;
  }

  /* 破線 */
  .header-in .header-dotted-line {
    grid-column: 1/5;
    grid-row: 2/3;
    margin: 0 10px;
  }

  /* お問い合わせ */
  .header-in .header-contact {
    grid-column: 1/5;
    grid-row: 3/4;
  }
  .header-in .header-contact a {
    font-size: 1em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .header-in .header-contact-img {
    width: 200px;
    height: 35px;
    margin-left: auto;
    margin-right: auto;
  }

  /* キャッチコピー */
  .header-in .header-catchcopy {
    grid-column: 1/3;
    grid-row: 2/3;
    width: 100%;
    top: 10px;
    left: 10px;
  }
  .page-id-10 .header-in .header-catchcopy2 {
    padding: 0 15px;
    text-align: left;
    font-size: 1em;
    line-height: inherit;
    margin-top: 15px;
  }

  /* ------------------------------ メニュー ------------------------------ */
  /* モバイルロゴ表示を非表示 */
  .logo-menu-button .site-logo-image {
    display: none;
  }

  /* 疑似要素で別のロゴを表示を追加 */
  .logo-menu-button .menu-button-in:after {
    content: "有限会社プログレッソ";
    font-size: 24px;
    transform: translateY(5px); /* ← 下にずらす */
    display: block;
    width: 240px; /* ロゴ画像の幅 */
    height: 60px; /* ロゴ画像の高さ */
  }

  /* ------------------------------ 各ページ ------------------------------ */

  /* ------------------------------ footer ------------------------------ */
  #footer {
    padding-bottom: 60px;
  }
  .footer-in {
    background-image: none;
    background-color: #a1ccc3;
    padding-bottom: 35px;
  }
  .foot-info {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
  }
  .footer-info-company p:first-of-type {
    line-height: 1em;
    margin-bottom: 10px;
  }
  .footer-info-company p span:first-of-type {
    font-size: 40px;
    line-height: 1.2em;
  }
  .footer-contact {
    bottom: -10px;
  }
  .footer-bottom {
    bottom: -60px;
  }
  .footer-bottom a {
    top: 1px; /* 下にずらす */
  }
}
