@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root {
  --bg: #f3ecdf;
  --paper: #fbf7ed;
  --cream: #eee3d1;
  --sand: #ded1bc;
  --ink: #282319;
  --muted: #706655;
  --green: #243d32;
  --green2: #506658;
  --brown: #4a3d2e;
  --line: rgba(40, 35, 25, .22);
  --line-dark: rgba(36, 61, 50, .55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  letter-spacing: .035em;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { width: 100%; height: 100%; object-fit: cover; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1220px, calc(100% - 56px)); margin: 0 auto; }

.topbar { border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); letter-spacing: .16em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; }

header { border-bottom: 1px solid var(--line-dark); background: rgba(243, 236, 223, .88); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.header-inner { display: grid; grid-template-columns: 1fr auto; gap: 38px; align-items: end; padding: 26px 0 22px; }
.logo-img { width: min(560px, 82vw); height: auto; }

nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 24px; font-size: 12px; letter-spacing: .13em; color: var(--brown); }
nav a { position: relative; padding-bottom: 5px; }
nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
nav a:hover { color: var(--green); }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hero { padding: 54px 0 76px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; min-height: 520px; }
.eyebrow { font-family: "Cormorant Garamond", serif; color: var(--green); font-size: 15px; text-transform: uppercase; letter-spacing: .22em; display: flex; align-items: center; gap: 18px; margin-bottom: 38px; }
.eyebrow::after { content: ""; width: 90px; height: 1px; background: var(--green); }
h1 { margin: 0; font-weight: 500; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.45; letter-spacing: .04em; }
h1 span { color: var(--green); }
.lead { max-width: 520px; margin: 38px 0 0; color: var(--muted); font-size: 15px; }
.editor-note { display: grid; grid-template-columns: 110px 1fr; gap: 22px; border-top: 1px solid var(--green); padding-top: 24px; margin-top: 48px; font-size: 13px; color: var(--muted); }
.editor-note strong { color: var(--green); font-family: "Cormorant Garamond", serif; font-size: 20px; line-height: 1.1; letter-spacing: .14em; font-weight: 500; }
.hero-art { min-height: 640px; background: var(--sand); border: 1px solid var(--line); overflow: hidden; }
.caption { margin-top: 14px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); letter-spacing: .14em; border-top: 1px solid var(--line); padding-top: 12px; }

.section { padding: 78px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: baseline; margin-bottom: 42px; }
.section-en { color: var(--green); font-family: "Cormorant Garamond", serif; font-size: 25px; letter-spacing: .16em; line-height: 1; }
.section-title { margin: 0; font-weight: 500; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.45; }

.feature { display: grid; grid-template-columns: .88fr 1.12fr; border-top: 1px solid var(--green); border-bottom: 1px solid var(--green); background: var(--paper); }
.feature-img { min-height: 560px; border-right: 1px solid var(--line); background: var(--sand); }
.feature-body { padding: 46px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; letter-spacing: .12em; margin-bottom: 28px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 1px 10px 2px; border: 1px solid var(--line-dark); color: var(--green); font-size: 11px; letter-spacing: .13em; }
.feature h2 { margin: 0; font-weight: 500; font-size: clamp(34px, 4.7vw, 62px); line-height: 1.34; letter-spacing: .045em; }
.feature p { margin: 28px 0 0; max-width: 650px; color: var(--muted); font-size: 15px; }
.feature-bottom { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); }
.read { display: inline-flex; align-items: center; gap: 16px; color: var(--green); font-size: 12px; letter-spacing: .18em; white-space: nowrap; }
.read::after { content: ""; width: 74px; height: 1px; background: var(--green); transition: width .3s ease; }
.read:hover::after { width: 120px; }
.issue-no { font-family: "Cormorant Garamond", serif; color: var(--green); font-size: 84px; line-height: .8; }

