:root {
  --forest: #0b2623;
  --forest-deep: #061a19;
  --midnight: #101b2d;
  --parchment: #f1e7d0;
  --parchment-soft: #d8cdb6;
  --sunrise: #f0642b;
  --ink: #111917;
  --paper: #f2eee5;
  --line: rgba(17, 25, 23, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-deep);
  color: var(--parchment);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  z-index: -4;
  background:
    radial-gradient(ellipse 34% 24% at 50% 0%, rgba(160, 40, 10, 0.14) 0%, rgba(160, 40, 10, 0.09) 55%, rgba(160, 40, 10, 0) 100%),
    linear-gradient(180deg, rgba(5, 12, 30, 0) 0%, rgba(5, 12, 30, 0) 20%, rgba(5, 12, 30, 0.14) 30%, rgba(5, 12, 30, 0.14) 70%, rgba(5, 12, 30, 0.2) 100%),
    radial-gradient(ellipse 32% 20% at 75% 22%, rgba(200, 172, 146, 0.3) 0%, rgba(200, 172, 146, 0.2) 45%, rgba(200, 172, 146, 0) 100%),
    radial-gradient(ellipse 50% 76% at 43% 34%, rgba(226, 191, 132, 0.06) 0%, rgba(226, 191, 132, 0.039) 30%, rgba(226, 191, 132, 0) 40%, rgba(32, 20, 14, 0.156) 52%, rgba(32, 20, 14, 0.608) 78%, rgba(32, 20, 14, 0.78) 100%),
    linear-gradient(180deg, rgba(226, 191, 132, 0.006) 0%, rgba(226, 191, 132, 0) 45%, rgba(32, 20, 14, 0.09) 72%, rgba(32, 20, 14, 0.36) 100%);
}
.hero::after {
  z-index: -1;
  background: none;
}
.hero-mountain,
.hero-artist,
.hero-artist-tone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.hero-mountain {
  z-index: -5;
  object-position: left top;
  filter: grayscale(0.15) sepia(0.48) saturate(1.22) contrast(1) brightness(0.63);
}
.hero-artist {
  z-index: -3;
  pointer-events: none;
  filter: grayscale(0.12) saturate(0.88) contrast(1.10) brightness(1.35);
}
.hero-artist-tone {
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 12% 14% at 63% 75%, rgba(213, 137, 89, 0.25) 0%, rgba(185, 110, 70, 0.16) 55%, rgba(185, 110, 70, 0) 100%),
    linear-gradient(180deg, rgba(104, 101, 118, 0.1) 0%, rgba(104, 101, 118, 0.1) 48%, rgba(117, 78, 57, 0.1) 59%, rgba(117, 78, 57, 0.1) 100%);
  -webkit-mask: url("/images/hero-artist-cutout.png") center top / cover no-repeat;
  mask: url("/images/hero-artist-cutout.png") center top / cover no-repeat;
}
.site-header, .article-header {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(88px, 8.333vw, 120px);
  padding: 0 clamp(30px, 3.125vw, 45px);
  border-bottom: 1px solid rgba(241, 231, 208, 0.16);
}
.site-header {
  color: var(--parchment);
  border-bottom-color: rgba(241, 231, 208, 0.16);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  letter-spacing: 0.17em;
}
.brand span { font-size: clamp(1.45rem, 2.36vw, 2.125rem); line-height: 1; }
.brand small {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.32em;
}
.site-header nav { display: flex; gap: clamp(28px, 3vw, 43px); }
.site-header nav, .article-header > a:last-child {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.site-header nav a, .article-header > a:last-child {
  position: relative;
  padding: 12px 0;
}
.site-header nav a::after, .article-header > a:last-child::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--sunrise);
  transform: scaleX(0);
  transition: transform 220ms ease;
}
.site-header nav a::after { background: var(--sunrise); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after,
.article-header > a:last-child:hover::after, .article-header > a:last-child:focus-visible::after {
  transform: scaleX(1);
}
.hero-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 50vw;
  min-height: 64%;
  /* Keep the title and call-to-action sized to the usable half-panel width. */
  container-type: inline-size;
  padding: clamp(52px, 8.1vh, 73px) clamp(28px, 3.47vw, 50px);
  background: transparent;
  box-shadow: none;
}
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(32px, 4.6vh, 42px); letter-spacing: 0.2em; }
.eyebrow span { width: 66px; height: 1px; background: var(--sunrise); }
.eyebrow span::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sunrise);
  transform: translate(-1px, -3px);
}
.hero h1 {
  margin: 0;
  /* cqi follows the panel itself, so it remains inside the panel while resizing. */
  font-size: clamp(2.05rem, 8.8cqi, 4.3rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.045em;
  white-space: nowrap;
}
.hero-copy {
  max-width: 34rem;
  margin: clamp(26px, 3.55vh, 32px) 0 clamp(56px, 8.7vh, 78px);
  color: var(--parchment-soft);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 2;
  letter-spacing: 0.08em;
}
.outline-link, .solid-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 30px;
  border: 1px solid var(--sunrise);
  color: var(--sunrise);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 180ms ease, background 180ms ease;
}
.outline-link {
  width: min(100%, clamp(230px, 46cqi, 330px));
  padding-left: clamp(28px, 3.47vw, 50px);
}
.outline-link { white-space: nowrap; }
.outline-link:hover, .outline-link:focus-visible, .solid-link:hover, .solid-link:focus-visible {
  background: var(--sunrise);
  color: var(--forest-deep);
}
.section-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 130px 0; }
.section-kicker {
  margin: 0 0 16px;
  color: var(--sunrise);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.message { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: clamp(50px, 9vw, 140px); }
.message-heading { position: sticky; top: 70px; align-self: start; }
.message-heading h2, .blog-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}
.message-credit { margin: 22px 0 0; color: #5b6561; letter-spacing: 0.12em; }
.message-video {
  width: 100%;
  margin-top: 36px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(11, 38, 35, 0.18);
  background: #111;
  box-shadow: 0 18px 42px rgba(11, 38, 35, 0.12);
}
.message-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.message-video-caption {
  margin: 14px 0 0;
  color: var(--forest);
  font-size: 0.88rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
}
.message-body { max-width: 46rem; color: #39433f; font-size: 1.05rem; line-height: 2.25; }
.message-body p { margin: 0 0 34px; }
.message-lead {
  padding: 0 0 30px 28px;
  border-left: 2px solid var(--sunrise);
  color: var(--forest);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.8;
}
.blog-section { background: var(--forest); color: var(--parchment); }
.blog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 70px;
}
.blog-write-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 190px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--sunrise);
  color: var(--sunrise);
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}
.blog-write-link:hover,
.blog-write-link:focus-visible {
  background: var(--sunrise);
  color: var(--forest-deep);
}
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(241,231,208,0.18); }
.post-card {
  min-height: 360px;
  padding: 38px;
  background: var(--forest);
  transition: background 180ms ease;
}
.post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  margin: -38px -38px 34px;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card:hover { background: #10332f; }
.post-card h3 { margin: 22px 0; font-size: 1.45rem; font-weight: 400; line-height: 1.65; }
.post-card > p:not(.post-date) { color: var(--parchment-soft); line-height: 1.9; }
.post-date {
  margin: 0;
  color: var(--sunrise);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--sunrise);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.empty-posts {
  padding: 70px 40px;
  border: 1px solid rgba(241,231,208,0.2);
  text-align: center;
}
.empty-posts p { margin: 0 0 12px; font-size: 1.3rem; }
.empty-posts small { color: var(--parchment-soft); }
footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  min-height: 240px;
  padding: 60px clamp(28px, 5vw, 80px);
  background: var(--forest-deep);
  color: var(--parchment);
}
.footer-meta { display: grid; justify-items: end; gap: 18px; }
.footer-meta a { color: var(--parchment-soft); font-size: 0.72rem; letter-spacing: 0.08em; }
.footer-meta small { font: 0.6rem Arial, sans-serif; letter-spacing: 0.18em; }
.nangain-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--sunrise);
  transition: color 180ms ease;
}
.nangain-link:hover,
.nangain-link:focus-visible { color: var(--sunrise); }

