@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

:root {
  --cocoon-box-border-color: #d29700;
  --cocoon-xx-thin-color: #fdfced;
  --cocoon-xxx-thin-color: #fdfced;
  /* --cocoon-x-thin-color: #f2eee1; */
  /* --wp--preset--color--watery-blue: #FFFDDB;
  --wp--preset--color--sdblue-thirty: #3e2d00; */

  /* 薄いグレー Tint */
  --LtGray_T90: #fdfdf7;

  /* 薄い水色 Tint */
  --LtBlue_T0: #f1e500;
  --LtBlue_T30: #f5ec46;
  --LtBlue_T50: #f7f293;
  --LtBlue_T70: #f7f4b7;
  --LtBlue_T90: #f8f6d6;

  /* 薄い水色　半透明 Tint */
  /* --LtBlue_T70_A50: rgba(230, 237, 242, .5);
  --LtBlue_T70_A90: rgba(230, 237, 242, .9);
  --LtBlue_T90_A50: rgba(247, 249, 251, .5); */

  /* 濃い水色 Shade */
  --LtBlue_S30: #fac322;
  --LtBlue_S50: #e2aa00;
  --LtBlue_S70: #be8f00;
  --LtBlue_S90: #a37a00;

  /* Block Editor Parts */
  --Blk_Pink_T0: #debfc2;
  --Blk_Pink_T50: #efdfe1;
  --Blk_Pink_T90: #fcf9f9;
  --Blk_Pink_S50: #6f6061;

  --Blk_Red_T0: #d95959;
  --Blk_Red_T50: #ecacac;

  --Blk_Yellow_T0: #f5f2da;
  --Blk_Yellow_T50: #faf7e0;
  --Blk_Yellow_T90: #fcfbf9;
  --Blk_Yellow_S50: #6f6e60;

  --Blk_Beige_T0: #e1d1c6;
  --Blk_Beige_T50: #f0e8e3;
  --Blk_Beige_T70: #fbf9f0;
  --Blk_Beige_S50: #716963;

  --Blk_Green_T0: #cddab9;
  --Blk_Green_T50: #e6eddc;
  --Blk_Green_T90: #fafbf8;
  --Blk_Green_S30: #909982;
  --Blk_Green_S50: #676d5d;

  --box-shadow: 0.4rem 0.4rem 1rem rgba(0, 0, 0, 0.05), -0.4rem -0.4rem 1rem #ffffff;
  --box-shadow2: 0.8rem 0.8rem 1.2rem rgba(0, 0, 0, 0.05), -0.8rem -0.8rem 1.2rem #ffffff;
}

/************************************
** ページトップボタン
************************************/
.skin-grayish .go-to-top-button.go-to-top-button-icon-font {
  background-color: rgba(255, 255, 255, 0.95);
}

@media screen and (max-width: 1023px) {
  .skin-grayish .go-to-top-button {
    display: block;
    bottom: 67px;
  }

  /* バナーが表示されているとき、TOPボタン非表示 */
  .go-to-top-visible.popup-visible .go-to-top-button {
    visibility: hidden;
    opacity: 0;
  }
}

/************************************
** モバイルヘッダー
************************************/

/* ロゴ */
.ori-header .logo-image,
.site-name-text-link {
  padding: 0;
}

.ori-header .logo-image img {
  width: 213px;
}

.skin-grayish .mobile-header-menu-buttons.mobile-menu-buttons .logo-menu-button.menu-button {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
}

@media screen and (max-width: 1023px) {
  .skin-grayish .logo-menu-button img {
    padding: 0;
    width: 148px;
  }
}

/* ヘッダー背景色 */
.skin-grayish:not(.front-top-page) .header-container {
  background-color: rgba(255, 255, 255, 0.95);
}

.ori-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media screen and (max-width: 1023px) {
  .skin-grayish:not(.front-top-page) .mobile-header-menu-buttons.mobile-menu-buttons {
    background-color: rgba(255, 255, 255, 0.95);
    flex-wrap: wrap;
  }
}

/* ヘッダーのpaddingと高さ */
.skin-grayish .mobile-header-menu-buttons.mobile-menu-buttons {
  padding: 8px;
  height: auto !important;
}

/* ハンバーガーメニューボタン */
.mobile-menu-buttons .menu-button {
  width: auto;
}

/* カスタムメニュー */
.mobile-header-menu-buttons #navi {
  width: 100%;
  margin-top: 21px;
}

.skin-grayish .navi-in > ul li > a > .caption-wrap::before,
.skin-grayish .navi-footer-in a::before {
  display: none;
}

.menu-top.menu-header.menu-pc .menu-item a .item-label {
  transition: opacity 0.3s;
}

.menu-top.menu-header.menu-pc .menu-item a:hover .item-label {
  color: #778893;
  opacity: 0.5;
}

