/* 中村ひろき公式サイト：見た目
   いまの WordPress テーマ（Yellow Swallow）の色と形に近づけたもの。 */

:root {
  --text: #3e3e3e;
  --link: #57a1d8;
  --link-hover: #9eccef;
  --accent-bg: #c4dbe9;
  --accent-text: #4fa3c9;
  --line: #e5e5e5;
  --bg: #f7f7f7;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.9;
  word-wrap: break-word;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; vertical-align: middle; }
.wrap { width: 100%; max-width: 1166px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
#header { background: #fff; text-align: center; }
#logo { margin: 0; padding: 20px 0 8px; }
#logo img { width: 420px; max-width: 80%; }
#g_nav ul { list-style: none; margin: 0; padding: 4px 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
#g_nav a { color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: bold; }
#g_nav a:hover { color: var(--link); }
@media (max-width: 600px) {
  #g_nav ul { padding: 4px 12px 12px; gap: 4px 14px; }
  #g_nav a { font-size: 0.8rem; }
}
#custom_header_img { text-align: center; background: #fff; }
#custom_header_img img { width: 100%; max-width: 1300px; display: block; margin: 0 auto; }

/* 本文とサイドバー */
#content { padding: 24px 0 40px; }
.layout { display: flex; gap: 32px; align-items: flex-start; }
.main-wrap { flex: 1 1 auto; min-width: 0; }
.side-wrap { flex: 0 0 300px; }
@media (max-width: 900px) {
  .layout { display: block; }
  .side-wrap { margin-top: 32px; }
}
.article, .archive-box { background: #fff; padding: 28px 4%; border-radius: 4px; }
.lp .article { max-width: 760px; margin: 0 auto; }

.byline { font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.5em; }
.cat-label { display: inline-block; background: var(--link); color: #fff; font-size: 0.75rem; padding: 0 0.7em; border-radius: 3px; margin-right: 0.6em; text-decoration: none; }
.cat-label:hover { color: #fff; opacity: 0.8; }
h1.entry-title { font-size: 1.45rem; line-height: 1.5; margin: 0.2em 0 0.8em; }
.eyecatch-top { margin: 0 0 1.5em; }
.eyecatch-top img { width: 100%; }

/* 本文の中身 */
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2 { background: var(--accent-bg); color: var(--accent-text); font-size: 1.2rem; padding: 0.6em 0.9em; margin: 2.2em 0 1.2em; border-radius: 3px; line-height: 1.5; }
.entry-content h3 { border-left: 5px solid var(--accent-bg); border-bottom: 1px solid var(--accent-bg); padding: 0.3em 0.7em; font-size: 1.1rem; margin: 2em 0 1em; }
.entry-content h4 { border-bottom: 2px solid var(--accent-bg); padding-bottom: 0.2em; margin: 1.8em 0 0.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content blockquote { margin: 1.5em 0; padding: 1em 1.4em; background: #f5f5f5; border-left: 4px solid var(--accent-bg); }
.entry-content figure { margin: 1.5em 0; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid #ddd; padding: 0.5em 0.8em; vertical-align: top; }
.entry-content iframe { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignright { float: right; margin: 0 0 1em 1em; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.entry-content::after { content: ""; display: block; clear: both; }
.wp-block-image.is-style-circle-mask img { border-radius: 9999px; }
.has-medium-font-size { font-size: 1.1rem; }
.has-large-font-size { font-size: 1.4rem; }
.wp-block-embed__wrapper iframe, iframe[src*="youtube.com"], iframe[src*="vimeo.com"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* 囲み枠（box） */
.c_box { padding: 1em 4%; margin: 2em 0; border: 2px solid #ddd; border-radius: 0.2em; }
.c_box.intitle { padding-top: 0; padding-bottom: 1.4em; }
.c_box.intitle .box_title span { position: relative; top: -0.85em; padding: 0.1em 0.7em; background: #6d6d6d; color: #fff; font-weight: bold; border-radius: 0.2em; display: inline-block; }
.c_box.yellow_box { background: #fff8d4; border-color: #ded647; color: #636546; }
.c_box.yellow_box .box_title span { background: #ded647; }
.c_box.blue_box { background: #d4f3ff; border-color: #82c8e2; color: #465d65; }
.c_box.blue_box .box_title span { background: #82c8e2; }
.c_box.red_box { background: #ffafaf; border-color: #e77373; color: #654646; }
.c_box.red_box .box_title span { background: #e77373; }
.c_box.green_box { background: #d4ffd5; border-color: #79e37c; }
.c_box.green_box .box_title span { background: #79e37c; }
.c_box.pink_box { background: #ffeaea; border-color: #f7b2b2; }
.c_box.pink_box .box_title span { background: #f7b2b2; }
.c_box p:last-child, .supplement p:last-child { margin-bottom: 0; }

/* 線で囲んだ補足（aside） */
.supplement { border: 2px solid #faebcc; background: #fcf8e3; color: #766341; font-size: 93%; padding: 4% 4%; margin: 1.5em 0 2em; }
.supplement.boader { background: #fff; border-color: #ddd; color: inherit; }
.supplement.warning { background: #fce3e3; border-color: #facccc; color: #764141; }

/* ボタン（btn） */
.btn-wrap { margin: 1.5em 0 2em; text-align: center; }
.btn-wrap a { display: inline-block; padding: 0.8em 1.6em; background: var(--link); border: 1px solid var(--link); color: #fff; border-radius: 0.2em; text-decoration: none; line-height: 1.5; }
.btn-wrap a:hover { opacity: 0.8; color: #fff; }
.btn-wrap.big a { padding: 1.1em 2em; font-size: 1.1em; width: 90%; max-width: 480px; }
.btn-wrap.simple a { background: #fff; color: var(--link); }
.btn-wrap.rich_pink a { font-weight: bold; background: #ee5656; color: #fff !important; box-shadow: 0 4px 0 #d34e4e; border: none; }
.btn-wrap.rich_pink a:hover { background: #d34e4e; box-shadow: 0 1px 0 #d34e4e; opacity: 1; }

/* よくある質問の折りたたみ（su_spoiler） */
details.faq { border: 1px solid #ddd; border-radius: 4px; margin: 0 0 0.8em; background: #fff; }
details.faq summary { cursor: pointer; padding: 0.7em 1em; font-weight: bold; background: #f3f8fb; }
details.faq > div { padding: 0.8em 1em; }

/* 記事の一覧カード（トップページ） */
.cat_postlist { margin-bottom: 2.5em; }
.cat_postlist .catttl { font-size: 1.05rem; font-weight: bold; padding: 5px 0; margin: 0 0 12px; border-bottom: 2px solid var(--accent-bg); }
.cat_postlist__ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) { .cat_postlist__ul { grid-template-columns: repeat(2, 1fr); } }
.cat_postlist__li a { display: block; text-decoration: none; color: inherit; background: #fff; transition: transform .15s; }
.cat_postlist__li a:hover { transform: translateY(-2px); color: inherit; }
.cat_postlist .eyecatch { margin: 0; aspect-ratio: 486 / 290; overflow: hidden; background: #eee; }
.cat_postlist .eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.cat_postlist .postbody { padding: 6px 8px 10px; }
.cat_postlist .ttl { font-size: 0.85rem; font-weight: bold; line-height: 1.5; }
.cat_postlist time { font-size: 0.72rem; opacity: 0.6; }
.cat_postlist .more { text-align: center; margin-top: 14px; }
.cat_postlist .more a { display: inline-block; border: 1px solid var(--link); color: var(--link); background: #fff; padding: 0.4em 2.4em; border-radius: 3px; text-decoration: none; font-size: 0.9rem; }

/* 記事一覧（古いトップページの WP Show Posts） */
.wp-show-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .wp-show-posts { grid-template-columns: 1fr; } }
.wp-show-posts-single { background: #fff; }
.wp-show-posts-entry-title { font-size: 0.95rem; line-height: 1.5; margin: 0.4em 0; background: none; color: inherit; padding: 0; }
.wp-show-posts-entry-title a { color: inherit; text-decoration: none; }
.wp-show-posts-entry-meta { font-size: 0.75rem; opacity: 0.6; }
.wpsp-clear { display: none; }

/* 記事一覧（カテゴリー・投稿一覧） */
.archive-title { font-size: 1.3rem; margin: 0 0 1em; }
.post-list { border-bottom: 1px solid var(--line); }
.post-list a { display: flex; gap: 16px; padding: 16px 0; text-decoration: none; color: inherit; }
.post-list a:hover { opacity: 0.7; color: inherit; }
.post-list .eyecatch { flex: 0 0 34%; margin: 0; aspect-ratio: 486 / 290; overflow: hidden; background: #eee; }
.post-list .eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.post-list h2 { font-size: 1rem; margin: 0 0 0.3em; line-height: 1.5; }
.post-list .description { font-size: 0.78rem; opacity: 0.65; line-height: 1.7; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: inline-block; min-width: 2.4em; padding: 0.3em 0.6em; text-align: center; border: 1px solid #ddd; background: #fff; text-decoration: none; border-radius: 3px; }
.pagination span.current { background: var(--link); color: #fff; border-color: var(--link); }

/* 記事の下（カテゴリーと共有） */
.article-footer { margin-top: 2em; }
.post-categories { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 6px; }
.post-categories a { display: inline-block; background: var(--link); color: #fff; padding: 0.1em 0.9em; border-radius: 3px; font-size: 0.8rem; text-decoration: none; }
.share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0; }
.share a { display: block; text-align: center; color: #fff; padding: 0.5em 0; font-size: 0.8rem; font-weight: bold; text-decoration: none; border-radius: 3px; }
.share .x a { background: #222; }
.share .facebook a { background: #3b5998; }
.share .hatebu a { background: #00a4de; }
.share .line a { background: #06c755; }
.share a:hover { opacity: 0.8; color: #fff; }

/* サイドバー */
.widget { background: #fff; margin-bottom: 24px; padding: 0 0 16px; font-size: 0.88rem; }
.widgettitle { margin: 0 0 12px; padding: 0.5em 1em; background: var(--accent-bg); color: var(--accent-text); font-size: 0.9rem; }
.widget .textwidget, .widget > ul { padding: 0 16px; }
.widget ul { list-style: none; margin: 0; }
.widget li a { display: block; padding: 0.55em 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.widget li a:hover { color: var(--link); }
.widget figure { margin: 0 0 0.6em; text-align: center; }

/* 有料ページの合言葉の入力欄 */
.pw-form { margin: 2em 0; }
.pw-form input[type="password"] { font-size: 1rem; padding: 0.5em 0.7em; border: 1px solid #ccc; border-radius: 3px; width: 240px; max-width: 100%; }
.pw-form button { font-size: 1rem; padding: 0.5em 1.4em; background: var(--link); color: #fff; border: none; border-radius: 3px; cursor: pointer; }
.pw-error { color: #c33; font-weight: bold; }

/* 問い合わせフォーム */
.contact-form iframe { width: 100%; min-height: 900px; border: 0; }

/* フッター */
#footer { background: #fff; padding: 24px 0; text-align: center; font-size: 0.8rem; }
.footer-nav { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.copyright { margin: 0; opacity: 0.7; }
