@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template: cocoon-master
Version: 1.1.1
*/

* {
    margin: 0px;
}

.content{
    margin-top: -24px;
}

.footer {
    margin-top: 8px;
    padding: 8px 0;
}

#footer {
  background: url("https://revive-homes.jp/wp-content/uploads/2025/09/footer.png") no-repeat center center;
  background-size: cover;
}

/* サイトタイトル */
.site-name-text {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 2px; /* 文字間を広げてクールに */
  font-size: 36px !important;       /* サイズ調整 */
}

/* メニュー */
#navi .menu a {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
}

/* プロジェクト一覧 */
ul.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.project-item { padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; }
.project-item a { font-weight: 600; text-decoration: none; }
.project-item .meta { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.project-detail .grid { display: grid; grid-template-columns: 6em 1fr; gap: 6px 12px; }

.project-item {
  list-style: none;
  margin: 10px 0;
}

/* カード全体はそのまま */
.project-card {
  display: block;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
}
.project-card:hover,
.project-card:focus { background:#e9eafb; border-color:#3b82f6; box-shadow:0 4px 12px rgba(59,130,246,.25); transform:translateY(-2px); }

/* 左右2カラム（左＝テキスト、右＝画像） */
.project-row { display:flex; align-items:center; gap:12px; }
.project-main { flex: 1 1 auto; min-width: 0; }
.project-right { margin-left:auto; display:flex; align-items:center; }

/* テキスト */
.project-title { font-weight:600; font-size:1.1rem; margin-bottom:6px; }
.project-meta { font-size:.85rem; color:#6b7280; line-height:1.4; }

/* ギャラリー（ショートコード／PodsどちらでもOK） */
.project-gallery { display:flex; gap:6px; flex-wrap:nowrap; }
.project-gallery img {
  width:56px; height:56px; object-fit:cover;
  border-radius:6px; border:1px solid #ddd;
  transition: transform .2s ease;
}
.project-gallery img:hover { transform: scale(1.05); }

/* スマホでは縦積み（任意） */
@media (max-width: 640px) {
  .project-row { flex-direction: column; align-items: flex-start; }
  .project-right { margin-left: 0; }
  .project-gallery { margin-top: 8px; flex-wrap: wrap; }
}

/****
 **  プロジェクト詳細
 ****/
/* === project_header 折りたたみ調整 === */
.proj-banner{
  display:flex;
  align-items:flex-start; /* ← 内容を上寄せ */
  gap:12px;
  background:#fff;
  border:1px solid #3b82f6;
  border-radius:6px;
  padding:6px 18px;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}

.proj-banner__main{
  flex:1 1 auto;
  min-width:0;
}

.proj-banner__title{
  font-weight:700;
  font-size:1.5rem; /* ← 一回り小さく */
  margin:0 0 2px;
}

.proj-banner__meta{
  font-size:.95rem;
  color:#6b7280;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.proj-banner__links a{
  font-size:.85rem;
  text-decoration:none;
}

/* 右端コントロール（ボタン） */
.proj-banner__ctrl{
  flex:0 0 auto;
  display:flex;
  align-items:flex-end; /* ← 下寄せ */
  margin-left:6px;
}

.proj-banner__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px; height:28px;
  border:1px solid #3b82f6;
  background:#fff;
  color:#3b82f6;
  border-radius:4px;
  cursor:pointer;
  font-size:14px;
  line-height:1;
  padding:0;
}
.proj-banner__toggle:hover{ background:#eff6ff; }

/* 折りたたみ時：タイトル以外を非表示 */
.proj-banner.is-collapsed .proj-banner__meta,
.proj-banner.is-collapsed .proj-banner__links,
.proj-banner.is-collapsed .im-map{
  display:none !important;
}





/*****
 ** 外観・カスタマイズ・追加CSS　からの移動
 *****/


/* wrapper */
.pagemenu{
  display:flex;
  justify-content:flex-start; /* 左寄せ */
  margin:0 0 1rem;
}

/* ナビゲーションブロック */
.pagemenu .wp-block-navigation__container{
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
}

/* リンク部分（黒背景＋白文字） */
.pagemenu a{
  display:inline-block;
  padding:.35rem .9rem;
  text-decoration:none;
  color:#fff;
/*
  background:#333;
*/
  background: #8d2222;
  border:1px solid #222;
  border-radius:6px;
  box-shadow:0 2px 4px rgba(0,0,0,.3);
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease;
	font-size: 16px;
}

/* ホバー時（白背景＋黒文字） */
.pagemenu a:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 8px rgba(0,0,0,.25);
  background:#fff;
  color:#000;
}

.wp-block-columns{
  height: 20px;
}

.content-top, .content-bottom{
    margin: 0.5em 0;
}

.entry-content {
  height: 820px;
}

/* 環境依存なので、何とかしたい。。。。 */

/* ▼ 固定ページ ID=45 専用：上余白を総ざらいで詰める */
.page-id-45 .main { padding-top: 0; }               /* 念のため main の上パディング */
.page-id-45 .article-header { margin: 0; padding: 0; } /* タイトル周りの余白をゼロ */
.page-id-45 .entry-title { margin: 0 0 .4em; }      /* タイトル下だけ少し残す */

/* Gutenberg が入れる “最初のブロックの先頭マージン（block-gap）” を無効化 */
.page-id-45 .entry-content > *:first-child { margin-top: 0 !important; }
.page-id-45 .is-layout-flow > *:first-child { margin-block-start: 0 !important; }
.page-id-45 :where(.wp-site-blocks) > :first-child { margin-block-start: 0 !important; }

/* 本文コンテナ側のパディングを0に（効かないテーマもあるが保険で） */
.page-id-45 .entry-content { padding-top: 0; }

/* pagemenu（グループに付けたクラス）が先頭にある想定：タイトル直下でも詰める */
.page-id-45 .pagemenu { margin-top: 0; margin-bottom: .5rem; }

/* ナビブロックの余白が強いスキン対策（必要なら解除） */
/* .page-id-45 .wp-block-navigation { margin-top: 0 !important; } */

/* ▼ 固定ページ ID=331 専用：上余白を総ざらいで詰める */
.page-id-331 .main { padding-top: 0; }               /* 念のため main の上パディング */
.page-id-331 .article-header { margin: 0; padding: 0; } /* タイトル周りの余白をゼロ */
.page-id-331 .entry-title { margin: 0 0 .4em; }      /* タイトル下だけ少し残す */

/* Gutenberg が入れる “最初のブロックの先頭マージン（block-gap）” を無効化 */
.page-id-331 .entry-content > *:first-child { margin-top: 0 !important; }
.page-id-331 .is-layout-flow > *:first-child { margin-block-start: 0 !important; }

/* ▼ 固定ページ ID=327 専用：上余白を総ざらいで詰める */
.page-id-327 .main { padding-top: 0; }               /* 念のため main の上パディング */
.page-id-327 .article-header { margin: 0; padding: 0; } /* タイトル周りの余白をゼロ */
.page-id-g27 .entry-title { margin: 0 0 .4em; }      /* タイトル下だけ少し残す */

/* Gutenberg が入れる “最初のブロックの先頭マージン（block-gap）” を無効化 */
.page-id-327 .entry-content > *:first-child { margin-top: 0 !important; }
.page-id-327 .is-layout-flow > *:first-child { margin-block-start: 0 !important; }