@media screen and (max-width: 1023px) {
  .skin-grayish:not(.front-top-page) .navi-in > ul > li {
    width: auto;
    line-height: 1;
  }

  .mobile-header-menu-buttons .navi-in > .menu-top.menu-header.menu-pc {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .menu-top.menu-header.menu-pc .menu-item a {
    padding: 0 !important;
    text-align: center;
  }

  .menu-top.menu-header.menu-pc .menu-item a .caption-wrap {
    width: 100%;
    line-height: 1;
  }

  .mobile-header-menu-buttons #navi {
    height: auto;
    position: static;
    width: 100%;
  }

  .skin-grayish.front-top-page .navi-in > ul > li {
    height: auto;
  }
}

@media screen and (max-width: 480px) {
  .menu-top.menu-header.menu-pc .menu-item a {
    font-size: 12px;
    letter-spacing: 0;
  }

  .menu-top.menu-header.menu-pc .menu-item a {
    font-size: 12px;
    letter-spacing: 0;
  }

  .mobile-header-menu-buttons #navi {
    margin-inline: -8px;
    width: calc(100% + (8px * 2)) !important;
  }

  .skin-grayish:not(.front-top-page) .navi-in > ul > li {
    line-height: 1.5;
  }
}

.tagline {
  margin-inline: auto;
}

/************************************
** PCヘッダー
************************************/
.skin-grayish:not(.front-top-page) .navi-in > ul {
  gap: 0;
}

.skin-grayish:not(.front-top-page) .navi-in > ul > li {
  padding: 0;
}

#header-container #navi {
  width: auto !important;
}

.menu-top.menu-header.menu-pc .menu-item a {
  padding: 0 1.5rem;
  position: relative;
}

.menu-top.menu-header.menu-pc .menu-item + .menu-item a::before {
  content: "";
  width: 1px;
  height: 24px;
  background-color: #767170;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
}

.skin-grayish:not(.front-top-page) #header-container {
  max-width: 1276px;
  padding: 0 28px;
  margin-inline: auto;
}

#header-container-in {
  padding-inline: 0;
}

@media screen and (max-width: 1023px) {
  .ori-header {
    opacity: 0;
    visibility: hidden;
  }

  #header-container-in {
    gap: 1em;
  }
}

/* @media screen and (max-width: 1023px) {
    #header-container {
      opacity: 0;
      height: 109px;
    }
  }
  @media screen and (max-width: 480px){
    #header-container {
      height: 87px;
    }
  } */

/************************************
** 会員登録・ログインなどのボタン
************************************/
.mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a .cta-button-icon {
  width: 23px;
  height: 23px;
  position: relative;
}

#header-container-in .ori-cta-buttons.cta-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a,
#header-container-in .ori-cta-buttons.cta-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.3s;
}

.mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a:hover,
#header-container-in .ori-cta-buttons.cta-buttons a:hover {
  color: #535252;
  opacity: 0.5;
}

#header-container-in .ori-cta-buttons.cta-buttons a .cta-button-icon {
  height: 23px;
  width: 23px;
  position: relative;
}

.mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a .cta-button-icon img,
#header-container-in .ori-cta-buttons.cta-buttons a .cta-button-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-header-menu-buttons .ori-cta-buttons.cta-buttons {
  display: flex;
  align-items: center;
}

.mobile-header-menu-buttons .ori-cta-buttons.cta-buttons {
  gap: 1.25rem;
}

.mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a .menu-text,
#header-container-in .ori-cta-buttons.cta-buttons a .menu-text {
  font-size: 10px;
  display: block;
  line-height: 1.5;
  letter-spacing: 0;
}

@media screen and (max-width: 1023px) {
  .mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a .cta-button-icon {
    height: 16px;
    width: 16px;
  }

  .mobile-header-menu-buttons .ori-cta-buttons.cta-buttons {
    gap: 0.5em;
  }
}

@media screen and (max-width: 480px) {
  .mobile-header-menu-buttons .ori-cta-buttons.cta-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a {
    margin-inline: -5px;
  }

  .mobile-header-menu-buttons .ori-cta-buttons.cta-buttons a .menu-text {
    transform: scale(0.6, 0.6);
  }

  .mobile-header-menu-buttons .ori-cta-buttons.cta-buttons {
    gap: 0;
  }
}

/************************************
** フッターのctaボタン
************************************/

.cta-button {
  margin: 0;
}

.cta-button a {
  background-color: #e99b00;
  width: 100%;
  padding: 15px;
  border-radius: 50px;
  margin: 15px 0;
}

.popular-dress-button.cta-button a {
  background-color: #ecbd1e;
}

.cta-button.cta-button .menu-caption {
  font-size: 16px;
  margin-top: 0;
  color: white;
}

.skin-grayish .cta-button.cta-button .menu-caption {
  font-weight: bold;
}

@media screen and (max-width: 1023px) {
  .cta-button a {
    padding: 15px 10px;
    margin: 10px 0;
  }

  .cta-button.cta-button .menu-caption {
    font-size: 12px;
  }

  .cta-button.cta-button.cta-button .menu-caption {
    letter-spacing: 0.05rem;
  }
}

@media screen and (max-width: 480px) {
  .popular-dress-button {
    flex: 1;
  }
  .rental-search-button {
    /*     max-width: 140px; */
  }
}

