:root {
  --purple-900: #2a1450;
  --purple-800: #3a1c6e;
  --purple: #5b2a86;
  --purple-soft: #f4effc;
  --purple-line: #e7dff3;
  --pink: #e7548f;
  --pink-dark: #c93a76;
  --pink-soft: #fdf0f6;
  --yellow: #e8ff47;
  --ink: #26222e;
  --body: #3d3947;
  --muted: #716b80;
  --bg: #faf9fb;
  --surface: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(42, 20, 80, .05), 0 6px 20px rgba(42, 20, 80, .06);
  --shadow-md: 0 2px 6px rgba(42, 20, 80, .07), 0 16px 40px rgba(42, 20, 80, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); }
a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--purple-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--purple-900);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(42, 20, 80, .18);
}
.site-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  color: #fff; font-weight: 800; font-size: 1.32rem; text-decoration: none;
  letter-spacing: .01em; line-height: 1; white-space: nowrap;
}
.logo span { color: var(--yellow); }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .93rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.site-header nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--purple-line);
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 76px 24px 72px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1.18; font-weight: 900;
  color: var(--purple-900); margin: 0 0 22px; letter-spacing: .01em;
}
.hero-text h1 span { color: var(--pink); }
.hero-sub {
  font-size: 1.18rem; font-weight: 700; color: var(--ink); line-height: 1.75; margin: 0 0 14px;
}
.hero-text p { margin: 0 0 16px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-chars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-chars img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center;
  border-radius: 20px; border: 1px solid var(--purple-line); box-shadow: var(--shadow-md);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--purple); color: #fff; font-weight: 700; font-size: .98rem;
  padding: 13px 30px; border-radius: 999px; text-decoration: none; line-height: 1.4;
  box-shadow: var(--shadow-sm); transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--purple-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sub { background: #fff; color: var(--purple); border: 1.5px solid var(--purple); box-shadow: none; }
.btn-sub:hover { background: var(--purple-soft); }

/* ---------- sections ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px 80px; }
main section { margin-top: 76px; scroll-margin-top: 88px; }
.section-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.55rem; font-weight: 800; color: var(--purple-900);
  margin: 0 0 30px; line-height: 1.4; letter-spacing: .01em;
}
.section-title::before {
  content: ""; flex: none; width: 9px; height: 30px; border-radius: 3px;
  background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(42, 20, 80, .12);
}

/* ---------- article cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.card {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--purple-line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card > a { display: block; }
.card > a img {
  display: block; width: 100%; aspect-ratio: 1280 / 670; object-fit: cover;
  border-bottom: 1px solid var(--purple-line);
}
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  align-self: flex-start; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink-dark);
  font-weight: 700; font-size: .78rem; letter-spacing: .04em; line-height: 1.6;
}
.card-body h3 { margin: 0 0 10px; font-size: 1.1rem; line-height: 1.6; font-weight: 800; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--purple); }
.card-body > p { margin: 0 0 10px; font-size: .94rem; color: var(--muted); line-height: 1.75; }
.card-links {
  margin-top: auto; padding-top: 14px; border-top: 1px solid #f1edf7;
  font-size: .9rem; color: var(--muted);
}
.card-links a { font-weight: 700; text-decoration: none; }
.card-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-note { margin-top: 26px; color: var(--muted); font-size: .95rem; }

/* ---------- profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.profile {
  background: var(--surface); border-radius: 18px; padding: 26px;
  border: 1px solid var(--purple-line); box-shadow: var(--shadow-sm);
}
.profile img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center;
  border-radius: 12px; border: 1px solid var(--purple-line); display: block;
}
.profile h3 {
  margin: 20px 0 8px; font-size: 1.3rem; font-weight: 800; color: var(--purple-900);
  letter-spacing: .03em;
}
.profile p { margin: 0; font-size: .94rem; line-height: 1.8; color: var(--body); }
.about-note { color: var(--muted); margin-top: 22px; font-size: .95rem; }

/* ---------- links hub ---------- */
.links-hub ul { list-style: none; margin: 0; padding: 0; }
.links-hub li {
  background: var(--surface); border: 1px solid var(--purple-line); border-radius: 12px;
  padding: 16px 20px; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.links-hub li a { font-weight: 700; text-decoration: none; }
.links-hub li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- article pages ---------- */
.article-main { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--muted); margin-bottom: 30px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .sep { color: #c6bed8; }
.breadcrumb .current { color: var(--body); font-weight: 600; }
.article-cat {
  display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink-dark);
  font-weight: 700; font-size: .78rem; letter-spacing: .04em; line-height: 1.6;
}
.article-main h1 {
  font-size: clamp(1.55rem, 3.4vw, 2rem); line-height: 1.5; font-weight: 800;
  color: var(--purple-900); margin: 16px 0 28px; letter-spacing: .01em;
}
.article-main h2 {
  font-size: 1.38rem; font-weight: 800; color: var(--purple-900); line-height: 1.55;
  margin: 2.4em 0 .8em; padding-left: 15px; border-left: 5px solid var(--purple);
}
.article-main h3 { font-size: 1.13rem; font-weight: 800; color: var(--purple-800); margin: 1.9em 0 .5em; line-height: 1.6; }
.article-main p { margin: .9em 0; }
.article-main ul, .article-main ol { margin: .6em 0 1.1em; padding-left: 1.5em; }
.article-main li { margin: .35em 0; }
.article-main figure { margin: 1.6em 0; }
.article-main figure img {
  display: block; width: 100%; border-radius: 14px; border: 1px solid var(--purple-line);
}
.hero-img { margin: 0 0 30px; }
.hero-img img { box-shadow: var(--shadow-sm); }
.product-link a { word-break: break-all; }
.tags {
  margin-top: 2.6em; padding: 12px 18px; border-radius: 10px;
  background: var(--purple-soft); color: var(--purple);
  font-size: .9rem; font-weight: 600;
}
.ad-slot {
  border: 1.5px dashed #cdc4de; color: #9d95ae; background: #f5f3f8;
  text-align: center; padding: 16px; border-radius: 12px; margin: 24px 0;
  font-size: .82rem; letter-spacing: .1em;
}

/* note CTA */
.note-cta {
  background: var(--purple-900); color: #fff; border-radius: 18px;
  padding: 36px 28px; text-align: center; margin: 48px 0 0;
  box-shadow: var(--shadow-md);
}
.note-cta p { margin: 0 0 18px; font-weight: 700; font-size: 1.02rem; }
.note-cta .btn { background: var(--yellow); color: var(--purple-900); font-weight: 800; box-shadow: none; }
.note-cta .btn:hover { background: #f4ff8a; }

/* author box */
.author-box {
  margin: 28px 0 0; background: var(--surface);
  border: 1px solid var(--purple-line); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow-sm);
}
.author-box-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.08rem; font-weight: 800; color: var(--purple-900); margin: 0 0 20px;
}
.author-box-title::before {
  content: ""; flex: none; width: 8px; height: 24px; border-radius: 3px;
  background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(42, 20, 80, .12);
}
.author-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.author { display: flex; gap: 14px; align-items: flex-start; }
.author img {
  flex: none; width: 76px; height: 76px; object-fit: cover; object-position: top center;
  border-radius: 14px; border: 1px solid var(--purple-line);
}
.author-name { margin: 2px 0 4px; font-weight: 800; font-size: 1.02rem; color: var(--purple-900); letter-spacing: .03em; }
.author p { margin: 0; font-size: .87rem; line-height: 1.75; color: var(--body); }
.author .author-name { margin: 2px 0 4px; }

.back { margin-top: 30px; }
.back a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.back a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--purple-900); color: #cfc4e6; text-align: center;
  padding: 42px 24px; font-size: .87rem; line-height: 1.8;
}
.site-footer p { margin: 0 0 8px; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 52px 24px 48px; }
  .hero-chars { max-width: 560px; }
}
@media (max-width: 640px) {
  .site-header-inner { padding: 0 16px; min-height: 58px; }
  .logo { font-size: 1.14rem; }
  .site-header nav a { padding: 7px 8px; font-size: .86rem; }
  main { padding: 0 16px 56px; }
  main section { margin-top: 52px; }
  .section-title { font-size: 1.32rem; margin-bottom: 22px; }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .hero-inner { padding: 40px 16px 40px; }
  .hero-text h1 { font-size: 2.05rem; }
  .hero-sub { font-size: 1.05rem; }
  .article-main { padding: 28px 16px 56px; }
  .author-list { grid-template-columns: 1fr; }
  .author-box { padding: 22px; }
  .note-cta { padding: 28px 20px; }
  .profile { padding: 20px; }
}
