@charset "UTF-8";

/* =========================================
   Base & Typography
   ========================================= */
html {
  background: #f1f1f1;
  overflow-x: hidden;
}
body {
  font-size: 16px;
  color: #444;
  line-height: 200%;
  overflow-x: hidden;
  font-family: 'Roboto', 'Hiragino Sans', 'Meiryo', 'Hiragino Kaku Gothic ProN', sans-serif;
  background-image: linear-gradient(135deg, #fff 25%, transparent 25%),
                    linear-gradient(225deg, #fff 25%, transparent 25%),
                    linear-gradient(45deg, #fff 25%, transparent 25%),
                    linear-gradient(315deg, #fff 25%, #f6f6f6 25%);
  background-position: 80px 0, 80px 0, 0 0, 0 0;
  background-size: 80px 80px;
  background-repeat: repeat;
  background-attachment: fixed;
}
img {
  width: 100%;
  height: auto; /* ★追加：これで画像やボタンの高さが完璧に可変・追従します！ */
}
a {
  opacity: 1;
  transition: all .3s;
  color: #ccc;
}
a:hover {
  opacity: .8;
  transition: all .3s;
}
.pc_only {
  display: block;
}
.sp_only {
  display: none;
}

/* =========================================
   Layout & Modules
   ========================================= */
.mv {
  width: 100%;
  position: relative;
}
#contents {
  width: 100%;
}
#contents .contents_inner {
  width: 500px;
  margin: 0 auto;
  background: #f1f1f1;
  box-shadow: 0 0 10px #999;
}
.section_inner {
  margin: 0 auto;
}

/* --- Slider --- */
.slider_inner {
  width: 100%; /* ★修正：500px固定をやめて親要素の750pxにフィットさせます */
}
.slider_card {
  margin: 0;
}
.slider_card img {
  margin: 0 auto;
  width: 100%;
}

/* --- Q&A Section --- */
li.qaback {
  background: url(/assets_lp/agt/paid/sns/images/img04.webp) no-repeat ;
  background-size: cover;
  width: 100%;            /* 幅をブラウザに合わせる */
  aspect-ratio: 750 / 1084;   /* ★ここで背景画像の縦横比を指定（例：横16:縦9の場合） */
}
.qa-wrap {
  margin-top:5vw;
  padding-bottom:30px;
  display: block;
}
.qa-item {
  border-radius: 10px;
  padding: 1em;
  font-size: 90%;
  font-weight:bold;
}
.qa-item + .qa-item {

}
.qa-item-inner {
  display: flex;
  position: relative;
  align-items: center;
}
#contents .qa-question-box {
  background: #fff;
  padding:0 10px;
  border-radius:40px;
}
.qa-item .qa-item-inner:nth-of-type(1) {
  cursor: pointer;
}
.qa-item .qa-item-inner:nth-of-type(2) {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px dashed transparent;
  transition: all 0.4s ease;
}
.qa-item.is-open .qa-item-inner:nth-of-type(2) {
  max-height: 500px;
  opacity: 1;

  padding-top: 1em;
  border-top: 1px dashed #ccc;
}
.qa-item-text span {
  font-weight:bold;
}
#contents .qa-item-icon {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 30px;
  min-height: 20px;
  padding: .5em 0;
  flex-shrink: 0;
}
#contents .qa-item-icon img {

  width: 30px;
  margin: 0;
}

/* --- Tab & QA Content --- */
.tab-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  display: none;
}
.tab-container .tab {
  text-align: center;
  width: 50%;
  padding: .8em .8em .5em .8em;
  background: #eee;
  font-weight: 700;
  font-size: 90%;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  margin-top: .5rem;
}
.qacontent {
  display: none;
  padding: .5em 0em;
  border: 4px solid #63b100;
  border-radius: 0 0 5px 5px;
}
.qacontent.show {
  display: block;
}

/* --- Slick Slider Customize --- */
.slick-prev,
.slick-next {
  width: 50px;
  height: 50px;
  top: 750px; 
}
.slick-prev {
  left: 10px;
}
.slick-next {
  right: 10px;
}
.slick-prev:before,
.slick-next:before {
  font-size: 50px;
  background-size: contain;
  animation: anime1 0.8s ease 0s infinite alternate;
  transform-origin: center;
}
.slick-prev:before {
  background: url(/assets_lp/agt/paid/sns/images/prev.webp) no-repeat center center;
}
.slick-next:before {
  background: url(/assets_lp/agt/paid/sns/images/next.webp) no-repeat center center;
}
.slick-arrow {
  z-index: 2;
}
.slick-arrow:before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}
.slick-dots li button:before {
  font-size: 20px !important;
  margin: 20px 0;
  color: #cccccc !important;
}
.slick-dots li.slick-active button:before {
  font-size: 20px !important;
  margin: 20px 0;
  color: #99cc00 !important;
}
.slick-num {
  position: absolute;
  bottom: 1rem;
  right: .5rem;
  background-color: rgba(0,0,0,.8);
  color: #fff;
  border-radius: 20px;
  padding: 0 1rem;
}