/************************************
** ハンバーガーメニューボタン
************************************/
/* 閉じるボタン */
.navi-menu-close-button {
  width: 35px;
  height: 35px;
  position: fixed;
  right: 0.75rem;
  top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close-line {
  width: 18px;
  display: block;
}

.menu-close-line::before,
.menu-close-line::after {
  content: "";
  width: 18px;
  height: 1px;
  display: block;
  position: absolute;
  background-color: #201715;
}

.menu-close-line::before {
  transform: rotate(-45deg);
}

.menu-close-line::after {
  transform: rotate(45deg);
}

/* 開くボタン */
#navi-menu-open {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-open-line {
  width: 18px;
  height: 1px;
  display: block;
  background-color: #201715;
  position: relative;
}

.menu-open-line::before,
.menu-open-line::after {
  content: "";
  width: 100%;
  height: 1px;
  display: block;
  background-color: #201715;
  position: absolute;
  left: 0;
}

.menu-open-line::before {
  top: -6px;
}

.menu-open-line::after {
  bottom: -6px;
}

/************************************
** ハンバーガーメニュー
************************************/
#navi-menu-content .ori-cta-buttons.cta-buttons {
  margin-top: 1em;
  padding: 30px 1em 1em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 1023px) {
  #navi-menu-content .ori-cta-buttons.cta-buttons a .cta-button-icon {
    width: 23px;
    height: 23px;
  }
}

@media screen and (max-width: 480px) {
  #navi-menu-content .ori-cta-buttons.cta-buttons a .menu-text {
    transform: scale(1, 1);
  }
}

/************************************
** サイドバー
************************************/
#sidebar h2.wp-block-heading {
  background-color: #f0f0f0;
  color: #666;
}

/************************************
** 記事詳細ページ共通
************************************/
/* テーブル */
.wp-block-table {
  overflow: auto;
}

.wp-block-table table.has-fixed-layout {
  min-width: 100%;
  width: auto;
}

.wp-block-table table.has-fixed-layout th,
.wp-block-table table.has-fixed-layout td {
  min-width: 150px;
}

table tr:nth-of-type(2n + 1) {
  background-color: transparent;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: var(--cocoon-xxx-thin-color);
}

table:not(.has-border-color) :where(th, td) {
  border: 1px solid var(--cocoon-x-thin-color);
}

.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th {
  border-color: var(--cocoon-x-thin-color);
}

.wp-block-table thead {
  border-bottom: 2px solid rgba(62, 45, 0, 0.3);
}

.wp-block-table tr th:first-child,
.wp-block-table tr td:first-child {
  border-left: 1px solid transparent;
}

.wp-block-table tr th:last-child,
.wp-block-table tr td:last-child {
  border-right: 1px solid transparent;
}

.timeline-box .timeline-title {
  border-bottom: double 3px var(--LtBlue_S30);
}

/* メニューボックス */
.box-menu .box-menu-icon {
  color: #ebb205;
  transition: color 0.2s;
}

.box-menu:hover .box-menu-icon {
  color: var(--white);
  transition: color 0.2s;
}

.box-menu {
  transition:
    color 0.2s,
    background-color 0.2s;
}

.box-menu:hover {
  background-color: #ebb205;
  color: var(--white);
}

.box-menu:hover::before {
  display: none;
}

/* ボタン */
.content-in .button-block .btn {
  background-color: #e99b00;
  min-width: 230px;
  color: #fff;
  width: fit-content;
  border: 0 solid transparent;
  border-radius: 0;
  padding: 0.8em 1.5em 1.1em;
  position: relative;
  border-radius: 10000px;
}

/* マイクロテキスト */
.content-in .micro-text-content.micro-content {
  width: fit-content;
  margin-inline: auto;
  padding: 0 1.2em;
  font-size: 13px;
  position: relative;
  display: block;
  opacity: 0.9;
}

.content-in .micro-text-content.micro-content::before,
.content-in .micro-text-content.micro-content::after {
  display: block;
  position: absolute;
  bottom: 0;
  font-size: 13px;
  color: inherit;
}

.content-in .micro-text-content.micro-content::before {
  content: "\FF3C";
  left: 0;
}

.content-in .micro-text-content.micro-content::after {
  content: "\FF0F";
  right: 0;
}

.content-in .micro-text-content.micro-content:has(.micro-text-icon)::before,
.content-in .micro-text-content.micro-content:has(.micro-text-icon)::after {
  display: none;
}

/* ストライプ背景 */
.is-style-stripe-box {
  background-image: repeating-linear-gradient(-45deg, #fcf8a8 0, #fcf8a8 3px, transparent 3px, transparent 6px);
}

/* 見出し */
.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
  color: #2e2300;
}

.article h2 {
  margin: 2.5em 0 1em 0;
}

.article h2::before {
  border-color: #f5ec46;
}

.article h3 {
  background-color: #fffcc6;
}

.article h3::before {
  border-color: #fac322;
}

.editor-styles-wrapper .blogcard-type {
  background-color: #fdfdf7;
}

.editor-styles-wrapper .blogcard-type::before {
  background-color: var(--LtBlue_S30);
}

