/*
Theme Name: tantei2025
*/

body {
  font-family: "Helvetica Neue", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

h2 {
  font-size: clamp(18px, 2vw, 24px);
}

.br-678 {
  display: none;
}

@media screen and (max-width: 678px) {
  body {
    font-size: 14px;
  }

  .br-678 {
    display: inline;
  }
}

/* ローディング */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFF6EC;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#loading.loaded {
  opacity: 0;
  visibility: hidden;
}


/* ヘッダー*/
.header-layout {
  width: 100%;
  background-color: #FFF6EC;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  position: relative;
  position: fixed;
  z-index: 1000;
}

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

.header__item a {
  text-decoration: none;
  color: #5E1913;
  font-weight: bold;
}

.header__item a:hover {
  color: #E48F45;
}

.header .logo {
  margin-right: 30px;
}

.header__list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  padding-left: 30px;
}

.header__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.header .header_contact-btn {
  margin-left: 30px;
}

.header_contact-btn {
  padding: 0 40px;
  height: 80px;
  background-color: #E48F45;
  color: #ffffff;
  line-height: 80px;
  text-align: center;
  font-weight: bold;
}

.header_contact-btn a {
  color: #ffffff;
  font-weight: bold;
}

.header_contact-btn:hover {
  background-color: #e37337;
}

@media screen and (max-width: 600px) {
  .logo img {
    padding-left: 10px;
  }

  .header_contact-btn {
    padding: 0 25px;
    height: 60px;
    line-height: 60px;
    font-size: 14px;
  }

  .header .header_contact-btn {
    margin-left: 15px;
  }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: #5E1913;
  display: block;
  border-radius: 50px;
}

@media screen and (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .header__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    flex-direction: column;
    background-color: #FFF6EC;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .header__list.active {
    max-height: 170px;
    height: fit-content;
    opacity: 1;
  }

  .header__item:first-child {
    padding-top: 20px;
  }

  .header__item:last-child {
    padding-bottom: 20px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7.8px);
  }

  .hamburger span {
    transition: all 0.3s ease;
  }
}

/* MV */
.main-visual_area {
  position: relative;
  display: inline-block;
  width: 100%;
}

.mv_img_yoko {
  display: block;
  width: 100%;
  height: auto;
}

.mv_img_tate {
  display: none;
}

.mv_text_small {
  position: absolute;
  top: 15vw;
  left: 5vw;
  font-size: 2.5vw;
  color: #333;
  font-weight: bold;
  text-align: left;
  padding: 1vw 2vw;
}

.mv_text_big {
  position: absolute;
  top: 20vw;
  left: 5vw;
  font-size: 3.5vw;
  color: #333;
  font-weight: bold;
  text-align: left;
  padding: 1vw 2vw;
  line-height: 1.4;
}

.mv_btn {
  position: absolute;
  top: 34vw;
  left: calc(5vw + 20px);
  color: #5E1913;
  background-color: #fff;
  font-size: 1.3vw;
  border-radius: 999px;
  border: #E48F45 3px solid;
  padding: 1vw 4vw;
  font-weight: bold;
  box-shadow: 0 0 8px 0 rgba(97, 97, 97, 0.3);
}

.mv_btn:hover {
  background-color: #E48F45;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .mv_img_yoko {
    display: none;
  }

  .mv_img_tate {
    display: block;
    width: 100%;
    height: auto;
  }

  .mv_text_small {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    top: 8vw;
    font-size: 3.5vw;
    text-align: center;
    padding: 1vw 2vw;
  }

  .mv_text_big {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    top: 15vw;
    font-size: 6.5vw;
    text-align: center;
    padding: 1vw 2vw;
  }

  .mv_btn {
    font-size: 2.7vw;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    top: 40vw;
    padding: 2vw 5vw;
  }
}

/* 4コマまんが */
img.yonkoma_img-yoko {
  display: block;
  max-width: 900px;
  padding: 10px;
  margin: 40px auto 0;
  width: 100%;
}

img.yonkoma_img-tate {
  width: 100%;
  max-width: 400px;
  display: none;
}

@media screen and (max-width: 768px) {
  img.yonkoma_img-yoko {
    display: none;
  }

  img.yonkoma_img-tate {
    max-width: 500px;
    padding: 10px;
    margin: 0 auto;
    display: block;
  }
}

.text {
  text-align: center;
  padding: 40px 15px 20px;
}

/* ランキング発表（3位まで）*/
.section_ranking {
  padding: 30px 15px;
  background-color: #FFF6EC;
  margin-bottom: 100px;
}

.ranking_crown {
  max-width: 100px;
  display: block;
  padding-top: 50px;
  margin: 0 auto 30px;
}

.section_ranking h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 50px;
}

.big-letter {
  font-size: 1.5em;
}