/* --- Forms & Consultation --- */
#formWrap01 {
  margin-top: 2rem;
}
#formWrap01 iframe {
  height: 1000px;
}
#consultation {
  margin-top: 70px;
}
/* ★追加：画像ボタンが親要素に合わせて綺麗に可変するように設定 */
#consultation > a {
  display: block;
  width: 95%;
  margin: 0 auto;
}
#consultation .const_inner {
  width: 80%;
  margin: 20px auto;
  font-size: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#consultation .const_inner a {
  color: #555;
}

/* --- Fixed Bottom Element --- */
div#fix,
div#fix.fixed {
  display: none;
}
div#fix.fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,.5);
  z-index: 100;
  max-width: none;
}
div#fix img {
  width: 80%;
  float: none;
  max-width: 300px;
  margin: 4rem auto 1rem auto;
  display: block;
}
div#fix.fixed img:hover {
  opacity: .9;
  transition: .5s;
}

/* --- Banner --- */
.banner-container {
  width: 95%;
  margin: 2rem auto 0 auto;
  background: linear-gradient(180deg, #ff8900 0%, #fec200 100%);
  border-radius: 15px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 2px;
}
.badge-img {
  position: absolute;
  top: -15px;
  left: -10px;
  width: 80px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}
.badge-animation {
  animation: floating 2s ease-in-out infinite;
}
.banner-top {
  padding: 20px 10px 5px;
  text-align: center;
}
.banner-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0px 1px 2px #333, 0px 1px 2px #333;
  padding-left: 50px;
}
.banner-title span {
  font-size: 80%;
}
.divider-area {
  position: relative;
  height: 30px;
  width: 95%;
  margin: 0 auto;
}
.dashed-line {
  width: 90%;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.house-icon-img {
  position: absolute;
  right: 0;
  bottom: 2px;
  height: 35px;
  width: auto;
}
.banner-bottom {
  background-color: #fffde7;
  border-radius: 0 0 13px 13px;
  padding: 20px 15px;
  margin: 0 4px 4px 4px;
}
.search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid #fbc02d;
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.search-input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  outline: none;
  background: transparent;
}
.search-input::placeholder {
  color: #999;
}
.search-button {
  width: 60px;
  background-color: #d85638;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}
.search-button:hover {
  opacity: 0.9;
}
.search-icon-svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  color: #fff;
}

