@charset "utf-8";
@media(min-width:768px) {
  .fv_bg {
    background: center / cover url("../images/fv_bg.png") no-repeat;
    padding: 32px 0;
  }
  .top_obi {
    background: rgb(224, 136, 42);
    background: linear-gradient(90deg, rgba(224, 136, 42, 1) 0%, rgba(220, 167, 53, 1) 100%);
    text-align: center;
    padding: 8px 0;
    margin-bottom: -24px;
  }
  .top_obi img {
    max-width: 500px;
  }
}
.img {
  max-width: 700px;
  margin: 0 auto;
}
@media (min-width:768px) {
  .big {
    font-size: 120%;
  }
}
/*===================
bread
==================*/
/*.center{
    text-align: center;
}*/
#bread {
  background: center / cover url("../images/bg01.png") no-repeat;
}
.bread_list {
  max-width: 700px;
  margin: 0 auto;
}
.bread_list li {
  font-weight: bold;
  border: solid 1px var(--orange);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 12px;
  padding-left: 1.6rem;
  position: relative;
  box-shadow: 0 0 5px 0 rgba(224, 136, 42, 0.2)
}
.bread_list li::before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  left: 4px;
  top: 10px;
  background: center/ contain url("../images/icon_light.png") no-repeat;
}
.bread_list li:last-child {
  margin-bottom: 0;
}
@media (min-width:768px) {
  .bread_list {
    font-size: 26px;
  }
  .bread_list li {
    padding: 12px;
    padding-left: 3.0rem;
  }
  .bread_list li::before {
    width: 24px;
    height: 24px;
    top: 18px;
    left: 10px;
  }
}
/*=======================
cta
=====================*/
.cta_area {
  background: rgb(224, 136, 42);
  background: linear-gradient(90deg, rgba(224, 136, 42, 1) 0%, rgba(220, 167, 53, 1) 100%);
  text-align: center;
}
.cta_top_Text {
  font-weight: bold;
  color: var(--white);
  font-size: min(6vw, 36px);
}
.cta_top_Text span {
  position: relative;
}
.cta_top_Text span::before, .cta_top_Text span::after {
  content: "";
  width: 3px;
  height: 48px;
  background-color: var(--white);
  position: absolute;
  bottom: 0;
}
.cta_top_Text span::before {
  left: -20px;
  transform: rotateZ(-20deg)
}
.cta_top_Text span::after {
  right: -20px;
  transform: rotateZ(20deg)
}
.form_container {
  margin: 8px auto;
}
.form_item {
  margin-bottom: 12px;
}
input[type="email"] {
  width: 100%;
  max-width: 700px;
  text-align: center;
  padding: 12px;
  height: 50px;
  border-radius: 4px;
  outline: none;
  border: solid 1px #929292;
  font-size: 16px;
}
input[type="image"] {
  width: 100%;
  max-width: 700px;
  box-shadow: 0 0px 5px 0 rgba(15, 79, 124, 0.4);
}
.cta_area .caution {
  color: var(--white);
  font-size: 12px;
}
@media (min-width:768px) {
  .cta_top_Text span::before, .cta_top_Text span::after {
    height: 60px;
  }
  .cta_top_Text span::before {
    left: -30px;
  }
  .cta_top_Text span::after {
    right: -30px;
  }
  .form_item {
    margin-bottom: 20px;
  }
  input[type="email"] {
    height: 80px;
    font-size: 20px;
  }
  .cta_area .caution {
    font-size: 16px;
  }
}
/*===================
method
======================*/
#method {
  background: center top / contain url("../images/bg02.png") no-repeat;
}
.hukidashi {
  text-align: center;
  margin-bottom: 40px;
}
.hukidashi span {
  background: rgb(224, 136, 42);
  background: linear-gradient(90deg, rgba(224, 136, 42, 1) 0%, rgba(220, 167, 53, 1) 100%);
  color: var(--white);
  padding: 12px 1rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: min(6vw, 36px);
  position: relative;
}
.hukidashi span::before {
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-top: 15px solid #f1a129;
  border-bottom: 0;
  position: absolute;
  right: 0;
  left: 0;
  margin: 0 auto;
  content: "";
  bottom: -15px;
}
.title {
  text-align: center;
  font-weight: bold;
  font-size: min(6.5vw, 40px);
}
.word_box {
  text-align: center;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  background-color: var(--white);
  padding: 12px;
  max-width: 700px;
  margin: 20px auto 0
}
.word_title {
  color: var(--orange);
  font-weight: bold;
  font-size: min(6vw, 36px);
}
.word_number {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  margin-top: 12px;
  max-width: 600px;
}
.word_number li {
  width: calc(33% - 10px);
  font-weight: bold;
  background-color: #f9e7d5;
  border-radius: 4px;
  padding: 8px;
}
.word_number li span {
  font-size: 130%;
}
.sum_words {
  background-color: var(--orange);
  margin: 0 auto;
  max-width: 600px;
  border-radius: 4px;
  font-size: min(7vw, 46px);
  font-weight: bold;
  color: var(--white);
  margin-top: 8px;
  padding: 8px;
}
.word_box + .caution {
  text-align: right;
  font-size: 14px;
  max-width: 700px;
  margin: 4px auto 0;
}
@media (min-width:768px) {
  .hukidashi span {
    padding: 12px 3rem;
  }
  .word_box {
    padding: 24px;
    margin-top: 20px;
  }
  .word_number {
    font-size: 24px;
  }
  .word_number li {
    width: calc(33% - 10px);
    font-weight: bold;
    background-color: #f9e7d5;
    border-radius: 4px;
    padding: 8px;
  }
  .word_number li span {
    font-size: 150%;
  }
  .sum_words {
    margin-top: 12px;
    padding: 12px;
  }
  .word_box + .caution {
    font-size: 16px;
  }
}
.flex_box {
  margin-top: 20px;
}
.flex_img {
  display: none;
}
.flex_box p {
  font-weight: bold;
  text-align: center;
  font-size: min(6vw, 36px);
}
@media (min-width:768px) {
  .flex_box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
  }
  .flex_img {
    display: block;
    max-width: 300px;
    margin-right: 20px;
  }
  .flex_box p {
    text-align: left;
  }
}
.scroll-container {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
  margin-top: 11px;
  position: relative;
}
.scroll-content {
  display: inline-block;
  animation: scroll-left linear infinite;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.scroll-container[data-speed="40"] .scroll-content {
  animation-duration: 100s;
}
.scroll-container[data-speed="45"] .scroll-content {
  animation-duration: 105s;
}
.scroll-container.mt {
  margin-top: 40px;
}
.item {
  display: inline-block;
  padding: 8px;
  font-weight: bold;
  color: #333;
  border-radius: 4px;
  font-size: 16px;
  background-color: #f9e7d5;
  margin-right: 8px;
  white-space: pre;
}
@media (min-width:768px) {
  .scroll-container[data-speed="40"] .scroll-content {
    animation-duration: 80s;
  }
  .scroll-container[data-speed="45"] .scroll-content {
    animation-duration: 85s;
  }
}
/*========================
problem
============================*/
#problem {
  background: center / cover url("../images/bg03.png") no-repeat;
  position: relative;
}
#problem img {
  display: block;
  margin: 0 auto;
}
.hukidashi_problem {
  padding: 8px;
  background-color: #5d5d5d;
  color: var(--white);
  text-align: center;
  font-weight: bold;
  font-size: min(6vw, 36px);
  border-radius: 4px;
  position: absolute;
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  left: 0;
  right: 0;
  bottom: -40px;
}
.hukidashi_problem::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  border-top: 20px solid #5d5d5d;
  border-bottom: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  margin: 0 auto;
}
/*========================
reason
======================*/
#reason .img {
  margin: 28px auto;
  max-width: 700px;
}
#reason.sec_pad {
  padding-top: 80px;
}
/*================
voice
============*/
#voice {
  background: rgb(224, 136, 42);
  background: linear-gradient(90deg, rgba(224, 136, 42, 1) 0%, rgba(220, 167, 53, 1) 100%);
}
#voice.sec_pad {
  padding-top: 0;
}
.tri_white {
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 50px solid transparent;
  border-left: 50px solid transparent;
  border-top: 30px solid var(--white);
  border-bottom: 0;
  margin: 0 auto 28px;
}
.tri_orange {
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 100px solid transparent;
  border-left: 100px solid transparent;
  border-top: 50px solid var(--orange);
  border-bottom: 0;
  margin: 40px auto 0;
}
#voice .title {
  color: var(--white);
}
.voice_box {
  background-color: var(--white);
  padding: 12px;
  border-radius: 10px;
  margin: 20px auto 0;
  max-width: 700px;
}
.int__title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 8px;
}
.int__name {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: solid 1px #aaa;
  padding-bottom: 40px;
}
.int__name span {
  background-color: var(--orange);
  color: var(--white);
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 4px;
}
.int__name.none {
  border: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}
