
:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-soft: #eef6f3;
  --text: #182029;
  --muted: #64707d;
  --line: #d9e2df;
  --accent: #157a6e;
  --accent-strong: #0f5d54;
  --warm: #bf5b2c;
  --blue: #2767b1;
  --danger: #b83434;
  --shadow: 0 10px 28px rgba(26, 42, 52, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Helvetica Neue", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.header-inner,
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.94rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.page {
  padding: 30px 0 56px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 6px;
}

h1,
h2,
h3 {
  line-height: 1.28;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 2rem + 1vw, 3.1rem);
  margin: 0 0 14px;
}

h2 {
  font-size: 1.45rem;
  margin: 38px 0 14px;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.lead {
  max-width: 760px;
  color: #3c4651;
  font-size: 1.06rem;
  margin: 0 0 24px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.preview-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-frame img {
  width: 100%;
}

.action-panel {
  position: sticky;
  top: 86px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.button-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-picker {
  margin: 18px 0 0;
}

.theme-picker-label {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.swatch-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swatch-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #2b3743;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 8px;
  justify-content: flex-start;
  min-height: 40px;
  padding: 8px 10px;
}

.swatch-button.is-active,
.swatch-button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.swatch {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.button {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  text-decoration: none;
}

.button.secondary {
  background: #ebf3f0;
  color: var(--accent-strong);
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #33404d;
  display: inline-flex;
  padding: 6px 12px;
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.months {
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.calendar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-card img {
  aspect-ratio: 1.414 / 1;
  object-fit: cover;
  width: 100%;
}

.calendar-card-body {
  padding: 14px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.blog-card-image {
  background: #e8f1ee;
  display: block;
}

.blog-card-image img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  padding: 16px;
}

.blog-card-body p {
  color: var(--muted);
  margin: 0;
}

.featured-post .blog-card {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.blog-article {
  max-width: 900px;
}

.hero-image {
  background: #e8f1ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin: 24px 0 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  width: 100%;
}

.post-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.post-content {
  font-size: 1.02rem;
}

.post-content p {
  margin: 0 0 1.05em;
}

.fact-box {
  background: #fff7eb;
  border: 1px solid #e6c99c;
  border-radius: 8px;
  margin: 24px 0;
  padding: 16px;
}

.fact-box dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.fact-box dl > div {
  display: grid;
  gap: 8px;
  grid-template-columns: 128px minmax(0, 1fr);
}

.fact-box dt {
  color: #6b4b19;
  font-weight: 800;
}

.fact-box dd {
  margin: 0;
}

.source-list ul {
  padding-left: 1.2em;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.ad-slot {
  align-items: center;
  background: repeating-linear-gradient(135deg, #f4f7f6 0 12px, #eef4f2 12px 24px);
  border: 1px dashed #b8c7c2;
  border-radius: 8px;
  color: #68767e;
  display: flex;
  font-size: 0.88rem;
  justify-content: center;
  margin: 28px 0;
  min-height: 96px;
  text-align: center;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  padding: 12px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 26px 0 40px;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .action-panel {
    position: static;
  }

  .featured-post .blog-card,
  .fact-box dl > div {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
}
