@charset "UTF-8";
/* ------------------------------------------------------ */
/* 202610_お役立ち動画（カテゴリー一覧・カテゴリー別一覧・詳細）
/* ------------------------------------------------------ */
:root {
  --howto-color-text: #03071f;
  --howto-color-pink: #f9cae1;
  --howto-color-pink-border: #eda8ca;
  --howto-color-noimage: #d9d9d9;
  --howto-inner-width: 335px;
  --howto-detail-width: 315px;
  --howto-btn-width: 275px;
}

/* layout：お役立ち動画共通
------------------------------ */
.l-howto {
  color: var(--howto-color-text);
}

/* 見出し */
.l-howto-heading {
  position: relative;
  padding: 30px 0 21px;
  margin-bottom: 40px;
  text-align: center;
}
.l-howto-heading::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 21px;
  height: 4px;
  background: url(../common/images/bg_ttl_line.webp) no-repeat center/contain;
  transform: translateX(-50%);
  content: "";
}
.l-howto-heading.--category {
  margin-bottom: 25px;
}

.l-howto-heading__sub {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}

.l-howto-heading__title {
  margin-top: 12px;
  font-family: "Oswald", sans-serif;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
}

/* ボタン */
.l-howto-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--howto-btn-width);
  height: 50px;
  padding: 0 30px;
  border: 2px solid var(--howto-color-pink-border);
  border-radius: 100px;
  background-color: var(--howto-color-pink);
  color: var(--howto-color-text);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
  transition: opacity 0.15s ease-in-out;
}
.l-howto-btn::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 9px;
  height: 12px;
  background: url(../howto_movie/images/icon_btn_arrow.svg) no-repeat center/contain;
  transform: translateY(-50%);
  content: "";
}
.l-howto-btn:hover {
  opacity: 0.6;
}
.l-howto-btn.--large {
  height: 55px;
}
.l-howto-btn.--back::after {
  right: auto;
  left: 13px;
  transform: translateY(-50%) rotate(180deg);
}

/* project：カテゴリー一覧
------------------------------ */
.p-howto-top__lead {
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: center;
}

.p-howto-top__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  max-width: var(--howto-inner-width);
  margin: 0 auto;
  padding: 40px 0 50px;
}

.p-howto-top__link {
  display: block;
  color: var(--howto-color-text);
  transition: opacity 0.15s ease-in-out;
}
.p-howto-top__link:hover {
  opacity: 0.6;
}

.p-howto-top__thumb {
  aspect-ratio: 1/1;
  background-color: var(--howto-color-noimage);
  overflow: hidden;
}
.p-howto-top__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-howto-top__name {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.p-howto-top__text {
  margin-top: 5px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* project：カテゴリー別一覧
------------------------------ */
.p-howto-category {
  padding-bottom: 50px;
}

.p-howto-category__title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
}

.p-howto-category__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  max-width: var(--howto-inner-width);
  margin: 0 auto;
  padding: 40px 0;
}

.p-howto-category__link {
  display: block;
  color: var(--howto-color-text);
  transition: opacity 0.15s ease-in-out;
}
.p-howto-category__link:hover {
  opacity: 0.6;
}

.p-howto-category__thumb {
  aspect-ratio: 160/284;
  background-color: var(--howto-color-noimage);
  overflow: hidden;
}
.p-howto-category__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-howto-category__name {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
}

.p-howto-category__btns {
  display: flex;
  justify-content: center;
}

/* project：詳細
------------------------------ */
.p-howto-detail {
  max-width: var(--howto-inner-width);
  margin: 0 auto;
  padding-bottom: 50px;
}

.p-howto-detail__article {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--howto-color-text);
}

/* 動画：プレーヤーの上にデザインのサムネイルを重ねる
   タップはサムネイルを通り抜けてプレーヤーに直接届き、再生開始（.is-playing）でサムネイルを非表示 */
.p-howto-detail__movie {
  position: relative;
}

.p-howto-detail__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.p-howto-detail__cover {
  position: relative;
  z-index: 1;
  display: block;
  pointer-events: none;
}
.p-howto-detail__cover::after {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.15s ease-in-out;
  content: "";
}
.p-howto-detail__movie:hover .p-howto-detail__cover::after {
  background-color: rgba(0, 0, 0, 0.4);
}
.p-howto-detail__movie.is-playing .p-howto-detail__cover {
  visibility: hidden;
}

.p-howto-detail__thumb {
  display: block;
  aspect-ratio: 160/284;
  background-color: var(--howto-color-noimage);
  overflow: hidden;
}
.p-howto-detail__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-howto-detail__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
}

.p-howto-detail__body {
  margin-top: 30px;
}

.p-howto-detail__title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

/* 本文（the_content の出力。WYSIWYGのためタグにスタイルを当てる） */
.p-howto-detail__content {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.5;
}
.p-howto-detail__content h2,
.p-howto-detail__content h3,
.p-howto-detail__content h4 {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
}
.p-howto-detail__content p {
  margin-top: 20px;
}
.p-howto-detail__content h2 + p,
.p-howto-detail__content h3 + p,
.p-howto-detail__content h4 + p {
  margin-top: 5px;
}
.p-howto-detail__content a {
  color: var(--howto-color-text);
  text-decoration: underline;
}
.p-howto-detail__content > :first-child {
  margin-top: 0;
}
.p-howto-detail__content .link_button {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 30px;
  border: 2px solid var(--howto-color-pink-border);
  border-radius: 100px;
  background-color: #fff;
  font-size: 1.3rem;
  color: var(--howto-color-text);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: opacity 0.15s ease-in-out;
}
.p-howto-detail__content .link_button::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 9px;
  height: 12px;
  background: url(../howto_movie/images/icon_btn_arrow.svg) no-repeat center/contain;
  transform: translateY(-50%);
  content: "";
}
.p-howto-detail__content .link_button:hover {
  opacity: 0.6;
}

.p-howto-detail__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}
