@import url('https://fonts.googleapis.com/css2?family=Murecho:wght@400;500;700&family=Yomogi&display=swap');

:root { --font-murecho: 'Murecho'; --font-yomogi: 'Yomogi'; }

:root {
  --linen: #ece6d8;
  --linen-deep: #e3dac8;
  --paper: #fffdf7;
  --paper-warm: #fbf4e6;
  --ink: #3a342a;
  --ink-soft: #6b6354;
  --muted: #9a9080;
  --line: #ddd3bf;
  --ochre: #c08a4a;
  --ochre-deep: #a8643a;
  --ochre-soft: #f3e7d2;
  --ochre-tint: #f7efe0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 16px 34px rgba(108, 78, 38, 0.16);
  --shadow-soft: 0 8px 20px rgba(108, 78, 38, 0.1);
  --pin: 0 2px 4px rgba(120, 70, 30, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Linen weave texture over the board base */
  background-color: var(--linen);
  background-image:
    radial-gradient(circle at 90% -6%, rgba(192, 138, 74, 0.16), transparent 26rem),
    repeating-linear-gradient(90deg, rgba(255, 253, 247, 0.5) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(168, 100, 58, 0.045) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: var(--font-murecho), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ochre-deep);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-murecho), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ochre-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- Pinboard masthead (wordmark + pinned paper tags) ---------- */
.masthead {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.66), rgba(255, 253, 247, 0));
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark-pin {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--ochre-soft);
  color: var(--ochre-deep);
  border: 1px solid #e6d2b3;
  transform: rotate(-4deg);
}

.wordmark-text strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wordmark-text small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

/* Each nav item is a small paper tag pinned with an ochre pin */
.nav-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px 8px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px 9px 9px 4px;
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
  transition: transform 0.16s ease, color 0.16s ease;
}

.nav-tag-pin {
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: var(--pin);
}

.nav-tag:hover {
  transform: translateY(-2px) rotate(-1.2deg);
  color: var(--ochre-deep);
}

main {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Lead (two-column board) ---------- */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0 44px;
}

.lead h1 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.34;
}

.lead-lede {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.86;
}

.lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lead-tags span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

/* Lead board visual: photo over an ochre gradient fallback, with a pinned note */
.lead-board {
  position: relative;
  height: clamp(260px, 30vw, 340px);
  border-radius: 16px;
  border: 1px solid #e2d4bc;
  background:
    linear-gradient(180deg, rgba(58, 52, 42, 0.04), rgba(58, 52, 42, 0.14)),
    url("/images/linenboard-lead.jpg") center / cover no-repeat,
    linear-gradient(135deg, #e9dcc2, #f1e6cf 55%, #e7d3b3);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lead-board-note {
  position: relative;
  width: min(74%, 240px);
  padding: 22px 20px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-2.4deg);
  display: grid;
  gap: 11px;
}

.lead-board-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ochre-deep);
  box-shadow: var(--pin);
}

.lead-board-label {
  font-family: var(--font-yomogi), cursive;
  color: var(--ochre-deep);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.lead-board-line {
  height: 9px;
  border-radius: 4px;
  background: var(--linen-deep);
}

.lead-board-line.short {
  width: 64%;
}

/* ---------- Section heading ---------- */
.band-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--line);
}

.band-heading h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.band-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.boards,
.featured,
.recent,
.about {
  padding: 50px 0;
}

/* ---------- 目的別チェック board (signature: pinned paper-tag modules) ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 22px;
}

.board-card {
  position: relative;
  margin-top: 12px;
  padding: 30px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px 6px 10px 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.board-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.board-card:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.board-card:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: var(--shadow);
}

/* The ochre pin holding the paper tag to the board */
.board-pin {
  position: absolute;
  top: -11px;
  left: 30px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8a364, var(--ochre-deep));
  box-shadow: var(--pin);
}

/* Handwritten-style tag label (Yomogi, ONLY here + lead/checklist tags) */
.board-tag {
  display: inline-block;
  font-family: var(--font-yomogi), cursive;
  color: var(--ochre-deep);
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  transform: rotate(-1.5deg);
}

.board-card h3 {
  margin: 8px 0 8px;
  font-size: 1.18rem;
  line-height: 1.5;
}

.board-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Checklist with ochre checkbox markers */
.board-checks,
.featured-list,
.checklist-items {
  list-style: none;
  margin: 16px 0 16px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.board-checks li,
.featured-list li,
.checklist-items li,
.article-content ul li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  line-height: 1.64;
}

.board-checks li::before,
.featured-list li::before,
.checklist-items li::before,
.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 16px;
  height: 16px;
  border: 1.8px solid var(--ochre);
  border-radius: 4px;
  background:
    linear-gradient(45deg, transparent 44%, var(--ochre-deep) 44%, var(--ochre-deep) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--ochre-deep) 44%, var(--ochre-deep) 56%, transparent 56%);
  background-size: 11px 11px, 11px 11px;
  background-position: 1.5px 2.5px, 1.5px -2.5px;
  background-repeat: no-repeat;
}

