@charset "UTF-8";

/*------------------------------------------------------------
お役立ち動画（/howto-movie 以下）
 - Howto/index.twig    カテゴリー一覧
 - Howto/category.twig カテゴリー別一覧
 - Howto/detail.twig   詳細
------------------------------------------------------------*/
:root {
  --howto-header-height: 60px;
  --howto-color-text: #03071f;
  --howto-color-bg: #fff;
  --howto-color-placeholder: #d9d9d9;
  --howto-color-overlay: rgba(0, 0, 0, 0.2);
  --howto-inner-padding: 20px;
  --howto-detail-padding: 30px;
}

/* 共通：ページ枠 */
.p-howto {
  padding-top: calc(var(--howto-header-height) + 40px);
  color: var(--howto-color-text);
  letter-spacing: normal;
}

/* 共通：見出し（プロの方も必見！お役立ち動画 / HOW TO） */
.p-howto-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 21px;
  text-align: center;
  color: var(--howto-color-text);
}
.p-howto-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 21px;
  height: 4px;
  background: url(../img/common/ttl_line.webp) no-repeat left top / 21px 4px;
  transform: translateX(-50%);
}
.p-howto-heading__sub {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.65px;
}
.p-howto-heading__main {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
}

/* 共通：ボタン */
.p-howto-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 275px;
  height: 55px;
  margin: 0 auto;
  padding: 0 30px;
  border: 2px solid var(--howto-color-text);
  border-radius: 100px;
  background-color: var(--howto-color-bg);
  color: var(--howto-color-text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-align: center;
}
.p-howto-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 12px;
  background: url(../img/common/btn_arrow.webp) no-repeat center center / contain;
  transform: translateY(-50%);
}
.p-howto-btn:hover {
  color: var(--howto-color-text);
  text-decoration: none;
  opacity: 0.7;
}
.p-howto-btn.--back::after {
  right: auto;
  left: 22px;
  transform: translateY(-50%) rotate(180deg);
}

/*------------------------------------------------------------
カテゴリー一覧
------------------------------------------------------------*/
.p-howto-index__lead {
  margin-top: 40px;
  padding: 0 var(--howto-inner-padding);
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: center;
}
.p-howto-index__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  margin: 0;
  padding: 50px var(--howto-inner-padding);
  list-style: none;
}
.p-howto-index__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--howto-color-text);
}
.p-howto-index__link:hover {
  color: var(--howto-color-text);
  text-decoration: none;
  opacity: 0.7;
}
.p-howto-index__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--howto-color-placeholder);
}
.p-howto-index__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.p-howto-index__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
}
.p-howto-index__name {
  margin: 0;
  font-family: Roboto, "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
}
.p-howto-index__text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

/*------------------------------------------------------------
カテゴリー別一覧
------------------------------------------------------------*/
.p-howto-category__title {
  margin: 25px 0 0;
  padding: 0 var(--howto-inner-padding);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
}
.p-howto-category__inner {
  padding: 0 var(--howto-inner-padding) 50px;
}
.p-howto-category__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  margin: 0;
  padding: 40px 0;
  list-style: none;
}
.p-howto-category__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--howto-color-text);
}
.p-howto-category__link:hover {
  color: var(--howto-color-text);
  text-decoration: none;
  opacity: 0.7;
}
.p-howto-category__thumb {
  aspect-ratio: 160 / 284;
  overflow: hidden;
  background-color: var(--howto-color-placeholder);
}
.p-howto-category__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-howto-category__name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
}
.p-howto-category__empty {
  padding: 40px 0;
  font-size: 1.3rem;
  text-align: center;
}

/*------------------------------------------------------------
詳細
------------------------------------------------------------*/
.p-howto-detail {
  padding-top: var(--howto-header-height);
  color: var(--howto-color-text);
  letter-spacing: normal;
}
.p-howto-detail__inner {
  padding: 0 var(--howto-detail-padding) 50px;
}
.p-howto-detail__article {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--howto-color-text);
}

/* 動画（サムネイル → クリックでYouTube埋め込み） */
.p-howto-detail__movie {
  aspect-ratio: 160 / 284;
  overflow: hidden;
  background-color: var(--howto-color-placeholder);
}
.p-howto-detail__play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.p-howto-detail__play::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--howto-color-overlay);
}
.p-howto-detail__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-howto-detail__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: url(../img/howto/icon_shorts.svg) no-repeat center center / contain;
  transform: translate(-50%, -50%);
}
.p-howto-detail__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

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

/* 本文（WordPressの本文HTMLが入るため、ラッパー配下のタグにスタイルを当てる） */
.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: 20px 0 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
}
.p-howto-detail__content > :first-child {
  margin-top: 0;
}
.p-howto-detail__content p,
.p-howto-detail__content ul,
.p-howto-detail__content ol {
  margin: 20px 0 0;
}
.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: inherit;
  text-decoration: underline;
}
.p-howto-detail__content img {
  max-width: 100%;
  height: auto;
}

/* 本文内ボタン（AddQuicktag で挿入する <a class="link_button">） */
.p-howto-detail__content .link_button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 30px;
  border: 2px solid var(--howto-color-text);
  border-radius: 20px;
  background-color: var(--howto-color-bg);
  color: var(--howto-color-text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: calc(16 / 13);
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
}
.p-howto-detail__content .link_button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 12px;
  background: url(../img/common/btn_arrow.webp) no-repeat center center / contain;
  transform: translateY(-50%);
}
.p-howto-detail__content .link_button:hover {
  color: var(--howto-color-text);
  text-decoration: none;
  opacity: 0.7;
}

.p-howto-detail__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