#voice .caution {
  text-align: right;
  font-size: 11px;
  display: block;
}
@media (min-width:768px) {
  .voice_box {
    padding: 40px;
  }
  .int__title {
    margin-bottom: 16px;
    margin-top: 16px;
    font-size: 26px;
  }
  .int__name {
    margin-bottom: 60px;
    padding-bottom: 60px;
  }
  #voice .caution {
    font-size: 16px;
  }
}
/*==================
step
=======================*/
#step .hukidashi {
  margin-top: 20px;
}
#step .title {
  margin-top: 20px;
}
#step .img {
  margin-bottom: 20px;
}
/*==================
profile
================*/
#profile {
  background-color: #dedede;
}
.pro_box {
  background-color: var(--white);
  padding: 12px;
  border-radius: 10px;
  max-width: 700px;
  margin: 8px auto 0;
}
.pro_img {
  width: 80%;
  margin: 0 auto 8px;
}
.pro_text {
  margin-bottom: 20px;
}
#profile .img {
  margin-bottom: 20px;
  width: 80%;
}
#profile .mt {
  margin-top: 60px;
}
.pro_name {
  font-weight: bold;
  font-size: 120%;
  text-align: center;
  margin-bottom: 12px;
}
.pro_name span {
  display: block;
  font-size: 80%;
}
@media (min-width:768px) {
  .pro_box {
    padding: 40px;
  }
  .pro_name_box {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 28px;
  }
  .pro_img {
    max-width: 300px;
    margin-bottom: 0;
  }
  .pro_name {
    text-align: right;
    flex: 0 0 40%;
    margin-right: 28px;
  }
  .pro_text {
    margin-bottom: 40px;
  }
  #profile .img {
    width: 65%;
  }
}
/*===================
footer
=====================*/
footer {
  padding: 60px 0;
  text-align: center;
  font-size: 16px;
}
.office {
  margin-bottom: 20px;
}
copy {
  display: block;
  margin-top: 32px;
}