.latest-grid { display: grid; grid-template-columns: 1fr 360px; gap: 54px; }
.article-list { border-top: 1px solid var(--line-dark); }
.article { display: grid; grid-template-columns: 62px 150px 150px 1fr; gap: 22px; padding: 24px 0 25px; border-bottom: 1px solid var(--line); position: relative; }
.article::after { content: ""; position: absolute; bottom: -1px; left: 0; height: 1px; width: 0; background: var(--green); transition: width .35s ease; }
.article:hover::after { width: 100%; }
.article:hover .article-title { color: var(--green); }
.num { font-family: "Cormorant Garamond", serif; font-size: 28px; color: var(--green); line-height: 1; }
.article-cat, .date { font-size: 11px; color: var(--muted); letter-spacing: .13em; line-height: 1.6; }
.article-cat { color: var(--green); }
.article-title { margin: 0 0 6px; font-weight: 500; font-size: clamp(18px, 2vw, 26px); line-height: 1.55; transition: color .25s ease; }
.article p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.side-card { position: sticky; top: 150px; align-self: start; background: var(--cream); border-top: 1px solid var(--green); border-bottom: 1px solid var(--line-dark); padding: 24px; }
.side-card-img { aspect-ratio: 4 / 5; margin-bottom: 22px; overflow: hidden; background: var(--sand); }
.side-card h3 { margin: 0 0 12px; font-weight: 500; font-size: 25px; line-height: 1.45; }
.side-card p { margin: 0; font-size: 13px; color: var(--muted); }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--green); border-left: 1px solid var(--line); background: var(--paper); }
.catalog-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; transition: background .25s ease; }
.catalog-card:hover { background: var(--cream); }
.catalog-img { aspect-ratio: 4 / 3.2; overflow: hidden; margin-bottom: 24px; background: var(--sand); }
.catalog-card h3 { margin: 18px 0 14px; font-weight: 500; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.45; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.catalog-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--green); font-size: 11px; letter-spacing: .14em; }

.policy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.policy h2 { margin: 0; color: var(--green); font-weight: 500; font-size: clamp(36px, 5vw, 68px); line-height: 1.32; }
.policy-list { border-top: 1px solid var(--green); }
.policy-row { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.policy-row dt { color: var(--green); font-size: 14px; letter-spacing: .15em; }
.policy-row dd { margin: 0; color: var(--muted); font-size: 14px; }

footer { padding: 38px 0 54px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; color: var(--muted); font-size: 12px; }
.footer-logo { width: 260px; height: auto; margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; justify-content: flex-end; }
.footer-links a { border-bottom: 1px solid transparent; }
.footer-links a:hover { color: var(--green); border-color: var(--green); }

@media (max-width: 1000px) {
  .header-inner, .hero, .feature, .latest-grid, .policy, .footer-inner { grid-template-columns: 1fr; }
  nav, .footer-links { justify-content: flex-start; }
  .hero-copy { min-height: auto; }
  .hero-art { min-height: 520px; }
  .feature-img { min-height: 420px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-card { position: static; }
  .catalog { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1220px); }
  .topbar .wrap { flex-direction: column; gap: 2px; }
  .hero { padding-top: 42px; }
  .section { padding: 60px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .feature-body { padding: 30px 22px; }
  .feature-bottom { align-items: start; flex-direction: column-reverse; }
  .article { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .article-cat, .date, .article-main { grid-column: 2; }
  .policy-row { grid-template-columns: 1fr; gap: 8px; }
}


/* ===== Article pages ===== */
.single-body, .page-body { background: var(--bg); min-height: 100vh; }

.art-wrap {
  width: min(760px, calc(100% - 56px));
  margin: 0 auto;
  padding: 60px 0 90px;
}

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .14em;
  margin-bottom: 30px;
}
.art-breadcrumb::before {
  content: "";
  flex-shrink: 0;
  width: 36px;
  height: 1px;
  background: var(--green);
}
.art-breadcrumb a { color: var(--green); }

.art-cat {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 10px 2px;
  border: 1px solid var(--line-dark);
  color: var(--green);
  font-size: 11px;
  letter-spacing: .12em;
  margin-bottom: 20px;
}

h1.art-title {
  margin: 0 0 22px;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--ink);
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.art-meta a { color: var(--green2); }

/* Article body typography */
.art-body {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}
.art-body > *:first-child { margin-top: 0; }
.art-body p { margin: 0 0 1.5em; }
.art-body h2 {
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--green);
  margin: 2.4em 0 .75em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--green);
  letter-spacing: .04em;
}
.art-body h3 {
  font-weight: 500;
  font-size: clamp(17px, 2.3vw, 22px);
  color: var(--brown);
  margin: 1.8em 0 .5em;
  letter-spacing: .04em;
}
.art-body ul, .art-body ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
.art-body li { margin-bottom: .4em; }
.art-body a {
  color: var(--green2);
  border-bottom: 1px solid rgba(80,102,88,.35);
  transition: color .2s, border-color .2s;
}
.art-body a:hover { color: var(--green); border-color: var(--green); }
.art-body strong { color: var(--ink); font-weight: 600; }
.art-body blockquote {
  margin: 1.5em 0;
  padding: 18px 24px;
  background: var(--paper);
  border-left: 3px solid var(--green);
  color: var(--muted);
  font-size: 15px;
}
.art-body script { display: none; }