.article-page { min-height: 100vh; background: var(--forest-deep); color: var(--parchment); }
.article-header { color: var(--parchment); }
.article-shell { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 140px; }
.article-shell h1 { margin: 20px 0 30px; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; line-height: 1.35; }
.article-image {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin: 46px 0;
  object-fit: contain;
  background: #071f1e;
}
.article-excerpt { padding: 24px 0; border-block: 1px solid rgba(241,231,208,0.16); color: var(--parchment-soft); line-height: 2; }
.article-content { margin: 60px 0; color: var(--parchment-soft); font-size: 1.08rem; line-height: 2.2; white-space: pre-wrap; }

.admin-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  background: var(--forest-deep);
  color: var(--parchment);
}
.admin-gate > div { width: min(600px, 100%); }
.admin-gate h1 { margin: 0 0 26px; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; line-height: 1.4; }
.admin-gate p:not(.section-kicker) { color: var(--parchment-soft); line-height: 2; }
.admin-gate .solid-link { margin: 34px 0 0; }
.admin-gate .text-link { display: block; }
.editor-page { min-height: 100vh; padding: clamp(30px, 5vw, 70px); background: #f4f1e9; }
.editor-header { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.editor-header h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 400; }
.editor-header > div > p:last-child { color: #65706b; }
.editor-header nav { display: flex; gap: 24px; align-items: flex-start; }
.editor-header nav a { border-bottom: 1px solid var(--sunrise); padding-bottom: 6px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: clamp(35px, 6vw, 90px); }
.editor-form { padding: clamp(25px, 4vw, 48px); background: white; }
.editor-form label { display: grid; gap: 10px; margin-bottom: 25px; font-weight: 700; }
.editor-form input, .editor-form textarea, .editor-form select {
  width: 100%;
  border: 1px solid #c8cec9;
  border-radius: 0;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  font-weight: 400;
}
.editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus { outline: 2px solid var(--sunrise); outline-offset: 2px; }
.image-control {
  margin: 0 0 25px;
  padding: 22px;
  border: 1px solid #c8cec9;
}
.image-control legend { padding: 0 8px; font-weight: 700; }
.image-control > p { margin: 0 0 18px; color: #65706b; font-size: 0.9rem; }
.image-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.image-preview img {
  display: block;
  width: min(100%, 520px);
  max-height: 360px;
  object-fit: contain;
  background: #e7e6e0;
}
.image-preview button {
  border: 0;
  border-bottom: 1px solid #9c3d16;
  background: transparent;
  color: #9c3d16;
  padding: 4px 0;
  cursor: pointer;
}
.image-picker {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 !important;
  border: 1px solid var(--forest);
  padding: 11px 18px;
  color: var(--forest);
  cursor: pointer;
}
.image-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.image-notice { margin: 14px 0 0; color: #3c665e; font-size: 0.9rem; line-height: 1.7; }
.status-control { max-width: 250px; }
.editor-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.editor-actions button, .row-actions button {
  border: 1px solid var(--forest);
  border-radius: 0;
  background: var(--forest);
  color: white;
  padding: 12px 22px;
  cursor: pointer;
}
.editor-actions button:disabled { cursor: wait; opacity: 0.55; }
.editor-actions .secondary-button, .row-actions button { background: transparent; color: var(--forest); }
.form-message { color: #9c3d16; font-weight: 700; }
.editor-list h2 { margin-top: 0; font-size: 1.7rem; font-weight: 400; }
.editor-list article { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.editor-list article > div:first-child { min-width: 0; }
.editor-list-image {
  display: block;
  width: 120px;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  object-fit: cover;
}
.editor-list h3 { margin: 8px 0 0; font-size: 1.1rem; font-weight: 400; }
.editor-list small { color: #66716c; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions button { padding: 8px 12px; }

.analytics-page {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  background: #f4f1e9;
  color: var(--ink);
}
.analytics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.analytics-header h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 400;
}
.analytics-header > div > p:last-child { color: #65706b; }
.analytics-header nav { display: flex; flex-wrap: wrap; gap: 24px; }
.analytics-header nav a { border-bottom: 1px solid var(--sunrise); padding-bottom: 6px; }
.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 28px;
  background: #c8cec9;
}
.analytics-metrics article {
  display: grid;
  padding: clamp(24px, 4vw, 42px);
  background: var(--forest);
  color: var(--parchment);
}
.analytics-metrics p { margin: 0 0 18px; color: var(--parchment-soft); }
.analytics-metrics strong { font: 400 clamp(2.8rem, 6vw, 5rem)/1 Arial, sans-serif; }
.analytics-metrics span { margin: 7px 0 22px; color: var(--sunrise); }
.analytics-metrics small { color: var(--parchment-soft); }
.analytics-panel {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}
.analytics-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.analytics-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
}
.analytics-panel-heading > small { color: #65706b; }
.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.4vw, 18px);
  min-height: 220px;
  overflow-x: auto;
  padding-top: 20px;
  border-bottom: 1px solid #c8cec9;
}
.analytics-bar-column {
  display: grid;
  flex: 1 0 42px;
  justify-items: center;
  align-items: end;
  gap: 7px;
  color: #65706b;
  font: 0.72rem Arial, sans-serif;
}
.analytics-bar {
  width: min(30px, 70%);
  min-height: 8px;
  background: linear-gradient(180deg, var(--sunrise), #c8471f);
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.analytics-ranking ol { margin: 28px 0 0; padding: 0; list-style: none; }
.analytics-ranking li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e3e5e1;
}
.analytics-ranking li > span { overflow-wrap: anywhere; }
.analytics-ranking li > div {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--sunrise);
}
.analytics-empty { color: #65706b; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-log { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.analytics-log th,
.analytics-log td {
  min-width: 110px;
  padding: 14px 12px;
  border-bottom: 1px solid #e3e5e1;
  text-align: left;
  vertical-align: top;
}
.analytics-log th { color: #65706b; font-size: 0.75rem; letter-spacing: 0.08em; }
.privacy-page { min-height: 100vh; background: var(--forest-deep); color: var(--parchment); }
.privacy-shell { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 140px; }
.privacy-shell h1 { margin: 0 0 44px; font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 400; }
.privacy-shell h2 { margin: 48px 0 14px; color: var(--sunrise); font-size: 1.25rem; font-weight: 400; }
.privacy-shell p { color: var(--parchment-soft); line-height: 2.1; }

@media (max-width: 900px) {
  .message { grid-template-columns: 1fr; }
  .message-heading { position: static; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero {
    height: calc(62.5vw + 540px);
    aspect-ratio: auto;
  }
  .site-header { align-items: flex-start; padding: 20px 22px; }
  .brand span { font-size: 1.25rem; }
  .site-header nav { display: grid; gap: 3px; font-size: 0.75rem; text-align: right; }
  .site-header nav a { padding: 5px 0; }
  .hero-mountain,
  .hero-artist,
  .hero-artist-tone {
    bottom: auto;
    width: 100%;
    height: 62.5vw;
    object-fit: cover;
  }
  .hero-mountain { object-position: left top; }
  .hero-artist { object-position: center top; }
  .hero-artist-tone {
    -webkit-mask-position: center top;
    mask-position: center top;
  }
  .hero::before,
  .hero::after {
    bottom: auto;
    height: 62.5vw;
  }
  .hero-panel {
    top: 62.5vw;
    bottom: 0;
    width: 100%;
    min-height: 0;
    padding: 54px 24px 58px;
    background: linear-gradient(180deg, rgba(4,29,28,0.88), var(--forest-deep));
  }
  .hero h1 { font-size: clamp(1.9rem, 9.2vw, 2.65rem); }
  .hero-copy { margin: 24px 0 34px; }
  .outline-link {
    width: 100%;
    max-width: 330px;
    min-height: 64px;
    gap: 18px;
    padding: 0 20px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }
  .section-shell { width: min(100% - 40px, 1240px); padding: 90px 0; }
  .message-body { font-size: 1rem; }
  .blog-heading { align-items: flex-start; flex-direction: column; gap: 30px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: auto; }
  footer { grid-template-columns: 1fr; min-height: auto; align-items: start; }
  .footer-meta { justify-items: start; }
  .article-header { align-items: flex-start; padding: 20px 22px; }
  .editor-header { flex-direction: column; }
  .editor-header nav { align-self: flex-start; }
  .editor-list article { flex-direction: column; }
  .row-actions { align-self: flex-start; }
  .image-preview { grid-template-columns: 1fr; align-items: start; }
  .post-card-image { aspect-ratio: 16 / 9; }
  .analytics-header { flex-direction: column; }
  .analytics-metrics { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; gap: 0; }
  .analytics-panel-heading { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


