/*
Theme Name: rwnormalife child
Theme URI: https://rwnormalife.com/
Description: rwnormalife.com 用の JIN:R 子テーマ。トップページのヒーロー、配色、フォントをカスタマイズ。
Author: rwnormalife
Template: jinr
Version: 0.1.0
*/

/* ===== カラーパレット & フォント変数（和モダン・暖色ベージュ） ===== */
:root {
  --rw-primary: #2c3e50;            /* 見出し用ダークブルー */
  --rw-accent:  #c08552;            /* 銘染めコッパー（リンク・CTA） */
  --rw-accent-deep: #a36a3d;        /* hover 時に少し沈める */
  --rw-bg:      #fbf8f3;            /* 薄ベージュ */
  --rw-bg-card: #ffffff;
  --rw-text:    #2b2b2b;
  --rw-text-muted: #6f6f6f;
  --rw-border: rgba(0, 0, 0, 0.08);

  --rw-font-heading: "Shippori Mincho", "Noto Serif JP", serif;
  --rw-font-body:    "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --rw-shadow-card: 0 8px 24px rgba(20, 20, 30, 0.06);
  --rw-radius-card: 14px;
}

/* ===== タイポグラフィ全体 ===== */
body {
  font-family: var(--rw-font-body);
  color: var(--rw-text);
  background: var(--rw-bg);
  letter-spacing: 0.01em;
  line-height: 1.85;
}

h1, h2, h3, h4 {
  font-family: var(--rw-font-heading);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

a {
  color: var(--rw-accent);
  transition: color 0.18s ease;
}
a:hover {
  color: var(--rw-accent-deep);
}

/* ===== ヒーロー（静止画タイプ） ===== */
.o--jinr-mainvisual.o--jinr-stillimage {
  /* JINR の幅制限を解除して画面いっぱいに広げる */
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
  overflow: hidden;
}

.o--jinr-mainvisual.o--jinr-stillimage .c--stillimage {
  min-height: 72vh;
}

/* オーバーレイ：上下に向かって暗くなるグラデで文字を読みやすく */
.o--jinr-mainvisual.o--jinr-stillimage .a--stillimage-overlay {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 30, 0.15) 0%,
    rgba(20, 20, 30, 0.45) 70%,
    rgba(20, 20, 30, 0.55) 100%
  );
}

/* メインコピー：和モダン寄りに大きく */
.o--jinr-mainvisual.o--jinr-stillimage .a--stillimage-maincopy {
  font-family: var(--rw-font-heading);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.o--jinr-mainvisual.o--jinr-stillimage .a--stillimage-subcopy {
  font-family: var(--rw-font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.06em;
  margin-top: 0.8em;
  opacity: 0.92;
}

/* CTA ボタンの落ち着いた質感（JINR 標準ボタンに最低限の上書き） */
.o--jinr-mainvisual .b--jinr-button {
  margin-top: 1.6em;
}

/* ===== 記事一覧カード ===== */
#jinrPostList .new-post-list-item {
  background: var(--rw-bg-card);
  border-radius: var(--rw-radius-card);
  border: 1px solid var(--rw-border);
  box-shadow: var(--rw-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
#jinrPostList .new-post-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 20, 30, 0.10);
}

/* タイトルだけは見出しフォントに揃える */
#jinrPostList .new-post-list-item .a--postlist-title,
#jinrPostList .new-post-list-item h2,
#jinrPostList .new-post-list-item h3 {
  font-family: var(--rw-font-heading);
}

/* ===== サブテキスト ===== */
.t--main-width small,
.t--main-width .a--postlist-meta,
.t--main-width time {
  color: var(--rw-text-muted);
}

/* ===== モバイル微調整 ===== */
@media (max-width: 768px) {
  .o--jinr-mainvisual.o--jinr-stillimage .c--stillimage {
    min-height: 56vh;
  }
}
