/* 新TOP (/new/) で足した部分と、メディア掲載の記事ページ (/new/media/)。 */
.media, .post, .post-header {
  --media-bg: #0c191f; --media-line: #1d4047; --media-text: #fff; --media-sub: #a9b6bd; --media-date: #e8c555; --media-pink: #ea4d91;
  box-sizing: border-box; width: 100%; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; color: var(--media-text);
}
/* TOP's base styles set every element's colour, font and line height: here they take their section's */
.media *, .post *, .post-header * { box-sizing: border-box; color: inherit; font-family: inherit; line-height: inherit; letter-spacing: inherit; }
.media[hidden], .media__more[hidden], .post__nav[hidden] { display: none; }

/* メディア掲載 (TOP): 1440 の Figma の寸法 */
.media { background: var(--media-bg); padding: 80px 24px 160px; scroll-margin-top: 0; }
.media__inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.media__label { margin: 0; font-family: "Marcellus", serif; font-size: 16px; line-height: 1.25; }
.media__title { margin: 22px 0 0; font-size: 36px; font-weight: 700; line-height: 1.4; }
.media__list { list-style: none; width: 100%; margin: 107px 0 0; padding: 0; border-top: 1px solid var(--media-line); }
.media__item { border-bottom: 1px solid var(--media-line); }
.media__link {
  display: grid; grid-template-columns: 152px 362px 1fr; align-items: center; min-height: 92px; padding: 16px 0;
  color: var(--media-text); text-decoration: none; transition: background-color .2s;
}
.media__link:hover { background: rgba(255, 255, 255, .04); }
.media__date { font-size: 14px; font-weight: 500; color: var(--media-date); }
.media__name { padding-right: 24px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.media__text { font-size: 14px; line-height: 1.6; color: var(--media-sub); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.media__more {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-width: 220px; height: 52px; margin-top: 50px; padding: 0 32px;
  border: 1px solid var(--media-pink); border-radius: 26px; background: none; color: #fff; font: 700 14px/1 "Noto Sans JP", sans-serif;
  text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.media__more:hover { background: rgba(234, 77, 145, .16); }
.media__more:disabled { opacity: .5; cursor: default; }
.media__more span { position: relative; width: 13px; height: 13px; }
.media__more span::before, .media__more span::after { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 1px; background: var(--media-pink); }
.media__more span::after { transform: rotate(90deg); }
:is(.media, .post, .post-header) :is(a, button):focus-visible { outline: 2px solid var(--media-date); outline-offset: 3px; }

/* 記事ページ: 背景と文字はシンプルに */
body.media-page, .media-page .StudioCanvas > .sd { background: #0c191f !important; }
.media-page .StudioCanvas > .sd { justify-content: flex-start; min-height: 100vh; }
.media-page .post { flex: 1 0 auto; }
.post-header { padding: 28px 32px; }
.post-header__logo { display: inline-block; width: 112px; }
.post-header__logo img { display: block; width: 100%; height: auto; }
.post { max-width: 808px; margin: 0 auto; padding: 24px 24px 140px; }
.post__crumbs { display: flex; gap: 10px; margin-bottom: 56px; font-size: 12px; line-height: 1.5; }
.post__crumbs a { color: var(--media-sub); text-decoration: none; }
.post__crumbs a:hover { color: #fff; }
.post__crumbs a + a::before { content: "/"; margin-right: 10px; color: var(--media-line); }
.post__article { min-height: 40vh; }
.post__loading, .post__none { font-size: 14px; line-height: 1.9; color: var(--media-sub); }
.post__head { padding-bottom: 40px; border-bottom: 1px solid var(--media-line); }
.post__date { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--media-date); }
.post__title { margin: 16px 0 0; font-size: 32px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.post__lead { margin: 16px 0 0; font-size: 15px; line-height: 1.8; color: var(--media-sub); }
.post__eyecatch { margin: 40px 0 0; }
.post__eyecatch img { display: block; width: 100%; height: auto; border-radius: 8px; }
.post__body { margin-top: 48px; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.post__body > * { margin: 0; }
.post__body > * + * { margin-top: 1.75em; }
.post__body h2 { margin-top: 72px; padding-bottom: 14px; border-bottom: 1px solid var(--media-line); font-size: 24px; font-weight: 700; line-height: 1.5; }
.post__body h3 { margin-top: 52px; font-size: 19px; font-weight: 700; line-height: 1.6; }
.post__body :is(h2, h3) + * { margin-top: 24px; }
.post__body :is(strong, b) { font-weight: 700; }
.post__body a { color: #35bcd6; text-decoration: underline; text-underline-offset: 4px; }
.post__body a:hover { text-decoration: none; }
.post__body ul, .post__body ol { padding-left: 1.5em; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { list-style: inherit; }
.post__body li + li { margin-top: .5em; }
.post__body blockquote { padding: 4px 0 4px 24px; border-left: 2px solid var(--media-pink); color: var(--media-sub); }
.post__body em { font-style: italic; }
.post__body img { max-width: 100%; height: auto; border-radius: 8px; }
.post__body figure { margin-left: 0; margin-right: 0; }
.post__body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--media-sub); }
.post__body iframe { display: block; max-width: 100%; border: 0; }
.post__body .wp-block-embed__wrapper iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post__body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.post__body :is(th, td) { padding: 14px 12px; border-top: 1px solid var(--media-line); border-bottom: 1px solid var(--media-line); text-align: left; }
.post__body hr { height: 1px; border: 0; background: var(--media-line); }
.post__nav { display: flex; gap: 24px; margin-top: 88px; border-top: 1px solid var(--media-line); border-bottom: 1px solid var(--media-line); }
.post__nav a { flex: 1 1 0; min-width: 0; padding: 24px 0; color: #fff; text-decoration: none; }
.post__nav a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.post__nav small { display: block; margin-bottom: 6px; font-size: 12px; color: var(--media-sub); }
.post__nav span { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; }
.post__next { margin-left: auto; text-align: right; }
.post__back { margin: 24px 0 0; text-align: center; }

@media screen and (max-width: 840px) {
  .media__link { grid-template-columns: 120px 1fr; row-gap: 4px; min-height: 0; padding: 22px 0; }
  .media__text { grid-column: 2; }
}
@media screen and (max-width: 540px) {
  .media { padding: 64px 20px 96px; }
  .media__title { margin-top: 12px; font-size: 28px; }
  .media__list { margin-top: 48px; }
  .media__link { grid-template-columns: 1fr; row-gap: 6px; padding: 20px 0; }
  .media__text { grid-column: 1; font-size: 13px; }
  .media__name { padding-right: 0; }
  .media__more { margin-top: 40px; }
  .post-header { padding: 20px; }
  .post-header__logo { width: 88px; }
  .post { padding: 8px 20px 96px; }
  .post__crumbs { margin-bottom: 36px; }
  .post__head { padding-bottom: 28px; }
  .post__title { margin-top: 10px; font-size: 24px; }
  .post__eyecatch { margin-top: 28px; }
  .post__body { margin-top: 32px; font-size: 15px; line-height: 1.95; }
  .post__body h2 { margin-top: 52px; font-size: 20px; }
  .post__body h3 { margin-top: 40px; font-size: 17px; }
  .post__nav { gap: 16px; margin-top: 64px; }
}