/* FAQ block in article body */
.art-body .machikado-faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--green);
  padding: 28px 32px;
  margin: 2.4em 0;
}
.art-body .machikado-faq h2 {
  margin-top: 0;
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--green);
  border: none;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.art-body .faq-item { margin-bottom: 16px; }
.art-body .faq-q strong { color: var(--green); font-size: 14px; }
.art-body .faq-a { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 4px 0 0; }

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.post-nav a {
  color: var(--green2);
  line-height: 1.5;
  transition: color .2s;
}
.post-nav a:hover { color: var(--green); }

/* Related articles */
.related-section {
  background: var(--paper);
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.related-inner {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
}
.related-section .section-en {
  font-family: "Cormorant Garamond", serif;
  color: var(--green);
  font-size: 20px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.related-section h2 {
  margin: 0 0 32px;
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 0 18px;
  transition: border-color .25s;
}
.related-card:hover { border-color: var(--green); }
.related-card:hover .related-card-title { color: var(--green); }
.related-thumb {
  aspect-ratio: 4/3;
  background: var(--sand);
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}
.related-card-body { padding: 0 16px; }
.related-card-cat {
  font-size: 10px;
  color: var(--green);
  letter-spacing: .13em;
  margin-bottom: 6px;
}
.related-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  transition: color .2s;
}
.related-card-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
}

/* Static page layout */
.page-wrap {
  width: min(760px, calc(100% - 56px));
  margin: 0 auto;
  padding: 60px 0 90px;
}
.page-wrap h1 {
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--ink);
  border-bottom: 1px solid var(--green);
  padding-bottom: 18px;
  margin: 0 0 36px;
}

/* Archive/category page */
.archive-page {
  width: min(900px, calc(100% - 56px));
  margin: 0 auto;
  padding: 60px 0 80px;
}
.archive-head {
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 26px;
  margin-bottom: 36px;
}
.archive-en {
  font-family: "Cormorant Garamond", serif;
  color: var(--green);
  font-size: 20px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.archive-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.35;
}
.archive-list { border-top: 1px solid var(--line-dark); }
.archive-item {
  display: grid;
  grid-template-columns: 52px 140px 140px 1fr;
  gap: 18px;
  padding: 22px 0 23px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.archive-item::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--green);
  transition: width .35s;
}
.archive-item:hover::after { width: 100%; }
.archive-item:hover .archive-item-title { color: var(--green); }
.archive-item-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: var(--green);
  line-height: 1.2;
}
.archive-item-cat { font-size: 11px; color: var(--green); letter-spacing: .12em; }
.archive-item-date { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.archive-item-title {
  margin: 0 0 5px;
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.5;
  transition: color .2s;
}
.archive-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 720px) {
  .art-wrap, .page-wrap { padding: 36px 0 60px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .post-nav { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 40px 1fr; gap: 8px 14px; }
  .archive-item-cat, .archive-item-date, .archive-item-main { grid-column: 2; }
}
