/* ============================================
   miponoe.com  共通スタイル
   ブランドカラー: 紫 #8294FE / 黄 #F2DC35
   ============================================ */
:root {
  --purple: #8294FE;
  --purple-soft: #A5B2FE;
  --purple-pale: #EEF0FF;
  --yellow: #F2DC35;
  --ink: #3A3A3A;
  --white: #FFFFFF;
  --radius: 18px;
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--purple);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(130,148,254,.35);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo img { height: 34px; width: auto; }
.global-nav { display: flex; align-items: center; gap: 22px; }
.global-nav a {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.global-nav a:hover { opacity: .8; }
.lang-switch {
  border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 999px;
  padding: 3px 14px;
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  cursor: default;
  opacity: .9;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: url("../images/topimage.jpg") center / cover no-repeat;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.hero-logo { width: min(560px, 80vw); margin-bottom: 28px; }
.search-box {
  display: flex;
  width: min(480px, 90vw);
  background: var(--white);
  border: 2px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: inherit;
}
.search-box button {
  border: none;
  background: var(--white);
  padding: 0 18px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ---------- カテゴリ ---------- */
.categories {
  background: var(--purple);
  padding: 56px 20px 64px;
}
.category-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px 0;
}
.category-item { flex: 0 0 25%; min-width: 150px; }
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-align: center;
  transition: transform .15s;
}
.category-item:hover { transform: translateY(-4px); }
.category-item img { height: 74px; width: auto; }
.category-item .jp { font-weight: 700; font-size: .95rem; }
.category-item .en { font-size: .8rem; opacity: .9; }

/* ---------- 記事 ---------- */
.articles { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title h2 { font-size: 1.25rem; font-weight: 800; }
.section-title h2 .spark { color: var(--yellow); margin-right: 6px; }
.view-all { color: var(--purple); font-weight: 700; font-size: .9rem; }
.view-all:hover { text-decoration: underline; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  border: 1.5px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(130,148,254,.25); }
.card-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--purple-pale), #FDF8DC);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  position: relative;
}
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  border: 1.5px solid var(--purple);
  color: var(--purple);
  border-radius: 999px;
  padding: 1px 12px;
  font-size: .75rem;
  font-weight: 700;
}
.card-tag.tag-freebie { border-color: #F08BA0; color: #F08BA0; }
.card-thumb .thumb-title { font-weight: 800; font-size: 1.05rem; line-height: 1.5; }
.card-thumb .thumb-sub { color: var(--purple); font-size: .8rem; font-weight: 700; margin-top: 6px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { font-size: .88rem; }
.card-date { color: #999; font-size: .8rem; margin-top: auto; }

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 8px;
}
.pagination span, .pagination a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}
.pagination .current { background: var(--purple); color: var(--white); }

/* ---------- ボタン ---------- */
.cta-buttons {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cta {
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 28px;
  font-size: 1.3rem;
  font-weight: 800;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.cta img { height: 64px; width: auto; }
.cta .arrow { font-size: 1.4rem; }
.cta-line { background: var(--purple); color: var(--white); }
.cta-etsy { background: var(--yellow); color: var(--ink); }
.cta-etsy img { border-radius: 12px; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1.5px solid #eee;
  padding: 24px 20px 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: #777;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--purple); }
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(130,148,254,.5);
  z-index: 90;
}

/* ---------- 下層ページ共通 ---------- */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}
.page h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}
.page h1 .en-sub {
  display: block;
  font-size: .85rem;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: .05em;
}
.page-lead { color: #888; font-size: .92rem; margin-bottom: 32px; }
.page h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--purple);
}
.page p { margin-bottom: 14px; font-size: .95rem; }
.page ul { margin: 0 0 14px 1.4em; font-size: .95rem; }
.page li { margin-bottom: 6px; }
.notice-box {
  background: var(--purple-pale);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: .92rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 28px;
  margin: 6px 8px 6px 0;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn.btn-yellow { background: var(--yellow); color: var(--ink); }

/* カテゴリ一覧(下層) */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.material-item {
  border: 1.5px solid #eee;
  border-radius: 14px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: .85rem;
  background: #fafafa;
}

/* ---------- 2カラムレイアウト(素材・記事詳細) ---------- */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 64px;
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 36px;
  align-items: start;
}
.breadcrumb { font-size: .82rem; color: #999; margin-bottom: 18px; }
.breadcrumb a { color: var(--purple); font-weight: 700; }
.crumb-cat { margin-right: 4px; }
.material-article { background: var(--white); border: 1.5px solid #eee; border-radius: var(--radius); padding: 28px 30px 34px; }
.material-article h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.post-date { color: #aaa; font-size: .82rem; margin-bottom: 18px; }
.material-article > p { font-size: .95rem; margin-bottom: 10px; }

.mat-box { border: 2px solid var(--purple-soft); border-radius: 14px; overflow: hidden; margin: 22px 0; }
.mat-box-title { background: var(--purple); color: var(--white); font-weight: 800; text-align: center; padding: 8px; }
.mat-box-body { padding: 22px; background: #FCFCFF; text-align: center; }
.mat-box-body img { max-width: min(420px, 100%); margin: 0 auto 16px; }
.dl-row { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.dl-btn { background: var(--purple); color: var(--white); font-weight: 800; border-radius: 8px; padding: 8px 34px; box-shadow: 0 3px 0 #5f74e8; transition: transform .1s; }
.dl-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 #5f74e8; }

.chat-note { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; }
.chat-face { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--purple); color: var(--white); font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chat-bubble { background: #FDF8DC; border: 1.5px solid var(--yellow); border-radius: 12px; padding: 12px 16px; font-size: .9rem; position: relative; }
.terms-note { border-top: 1.5px dashed #ddd; margin-top: 26px; padding-top: 18px; font-size: .88rem; color: #666; }
.terms-note .en { font-size: .8rem; color: #999; }
.terms-note a { color: var(--purple); font-weight: 700; }
.tag-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { display: inline-block; border: 1.5px solid var(--yellow); background: #FFFDF0; color: #8a7c00; border-radius: 999px; padding: 2px 12px; font-size: .78rem; font-weight: 700; }
.tag-chip:hover { background: var(--yellow); color: var(--ink); }

.rel-title { font-size: 1.05rem; font-weight: 800; margin: 30px 0 14px; padding-left: 10px; border-left: 5px solid var(--purple); }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.rel-card { border: 1.5px solid #eee; border-radius: 12px; overflow: hidden; text-align: center; font-size: .75rem; font-weight: 700; background: var(--white); transition: transform .12s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 5px 12px rgba(130,148,254,.25); }
.rel-card img { aspect-ratio: 1; object-fit: contain; background: #FCFCFF; padding: 8px; }
.rel-card span { display: block; padding: 6px 6px 8px; }

/* サイドバー */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { border: 1.5px solid #eee; border-radius: var(--radius); padding: 20px; background: var(--white); }
.widget-title { text-align: center; font-size: .95rem; font-weight: 800; margin-bottom: 14px; border-bottom: 3px double var(--yellow); padding-bottom: 8px; }
.search-box.side { width: 100%; border-width: 1.5px; box-shadow: none; }
.search-box.side input { padding: 8px 14px; font-size: .9rem; }
.profile-widget { text-align: center; }
.profile-logo { background: var(--purple); border-radius: 50%; width: 92px; height: 92px; object-fit: contain; padding: 18px; margin: 0 auto 10px; }
.profile-name { font-weight: 800; }
.profile-role { font-size: .75rem; color: #999; margin-bottom: 10px; }
.profile-widget p { font-size: .82rem; text-align: left; margin-bottom: 8px; }
.profile-widget .profile-en { color: #999; font-size: .75rem; }
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px dashed #eee; }
.cat-list a { display: flex; justify-content: space-between; padding: 8px 4px; font-size: .9rem; font-weight: 700; }
.cat-list a:hover { color: var(--purple); }
.cat-list .cnt { background: var(--yellow); border-radius: 999px; font-size: .75rem; padding: 1px 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* 素材グリッド(カテゴリ・検索) */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.mat-card { border: 1.5px solid #eee; border-radius: 14px; overflow: hidden; background: var(--white); text-align: center; font-size: .8rem; font-weight: 700; transition: transform .12s; }
.mat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(130,148,254,.25); }
.mat-card img { aspect-ratio: 1; object-fit: contain; background: #FCFCFF; padding: 10px; }
.mat-card .noimg { display: flex; aspect-ratio: 1; align-items: center; justify-content: center; color: #bbb; background: var(--purple-pale); }
.mat-card span { display: block; padding: 8px 8px 10px; }

.blog-article .card-tag { position: static; display: inline-block; margin-bottom: 8px; }
.blog-body img { border: 1.5px solid #eee; border-radius: 10px; margin: 12px 0; }
.blog-body h2 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 12px; padding-left: 12px; border-left: 5px solid var(--purple); }
.blog-body h3 { font-size: 1.02rem; font-weight: 800; margin: 22px 0 10px; }
.blog-body p { margin-bottom: 12px; font-size: .95rem; }
.blog-body ul, .blog-body ol { margin: 0 0 14px 1.4em; font-size: .95rem; }
.blog-body a { color: var(--purple); font-weight: 700; }

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

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .global-nav { gap: 14px; }
  .global-nav a .nav-label { display: none; } /* スマホはアイコンのみ */
  .hero { min-height: 360px; }
  .category-grid { gap: 28px 34px; }
  .category-item img { height: 60px; }
  .cta { font-size: 1.1rem; padding: 18px 20px; }
  .cta img { height: 48px; }
}

/* ---------- 旧サイト風の調整 ---------- */
/* ヘッダー下の黄色ライン */
.site-header::after { content: ""; display: block; height: 10px; background: var(--yellow); }

/* 記事本文の見出し(JIN風) */
.blog-body h2 {
  background: #F6F6F9;
  padding: 10px 16px;
  border-left: 6px solid var(--purple);
  border-radius: 4px;
  font-size: 1.12rem;
}
.blog-body h3 {
  display: table;
  margin: 26px auto 16px;
  background: linear-gradient(180deg, #F9E75C, var(--yellow));
  border-radius: 10px;
  padding: 8px 22px;
  position: relative;
  text-align: center;
}
.blog-body h3::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--yellow); border-bottom: none;
}
.blog-body h4 { font-size: .98rem; font-weight: 800; margin: 18px 0 8px; }

/* 目次ボックス */
.toc { border: 2px solid var(--purple-soft); border-radius: 12px; padding: 18px 26px 16px; margin: 24px 0; background: #FCFCFF; }
.toc-title { text-align: center; color: var(--purple); font-weight: 800; margin-bottom: 10px; }
.toc ol { margin: 0 0 0 1.4em; font-size: .92rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink); font-weight: 700; }
.toc a:hover { color: var(--purple); }

/* 表(JIN風の罫線) */
.blog-body table { border-collapse: collapse; width: 100%; font-size: .88rem; margin: 14px 0 20px; }
.blog-body th, .blog-body td { border: 1px solid #e3e3ea; padding: 8px 12px; }
.blog-body th { background: var(--purple-pale); font-weight: 800; text-align: center; }
.blog-body tr:nth-child(even) td { background: #FAFAFD; }

/* ボタン風リンク(単独リンク段落をJS判定で装飾) */
.blog-body a.cta-btn {
  display: inline-block;
  background: linear-gradient(180deg, #F9E75C, var(--yellow));
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 32px;
  box-shadow: 0 3px 0 #d8c322;
  transition: transform .1s;
}
.blog-body a.cta-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 #d8c322; }

/* 本文の文字を少し引き締め */
.blog-body p, .blog-body ul, .blog-body ol { font-size: .92rem; }
/* WordPressボタンブロック */
.blog-body .wp-block-button__link {
  display: inline-block;
  background: linear-gradient(180deg, #F9E75C, var(--yellow));
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 32px;
  box-shadow: 0 3px 0 #d8c322;
  transition: transform .1s;
}
.blog-body .wp-block-button__link:hover { transform: translateY(2px); box-shadow: 0 1px 0 #d8c322; }
.blog-body .wp-block-buttons { text-align: center; margin: 18px 0 24px; }