div.cocoon-render-message {
  border-color: var(--LtBlue_T70);
}

/* ブログカード */
.skin-grayish .blogcard::before {
  background-color: #ecaa04;
}

/* 目次 */
.skin-grayish .tnt-number .toc-list > li > a::before {
  background-color: #fac322;
}

.skin-grayish .toc-title {
  background-image: linear-gradient(-45deg, #fff 25%, #fcf8a8 25%, #fcf8a8 50%, #fff 50%, #fff 75%, #fcf8a8 75%, #fcf8a8);
}

#toc * {
  color: #4f4018;
}

:is(.is-style-question-box, .question-box, .question)::before {
  color: #e6dd9a;
}

.toc li:has(> a > .notoc) {
  display: none;
}

/************************************
** トップページ
************************************/
.skin-grayish.front-top-page .ori-header {
  max-width: 1276px;
  padding: 1em 28px;
  margin-inline: auto;
}

.skin-grayish.front-top-page .ori-header .navi {
  position: static;
  height: auto;
}

.skin-grayish.front-top-page .navi-in > ul {
  padding: 0;
  text-align: center;
  gap: 0;
}

.skin-grayish.front-top-page .navi-in > ul li {
  padding: 0;
}

.skin-grayish #navi-in {
  background-color: transparent;
}

@media screen and (max-width: 1023px) {
  .skin-grayish.front-top-page .mobile-header-menu-buttons.mobile-menu-buttons {
    background-color: rgba(255, 255, 255, 0.95);
    flex-wrap: wrap;
    color: #f2f1e6;
  }

  .skin-grayish.front-top-page .navi-in > ul li {
    width: 100%;
  }
}

.skin-grayish .list-new-entries .list-more-button:hover::before,
.skin-grayish .list-columns .list-more-button:hover::before,
.skin-grayish .pagination-next-link:hover::before,
.skin-grayish .index-tab-wrap .list-more-button:hover::before,
.skin-grayish .comment-btn:hover::before,
.skin-grayish .pager-links .post-page-numbers .page-numbers.page-prev-next:hover::before {
  background-color: var(--LtBlue_S30);
}

.skin-grayish .list-new-entries .list-title-in::before,
.skin-grayish .list-columns .list-title-in::before {
  background-color: #fac322;
  opacity: 0.5;
}

.skin-grayish .cat-label {
  background-color: #ffe95d;
  color: #3e2d00;
}

/************************************
** トップメインビジュアル
************************************/
.skin-grayish.front-top-page .container .header-container .header {
  height: 50vh;
}

.skin-grayish:not(.front-top-page) .header-container-in.hlt-center-logo-top-menu {
  padding: 1em;
}

/************************************
** モバイルフッター
************************************/
.mobile-footer-menu-buttons .menu-caption {
  margin-top: 0.5em;
}

.mobile-footer-menu-buttons {
  display: flex;
}

.mobile-footer-menu-buttons .menu-button {
  flex: 1;
}

@media screen and (max-width: 1023px) {
  .skin-grayish .mobile-menu-buttons {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

/************************************
** モバイルフッター（CTA）
************************************/
.mobile-menu-buttons--cta {
  background: initial;
  box-shadow: initial;
  gap: 15px;
  padding: 0 15px;
}

@media screen and (max-width: 1023px) {
  .mobile-menu-buttons--cta {
    gap: 10px;
    padding: 0 10px;
  }
  .skin-grayish .mobile-menu-buttons--cta {
    background: initial;
    box-shadow: initial;
  }
}

/************************************
** フッター
************************************/
.ori-bg-footer {
  --tw-bg-opacity: 1;
  background-color: rgb(102 102 102 / var(--tw-bg-opacity));
  padding-top: 60px;
  padding-bottom: 60px;
  letter-spacing: 0;
}

.ori-footer-content {
  display: flex;
  gap: 2em;
  justify-content: space-between;
  max-width: 1276px;
  width: 100%;
  margin-inline: auto;
  padding: 0 28px;
}

@media screen and (max-width: 834px) {
  .ori-footer-content {
    display: block;
  }
}

.ori-menu-list {
  display: flex;
  justify-content: space-around;
  gap: 5vw;
}

.ori-bg-footer .logo {
  width: 217px;
  display: block;
  transition: opacity 0.3s;
}

@media screen and (max-width: 834px) {
  .ori-footer-content-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .ori-bg-footer .logo {
    width: 75px;
  }
}

.ori-bg-footer .logo:hover {
  opacity: 0.5;
}

.ori-bg-footer img {
  width: 100%;
}

.ori-bg-footer .instagram {
  width: 37px;
  margin-top: 4rem;
  margin-inline: auto;
  transition: opacity 0.3s;
}

@media screen and (max-width: 834px) {
  .ori-bg-footer .instagram {
    margin-top: 22px;
    width: 22px;
    margin-bottom: 28px;
  }
}

.ori-bg-footer .instagram:hover {
  opacity: 0.5;
}

.ori-bg-footer ul {
  padding-left: 0;
}

.ori-bg-footer ul li {
  list-style: none;
}

.ori-bg-footer ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s;
  display: block;
}

.ori-bg-footer ul li a:hover {
  opacity: 0.5;
}

.ori-copy {
  max-width: 1276px;
  width: 100%;
  margin-inline: auto;
  padding: 0 28px;
  text-align: center;
  color: #fff;
  margin-top: 2.5rem;
  font-size: 0.875rem;
}

.ori-sp ul li a {
  font-size: 0.875rem;
}

.ori-sp .ori-sp-global-menu {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  text-align: center;
}

.ori-sp .ori-sp-sub-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.ori-sp .ori-sp-global-menu li {
  margin-bottom: 1.75rem;
}

.ori-sp .ori-sp-sub-menu li a {
  margin-bottom: 0;
  position: relative;
}

.ori-sp .ori-sp-sub-menu li + li a::after {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 50%;
  opacity: 0.4;
  transform: translateY(-50%);
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  width: 1px;
  height: 15px;
  display: block;
}

.ori-md-sp-global-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  max-width: 450px;
  width: 100%;
  margin-inline: auto;
}

