/* =========================================================
   KIMAMA STAGE 10D.1
   Editorial static pages
   HOME is intentionally excluded.
   ========================================================= */

:root {
  --kimama-page-paper: #f3efe6;
  --kimama-page-paper-deep: #ebe4d8;
  --kimama-page-ink: #171717;
  --kimama-page-muted: #746f67;
  --kimama-page-gold: #a78354;
  --kimama-page-line: rgba(23, 23, 23, 0.14);
}

/* ---------- Canvas ---------- */

body.kimama-static-page {
  background: var(--kimama-page-paper);
  color: var(--kimama-page-ink);
}

body.kimama-static-page #content {
  margin-top: 0;
}

body.kimama-static-page .content-in {
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(62px, 6.5vw, 108px) clamp(28px, 5vw, 72px) clamp(100px, 9vw, 150px);
}

body.kimama-static-page .main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.kimama-static-page article.article {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* ---------- Page header ---------- */

body.kimama-static-page .article-header {
  max-width: 1060px;
  margin: 0 auto clamp(52px, 5vw, 76px);
  padding: 0 0 clamp(30px, 3vw, 42px);
  border: 0;
  border-bottom: 1px solid var(--kimama-page-line);
  background: transparent;
}

body.kimama-static-page .entry-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kimama-page-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: clamp(44px, 4.5vw, 68px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.035em;
}

body.kimama-static-page .entry-title::before {
  content: "PAGE / MY KIMAMA ROUTE";
  display: block;
  margin-bottom: 18px;
  color: var(--kimama-page-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
}

body.kimama-page-about .entry-title::before {
  content: "ABOUT / MY KIMAMA ROUTE";
}

/* Static pages do not need publication chrome competing with the title. */
body.kimama-static-page .article-header .date-tags,
body.kimama-static-page .article-header .post-date,
body.kimama-static-page .article-header .read-time,
body.kimama-static-page .article-header .sns-share {
  display: none !important;
}

/* ---------- Eye catch ---------- */

body.kimama-static-page .eye-catch-wrap,
body.kimama-static-page .eye-catch {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto clamp(54px, 6vw, 82px);
  border-radius: 0;
  overflow: hidden;
  background: var(--kimama-page-paper-deep);
}

body.kimama-static-page .eye-catch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ---------- Reading column ---------- */

body.kimama-static-page .entry-content,
body.kimama-static-page .article-body {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding: 0;
  color: var(--kimama-page-ink);
  font-size: 17.5px;
  line-height: 2.08;
  letter-spacing: 0.004em;
}

body.kimama-static-page .entry-content p,
body.kimama-static-page .article-body p {
  margin-top: 0;
  margin-bottom: 1.75em;
}

body.kimama-static-page .entry-content a,
body.kimama-static-page .article-body a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(167, 131, 84, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

/* ---------- Headings ---------- */

body.kimama-static-page .entry-content h2,
body.kimama-static-page .article-body h2 {
  margin: clamp(76px, 7vw, 108px) 0 clamp(30px, 3vw, 44px) !important;
  padding: 0 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--kimama-page-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--kimama-page-ink) !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif !important;
  font-size: clamp(30px, 2.8vw, 40px) !important;
  font-weight: 400 !important;
  line-height: 1.52 !important;
  letter-spacing: -0.025em !important;
  box-shadow: none !important;
}

body.kimama-static-page .entry-content h2::before,
body.kimama-static-page .entry-content h2::after,
body.kimama-static-page .article-body h2::before,
body.kimama-static-page .article-body h2::after {
  display: none !important;
  content: none !important;
}

body.kimama-static-page .entry-content h3,
body.kimama-static-page .article-body h3 {
  margin: clamp(52px, 5vw, 76px) 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--kimama-page-ink) !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif !important;
  font-size: clamp(24px, 2vw, 31px) !important;
  font-weight: 400 !important;
  line-height: 1.58 !important;
  letter-spacing: -0.02em !important;
  box-shadow: none !important;
}

body.kimama-static-page .entry-content h3::before,
body.kimama-static-page .entry-content h3::after,
body.kimama-static-page .article-body h3::before,
body.kimama-static-page .article-body h3::after {
  display: none !important;
  content: none !important;
}

/* ---------- Lists / quotes / tables ---------- */

body.kimama-static-page .entry-content ul,
body.kimama-static-page .entry-content ol {
  margin-top: 1.2em;
  margin-bottom: 1.8em;
  padding-left: 1.5em;
}

body.kimama-static-page .entry-content li {
  margin: 0.45em 0;
}

body.kimama-static-page .entry-content blockquote {
  margin: 42px 0;
  padding: 6px 0 6px 24px;
  border: 0;
  border-left: 1px solid var(--kimama-page-gold);
  background: transparent;
  color: var(--kimama-page-muted);
}

body.kimama-static-page .entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 38px 0;
  background: transparent;
}

