:root {
  --bg: #f8f1f1;
  --bg-card: #fdfafa;
  --text: #1a1a1a;
  --text-soft: #85787a;
  --line: #e8dcdc;
  --line-strong: #1a1a1a;
  --max-width: 640px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体",
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

a:hover {
  opacity: 0.6;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 0;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.site-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  border-bottom: none;
}

.site-title span {
  color: var(--text-soft);
  font-weight: 400;
}

.site-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* Icons */
.icon,
.nav-icon,
.cat-icon,
.badge-icon,
.hero-icon {
  display: inline-block;
  vertical-align: -3px;
  color: currentColor;
}

.icon svg,
.nav-icon svg,
.cat-icon svg,
.badge-icon svg,
.hero-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.nav-icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
  color: var(--text-soft);
}

.site-nav a.active .nav-icon {
  color: var(--text);
}

.cat-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: var(--text-soft);
}

.badge-icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  color: var(--text-soft);
}

.hero-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 18px 0 0;
  -webkit-overflow-scrolling: touch;
}

.site-nav a {
  flex: none;
  padding: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--text);
}

.site-nav a.active {
  color: var(--text);
  border-bottom: 2px solid var(--text);
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 44px 0 4px;
}

.hero p.tagline {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

.hero p.desc {
  color: var(--text-soft);
  font-size: 13px;
  margin: 0;
  line-height: 1.8;
}

/* Category cards */
.cat-grid {
  display: block;
  margin: 32px 0 8px;
  border-top: 1px solid var(--line);
}

.cat-card {
  display: block;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  border-bottom-width: 1px;
  position: relative;
}

.cat-card {
  border-bottom-style: solid;
}

a.cat-card {
  border-bottom: 1px solid var(--line);
}

.cat-card .cat-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.cat-card .cat-name::after {
  content: "→";
  float: right;
  color: var(--text-soft);
  font-weight: 400;
}

.cat-card .cat-desc {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
  line-height: 1.7;
}

/* Post list */
.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 44px 0 4px;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.post-list .post-date {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 6px;
}

.post-list .post-cat {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  margin-right: 8px;
}

.post-list a {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  border-bottom: none;
}

.post-list a:hover {
  border-bottom: 1px solid var(--line-strong);
}

.post-list li.with-thumb {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.post-thumb {
  flex: none;
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-bottom: none;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-text {
  flex: 1;
  min-width: 0;
}

.article-hero {
  width: 100%;
  margin: 28px 0 4px;
}

.article-body img {
  margin: 8px 0 28px;
}

.article-body figure {
  margin: 8px 0 28px;
}

.article-body figure img {
  margin: 0;
}

.article-body figcaption {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
}

.empty-note {
  color: var(--text-soft);
  font-size: 13px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
}

/* Article */
.article-header {
  padding: 40px 0 16px;
  border-bottom: 1px solid var(--line);
}

.article-header .post-cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.article-header h1 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.6;
  margin: 12px 0 10px;
}

.article-header .post-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.article-body {
  padding: 28px 0 40px;
  font-size: 16px;
}

.article-body p {
  margin: 0 0 1.6em;
}

.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 2.2em 0 1em;
  padding-top: 2px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
  margin: 0 0 1.6em;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body a {
  border-bottom: 1px solid var(--line-strong);
}

/* Affiliate / promo box */
.promo-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin: 32px 0;
  font-size: 14px;
}

.promo-box .promo-label {
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.promo-box a.promo-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

.promo-box a.promo-link::after {
  content: " →";
}

.pr-note {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 32px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 24px 0 60px;
  color: var(--text-soft);
  font-size: 11px;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--text-soft);
  border-bottom: none;
}

.back-link {
  display: inline-block;
  margin: 28px 0 8px;
  font-size: 12px;
  color: var(--text-soft);
  border-bottom: none;
}

.back-link:hover {
  color: var(--text);
}
