@charset "utf-8";

/* =========================
   お仕事日記
========================= */

.diary-renewal-mv,
.diary-renewal-intro,
.diary-renewal-gallery,
.diary-renewal-layout,
.diary-renewal-layout * {
  box-sizing: border-box;
}

.diary-renewal-mv {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.diary-renewal-mv picture,
.diary-renewal-mv img {
  display: block;
  width: 100%;
}

.diary-renewal-mv img {
  height: auto;
}

.diary-renewal-intro {
  width: 100%;
  padding: 65px 20px 0;
  background: #fff;
}

.diary-renewal-intro__inner {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
}

.diary-renewal-intro h1 {
  margin: 0;
  color: #000c47;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}

.diary-renewal-intro p {
  margin: 24px 0 0;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.67;
}

/* 現場写真スライダー */

.diary-renewal-gallery {
  width: 100%;
  padding: 58px 20px 62px;
  background: #fff;
}

.diary-renewal-gallery__inner {
  position: relative;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 29px;
  width: 1280px;
  max-width: 100%;
  height: 200px;
  margin: 0 auto;
}

.diary-renewal-gallery__viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.diary-renewal-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.diary-renewal-gallery__track {
  display: flex;
  gap: 20px;
  width: max-content;
  height: 100%;
  padding: 0 20px;
}

.diary-renewal-gallery__slide {
  flex: 0 0 auto;
  height: 200px;
  margin: 0;
  scroll-snap-align: start;
}

.diary-renewal-gallery__slide img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 267px;
  object-fit: cover;
}

.diary-renewal-gallery__arrow {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 29px;
  height: 200px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #d9d9d9;
  color: #000;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

/* 記事＋サイドバー */

.diary-renewal-layout {
  display: grid;
  grid-template-columns: minmax(0, 900px) 310px;
  gap: 69px;
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 0 180px;
}

.diary-renewal-main {
  min-width: 0;
}

.diary-renewal-article {
  width: 100%;
  margin: 0;
}

.diary-renewal-article__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 69px;
  padding: 15px 29px;
  border-radius: 5px;
  background: #b2b2b2;
}

.diary-renewal-article__header h2 {
  margin: 0;
  color: #000;
  font-family: "Roboto Mono", "Noto Sans JP", monospace;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.diary-renewal-article__header time {
  flex-shrink: 0;
  margin-left: 20px;
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 30px;
}

.diary-renewal-article__visual {
  width: 100%;
  margin: 51px 0 0;
  overflow: hidden;
  background: #d9d9d9;
}

.diary-renewal-article__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 588px;
  object-fit: cover;
}

.diary-renewal-article__content {
  margin-top: 65px;
  color: rgba(0, 0, 0, 0.9);
  font-family: "Roboto Mono", "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.diary-renewal-article__content > *:first-child {
  margin-top: 0;
}
.diary-renewal-article__content > *:last-child {
  margin-bottom: 0;
}
.diary-renewal-article__content p {
  margin: 0 0 30px;
}
.diary-renewal-article__content h2 {
  margin: 60px 0 25px;
  font-size: 28px;
  line-height: 1.5;
}
.diary-renewal-article__content h3 {
  margin: 45px 0 20px;
  font-size: 24px;
  line-height: 1.5;
}
.diary-renewal-article__content img {
  max-width: 100%;
  height: auto;
}
.diary-renewal-article__content a {
  color: #011b9d;
  text-decoration: underline;
}

.diary-renewal-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-top: 110px;
}

.diary-renewal-pagination__previous {
  text-align: left;
}
.diary-renewal-pagination__next {
  text-align: right;
}

.diary-renewal-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: rgba(0, 0, 0, 0.9);
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 24px;
  line-height: 30px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.diary-renewal-pagination a:hover {
  opacity: 0.6;
}

/* 右サイドバー */

.diary-renewal-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.diary-renewal-sidebox {
  width: 100%;
  padding: 18px;
  border: 2px solid rgba(96, 96, 96, 0.1);
  border-radius: 5px;
  background: #fff;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

.diary-renewal-sidebox__image-title {
  width: 100%;
  height: 23px;
  margin: 0 0 22px;
}

.diary-renewal-sidebox__image-title img {
  display: block;
  width: auto;
  height: 23px;
}

.diary-renewal-latest {
  min-height: 499px;
}

.diary-renewal-latest__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diary-renewal-latest__list li {
  margin: 0 0 23px;
}

.diary-renewal-latest__list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  color: #000;
  text-decoration: none;
}

.diary-renewal-latest__thumbnail {
  width: 58px;
  height: 58px;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #d9d9d9;
}