.ori-md-sp-global-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ori-md-sp-global-menu ul li a {
  font-size: 0.875rem;
}

.ori-md-sp-sub-menu {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0;
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
}

.ori-md-sp-sub-menu li a {
  display: block;
  position: relative;
  padding-inline: 0.5rem;
}

.ori-md-sp-sub-menu li a::before {
  content: "";
  width: 1px;
  height: 15px;
  background-color: #fff;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.ori-md-sp-sub-menu li:last-of-type a::before {
  display: none;
}

/* 記事一覧でロゴが2つになる不具合を解消 */
.home.blog.body.public-page:not(.front-top-page) #header {
  display: none;
}

/************************************
** ランキングウィジェット
************************************/

.auto-ranking-widget {
  background-color: #fdf7ea;
  padding: 0 2rem 2rem;
  margin-top: 5rem;
}

.auto-ranking-widget__title.auto-ranking-widget__title {
  margin-top: 0;
  margin-bottom: 0;
  background-color: initial;
  text-align: center;
  color: #e99b00;
  border: initial;
  font-size: 27px;
  font-weight: 400;
}

.auto-ranking-widget__title.auto-ranking-widget__title::before {
  display: none;
}

.auto-ranking-widget__title span {
  display: block;
  margin-top: -36px;
}

/* aタグのunderline除去 */
.auto-ranking-widget__link {
  text-decoration: none;
}

.auto-ranking-widget__link:hover {
  text-decoration: none;
}

/* リストのレイアウト */
.auto-ranking-widget__list {
  padding: 2rem 0;
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

/* アイテムの幅設定（4つ表示用） */

.auto-ranking-widget__item--rank-4 .auto-ranking-widget__rank-deco,
.auto-ranking-widget__item--rank-5 .auto-ranking-widget__rank-deco {
  display: none;
}

.auto-ranking-widget__item {
  width: calc(25% - 1.5rem);
  flex-shrink: 0;
}

.auto-ranking-widget__rank-badge {
  display: inline-flex;
  place-items: flex-end;
  gap: 4px;
}

.auto-ranking-widget__rank-number {
  font-size: 1.5em;
  line-height: 1.4em;
}

.auto-ranking-widget__rank-label {
  letter-spacing: 1px;
}

.auto-ranking-widget__rank-icon {
  vertical-align: baseline;
}

/* タイトル */
.auto-ranking-widget__title-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  color: #989898;
}

/* 価格 */
.auto-ranking-widget__price-value {
  font-weight: 600;
}

/* 価格の税額 */
.auto-ranking-widget__price-tax {
  font-size: 0.6em;
}

.auto-ranking-widget__note {
  text-align: end;
  color: #908d8d;
  font-size: 13px;
  letter-spacing: 2px;
}

.auto-ranking-widget__note.auto-ranking-widget__note {
  margin-bottom: 0;
}

@media screen and (max-width: 834px) {
  .auto-ranking-widget {
    padding: 0 1rem 2rem;
    margin-top: 5rem;
  }

  .auto-ranking-widget__title.auto-ranking-widget__title {
    font-size: 23px;
  }

  /* リストのレイアウト */
  .auto-ranking-widget__list {
    padding: 1rem 0;
    gap: 1rem;
  }

  /* アイテムの幅設定（3つ表示用） */
  .auto-ranking-widget__item {
    width: calc(40% - 1.5rem);
  }

  .auto-ranking-widget__rank-badge {
    gap: 3px;
  }

  .auto-ranking-widget__rank-number {
    font-size: 1.5em;
    line-height: 1.4em;
  }

  .auto-ranking-widget__rank-deco {
    max-width: 16px;
  }

  /* タイトル */
  .auto-ranking-widget__title-item {
    letter-spacing: 1px;
  }

  /* 価格 */
  .auto-ranking-widget__price-value {
    letter-spacing: 1px;
  }

  /* 価格の税額 */
  .auto-ranking-widget__price-tax {
    font-size: 0.6em;
    letter-spacing: 1px;
  }

  .auto-ranking-widget__note {
    font-size: 11px;
    letter-spacing: 1px;
  }
}