.ranking_top-three {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.ranking_top-three li {
  background-color: #ffffff;
  border-radius: 15px;
  width: 270px;
  position: relative;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
}

.ranking_top-three_img {
  width: 100%;
  border-radius: 15px 15px 0 0;
}

.badge_top-three {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: auto;
  z-index: 2;
}

.list-inner {
  padding: 20px;
}

.service-name {
  padding-bottom: 5px;
  font-weight: bold;
}

.service-name_detail {
  font-size: 0.8em;
}

.detail_btn {
  display: block;
  text-align: center;
  width: 100%;
  border: #333 1px solid;
  padding: 5px;
  margin-top: 20px;
  border-radius: 100px;
  font-size: 0.8em;
}

.detail_btn:hover {
  background-color: #f2f1f1;
}

@media screen and (max-width: 900px) {
  .ranking_top-three {
    display: block;
    margin: 0 auto;
  }

  .ranking_top-three li {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
  }
}


/* ランキング発表（6位以下）*/
.ranking_top-nine {
  width: 100%;
  max-width: 850px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  padding-top: 20px;
}

.ranking_top-nine li a {
  width: 270px;
  box-sizing: border-box;
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ranking_top-nine li a:hover {
  background-color: #f2f1f1;
}


.ranking_top-nine_text {
  font-weight: bold;
}

.badge_top-nine {
  width: 40px;
  margin-right: 12px;
  flex-shrink: 0;
}

.arrow {
  padding-left: 15px;
  font-size: 30px;
  color: #000;
}



/* 調査結果ボタン　 */
.result_btn-wrapper {
  text-align: center;
  padding: 40px 0 60px;
}

.result_btn {
  display: inline-flex;
  align-items: center;
  background-color: #E48F45;
  color: #fff !important;
  padding: 8px 28px 8px 8px;
  border-radius: 999px;
  font-weight: bold;
  font-size: clamp(14px, 2vw, 18px);
  gap: 15px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  transition: transform 0.3s ease;
}

.result_btn img {
  width: 80px;
  height: auto;
}

.result_btn span {
  line-height: 1.4;
  text-align: left;
  display: inline-block;
}

.result_btn:hover {
  background-color: #e37337;
  transform: scale(1.05);
}

/* ランキング各企業紹介 */
.section_ranking-detail {
  margin: 0 15px 150px;
}

.ranking-detail_title {
  display: flex;
  align-items: center;
  padding: 30px 0 15px 20px;
}

.ranking-detail_number {
  display: block;
  width: 100px;
  max-width: 50px;
}

.ranking-detail_title h3 {
  font-size: clamp(20px, 2vw, 28px);
  padding-left: 15px;
}

.design-line {
  height: 1px;
  background-color: #333;
}

.ranking-detail li {
  padding: 0 15px;
  border: #E48F45 5px solid;
  border-radius: 15px;
  margin: 0 auto 30px;
  max-width: 1000px;
}

.ranking-detail_img {
  display: block;
  max-width: 600px;
  border-radius: 15px;
  margin: 30px auto;
  width: 100%;
}

.ranking-detail_text1 {
  text-align: center;
}

.ranking-detail_text1 p {
  padding-bottom: 20px;
}

.text-title {
  font-size: 1.3em;
  font-weight: bold;
}

.text-red {
  color: #FF5656;
}

.ranking-detail_text2 {
  max-width: 850px;
  margin: 0 auto 30px;
}

.ranking-detail_btn_wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  justify-content: center;
}

.ranking-detail_btn {
  display: block;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: #E48F45;
  font-weight: bold;
  width: 330px;
  text-align: center;
  color: #fff;
  transition: background-color 0.3s;
  transition: transform 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.ranking-detail_btn:hover {
  background-color: #E48F45;
  background-color: #e37337;
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .ranking-detail_btn_wrapper {
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }

  .ranking-detail_btn {
    width: 100%;
    max-width: 400px;
    display: inline-block;
    margin-bottom: 20px;
  }
}

/* サイドバー */
.sidebar_btn {
  font-size: 0.8rem;
}


/* フッター */
footer {
  background-color: #5E1913;
  padding-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #fff
}

.footer__inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer__inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.footer__inner li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__inner li a:hover {
  color: #F4A737;
}

.operation {
  margin-bottom: 20px;
  padding: 0 20px;
  line-height: 1.6;
}

.operation p {
  margin: 5px 0;
}

footer small {
  font-size: 12px;
  color: #fff;
}

.footer_img {
  display: block;
  width: 100%;
  margin-top: 30px;
}

@media screen and (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer__inner ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .operation {
    text-align: center;
  }
}

/* タイトル　 */
.page-title_area {
  background-image: url('/wp-content/themes/tantei2025/assets/images/title_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 200px;
  text-align: center;
  color: #fff;
}

.page-title_area h1 {
  color: #fff;
  font-size: clamp(28px, 5vw, 40px);
  padding: 0 15px;
}