/* --- Map API & Swiper --- */
.mapapi_form .delete {
  position: absolute;
  top: 26%;
  right: 12.5%;
  padding: 0;
  border: none;
  background: none;
  font-size: 1rem;
  transition: 0.5s;
  color: #666;
}
.dli-close-circle {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  position: relative;
  width: 1em;
  height: 1em;
  border: 0.1em solid currentColor;
  border-radius: 50%;
  box-sizing: content-box;
}
.dli-close-circle > span {
  width: 52%;
  height: 0.1em;
  background: currentColor;
  border-radius: 0.1em;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transform: rotate(45deg);
}
.dli-close-circle > span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}
.swiper {
  margin: 20px 0;
  position: relative;
  padding: 0 40px 60px 40px;
}
.swiper-wrapper {
  margin-bottom: 10px;
}
.swiper-pagination {
  position: absolute;
  bottom: -40px !important;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  margin-top: 40px !important;
  height: 80px !important;
}
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
}
.swiper-pagination-bullet {
  width: 16px !important;
  height: 16px !important;
  margin: 0 8px !important;
}
.swiper-pagination-bullet-active {
  background-color: #79cb02 !important;
}
.nothing {
  background: #eee;
  padding: 10px;
  width: 90%;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  text-align: center;
}
.search-history-list {
  margin: 10px 0;
  padding: 0 15px;
}
.search-history-list li {
  display: inline;
  font-size: 70%;
  list-style-type: none;
  color: #fff;
  padding: 0 5px;
  text-decoration: underline;
}
.mapitem {
  width: 100%;
  max-width: 320px;
  min-height: 450px;
  margin: 10px auto 50px auto;
  border: 5px solid #79cb02;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.hit_text {
  font-size: 180%;
  color: #ff7e00;
  text-shadow: 2px 2px 0 #fff;
  margin-top: 40px;
  line-height: 100%;
}
.mapitem .mapiteminfo {
  display: block;
  padding: 10px 16px;
  line-height: 120%;
  flex: 1;
}
.mapitem .mapiteminfo .mapiteminfo_bn {
  width: 80%;
  margin: 0 auto;
}
.mapitem .mapiteminfo .mapiteminfo_bn a {
  width: 100%;
}
.mapitem .mapiteminfo .mapiteminfo_bn img {
  width: 100%;
}
.mapitem .mapiteminfo .mapiteminfo_text {
  margin-left: 0px;
  margin-top: 5px;
  width: 100%;
}
.mapitem .mapiteminfo .mapiteminfo_text .sample {
  font-size: 70%;
  margin-left: 0px;
}
.areadetail {
  background: #79cb02;
  display: block;
  max-width: 100%;
  color: #fff;
  padding: 3px;
  text-align: center;
  font-size: 120%;
  font-weight: bold;
  letter-spacing: .1em;
  text-shadow: 0 1px 0 #333;
}
.distdetail {
  color: #ff7e00;
  font-weight: bold;
  font-size: 110%;
}
.typedetail {
  font-weight: bold;
  font-size: 110%;
  color: #555;
}
.mapiteminfo_text_sub {
  border-top: 1px dotted #ccc;
  font-size: 130%;
  margin-top: .8rem;
  padding-top: .5rem;
}
.mapiteminfo_text_sub i {
  color: #79cb02;
}
.mapitem_area {
  border-left: 4px solid #79cb02;
  margin-bottom: 5px;
  font-size: 90%;
  line-height: 110%;
  padding: 5px 0 5px 8px;
}
.iconpin {
  color: #5da7ad;
  font-weight: bold;
}
.areabtn {
  margin-top: auto;
}
.areabtn span {
  color: #e35844;
  letter-spacing: .1rem;
  font-weight: bold;
}
.areabtn span i {
  color: #fdb400;
}
.areabtn a {
  display: block;
  letter-spacing: .1rem;
  margin: 0 auto;
  color: #fff;
  text-decoration: none;
  font-size: 100%;
  width: 80%;
  padding: 10px 0;
  text-align: center;
  background: #4d8bb2;
  border-radius: 40px;
  font-weight: bold;
  text-shadow: 0 1px 0 #333;
}
.areabtn .pochibtn {
  background: #79cb02;
}
.areabtn .registbtn {
  background: none;
  font-size: 80%;
  text-decoration: underline;
  color: #333;
  text-shadow: none;
}

