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

/* ===== reset（#page-cms配下限定・詳細度0） ===== */
:where(#page-cms, #page-cms *) { box-sizing: border-box; margin: 0; padding: 0; }
:where(#page-cms img) { display: block; max-width: none; border: 0; }

/* ===== scale wrapper ===== */
#page-wrap-cms { width: 100%; max-width: 600px; margin: 0 auto; overflow: hidden; }
#page-cms {
  position: relative;
  width: 375px;
  transform-origin: top left;
  overflow: hidden;
  padding-bottom: 40px;
  background: linear-gradient(to bottom, #eaeaea, #ebe8d9);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  color: #3f3300;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ===== hero ===== */
#page-cms .hero-cms { width: 375px; height: 281.25px; }
#page-cms .hero-cms img { width: 375px; height: 281.25px; }

/* ===== intro ===== */
#page-cms .intro-cms { width: 375px; padding: 20px; background: #9e8d46; overflow: hidden; }
#page-cms .intro-frame-cms { display: flex; flex-direction: column; gap: 4px; width: 335px; overflow: hidden; }
#page-cms .intro-bar-top-cms { width: 335px; height: 2px; background: #1e1a15; }
#page-cms .intro-bar-bottom-cms { width: 335px; height: 1px; background: #1e1a15; }
#page-cms .intro-box-cms {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 335px;
  padding: 16px 22px 24px;
  border-top: 3px solid #1e1a15;
  border-bottom: 3px solid #1e1a15;
  overflow: hidden;
  background-image:
    linear-gradient(144.35deg, #fff 31.743%, #ccc39f 146.8%),
    linear-gradient(148.12deg, #fff 10.736%, #c1b68c 89.264%);
}
#page-cms .parchment-cms {
  position: absolute;
  left: calc(50% + 0.5px);
  top: calc(50% - 0.25px);
  width: 630px;
  height: 420px;
  transform: translate(-50%, -50%);
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
}
#page-cms .intro-box-cms .parchment-cms { opacity: .5; }
#page-cms .intro-icon-cms { position: relative; z-index: 1; width: 36px; height: 40.4px; }
#page-cms .intro-text-cms {
  position: relative;
  z-index: 1;
  width: 291px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 25px;
  color: #3f3300;
  text-align: center;
  white-space: nowrap;
}

/* ===== rail decoration ===== */
#page-cms .rail-cms { position: relative; width: 375px; height: 30.93px; }
#page-cms .rail-cms img,
#page-cms .rail-cut-cms img {
  position: absolute;
  left: 50%;
  top: 0;
  width: 581.25px;
  height: 30.93px;
  transform: translateX(-50%);
  pointer-events: none;
}
#page-cms .rail-inner-cms { width: 335px; margin: 0 auto; }
#page-cms .rail-cut-cms { position: relative; width: 375px; height: 17px; overflow: hidden; }
#page-cms .rail-cut-cms img { top: -13.93px; }

/* ===== main ===== */
#page-cms .main-cms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 375px;
  padding: 20px 20px 32px;
}
#page-cms .block-cms { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 335px; }

#page-cms .heading-cms {
  width: 335px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 34px;
  letter-spacing: 0.96px;
  color: #7461b4;
}
#page-cms .heading-cms .tight-cms { letter-spacing: -1.6px; }
#page-cms .subheading-cms {
  width: 335px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.72px;
  color: #7461b4;
}
#page-cms .text-cms {
  width: 335px;
  font-size: 13px;
  line-height: 23px;
  letter-spacing: 0.52px;
  color: #3f3300;
}

#page-cms .figure-cms { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 335px; }
#page-cms .figure-cms img.bleed-cms { width: 375px; }
#page-cms .caption-cms {
  width: 335px;
  font-size: 11px;
  line-height: 17px;
  color: #5a5a5a;
}
#page-cms .caption-narrow-cms { width: 325.34px; }
#page-cms .caption-lh18-cms { line-height: 20px; }
#page-cms .img-article-cms { height: 375.59px; }
#page-cms .img-illust1-cms { height: 282px; }
#page-cms .img-pair-cms { display: flex; flex-direction: column; gap: 16px; }
#page-cms .img-illust2-cms { width: 335px; height: 499.15px; }
#page-cms .img-photo-tall-cms { width: 335px; height: 439.82px; }
#page-cms .img-photo-wide-cms { height: 274px; }

