/* はなはなのブログ用の部品。土台の見た目は site.css（風ぴかりから写したもの。色もそのまま）。
   まずは今の WordPress と同じ中身で動かすための最低限。デザインの変更はこの後。 */

/* ヘッダーのロゴ（アイコン＋サイト名） */
.logo { flex-direction: row; align-items: center; gap: 12px; min-width: 0; }
.logo-icon { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name { font-size: 22px; letter-spacing: .06em; }
.nav-button { white-space: nowrap; flex: 0 0 auto; }
/* PC幅：メニューの文字とサイト名を1行に収める（はなはなはメニューの言葉が長いため） */
.site-nav a { white-space: nowrap; padding: 10px 12px; font-size: 16px; }
.site-nav ul { gap: 2px; }
@media (min-width: 961px) {
  .logo-name { white-space: nowrap; font-size: 19px; }
  .logo-kind { white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .logo-name { font-size: 16px; }
  .site-nav a { padding: 8px 8px; font-size: 15px; }
}

/* トップのヘッダー動画（PC用とスマホ用を幅で切り替え） */
.header-visual { background: var(--white); line-height: 0; }
.hv { display: block; width: 100%; height: auto; }
.hv-sp { display: none; }

/* 記事一覧＋サイドバー */
.blog-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.blog-side { display: grid; gap: 24px; }
.side-icon { display: block; width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; }
.blog-side .side-box:first-child { text-align: center; }
.side-cats, .side-cats ul { list-style: none; margin: 0; padding: 0; }
.side-cats ul { padding-left: 1em; }
.side-cats a { display: block; padding: 6px 0; text-decoration: none; }

.post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--text); }
.post-card a:hover .post-card-title { color: var(--main); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: var(--sky); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.post-card-cat { align-self: flex-start; background: var(--main); color: var(--white); font-size: 13px; padding: 0 12px; border-radius: 999px; }
.post-card-title { font-weight: 700; line-height: 1.6; }
.post-card-ex { font-size: 15px; color: var(--muted); line-height: 1.7; }
.post-card-date { font-size: 14px; color: var(--muted); }

.pager ul { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); text-decoration: none; }
.pager span { background: var(--main); color: var(--white); border-color: var(--main); }

/* 記事 */
.post-head { background: linear-gradient(160deg, var(--white) 0%, var(--sky) 100%); padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.post-cats { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-cats a { background: var(--main); color: var(--white); font-size: 14px; padding: 2px 14px; border-radius: 999px; text-decoration: none; }
.post-title { font-size: 32px; margin: 0 0 8px; }
.post-date { margin: 0; color: var(--muted); font-size: 15px; }
.post-wrap { padding: 40px 0 72px; }
.post-thumb { margin: 0 0 32px; }
.post-thumb img { display: block; width: 100%; border-radius: var(--radius); }
.post-body h2 { font-size: 26px; margin: 48px 0 16px; padding-left: 16px; border-left: 5px solid var(--main); }
.post-body h3 { font-size: 22px; margin: 36px 0 12px; }
.post-body h4 { font-size: 19px; margin: 28px 0 8px; }
.post-body blockquote { margin: 1.5em 0; padding: 16px 24px; background: var(--white); border-left: 5px solid var(--border); }
.post-body ul { padding-left: 1.4em; }
/* JIN の「マーカー」（文字の下半分に黄色の線）を似せたもの */
.post-body .marker { background: linear-gradient(transparent 60%, #ffef6b 60%); font-weight: 700; }
.embed-video { margin: 1.5em 0; }
.embed-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.post-tags { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { display: inline-block; font-size: 14px; padding: 2px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); text-decoration: none; }
.post-author { margin-top: 32px; text-align: right; color: var(--muted); font-size: 15px; }

/* 本文に入っている MyASP の登録フォーム */
.post-body form input[type="text"], .post-body form input[type="email"] { width: 100%; max-width: 100%; font-size: 17px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.post-body form input[type="submit"] { font-size: 18px; padding: 12px 36px; border: 0; border-radius: 999px; background: var(--warm); color: var(--white); font-weight: 700; }

@media (max-width: 960px) {
  .blog-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hv-pc { display: none; }
  .hv-sp { display: block; }
  .logo-icon { width: 40px; height: 40px; }
  .logo-name { font-size: 16px; letter-spacing: .02em; }
  .logo-kind { display: none; }
  .post-cards { grid-template-columns: 1fr; }
  .post-head { padding: 36px 0 28px; }
  .post-title { font-size: 24px; }
  .post-body h2 { font-size: 21px; }
  .post-body h3 { font-size: 19px; }
}

/* 管理画面から入れた写真 */
.post-body .post-img { margin: 1.5em 0; }
.post-body .post-img img { display: block; border-radius: 8px; }