/* --- Animations --- */
.fuwafuwa1 {
  animation: floating-y 1.2s ease-in-out infinite alternate-reverse;
}
@keyframes floating-y {
  0%   { transform: translateY(-10%); }
  100% { transform: translateY(10%); }
}
@keyframes anime1 {
  from { transform: scale(0.7, 0.7); }
  to   { transform: scale(1, 8, 1.8); }
}
@keyframes floating {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* --- Footer --- */
footer {
  background: #333;
  padding-bottom: 6vw;
  margin-top: 3vw;
}
footer .footer_inner {
  width: 90%;
  font-size: 80%;
  color: #ccc;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3vw 0;
}
footer .footer_inner p {
  font-size: 80%;
}
footer .footer_inner img {
  width: 50px;
}
footer .copy {
  width: 100%;
  margin: 0 auto;
  border-top: 1px dotted #666;
  font-size: 80%;
  text-align: center;
  color: #888;
  padding: 3vw 0;
}

/* =========================================
   Media Query: PC/Tablet Only
   ========================================= */
@media screen and (min-width: 750px) {
  .banner-container {
    width: 100%;
    margin: 40px 10px 0 10px;
    max-width: 480px;
    background: linear-gradient(180deg, #ff8900 0%, #fec200 100%);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2px;
  }
  .banner-title {
    font-size: 28px;
    padding-left: 0;
  }
  .banner-title span {
    font-size: 20px;
    padding-left: 0;
  }
  .badge-img {
    width: 110px;
    top: -20px;
    left: -15px;
  }
  .banner-top {
    padding-bottom: 10px;
  }
}

/* =========================================
   Media Query: SP Only (max-width: 750px)
   ========================================= */
@media (max-width: 750px) {
  .pc_only {
    display: none;
  }
  .sp_only {
    display: block;
  }
  
  /* Layout Overrides */
  #contents .contents_inner,
  .work,
  .slider_inner {
    width: 100%;
  }

  /* Slick Overrides */
  .slick-prev,
  .slick-next {
    width: 50px;
    height: 50px;
    top: 0;
    margin-top: 145.3%; 
    transform: translateY(10px);
  }
  .slick-prev {
    left: 10px;
  }
  .slick-next {
    right: 10px;
  }
  .slick-dots {
    bottom: auto !important;
top: 0;
margin-top: 145%;
  }
  .slick-dots li button:before {
    font-size: 20px !important;
  }

  /* Consultation Overrides */
  #consultation {
    margin-top: 17vw;
  }
  #consultation .const_inner {
    width: 90%;
    margin: 4vw auto;
    font-size: 3.5vw; 
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Form Overrides */
  #formWrap01 {
    margin-top: 8vw;
  }
  #formWrap01 iframe {
    height: 1000px; /* ここはあえて固定のままにしています（フォームの長さが崩れるのを防ぐため） */
  }
  .qa-wrap {
    margin-top:20vw;
    padding-bottom:50px;
    display: block;
  }
  .qa-item + .qa-item {
    margin-top: -2vw; /* ★数値を減らすと狭くなります（0や -2vw などのマイナス指定も可能です） */
  }
  .mapitem {
    min-height: 400px;
  }
  .distdetail {
    font-size: 90%;
  }
  .typedetail {
    font-size: 90%;
  }
  /* Banner Overrides */
  .banner-container {
    width: 95%;
    margin: 8vw auto 0;
    border-radius: 4vw;
    padding: 0.5vw;
  }
  .badge-img {
    width: 22vw;
    top: -4vw;
    left: -3vw;
  }
  .banner-top {
    padding: 5vw 3vw 2vw;
  }
  .banner-title {
    font-size: 6.5vw;
    padding-left: 14vw;
    margin-bottom: 2vw;
  }
  .divider-area {
    height: 8vw;
  }
  .house-icon-img {
    height: 9vw;
    bottom: 1vw;
  }
  .banner-bottom {
    padding: 5vw 4vw;
    margin: 0 1vw 1vw 1vw;
    border-radius: 0 0 3.5vw 3.5vw;
  }
  .search-input {
    padding: 3vw 4vw;
    font-size: 16px; 
  }
  .search-button {
    width: 15vw;
  }
  .search-icon-svg {
    width: 6vw;
    height: 6vw;
  }

  /* Swiper Overrides */
  .swiper {
    margin: 6vw 0;
    padding: 0 5vw 15vw 5vw; 
  }
  .swiper-pagination {
    bottom: -5vw !important;
    margin-top: 5vw !important;
    height: 15vw !important;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 10vw;
    height: 10vw;
  }
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 4vw;
  }

  /* Footer Overrides */
  footer {
    padding-bottom: 10vw;
    margin-top: 10vw;
  }
  footer .footer_inner {
    padding: 6vw 0;
    font-size: 3.2vw;
  }
  footer .footer_inner img {
    width: 30vw;
  }
  footer .copy {
    padding: 5vw 0;
    font-size: 2.8vw;
  }
}

/* =========================================
   🚨 追加・上書き用CSS（一番下に追加してください）
   ========================================= */

/* ① 画像とフォーム（iframe）が絶対に画面幅を突き破らないようにする */
img {
  max-width: 100%;
  vertical-align: bottom; /* 画像の下にできる謎の隙間や切れを防ぐ */
}
iframe {
  max-width: 100%;
}

/* ② 大枠のコンテナがスマホ幅に合わせて確実に縮むようにする */
#contents .contents_inner {
  max-width: 100%;
  overflow-x: hidden; /* 横方向のはみ出しを強制的にカット！ */
}

/* ③ Slickスライダーの画像の下が切れる・潰れるのを防ぐ */
.slider_inner, 
.slick-list, 
.slick-track, 
.slider_card {
  height: auto !important;
}

/* ④ 念のため、スマホ時の全体幅をガッチリ固定 */
@media (max-width: 750px) {
  body, html {
    width: 100%;
    overflow-x: hidden;
  }
  #formWrap01 iframe {
    width: 100%;
  }
}

/* QAアイテムをクリックできるように見せる */
.js-qa-modal-trigger {
  cursor: pointer;
  transition: opacity 0.3s;
}
.js-qa-modal-trigger:hover {
  opacity: 0.8;
}

/* モーダルの背景（オーバーレイ） */
.qa-modal-overlay {
  display: none; /* 初期は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999; /* 最前面に表示 */
}

/* モーダルの白いウィンドウ部分 */
.qa-modal-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 40px 20px 30px;
  box-sizing: border-box;
}

/* 閉じるボタン */
.qa-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}