.board-count,
.featured-count {
  display: inline-block;
  color: var(--ochre-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Featured checklist (one wide pinned sheet) ---------- */
.featured-card {
  position: relative;
  margin-top: 12px;
  padding: 40px clamp(26px, 5vw, 46px) 34px;
  background:
    linear-gradient(180deg, var(--paper), var(--paper-warm));
  border: 1px solid #e6d8bd;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px 44px;
  align-items: start;
}

.featured-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8a364, var(--ochre-deep));
  box-shadow: var(--pin);
}

.featured-tag {
  display: inline-block;
  font-family: var(--font-yomogi), cursive;
  color: var(--ochre-deep);
  font-size: 1.16rem;
  transform: rotate(-1.5deg);
}

.featured-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
}

.featured-lede {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
  font-size: 0.98rem;
}

.featured-list {
  margin: 4px 0 0;
}

.featured-list li {
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-weight: 500;
}

.featured-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.featured-count {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* ---------- Recent slips (pinned horizontal paper slips) ---------- */
.slip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.slip {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px 20px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--ochre);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.slip:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow);
}

.slip-pin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: var(--pin);
}

.slip-body {
  display: grid;
  gap: 5px;
}

.slip-tag {
  justify-self: start;
  font-family: var(--font-yomogi), cursive;
  color: var(--ochre-deep);
  font-size: 0.96rem;
}

.slip-body strong {
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
}

.slip-desc {
  color: var(--ink-soft);
  line-height: 1.62;
  font-size: 0.92rem;
}

.slip-date {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ---------- About ---------- */
.about h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  max-width: 780px;
}

.about-list li {
  position: relative;
  padding: 17px 20px 17px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  line-height: 1.72;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: var(--pin);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0), rgba(255, 253, 247, 0.5));
}

.site-footer-inner {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 56px;
  color: var(--muted);
}

.footer-pin {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ochre-soft);
  color: var(--ochre-deep);
  border: 1px solid #e6d2b3;
  transform: rotate(-4deg);
}

.site-footer strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.06rem;
}

.footer-desc {
  margin: 8px 0 16px;
  max-width: 520px;
  line-height: 1.66;
  font-size: 0.92rem;
}

.footer-disclosure {
  display: inline-block;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ochre-soft);
  color: var(--ochre-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Article (single column, checklist-forward) ---------- */
.article-shell {
  max-width: 760px;
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--ochre-deep);
}

.article-body {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(26px, 5vw, 50px);
  box-shadow: var(--shadow-soft);
}

.article-tag {
  display: inline-block;
  font-family: var(--font-yomogi), cursive;
  color: var(--ochre-deep);
  font-size: 1.08rem;
  transform: rotate(-1.5deg);
}

.article-head h1 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.4;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-lede {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.84;
}

/* The signature checklist card, pinned at the top of the body */
.checklist-card {
  position: relative;
  margin: 30px 0 12px;
  padding: 28px 26px 22px;
  background: var(--ochre-tint);
  border: 1px solid #e6d4b5;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.checklist-pin {
  position: absolute;
  top: -11px;
  left: 28px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8a364, var(--ochre-deep));
  box-shadow: var(--pin);
}

.checklist-label {
  display: inline-block;
  font-family: var(--font-yomogi), cursive;
  color: var(--ochre-deep);
  font-size: 1.16rem;
  transform: rotate(-1.5deg);
}

.checklist-kicker {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

.checklist-items {
  margin: 14px 0 14px;
}

.checklist-items li {
  color: var(--ink);
  font-weight: 500;
}

.checklist-count {
  display: inline-block;
  color: var(--ochre-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.article-content {
  margin-top: 30px;
  color: #423b30;
  font-size: 1.04rem;
  line-height: 1.92;
}

.article-content h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.62rem);
  padding-left: 14px;
  border-left: 5px solid var(--ochre);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--ochre-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 22px 24px;
  background: var(--paper-warm);
  border: 1px solid #ecdcc0;
  border-left: 5px solid var(--ochre-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ochre-deep);
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--ochre-soft);
  color: var(--ochre-deep);
  font-weight: 700;
}

.faq-section,
.source-note {
  margin-top: 40px;
}

.faq-section h2,
.source-note h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 8px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "✓";
  display: inline-block;
  width: 1.4em;
  color: var(--ochre);
  font-weight: 800;
}

.faq-section details[open] summary::before {
  content: "−";
}

.faq-section details p,
.source-note p {
  color: var(--ink-soft);
  line-height: 1.78;
}

.faq-section details p {
  margin: 10px 0 0 1.4em;
}

.source-note {
  padding: 22px 24px;
  background: var(--paper-warm);
  border: 1px dashed #e0cfaf;
  border-radius: var(--radius);
}

.article-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ochre-deep);
  font-weight: 700;
}

.back-link::before {
  content: "←";
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 34px;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .slip {
    grid-template-columns: auto 1fr;
  }

  .slip-date {
    grid-column: 2;
    justify-self: start;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