/************************************
** バナー
************************************/

/* ポップアップ */
.ta-popup {
  display: block;
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 450px;
  z-index: 99999;

  opacity: 0;
  transform: translateX(30px);
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s ease;
}

/* 表示状態 */
.ta-popup.is-animated {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* 消えるときの状態 */
.ta-popup.is-hidden {
  opacity: 0;
  transform: translateX(30px);
  visibility: hidden;
  pointer-events: none;
}

/* 閉じるボタンの簡易スタイル */
.ta-popup__close-btn {
  border: none;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: white;
  top: -15px;
  right: 40px;
  z-index: 10;
  transform: translate(100%, -100%);
}

.ta-popup__inner {
  position: relative;
}

.ta-popup__link,
.ta-popup__link img {
  display: block;
  width: 100%;
  height: auto;
}

.ta-popup__close-btn:hover {
  opacity: 0.7;
}

@media screen and (max-width: 834px) {
  .ta-popup {
    padding: 5px;
    bottom: 65px;
    width: calc(100% - 20px);
    right: 10px;
  }

  .ta-popup__close-btn {
    top: -10px;
  }
}

/************************************
** 記事最下部のドレス・フォーマルウェアをレンタルするメリット
************************************/

.entry-content__rental-merit .cta-merit {
  display: none;
}

.entry-content__rental-merit h2 {
  margin: 1em 0 2em 0;
  font-weight: 700;
  font-size: 1.8rem;
}

/* レンタルのメリット内の目次を削除 */
.entry-content__rental-merit .toc {
  display: none;
}

/* レンタルのメリット内のおすすめ商品ランキングを削除 */
.entry-content__rental-merit .auto-ranking-widget {
  display: none;
}

/************************************
** 記事最下部の店舗羅列エリア
************************************/

.entry-content__stores-region {
  font-size: 1em;
  font-weight: 800;
  color: #333;
  margin: 25px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.entry-content__stores-region:first-of-type {
  margin-top: 0;
}

.entry-content__stores-pref {
  font-size: 14px;
  color: #999;
  margin: 15px 10px 0px 0px;
  padding: 0 10px;
  display: inline;
  position: relative;
  border: 1px solid currentcolor;
  white-space: nowrap;
}

.entry-content__stores-list {
  list-style: none;
  padding: 0;
  margin: 0 0 5px 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.article .entry-content__stores-list {
  margin-bottom: 10px;
}

.entry-content__stores-list-item {
  margin: 0;
}

.entry-content__stores-list-item:last-child {
  margin-right: 30px;
}

.entry-content__stores-list-link {
  font-size: 14px;
}

.entry-content__stores-list-link:hover {
  text-decoration: none;
}

@media screen and (max-width: 834px) {
  .entry-content__stores-region {
    margin-top: 1.2em;
  }
  .entry-content__stores-pref {
    margin-right: 0;
  }

  .article .entry-content__stores-list {
    padding-left: 0;
  }

  .entry-content__stores-list-item:last-child {
    margin-right: 1em;
  }
}

/************************************
** CTA周りのメリット表示
************************************/

.cta-merit {
  margin-bottom: 4rem;
}

.cta-merit__heading {
  text-align: center;
}

.cta-merit__title.cta-merit__title {
  background-color: initial;
  font-size: 36px;
  font-weight: 400;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.cta-merit__title.cta-merit__title::before {
  display: none;
}

.cta-merit__title-highlight {
  background: linear-gradient(transparent 60%, #ffff8c 60%);
}

.cta-merit__subtitle {
  font-size: 24px;
  line-height: 1.5em;
}

.cta-merit__subtitle.cta-merit__subtitle {
  margin-bottom: 1em;
}

.cta-merit__subtitle-small {
  font-size: 16px;
}

.cta-merit__img {
  margin-bottom: 1.8em;
}

@media screen and (max-width: 834px) {
  .cta-merit__title.cta-merit__title {
    font-size: 30px;
    margin-bottom: 0.6em;
  }

  .cta-merit__subtitle {
    font-size: 18px;
    line-height: 1.5em;
  }

  .cta-merit__subtitle-small {
    font-size: 12px;
  }

  .cta-merit__img {
    overflow-x: scroll;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .cta-merit__img img {
    min-width: 600px;
    padding: 0 16px;
  }
}

/************************************
** 表示/非表示
************************************/
@media screen and (max-width: 834px) {
  .ori-md-pc {
    display: none;
  }
}

@media screen and (min-width: 835px) {
  .ori-md-sp {
    display: none;
  }
}

@media screen and (max-width: 1023px) {
  .ori-lg-pc {
    display: none;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
}

/************************************
** 202607 追加
************************************/
.small-text {
  font-size: 10px;
}

@media screen and (max-width: 834px) {
  .small-text {
    font-size: 8px;
  }
}

/************************************
** コラム本文の読みやすさ改善
************************************/

/* 本文全体 */
.single-post .entry-content {
  color: #3f3f3f;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 通常の段落 */
.single-post .entry-content > p,
.single-post .entry-content > .wp-block-paragraph {
  margin-top: 0;
  margin-bottom: 1.7em;
}

/* 段落内のリンク */
.single-post .entry-content p a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* 箇条書き */
.single-post .entry-content > ul,
.single-post .entry-content > ol {
  margin-top: 0.7em;
  margin-bottom: 1.8em;
  padding-left: 1.6em;
}

.single-post .entry-content li {
  margin-bottom: 0.65em;
  line-height: 1.85;
}

/* 引用 */
.single-post .entry-content blockquote {
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  padding: 1.2em 1.4em;
  line-height: 1.85;
}

/* 画像・図表の上下余白 */
.single-post .entry-content > figure,
.single-post .entry-content > .wp-block-image {
  margin-top: 2em;
  margin-bottom: 2em;
}

/* 見出し前後の余白調整 */
.single-post .entry-content h2 {
  margin-top: 3em;
  margin-bottom: 1.2em;
}

.single-post .entry-content h3 {
  margin-top: 2.4em;
  margin-bottom: 1em;
}

.single-post .entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

/*
 * 強調マーカー
 * Cocoonでよく使われるマーカークラスをまとめて調整
 */
.single-post .entry-content :is(.marker, .marker-yellow, .marker-red, .marker-blue, .marker-under, .marker-under-red, .marker-under-blue) {
  padding: 0 0.08em;
  background-position: 0 40%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* 黄色系マーカー */
.single-post .entry-content :is(.marker, .marker-yellow, .marker-under) {
  background-image: linear-gradient(transparent 70%, rgba(255, 231, 92, 0.4) 70%);
}

/* 赤系マーカー */
.single-post .entry-content :is(.marker-red, .marker-under-red) {
  background-image: linear-gradient(transparent 70%, rgba(255, 170, 170, 0.35) 70%);
}

/* 青系マーカー */
.single-post .entry-content :is(.marker-blue, .marker-under-blue) {
  background-image: linear-gradient(transparent 70%, rgba(150, 210, 245, 0.35) 70%);
}

/************************************
** スマートフォン
************************************/
@media screen and (max-width: 834px) {
  /* 本文左右の余白 */
  .single-post .entry-content {
    font-size: 16.5px;
    line-height: 1.95;
    letter-spacing: 0.02em;
  }

  /* 記事本文を囲む領域 */
  .single-post .article {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-post .entry-content > p,
  .single-post .entry-content > .wp-block-paragraph {
    margin-bottom: 1.75em;
  }

  .single-post .entry-content h2 {
    margin-top: 2.7em;
    margin-bottom: 1.1em;
  }

  .single-post .entry-content h3 {
    margin-top: 2.2em;
    margin-bottom: 0.9em;
  }

  .single-post .entry-content > figure,
  .single-post .entry-content > .wp-block-image {
    margin-top: 1.8em;
    margin-bottom: 1.8em;
  }
}

/************************************
** 小さいスマートフォン
************************************/
@media screen and (max-width: 480px) {
  .single-post .entry-content {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.015em;
  }

  .single-post .article {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/************************************
** FV離脱防止:目次アコーディオン
** (fv-improve.js とセットで使用)
************************************/
.toc-accordion {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.toc-accordion .toc-title {
  padding: 0.8em 1em;
}

.toc-accordion .toc-content {
  padding: 0.4em 1.2em 1.2em;
}

.toc-list > ol {
  display: none;
}

/* 冒頭のCTA項目(番号なし)は中央寄せでコンパクトに */
.toc-accordion .toc-list > ol {
  list-style: none;
  margin: 0;
  padding: 0.6em 0 0.9em;
  text-align: center;
}

.toc-accordion .toc-list > ol > li {
  margin: 0.4em 0;
}

/* 大見出し(h2)の行 */
.toc-accordion .toc-list > li.toc-acc-item {
  position: relative;
  margin: 0;
  padding: 0.9em 2.4em 0.9em 0;
  border-top: 1px solid #f0e6c0;
}

.toc-accordion .toc-list > li.toc-acc-item > a {
  font-weight: 700;
}

/* 開閉ボタン(シェブロン) */
.toc-acc-toggle {
  position: absolute;
  top: 1.5em;
  right: 0;
  width: 2.2em;
  height: 2.2em;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.toc-acc-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid #b89a3a;
  border-bottom: 2px solid #b89a3a;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.25s ease;
}

.toc-acc-item.is-open > .toc-acc-toggle::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}

/* 小見出し(h3)は閉じた状態が初期値 */
.toc-accordion .toc-list > li.has-children > ol {
  display: none;
  margin: 0.4em 0 0;
  padding-left: 1.4em;
}

.toc-accordion .toc-list > li.has-children.is-open > ol {
  display: block;
}

.toc-accordion .toc-list > li.has-children > ol > li {
  margin: 0.35em 0;
  font-weight: 400;
}

/* 一定数以降は「もっと見る」を押すまで非表示 */
.toc-accordion .toc-list > li.toc-acc-overflow {
  display: none;
}

.toc-accordion.is-all-visible .toc-list > li.toc-acc-overflow {
  display: block;
}

/* もっと見るボタン */
.toc-more-button {
  display: block;
  width: min(240px, 80%);
  margin: 1em auto 0;
  padding: 0.55em 1em;
  border: 1px solid #cbb069;
  border-radius: 4px;
  background: #fff;
  color: #4f4018;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toc-more-button:hover {
  background-color: #fdf7e0;
}

.toc-more-button__label::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.7em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 0.25s ease;
}

.toc-more-button[aria-expanded="true"] .toc-more-button__label::after {
  transform: translateY(0.1em) rotate(-135deg);
}

/************************************
** FV離脱防止:監修者カードのコンパクト化
** レイアウトはCSSのみで即時適用(チラつき防止)。
** fv-improve.js は保有資格の並べ替えのみ行う。
** ※対象の特定に .has-watery-yellow-border-color を使用。
**   監修者以外の media-text で同じ色枠を使う場合は、
**   ブロックに supervisor-card クラスを付与する運用に変更してください。
************************************/
.entry-content .wp-block-media-text.has-watery-yellow-border-color,
.entry-content .supervisor-card.wp-block-media-text {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  max-width: 100%;
  margin: 1.5em auto !important;
  padding: 14px !important;
}

/* 画像:顔がわかる程度の丸アイコンにして上に配置 */
.entry-content .wp-block-media-text.has-watery-yellow-border-color .wp-block-media-text__media,
.entry-content .supervisor-card .wp-block-media-text__media {
  flex: 0 0 64px;
  width: 64px;
  margin: 0;
  align-self: flex-start !important;
}

.entry-content .wp-block-media-text.has-watery-yellow-border-color .wp-block-media-text__media img,
.entry-content .supervisor-card .wp-block-media-text__media img {
  width: 64px;
  height: 64px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}

/* 文言:横並び・コンパクトに */
.entry-content .wp-block-media-text.has-watery-yellow-border-color .wp-block-media-text__content,
.entry-content .supervisor-card .wp-block-media-text__content {
  min-width: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

.entry-content .wp-block-media-text.has-watery-yellow-border-color .wp-block-media-text__content p,
.entry-content .supervisor-card .wp-block-media-text__content p {
  margin: 0 !important;
}

/* 段落冒頭の余分な<br>を消す */
.entry-content .wp-block-media-text.has-watery-yellow-border-color .wp-block-media-text__content p > br:first-child,
.entry-content .supervisor-card .wp-block-media-text__content p > br:first-child {
  display: none;
}

.entry-content .wp-block-media-text.has-watery-yellow-border-color .marker,
.entry-content .supervisor-card .marker {
  display: inline-block;
  margin-bottom: 0.3em;
}

/* JSが保有資格を並べ替えるまで文言部分を非表示にして
   「元のデザインが一瞬見える」のを防ぐ。
   JSが動かない環境でも1.2秒後には表示される保険付き。 */
@keyframes supervisor-content-reveal {
  to {
    visibility: visible;
  }
}

.entry-content .wp-block-media-text.has-watery-yellow-border-color:not(.supervisor-card) .wp-block-media-text__content {
  visibility: hidden;
  animation: supervisor-content-reveal 0s 1.2s forwards;
}

/* 保有資格:改行せずにインラインで並べる */
.supervisor-card__quals {
  margin-top: 0.6em;
  font-size: 12px;
  line-height: 1.8;
}

.supervisor-card__quals-label {
  margin-right: 0.5em;
  font-weight: 700;
}

.supervisor-card__quals-item {
  display: inline;
}

.supervisor-card__quals-item + .supervisor-card__quals-item::before {
  content: "／";
  margin: 0 0.3em;
  color: #cbb069;
}

@media screen and (max-width: 480px) {
  .entry-content .wp-block-media-text.has-watery-yellow-border-color,
  .entry-content .supervisor-card.wp-block-media-text {
    gap: 12px;
    padding: 12px !important;
  }

  .entry-content .wp-block-media-text.has-watery-yellow-border-color .wp-block-media-text__media,
  .entry-content .supervisor-card .wp-block-media-text__media {
    flex-basis: 56px;
    width: 56px;
  }

  .entry-content .wp-block-media-text.has-watery-yellow-border-color .wp-block-media-text__media img,
  .entry-content .supervisor-card .wp-block-media-text__media img {
    width: 56px;
    height: 56px;
  }
}

.skin-grayish .go-to-top-button {
  bottom: 80px;
}

/************************************
** 監修者カード 保有資格開閉
************************************/

.supervisor-card__quals-button.toc-more-button {
  width: auto;
  min-width: 120px;
  margin: 0.7em 0 0;
  padding: 0.35em 0.8em;
  font-size: 11px;
}

.supervisor-card__quals-button .toc-more-button__label::after {
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.5em;
  margin-bottom: 0.1em;
}

.supervisor-card__quals[hidden] {
  display: none !important;
}

.supervisor-card__quals {
  margin-top: 0.8em;
  padding-top: 0.8em;
  border-top: 1px solid #f0e6c0;
}
