/* =====================================================================
   custom.css — 旧「追加CSS（WordPress カスタマイザー）」の移設・整理先
   =====================================================================
   ・functions.php で style.css の後に読み込む（＝従来の追加CSSと同じ「最後」の
     位置）。app.css / style.css を上書きできる。
   ・段階B（整理）実施済み: TOP見出しボタンの重なり修正は、同じ内容の重複8ブロック
     （!important の応酬）を 1 ブロックに統合。ローカルで変更前後の実効レイアウトを
     比較し、PC=ピクセル一致・スマホ=正常（積み上げ）を確認済み。
   ・削除した死にコード: `.home ... .btn-more` 系一式。TOPの実ボタンは
     `.section_btnLink`（<a>詳細/一覧）で、`.btn-more` 要素はHTMLコメント内＝
     DOMに存在せず、これらの上書きは元々効いていなかった。
   ・除去: 無効な裸宣言 `font-family:"Yu Mincho";`（セレクタ外＝no-op）。

   目次:
     1. Contact Form 7（お問い合わせフォーム）
     2. Posts List（記事一覧）
     3. TOP: CONCEPT 本文/画像の余白
     4. TOP: 見出しと右上ボタン（詳細/一覧）を横並びに（重なり解消・根本対処）
   ===================================================================== */


/* ===== 1. Contact Form 7（Stylish） ===== */
.contact-form .wpcf7 form{
  display: grid;
  gap: 12px;
}

.cf7-row{
  margin: 0;
}

.cf7-row label{
  display: block;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 6px;
  opacity: .9;
}

.cf7-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.02);
  outline: none;
}

.contact-form textarea{
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: rgba(0,0,0,.30);
}

.cf7-note{
  display: block;
  margin-top: 6px;
  opacity: .75;
  line-height: 1.6;
}

.cf7-privacy{
  padding: 12px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
  border: 1px solid rgba(0,0,0,.08);
}

.cf7-submit{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.06);
  font-weight: 900;
  cursor: pointer;
}

.cf7-submit:hover{
  opacity: .85;
}

/* CF7メッセージ */
.contact-form .wpcf7-response-output{
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
}

@media (max-width: 760px){
  .cf7-grid{ grid-template-columns: 1fr; }
}


/* ===== 2. Posts List（Stylish） ===== */
.posts-hero__title{
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: .04em;
}
.posts-hero__lead{
  margin: 0 0 18px;
  line-height: 1.9;
  opacity: .85;
}

.posts-toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}

.posts-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.10);
  font-weight: 800;
}
.posts-chip:hover{ opacity: .85; }

.posts-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.post-card{
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow: hidden;
}

.post-card__link{
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

.post-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  opacity: .8;
  line-height: 1.6;
  margin-bottom: 10px;
}

.post-card__title{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: .03em;
  line-height: 1.5;
}

.post-card__excerpt{
  margin: 0;
  line-height: 1.85;
  opacity: .9;
}

.posts-pagination{
  margin-top: 16px;
}

.posts-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  margin-right: 8px;
  text-decoration: none;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.10);
}
.posts-pagination .page-numbers.current{
  background: rgba(0,0,0,.10);
  font-weight: 900;
}

@media (max-width: 760px){
  .posts-grid{ grid-template-columns: 1fr; }
}


/* ===== 3. TOP: CONCEPT 本文/画像の余白 ===== */
.home .section.section-concept .section_body{
  line-height: 2;   /* 好みで 1.9〜2.2 くらい */
}

.home .section.section-concept .section_pic{
  margin-top: 18px;
  padding-top: 0;
}


/* ===== 4. TOP: 見出しと右上ボタン（詳細/一覧）を横並びに ===== */
/* 原因: app.css が .section_headerBtn を position:absolute(top:36px,right:0) で
   配置しているため、見出しテキストと重なる。ボタンを持つ見出し行だけを 2 列
   グリッド（左:見出し / 右:ボタン）に戻して重なりを解消する。
   ※ 旧・追加CSSはこの修正を8ブロック重ねていたが、実効レイアウトは下記と同一
     （PC実測一致・スマホは1列に積み上げ）。 */
.home .section .section_header:has(.section_headerBtn){
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 16px;
  position: static;          /* absolute の基準(relative)を解除 */
}

.home .section .section_header .section_headerBtn{
  position: static;          /* app.css の absolute を解除 */
  inset: auto;
  margin: 0;
  justify-self: end;
  align-self: end;
}

@media (max-width: 767px){
  .home .section .section_header:has(.section_headerBtn){
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 6px;
  }
  .home .section .section_header .section_headerBtn{
    justify-self: start;
  }
}