/* === Exit Overlay & Popup === */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 9998;
}
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  width: 750px;
  border-radius: 8px;
  padding: 0;
  text-align: center;
  z-index: 9999;
}
.popup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: pointer;
}
.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background-color: white;
  border: solid 1px #333;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 10000;
  border-radius: 50vh;
  width: 30px;
  height: 30px;
  line-height: 25px;
}
/* === ChatBot === */
.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 60vh;
  background: #fff;
  padding: 16px 20px 16px 16px; /* 右側に余分なパディングを追加 */
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  display: none;
}
.chatbot.show {
  display: flex !important;
  flex-direction: column;
}
#chat-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  z-index: 10002;
  flex-shrink: 0;
}
.chat-seq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  max-height: calc(60vh - 80px);
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  padding-right: 8px; /* スクロールバー分のパディングを追加 */
}
.chat-seq::-webkit-scrollbar {
  width: 6px;
}
.chat-seq::-webkit-scrollbar-track {
  background: transparent;
}
.chat-seq::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
.chat-seq::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}
.chat-item {
  display: none;
  transform-origin: bottom left;
  animation: zoomIn 0.4s ease-out forwards;
  opacity: 0;
  flex-shrink: 0;
}
.chat-item.operator {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.chat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bubble {
  background: #f5f5f5;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 16px;
  max-width: calc(100% - 8px); /* スクロールバー分を考慮した幅調整 */
  word-wrap: break-word;
  box-sizing: border-box;
}
@keyframes zoomIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.form-area form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#chat-email {
  padding: 16px 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: calc(100% - 8px); /* スクロールバー分を考慮した幅調整 */
  box-sizing: border-box;
}
.cv_btn {
  width: calc(100% - 8px); /* スクロールバー分を考慮した幅調整 */
  max-width: calc(280px - 8px);
  cursor: pointer;
  box-sizing: border-box;
}
.cv_btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
@media screen and (max-width: 600px) {
  .chatbot {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 60vh;
    padding: 16px 12px 16px 16px; /* スマートフォンでは右側のパディングを調整 */
  }
  
  .chat-seq {
    max-height: calc(60vh - 80px);
    padding-right: 6px; /* スマートフォンではパディングを少し減らす */
  }
  
  #chat-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    line-height: 40px;
    top: 12px;
    right: 12px; /* スクロールバー分を考慮して位置調整 */
  }
}