:root {
  --cms-ink: #171917;
  --cms-muted: #686d68;
  --cms-line: #d9ddd8;
  --cms-green: #2e5d48;
  letter-spacing: 0;
}

.cms-entry-page,
.cms-entry-page *,
.cms-entry-page *::before,
.cms-entry-page *::after {
  box-sizing: border-box;
}

.cms-entry {
  opacity: 1 !important;
  visibility: visible !important;
}

.cms-entry > a {
  display: block;
}

.cms-entry img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-entry-page {
  margin: 0;
  background: #fff;
  color: var(--cms-ink);
  font-family: Arial, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
}

.cms-site-header {
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--cms-line);
}

.cms-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cms-ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

.cms-site-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.cms-site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.cms-site-header nav a {
  color: var(--cms-ink);
  text-decoration: none;
  font-size: 13px;
}

.cms-site-header nav a:hover,
.cms-detail-heading > a:hover,
.cms-site-footer a:hover { color: var(--cms-green); }

.cms-detail {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 0 110px;
}

.cms-detail-heading {
  max-width: 760px;
  margin-bottom: clamp(38px, 6vw, 76px);
}

.cms-detail-heading > a {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cms-muted);
  text-decoration: none;
  font-size: 12px;
}

.cms-detail-heading h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cms-detail-heading p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--cms-muted);
  font-size: 16px;
}

.cms-detail-media {
  margin: 0 0 clamp(34px, 6vw, 72px);
}

.cms-detail-media img,
.cms-detail-media video {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #f3f4f2;
}

.cms-detail-copy {
  width: min(720px, 100%);
  margin: 0 auto clamp(48px, 7vw, 90px);
  color: #303430;
  font-size: 17px;
  line-height: 1.9;
}

.cms-detail-copy p { margin: 0 0 1.5em; }

.cms-detail-gallery {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
}

.cms-detail-gallery .cms-detail-media { margin: 0; }

.cms-site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--cms-line);
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--cms-muted);
  font-size: 12px;
}

.cms-site-footer a { color: inherit; text-decoration: none; }

@media (max-width: 700px) {
  .cms-site-header { min-height: 68px; padding: 14px 18px; }
  .cms-site-header nav { gap: 12px; }
  .cms-site-header nav a:nth-child(2) { display: none; }
  .cms-site-brand span { display: none; }
  .cms-detail { width: min(100% - 28px, 1180px); padding: 46px 0 72px; }
  .cms-detail-heading h1 { font-size: 38px; }
  .cms-detail-heading p { font-size: 14px; }
  .cms-detail-copy { font-size: 15px; }
  .cms-detail-media img,
  .cms-detail-media video { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