body.kimama-static-page .entry-content th,
body.kimama-static-page .entry-content td {
  padding: 12px 10px;
  border-color: var(--kimama-page-line);
  background: transparent;
}

/* ---------- Images ---------- */

body.kimama-static-page .entry-content figure,
body.kimama-static-page .entry-content .wp-block-image {
  margin-top: clamp(34px, 4vw, 54px);
  margin-bottom: clamp(34px, 4vw, 54px);
}

body.kimama-static-page .entry-content img {
  border-radius: 0;
}

body.kimama-static-page .entry-content figcaption {
  margin-top: 10px;
  color: var(--kimama-page-muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
}

/* ---------- Buttons / forms ---------- */

body.kimama-static-page .wp-block-button__link,
body.kimama-static-page .entry-content button,
body.kimama-static-page .entry-content input[type="submit"] {
  border-radius: 0 !important;
}

body.kimama-static-page .entry-content input[type="text"],
body.kimama-static-page .entry-content input[type="email"],
body.kimama-static-page .entry-content input[type="url"],
body.kimama-static-page .entry-content textarea,
body.kimama-static-page .entry-content select {
  border: 1px solid var(--kimama-page-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 834px) {
  body.kimama-static-page .content-in {
    padding: 46px 20px 86px;
  }

  body.kimama-static-page .article-header {
    margin-bottom: 38px;
    padding-bottom: 24px;
  }

  body.kimama-static-page .entry-title {
    font-size: clamp(33px, 9.2vw, 44px);
    line-height: 1.4;
    letter-spacing: -0.026em;
  }

  body.kimama-static-page .entry-title::before {
    margin-bottom: 13px;
    font-size: 8px;
    letter-spacing: 0.19em;
  }

  body.kimama-static-page .eye-catch-wrap,
  body.kimama-static-page .eye-catch {
    margin-bottom: 42px;
  }

  body.kimama-static-page .entry-content,
  body.kimama-static-page .article-body {
    max-width: none;
    font-size: 16.5px;
    line-height: 2;
  }

  body.kimama-static-page .entry-content h2,
  body.kimama-static-page .article-body h2 {
    margin: 62px 0 26px !important;
    padding-bottom: 14px !important;
    font-size: clamp(25px, 7vw, 31px) !important;
  }

  body.kimama-static-page .entry-content h3,
  body.kimama-static-page .article-body h3 {
    margin: 44px 0 18px !important;
    font-size: clamp(21px, 5.8vw, 27px) !important;
  }
}


/* =========================================================
   KIMAMA STAGE 10D.2
   Static-page polish
   - editorial TOC
   - cleaner tables
   - quiet page ending
   - About-page disclosure cleanup
   ========================================================= */

/* ---------- About page: PR disclosure is not part of the profile content ---------- */

body.kimama-page-about .pr-label,
body.kimama-page-about .pr-label-wrap,
body.kimama-page-about [class*="pr-label"] {
  display: none !important;
}

/* Tighten the handoff from page title to the first content block. */
body.kimama-static-page .article-header {
  margin-bottom: clamp(34px, 4vw, 54px);
}

/* ---------- Editorial table of contents ---------- */

body.kimama-static-page .toc {
  width: 100% !important;
  max-width: 780px !important;
  margin: clamp(34px, 4vw, 54px) auto clamp(68px, 7vw, 94px) !important;
  padding: 26px 0 28px !important;
  border: 0 !important;
  border-top: 1px solid var(--kimama-page-line) !important;
  border-bottom: 1px solid var(--kimama-page-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.kimama-static-page .toc-title {
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: var(--kimama-page-gold) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.18em !important;
  text-align: left !important;
}

body.kimama-static-page .toc-title::before {
  content: "CONTENTS / ";
}

body.kimama-static-page .toc-content {
  color: var(--kimama-page-ink);
  font-size: 15px;
  line-height: 1.75;
}

body.kimama-static-page .toc-content > ol,
body.kimama-static-page .toc-content > ul {
  margin: 0 !important;
  padding-left: 1.45em !important;
}

body.kimama-static-page .toc-content li {
  margin: 0.5em 0 !important;
}

body.kimama-static-page .toc a {
  color: inherit !important;
  text-decoration: none !important;
}

/* ---------- Cleaner editorial tables ---------- */

body.kimama-static-page .entry-content table {
  width: 100%;
  margin: 42px 0 58px !important;
  border: 0 !important;
  border-top: 1px solid var(--kimama-page-ink) !important;
  border-bottom: 1px solid var(--kimama-page-line) !important;
  border-collapse: collapse !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.kimama-static-page .entry-content table tr,
body.kimama-static-page .entry-content table tr:nth-child(odd),
body.kimama-static-page .entry-content table tr:nth-child(even),
body.kimama-static-page .entry-content table th,
body.kimama-static-page .entry-content table td {
  background: transparent !important;
  background-image: none !important;
}

body.kimama-static-page .entry-content table th,
body.kimama-static-page .entry-content table td {
  padding: 15px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--kimama-page-line) !important;
  color: var(--kimama-page-ink) !important;
  text-align: left;
  vertical-align: top;
}

body.kimama-static-page .entry-content table th {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.kimama-static-page .entry-content table td {
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- Remove generated Cocoon footer chrome from static pages ---------- */

body.kimama-static-page article.article > .article-footer,
body.kimama-static-page .sns-follow,
body.kimama-static-page .sns-share,
body.kimama-static-page .author-box,
body.kimama-static-page .post-author,
body.kimama-static-page .breadcrumb {
  display: none !important;
}

/* The page content itself owns its ending. */
body.kimama-static-page .entry-content {
  padding-bottom: clamp(30px, 4vw, 54px);
}

/* ---------- About page: keep the manual SNS section quiet ---------- */

body.kimama-page-about .entry-content h2:last-of-type {
  margin-bottom: 30px !important;
}

body.kimama-page-about .entry-content a[href*="instagram.com"] {
  text-decoration-color: rgba(167, 131, 84, 0.72);
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 834px) {
  body.kimama-static-page .article-header {
    margin-bottom: 30px;
  }

  body.kimama-static-page .toc {
    max-width: none !important;
    margin: 28px 0 58px !important;
    padding: 22px 0 24px !important;
  }

  body.kimama-static-page .toc-title {
    margin-bottom: 16px !important;
    font-size: 8px !important;
  }

  body.kimama-static-page .toc-content {
    font-size: 14px;
    line-height: 1.7;
  }

  body.kimama-static-page .entry-content table {
    display: table;
    width: 100%;
    margin: 34px 0 46px !important;
    font-size: 14px;
  }

  body.kimama-static-page .entry-content table th,
  body.kimama-static-page .entry-content table td {
    padding: 11px 8px !important;
  }

  body.kimama-static-page .entry-content table th {
    font-size: 10px;
  }

  body.kimama-static-page .entry-content table td {
    font-size: 13px;
    line-height: 1.65;
  }
}


/* =========================================================
   KIMAMA STAGE 10D.3
   About-page profile doorway
   Applies ONLY to /about/
   ========================================================= */

/* Bring the first profile section closer to the TOC. */
body.kimama-page-about .toc {
  margin-bottom: clamp(36px, 4vw, 52px) !important;
}

/* Turn the first H2 ("カズ") into the profile doorway. */
body.kimama-page-about .entry-content h2:first-of-type,
body.kimama-page-about .article-body h2:first-of-type {
  margin-top: 0 !important;
  margin-bottom: 26px !important;
  padding-bottom: 18px !important;
  font-size: clamp(36px, 3.3vw, 48px) !important;
  line-height: 1.42 !important;
}

/* Re-enable a restrained eyebrow only for the first About heading. */
body.kimama-page-about .entry-content h2:first-of-type::before,
body.kimama-page-about .article-body h2:first-of-type::before {
  content: "KAZU / SOLO TRAVELER" !important;
  display: block !important;
  margin-bottom: 14px;
  color: var(--kimama-page-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.20em;
}

/* Keep the generic decorative after-element disabled. */
body.kimama-page-about .entry-content h2:first-of-type::after,
body.kimama-page-about .article-body h2:first-of-type::after {
  display: none !important;
  content: none !important;
}

/* The first short profile paragraph becomes the opening statement.
   Content and alignment are preserved; only hierarchy changes. */
body.kimama-page-about .entry-content h2:first-of-type + p,
body.kimama-page-about .article-body h2:first-of-type + p {
  margin-top: 0;
  margin-bottom: clamp(46px, 5vw, 68px);
  color: var(--kimama-page-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.95;
  letter-spacing: 0.01em;
}

/* The following sections return to the quieter shared fixed-page rhythm. */
body.kimama-page-about .entry-content h2:not(:first-of-type),
body.kimama-page-about .article-body h2:not(:first-of-type) {
  margin-top: clamp(68px, 6vw, 96px) !important;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 834px) {
  body.kimama-page-about .toc {
    margin-bottom: 34px !important;
  }

  body.kimama-page-about .entry-content h2:first-of-type,
  body.kimama-page-about .article-body h2:first-of-type {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    padding-bottom: 14px !important;
    font-size: clamp(31px, 8.2vw, 38px) !important;
    line-height: 1.45 !important;
  }

  body.kimama-page-about .entry-content h2:first-of-type::before,
  body.kimama-page-about .article-body h2:first-of-type::before {
    margin-bottom: 11px;
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  body.kimama-page-about .entry-content h2:first-of-type + p,
  body.kimama-page-about .article-body h2:first-of-type + p {
    margin-bottom: 46px;
    font-size: clamp(18px, 5vw, 21px);
    line-height: 1.9;
  }

  body.kimama-page-about .entry-content h2:not(:first-of-type),
  body.kimama-page-about .article-body h2:not(:first-of-type) {
    margin-top: 58px !important;
  }
}


/* =========================================================
   KIMAMA STAGE 10D.4
   Static-page final cleanup
   - remove PR disclosure from all non-front static pages
   - reduce excessive bottom whitespace on short pages
   ========================================================= */

/* ---------- Static pages do not need article PR disclosure ---------- */

body.kimama-static-page .pr-label,
body.kimama-static-page .pr-label-wrap,
body.kimama-static-page [class*="pr-label"] {
  display: none !important;
}

/* ---------- Short-page ending ---------- */

/* Stage 10D.1 used generous bottom space for long profile/editorial pages.
   Reduce it globally for static pages, while About still retains enough
   breathing room through its content rhythm. */
body.kimama-static-page .content-in {
  padding-bottom: clamp(58px, 6vw, 92px);
}

body.kimama-static-page .entry-content,
body.kimama-static-page .article-body {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Avoid Cocoon shell elements reserving extra vertical space after content. */
body.kimama-static-page article.article {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.kimama-static-page .main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* If the final content element has a large default bottom margin,
   let the page end naturally before the footer. */
body.kimama-static-page .entry-content > :last-child,
body.kimama-static-page .article-body > :last-child {
  margin-bottom: 0 !important;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 834px) {
  body.kimama-static-page .content-in {
    padding-bottom: max(46px, calc(env(safe-area-inset-bottom) + 30px));
  }
}