#page-cms .divider-cms { width: 36px; height: 24.26px; }

#page-cms .comment-cms { display: flex; flex-direction: column; gap: 8px; width: 335px; }
#page-cms .comment-head-cms { display: flex; align-items: center; width: 335px; }
#page-cms .comment-head-cms .subheading-cms { width: auto; white-space: nowrap; }
#page-cms .comment-face-cms { width: 28.88px; height: 32px; }

/* ===== note card ===== */
#page-cms .note-wrap-cms {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 301.21px;
  height: 220.06px;
}
#page-cms .note-card-cms {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 292.06px;
  padding: 24px 0;
  border: 1px solid #9e8d46;
  overflow: hidden;
  background-image: linear-gradient(147.51deg, #fff 31.743%, #ccc39f 146.8%);
  box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
  transform: rotate(-2deg);
}
#page-cms .note-card-cms .parchment-cms { left: calc(50% - 0.03px); top: calc(50% - 0.14px); }
#page-cms .note-text-cms {
  position: relative;
  z-index: 1;
  width: 287px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 25px;
  text-align: center;
  white-space: nowrap;
  color: #7461b4;
  background-image: linear-gradient(141.04deg, #7a640b 7.27%, #7461b4 101.81%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(2deg);
}

/* ===== work ===== */
#page-cms .work-cms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 375px;
  padding: 26px 20px 30px;
  background: #9e8d46;
}
#page-cms .work-band-cms {
  display: flex;
  justify-content: center;
  width: 375px;
  margin: 0 -20px;
  padding: 4px 0;
  background: #fff;
}
#page-cms .work-band-title-cms {
  width: 335px;
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  color: #9e8d46;
  text-align: center;
  white-space: nowrap;
}
#page-cms .work-band-title-cms .accent-cms { color: #8c185f; }
#page-cms .work-row-cms { display: flex; gap: 12px; width: 335px; }
#page-cms .work-cover-cms { position: relative; flex-shrink: 0; width: 140px; height: 219.9px; }
#page-cms .work-cover-cms img { width: 140px; height: 219.9px; }
#page-cms .work-cover-cms::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0.5px solid #000;
  box-shadow: inset 0 0 0 0.5px #000;
  pointer-events: none;
}
#page-cms .work-info-cms {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 183px;
  padding: 4px 0;
}
#page-cms .work-desc-cms { display: flex; flex-direction: column; gap: 6px; color: #fff; }
#page-cms .work-title-cms { font-weight: 700; font-size: 13px; line-height: 1; }
#page-cms .work-synopsis-cms { font-size: 10px; line-height: 16px; }
#page-cms .work-action-cms { display: flex; flex-direction: column; gap: 8px; }
#page-cms .free-cms {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  height: 32px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
#page-cms .free-cms span {
  display: block;
  color: #ffffa2;
  background-image: linear-gradient(to bottom, #fff, #ffffa2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#page-cms .free-num-cms { width: 14px; height: 32px; font-size: 34px; }
#page-cms .free-day-cms { font-size: 19px; }
#page-cms .free-label-cms { font-size: 26px; }
#page-cms .free-mark-cms { width: 17px; height: 22px; font-size: 23px; letter-spacing: -1.84px; }

#page-cms .read-btn-cms {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 183px;
  height: 31px;
  border-radius: 55.49px;
  background: #8c185f;
  color: #fff;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 25px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
#page-cms .read-btn-cms:hover { opacity: .8; transform: translateY(-2px); }
#page-cms .read-btn-arrow-cms {
  position: absolute;
  right: 13.63px;
  top: 50%;
  width: 13.07px;
  height: 13.07px;
  transform: translateY(-50%) rotate(180deg);
}

#page-cms .hidden-cms { display: none; }