.diary-renewal-latest__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diary-renewal-latest__post-title {
  display: -webkit-box;
  overflow: hidden;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.diary-renewal-latest__more {
  display: block;
  margin-top: -2px;
  color: #000;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

.diary-renewal-x {
  min-height: 213px;
}

.diary-renewal-x__text {
  margin: 0 0 13px;
  color: #000;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.diary-renewal-x__logo {
  height: 35px;
  margin: 0 0 12px;
}

.diary-renewal-x__logo img {
  display: block;
  width: auto;
  height: 35px;
}

.diary-renewal-x__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 40px;
  border-radius: 5px;
  background: #011b9d;
  color: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.diary-renewal-x__arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
}

.diary-renewal-lab-banner {
  display: block;
  width: 310px;
  height: 310px;
  overflow: hidden;
  border-radius: 5px;
}

.diary-renewal-lab-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diary-renewal-calendar {
  min-height: 213px;
}

.diary-renewal-calendar__title {
  margin: 0 0 18px;
  color: #000;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.diary-calendar__heading {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  margin-bottom: 8px;
}

.diary-calendar__month {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.diary-calendar__previous,
.diary-calendar__next {
  color: #000;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.diary-calendar__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.diary-calendar__table th,
.diary-calendar__table td {
  height: 22px;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-align: center;
}

.diary-calendar__table a,
.diary-calendar__table span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: auto;
  color: #000;
  text-decoration: none;
}

.diary-calendar__table .has-post a {
  border-radius: 50%;
  background: rgba(1, 27, 157, 0.12);
  color: #011b9d;
  font-weight: 700;
}

.diary-calendar__table .is-selected a {
  background: #011b9d;
  color: #fff;
}

.diary-renewal-empty {
  padding: 40px 0;
  font-size: 18px;
}

/* ========================================
   PEGASYS LAB：YouTube動画
======================================== */

/* 横動画 16:9 */
.yb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.yb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 縦動画 9:16 */
.video-container {
  width: 100%;
  max-width: 450px;
  margin: 40px auto;
  aspect-ratio: 9 / 16;
}

.video-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 横動画 4:3 */
.yb43 {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
}

.yb43 iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
}

@media screen and (max-width: 767px) {
  .diary-renewal-mv picture,
  .diary-renewal-mv img {
    width: 100%;
    height: auto;
  }

  .diary-renewal-intro {
    padding: 27px 14px 0;
  }

  .diary-renewal-intro h1 {
    font-size: 16px;
    line-height: 1.45;
  }

  .diary-renewal-intro p {
    margin-top: 10px;
    font-size: 12px;
    line-height: 20px;
  }

  .diary-pc-only {
    display: none;
  }

  .diary-renewal-gallery {
    padding: 26px 5px 53px;
  }

  .diary-renewal-gallery__inner {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    height: 93px;
  }

  .diary-renewal-gallery__track {
    gap: 8px;
    padding: 0 8px;
  }

  .diary-renewal-gallery__slide {
    height: 93px;
  }

  .diary-renewal-gallery__slide img {
    max-width: 124px;
  }

  .diary-renewal-gallery__arrow {
    width: 18px;
    height: 93px;
    font-size: 24px;
  }

  .diary-renewal-layout {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 14px 80px;
  }

  .diary-renewal-article__header {
    min-height: 28px;
    padding: 2px 12px;
  }

  .diary-renewal-article__header h2 {
    max-width: calc(100% - 78px);
    overflow: hidden;
    font-size: 16px;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .diary-renewal-article__header time {
    margin-left: 8px;
    font-size: 12px;
    line-height: 24px;
  }

  .diary-renewal-article__visual {
    margin-top: 20px;
  }

  .diary-renewal-article__visual img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .diary-renewal-article__content {
    margin-top: 28px;
    font-size: 16px;
    line-height: 30px;
  }

  .diary-renewal-article__content p {
    margin-bottom: 30px;
  }
  .diary-renewal-article__content h2 {
    margin: 45px 0 20px;
    font-size: 22px;
  }
  .diary-renewal-article__content h3 {
    margin: 35px 0 16px;
    font-size: 19px;
  }

  .diary-renewal-pagination {
    margin-top: 70px;
  }

  .diary-renewal-pagination a {
    gap: 8px;
    font-size: 16px;
    line-height: 30px;
  }

  .diary-renewal-side {
    gap: 22px;
    margin-top: 45px;
  }

  .diary-renewal-sidebox {
    padding: 20px;
  }

  .diary-renewal-sidebox__image-title {
    height: 27px;
    margin-bottom: 26px;
  }

  .diary-renewal-sidebox__image-title img {
    height: 27px;
  }

  .diary-renewal-latest {
    min-height: 587px;
  }

  .diary-renewal-latest__list li {
    margin-bottom: 27px;
  }

  .diary-renewal-latest__list a {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 28px;
  }

  .diary-renewal-latest__thumbnail {
    width: 68px;
    height: 68px;
  }

  .diary-renewal-x {
    min-height: 250px;
  }

  .diary-renewal-x__logo {
    height: 41px;
  }

  .diary-renewal-x__logo img {
    height: 41px;
  }

  .diary-renewal-x__button {
    min-height: 56px;
  }

  .diary-renewal-lab-banner {
    width: calc(100% + 28px);
    height: auto;
    margin-left: -14px;
    border-radius: 0;
  }

  .diary-renewal-lab-banner img {
    width: 100%;
    height: auto;
  }

  .diary-renewal-calendar {
    min-height: 250px;
  }

  .diary-calendar__table th,
  .diary-calendar__table td {
    height: 28px;
    font-size: 12px;
  }

  .diary-calendar__table a,
  .diary-calendar__table span {
    width: 27px;
    height: 27px;
  }

  .diary-renewal-article iframe,
  .diary-renewal-article__content iframe {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
  }

  .diary-renewal-article .wp-block-embed,
  .diary-renewal-article__content .wp-block-embed {
    width: 100%;
    margin: 20px 0;
  }

  .diary-renewal-article .wp-block-embed__wrapper,
  .diary-renewal-article__content .wp-block-embed__wrapper {
    width: 100%;
  }
	
	/* 横動画 16:9 */
  .yb {
    width: 100%;
    padding-top: 56.25%;
    margin: 30px auto;
  }

  /* 縦動画 9:16 */
  .video-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 30px auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
  }

  .video-container iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border: 0;
  }

  /* 横動画 4:3 */
  .yb43 {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .yb43 iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border: 0;
  }
}
